1#! /bin/sh 2# From configure.in Revision: 1.188.2.6 . 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 --with-user=USERNAME drop privileges by default to USERNAME 857 --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY 858 --without-crypto disable crypto support 859 860Some influential environment variables: 861 CC C compiler command 862 CFLAGS C compiler flags 863 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 864 nonstandard directory <lib dir> 865 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 866 headers in a nonstandard directory <include dir> 867 CPP C preprocessor 868 869Use these variables to override the choices made by `configure' or to help 870it to find libraries and programs with nonstandard names/locations. 871 872_ACEOF 873fi 874 875if test "$ac_init_help" = "recursive"; then 876 # If there are subdirs, report their specific --help. 877 ac_popdir=`pwd` 878 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 879 test -d $ac_dir || continue 880 ac_builddir=. 881 882if test "$ac_dir" != .; then 883 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 884 # A "../" for each directory in $ac_dir_suffix. 885 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 886else 887 ac_dir_suffix= ac_top_builddir= 888fi 889 890case $srcdir in 891 .) # No --srcdir option. We are building in place. 892 ac_srcdir=. 893 if test -z "$ac_top_builddir"; then 894 ac_top_srcdir=. 895 else 896 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 897 fi ;; 898 [\\/]* | ?:[\\/]* ) # Absolute path. 899 ac_srcdir=$srcdir$ac_dir_suffix; 900 ac_top_srcdir=$srcdir ;; 901 *) # Relative path. 902 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 903 ac_top_srcdir=$ac_top_builddir$srcdir ;; 904esac 905# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 906# absolute. 907ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 908ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 909ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 910ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 911 912 cd $ac_dir 913 # Check for guested configure; otherwise get Cygnus style configure. 914 if test -f $ac_srcdir/configure.gnu; then 915 echo 916 $SHELL $ac_srcdir/configure.gnu --help=recursive 917 elif test -f $ac_srcdir/configure; then 918 echo 919 $SHELL $ac_srcdir/configure --help=recursive 920 elif test -f $ac_srcdir/configure.ac || 921 test -f $ac_srcdir/configure.in; then 922 echo 923 $ac_configure --help 924 else 925 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 926 fi 927 cd $ac_popdir 928 done 929fi 930 931test -n "$ac_init_help" && exit 0 932if $ac_init_version; then 933 cat <<\_ACEOF 934 935Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 936Free Software Foundation, Inc. 937This configure script is free software; the Free Software Foundation 938gives unlimited permission to copy, distribute and modify it. 939_ACEOF 940 exit 0 941fi 942exec 5>config.log 943cat >&5 <<_ACEOF 944This file contains any messages produced by compilers while 945running configure, to aid debugging if configure makes a mistake. 946 947It was created by $as_me, which was 948generated by GNU Autoconf 2.57. Invocation command line was 949 950 $ $0 $@ 951 952_ACEOF 953{ 954cat <<_ASUNAME 955## --------- ## 956## Platform. ## 957## --------- ## 958 959hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 960uname -m = `(uname -m) 2>/dev/null || echo unknown` 961uname -r = `(uname -r) 2>/dev/null || echo unknown` 962uname -s = `(uname -s) 2>/dev/null || echo unknown` 963uname -v = `(uname -v) 2>/dev/null || echo unknown` 964 965/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 966/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 967 968/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 969/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 970/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 971hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 972/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 973/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 974/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 975 976_ASUNAME 977 978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 979for as_dir in $PATH 980do 981 IFS=$as_save_IFS 982 test -z "$as_dir" && as_dir=. 983 echo "PATH: $as_dir" 984done 985 986} >&5 987 988cat >&5 <<_ACEOF 989 990 991## ----------- ## 992## Core tests. ## 993## ----------- ## 994 995_ACEOF 996 997 998# Keep a trace of the command line. 999# Strip out --no-create and --no-recursion so they do not pile up. 1000# Strip out --silent because we don't want to record it for future runs. 1001# Also quote any args containing shell meta-characters. 1002# Make two passes to allow for proper duplicate-argument suppression. 1003ac_configure_args= 1004ac_configure_args0= 1005ac_configure_args1= 1006ac_sep= 1007ac_must_keep_next=false 1008for ac_pass in 1 2 1009do 1010 for ac_arg 1011 do 1012 case $ac_arg in 1013 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1014 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1015 | -silent | --silent | --silen | --sile | --sil) 1016 continue ;; 1017 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1018 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1019 esac 1020 case $ac_pass in 1021 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1022 2) 1023 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1024 if test $ac_must_keep_next = true; then 1025 ac_must_keep_next=false # Got value, back to normal. 1026 else 1027 case $ac_arg in 1028 *=* | --config-cache | -C | -disable-* | --disable-* \ 1029 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1030 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1031 | -with-* | --with-* | -without-* | --without-* | --x) 1032 case "$ac_configure_args0 " in 1033 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1034 esac 1035 ;; 1036 -* ) ac_must_keep_next=true ;; 1037 esac 1038 fi 1039 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1040 # Get rid of the leading space. 1041 ac_sep=" " 1042 ;; 1043 esac 1044 done 1045done 1046$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1047$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1048 1049# When interrupted or exit'd, cleanup temporary files, and complete 1050# config.log. We remove comments because anyway the quotes in there 1051# would cause problems or look ugly. 1052# WARNING: Be sure not to use single quotes in there, as some shells, 1053# such as our DU 5.0 friend, will then `close' the trap. 1054trap 'exit_status=$? 1055 # Save into config.log some information that might help in debugging. 1056 { 1057 echo 1058 1059 cat <<\_ASBOX 1060## ---------------- ## 1061## Cache variables. ## 1062## ---------------- ## 1063_ASBOX 1064 echo 1065 # The following way of writing the cache mishandles newlines in values, 1066{ 1067 (set) 2>&1 | 1068 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1069 *ac_space=\ *) 1070 sed -n \ 1071 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1072 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1073 ;; 1074 *) 1075 sed -n \ 1076 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1077 ;; 1078 esac; 1079} 1080 echo 1081 1082 cat <<\_ASBOX 1083## ----------------- ## 1084## Output variables. ## 1085## ----------------- ## 1086_ASBOX 1087 echo 1088 for ac_var in $ac_subst_vars 1089 do 1090 eval ac_val=$`echo $ac_var` 1091 echo "$ac_var='"'"'$ac_val'"'"'" 1092 done | sort 1093 echo 1094 1095 if test -n "$ac_subst_files"; then 1096 cat <<\_ASBOX 1097## ------------- ## 1098## Output files. ## 1099## ------------- ## 1100_ASBOX 1101 echo 1102 for ac_var in $ac_subst_files 1103 do 1104 eval ac_val=$`echo $ac_var` 1105 echo "$ac_var='"'"'$ac_val'"'"'" 1106 done | sort 1107 echo 1108 fi 1109 1110 if test -s confdefs.h; then 1111 cat <<\_ASBOX 1112## ----------- ## 1113## confdefs.h. ## 1114## ----------- ## 1115_ASBOX 1116 echo 1117 sed "/^$/d" confdefs.h | sort 1118 echo 1119 fi 1120 test "$ac_signal" != 0 && 1121 echo "$as_me: caught signal $ac_signal" 1122 echo "$as_me: exit $exit_status" 1123 } >&5 1124 rm -f core core.* *.core && 1125 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1126 exit $exit_status 1127 ' 0 1128for ac_signal in 1 2 13 15; do 1129 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1130done 1131ac_signal=0 1132 1133# confdefs.h avoids OS command line length limits that DEFS can exceed. 1134rm -rf conftest* confdefs.h 1135# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1136echo >confdefs.h 1137 1138# Predefined preprocessor variables. 1139 1140cat >>confdefs.h <<_ACEOF 1141#define PACKAGE_NAME "$PACKAGE_NAME" 1142_ACEOF 1143 1144 1145cat >>confdefs.h <<_ACEOF 1146#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1147_ACEOF 1148 1149 1150cat >>confdefs.h <<_ACEOF 1151#define PACKAGE_VERSION "$PACKAGE_VERSION" 1152_ACEOF 1153 1154 1155cat >>confdefs.h <<_ACEOF 1156#define PACKAGE_STRING "$PACKAGE_STRING" 1157_ACEOF 1158 1159 1160cat >>confdefs.h <<_ACEOF 1161#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1162_ACEOF 1163 1164 1165# Let the site file select an alternate cache file if it wants to. 1166# Prefer explicitly selected file to automatically selected ones. 1167if test -z "$CONFIG_SITE"; then 1168 if test "x$prefix" != xNONE; then 1169 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1170 else 1171 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1172 fi 1173fi 1174for ac_site_file in $CONFIG_SITE; do 1175 if test -r "$ac_site_file"; then 1176 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1177echo "$as_me: loading site script $ac_site_file" >&6;} 1178 sed 's/^/| /' "$ac_site_file" >&5 1179 . "$ac_site_file" 1180 fi 1181done 1182 1183if test -r "$cache_file"; then 1184 # Some versions of bash will fail to source /dev/null (special 1185 # files actually), so we avoid doing that. 1186 if test -f "$cache_file"; then 1187 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1188echo "$as_me: loading cache $cache_file" >&6;} 1189 case $cache_file in 1190 [\\/]* | ?:[\\/]* ) . $cache_file;; 1191 *) . ./$cache_file;; 1192 esac 1193 fi 1194else 1195 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1196echo "$as_me: creating cache $cache_file" >&6;} 1197 >$cache_file 1198fi 1199 1200# Check that the precious variables saved in the cache have kept the same 1201# value. 1202ac_cache_corrupted=false 1203for ac_var in `(set) 2>&1 | 1204 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1205 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1206 eval ac_new_set=\$ac_env_${ac_var}_set 1207 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1208 eval ac_new_val="\$ac_env_${ac_var}_value" 1209 case $ac_old_set,$ac_new_set in 1210 set,) 1211 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1212echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1213 ac_cache_corrupted=: ;; 1214 ,set) 1215 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1216echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1217 ac_cache_corrupted=: ;; 1218 ,);; 1219 *) 1220 if test "x$ac_old_val" != "x$ac_new_val"; then 1221 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1222echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1223 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1224echo "$as_me: former value: $ac_old_val" >&2;} 1225 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1226echo "$as_me: current value: $ac_new_val" >&2;} 1227 ac_cache_corrupted=: 1228 fi;; 1229 esac 1230 # Pass precious variables to config.status. 1231 if test "$ac_new_set" = set; then 1232 case $ac_new_val in 1233 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1234 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1235 *) ac_arg=$ac_var=$ac_new_val ;; 1236 esac 1237 case " $ac_configure_args " in 1238 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1239 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1240 esac 1241 fi 1242done 1243if $ac_cache_corrupted; then 1244 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1245echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1246 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1247echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1248 { (exit 1); exit 1; }; } 1249fi 1250 1251ac_ext=c 1252ac_cpp='$CPP $CPPFLAGS' 1253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1255ac_compiler_gnu=$ac_cv_c_compiler_gnu 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276ac_aux_dir= 1277for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1278 if test -f $ac_dir/install-sh; then 1279 ac_aux_dir=$ac_dir 1280 ac_install_sh="$ac_aux_dir/install-sh -c" 1281 break 1282 elif test -f $ac_dir/install.sh; then 1283 ac_aux_dir=$ac_dir 1284 ac_install_sh="$ac_aux_dir/install.sh -c" 1285 break 1286 elif test -f $ac_dir/shtool; then 1287 ac_aux_dir=$ac_dir 1288 ac_install_sh="$ac_aux_dir/shtool install -c" 1289 break 1290 fi 1291done 1292if test -z "$ac_aux_dir"; then 1293 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1294echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1295 { (exit 1); exit 1; }; } 1296fi 1297ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1298ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1299ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1300 1301# Make sure we can run config.sub. 1302$ac_config_sub sun4 >/dev/null 2>&1 || 1303 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1304echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1305 { (exit 1); exit 1; }; } 1306 1307echo "$as_me:$LINENO: checking build system type" >&5 1308echo $ECHO_N "checking build system type... $ECHO_C" >&6 1309if test "${ac_cv_build+set}" = set; then 1310 echo $ECHO_N "(cached) $ECHO_C" >&6 1311else 1312 ac_cv_build_alias=$build_alias 1313test -z "$ac_cv_build_alias" && 1314 ac_cv_build_alias=`$ac_config_guess` 1315test -z "$ac_cv_build_alias" && 1316 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1317echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1318 { (exit 1); exit 1; }; } 1319ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1320 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1321echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1322 { (exit 1); exit 1; }; } 1323 1324fi 1325echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1326echo "${ECHO_T}$ac_cv_build" >&6 1327build=$ac_cv_build 1328build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1329build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1330build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1331 1332 1333echo "$as_me:$LINENO: checking host system type" >&5 1334echo $ECHO_N "checking host system type... $ECHO_C" >&6 1335if test "${ac_cv_host+set}" = set; then 1336 echo $ECHO_N "(cached) $ECHO_C" >&6 1337else 1338 ac_cv_host_alias=$host_alias 1339test -z "$ac_cv_host_alias" && 1340 ac_cv_host_alias=$ac_cv_build_alias 1341ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1342 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1343echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1344 { (exit 1); exit 1; }; } 1345 1346fi 1347echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1348echo "${ECHO_T}$ac_cv_host" >&6 1349host=$ac_cv_host 1350host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1351host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1352host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1353 1354 1355 1356 1357 1358 1359 1360 1361# Check whether --with-gcc or --without-gcc was given. 1362if test "${with_gcc+set}" = set; then 1363 withval="$with_gcc" 1364 1365fi; 1366 V_CCOPT="-O" 1367 V_INCLS="" 1368 if test "${srcdir}" != "." ; then 1369 V_INCLS="-I\$(srcdir)" 1370 fi 1371 if test "${CFLAGS+set}" = set; then 1372 LBL_CFLAGS="$CFLAGS" 1373 fi 1374 if test -z "$CC" ; then 1375 case "$host_os" in 1376 1377 bsdi*) 1378 # Extract the first word of "shlicc2", so it can be a program name with args. 1379set dummy shlicc2; ac_word=$2 1380echo "$as_me:$LINENO: checking for $ac_word" >&5 1381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1382if test "${ac_cv_prog_SHLICC2+set}" = set; then 1383 echo $ECHO_N "(cached) $ECHO_C" >&6 1384else 1385 if test -n "$SHLICC2"; then 1386 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test. 1387else 1388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1389for as_dir in $PATH 1390do 1391 IFS=$as_save_IFS 1392 test -z "$as_dir" && as_dir=. 1393 for ac_exec_ext in '' $ac_executable_extensions; do 1394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1395 ac_cv_prog_SHLICC2="yes" 1396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1397 break 2 1398 fi 1399done 1400done 1401 1402 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no" 1403fi 1404fi 1405SHLICC2=$ac_cv_prog_SHLICC2 1406if test -n "$SHLICC2"; then 1407 echo "$as_me:$LINENO: result: $SHLICC2" >&5 1408echo "${ECHO_T}$SHLICC2" >&6 1409else 1410 echo "$as_me:$LINENO: result: no" >&5 1411echo "${ECHO_T}no" >&6 1412fi 1413 1414 if test $SHLICC2 = yes ; then 1415 CC=shlicc2 1416 export CC 1417 fi 1418 ;; 1419 esac 1420 fi 1421 if test -z "$CC" -a "$with_gcc" = no ; then 1422 CC=cc 1423 export CC 1424 fi 1425 ac_ext=c 1426ac_cpp='$CPP $CPPFLAGS' 1427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1429ac_compiler_gnu=$ac_cv_c_compiler_gnu 1430if test -n "$ac_tool_prefix"; then 1431 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1432set dummy ${ac_tool_prefix}gcc; ac_word=$2 1433echo "$as_me:$LINENO: checking for $ac_word" >&5 1434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1435if test "${ac_cv_prog_CC+set}" = set; then 1436 echo $ECHO_N "(cached) $ECHO_C" >&6 1437else 1438 if test -n "$CC"; then 1439 ac_cv_prog_CC="$CC" # Let the user override the test. 1440else 1441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1442for as_dir in $PATH 1443do 1444 IFS=$as_save_IFS 1445 test -z "$as_dir" && as_dir=. 1446 for ac_exec_ext in '' $ac_executable_extensions; do 1447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1448 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1450 break 2 1451 fi 1452done 1453done 1454 1455fi 1456fi 1457CC=$ac_cv_prog_CC 1458if test -n "$CC"; then 1459 echo "$as_me:$LINENO: result: $CC" >&5 1460echo "${ECHO_T}$CC" >&6 1461else 1462 echo "$as_me:$LINENO: result: no" >&5 1463echo "${ECHO_T}no" >&6 1464fi 1465 1466fi 1467if test -z "$ac_cv_prog_CC"; then 1468 ac_ct_CC=$CC 1469 # Extract the first word of "gcc", so it can be a program name with args. 1470set dummy gcc; ac_word=$2 1471echo "$as_me:$LINENO: checking for $ac_word" >&5 1472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1473if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1474 echo $ECHO_N "(cached) $ECHO_C" >&6 1475else 1476 if test -n "$ac_ct_CC"; then 1477 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1478else 1479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1480for as_dir in $PATH 1481do 1482 IFS=$as_save_IFS 1483 test -z "$as_dir" && as_dir=. 1484 for ac_exec_ext in '' $ac_executable_extensions; do 1485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1486 ac_cv_prog_ac_ct_CC="gcc" 1487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1488 break 2 1489 fi 1490done 1491done 1492 1493fi 1494fi 1495ac_ct_CC=$ac_cv_prog_ac_ct_CC 1496if test -n "$ac_ct_CC"; then 1497 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1498echo "${ECHO_T}$ac_ct_CC" >&6 1499else 1500 echo "$as_me:$LINENO: result: no" >&5 1501echo "${ECHO_T}no" >&6 1502fi 1503 1504 CC=$ac_ct_CC 1505else 1506 CC="$ac_cv_prog_CC" 1507fi 1508 1509if test -z "$CC"; then 1510 if test -n "$ac_tool_prefix"; then 1511 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1512set dummy ${ac_tool_prefix}cc; ac_word=$2 1513echo "$as_me:$LINENO: checking for $ac_word" >&5 1514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1515if test "${ac_cv_prog_CC+set}" = set; then 1516 echo $ECHO_N "(cached) $ECHO_C" >&6 1517else 1518 if test -n "$CC"; then 1519 ac_cv_prog_CC="$CC" # Let the user override the test. 1520else 1521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1522for as_dir in $PATH 1523do 1524 IFS=$as_save_IFS 1525 test -z "$as_dir" && as_dir=. 1526 for ac_exec_ext in '' $ac_executable_extensions; do 1527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1528 ac_cv_prog_CC="${ac_tool_prefix}cc" 1529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1530 break 2 1531 fi 1532done 1533done 1534 1535fi 1536fi 1537CC=$ac_cv_prog_CC 1538if test -n "$CC"; then 1539 echo "$as_me:$LINENO: result: $CC" >&5 1540echo "${ECHO_T}$CC" >&6 1541else 1542 echo "$as_me:$LINENO: result: no" >&5 1543echo "${ECHO_T}no" >&6 1544fi 1545 1546fi 1547if test -z "$ac_cv_prog_CC"; then 1548 ac_ct_CC=$CC 1549 # Extract the first word of "cc", so it can be a program name with args. 1550set dummy cc; ac_word=$2 1551echo "$as_me:$LINENO: checking for $ac_word" >&5 1552echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1553if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1554 echo $ECHO_N "(cached) $ECHO_C" >&6 1555else 1556 if test -n "$ac_ct_CC"; then 1557 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1558else 1559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1560for as_dir in $PATH 1561do 1562 IFS=$as_save_IFS 1563 test -z "$as_dir" && as_dir=. 1564 for ac_exec_ext in '' $ac_executable_extensions; do 1565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1566 ac_cv_prog_ac_ct_CC="cc" 1567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1568 break 2 1569 fi 1570done 1571done 1572 1573fi 1574fi 1575ac_ct_CC=$ac_cv_prog_ac_ct_CC 1576if test -n "$ac_ct_CC"; then 1577 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1578echo "${ECHO_T}$ac_ct_CC" >&6 1579else 1580 echo "$as_me:$LINENO: result: no" >&5 1581echo "${ECHO_T}no" >&6 1582fi 1583 1584 CC=$ac_ct_CC 1585else 1586 CC="$ac_cv_prog_CC" 1587fi 1588 1589fi 1590if test -z "$CC"; then 1591 # Extract the first word of "cc", so it can be a program name with args. 1592set dummy cc; ac_word=$2 1593echo "$as_me:$LINENO: checking for $ac_word" >&5 1594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1595if test "${ac_cv_prog_CC+set}" = set; then 1596 echo $ECHO_N "(cached) $ECHO_C" >&6 1597else 1598 if test -n "$CC"; then 1599 ac_cv_prog_CC="$CC" # Let the user override the test. 1600else 1601 ac_prog_rejected=no 1602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1603for as_dir in $PATH 1604do 1605 IFS=$as_save_IFS 1606 test -z "$as_dir" && as_dir=. 1607 for ac_exec_ext in '' $ac_executable_extensions; do 1608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1609 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1610 ac_prog_rejected=yes 1611 continue 1612 fi 1613 ac_cv_prog_CC="cc" 1614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1615 break 2 1616 fi 1617done 1618done 1619 1620if test $ac_prog_rejected = yes; then 1621 # We found a bogon in the path, so make sure we never use it. 1622 set dummy $ac_cv_prog_CC 1623 shift 1624 if test $# != 0; then 1625 # We chose a different compiler from the bogus one. 1626 # However, it has the same basename, so the bogon will be chosen 1627 # first if we set CC to just the basename; use the full file name. 1628 shift 1629 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1630 fi 1631fi 1632fi 1633fi 1634CC=$ac_cv_prog_CC 1635if test -n "$CC"; then 1636 echo "$as_me:$LINENO: result: $CC" >&5 1637echo "${ECHO_T}$CC" >&6 1638else 1639 echo "$as_me:$LINENO: result: no" >&5 1640echo "${ECHO_T}no" >&6 1641fi 1642 1643fi 1644if test -z "$CC"; then 1645 if test -n "$ac_tool_prefix"; then 1646 for ac_prog in cl 1647 do 1648 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1649set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1650echo "$as_me:$LINENO: checking for $ac_word" >&5 1651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1652if test "${ac_cv_prog_CC+set}" = set; then 1653 echo $ECHO_N "(cached) $ECHO_C" >&6 1654else 1655 if test -n "$CC"; then 1656 ac_cv_prog_CC="$CC" # Let the user override the test. 1657else 1658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1659for as_dir in $PATH 1660do 1661 IFS=$as_save_IFS 1662 test -z "$as_dir" && as_dir=. 1663 for ac_exec_ext in '' $ac_executable_extensions; do 1664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1665 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1667 break 2 1668 fi 1669done 1670done 1671 1672fi 1673fi 1674CC=$ac_cv_prog_CC 1675if test -n "$CC"; then 1676 echo "$as_me:$LINENO: result: $CC" >&5 1677echo "${ECHO_T}$CC" >&6 1678else 1679 echo "$as_me:$LINENO: result: no" >&5 1680echo "${ECHO_T}no" >&6 1681fi 1682 1683 test -n "$CC" && break 1684 done 1685fi 1686if test -z "$CC"; then 1687 ac_ct_CC=$CC 1688 for ac_prog in cl 1689do 1690 # Extract the first word of "$ac_prog", so it can be a program name with args. 1691set dummy $ac_prog; ac_word=$2 1692echo "$as_me:$LINENO: checking for $ac_word" >&5 1693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1694if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1695 echo $ECHO_N "(cached) $ECHO_C" >&6 1696else 1697 if test -n "$ac_ct_CC"; then 1698 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1699else 1700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1701for as_dir in $PATH 1702do 1703 IFS=$as_save_IFS 1704 test -z "$as_dir" && as_dir=. 1705 for ac_exec_ext in '' $ac_executable_extensions; do 1706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1707 ac_cv_prog_ac_ct_CC="$ac_prog" 1708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1709 break 2 1710 fi 1711done 1712done 1713 1714fi 1715fi 1716ac_ct_CC=$ac_cv_prog_ac_ct_CC 1717if test -n "$ac_ct_CC"; then 1718 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1719echo "${ECHO_T}$ac_ct_CC" >&6 1720else 1721 echo "$as_me:$LINENO: result: no" >&5 1722echo "${ECHO_T}no" >&6 1723fi 1724 1725 test -n "$ac_ct_CC" && break 1726done 1727 1728 CC=$ac_ct_CC 1729fi 1730 1731fi 1732 1733 1734test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1735See \`config.log' for more details." >&5 1736echo "$as_me: error: no acceptable C compiler found in \$PATH 1737See \`config.log' for more details." >&2;} 1738 { (exit 1); exit 1; }; } 1739 1740# Provide some information about the compiler. 1741echo "$as_me:$LINENO:" \ 1742 "checking for C compiler version" >&5 1743ac_compiler=`set X $ac_compile; echo $2` 1744{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1745 (eval $ac_compiler --version </dev/null >&5) 2>&5 1746 ac_status=$? 1747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1748 (exit $ac_status); } 1749{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1750 (eval $ac_compiler -v </dev/null >&5) 2>&5 1751 ac_status=$? 1752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1753 (exit $ac_status); } 1754{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1755 (eval $ac_compiler -V </dev/null >&5) 2>&5 1756 ac_status=$? 1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1758 (exit $ac_status); } 1759 1760cat >conftest.$ac_ext <<_ACEOF 1761#line $LINENO "configure" 1762/* confdefs.h. */ 1763_ACEOF 1764cat confdefs.h >>conftest.$ac_ext 1765cat >>conftest.$ac_ext <<_ACEOF 1766/* end confdefs.h. */ 1767 1768int 1769main () 1770{ 1771 1772 ; 1773 return 0; 1774} 1775_ACEOF 1776ac_clean_files_save=$ac_clean_files 1777ac_clean_files="$ac_clean_files a.out a.exe b.out" 1778# Try to create an executable without -o first, disregard a.out. 1779# It will help us diagnose broken compilers, and finding out an intuition 1780# of exeext. 1781echo "$as_me:$LINENO: checking for C compiler default output" >&5 1782echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 1783ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1784if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1785 (eval $ac_link_default) 2>&5 1786 ac_status=$? 1787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1788 (exit $ac_status); }; then 1789 # Find the output, starting from the most likely. This scheme is 1790# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1791# resort. 1792 1793# Be careful to initialize this variable, since it used to be cached. 1794# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1795ac_cv_exeext= 1796# b.out is created by i960 compilers. 1797for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1798do 1799 test -f "$ac_file" || continue 1800 case $ac_file in 1801 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1802 ;; 1803 conftest.$ac_ext ) 1804 # This is the source file. 1805 ;; 1806 [ab].out ) 1807 # We found the default executable, but exeext='' is most 1808 # certainly right. 1809 break;; 1810 *.* ) 1811 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1812 # FIXME: I believe we export ac_cv_exeext for Libtool, 1813 # but it would be cool to find out if it's true. Does anybody 1814 # maintain Libtool? --akim. 1815 export ac_cv_exeext 1816 break;; 1817 * ) 1818 break;; 1819 esac 1820done 1821else 1822 echo "$as_me: failed program was:" >&5 1823sed 's/^/| /' conftest.$ac_ext >&5 1824 1825{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 1826See \`config.log' for more details." >&5 1827echo "$as_me: error: C compiler cannot create executables 1828See \`config.log' for more details." >&2;} 1829 { (exit 77); exit 77; }; } 1830fi 1831 1832ac_exeext=$ac_cv_exeext 1833echo "$as_me:$LINENO: result: $ac_file" >&5 1834echo "${ECHO_T}$ac_file" >&6 1835 1836# Check the compiler produces executables we can run. If not, either 1837# the compiler is broken, or we cross compile. 1838echo "$as_me:$LINENO: checking whether the C compiler works" >&5 1839echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1840# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1841# If not cross compiling, check that we can run a simple program. 1842if test "$cross_compiling" != yes; then 1843 if { ac_try='./$ac_file' 1844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1845 (eval $ac_try) 2>&5 1846 ac_status=$? 1847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1848 (exit $ac_status); }; }; then 1849 cross_compiling=no 1850 else 1851 if test "$cross_compiling" = maybe; then 1852 cross_compiling=yes 1853 else 1854 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1855If you meant to cross compile, use \`--host'. 1856See \`config.log' for more details." >&5 1857echo "$as_me: error: cannot run C compiled programs. 1858If you meant to cross compile, use \`--host'. 1859See \`config.log' for more details." >&2;} 1860 { (exit 1); exit 1; }; } 1861 fi 1862 fi 1863fi 1864echo "$as_me:$LINENO: result: yes" >&5 1865echo "${ECHO_T}yes" >&6 1866 1867rm -f a.out a.exe conftest$ac_cv_exeext b.out 1868ac_clean_files=$ac_clean_files_save 1869# Check the compiler produces executables we can run. If not, either 1870# the compiler is broken, or we cross compile. 1871echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1872echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1873echo "$as_me:$LINENO: result: $cross_compiling" >&5 1874echo "${ECHO_T}$cross_compiling" >&6 1875 1876echo "$as_me:$LINENO: checking for suffix of executables" >&5 1877echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1879 (eval $ac_link) 2>&5 1880 ac_status=$? 1881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1882 (exit $ac_status); }; then 1883 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1884# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1885# work properly (i.e., refer to `conftest.exe'), while it won't with 1886# `rm'. 1887for ac_file in conftest.exe conftest conftest.*; do 1888 test -f "$ac_file" || continue 1889 case $ac_file in 1890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1891 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1892 export ac_cv_exeext 1893 break;; 1894 * ) break;; 1895 esac 1896done 1897else 1898 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1899See \`config.log' for more details." >&5 1900echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1901See \`config.log' for more details." >&2;} 1902 { (exit 1); exit 1; }; } 1903fi 1904 1905rm -f conftest$ac_cv_exeext 1906echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1907echo "${ECHO_T}$ac_cv_exeext" >&6 1908 1909rm -f conftest.$ac_ext 1910EXEEXT=$ac_cv_exeext 1911ac_exeext=$EXEEXT 1912echo "$as_me:$LINENO: checking for suffix of object files" >&5 1913echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1914if test "${ac_cv_objext+set}" = set; then 1915 echo $ECHO_N "(cached) $ECHO_C" >&6 1916else 1917 cat >conftest.$ac_ext <<_ACEOF 1918#line $LINENO "configure" 1919/* confdefs.h. */ 1920_ACEOF 1921cat confdefs.h >>conftest.$ac_ext 1922cat >>conftest.$ac_ext <<_ACEOF 1923/* end confdefs.h. */ 1924 1925int 1926main () 1927{ 1928 1929 ; 1930 return 0; 1931} 1932_ACEOF 1933rm -f conftest.o conftest.obj 1934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1935 (eval $ac_compile) 2>&5 1936 ac_status=$? 1937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1938 (exit $ac_status); }; then 1939 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1940 case $ac_file in 1941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 1942 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1943 break;; 1944 esac 1945done 1946else 1947 echo "$as_me: failed program was:" >&5 1948sed 's/^/| /' conftest.$ac_ext >&5 1949 1950{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 1951See \`config.log' for more details." >&5 1952echo "$as_me: error: cannot compute suffix of object files: cannot compile 1953See \`config.log' for more details." >&2;} 1954 { (exit 1); exit 1; }; } 1955fi 1956 1957rm -f conftest.$ac_cv_objext conftest.$ac_ext 1958fi 1959echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 1960echo "${ECHO_T}$ac_cv_objext" >&6 1961OBJEXT=$ac_cv_objext 1962ac_objext=$OBJEXT 1963echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 1964echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1965if test "${ac_cv_c_compiler_gnu+set}" = set; then 1966 echo $ECHO_N "(cached) $ECHO_C" >&6 1967else 1968 cat >conftest.$ac_ext <<_ACEOF 1969#line $LINENO "configure" 1970/* confdefs.h. */ 1971_ACEOF 1972cat confdefs.h >>conftest.$ac_ext 1973cat >>conftest.$ac_ext <<_ACEOF 1974/* end confdefs.h. */ 1975 1976int 1977main () 1978{ 1979#ifndef __GNUC__ 1980 choke me 1981#endif 1982 1983 ; 1984 return 0; 1985} 1986_ACEOF 1987rm -f conftest.$ac_objext 1988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1989 (eval $ac_compile) 2>&5 1990 ac_status=$? 1991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1992 (exit $ac_status); } && 1993 { ac_try='test -s conftest.$ac_objext' 1994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1995 (eval $ac_try) 2>&5 1996 ac_status=$? 1997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1998 (exit $ac_status); }; }; then 1999 ac_compiler_gnu=yes 2000else 2001 echo "$as_me: failed program was:" >&5 2002sed 's/^/| /' conftest.$ac_ext >&5 2003 2004ac_compiler_gnu=no 2005fi 2006rm -f conftest.$ac_objext conftest.$ac_ext 2007ac_cv_c_compiler_gnu=$ac_compiler_gnu 2008 2009fi 2010echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2011echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2012GCC=`test $ac_compiler_gnu = yes && echo yes` 2013ac_test_CFLAGS=${CFLAGS+set} 2014ac_save_CFLAGS=$CFLAGS 2015CFLAGS="-g" 2016echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2017echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2018if test "${ac_cv_prog_cc_g+set}" = set; then 2019 echo $ECHO_N "(cached) $ECHO_C" >&6 2020else 2021 cat >conftest.$ac_ext <<_ACEOF 2022#line $LINENO "configure" 2023/* confdefs.h. */ 2024_ACEOF 2025cat confdefs.h >>conftest.$ac_ext 2026cat >>conftest.$ac_ext <<_ACEOF 2027/* end confdefs.h. */ 2028 2029int 2030main () 2031{ 2032 2033 ; 2034 return 0; 2035} 2036_ACEOF 2037rm -f conftest.$ac_objext 2038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2039 (eval $ac_compile) 2>&5 2040 ac_status=$? 2041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2042 (exit $ac_status); } && 2043 { ac_try='test -s conftest.$ac_objext' 2044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2045 (eval $ac_try) 2>&5 2046 ac_status=$? 2047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2048 (exit $ac_status); }; }; then 2049 ac_cv_prog_cc_g=yes 2050else 2051 echo "$as_me: failed program was:" >&5 2052sed 's/^/| /' conftest.$ac_ext >&5 2053 2054ac_cv_prog_cc_g=no 2055fi 2056rm -f conftest.$ac_objext conftest.$ac_ext 2057fi 2058echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2059echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2060if test "$ac_test_CFLAGS" = set; then 2061 CFLAGS=$ac_save_CFLAGS 2062elif test $ac_cv_prog_cc_g = yes; then 2063 if test "$GCC" = yes; then 2064 CFLAGS="-g -O2" 2065 else 2066 CFLAGS="-g" 2067 fi 2068else 2069 if test "$GCC" = yes; then 2070 CFLAGS="-O2" 2071 else 2072 CFLAGS= 2073 fi 2074fi 2075echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2076echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2077if test "${ac_cv_prog_cc_stdc+set}" = set; then 2078 echo $ECHO_N "(cached) $ECHO_C" >&6 2079else 2080 ac_cv_prog_cc_stdc=no 2081ac_save_CC=$CC 2082cat >conftest.$ac_ext <<_ACEOF 2083#line $LINENO "configure" 2084/* confdefs.h. */ 2085_ACEOF 2086cat confdefs.h >>conftest.$ac_ext 2087cat >>conftest.$ac_ext <<_ACEOF 2088/* end confdefs.h. */ 2089#include <stdarg.h> 2090#include <stdio.h> 2091#include <sys/types.h> 2092#include <sys/stat.h> 2093/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2094struct buf { int x; }; 2095FILE * (*rcsopen) (struct buf *, struct stat *, int); 2096static char *e (p, i) 2097 char **p; 2098 int i; 2099{ 2100 return p[i]; 2101} 2102static char *f (char * (*g) (char **, int), char **p, ...) 2103{ 2104 char *s; 2105 va_list v; 2106 va_start (v,p); 2107 s = g (p, va_arg (v,int)); 2108 va_end (v); 2109 return s; 2110} 2111int test (int i, double x); 2112struct s1 {int (*f) (int a);}; 2113struct s2 {int (*f) (double a);}; 2114int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2115int argc; 2116char **argv; 2117int 2118main () 2119{ 2120return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2121 ; 2122 return 0; 2123} 2124_ACEOF 2125# Don't try gcc -ansi; that turns off useful extensions and 2126# breaks some systems' header files. 2127# AIX -qlanglvl=ansi 2128# Ultrix and OSF/1 -std1 2129# HP-UX 10.20 and later -Ae 2130# HP-UX older versions -Aa -D_HPUX_SOURCE 2131# SVR4 -Xc -D__EXTENSIONS__ 2132for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2133do 2134 CC="$ac_save_CC $ac_arg" 2135 rm -f conftest.$ac_objext 2136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2137 (eval $ac_compile) 2>&5 2138 ac_status=$? 2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2140 (exit $ac_status); } && 2141 { ac_try='test -s conftest.$ac_objext' 2142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2143 (eval $ac_try) 2>&5 2144 ac_status=$? 2145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2146 (exit $ac_status); }; }; then 2147 ac_cv_prog_cc_stdc=$ac_arg 2148break 2149else 2150 echo "$as_me: failed program was:" >&5 2151sed 's/^/| /' conftest.$ac_ext >&5 2152 2153fi 2154rm -f conftest.$ac_objext 2155done 2156rm -f conftest.$ac_ext conftest.$ac_objext 2157CC=$ac_save_CC 2158 2159fi 2160 2161case "x$ac_cv_prog_cc_stdc" in 2162 x|xno) 2163 echo "$as_me:$LINENO: result: none needed" >&5 2164echo "${ECHO_T}none needed" >&6 ;; 2165 *) 2166 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2167echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2168 CC="$CC $ac_cv_prog_cc_stdc" ;; 2169esac 2170 2171# Some people use a C++ compiler to compile C. Since we use `exit', 2172# in C++ we need to declare it. In case someone uses the same compiler 2173# for both compiling C and C++ we need to have the C++ compiler decide 2174# the declaration of exit, since it's the most demanding environment. 2175cat >conftest.$ac_ext <<_ACEOF 2176#ifndef __cplusplus 2177 choke me 2178#endif 2179_ACEOF 2180rm -f conftest.$ac_objext 2181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2182 (eval $ac_compile) 2>&5 2183 ac_status=$? 2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2185 (exit $ac_status); } && 2186 { ac_try='test -s conftest.$ac_objext' 2187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2188 (eval $ac_try) 2>&5 2189 ac_status=$? 2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2191 (exit $ac_status); }; }; then 2192 for ac_declaration in \ 2193 ''\ 2194 '#include <stdlib.h>' \ 2195 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2196 'extern "C" void std::exit (int); using std::exit;' \ 2197 'extern "C" void exit (int) throw ();' \ 2198 'extern "C" void exit (int);' \ 2199 'void exit (int);' 2200do 2201 cat >conftest.$ac_ext <<_ACEOF 2202#line $LINENO "configure" 2203/* confdefs.h. */ 2204_ACEOF 2205cat confdefs.h >>conftest.$ac_ext 2206cat >>conftest.$ac_ext <<_ACEOF 2207/* end confdefs.h. */ 2208#include <stdlib.h> 2209$ac_declaration 2210int 2211main () 2212{ 2213exit (42); 2214 ; 2215 return 0; 2216} 2217_ACEOF 2218rm -f conftest.$ac_objext 2219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2220 (eval $ac_compile) 2>&5 2221 ac_status=$? 2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2223 (exit $ac_status); } && 2224 { ac_try='test -s conftest.$ac_objext' 2225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2226 (eval $ac_try) 2>&5 2227 ac_status=$? 2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2229 (exit $ac_status); }; }; then 2230 : 2231else 2232 echo "$as_me: failed program was:" >&5 2233sed 's/^/| /' conftest.$ac_ext >&5 2234 2235continue 2236fi 2237rm -f conftest.$ac_objext conftest.$ac_ext 2238 cat >conftest.$ac_ext <<_ACEOF 2239#line $LINENO "configure" 2240/* confdefs.h. */ 2241_ACEOF 2242cat confdefs.h >>conftest.$ac_ext 2243cat >>conftest.$ac_ext <<_ACEOF 2244/* end confdefs.h. */ 2245$ac_declaration 2246int 2247main () 2248{ 2249exit (42); 2250 ; 2251 return 0; 2252} 2253_ACEOF 2254rm -f conftest.$ac_objext 2255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2256 (eval $ac_compile) 2>&5 2257 ac_status=$? 2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2259 (exit $ac_status); } && 2260 { ac_try='test -s conftest.$ac_objext' 2261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2262 (eval $ac_try) 2>&5 2263 ac_status=$? 2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2265 (exit $ac_status); }; }; then 2266 break 2267else 2268 echo "$as_me: failed program was:" >&5 2269sed 's/^/| /' conftest.$ac_ext >&5 2270 2271fi 2272rm -f conftest.$ac_objext conftest.$ac_ext 2273done 2274rm -f conftest* 2275if test -n "$ac_declaration"; then 2276 echo '#ifdef __cplusplus' >>confdefs.h 2277 echo $ac_declaration >>confdefs.h 2278 echo '#endif' >>confdefs.h 2279fi 2280 2281else 2282 echo "$as_me: failed program was:" >&5 2283sed 's/^/| /' conftest.$ac_ext >&5 2284 2285fi 2286rm -f conftest.$ac_objext conftest.$ac_ext 2287ac_ext=c 2288ac_cpp='$CPP $CPPFLAGS' 2289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2291ac_compiler_gnu=$ac_cv_c_compiler_gnu 2292 2293 if test "$GCC" = yes ; then 2294 if test "$SHLICC2" = yes ; then 2295 ac_cv_lbl_gcc_vers=2 2296 V_CCOPT="-O2" 2297 else 2298 echo "$as_me:$LINENO: checking gcc version" >&5 2299echo $ECHO_N "checking gcc version... $ECHO_C" >&6 2300 if test "${ac_cv_lbl_gcc_vers+set}" = set; then 2301 echo $ECHO_N "(cached) $ECHO_C" >&6 2302else 2303 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \ 2304 sed -e '/^gcc version /!d' \ 2305 -e 's/^gcc version //' \ 2306 -e 's/ .*//' -e 's/^[^0-9]*//' \ 2307 -e 's/\..*//'` 2308fi 2309 2310 echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5 2311echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6 2312 if test $ac_cv_lbl_gcc_vers -gt 1 ; then 2313 V_CCOPT="-O2" 2314 fi 2315 fi 2316 else 2317 echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5 2318echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6 2319 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then 2320 echo $ECHO_N "(cached) $ECHO_C" >&6 2321else 2322 2323cat >conftest.$ac_ext <<_ACEOF 2324#line $LINENO "configure" 2325/* confdefs.h. */ 2326_ACEOF 2327cat confdefs.h >>conftest.$ac_ext 2328cat >>conftest.$ac_ext <<_ACEOF 2329/* end confdefs.h. */ 2330#include <sys/types.h> 2331int 2332main () 2333{ 2334int frob(int, char *) 2335 ; 2336 return 0; 2337} 2338_ACEOF 2339rm -f conftest.$ac_objext 2340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2341 (eval $ac_compile) 2>&5 2342 ac_status=$? 2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2344 (exit $ac_status); } && 2345 { ac_try='test -s conftest.$ac_objext' 2346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2347 (eval $ac_try) 2>&5 2348 ac_status=$? 2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2350 (exit $ac_status); }; }; then 2351 ac_cv_lbl_cc_ansi_prototypes=yes 2352else 2353 echo "$as_me: failed program was:" >&5 2354sed 's/^/| /' conftest.$ac_ext >&5 2355 2356ac_cv_lbl_cc_ansi_prototypes=no 2357fi 2358rm -f conftest.$ac_objext conftest.$ac_ext 2359fi 2360 2361 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5 2362echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6 2363 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then 2364 case "$host_os" in 2365 2366 hpux*) 2367 echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5 2368echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6 2369 savedcflags="$CFLAGS" 2370 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS" 2371 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then 2372 echo $ECHO_N "(cached) $ECHO_C" >&6 2373else 2374 cat >conftest.$ac_ext <<_ACEOF 2375#line $LINENO "configure" 2376/* confdefs.h. */ 2377_ACEOF 2378cat confdefs.h >>conftest.$ac_ext 2379cat >>conftest.$ac_ext <<_ACEOF 2380/* end confdefs.h. */ 2381#include <sys/types.h> 2382int 2383main () 2384{ 2385int frob(int, char *) 2386 ; 2387 return 0; 2388} 2389_ACEOF 2390rm -f conftest.$ac_objext 2391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2392 (eval $ac_compile) 2>&5 2393 ac_status=$? 2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2395 (exit $ac_status); } && 2396 { ac_try='test -s conftest.$ac_objext' 2397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2398 (eval $ac_try) 2>&5 2399 ac_status=$? 2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2401 (exit $ac_status); }; }; then 2402 ac_cv_lbl_cc_hpux_cc_aa=yes 2403else 2404 echo "$as_me: failed program was:" >&5 2405sed 's/^/| /' conftest.$ac_ext >&5 2406 2407ac_cv_lbl_cc_hpux_cc_aa=no 2408fi 2409rm -f conftest.$ac_objext conftest.$ac_ext 2410fi 2411 2412 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5 2413echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6 2414 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then 2415 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5 2416echo "$as_me: error: see the INSTALL doc for more info" >&2;} 2417 { (exit 1); exit 1; }; } 2418 fi 2419 CFLAGS="$savedcflags" 2420 V_CCOPT="-Aa $V_CCOPT" 2421 cat >>confdefs.h <<\_ACEOF 2422#define _HPUX_SOURCE 1 2423_ACEOF 2424 2425 ;; 2426 2427 *) 2428 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5 2429echo "$as_me: error: see the INSTALL doc for more info" >&2;} 2430 { (exit 1); exit 1; }; } 2431 ;; 2432 esac 2433 fi 2434 V_INCLS="$V_INCLS -I/usr/local/include" 2435 LDFLAGS="$LDFLAGS -L/usr/local/lib" 2436 2437 case "$host_os" in 2438 2439 irix*) 2440 V_CCOPT="$V_CCOPT -xansi -signed -O" 2441 ;; 2442 2443 osf*) 2444 V_CCOPT="$V_CCOPT -std1 -O" 2445 ;; 2446 2447 ultrix*) 2448 echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5 2449echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6 2450 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then 2451 echo $ECHO_N "(cached) $ECHO_C" >&6 2452else 2453 cat >conftest.$ac_ext <<_ACEOF 2454#line $LINENO "configure" 2455/* confdefs.h. */ 2456_ACEOF 2457cat confdefs.h >>conftest.$ac_ext 2458cat >>conftest.$ac_ext <<_ACEOF 2459/* end confdefs.h. */ 2460#include <sys/types.h> 2461int 2462main () 2463{ 2464struct a { int b; }; 2465 void c(const struct a *) 2466 ; 2467 return 0; 2468} 2469_ACEOF 2470rm -f conftest.$ac_objext 2471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2472 (eval $ac_compile) 2>&5 2473 ac_status=$? 2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2475 (exit $ac_status); } && 2476 { ac_try='test -s conftest.$ac_objext' 2477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2478 (eval $ac_try) 2>&5 2479 ac_status=$? 2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2481 (exit $ac_status); }; }; then 2482 ac_cv_lbl_cc_const_proto=yes 2483else 2484 echo "$as_me: failed program was:" >&5 2485sed 's/^/| /' conftest.$ac_ext >&5 2486 2487ac_cv_lbl_cc_const_proto=no 2488fi 2489rm -f conftest.$ac_objext conftest.$ac_ext 2490fi 2491 2492 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5 2493echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6 2494 if test $ac_cv_lbl_cc_const_proto = no ; then 2495 cat >>confdefs.h <<\_ACEOF 2496#define const 2497_ACEOF 2498 2499 fi 2500 ;; 2501 esac 2502 fi 2503 2504echo "$as_me:$LINENO: checking for inline" >&5 2505echo $ECHO_N "checking for inline... $ECHO_C" >&6 2506 if test "${ac_cv_lbl_inline+set}" = set; then 2507 echo $ECHO_N "(cached) $ECHO_C" >&6 2508else 2509 2510 ac_cv_lbl_inline="" 2511 ac_lbl_cc_inline=no 2512 for ac_lbl_inline in inline __inline__ __inline 2513 do 2514 cat >conftest.$ac_ext <<_ACEOF 2515#line $LINENO "configure" 2516/* confdefs.h. */ 2517_ACEOF 2518cat confdefs.h >>conftest.$ac_ext 2519cat >>conftest.$ac_ext <<_ACEOF 2520/* end confdefs.h. */ 2521#define inline $ac_lbl_inline 2522 static inline struct iltest *foo(void); 2523 struct iltest { 2524 int iltest1; 2525 int iltest2; 2526 }; 2527 2528 static inline struct iltest * 2529 foo() 2530 { 2531 static struct iltest xxx; 2532 2533 return &xxx; 2534 } 2535int 2536main () 2537{ 2538 2539 ; 2540 return 0; 2541} 2542_ACEOF 2543rm -f conftest.$ac_objext 2544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2545 (eval $ac_compile) 2>&5 2546 ac_status=$? 2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2548 (exit $ac_status); } && 2549 { ac_try='test -s conftest.$ac_objext' 2550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2551 (eval $ac_try) 2>&5 2552 ac_status=$? 2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2554 (exit $ac_status); }; }; then 2555 ac_lbl_cc_inline=yes 2556else 2557 echo "$as_me: failed program was:" >&5 2558sed 's/^/| /' conftest.$ac_ext >&5 2559 2560fi 2561rm -f conftest.$ac_objext conftest.$ac_ext 2562 if test "$ac_lbl_cc_inline" = yes ; then 2563 break; 2564 fi 2565 done 2566 if test "$ac_lbl_cc_inline" = yes ; then 2567 ac_cv_lbl_inline=$ac_lbl_inline 2568 fi 2569fi 2570 2571 if test ! -z "$ac_cv_lbl_inline" ; then 2572 echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5 2573echo "${ECHO_T}$ac_cv_lbl_inline" >&6 2574 else 2575 echo "$as_me:$LINENO: result: no" >&5 2576echo "${ECHO_T}no" >&6 2577 fi 2578 2579cat >>confdefs.h <<_ACEOF 2580#define inline $ac_cv_lbl_inline 2581_ACEOF 2582 2583 2584echo "$as_me:$LINENO: checking for __attribute__" >&5 2585echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6 2586if test "${ac_cv___attribute__+set}" = set; then 2587 echo $ECHO_N "(cached) $ECHO_C" >&6 2588else 2589 2590cat >conftest.$ac_ext <<_ACEOF 2591#line $LINENO "configure" 2592/* confdefs.h. */ 2593_ACEOF 2594cat confdefs.h >>conftest.$ac_ext 2595cat >>conftest.$ac_ext <<_ACEOF 2596/* end confdefs.h. */ 2597 2598#include <stdlib.h> 2599 2600static void foo(void) __attribute__ ((noreturn)); 2601 2602static void 2603foo(void) 2604{ 2605 exit(1); 2606} 2607 2608int 2609main(int argc, char **argv) 2610{ 2611 foo(); 2612} 2613 2614_ACEOF 2615rm -f conftest.$ac_objext 2616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2617 (eval $ac_compile) 2>&5 2618 ac_status=$? 2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2620 (exit $ac_status); } && 2621 { ac_try='test -s conftest.$ac_objext' 2622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2623 (eval $ac_try) 2>&5 2624 ac_status=$? 2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2626 (exit $ac_status); }; }; then 2627 ac_cv___attribute__=yes 2628else 2629 echo "$as_me: failed program was:" >&5 2630sed 's/^/| /' conftest.$ac_ext >&5 2631 2632ac_cv___attribute__=no 2633fi 2634rm -f conftest.$ac_objext conftest.$ac_ext 2635fi 2636 2637if test "$ac_cv___attribute__" = "yes"; then 2638 2639cat >>confdefs.h <<\_ACEOF 2640#define HAVE___ATTRIBUTE__ 1 2641_ACEOF 2642 2643 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\"" 2644else 2645 V_DEFS="$V_DEFS -D_U_=\"\"" 2646fi 2647echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5 2648echo "${ECHO_T}$ac_cv___attribute__" >&6 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 3126for ac_header in fcntl.h rpc/rpcent.h netdnet/dnetdb.h 3127do 3128as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3129if eval "test \"\${$as_ac_Header+set}\" = set"; then 3130 echo "$as_me:$LINENO: checking for $ac_header" >&5 3131echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3132if eval "test \"\${$as_ac_Header+set}\" = set"; then 3133 echo $ECHO_N "(cached) $ECHO_C" >&6 3134fi 3135echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3136echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3137else 3138 # Is the header compilable? 3139echo "$as_me:$LINENO: checking $ac_header usability" >&5 3140echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3141cat >conftest.$ac_ext <<_ACEOF 3142#line $LINENO "configure" 3143/* confdefs.h. */ 3144_ACEOF 3145cat confdefs.h >>conftest.$ac_ext 3146cat >>conftest.$ac_ext <<_ACEOF 3147/* end confdefs.h. */ 3148$ac_includes_default 3149#include <$ac_header> 3150_ACEOF 3151rm -f conftest.$ac_objext 3152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3153 (eval $ac_compile) 2>&5 3154 ac_status=$? 3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3156 (exit $ac_status); } && 3157 { ac_try='test -s conftest.$ac_objext' 3158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3159 (eval $ac_try) 2>&5 3160 ac_status=$? 3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3162 (exit $ac_status); }; }; then 3163 ac_header_compiler=yes 3164else 3165 echo "$as_me: failed program was:" >&5 3166sed 's/^/| /' conftest.$ac_ext >&5 3167 3168ac_header_compiler=no 3169fi 3170rm -f conftest.$ac_objext conftest.$ac_ext 3171echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3172echo "${ECHO_T}$ac_header_compiler" >&6 3173 3174# Is the header present? 3175echo "$as_me:$LINENO: checking $ac_header presence" >&5 3176echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 3177cat >conftest.$ac_ext <<_ACEOF 3178#line $LINENO "configure" 3179/* confdefs.h. */ 3180_ACEOF 3181cat confdefs.h >>conftest.$ac_ext 3182cat >>conftest.$ac_ext <<_ACEOF 3183/* end confdefs.h. */ 3184#include <$ac_header> 3185_ACEOF 3186if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3187 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3188 ac_status=$? 3189 grep -v '^ *+' conftest.er1 >conftest.err 3190 rm -f conftest.er1 3191 cat conftest.err >&5 3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3193 (exit $ac_status); } >/dev/null; then 3194 if test -s conftest.err; then 3195 ac_cpp_err=$ac_c_preproc_warn_flag 3196 else 3197 ac_cpp_err= 3198 fi 3199else 3200 ac_cpp_err=yes 3201fi 3202if test -z "$ac_cpp_err"; then 3203 ac_header_preproc=yes 3204else 3205 echo "$as_me: failed program was:" >&5 3206sed 's/^/| /' conftest.$ac_ext >&5 3207 3208 ac_header_preproc=no 3209fi 3210rm -f conftest.err conftest.$ac_ext 3211echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3212echo "${ECHO_T}$ac_header_preproc" >&6 3213 3214# So? What about this header? 3215case $ac_header_compiler:$ac_header_preproc in 3216 yes:no ) 3217 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3218echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3220echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3221 ( 3222 cat <<\_ASBOX 3223## ------------------------------------ ## 3224## Report this to bug-autoconf@gnu.org. ## 3225## ------------------------------------ ## 3226_ASBOX 3227 ) | 3228 sed "s/^/$as_me: WARNING: /" >&2 3229 ;; 3230 no:yes ) 3231 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3232echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3233 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3234echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3235 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3236echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3237 ( 3238 cat <<\_ASBOX 3239## ------------------------------------ ## 3240## Report this to bug-autoconf@gnu.org. ## 3241## ------------------------------------ ## 3242_ASBOX 3243 ) | 3244 sed "s/^/$as_me: WARNING: /" >&2 3245 ;; 3246esac 3247echo "$as_me:$LINENO: checking for $ac_header" >&5 3248echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3249if eval "test \"\${$as_ac_Header+set}\" = set"; then 3250 echo $ECHO_N "(cached) $ECHO_C" >&6 3251else 3252 eval "$as_ac_Header=$ac_header_preproc" 3253fi 3254echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3255echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3256 3257fi 3258if test `eval echo '${'$as_ac_Header'}'` = yes; then 3259 cat >>confdefs.h <<_ACEOF 3260#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3261_ACEOF 3262 3263fi 3264 3265done 3266 3267 3268for ac_header in netinet/if_ether.h 3269do 3270as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3271echo "$as_me:$LINENO: checking for $ac_header" >&5 3272echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3273if eval "test \"\${$as_ac_Header+set}\" = set"; then 3274 echo $ECHO_N "(cached) $ECHO_C" >&6 3275else 3276 cat >conftest.$ac_ext <<_ACEOF 3277#line $LINENO "configure" 3278/* confdefs.h. */ 3279_ACEOF 3280cat confdefs.h >>conftest.$ac_ext 3281cat >>conftest.$ac_ext <<_ACEOF 3282/* end confdefs.h. */ 3283#include <sys/types.h> 3284#include <sys/socket.h> 3285 3286#include <$ac_header> 3287_ACEOF 3288rm -f conftest.$ac_objext 3289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3290 (eval $ac_compile) 2>&5 3291 ac_status=$? 3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3293 (exit $ac_status); } && 3294 { ac_try='test -s conftest.$ac_objext' 3295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3296 (eval $ac_try) 2>&5 3297 ac_status=$? 3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3299 (exit $ac_status); }; }; then 3300 eval "$as_ac_Header=yes" 3301else 3302 echo "$as_me: failed program was:" >&5 3303sed 's/^/| /' conftest.$ac_ext >&5 3304 3305eval "$as_ac_Header=no" 3306fi 3307rm -f conftest.$ac_objext conftest.$ac_ext 3308fi 3309echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3310echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3311if test `eval echo '${'$as_ac_Header'}'` = yes; then 3312 cat >>confdefs.h <<_ACEOF 3313#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3314_ACEOF 3315 3316fi 3317 3318done 3319 3320if test "$ac_cv_header_netinet_if_ether_h" != yes; then 3321 # 3322 # The simple test didn't work. 3323 # Do we need to include <net/if.h> first? 3324 # Unset ac_cv_header_netinet_if_ether_h so we don't 3325 # treat the previous failure as a cached value and 3326 # suppress the next test. 3327 # 3328 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5 3329echo "$as_me: Rechecking with some additional includes" >&6;} 3330 unset ac_cv_header_netinet_if_ether_h 3331 3332for ac_header in netinet/if_ether.h 3333do 3334as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3335echo "$as_me:$LINENO: checking for $ac_header" >&5 3336echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3337if eval "test \"\${$as_ac_Header+set}\" = set"; then 3338 echo $ECHO_N "(cached) $ECHO_C" >&6 3339else 3340 cat >conftest.$ac_ext <<_ACEOF 3341#line $LINENO "configure" 3342/* confdefs.h. */ 3343_ACEOF 3344cat confdefs.h >>conftest.$ac_ext 3345cat >>conftest.$ac_ext <<_ACEOF 3346/* end confdefs.h. */ 3347#include <sys/types.h> 3348#include <sys/socket.h> 3349#include <netinet/in.h> 3350struct mbuf; 3351struct rtentry; 3352#include <net/if.h> 3353 3354#include <$ac_header> 3355_ACEOF 3356rm -f conftest.$ac_objext 3357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3358 (eval $ac_compile) 2>&5 3359 ac_status=$? 3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3361 (exit $ac_status); } && 3362 { ac_try='test -s conftest.$ac_objext' 3363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3364 (eval $ac_try) 2>&5 3365 ac_status=$? 3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3367 (exit $ac_status); }; }; then 3368 eval "$as_ac_Header=yes" 3369else 3370 echo "$as_me: failed program was:" >&5 3371sed 's/^/| /' conftest.$ac_ext >&5 3372 3373eval "$as_ac_Header=no" 3374fi 3375rm -f conftest.$ac_objext conftest.$ac_ext 3376fi 3377echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3378echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3379if test `eval echo '${'$as_ac_Header'}'` = yes; then 3380 cat >>confdefs.h <<_ACEOF 3381#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3382_ACEOF 3383 3384fi 3385 3386done 3387 3388fi 3389 3390echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 3391echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 3392if test "${ac_cv_header_time+set}" = set; then 3393 echo $ECHO_N "(cached) $ECHO_C" >&6 3394else 3395 cat >conftest.$ac_ext <<_ACEOF 3396#line $LINENO "configure" 3397/* confdefs.h. */ 3398_ACEOF 3399cat confdefs.h >>conftest.$ac_ext 3400cat >>conftest.$ac_ext <<_ACEOF 3401/* end confdefs.h. */ 3402#include <sys/types.h> 3403#include <sys/time.h> 3404#include <time.h> 3405 3406int 3407main () 3408{ 3409if ((struct tm *) 0) 3410return 0; 3411 ; 3412 return 0; 3413} 3414_ACEOF 3415rm -f conftest.$ac_objext 3416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3417 (eval $ac_compile) 2>&5 3418 ac_status=$? 3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3420 (exit $ac_status); } && 3421 { ac_try='test -s conftest.$ac_objext' 3422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3423 (eval $ac_try) 2>&5 3424 ac_status=$? 3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3426 (exit $ac_status); }; }; then 3427 ac_cv_header_time=yes 3428else 3429 echo "$as_me: failed program was:" >&5 3430sed 's/^/| /' conftest.$ac_ext >&5 3431 3432ac_cv_header_time=no 3433fi 3434rm -f conftest.$ac_objext conftest.$ac_ext 3435fi 3436echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 3437echo "${ECHO_T}$ac_cv_header_time" >&6 3438if test $ac_cv_header_time = yes; then 3439 3440cat >>confdefs.h <<\_ACEOF 3441#define TIME_WITH_SYS_TIME 1 3442_ACEOF 3443 3444fi 3445 3446 3447case "$host_os" in 3448 3449linux*) 3450 echo "$as_me:$LINENO: checking Linux kernel version" >&5 3451echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6 3452 if test "$cross_compiling" = yes; then 3453 if test "${ac_cv_linux_vers+set}" = set; then 3454 echo $ECHO_N "(cached) $ECHO_C" >&6 3455else 3456 ac_cv_linux_vers=unknown 3457fi 3458 3459 else 3460 if test "${ac_cv_linux_vers+set}" = set; then 3461 echo $ECHO_N "(cached) $ECHO_C" >&6 3462else 3463 ac_cv_linux_vers=`uname -r 2>&1 | \ 3464 sed -n -e '$s/.* //' -e '$s/\..*//p'` 3465fi 3466 3467 fi 3468 echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5 3469echo "${ECHO_T}$ac_cv_linux_vers" >&6 3470 if test $ac_cv_linux_vers = unknown ; then 3471 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5 3472echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;} 3473 { (exit 1); exit 1; }; } 3474 fi 3475 if test $ac_cv_linux_vers -lt 2 ; then 3476 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5 3477echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;} 3478 { (exit 1); exit 1; }; } 3479 fi 3480 ;; 3481 3482*) 3483 ;; 3484esac 3485 3486 3487 3488for ac_header in smi.h 3489do 3490as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3491if eval "test \"\${$as_ac_Header+set}\" = set"; then 3492 echo "$as_me:$LINENO: checking for $ac_header" >&5 3493echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3494if eval "test \"\${$as_ac_Header+set}\" = set"; then 3495 echo $ECHO_N "(cached) $ECHO_C" >&6 3496fi 3497echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3498echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3499else 3500 # Is the header compilable? 3501echo "$as_me:$LINENO: checking $ac_header usability" >&5 3502echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3503cat >conftest.$ac_ext <<_ACEOF 3504#line $LINENO "configure" 3505/* confdefs.h. */ 3506_ACEOF 3507cat confdefs.h >>conftest.$ac_ext 3508cat >>conftest.$ac_ext <<_ACEOF 3509/* end confdefs.h. */ 3510$ac_includes_default 3511#include <$ac_header> 3512_ACEOF 3513rm -f conftest.$ac_objext 3514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3515 (eval $ac_compile) 2>&5 3516 ac_status=$? 3517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3518 (exit $ac_status); } && 3519 { ac_try='test -s conftest.$ac_objext' 3520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3521 (eval $ac_try) 2>&5 3522 ac_status=$? 3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3524 (exit $ac_status); }; }; then 3525 ac_header_compiler=yes 3526else 3527 echo "$as_me: failed program was:" >&5 3528sed 's/^/| /' conftest.$ac_ext >&5 3529 3530ac_header_compiler=no 3531fi 3532rm -f conftest.$ac_objext conftest.$ac_ext 3533echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3534echo "${ECHO_T}$ac_header_compiler" >&6 3535 3536# Is the header present? 3537echo "$as_me:$LINENO: checking $ac_header presence" >&5 3538echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 3539cat >conftest.$ac_ext <<_ACEOF 3540#line $LINENO "configure" 3541/* confdefs.h. */ 3542_ACEOF 3543cat confdefs.h >>conftest.$ac_ext 3544cat >>conftest.$ac_ext <<_ACEOF 3545/* end confdefs.h. */ 3546#include <$ac_header> 3547_ACEOF 3548if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3550 ac_status=$? 3551 grep -v '^ *+' conftest.er1 >conftest.err 3552 rm -f conftest.er1 3553 cat conftest.err >&5 3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3555 (exit $ac_status); } >/dev/null; then 3556 if test -s conftest.err; then 3557 ac_cpp_err=$ac_c_preproc_warn_flag 3558 else 3559 ac_cpp_err= 3560 fi 3561else 3562 ac_cpp_err=yes 3563fi 3564if test -z "$ac_cpp_err"; then 3565 ac_header_preproc=yes 3566else 3567 echo "$as_me: failed program was:" >&5 3568sed 's/^/| /' conftest.$ac_ext >&5 3569 3570 ac_header_preproc=no 3571fi 3572rm -f conftest.err conftest.$ac_ext 3573echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3574echo "${ECHO_T}$ac_header_preproc" >&6 3575 3576# So? What about this header? 3577case $ac_header_compiler:$ac_header_preproc in 3578 yes:no ) 3579 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3580echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3582echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3583 ( 3584 cat <<\_ASBOX 3585## ------------------------------------ ## 3586## Report this to bug-autoconf@gnu.org. ## 3587## ------------------------------------ ## 3588_ASBOX 3589 ) | 3590 sed "s/^/$as_me: WARNING: /" >&2 3591 ;; 3592 no:yes ) 3593 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3594echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3595 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3596echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3598echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3599 ( 3600 cat <<\_ASBOX 3601## ------------------------------------ ## 3602## Report this to bug-autoconf@gnu.org. ## 3603## ------------------------------------ ## 3604_ASBOX 3605 ) | 3606 sed "s/^/$as_me: WARNING: /" >&2 3607 ;; 3608esac 3609echo "$as_me:$LINENO: checking for $ac_header" >&5 3610echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3611if eval "test \"\${$as_ac_Header+set}\" = set"; then 3612 echo $ECHO_N "(cached) $ECHO_C" >&6 3613else 3614 eval "$as_ac_Header=$ac_header_preproc" 3615fi 3616echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3617echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3618 3619fi 3620if test `eval echo '${'$as_ac_Header'}'` = yes; then 3621 cat >>confdefs.h <<_ACEOF 3622#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3623_ACEOF 3624 3625fi 3626 3627done 3628 3629 3630echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5 3631echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6 3632if test "${ac_cv_lib_smi_smiInit+set}" = set; then 3633 echo $ECHO_N "(cached) $ECHO_C" >&6 3634else 3635 ac_check_lib_save_LIBS=$LIBS 3636LIBS="-lsmi $LIBS" 3637cat >conftest.$ac_ext <<_ACEOF 3638#line $LINENO "configure" 3639/* confdefs.h. */ 3640_ACEOF 3641cat confdefs.h >>conftest.$ac_ext 3642cat >>conftest.$ac_ext <<_ACEOF 3643/* end confdefs.h. */ 3644 3645/* Override any gcc2 internal prototype to avoid an error. */ 3646#ifdef __cplusplus 3647extern "C" 3648#endif 3649/* We use char because int might match the return type of a gcc2 3650 builtin and then its argument prototype would still apply. */ 3651char smiInit (); 3652int 3653main () 3654{ 3655smiInit (); 3656 ; 3657 return 0; 3658} 3659_ACEOF 3660rm -f conftest.$ac_objext 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); } && 3666 { ac_try='test -s conftest$ac_exeext' 3667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3668 (eval $ac_try) 2>&5 3669 ac_status=$? 3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3671 (exit $ac_status); }; }; then 3672 ac_cv_lib_smi_smiInit=yes 3673else 3674 echo "$as_me: failed program was:" >&5 3675sed 's/^/| /' conftest.$ac_ext >&5 3676 3677ac_cv_lib_smi_smiInit=no 3678fi 3679rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3680LIBS=$ac_check_lib_save_LIBS 3681fi 3682echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5 3683echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6 3684if test $ac_cv_lib_smi_smiInit = yes; then 3685 cat >>confdefs.h <<_ACEOF 3686#define HAVE_LIBSMI 1 3687_ACEOF 3688 3689 LIBS="-lsmi $LIBS" 3690 3691fi 3692 3693if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes 3694then 3695echo "$as_me:$LINENO: checking whether to enable libsmi" >&5 3696echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6 3697 if test "$cross_compiling" = yes; then 3698 echo "$as_me:$LINENO: result: not when cross-compiling" >&5 3699echo "${ECHO_T}not when cross-compiling" >&6 3700 libsmi=no 3701 3702else 3703 cat >conftest.$ac_ext <<_ACEOF 3704#line $LINENO "configure" 3705/* confdefs.h. */ 3706_ACEOF 3707cat confdefs.h >>conftest.$ac_ext 3708cat >>conftest.$ac_ext <<_ACEOF 3709/* end confdefs.h. */ 3710 /* libsmi available check */ 3711#include <smi.h> 3712main() 3713{ 3714 int current, revision, age, n; 3715 const int required = 2; 3716 if (smiInit("")) 3717 exit(1); 3718 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version)) 3719 exit(2); 3720 n = sscanf(smi_library_version, "%d:%d:%d", ¤t, &revision, &age); 3721 if (n != 3) 3722 exit(3); 3723 if (required < current - age || required > current) 3724 exit(4); 3725 exit(0); 3726} 3727 3728_ACEOF 3729rm -f conftest$ac_exeext 3730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3731 (eval $ac_link) 2>&5 3732 ac_status=$? 3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3734 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3736 (eval $ac_try) 2>&5 3737 ac_status=$? 3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3739 (exit $ac_status); }; }; then 3740 echo "$as_me:$LINENO: result: yes" >&5 3741echo "${ECHO_T}yes" >&6 3742 cat >>confdefs.h <<\_ACEOF 3743#define LIBSMI 1 3744_ACEOF 3745 3746 libsmi=yes 3747else 3748 echo "$as_me: program exited with status $ac_status" >&5 3749echo "$as_me: failed program was:" >&5 3750sed 's/^/| /' conftest.$ac_ext >&5 3751 3752( exit $ac_status ) 3753 case $? in 3754 1) echo "$as_me:$LINENO: result: no - smiInit failed" >&5 3755echo "${ECHO_T}no - smiInit failed" >&6 ;; 3756 2) echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5 3757echo "${ECHO_T}no - header/library version mismatch" >&6 ;; 3758 3) echo "$as_me:$LINENO: result: no - can't determine library version" >&5 3759echo "${ECHO_T}no - can't determine library version" >&6 ;; 3760 4) echo "$as_me:$LINENO: result: no - too old" >&5 3761echo "${ECHO_T}no - too old" >&6 ;; 3762 *) echo "$as_me:$LINENO: result: no" >&5 3763echo "${ECHO_T}no" >&6 ;; 3764 esac 3765 libsmi=no 3766fi 3767rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3768fi 3769fi 3770 3771echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5 3772echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6 3773# Check whether --enable-smb or --disable-smb was given. 3774if test "${enable_smb+set}" = set; then 3775 enableval="$enable_smb" 3776 3777else 3778 enableval=yes 3779fi; 3780case "$enableval" in 3781yes) echo "$as_me:$LINENO: result: yes" >&5 3782echo "${ECHO_T}yes" >&6 3783 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5 3784echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;} 3785 cat >>confdefs.h <<\_ACEOF 3786#define TCPDUMP_DO_SMB 1 3787_ACEOF 3788 3789 LOCALSRC="print-smb.c smbutil.c $LOCALSRC" 3790 ;; 3791*) echo "$as_me:$LINENO: result: no" >&5 3792echo "${ECHO_T}no" >&6 3793 ;; 3794esac 3795 3796 3797# Check whether --with-user or --without-user was given. 3798if test "${with_user+set}" = set; then 3799 withval="$with_user" 3800 3801fi; 3802echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5 3803echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6 3804if test ! -z "$with_user" ; then 3805 cat >>confdefs.h <<_ACEOF 3806#define WITH_USER "$withval" 3807_ACEOF 3808 3809 echo "$as_me:$LINENO: result: to \"$withval\"" >&5 3810echo "${ECHO_T}to \"$withval\"" >&6 3811else 3812 echo "$as_me:$LINENO: result: no" >&5 3813echo "${ECHO_T}no" >&6 3814fi 3815 3816 3817# Check whether --with-chroot or --without-chroot was given. 3818if test "${with_chroot+set}" = set; then 3819 withval="$with_chroot" 3820 3821fi; 3822echo "$as_me:$LINENO: checking whether to chroot" >&5 3823echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6 3824if test ! -z "$with_chroot" ; then 3825 cat >>confdefs.h <<_ACEOF 3826#define WITH_CHROOT "$withval" 3827_ACEOF 3828 3829 echo "$as_me:$LINENO: result: to \"$withval\"" >&5 3830echo "${ECHO_T}to \"$withval\"" >&6 3831else 3832 echo "$as_me:$LINENO: result: no" >&5 3833echo "${ECHO_T}no" >&6 3834fi 3835 3836echo "$as_me:$LINENO: checking whether to enable ipv6" >&5 3837echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6 3838# Check whether --enable-ipv6 or --disable-ipv6 was given. 3839if test "${enable_ipv6+set}" = set; then 3840 enableval="$enable_ipv6" 3841 case "$enableval" in 3842yes) echo "$as_me:$LINENO: result: yes" >&5 3843echo "${ECHO_T}yes" >&6 3844 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" 3845 cat >>confdefs.h <<\_ACEOF 3846#define INET6 1 3847_ACEOF 3848 3849 ipv6=yes 3850 ;; 3851*) 3852 echo "$as_me:$LINENO: result: no" >&5 3853echo "${ECHO_T}no" >&6 3854 ipv6=no 3855 ;; 3856 esac 3857else 3858 if test "$cross_compiling" = yes; then 3859 echo "$as_me:$LINENO: result: no" >&5 3860echo "${ECHO_T}no" >&6 3861 ipv6=no 3862 3863else 3864 cat >conftest.$ac_ext <<_ACEOF 3865#line $LINENO "configure" 3866/* confdefs.h. */ 3867_ACEOF 3868cat confdefs.h >>conftest.$ac_ext 3869cat >>conftest.$ac_ext <<_ACEOF 3870/* end confdefs.h. */ 3871 /* AF_INET6 available check */ 3872#include <sys/types.h> 3873#include <sys/socket.h> 3874main() 3875{ 3876 if (socket(AF_INET6, SOCK_STREAM, 0) < 0) 3877 exit(1); 3878 else 3879 exit(0); 3880} 3881 3882_ACEOF 3883rm -f conftest$ac_exeext 3884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3885 (eval $ac_link) 2>&5 3886 ac_status=$? 3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3888 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3890 (eval $ac_try) 2>&5 3891 ac_status=$? 3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3893 (exit $ac_status); }; }; then 3894 echo "$as_me:$LINENO: result: yes" >&5 3895echo "${ECHO_T}yes" >&6 3896 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" 3897 cat >>confdefs.h <<\_ACEOF 3898#define INET6 1 3899_ACEOF 3900 3901 ipv6=yes 3902else 3903 echo "$as_me: program exited with status $ac_status" >&5 3904echo "$as_me: failed program was:" >&5 3905sed 's/^/| /' conftest.$ac_ext >&5 3906 3907( exit $ac_status ) 3908 echo "$as_me:$LINENO: result: no" >&5 3909echo "${ECHO_T}no" >&6 3910 ipv6=no 3911fi 3912rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3913fi 3914fi; 3915 3916ipv6type=unknown 3917ipv6lib=none 3918ipv6trylibc=no 3919 3920if test "$ipv6" = "yes"; then 3921 echo "$as_me:$LINENO: checking ipv6 stack type" >&5 3922echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6 3923 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do 3924 case $i in 3925 inria) 3926 cat >conftest.$ac_ext <<_ACEOF 3927#line $LINENO "configure" 3928/* confdefs.h. */ 3929_ACEOF 3930cat confdefs.h >>conftest.$ac_ext 3931cat >>conftest.$ac_ext <<_ACEOF 3932/* end confdefs.h. */ 3933#include <netinet/in.h> 3934#ifdef IPV6_INRIA_VERSION 3935yes 3936#endif 3937_ACEOF 3938if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3939 $EGREP "yes" >/dev/null 2>&1; then 3940 ipv6type=$i; 3941 CFLAGS="-DINET6 $CFLAGS" 3942fi 3943rm -f conftest* 3944 3945 ;; 3946 kame) 3947 cat >conftest.$ac_ext <<_ACEOF 3948#line $LINENO "configure" 3949/* confdefs.h. */ 3950_ACEOF 3951cat confdefs.h >>conftest.$ac_ext 3952cat >>conftest.$ac_ext <<_ACEOF 3953/* end confdefs.h. */ 3954#include <netinet/in.h> 3955#ifdef __KAME__ 3956yes 3957#endif 3958_ACEOF 3959if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3960 $EGREP "yes" >/dev/null 2>&1; then 3961 ipv6type=$i; 3962 ipv6lib=inet6; 3963 ipv6libdir=/usr/local/v6/lib; 3964 ipv6trylibc=yes; 3965 CFLAGS="-DINET6 $CFLAGS" 3966fi 3967rm -f conftest* 3968 3969 ;; 3970 linux-glibc) 3971 cat >conftest.$ac_ext <<_ACEOF 3972#line $LINENO "configure" 3973/* confdefs.h. */ 3974_ACEOF 3975cat confdefs.h >>conftest.$ac_ext 3976cat >>conftest.$ac_ext <<_ACEOF 3977/* end confdefs.h. */ 3978#include <features.h> 3979#if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1 3980yes 3981#endif 3982_ACEOF 3983if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3984 $EGREP "yes" >/dev/null 2>&1; then 3985 ipv6type=$i; 3986 CFLAGS="-DINET6 $CFLAGS" 3987fi 3988rm -f conftest* 3989 3990 ;; 3991 linux-libinet6) 3992 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then 3993 ipv6type=$i 3994 ipv6lib=inet6 3995 ipv6libdir=/usr/inet6/lib 3996 ipv6trylibc=yes; 3997 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS" 3998 fi 3999 ;; 4000 toshiba) 4001 cat >conftest.$ac_ext <<_ACEOF 4002#line $LINENO "configure" 4003/* confdefs.h. */ 4004_ACEOF 4005cat confdefs.h >>conftest.$ac_ext 4006cat >>conftest.$ac_ext <<_ACEOF 4007/* end confdefs.h. */ 4008#include <sys/param.h> 4009#ifdef _TOSHIBA_INET6 4010yes 4011#endif 4012_ACEOF 4013if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4014 $EGREP "yes" >/dev/null 2>&1; then 4015 ipv6type=$i; 4016 ipv6lib=inet6; 4017 ipv6libdir=/usr/local/v6/lib; 4018 CFLAGS="-DINET6 $CFLAGS" 4019fi 4020rm -f conftest* 4021 4022 ;; 4023 v6d) 4024 cat >conftest.$ac_ext <<_ACEOF 4025#line $LINENO "configure" 4026/* confdefs.h. */ 4027_ACEOF 4028cat confdefs.h >>conftest.$ac_ext 4029cat >>conftest.$ac_ext <<_ACEOF 4030/* end confdefs.h. */ 4031#include </usr/local/v6/include/sys/v6config.h> 4032#ifdef __V6D__ 4033yes 4034#endif 4035_ACEOF 4036if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4037 $EGREP "yes" >/dev/null 2>&1; then 4038 ipv6type=$i; 4039 ipv6lib=v6; 4040 ipv6libdir=/usr/local/v6/lib; 4041 CFLAGS="-I/usr/local/v6/include $CFLAGS" 4042fi 4043rm -f conftest* 4044 4045 ;; 4046 zeta) 4047 cat >conftest.$ac_ext <<_ACEOF 4048#line $LINENO "configure" 4049/* confdefs.h. */ 4050_ACEOF 4051cat confdefs.h >>conftest.$ac_ext 4052cat >>conftest.$ac_ext <<_ACEOF 4053/* end confdefs.h. */ 4054#include <sys/param.h> 4055#ifdef _ZETA_MINAMI_INET6 4056yes 4057#endif 4058_ACEOF 4059if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4060 $EGREP "yes" >/dev/null 2>&1; then 4061 ipv6type=$i; 4062 ipv6lib=inet6; 4063 ipv6libdir=/usr/local/v6/lib; 4064 CFLAGS="-DINET6 $CFLAGS" 4065fi 4066rm -f conftest* 4067 4068 ;; 4069 esac 4070 if test "$ipv6type" != "unknown"; then 4071 break 4072 fi 4073 done 4074 echo "$as_me:$LINENO: result: $ipv6type" >&5 4075echo "${ECHO_T}$ipv6type" >&6 4076fi 4077 4078if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then 4079 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then 4080 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" 4081 echo "You have $ipv6lib library, using it" 4082 else 4083 if test "$ipv6trylibc" = "yes"; then 4084 echo "You do not have $ipv6lib library, using libc" 4085 else 4086 echo 'Fatal: no $ipv6lib library found. cannot continue.' 4087 echo "You need to fetch lib$ipv6lib.a from appropriate" 4088 echo 'ipv6 kit and compile beforehand.' 4089 exit 1 4090 fi 4091 fi 4092fi 4093 4094 4095if test "$ipv6" = "yes"; then 4096 # 4097 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()" 4098 # function in libc; there are "ngetaddrinfo()" and 4099 # "ogetaddrinfo()" functions, and <netdb.h> #defines 4100 # "getaddrinfo" to be either "ngetaddrinfo" or 4101 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN 4102 # or _XOPEN_SOURCE_EXTENDED are defined or not. 4103 # 4104 # So this test doesn't work on Tru64 5.1, and possibly 4105 # on other 5.x releases. This causes the configure 4106 # script to become confused, and results in libpcap 4107 # being unbuildable. 4108 # 4109 echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5 4110echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6 4111if test "${ac_cv_search_getaddrinfo+set}" = set; then 4112 echo $ECHO_N "(cached) $ECHO_C" >&6 4113else 4114 ac_func_search_save_LIBS=$LIBS 4115ac_cv_search_getaddrinfo=no 4116cat >conftest.$ac_ext <<_ACEOF 4117#line $LINENO "configure" 4118/* confdefs.h. */ 4119_ACEOF 4120cat confdefs.h >>conftest.$ac_ext 4121cat >>conftest.$ac_ext <<_ACEOF 4122/* end confdefs.h. */ 4123 4124/* Override any gcc2 internal prototype to avoid an error. */ 4125#ifdef __cplusplus 4126extern "C" 4127#endif 4128/* We use char because int might match the return type of a gcc2 4129 builtin and then its argument prototype would still apply. */ 4130char getaddrinfo (); 4131int 4132main () 4133{ 4134getaddrinfo (); 4135 ; 4136 return 0; 4137} 4138_ACEOF 4139rm -f conftest.$ac_objext conftest$ac_exeext 4140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4141 (eval $ac_link) 2>&5 4142 ac_status=$? 4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4144 (exit $ac_status); } && 4145 { ac_try='test -s conftest$ac_exeext' 4146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4147 (eval $ac_try) 2>&5 4148 ac_status=$? 4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4150 (exit $ac_status); }; }; then 4151 ac_cv_search_getaddrinfo="none required" 4152else 4153 echo "$as_me: failed program was:" >&5 4154sed 's/^/| /' conftest.$ac_ext >&5 4155 4156fi 4157rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4158if test "$ac_cv_search_getaddrinfo" = no; then 4159 for ac_lib in socket; do 4160 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4161 cat >conftest.$ac_ext <<_ACEOF 4162#line $LINENO "configure" 4163/* confdefs.h. */ 4164_ACEOF 4165cat confdefs.h >>conftest.$ac_ext 4166cat >>conftest.$ac_ext <<_ACEOF 4167/* end confdefs.h. */ 4168 4169/* Override any gcc2 internal prototype to avoid an error. */ 4170#ifdef __cplusplus 4171extern "C" 4172#endif 4173/* We use char because int might match the return type of a gcc2 4174 builtin and then its argument prototype would still apply. */ 4175char getaddrinfo (); 4176int 4177main () 4178{ 4179getaddrinfo (); 4180 ; 4181 return 0; 4182} 4183_ACEOF 4184rm -f conftest.$ac_objext conftest$ac_exeext 4185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4186 (eval $ac_link) 2>&5 4187 ac_status=$? 4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4189 (exit $ac_status); } && 4190 { ac_try='test -s conftest$ac_exeext' 4191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4192 (eval $ac_try) 2>&5 4193 ac_status=$? 4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4195 (exit $ac_status); }; }; then 4196 ac_cv_search_getaddrinfo="-l$ac_lib" 4197break 4198else 4199 echo "$as_me: failed program was:" >&5 4200sed 's/^/| /' conftest.$ac_ext >&5 4201 4202fi 4203rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4204 done 4205fi 4206LIBS=$ac_func_search_save_LIBS 4207fi 4208echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5 4209echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6 4210if test "$ac_cv_search_getaddrinfo" != no; then 4211 test "$ac_cv_search_getaddrinfo" = "none required" || LIBS="$ac_cv_search_getaddrinfo $LIBS" 4212 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 4213echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6 4214 if test "${td_cv_buggygetaddrinfo+set}" = set; then 4215 echo $ECHO_N "(cached) $ECHO_C" >&6 4216else 4217 if test "$cross_compiling" = yes; then 4218 td_cv_buggygetaddrinfo=yes 4219else 4220 cat >conftest.$ac_ext <<_ACEOF 4221#line $LINENO "configure" 4222/* confdefs.h. */ 4223_ACEOF 4224cat confdefs.h >>conftest.$ac_ext 4225cat >>conftest.$ac_ext <<_ACEOF 4226/* end confdefs.h. */ 4227 4228#include <sys/types.h> 4229#include <netdb.h> 4230#include <string.h> 4231#include <sys/socket.h> 4232#include <netinet/in.h> 4233 4234main() 4235{ 4236 int passive, gaierr, inet4 = 0, inet6 = 0; 4237 struct addrinfo hints, *ai, *aitop; 4238 char straddr[INET6_ADDRSTRLEN], strport[16]; 4239 4240 for (passive = 0; passive <= 1; passive++) { 4241 memset(&hints, 0, sizeof(hints)); 4242 hints.ai_family = AF_UNSPEC; 4243 hints.ai_flags = passive ? AI_PASSIVE : 0; 4244 hints.ai_socktype = SOCK_STREAM; 4245 hints.ai_protocol = IPPROTO_TCP; 4246 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { 4247 (void)gai_strerror(gaierr); 4248 goto bad; 4249 } 4250 for (ai = aitop; ai; ai = ai->ai_next) { 4251 if (ai->ai_addr == NULL || 4252 ai->ai_addrlen == 0 || 4253 getnameinfo(ai->ai_addr, ai->ai_addrlen, 4254 straddr, sizeof(straddr), strport, sizeof(strport), 4255 NI_NUMERICHOST|NI_NUMERICSERV) != 0) { 4256 goto bad; 4257 } 4258 switch (ai->ai_family) { 4259 case AF_INET: 4260 if (strcmp(strport, "54321") != 0) { 4261 goto bad; 4262 } 4263 if (passive) { 4264 if (strcmp(straddr, "0.0.0.0") != 0) { 4265 goto bad; 4266 } 4267 } else { 4268 if (strcmp(straddr, "127.0.0.1") != 0) { 4269 goto bad; 4270 } 4271 } 4272 inet4++; 4273 break; 4274 case AF_INET6: 4275 if (strcmp(strport, "54321") != 0) { 4276 goto bad; 4277 } 4278 if (passive) { 4279 if (strcmp(straddr, "::") != 0) { 4280 goto bad; 4281 } 4282 } else { 4283 if (strcmp(straddr, "::1") != 0) { 4284 goto bad; 4285 } 4286 } 4287 inet6++; 4288 break; 4289 case AF_UNSPEC: 4290 goto bad; 4291 break; 4292#ifdef AF_UNIX 4293 case AF_UNIX: 4294#else 4295#ifdef AF_LOCAL 4296 case AF_LOCAL: 4297#endif 4298#endif 4299 default: 4300 /* another family support? */ 4301 break; 4302 } 4303 } 4304 } 4305 4306 /* supported family should be 2, unsupported family should be 0 */ 4307 if (!(inet4 == 0 || inet4 == 2)) 4308 goto bad; 4309 if (!(inet6 == 0 || inet6 == 2)) 4310 goto bad; 4311 4312 if (aitop) 4313 freeaddrinfo(aitop); 4314 exit(0); 4315 4316 bad: 4317 if (aitop) 4318 freeaddrinfo(aitop); 4319 exit(1); 4320} 4321 4322_ACEOF 4323rm -f conftest$ac_exeext 4324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4325 (eval $ac_link) 2>&5 4326 ac_status=$? 4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4328 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4330 (eval $ac_try) 2>&5 4331 ac_status=$? 4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4333 (exit $ac_status); }; }; then 4334 td_cv_buggygetaddrinfo=no 4335else 4336 echo "$as_me: program exited with status $ac_status" >&5 4337echo "$as_me: failed program was:" >&5 4338sed 's/^/| /' conftest.$ac_ext >&5 4339 4340( exit $ac_status ) 4341td_cv_buggygetaddrinfo=yes 4342fi 4343rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4344fi 4345fi 4346 4347 if test "$td_cv_buggygetaddrinfo" = no; then 4348 echo "$as_me:$LINENO: result: good" >&5 4349echo "${ECHO_T}good" >&6 4350 else 4351 echo "$as_me:$LINENO: result: buggy" >&5 4352echo "${ECHO_T}buggy" >&6 4353 fi 4354 4355 if test "$td_cv_buggygetaddrinfo" = "yes"; then 4356 # 4357 # XXX - it doesn't appear that "ipv6type" can ever be 4358 # set to "linux". Should this be testing for 4359 # "linux-glibc", or for that *or* "linux-libinet6"? 4360 # If the latter, note that "linux-libinet6" is also 4361 # the type given to some non-Linux OSes. 4362 # 4363 if test "$ipv6type" != "linux"; then 4364 echo 'Fatal: You must get working getaddrinfo() function.' 4365 echo ' or you can specify "--disable-ipv6"'. 4366 exit 1 4367 else 4368 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.' 4369 echo ' Better upgrade your system library to newest version' 4370 echo ' of GNU C library (aka glibc).' 4371 fi 4372 fi 4373 4374fi 4375 4376 4377 4378for ac_func in getaddrinfo getnameinfo 4379do 4380as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4381echo "$as_me:$LINENO: checking for $ac_func" >&5 4382echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4383if eval "test \"\${$as_ac_var+set}\" = set"; then 4384 echo $ECHO_N "(cached) $ECHO_C" >&6 4385else 4386 cat >conftest.$ac_ext <<_ACEOF 4387#line $LINENO "configure" 4388/* confdefs.h. */ 4389_ACEOF 4390cat confdefs.h >>conftest.$ac_ext 4391cat >>conftest.$ac_ext <<_ACEOF 4392/* end confdefs.h. */ 4393/* System header to define __stub macros and hopefully few prototypes, 4394 which can conflict with char $ac_func (); below. 4395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4396 <limits.h> exists even on freestanding compilers. */ 4397#ifdef __STDC__ 4398# include <limits.h> 4399#else 4400# include <assert.h> 4401#endif 4402/* Override any gcc2 internal prototype to avoid an error. */ 4403#ifdef __cplusplus 4404extern "C" 4405{ 4406#endif 4407/* We use char because int might match the return type of a gcc2 4408 builtin and then its argument prototype would still apply. */ 4409char $ac_func (); 4410/* The GNU C library defines this for functions which it implements 4411 to always fail with ENOSYS. Some functions are actually named 4412 something starting with __ and the normal name is an alias. */ 4413#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4414choke me 4415#else 4416char (*f) () = $ac_func; 4417#endif 4418#ifdef __cplusplus 4419} 4420#endif 4421 4422int 4423main () 4424{ 4425return f != $ac_func; 4426 ; 4427 return 0; 4428} 4429_ACEOF 4430rm -f conftest.$ac_objext conftest$ac_exeext 4431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4432 (eval $ac_link) 2>&5 4433 ac_status=$? 4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4435 (exit $ac_status); } && 4436 { ac_try='test -s conftest$ac_exeext' 4437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4438 (eval $ac_try) 2>&5 4439 ac_status=$? 4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4441 (exit $ac_status); }; }; then 4442 eval "$as_ac_var=yes" 4443else 4444 echo "$as_me: failed program was:" >&5 4445sed 's/^/| /' conftest.$ac_ext >&5 4446 4447eval "$as_ac_var=no" 4448fi 4449rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4450fi 4451echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 4452echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 4453if test `eval echo '${'$as_ac_var'}'` = yes; then 4454 cat >>confdefs.h <<_ACEOF 4455#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 4456_ACEOF 4457 4458else 4459 LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 4460fi 4461done 4462 4463 4464fi 4465 4466echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5 4467echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6 4468if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then 4469 echo $ECHO_N "(cached) $ECHO_C" >&6 4470else 4471 cat >conftest.$ac_ext <<_ACEOF 4472#line $LINENO "configure" 4473/* confdefs.h. */ 4474_ACEOF 4475cat confdefs.h >>conftest.$ac_ext 4476cat >>conftest.$ac_ext <<_ACEOF 4477/* end confdefs.h. */ 4478#include <netdnet/dnetdb.h> 4479 4480_ACEOF 4481if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4482 $EGREP "dnet_htoa" >/dev/null 2>&1; then 4483 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes 4484else 4485 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no 4486fi 4487rm -f conftest* 4488 4489fi 4490echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5 4491echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6 4492if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then 4493 cat >>confdefs.h <<\_ACEOF 4494#define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1 4495_ACEOF 4496 4497fi 4498 4499echo "$as_me:$LINENO: checking for char" >&5 4500echo $ECHO_N "checking for char... $ECHO_C" >&6 4501if test "${ac_cv_type_char+set}" = set; then 4502 echo $ECHO_N "(cached) $ECHO_C" >&6 4503else 4504 cat >conftest.$ac_ext <<_ACEOF 4505#line $LINENO "configure" 4506/* confdefs.h. */ 4507_ACEOF 4508cat confdefs.h >>conftest.$ac_ext 4509cat >>conftest.$ac_ext <<_ACEOF 4510/* end confdefs.h. */ 4511$ac_includes_default 4512int 4513main () 4514{ 4515if ((char *) 0) 4516 return 0; 4517if (sizeof (char)) 4518 return 0; 4519 ; 4520 return 0; 4521} 4522_ACEOF 4523rm -f conftest.$ac_objext 4524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4525 (eval $ac_compile) 2>&5 4526 ac_status=$? 4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4528 (exit $ac_status); } && 4529 { ac_try='test -s conftest.$ac_objext' 4530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4531 (eval $ac_try) 2>&5 4532 ac_status=$? 4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4534 (exit $ac_status); }; }; then 4535 ac_cv_type_char=yes 4536else 4537 echo "$as_me: failed program was:" >&5 4538sed 's/^/| /' conftest.$ac_ext >&5 4539 4540ac_cv_type_char=no 4541fi 4542rm -f conftest.$ac_objext conftest.$ac_ext 4543fi 4544echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 4545echo "${ECHO_T}$ac_cv_type_char" >&6 4546 4547echo "$as_me:$LINENO: checking size of char" >&5 4548echo $ECHO_N "checking size of char... $ECHO_C" >&6 4549if test "${ac_cv_sizeof_char+set}" = set; then 4550 echo $ECHO_N "(cached) $ECHO_C" >&6 4551else 4552 if test "$ac_cv_type_char" = yes; then 4553 # The cast to unsigned long works around a bug in the HP C Compiler 4554 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4555 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4556 # This bug is HP SR number 8606223364. 4557 if test "$cross_compiling" = yes; then 4558 # Depending upon the size, compute the lo and hi bounds. 4559cat >conftest.$ac_ext <<_ACEOF 4560#line $LINENO "configure" 4561/* confdefs.h. */ 4562_ACEOF 4563cat confdefs.h >>conftest.$ac_ext 4564cat >>conftest.$ac_ext <<_ACEOF 4565/* end confdefs.h. */ 4566$ac_includes_default 4567int 4568main () 4569{ 4570static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; 4571test_array [0] = 0 4572 4573 ; 4574 return 0; 4575} 4576_ACEOF 4577rm -f conftest.$ac_objext 4578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4579 (eval $ac_compile) 2>&5 4580 ac_status=$? 4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4582 (exit $ac_status); } && 4583 { ac_try='test -s conftest.$ac_objext' 4584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4585 (eval $ac_try) 2>&5 4586 ac_status=$? 4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4588 (exit $ac_status); }; }; then 4589 ac_lo=0 ac_mid=0 4590 while :; do 4591 cat >conftest.$ac_ext <<_ACEOF 4592#line $LINENO "configure" 4593/* confdefs.h. */ 4594_ACEOF 4595cat confdefs.h >>conftest.$ac_ext 4596cat >>conftest.$ac_ext <<_ACEOF 4597/* end confdefs.h. */ 4598$ac_includes_default 4599int 4600main () 4601{ 4602static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; 4603test_array [0] = 0 4604 4605 ; 4606 return 0; 4607} 4608_ACEOF 4609rm -f conftest.$ac_objext 4610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4611 (eval $ac_compile) 2>&5 4612 ac_status=$? 4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4614 (exit $ac_status); } && 4615 { ac_try='test -s conftest.$ac_objext' 4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4617 (eval $ac_try) 2>&5 4618 ac_status=$? 4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4620 (exit $ac_status); }; }; then 4621 ac_hi=$ac_mid; break 4622else 4623 echo "$as_me: failed program was:" >&5 4624sed 's/^/| /' conftest.$ac_ext >&5 4625 4626ac_lo=`expr $ac_mid + 1` 4627 if test $ac_lo -le $ac_mid; then 4628 ac_lo= ac_hi= 4629 break 4630 fi 4631 ac_mid=`expr 2 '*' $ac_mid + 1` 4632fi 4633rm -f conftest.$ac_objext conftest.$ac_ext 4634 done 4635else 4636 echo "$as_me: failed program was:" >&5 4637sed 's/^/| /' conftest.$ac_ext >&5 4638 4639cat >conftest.$ac_ext <<_ACEOF 4640#line $LINENO "configure" 4641/* confdefs.h. */ 4642_ACEOF 4643cat confdefs.h >>conftest.$ac_ext 4644cat >>conftest.$ac_ext <<_ACEOF 4645/* end confdefs.h. */ 4646$ac_includes_default 4647int 4648main () 4649{ 4650static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; 4651test_array [0] = 0 4652 4653 ; 4654 return 0; 4655} 4656_ACEOF 4657rm -f conftest.$ac_objext 4658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4659 (eval $ac_compile) 2>&5 4660 ac_status=$? 4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4662 (exit $ac_status); } && 4663 { ac_try='test -s conftest.$ac_objext' 4664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4665 (eval $ac_try) 2>&5 4666 ac_status=$? 4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4668 (exit $ac_status); }; }; then 4669 ac_hi=-1 ac_mid=-1 4670 while :; do 4671 cat >conftest.$ac_ext <<_ACEOF 4672#line $LINENO "configure" 4673/* confdefs.h. */ 4674_ACEOF 4675cat confdefs.h >>conftest.$ac_ext 4676cat >>conftest.$ac_ext <<_ACEOF 4677/* end confdefs.h. */ 4678$ac_includes_default 4679int 4680main () 4681{ 4682static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; 4683test_array [0] = 0 4684 4685 ; 4686 return 0; 4687} 4688_ACEOF 4689rm -f conftest.$ac_objext 4690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4691 (eval $ac_compile) 2>&5 4692 ac_status=$? 4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4694 (exit $ac_status); } && 4695 { ac_try='test -s conftest.$ac_objext' 4696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4697 (eval $ac_try) 2>&5 4698 ac_status=$? 4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4700 (exit $ac_status); }; }; then 4701 ac_lo=$ac_mid; break 4702else 4703 echo "$as_me: failed program was:" >&5 4704sed 's/^/| /' conftest.$ac_ext >&5 4705 4706ac_hi=`expr '(' $ac_mid ')' - 1` 4707 if test $ac_mid -le $ac_hi; then 4708 ac_lo= ac_hi= 4709 break 4710 fi 4711 ac_mid=`expr 2 '*' $ac_mid` 4712fi 4713rm -f conftest.$ac_objext conftest.$ac_ext 4714 done 4715else 4716 echo "$as_me: failed program was:" >&5 4717sed 's/^/| /' conftest.$ac_ext >&5 4718 4719ac_lo= ac_hi= 4720fi 4721rm -f conftest.$ac_objext conftest.$ac_ext 4722fi 4723rm -f conftest.$ac_objext conftest.$ac_ext 4724# Binary search between lo and hi bounds. 4725while test "x$ac_lo" != "x$ac_hi"; do 4726 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 4727 cat >conftest.$ac_ext <<_ACEOF 4728#line $LINENO "configure" 4729/* confdefs.h. */ 4730_ACEOF 4731cat confdefs.h >>conftest.$ac_ext 4732cat >>conftest.$ac_ext <<_ACEOF 4733/* end confdefs.h. */ 4734$ac_includes_default 4735int 4736main () 4737{ 4738static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; 4739test_array [0] = 0 4740 4741 ; 4742 return 0; 4743} 4744_ACEOF 4745rm -f conftest.$ac_objext 4746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4747 (eval $ac_compile) 2>&5 4748 ac_status=$? 4749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4750 (exit $ac_status); } && 4751 { ac_try='test -s conftest.$ac_objext' 4752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4753 (eval $ac_try) 2>&5 4754 ac_status=$? 4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4756 (exit $ac_status); }; }; then 4757 ac_hi=$ac_mid 4758else 4759 echo "$as_me: failed program was:" >&5 4760sed 's/^/| /' conftest.$ac_ext >&5 4761 4762ac_lo=`expr '(' $ac_mid ')' + 1` 4763fi 4764rm -f conftest.$ac_objext conftest.$ac_ext 4765done 4766case $ac_lo in 4767?*) ac_cv_sizeof_char=$ac_lo;; 4768'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 4769See \`config.log' for more details." >&5 4770echo "$as_me: error: cannot compute sizeof (char), 77 4771See \`config.log' for more details." >&2;} 4772 { (exit 1); exit 1; }; } ;; 4773esac 4774else 4775 if test "$cross_compiling" = yes; then 4776 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 4777See \`config.log' for more details." >&5 4778echo "$as_me: error: cannot run test program while cross compiling 4779See \`config.log' for more details." >&2;} 4780 { (exit 1); exit 1; }; } 4781else 4782 cat >conftest.$ac_ext <<_ACEOF 4783#line $LINENO "configure" 4784/* confdefs.h. */ 4785_ACEOF 4786cat confdefs.h >>conftest.$ac_ext 4787cat >>conftest.$ac_ext <<_ACEOF 4788/* end confdefs.h. */ 4789$ac_includes_default 4790long longval () { return (long) (sizeof (char)); } 4791unsigned long ulongval () { return (long) (sizeof (char)); } 4792#include <stdio.h> 4793#include <stdlib.h> 4794int 4795main () 4796{ 4797 4798 FILE *f = fopen ("conftest.val", "w"); 4799 if (! f) 4800 exit (1); 4801 if (((long) (sizeof (char))) < 0) 4802 { 4803 long i = longval (); 4804 if (i != ((long) (sizeof (char)))) 4805 exit (1); 4806 fprintf (f, "%ld\n", i); 4807 } 4808 else 4809 { 4810 unsigned long i = ulongval (); 4811 if (i != ((long) (sizeof (char)))) 4812 exit (1); 4813 fprintf (f, "%lu\n", i); 4814 } 4815 exit (ferror (f) || fclose (f) != 0); 4816 4817 ; 4818 return 0; 4819} 4820_ACEOF 4821rm -f conftest$ac_exeext 4822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4823 (eval $ac_link) 2>&5 4824 ac_status=$? 4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4826 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4828 (eval $ac_try) 2>&5 4829 ac_status=$? 4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4831 (exit $ac_status); }; }; then 4832 ac_cv_sizeof_char=`cat conftest.val` 4833else 4834 echo "$as_me: program exited with status $ac_status" >&5 4835echo "$as_me: failed program was:" >&5 4836sed 's/^/| /' conftest.$ac_ext >&5 4837 4838( exit $ac_status ) 4839{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 4840See \`config.log' for more details." >&5 4841echo "$as_me: error: cannot compute sizeof (char), 77 4842See \`config.log' for more details." >&2;} 4843 { (exit 1); exit 1; }; } 4844fi 4845rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4846fi 4847fi 4848rm -f conftest.val 4849else 4850 ac_cv_sizeof_char=0 4851fi 4852fi 4853echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 4854echo "${ECHO_T}$ac_cv_sizeof_char" >&6 4855cat >>confdefs.h <<_ACEOF 4856#define SIZEOF_CHAR $ac_cv_sizeof_char 4857_ACEOF 4858 4859 4860echo "$as_me:$LINENO: checking for short" >&5 4861echo $ECHO_N "checking for short... $ECHO_C" >&6 4862if test "${ac_cv_type_short+set}" = set; then 4863 echo $ECHO_N "(cached) $ECHO_C" >&6 4864else 4865 cat >conftest.$ac_ext <<_ACEOF 4866#line $LINENO "configure" 4867/* confdefs.h. */ 4868_ACEOF 4869cat confdefs.h >>conftest.$ac_ext 4870cat >>conftest.$ac_ext <<_ACEOF 4871/* end confdefs.h. */ 4872$ac_includes_default 4873int 4874main () 4875{ 4876if ((short *) 0) 4877 return 0; 4878if (sizeof (short)) 4879 return 0; 4880 ; 4881 return 0; 4882} 4883_ACEOF 4884rm -f conftest.$ac_objext 4885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4886 (eval $ac_compile) 2>&5 4887 ac_status=$? 4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4889 (exit $ac_status); } && 4890 { ac_try='test -s conftest.$ac_objext' 4891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4892 (eval $ac_try) 2>&5 4893 ac_status=$? 4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4895 (exit $ac_status); }; }; then 4896 ac_cv_type_short=yes 4897else 4898 echo "$as_me: failed program was:" >&5 4899sed 's/^/| /' conftest.$ac_ext >&5 4900 4901ac_cv_type_short=no 4902fi 4903rm -f conftest.$ac_objext conftest.$ac_ext 4904fi 4905echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 4906echo "${ECHO_T}$ac_cv_type_short" >&6 4907 4908echo "$as_me:$LINENO: checking size of short" >&5 4909echo $ECHO_N "checking size of short... $ECHO_C" >&6 4910if test "${ac_cv_sizeof_short+set}" = set; then 4911 echo $ECHO_N "(cached) $ECHO_C" >&6 4912else 4913 if test "$ac_cv_type_short" = yes; then 4914 # The cast to unsigned long works around a bug in the HP C Compiler 4915 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4916 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4917 # This bug is HP SR number 8606223364. 4918 if test "$cross_compiling" = yes; then 4919 # Depending upon the size, compute the lo and hi bounds. 4920cat >conftest.$ac_ext <<_ACEOF 4921#line $LINENO "configure" 4922/* confdefs.h. */ 4923_ACEOF 4924cat confdefs.h >>conftest.$ac_ext 4925cat >>conftest.$ac_ext <<_ACEOF 4926/* end confdefs.h. */ 4927$ac_includes_default 4928int 4929main () 4930{ 4931static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; 4932test_array [0] = 0 4933 4934 ; 4935 return 0; 4936} 4937_ACEOF 4938rm -f conftest.$ac_objext 4939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4940 (eval $ac_compile) 2>&5 4941 ac_status=$? 4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4943 (exit $ac_status); } && 4944 { ac_try='test -s conftest.$ac_objext' 4945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4946 (eval $ac_try) 2>&5 4947 ac_status=$? 4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4949 (exit $ac_status); }; }; then 4950 ac_lo=0 ac_mid=0 4951 while :; do 4952 cat >conftest.$ac_ext <<_ACEOF 4953#line $LINENO "configure" 4954/* confdefs.h. */ 4955_ACEOF 4956cat confdefs.h >>conftest.$ac_ext 4957cat >>conftest.$ac_ext <<_ACEOF 4958/* end confdefs.h. */ 4959$ac_includes_default 4960int 4961main () 4962{ 4963static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 4964test_array [0] = 0 4965 4966 ; 4967 return 0; 4968} 4969_ACEOF 4970rm -f conftest.$ac_objext 4971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4972 (eval $ac_compile) 2>&5 4973 ac_status=$? 4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4975 (exit $ac_status); } && 4976 { ac_try='test -s conftest.$ac_objext' 4977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4978 (eval $ac_try) 2>&5 4979 ac_status=$? 4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4981 (exit $ac_status); }; }; then 4982 ac_hi=$ac_mid; break 4983else 4984 echo "$as_me: failed program was:" >&5 4985sed 's/^/| /' conftest.$ac_ext >&5 4986 4987ac_lo=`expr $ac_mid + 1` 4988 if test $ac_lo -le $ac_mid; then 4989 ac_lo= ac_hi= 4990 break 4991 fi 4992 ac_mid=`expr 2 '*' $ac_mid + 1` 4993fi 4994rm -f conftest.$ac_objext conftest.$ac_ext 4995 done 4996else 4997 echo "$as_me: failed program was:" >&5 4998sed 's/^/| /' conftest.$ac_ext >&5 4999 5000cat >conftest.$ac_ext <<_ACEOF 5001#line $LINENO "configure" 5002/* confdefs.h. */ 5003_ACEOF 5004cat confdefs.h >>conftest.$ac_ext 5005cat >>conftest.$ac_ext <<_ACEOF 5006/* end confdefs.h. */ 5007$ac_includes_default 5008int 5009main () 5010{ 5011static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; 5012test_array [0] = 0 5013 5014 ; 5015 return 0; 5016} 5017_ACEOF 5018rm -f conftest.$ac_objext 5019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5020 (eval $ac_compile) 2>&5 5021 ac_status=$? 5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5023 (exit $ac_status); } && 5024 { ac_try='test -s conftest.$ac_objext' 5025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5026 (eval $ac_try) 2>&5 5027 ac_status=$? 5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5029 (exit $ac_status); }; }; then 5030 ac_hi=-1 ac_mid=-1 5031 while :; do 5032 cat >conftest.$ac_ext <<_ACEOF 5033#line $LINENO "configure" 5034/* confdefs.h. */ 5035_ACEOF 5036cat confdefs.h >>conftest.$ac_ext 5037cat >>conftest.$ac_ext <<_ACEOF 5038/* end confdefs.h. */ 5039$ac_includes_default 5040int 5041main () 5042{ 5043static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; 5044test_array [0] = 0 5045 5046 ; 5047 return 0; 5048} 5049_ACEOF 5050rm -f conftest.$ac_objext 5051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5052 (eval $ac_compile) 2>&5 5053 ac_status=$? 5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5055 (exit $ac_status); } && 5056 { ac_try='test -s conftest.$ac_objext' 5057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5058 (eval $ac_try) 2>&5 5059 ac_status=$? 5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5061 (exit $ac_status); }; }; then 5062 ac_lo=$ac_mid; break 5063else 5064 echo "$as_me: failed program was:" >&5 5065sed 's/^/| /' conftest.$ac_ext >&5 5066 5067ac_hi=`expr '(' $ac_mid ')' - 1` 5068 if test $ac_mid -le $ac_hi; then 5069 ac_lo= ac_hi= 5070 break 5071 fi 5072 ac_mid=`expr 2 '*' $ac_mid` 5073fi 5074rm -f conftest.$ac_objext conftest.$ac_ext 5075 done 5076else 5077 echo "$as_me: failed program was:" >&5 5078sed 's/^/| /' conftest.$ac_ext >&5 5079 5080ac_lo= ac_hi= 5081fi 5082rm -f conftest.$ac_objext conftest.$ac_ext 5083fi 5084rm -f conftest.$ac_objext conftest.$ac_ext 5085# Binary search between lo and hi bounds. 5086while test "x$ac_lo" != "x$ac_hi"; do 5087 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 5088 cat >conftest.$ac_ext <<_ACEOF 5089#line $LINENO "configure" 5090/* confdefs.h. */ 5091_ACEOF 5092cat confdefs.h >>conftest.$ac_ext 5093cat >>conftest.$ac_ext <<_ACEOF 5094/* end confdefs.h. */ 5095$ac_includes_default 5096int 5097main () 5098{ 5099static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 5100test_array [0] = 0 5101 5102 ; 5103 return 0; 5104} 5105_ACEOF 5106rm -f conftest.$ac_objext 5107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5108 (eval $ac_compile) 2>&5 5109 ac_status=$? 5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5111 (exit $ac_status); } && 5112 { ac_try='test -s conftest.$ac_objext' 5113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5114 (eval $ac_try) 2>&5 5115 ac_status=$? 5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5117 (exit $ac_status); }; }; then 5118 ac_hi=$ac_mid 5119else 5120 echo "$as_me: failed program was:" >&5 5121sed 's/^/| /' conftest.$ac_ext >&5 5122 5123ac_lo=`expr '(' $ac_mid ')' + 1` 5124fi 5125rm -f conftest.$ac_objext conftest.$ac_ext 5126done 5127case $ac_lo in 5128?*) ac_cv_sizeof_short=$ac_lo;; 5129'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 5130See \`config.log' for more details." >&5 5131echo "$as_me: error: cannot compute sizeof (short), 77 5132See \`config.log' for more details." >&2;} 5133 { (exit 1); exit 1; }; } ;; 5134esac 5135else 5136 if test "$cross_compiling" = yes; then 5137 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 5138See \`config.log' for more details." >&5 5139echo "$as_me: error: cannot run test program while cross compiling 5140See \`config.log' for more details." >&2;} 5141 { (exit 1); exit 1; }; } 5142else 5143 cat >conftest.$ac_ext <<_ACEOF 5144#line $LINENO "configure" 5145/* confdefs.h. */ 5146_ACEOF 5147cat confdefs.h >>conftest.$ac_ext 5148cat >>conftest.$ac_ext <<_ACEOF 5149/* end confdefs.h. */ 5150$ac_includes_default 5151long longval () { return (long) (sizeof (short)); } 5152unsigned long ulongval () { return (long) (sizeof (short)); } 5153#include <stdio.h> 5154#include <stdlib.h> 5155int 5156main () 5157{ 5158 5159 FILE *f = fopen ("conftest.val", "w"); 5160 if (! f) 5161 exit (1); 5162 if (((long) (sizeof (short))) < 0) 5163 { 5164 long i = longval (); 5165 if (i != ((long) (sizeof (short)))) 5166 exit (1); 5167 fprintf (f, "%ld\n", i); 5168 } 5169 else 5170 { 5171 unsigned long i = ulongval (); 5172 if (i != ((long) (sizeof (short)))) 5173 exit (1); 5174 fprintf (f, "%lu\n", i); 5175 } 5176 exit (ferror (f) || fclose (f) != 0); 5177 5178 ; 5179 return 0; 5180} 5181_ACEOF 5182rm -f conftest$ac_exeext 5183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5184 (eval $ac_link) 2>&5 5185 ac_status=$? 5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5187 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5189 (eval $ac_try) 2>&5 5190 ac_status=$? 5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5192 (exit $ac_status); }; }; then 5193 ac_cv_sizeof_short=`cat conftest.val` 5194else 5195 echo "$as_me: program exited with status $ac_status" >&5 5196echo "$as_me: failed program was:" >&5 5197sed 's/^/| /' conftest.$ac_ext >&5 5198 5199( exit $ac_status ) 5200{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 5201See \`config.log' for more details." >&5 5202echo "$as_me: error: cannot compute sizeof (short), 77 5203See \`config.log' for more details." >&2;} 5204 { (exit 1); exit 1; }; } 5205fi 5206rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5207fi 5208fi 5209rm -f conftest.val 5210else 5211 ac_cv_sizeof_short=0 5212fi 5213fi 5214echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 5215echo "${ECHO_T}$ac_cv_sizeof_short" >&6 5216cat >>confdefs.h <<_ACEOF 5217#define SIZEOF_SHORT $ac_cv_sizeof_short 5218_ACEOF 5219 5220 5221echo "$as_me:$LINENO: checking for int" >&5 5222echo $ECHO_N "checking for int... $ECHO_C" >&6 5223if test "${ac_cv_type_int+set}" = set; then 5224 echo $ECHO_N "(cached) $ECHO_C" >&6 5225else 5226 cat >conftest.$ac_ext <<_ACEOF 5227#line $LINENO "configure" 5228/* confdefs.h. */ 5229_ACEOF 5230cat confdefs.h >>conftest.$ac_ext 5231cat >>conftest.$ac_ext <<_ACEOF 5232/* end confdefs.h. */ 5233$ac_includes_default 5234int 5235main () 5236{ 5237if ((int *) 0) 5238 return 0; 5239if (sizeof (int)) 5240 return 0; 5241 ; 5242 return 0; 5243} 5244_ACEOF 5245rm -f conftest.$ac_objext 5246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5247 (eval $ac_compile) 2>&5 5248 ac_status=$? 5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5250 (exit $ac_status); } && 5251 { ac_try='test -s conftest.$ac_objext' 5252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5253 (eval $ac_try) 2>&5 5254 ac_status=$? 5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5256 (exit $ac_status); }; }; then 5257 ac_cv_type_int=yes 5258else 5259 echo "$as_me: failed program was:" >&5 5260sed 's/^/| /' conftest.$ac_ext >&5 5261 5262ac_cv_type_int=no 5263fi 5264rm -f conftest.$ac_objext conftest.$ac_ext 5265fi 5266echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 5267echo "${ECHO_T}$ac_cv_type_int" >&6 5268 5269echo "$as_me:$LINENO: checking size of int" >&5 5270echo $ECHO_N "checking size of int... $ECHO_C" >&6 5271if test "${ac_cv_sizeof_int+set}" = set; then 5272 echo $ECHO_N "(cached) $ECHO_C" >&6 5273else 5274 if test "$ac_cv_type_int" = yes; then 5275 # The cast to unsigned long works around a bug in the HP C Compiler 5276 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 5277 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 5278 # This bug is HP SR number 8606223364. 5279 if test "$cross_compiling" = yes; then 5280 # Depending upon the size, compute the lo and hi bounds. 5281cat >conftest.$ac_ext <<_ACEOF 5282#line $LINENO "configure" 5283/* confdefs.h. */ 5284_ACEOF 5285cat confdefs.h >>conftest.$ac_ext 5286cat >>conftest.$ac_ext <<_ACEOF 5287/* end confdefs.h. */ 5288$ac_includes_default 5289int 5290main () 5291{ 5292static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 5293test_array [0] = 0 5294 5295 ; 5296 return 0; 5297} 5298_ACEOF 5299rm -f conftest.$ac_objext 5300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5301 (eval $ac_compile) 2>&5 5302 ac_status=$? 5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5304 (exit $ac_status); } && 5305 { ac_try='test -s conftest.$ac_objext' 5306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5307 (eval $ac_try) 2>&5 5308 ac_status=$? 5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5310 (exit $ac_status); }; }; then 5311 ac_lo=0 ac_mid=0 5312 while :; do 5313 cat >conftest.$ac_ext <<_ACEOF 5314#line $LINENO "configure" 5315/* confdefs.h. */ 5316_ACEOF 5317cat confdefs.h >>conftest.$ac_ext 5318cat >>conftest.$ac_ext <<_ACEOF 5319/* end confdefs.h. */ 5320$ac_includes_default 5321int 5322main () 5323{ 5324static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 5325test_array [0] = 0 5326 5327 ; 5328 return 0; 5329} 5330_ACEOF 5331rm -f conftest.$ac_objext 5332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5333 (eval $ac_compile) 2>&5 5334 ac_status=$? 5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5336 (exit $ac_status); } && 5337 { ac_try='test -s conftest.$ac_objext' 5338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5339 (eval $ac_try) 2>&5 5340 ac_status=$? 5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5342 (exit $ac_status); }; }; then 5343 ac_hi=$ac_mid; break 5344else 5345 echo "$as_me: failed program was:" >&5 5346sed 's/^/| /' conftest.$ac_ext >&5 5347 5348ac_lo=`expr $ac_mid + 1` 5349 if test $ac_lo -le $ac_mid; then 5350 ac_lo= ac_hi= 5351 break 5352 fi 5353 ac_mid=`expr 2 '*' $ac_mid + 1` 5354fi 5355rm -f conftest.$ac_objext conftest.$ac_ext 5356 done 5357else 5358 echo "$as_me: failed program was:" >&5 5359sed 's/^/| /' conftest.$ac_ext >&5 5360 5361cat >conftest.$ac_ext <<_ACEOF 5362#line $LINENO "configure" 5363/* confdefs.h. */ 5364_ACEOF 5365cat confdefs.h >>conftest.$ac_ext 5366cat >>conftest.$ac_ext <<_ACEOF 5367/* end confdefs.h. */ 5368$ac_includes_default 5369int 5370main () 5371{ 5372static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 5373test_array [0] = 0 5374 5375 ; 5376 return 0; 5377} 5378_ACEOF 5379rm -f conftest.$ac_objext 5380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5381 (eval $ac_compile) 2>&5 5382 ac_status=$? 5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5384 (exit $ac_status); } && 5385 { ac_try='test -s conftest.$ac_objext' 5386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5387 (eval $ac_try) 2>&5 5388 ac_status=$? 5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5390 (exit $ac_status); }; }; then 5391 ac_hi=-1 ac_mid=-1 5392 while :; do 5393 cat >conftest.$ac_ext <<_ACEOF 5394#line $LINENO "configure" 5395/* confdefs.h. */ 5396_ACEOF 5397cat confdefs.h >>conftest.$ac_ext 5398cat >>conftest.$ac_ext <<_ACEOF 5399/* end confdefs.h. */ 5400$ac_includes_default 5401int 5402main () 5403{ 5404static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 5405test_array [0] = 0 5406 5407 ; 5408 return 0; 5409} 5410_ACEOF 5411rm -f conftest.$ac_objext 5412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5413 (eval $ac_compile) 2>&5 5414 ac_status=$? 5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5416 (exit $ac_status); } && 5417 { ac_try='test -s conftest.$ac_objext' 5418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5419 (eval $ac_try) 2>&5 5420 ac_status=$? 5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5422 (exit $ac_status); }; }; then 5423 ac_lo=$ac_mid; break 5424else 5425 echo "$as_me: failed program was:" >&5 5426sed 's/^/| /' conftest.$ac_ext >&5 5427 5428ac_hi=`expr '(' $ac_mid ')' - 1` 5429 if test $ac_mid -le $ac_hi; then 5430 ac_lo= ac_hi= 5431 break 5432 fi 5433 ac_mid=`expr 2 '*' $ac_mid` 5434fi 5435rm -f conftest.$ac_objext conftest.$ac_ext 5436 done 5437else 5438 echo "$as_me: failed program was:" >&5 5439sed 's/^/| /' conftest.$ac_ext >&5 5440 5441ac_lo= ac_hi= 5442fi 5443rm -f conftest.$ac_objext conftest.$ac_ext 5444fi 5445rm -f conftest.$ac_objext conftest.$ac_ext 5446# Binary search between lo and hi bounds. 5447while test "x$ac_lo" != "x$ac_hi"; do 5448 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 5449 cat >conftest.$ac_ext <<_ACEOF 5450#line $LINENO "configure" 5451/* confdefs.h. */ 5452_ACEOF 5453cat confdefs.h >>conftest.$ac_ext 5454cat >>conftest.$ac_ext <<_ACEOF 5455/* end confdefs.h. */ 5456$ac_includes_default 5457int 5458main () 5459{ 5460static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 5461test_array [0] = 0 5462 5463 ; 5464 return 0; 5465} 5466_ACEOF 5467rm -f conftest.$ac_objext 5468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5469 (eval $ac_compile) 2>&5 5470 ac_status=$? 5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5472 (exit $ac_status); } && 5473 { ac_try='test -s conftest.$ac_objext' 5474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5475 (eval $ac_try) 2>&5 5476 ac_status=$? 5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5478 (exit $ac_status); }; }; then 5479 ac_hi=$ac_mid 5480else 5481 echo "$as_me: failed program was:" >&5 5482sed 's/^/| /' conftest.$ac_ext >&5 5483 5484ac_lo=`expr '(' $ac_mid ')' + 1` 5485fi 5486rm -f conftest.$ac_objext conftest.$ac_ext 5487done 5488case $ac_lo in 5489?*) ac_cv_sizeof_int=$ac_lo;; 5490'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 5491See \`config.log' for more details." >&5 5492echo "$as_me: error: cannot compute sizeof (int), 77 5493See \`config.log' for more details." >&2;} 5494 { (exit 1); exit 1; }; } ;; 5495esac 5496else 5497 if test "$cross_compiling" = yes; then 5498 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 5499See \`config.log' for more details." >&5 5500echo "$as_me: error: cannot run test program while cross compiling 5501See \`config.log' for more details." >&2;} 5502 { (exit 1); exit 1; }; } 5503else 5504 cat >conftest.$ac_ext <<_ACEOF 5505#line $LINENO "configure" 5506/* confdefs.h. */ 5507_ACEOF 5508cat confdefs.h >>conftest.$ac_ext 5509cat >>conftest.$ac_ext <<_ACEOF 5510/* end confdefs.h. */ 5511$ac_includes_default 5512long longval () { return (long) (sizeof (int)); } 5513unsigned long ulongval () { return (long) (sizeof (int)); } 5514#include <stdio.h> 5515#include <stdlib.h> 5516int 5517main () 5518{ 5519 5520 FILE *f = fopen ("conftest.val", "w"); 5521 if (! f) 5522 exit (1); 5523 if (((long) (sizeof (int))) < 0) 5524 { 5525 long i = longval (); 5526 if (i != ((long) (sizeof (int)))) 5527 exit (1); 5528 fprintf (f, "%ld\n", i); 5529 } 5530 else 5531 { 5532 unsigned long i = ulongval (); 5533 if (i != ((long) (sizeof (int)))) 5534 exit (1); 5535 fprintf (f, "%lu\n", i); 5536 } 5537 exit (ferror (f) || fclose (f) != 0); 5538 5539 ; 5540 return 0; 5541} 5542_ACEOF 5543rm -f conftest$ac_exeext 5544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5545 (eval $ac_link) 2>&5 5546 ac_status=$? 5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5548 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5550 (eval $ac_try) 2>&5 5551 ac_status=$? 5552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5553 (exit $ac_status); }; }; then 5554 ac_cv_sizeof_int=`cat conftest.val` 5555else 5556 echo "$as_me: program exited with status $ac_status" >&5 5557echo "$as_me: failed program was:" >&5 5558sed 's/^/| /' conftest.$ac_ext >&5 5559 5560( exit $ac_status ) 5561{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 5562See \`config.log' for more details." >&5 5563echo "$as_me: error: cannot compute sizeof (int), 77 5564See \`config.log' for more details." >&2;} 5565 { (exit 1); exit 1; }; } 5566fi 5567rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5568fi 5569fi 5570rm -f conftest.val 5571else 5572 ac_cv_sizeof_int=0 5573fi 5574fi 5575echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 5576echo "${ECHO_T}$ac_cv_sizeof_int" >&6 5577cat >>confdefs.h <<_ACEOF 5578#define SIZEOF_INT $ac_cv_sizeof_int 5579_ACEOF 5580 5581 5582echo "$as_me:$LINENO: checking for long" >&5 5583echo $ECHO_N "checking for long... $ECHO_C" >&6 5584if test "${ac_cv_type_long+set}" = set; then 5585 echo $ECHO_N "(cached) $ECHO_C" >&6 5586else 5587 cat >conftest.$ac_ext <<_ACEOF 5588#line $LINENO "configure" 5589/* confdefs.h. */ 5590_ACEOF 5591cat confdefs.h >>conftest.$ac_ext 5592cat >>conftest.$ac_ext <<_ACEOF 5593/* end confdefs.h. */ 5594$ac_includes_default 5595int 5596main () 5597{ 5598if ((long *) 0) 5599 return 0; 5600if (sizeof (long)) 5601 return 0; 5602 ; 5603 return 0; 5604} 5605_ACEOF 5606rm -f conftest.$ac_objext 5607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5608 (eval $ac_compile) 2>&5 5609 ac_status=$? 5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5611 (exit $ac_status); } && 5612 { ac_try='test -s conftest.$ac_objext' 5613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5614 (eval $ac_try) 2>&5 5615 ac_status=$? 5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5617 (exit $ac_status); }; }; then 5618 ac_cv_type_long=yes 5619else 5620 echo "$as_me: failed program was:" >&5 5621sed 's/^/| /' conftest.$ac_ext >&5 5622 5623ac_cv_type_long=no 5624fi 5625rm -f conftest.$ac_objext conftest.$ac_ext 5626fi 5627echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 5628echo "${ECHO_T}$ac_cv_type_long" >&6 5629 5630echo "$as_me:$LINENO: checking size of long" >&5 5631echo $ECHO_N "checking size of long... $ECHO_C" >&6 5632if test "${ac_cv_sizeof_long+set}" = set; then 5633 echo $ECHO_N "(cached) $ECHO_C" >&6 5634else 5635 if test "$ac_cv_type_long" = yes; then 5636 # The cast to unsigned long works around a bug in the HP C Compiler 5637 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 5638 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 5639 # This bug is HP SR number 8606223364. 5640 if test "$cross_compiling" = yes; then 5641 # Depending upon the size, compute the lo and hi bounds. 5642cat >conftest.$ac_ext <<_ACEOF 5643#line $LINENO "configure" 5644/* confdefs.h. */ 5645_ACEOF 5646cat confdefs.h >>conftest.$ac_ext 5647cat >>conftest.$ac_ext <<_ACEOF 5648/* end confdefs.h. */ 5649$ac_includes_default 5650int 5651main () 5652{ 5653static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 5654test_array [0] = 0 5655 5656 ; 5657 return 0; 5658} 5659_ACEOF 5660rm -f conftest.$ac_objext 5661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5662 (eval $ac_compile) 2>&5 5663 ac_status=$? 5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5665 (exit $ac_status); } && 5666 { ac_try='test -s conftest.$ac_objext' 5667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5668 (eval $ac_try) 2>&5 5669 ac_status=$? 5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5671 (exit $ac_status); }; }; then 5672 ac_lo=0 ac_mid=0 5673 while :; do 5674 cat >conftest.$ac_ext <<_ACEOF 5675#line $LINENO "configure" 5676/* confdefs.h. */ 5677_ACEOF 5678cat confdefs.h >>conftest.$ac_ext 5679cat >>conftest.$ac_ext <<_ACEOF 5680/* end confdefs.h. */ 5681$ac_includes_default 5682int 5683main () 5684{ 5685static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 5686test_array [0] = 0 5687 5688 ; 5689 return 0; 5690} 5691_ACEOF 5692rm -f conftest.$ac_objext 5693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5694 (eval $ac_compile) 2>&5 5695 ac_status=$? 5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5697 (exit $ac_status); } && 5698 { ac_try='test -s conftest.$ac_objext' 5699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5700 (eval $ac_try) 2>&5 5701 ac_status=$? 5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5703 (exit $ac_status); }; }; then 5704 ac_hi=$ac_mid; break 5705else 5706 echo "$as_me: failed program was:" >&5 5707sed 's/^/| /' conftest.$ac_ext >&5 5708 5709ac_lo=`expr $ac_mid + 1` 5710 if test $ac_lo -le $ac_mid; then 5711 ac_lo= ac_hi= 5712 break 5713 fi 5714 ac_mid=`expr 2 '*' $ac_mid + 1` 5715fi 5716rm -f conftest.$ac_objext conftest.$ac_ext 5717 done 5718else 5719 echo "$as_me: failed program was:" >&5 5720sed 's/^/| /' conftest.$ac_ext >&5 5721 5722cat >conftest.$ac_ext <<_ACEOF 5723#line $LINENO "configure" 5724/* confdefs.h. */ 5725_ACEOF 5726cat confdefs.h >>conftest.$ac_ext 5727cat >>conftest.$ac_ext <<_ACEOF 5728/* end confdefs.h. */ 5729$ac_includes_default 5730int 5731main () 5732{ 5733static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 5734test_array [0] = 0 5735 5736 ; 5737 return 0; 5738} 5739_ACEOF 5740rm -f conftest.$ac_objext 5741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5742 (eval $ac_compile) 2>&5 5743 ac_status=$? 5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5745 (exit $ac_status); } && 5746 { ac_try='test -s conftest.$ac_objext' 5747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5748 (eval $ac_try) 2>&5 5749 ac_status=$? 5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5751 (exit $ac_status); }; }; then 5752 ac_hi=-1 ac_mid=-1 5753 while :; do 5754 cat >conftest.$ac_ext <<_ACEOF 5755#line $LINENO "configure" 5756/* confdefs.h. */ 5757_ACEOF 5758cat confdefs.h >>conftest.$ac_ext 5759cat >>conftest.$ac_ext <<_ACEOF 5760/* end confdefs.h. */ 5761$ac_includes_default 5762int 5763main () 5764{ 5765static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 5766test_array [0] = 0 5767 5768 ; 5769 return 0; 5770} 5771_ACEOF 5772rm -f conftest.$ac_objext 5773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5774 (eval $ac_compile) 2>&5 5775 ac_status=$? 5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5777 (exit $ac_status); } && 5778 { ac_try='test -s conftest.$ac_objext' 5779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5780 (eval $ac_try) 2>&5 5781 ac_status=$? 5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5783 (exit $ac_status); }; }; then 5784 ac_lo=$ac_mid; break 5785else 5786 echo "$as_me: failed program was:" >&5 5787sed 's/^/| /' conftest.$ac_ext >&5 5788 5789ac_hi=`expr '(' $ac_mid ')' - 1` 5790 if test $ac_mid -le $ac_hi; then 5791 ac_lo= ac_hi= 5792 break 5793 fi 5794 ac_mid=`expr 2 '*' $ac_mid` 5795fi 5796rm -f conftest.$ac_objext conftest.$ac_ext 5797 done 5798else 5799 echo "$as_me: failed program was:" >&5 5800sed 's/^/| /' conftest.$ac_ext >&5 5801 5802ac_lo= ac_hi= 5803fi 5804rm -f conftest.$ac_objext conftest.$ac_ext 5805fi 5806rm -f conftest.$ac_objext conftest.$ac_ext 5807# Binary search between lo and hi bounds. 5808while test "x$ac_lo" != "x$ac_hi"; do 5809 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 5810 cat >conftest.$ac_ext <<_ACEOF 5811#line $LINENO "configure" 5812/* confdefs.h. */ 5813_ACEOF 5814cat confdefs.h >>conftest.$ac_ext 5815cat >>conftest.$ac_ext <<_ACEOF 5816/* end confdefs.h. */ 5817$ac_includes_default 5818int 5819main () 5820{ 5821static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 5822test_array [0] = 0 5823 5824 ; 5825 return 0; 5826} 5827_ACEOF 5828rm -f conftest.$ac_objext 5829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5830 (eval $ac_compile) 2>&5 5831 ac_status=$? 5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5833 (exit $ac_status); } && 5834 { ac_try='test -s conftest.$ac_objext' 5835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5836 (eval $ac_try) 2>&5 5837 ac_status=$? 5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5839 (exit $ac_status); }; }; then 5840 ac_hi=$ac_mid 5841else 5842 echo "$as_me: failed program was:" >&5 5843sed 's/^/| /' conftest.$ac_ext >&5 5844 5845ac_lo=`expr '(' $ac_mid ')' + 1` 5846fi 5847rm -f conftest.$ac_objext conftest.$ac_ext 5848done 5849case $ac_lo in 5850?*) ac_cv_sizeof_long=$ac_lo;; 5851'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 5852See \`config.log' for more details." >&5 5853echo "$as_me: error: cannot compute sizeof (long), 77 5854See \`config.log' for more details." >&2;} 5855 { (exit 1); exit 1; }; } ;; 5856esac 5857else 5858 if test "$cross_compiling" = yes; then 5859 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 5860See \`config.log' for more details." >&5 5861echo "$as_me: error: cannot run test program while cross compiling 5862See \`config.log' for more details." >&2;} 5863 { (exit 1); exit 1; }; } 5864else 5865 cat >conftest.$ac_ext <<_ACEOF 5866#line $LINENO "configure" 5867/* confdefs.h. */ 5868_ACEOF 5869cat confdefs.h >>conftest.$ac_ext 5870cat >>conftest.$ac_ext <<_ACEOF 5871/* end confdefs.h. */ 5872$ac_includes_default 5873long longval () { return (long) (sizeof (long)); } 5874unsigned long ulongval () { return (long) (sizeof (long)); } 5875#include <stdio.h> 5876#include <stdlib.h> 5877int 5878main () 5879{ 5880 5881 FILE *f = fopen ("conftest.val", "w"); 5882 if (! f) 5883 exit (1); 5884 if (((long) (sizeof (long))) < 0) 5885 { 5886 long i = longval (); 5887 if (i != ((long) (sizeof (long)))) 5888 exit (1); 5889 fprintf (f, "%ld\n", i); 5890 } 5891 else 5892 { 5893 unsigned long i = ulongval (); 5894 if (i != ((long) (sizeof (long)))) 5895 exit (1); 5896 fprintf (f, "%lu\n", i); 5897 } 5898 exit (ferror (f) || fclose (f) != 0); 5899 5900 ; 5901 return 0; 5902} 5903_ACEOF 5904rm -f conftest$ac_exeext 5905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5906 (eval $ac_link) 2>&5 5907 ac_status=$? 5908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5909 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5911 (eval $ac_try) 2>&5 5912 ac_status=$? 5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5914 (exit $ac_status); }; }; then 5915 ac_cv_sizeof_long=`cat conftest.val` 5916else 5917 echo "$as_me: program exited with status $ac_status" >&5 5918echo "$as_me: failed program was:" >&5 5919sed 's/^/| /' conftest.$ac_ext >&5 5920 5921( exit $ac_status ) 5922{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 5923See \`config.log' for more details." >&5 5924echo "$as_me: error: cannot compute sizeof (long), 77 5925See \`config.log' for more details." >&2;} 5926 { (exit 1); exit 1; }; } 5927fi 5928rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5929fi 5930fi 5931rm -f conftest.val 5932else 5933 ac_cv_sizeof_long=0 5934fi 5935fi 5936echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 5937echo "${ECHO_T}$ac_cv_sizeof_long" >&6 5938cat >>confdefs.h <<_ACEOF 5939#define SIZEOF_LONG $ac_cv_sizeof_long 5940_ACEOF 5941 5942 5943echo "$as_me:$LINENO: checking for long long" >&5 5944echo $ECHO_N "checking for long long... $ECHO_C" >&6 5945if test "${ac_cv_type_long_long+set}" = set; then 5946 echo $ECHO_N "(cached) $ECHO_C" >&6 5947else 5948 cat >conftest.$ac_ext <<_ACEOF 5949#line $LINENO "configure" 5950/* confdefs.h. */ 5951_ACEOF 5952cat confdefs.h >>conftest.$ac_ext 5953cat >>conftest.$ac_ext <<_ACEOF 5954/* end confdefs.h. */ 5955$ac_includes_default 5956int 5957main () 5958{ 5959if ((long long *) 0) 5960 return 0; 5961if (sizeof (long long)) 5962 return 0; 5963 ; 5964 return 0; 5965} 5966_ACEOF 5967rm -f conftest.$ac_objext 5968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5969 (eval $ac_compile) 2>&5 5970 ac_status=$? 5971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5972 (exit $ac_status); } && 5973 { ac_try='test -s conftest.$ac_objext' 5974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5975 (eval $ac_try) 2>&5 5976 ac_status=$? 5977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5978 (exit $ac_status); }; }; then 5979 ac_cv_type_long_long=yes 5980else 5981 echo "$as_me: failed program was:" >&5 5982sed 's/^/| /' conftest.$ac_ext >&5 5983 5984ac_cv_type_long_long=no 5985fi 5986rm -f conftest.$ac_objext conftest.$ac_ext 5987fi 5988echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 5989echo "${ECHO_T}$ac_cv_type_long_long" >&6 5990 5991echo "$as_me:$LINENO: checking size of long long" >&5 5992echo $ECHO_N "checking size of long long... $ECHO_C" >&6 5993if test "${ac_cv_sizeof_long_long+set}" = set; then 5994 echo $ECHO_N "(cached) $ECHO_C" >&6 5995else 5996 if test "$ac_cv_type_long_long" = yes; then 5997 # The cast to unsigned long works around a bug in the HP C Compiler 5998 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 5999 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6000 # This bug is HP SR number 8606223364. 6001 if test "$cross_compiling" = yes; then 6002 # Depending upon the size, compute the lo and hi bounds. 6003cat >conftest.$ac_ext <<_ACEOF 6004#line $LINENO "configure" 6005/* confdefs.h. */ 6006_ACEOF 6007cat confdefs.h >>conftest.$ac_ext 6008cat >>conftest.$ac_ext <<_ACEOF 6009/* end confdefs.h. */ 6010$ac_includes_default 6011int 6012main () 6013{ 6014static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; 6015test_array [0] = 0 6016 6017 ; 6018 return 0; 6019} 6020_ACEOF 6021rm -f conftest.$ac_objext 6022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6023 (eval $ac_compile) 2>&5 6024 ac_status=$? 6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6026 (exit $ac_status); } && 6027 { ac_try='test -s conftest.$ac_objext' 6028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6029 (eval $ac_try) 2>&5 6030 ac_status=$? 6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6032 (exit $ac_status); }; }; then 6033 ac_lo=0 ac_mid=0 6034 while :; do 6035 cat >conftest.$ac_ext <<_ACEOF 6036#line $LINENO "configure" 6037/* confdefs.h. */ 6038_ACEOF 6039cat confdefs.h >>conftest.$ac_ext 6040cat >>conftest.$ac_ext <<_ACEOF 6041/* end confdefs.h. */ 6042$ac_includes_default 6043int 6044main () 6045{ 6046static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 6047test_array [0] = 0 6048 6049 ; 6050 return 0; 6051} 6052_ACEOF 6053rm -f conftest.$ac_objext 6054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6055 (eval $ac_compile) 2>&5 6056 ac_status=$? 6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6058 (exit $ac_status); } && 6059 { ac_try='test -s conftest.$ac_objext' 6060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6061 (eval $ac_try) 2>&5 6062 ac_status=$? 6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6064 (exit $ac_status); }; }; then 6065 ac_hi=$ac_mid; break 6066else 6067 echo "$as_me: failed program was:" >&5 6068sed 's/^/| /' conftest.$ac_ext >&5 6069 6070ac_lo=`expr $ac_mid + 1` 6071 if test $ac_lo -le $ac_mid; then 6072 ac_lo= ac_hi= 6073 break 6074 fi 6075 ac_mid=`expr 2 '*' $ac_mid + 1` 6076fi 6077rm -f conftest.$ac_objext conftest.$ac_ext 6078 done 6079else 6080 echo "$as_me: failed program was:" >&5 6081sed 's/^/| /' conftest.$ac_ext >&5 6082 6083cat >conftest.$ac_ext <<_ACEOF 6084#line $LINENO "configure" 6085/* confdefs.h. */ 6086_ACEOF 6087cat confdefs.h >>conftest.$ac_ext 6088cat >>conftest.$ac_ext <<_ACEOF 6089/* end confdefs.h. */ 6090$ac_includes_default 6091int 6092main () 6093{ 6094static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; 6095test_array [0] = 0 6096 6097 ; 6098 return 0; 6099} 6100_ACEOF 6101rm -f conftest.$ac_objext 6102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6103 (eval $ac_compile) 2>&5 6104 ac_status=$? 6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6106 (exit $ac_status); } && 6107 { ac_try='test -s conftest.$ac_objext' 6108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6109 (eval $ac_try) 2>&5 6110 ac_status=$? 6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6112 (exit $ac_status); }; }; then 6113 ac_hi=-1 ac_mid=-1 6114 while :; do 6115 cat >conftest.$ac_ext <<_ACEOF 6116#line $LINENO "configure" 6117/* confdefs.h. */ 6118_ACEOF 6119cat confdefs.h >>conftest.$ac_ext 6120cat >>conftest.$ac_ext <<_ACEOF 6121/* end confdefs.h. */ 6122$ac_includes_default 6123int 6124main () 6125{ 6126static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; 6127test_array [0] = 0 6128 6129 ; 6130 return 0; 6131} 6132_ACEOF 6133rm -f conftest.$ac_objext 6134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6135 (eval $ac_compile) 2>&5 6136 ac_status=$? 6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6138 (exit $ac_status); } && 6139 { ac_try='test -s conftest.$ac_objext' 6140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6141 (eval $ac_try) 2>&5 6142 ac_status=$? 6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6144 (exit $ac_status); }; }; then 6145 ac_lo=$ac_mid; break 6146else 6147 echo "$as_me: failed program was:" >&5 6148sed 's/^/| /' conftest.$ac_ext >&5 6149 6150ac_hi=`expr '(' $ac_mid ')' - 1` 6151 if test $ac_mid -le $ac_hi; then 6152 ac_lo= ac_hi= 6153 break 6154 fi 6155 ac_mid=`expr 2 '*' $ac_mid` 6156fi 6157rm -f conftest.$ac_objext conftest.$ac_ext 6158 done 6159else 6160 echo "$as_me: failed program was:" >&5 6161sed 's/^/| /' conftest.$ac_ext >&5 6162 6163ac_lo= ac_hi= 6164fi 6165rm -f conftest.$ac_objext conftest.$ac_ext 6166fi 6167rm -f conftest.$ac_objext conftest.$ac_ext 6168# Binary search between lo and hi bounds. 6169while test "x$ac_lo" != "x$ac_hi"; do 6170 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 6171 cat >conftest.$ac_ext <<_ACEOF 6172#line $LINENO "configure" 6173/* confdefs.h. */ 6174_ACEOF 6175cat confdefs.h >>conftest.$ac_ext 6176cat >>conftest.$ac_ext <<_ACEOF 6177/* end confdefs.h. */ 6178$ac_includes_default 6179int 6180main () 6181{ 6182static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 6183test_array [0] = 0 6184 6185 ; 6186 return 0; 6187} 6188_ACEOF 6189rm -f conftest.$ac_objext 6190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6191 (eval $ac_compile) 2>&5 6192 ac_status=$? 6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6194 (exit $ac_status); } && 6195 { ac_try='test -s conftest.$ac_objext' 6196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6197 (eval $ac_try) 2>&5 6198 ac_status=$? 6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6200 (exit $ac_status); }; }; then 6201 ac_hi=$ac_mid 6202else 6203 echo "$as_me: failed program was:" >&5 6204sed 's/^/| /' conftest.$ac_ext >&5 6205 6206ac_lo=`expr '(' $ac_mid ')' + 1` 6207fi 6208rm -f conftest.$ac_objext conftest.$ac_ext 6209done 6210case $ac_lo in 6211?*) ac_cv_sizeof_long_long=$ac_lo;; 6212'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 6213See \`config.log' for more details." >&5 6214echo "$as_me: error: cannot compute sizeof (long long), 77 6215See \`config.log' for more details." >&2;} 6216 { (exit 1); exit 1; }; } ;; 6217esac 6218else 6219 if test "$cross_compiling" = yes; then 6220 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 6221See \`config.log' for more details." >&5 6222echo "$as_me: error: cannot run test program while cross compiling 6223See \`config.log' for more details." >&2;} 6224 { (exit 1); exit 1; }; } 6225else 6226 cat >conftest.$ac_ext <<_ACEOF 6227#line $LINENO "configure" 6228/* confdefs.h. */ 6229_ACEOF 6230cat confdefs.h >>conftest.$ac_ext 6231cat >>conftest.$ac_ext <<_ACEOF 6232/* end confdefs.h. */ 6233$ac_includes_default 6234long longval () { return (long) (sizeof (long long)); } 6235unsigned long ulongval () { return (long) (sizeof (long long)); } 6236#include <stdio.h> 6237#include <stdlib.h> 6238int 6239main () 6240{ 6241 6242 FILE *f = fopen ("conftest.val", "w"); 6243 if (! f) 6244 exit (1); 6245 if (((long) (sizeof (long long))) < 0) 6246 { 6247 long i = longval (); 6248 if (i != ((long) (sizeof (long long)))) 6249 exit (1); 6250 fprintf (f, "%ld\n", i); 6251 } 6252 else 6253 { 6254 unsigned long i = ulongval (); 6255 if (i != ((long) (sizeof (long long)))) 6256 exit (1); 6257 fprintf (f, "%lu\n", i); 6258 } 6259 exit (ferror (f) || fclose (f) != 0); 6260 6261 ; 6262 return 0; 6263} 6264_ACEOF 6265rm -f conftest$ac_exeext 6266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6267 (eval $ac_link) 2>&5 6268 ac_status=$? 6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6270 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6272 (eval $ac_try) 2>&5 6273 ac_status=$? 6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6275 (exit $ac_status); }; }; then 6276 ac_cv_sizeof_long_long=`cat conftest.val` 6277else 6278 echo "$as_me: program exited with status $ac_status" >&5 6279echo "$as_me: failed program was:" >&5 6280sed 's/^/| /' conftest.$ac_ext >&5 6281 6282( exit $ac_status ) 6283{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 6284See \`config.log' for more details." >&5 6285echo "$as_me: error: cannot compute sizeof (long long), 77 6286See \`config.log' for more details." >&2;} 6287 { (exit 1); exit 1; }; } 6288fi 6289rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6290fi 6291fi 6292rm -f conftest.val 6293else 6294 ac_cv_sizeof_long_long=0 6295fi 6296fi 6297echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 6298echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 6299cat >>confdefs.h <<_ACEOF 6300#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 6301_ACEOF 6302 6303 6304 6305 6306 6307 echo "$as_me:$LINENO: checking for addrinfo" >&5 6308echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6 6309 if test "${ac_cv_addrinfo+set}" = set; then 6310 echo $ECHO_N "(cached) $ECHO_C" >&6 6311else 6312 cat >conftest.$ac_ext <<_ACEOF 6313#line $LINENO "configure" 6314/* confdefs.h. */ 6315_ACEOF 6316cat confdefs.h >>conftest.$ac_ext 6317cat >>conftest.$ac_ext <<_ACEOF 6318/* end confdefs.h. */ 6319 6320# include <netdb.h> 6321int 6322main () 6323{ 6324struct addrinfo a 6325 ; 6326 return 0; 6327} 6328_ACEOF 6329rm -f conftest.$ac_objext 6330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6331 (eval $ac_compile) 2>&5 6332 ac_status=$? 6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6334 (exit $ac_status); } && 6335 { ac_try='test -s conftest.$ac_objext' 6336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6337 (eval $ac_try) 2>&5 6338 ac_status=$? 6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6340 (exit $ac_status); }; }; then 6341 ac_cv_addrinfo=yes 6342else 6343 echo "$as_me: failed program was:" >&5 6344sed 's/^/| /' conftest.$ac_ext >&5 6345 6346ac_cv_addrinfo=no 6347fi 6348rm -f conftest.$ac_objext conftest.$ac_ext 6349fi 6350 6351 echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5 6352echo "${ECHO_T}$ac_cv_addrinfo" >&6 6353 if test $ac_cv_addrinfo = yes; then 6354 cat >>confdefs.h <<\_ACEOF 6355#define HAVE_ADDRINFO 1 6356_ACEOF 6357 6358 else 6359 cat >>confdefs.h <<\_ACEOF 6360#define NEED_ADDRINFO_H 1 6361_ACEOF 6362 6363 fi 6364 6365if test "$ac_cv_addrinfo" = no; then 6366 missing_includes=yes 6367fi 6368 6369 6370 echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5 6371echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6 6372 if test "${ac_cv_maxserv+set}" = set; then 6373 echo $ECHO_N "(cached) $ECHO_C" >&6 6374else 6375 cat >conftest.$ac_ext <<_ACEOF 6376#line $LINENO "configure" 6377/* confdefs.h. */ 6378_ACEOF 6379cat confdefs.h >>conftest.$ac_ext 6380cat >>conftest.$ac_ext <<_ACEOF 6381/* end confdefs.h. */ 6382#include <netdb.h> 6383#ifdef NI_MAXSERV 6384yes 6385#endif 6386_ACEOF 6387if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6388 $EGREP "yes" >/dev/null 2>&1; then 6389 ac_cv_maxserv=yes 6390else 6391 ac_cv_maxserv=no 6392fi 6393rm -f conftest* 6394 6395fi 6396 6397 echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5 6398echo "${ECHO_T}$ac_cv_maxserv" >&6 6399 if test $ac_cv_maxserv != yes; then 6400 cat >>confdefs.h <<\_ACEOF 6401#define NEED_ADDRINFO_H 1 6402_ACEOF 6403 6404 fi 6405 6406if test "$ac_cv_maxserv" = no; then 6407 missing_includes=yes 6408fi 6409 6410 6411 echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5 6412echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6 6413 if test "${ac_cv_namereqd+set}" = set; then 6414 echo $ECHO_N "(cached) $ECHO_C" >&6 6415else 6416 cat >conftest.$ac_ext <<_ACEOF 6417#line $LINENO "configure" 6418/* confdefs.h. */ 6419_ACEOF 6420cat confdefs.h >>conftest.$ac_ext 6421cat >>conftest.$ac_ext <<_ACEOF 6422/* end confdefs.h. */ 6423#include <netdb.h> 6424#ifdef NI_NOFQDN 6425yes 6426#endif 6427_ACEOF 6428if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6429 $EGREP "yes" >/dev/null 2>&1; then 6430 ac_cv_namereqd=yes 6431else 6432 ac_cv_namereqd=no 6433fi 6434rm -f conftest* 6435 6436fi 6437 6438 echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5 6439echo "${ECHO_T}$ac_cv_namereqd" >&6 6440 if test $ac_cv_namereqd != yes; then 6441 cat >>confdefs.h <<\_ACEOF 6442#define NEED_ADDRINFO_H 1 6443_ACEOF 6444 6445 fi 6446 6447if test "$ac_cv_namereqd" = no; then 6448 missing_includes=yes 6449fi 6450 6451 6452 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 6453echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6 6454 if test "${ac_cv_sa_storage+set}" = set; then 6455 echo $ECHO_N "(cached) $ECHO_C" >&6 6456else 6457 cat >conftest.$ac_ext <<_ACEOF 6458#line $LINENO "configure" 6459/* confdefs.h. */ 6460_ACEOF 6461cat confdefs.h >>conftest.$ac_ext 6462cat >>conftest.$ac_ext <<_ACEOF 6463/* end confdefs.h. */ 6464 6465# include <sys/types.h> 6466# include <sys/socket.h> 6467int 6468main () 6469{ 6470struct sockaddr_storage s 6471 ; 6472 return 0; 6473} 6474_ACEOF 6475rm -f conftest.$ac_objext 6476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6477 (eval $ac_compile) 2>&5 6478 ac_status=$? 6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6480 (exit $ac_status); } && 6481 { ac_try='test -s conftest.$ac_objext' 6482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6483 (eval $ac_try) 2>&5 6484 ac_status=$? 6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6486 (exit $ac_status); }; }; then 6487 ac_cv_sa_storage=yes 6488else 6489 echo "$as_me: failed program was:" >&5 6490sed 's/^/| /' conftest.$ac_ext >&5 6491 6492ac_cv_sa_storage=no 6493fi 6494rm -f conftest.$ac_objext conftest.$ac_ext 6495fi 6496 6497 echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5 6498echo "${ECHO_T}$ac_cv_sa_storage" >&6 6499 if test $ac_cv_sa_storage = yes; then 6500 cat >>confdefs.h <<\_ACEOF 6501#define HAVE_SOCKADDR_STORAGE 1 6502_ACEOF 6503 6504 fi 6505 6506if test "$ac_cv_sa_storage" = no; then 6507 missing_includes=yes 6508fi 6509 6510 6511 ac_cv_addrsz=yes 6512 echo "$as_me:$LINENO: checking for INADDRSZ" >&5 6513echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6 6514 if test "${ac_cv_inaddrsz+set}" = set; then 6515 echo $ECHO_N "(cached) $ECHO_C" >&6 6516else 6517 cat >conftest.$ac_ext <<_ACEOF 6518#line $LINENO "configure" 6519/* confdefs.h. */ 6520_ACEOF 6521cat confdefs.h >>conftest.$ac_ext 6522cat >>conftest.$ac_ext <<_ACEOF 6523/* end confdefs.h. */ 6524 6525# include <arpa/nameser.h> 6526int 6527main () 6528{ 6529int a = INADDRSZ 6530 ; 6531 return 0; 6532} 6533_ACEOF 6534rm -f conftest.$ac_objext 6535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6536 (eval $ac_compile) 2>&5 6537 ac_status=$? 6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6539 (exit $ac_status); } && 6540 { ac_try='test -s conftest.$ac_objext' 6541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6542 (eval $ac_try) 2>&5 6543 ac_status=$? 6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6545 (exit $ac_status); }; }; then 6546 ac_cv_inaddrsz=yes 6547else 6548 echo "$as_me: failed program was:" >&5 6549sed 's/^/| /' conftest.$ac_ext >&5 6550 6551ac_cv_inaddrsz=no 6552fi 6553rm -f conftest.$ac_objext conftest.$ac_ext 6554fi 6555 6556 echo "$as_me:$LINENO: result: $ac_cv_inaddrsz" >&5 6557echo "${ECHO_T}$ac_cv_inaddrsz" >&6 6558 if test $ac_cv_inaddrsz = yes; then 6559 cat >>confdefs.h <<\_ACEOF 6560#define HAVE_INADDRSZ 1 6561_ACEOF 6562 6563 else 6564 ac_cv_addrsz=no 6565 fi 6566 echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5 6567echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6 6568 if test "${ac_cv_in6addrsz+set}" = set; then 6569 echo $ECHO_N "(cached) $ECHO_C" >&6 6570else 6571 cat >conftest.$ac_ext <<_ACEOF 6572#line $LINENO "configure" 6573/* confdefs.h. */ 6574_ACEOF 6575cat confdefs.h >>conftest.$ac_ext 6576cat >>conftest.$ac_ext <<_ACEOF 6577/* end confdefs.h. */ 6578 6579# include <arpa/nameser.h> 6580int 6581main () 6582{ 6583int a = IN6ADDRSZ 6584 ; 6585 return 0; 6586} 6587_ACEOF 6588rm -f conftest.$ac_objext 6589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6590 (eval $ac_compile) 2>&5 6591 ac_status=$? 6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6593 (exit $ac_status); } && 6594 { ac_try='test -s conftest.$ac_objext' 6595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6596 (eval $ac_try) 2>&5 6597 ac_status=$? 6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6599 (exit $ac_status); }; }; then 6600 ac_cv_in6addrsz=yes 6601else 6602 echo "$as_me: failed program was:" >&5 6603sed 's/^/| /' conftest.$ac_ext >&5 6604 6605ac_cv_in6addrsz=no 6606fi 6607rm -f conftest.$ac_objext conftest.$ac_ext 6608fi 6609 6610 echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5 6611echo "${ECHO_T}$ac_cv_in6addrsz" >&6 6612 if test $ac_cv_in6addrsz = yes; then 6613 cat >>confdefs.h <<\_ACEOF 6614#define HAVE_IN6ADDRSZ 1 6615_ACEOF 6616 6617 else 6618 ac_cv_addrsz=no 6619 fi 6620 6621if test "$ac_cv_addrsz" = no; then 6622 missing_includes=yes 6623fi 6624 6625 6626 echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5 6627echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6 6628 if test "${ac_cv_res_inet6+set}" = set; then 6629 echo $ECHO_N "(cached) $ECHO_C" >&6 6630else 6631 cat >conftest.$ac_ext <<_ACEOF 6632#line $LINENO "configure" 6633/* confdefs.h. */ 6634_ACEOF 6635cat confdefs.h >>conftest.$ac_ext 6636cat >>conftest.$ac_ext <<_ACEOF 6637/* end confdefs.h. */ 6638 6639# include <sys/types.h> 6640# include <netinet/in.h> 6641# include <resolv.h> 6642int 6643main () 6644{ 6645int a = RES_USE_INET6 6646 ; 6647 return 0; 6648} 6649_ACEOF 6650rm -f conftest.$ac_objext 6651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6652 (eval $ac_compile) 2>&5 6653 ac_status=$? 6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6655 (exit $ac_status); } && 6656 { ac_try='test -s conftest.$ac_objext' 6657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6658 (eval $ac_try) 2>&5 6659 ac_status=$? 6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6661 (exit $ac_status); }; }; then 6662 ac_cv_res_inet6=yes 6663else 6664 echo "$as_me: failed program was:" >&5 6665sed 's/^/| /' conftest.$ac_ext >&5 6666 6667ac_cv_res_inet6=no 6668fi 6669rm -f conftest.$ac_objext conftest.$ac_ext 6670fi 6671 6672 echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5 6673echo "${ECHO_T}$ac_cv_res_inet6" >&6 6674 if test $ac_cv_res_inet6 = yes; then 6675 cat >>confdefs.h <<\_ACEOF 6676#define HAVE_RES_USE_INET6 1 6677_ACEOF 6678 6679 fi 6680 6681if test "$ac_cv_res_inet6" = no; then 6682 missing_includes=yes 6683fi 6684 6685 6686 echo "$as_me:$LINENO: checking for res_state_ext" >&5 6687echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6 6688 if test "${ac_cv_res_state_ext+set}" = set; then 6689 echo $ECHO_N "(cached) $ECHO_C" >&6 6690else 6691 cat >conftest.$ac_ext <<_ACEOF 6692#line $LINENO "configure" 6693/* confdefs.h. */ 6694_ACEOF 6695cat confdefs.h >>conftest.$ac_ext 6696cat >>conftest.$ac_ext <<_ACEOF 6697/* end confdefs.h. */ 6698 6699# include <sys/types.h> 6700# include <netinet/in.h> 6701# include <netinet6/in6.h> 6702# include <resolv.h> 6703int 6704main () 6705{ 6706struct __res_state_ext e 6707 ; 6708 return 0; 6709} 6710_ACEOF 6711rm -f conftest.$ac_objext 6712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6713 (eval $ac_compile) 2>&5 6714 ac_status=$? 6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6716 (exit $ac_status); } && 6717 { ac_try='test -s conftest.$ac_objext' 6718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6719 (eval $ac_try) 2>&5 6720 ac_status=$? 6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6722 (exit $ac_status); }; }; then 6723 ac_cv_res_state_ext=yes 6724else 6725 echo "$as_me: failed program was:" >&5 6726sed 's/^/| /' conftest.$ac_ext >&5 6727 6728ac_cv_res_state_ext=no 6729fi 6730rm -f conftest.$ac_objext conftest.$ac_ext 6731fi 6732 6733 echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5 6734echo "${ECHO_T}$ac_cv_res_state_ext" >&6 6735 if test $ac_cv_res_state_ext = yes; then 6736 cat >>confdefs.h <<\_ACEOF 6737#define HAVE_RES_STATE_EXT 1 6738_ACEOF 6739 6740 fi 6741 6742if test "$ac_cv_res_state_ext" = no; then 6743 missing_includes=yes 6744fi 6745 6746 6747 echo "$as_me:$LINENO: checking for nsort in res_state" >&5 6748echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6 6749 if test "${ac_cv_res_state+set}" = set; then 6750 echo $ECHO_N "(cached) $ECHO_C" >&6 6751else 6752 cat >conftest.$ac_ext <<_ACEOF 6753#line $LINENO "configure" 6754/* confdefs.h. */ 6755_ACEOF 6756cat confdefs.h >>conftest.$ac_ext 6757cat >>conftest.$ac_ext <<_ACEOF 6758/* end confdefs.h. */ 6759 6760# include <sys/types.h> 6761# include <netinet/in.h> 6762# include <netinet6/in6.h> 6763# include <resolv.h> 6764int 6765main () 6766{ 6767struct __res_state e; e.nsort = 0 6768 ; 6769 return 0; 6770} 6771_ACEOF 6772rm -f conftest.$ac_objext 6773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6774 (eval $ac_compile) 2>&5 6775 ac_status=$? 6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6777 (exit $ac_status); } && 6778 { ac_try='test -s conftest.$ac_objext' 6779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6780 (eval $ac_try) 2>&5 6781 ac_status=$? 6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6783 (exit $ac_status); }; }; then 6784 ac_cv_res_state=yes 6785else 6786 echo "$as_me: failed program was:" >&5 6787sed 's/^/| /' conftest.$ac_ext >&5 6788 6789ac_cv_res_state=no 6790fi 6791rm -f conftest.$ac_objext conftest.$ac_ext 6792fi 6793 6794 echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5 6795echo "${ECHO_T}$ac_cv_res_state" >&6 6796 if test $ac_cv_res_state = yes; then 6797 cat >>confdefs.h <<\_ACEOF 6798#define HAVE_NEW_RES_STATE 1 6799_ACEOF 6800 6801 fi 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep 6812do 6813as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6814echo "$as_me:$LINENO: checking for $ac_func" >&5 6815echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6816if eval "test \"\${$as_ac_var+set}\" = set"; then 6817 echo $ECHO_N "(cached) $ECHO_C" >&6 6818else 6819 cat >conftest.$ac_ext <<_ACEOF 6820#line $LINENO "configure" 6821/* confdefs.h. */ 6822_ACEOF 6823cat confdefs.h >>conftest.$ac_ext 6824cat >>conftest.$ac_ext <<_ACEOF 6825/* end confdefs.h. */ 6826/* System header to define __stub macros and hopefully few prototypes, 6827 which can conflict with char $ac_func (); below. 6828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6829 <limits.h> exists even on freestanding compilers. */ 6830#ifdef __STDC__ 6831# include <limits.h> 6832#else 6833# include <assert.h> 6834#endif 6835/* Override any gcc2 internal prototype to avoid an error. */ 6836#ifdef __cplusplus 6837extern "C" 6838{ 6839#endif 6840/* We use char because int might match the return type of a gcc2 6841 builtin and then its argument prototype would still apply. */ 6842char $ac_func (); 6843/* The GNU C library defines this for functions which it implements 6844 to always fail with ENOSYS. Some functions are actually named 6845 something starting with __ and the normal name is an alias. */ 6846#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6847choke me 6848#else 6849char (*f) () = $ac_func; 6850#endif 6851#ifdef __cplusplus 6852} 6853#endif 6854 6855int 6856main () 6857{ 6858return f != $ac_func; 6859 ; 6860 return 0; 6861} 6862_ACEOF 6863rm -f conftest.$ac_objext conftest$ac_exeext 6864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6865 (eval $ac_link) 2>&5 6866 ac_status=$? 6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6868 (exit $ac_status); } && 6869 { ac_try='test -s conftest$ac_exeext' 6870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6871 (eval $ac_try) 2>&5 6872 ac_status=$? 6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6874 (exit $ac_status); }; }; then 6875 eval "$as_ac_var=yes" 6876else 6877 echo "$as_me: failed program was:" >&5 6878sed 's/^/| /' conftest.$ac_ext >&5 6879 6880eval "$as_ac_var=no" 6881fi 6882rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6883fi 6884echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6885echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6886if test `eval echo '${'$as_ac_var'}'` = yes; then 6887 cat >>confdefs.h <<_ACEOF 6888#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6889_ACEOF 6890 6891else 6892 LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 6893fi 6894done 6895 6896 6897 6898for ac_func in strftime 6899do 6900as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6901echo "$as_me:$LINENO: checking for $ac_func" >&5 6902echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6903if eval "test \"\${$as_ac_var+set}\" = set"; then 6904 echo $ECHO_N "(cached) $ECHO_C" >&6 6905else 6906 cat >conftest.$ac_ext <<_ACEOF 6907#line $LINENO "configure" 6908/* confdefs.h. */ 6909_ACEOF 6910cat confdefs.h >>conftest.$ac_ext 6911cat >>conftest.$ac_ext <<_ACEOF 6912/* end confdefs.h. */ 6913/* System header to define __stub macros and hopefully few prototypes, 6914 which can conflict with char $ac_func (); below. 6915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6916 <limits.h> exists even on freestanding compilers. */ 6917#ifdef __STDC__ 6918# include <limits.h> 6919#else 6920# include <assert.h> 6921#endif 6922/* Override any gcc2 internal prototype to avoid an error. */ 6923#ifdef __cplusplus 6924extern "C" 6925{ 6926#endif 6927/* We use char because int might match the return type of a gcc2 6928 builtin and then its argument prototype would still apply. */ 6929char $ac_func (); 6930/* The GNU C library defines this for functions which it implements 6931 to always fail with ENOSYS. Some functions are actually named 6932 something starting with __ and the normal name is an alias. */ 6933#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6934choke me 6935#else 6936char (*f) () = $ac_func; 6937#endif 6938#ifdef __cplusplus 6939} 6940#endif 6941 6942int 6943main () 6944{ 6945return f != $ac_func; 6946 ; 6947 return 0; 6948} 6949_ACEOF 6950rm -f conftest.$ac_objext conftest$ac_exeext 6951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6952 (eval $ac_link) 2>&5 6953 ac_status=$? 6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6955 (exit $ac_status); } && 6956 { ac_try='test -s conftest$ac_exeext' 6957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6958 (eval $ac_try) 2>&5 6959 ac_status=$? 6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6961 (exit $ac_status); }; }; then 6962 eval "$as_ac_var=yes" 6963else 6964 echo "$as_me: failed program was:" >&5 6965sed 's/^/| /' conftest.$ac_ext >&5 6966 6967eval "$as_ac_var=no" 6968fi 6969rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6970fi 6971echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6972echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6973if test `eval echo '${'$as_ac_var'}'` = yes; then 6974 cat >>confdefs.h <<_ACEOF 6975#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6976_ACEOF 6977 6978fi 6979done 6980 6981 6982 6983for ac_func in setlinebuf alarm 6984do 6985as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6986echo "$as_me:$LINENO: checking for $ac_func" >&5 6987echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6988if eval "test \"\${$as_ac_var+set}\" = set"; then 6989 echo $ECHO_N "(cached) $ECHO_C" >&6 6990else 6991 cat >conftest.$ac_ext <<_ACEOF 6992#line $LINENO "configure" 6993/* confdefs.h. */ 6994_ACEOF 6995cat confdefs.h >>conftest.$ac_ext 6996cat >>conftest.$ac_ext <<_ACEOF 6997/* end confdefs.h. */ 6998/* System header to define __stub macros and hopefully few prototypes, 6999 which can conflict with char $ac_func (); below. 7000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7001 <limits.h> exists even on freestanding compilers. */ 7002#ifdef __STDC__ 7003# include <limits.h> 7004#else 7005# include <assert.h> 7006#endif 7007/* Override any gcc2 internal prototype to avoid an error. */ 7008#ifdef __cplusplus 7009extern "C" 7010{ 7011#endif 7012/* We use char because int might match the return type of a gcc2 7013 builtin and then its argument prototype would still apply. */ 7014char $ac_func (); 7015/* The GNU C library defines this for functions which it implements 7016 to always fail with ENOSYS. Some functions are actually named 7017 something starting with __ and the normal name is an alias. */ 7018#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7019choke me 7020#else 7021char (*f) () = $ac_func; 7022#endif 7023#ifdef __cplusplus 7024} 7025#endif 7026 7027int 7028main () 7029{ 7030return f != $ac_func; 7031 ; 7032 return 0; 7033} 7034_ACEOF 7035rm -f conftest.$ac_objext conftest$ac_exeext 7036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7037 (eval $ac_link) 2>&5 7038 ac_status=$? 7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7040 (exit $ac_status); } && 7041 { ac_try='test -s conftest$ac_exeext' 7042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7043 (eval $ac_try) 2>&5 7044 ac_status=$? 7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7046 (exit $ac_status); }; }; then 7047 eval "$as_ac_var=yes" 7048else 7049 echo "$as_me: failed program was:" >&5 7050sed 's/^/| /' conftest.$ac_ext >&5 7051 7052eval "$as_ac_var=no" 7053fi 7054rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7055fi 7056echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 7057echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7058if test `eval echo '${'$as_ac_var'}'` = yes; then 7059 cat >>confdefs.h <<_ACEOF 7060#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7061_ACEOF 7062 7063fi 7064done 7065 7066 7067needsnprintf=no 7068 7069 7070for ac_func in vsnprintf snprintf 7071do 7072as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7073echo "$as_me:$LINENO: checking for $ac_func" >&5 7074echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7075if eval "test \"\${$as_ac_var+set}\" = set"; then 7076 echo $ECHO_N "(cached) $ECHO_C" >&6 7077else 7078 cat >conftest.$ac_ext <<_ACEOF 7079#line $LINENO "configure" 7080/* confdefs.h. */ 7081_ACEOF 7082cat confdefs.h >>conftest.$ac_ext 7083cat >>conftest.$ac_ext <<_ACEOF 7084/* end confdefs.h. */ 7085/* System header to define __stub macros and hopefully few prototypes, 7086 which can conflict with char $ac_func (); below. 7087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7088 <limits.h> exists even on freestanding compilers. */ 7089#ifdef __STDC__ 7090# include <limits.h> 7091#else 7092# include <assert.h> 7093#endif 7094/* Override any gcc2 internal prototype to avoid an error. */ 7095#ifdef __cplusplus 7096extern "C" 7097{ 7098#endif 7099/* We use char because int might match the return type of a gcc2 7100 builtin and then its argument prototype would still apply. */ 7101char $ac_func (); 7102/* The GNU C library defines this for functions which it implements 7103 to always fail with ENOSYS. Some functions are actually named 7104 something starting with __ and the normal name is an alias. */ 7105#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7106choke me 7107#else 7108char (*f) () = $ac_func; 7109#endif 7110#ifdef __cplusplus 7111} 7112#endif 7113 7114int 7115main () 7116{ 7117return f != $ac_func; 7118 ; 7119 return 0; 7120} 7121_ACEOF 7122rm -f conftest.$ac_objext conftest$ac_exeext 7123if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7124 (eval $ac_link) 2>&5 7125 ac_status=$? 7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7127 (exit $ac_status); } && 7128 { ac_try='test -s conftest$ac_exeext' 7129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7130 (eval $ac_try) 2>&5 7131 ac_status=$? 7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7133 (exit $ac_status); }; }; then 7134 eval "$as_ac_var=yes" 7135else 7136 echo "$as_me: failed program was:" >&5 7137sed 's/^/| /' conftest.$ac_ext >&5 7138 7139eval "$as_ac_var=no" 7140fi 7141rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7142fi 7143echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 7144echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7145if test `eval echo '${'$as_ac_var'}'` = yes; then 7146 cat >>confdefs.h <<_ACEOF 7147#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7148_ACEOF 7149 7150else 7151 needsnprintf=yes 7152fi 7153done 7154 7155if test $needsnprintf = yes; then 7156 LIBOBJS="$LIBOBJS snprintf.$ac_objext" 7157fi 7158 7159 7160 echo "$as_me:$LINENO: checking return type of signal handlers" >&5 7161echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 7162if test "${ac_cv_type_signal+set}" = set; then 7163 echo $ECHO_N "(cached) $ECHO_C" >&6 7164else 7165 cat >conftest.$ac_ext <<_ACEOF 7166#line $LINENO "configure" 7167/* confdefs.h. */ 7168_ACEOF 7169cat confdefs.h >>conftest.$ac_ext 7170cat >>conftest.$ac_ext <<_ACEOF 7171/* end confdefs.h. */ 7172#include <sys/types.h> 7173#include <signal.h> 7174#ifdef signal 7175# undef signal 7176#endif 7177#ifdef __cplusplus 7178extern "C" void (*signal (int, void (*)(int)))(int); 7179#else 7180void (*signal ()) (); 7181#endif 7182 7183int 7184main () 7185{ 7186int i; 7187 ; 7188 return 0; 7189} 7190_ACEOF 7191rm -f conftest.$ac_objext 7192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7193 (eval $ac_compile) 2>&5 7194 ac_status=$? 7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7196 (exit $ac_status); } && 7197 { ac_try='test -s conftest.$ac_objext' 7198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7199 (eval $ac_try) 2>&5 7200 ac_status=$? 7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7202 (exit $ac_status); }; }; then 7203 ac_cv_type_signal=void 7204else 7205 echo "$as_me: failed program was:" >&5 7206sed 's/^/| /' conftest.$ac_ext >&5 7207 7208ac_cv_type_signal=int 7209fi 7210rm -f conftest.$ac_objext conftest.$ac_ext 7211fi 7212echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 7213echo "${ECHO_T}$ac_cv_type_signal" >&6 7214 7215cat >>confdefs.h <<_ACEOF 7216#define RETSIGTYPE $ac_cv_type_signal 7217_ACEOF 7218 7219 7220 if test "$ac_cv_type_signal" = void ; then 7221 cat >>confdefs.h <<\_ACEOF 7222#define RETSIGVAL 7223_ACEOF 7224 7225 else 7226 cat >>confdefs.h <<\_ACEOF 7227#define RETSIGVAL (0) 7228_ACEOF 7229 7230 fi 7231 case "$host_os" in 7232 7233 irix*) 7234 cat >>confdefs.h <<\_ACEOF 7235#define _BSD_SIGNALS 1 7236_ACEOF 7237 7238 ;; 7239 7240 *) 7241 7242for ac_func in sigaction 7243do 7244as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7245echo "$as_me:$LINENO: checking for $ac_func" >&5 7246echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7247if eval "test \"\${$as_ac_var+set}\" = set"; then 7248 echo $ECHO_N "(cached) $ECHO_C" >&6 7249else 7250 cat >conftest.$ac_ext <<_ACEOF 7251#line $LINENO "configure" 7252/* confdefs.h. */ 7253_ACEOF 7254cat confdefs.h >>conftest.$ac_ext 7255cat >>conftest.$ac_ext <<_ACEOF 7256/* end confdefs.h. */ 7257/* System header to define __stub macros and hopefully few prototypes, 7258 which can conflict with char $ac_func (); below. 7259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7260 <limits.h> exists even on freestanding compilers. */ 7261#ifdef __STDC__ 7262# include <limits.h> 7263#else 7264# include <assert.h> 7265#endif 7266/* Override any gcc2 internal prototype to avoid an error. */ 7267#ifdef __cplusplus 7268extern "C" 7269{ 7270#endif 7271/* We use char because int might match the return type of a gcc2 7272 builtin and then its argument prototype would still apply. */ 7273char $ac_func (); 7274/* The GNU C library defines this for functions which it implements 7275 to always fail with ENOSYS. Some functions are actually named 7276 something starting with __ and the normal name is an alias. */ 7277#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7278choke me 7279#else 7280char (*f) () = $ac_func; 7281#endif 7282#ifdef __cplusplus 7283} 7284#endif 7285 7286int 7287main () 7288{ 7289return f != $ac_func; 7290 ; 7291 return 0; 7292} 7293_ACEOF 7294rm -f conftest.$ac_objext conftest$ac_exeext 7295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7296 (eval $ac_link) 2>&5 7297 ac_status=$? 7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7299 (exit $ac_status); } && 7300 { ac_try='test -s conftest$ac_exeext' 7301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7302 (eval $ac_try) 2>&5 7303 ac_status=$? 7304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7305 (exit $ac_status); }; }; then 7306 eval "$as_ac_var=yes" 7307else 7308 echo "$as_me: failed program was:" >&5 7309sed 's/^/| /' conftest.$ac_ext >&5 7310 7311eval "$as_ac_var=no" 7312fi 7313rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7314fi 7315echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 7316echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7317if test `eval echo '${'$as_ac_var'}'` = yes; then 7318 cat >>confdefs.h <<_ACEOF 7319#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7320_ACEOF 7321 7322fi 7323done 7324 7325 if test $ac_cv_func_sigaction = no ; then 7326 7327for ac_func in sigset 7328do 7329as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7330echo "$as_me:$LINENO: checking for $ac_func" >&5 7331echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7332if eval "test \"\${$as_ac_var+set}\" = set"; then 7333 echo $ECHO_N "(cached) $ECHO_C" >&6 7334else 7335 cat >conftest.$ac_ext <<_ACEOF 7336#line $LINENO "configure" 7337/* confdefs.h. */ 7338_ACEOF 7339cat confdefs.h >>conftest.$ac_ext 7340cat >>conftest.$ac_ext <<_ACEOF 7341/* end confdefs.h. */ 7342/* System header to define __stub macros and hopefully few prototypes, 7343 which can conflict with char $ac_func (); below. 7344 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7345 <limits.h> exists even on freestanding compilers. */ 7346#ifdef __STDC__ 7347# include <limits.h> 7348#else 7349# include <assert.h> 7350#endif 7351/* Override any gcc2 internal prototype to avoid an error. */ 7352#ifdef __cplusplus 7353extern "C" 7354{ 7355#endif 7356/* We use char because int might match the return type of a gcc2 7357 builtin and then its argument prototype would still apply. */ 7358char $ac_func (); 7359/* The GNU C library defines this for functions which it implements 7360 to always fail with ENOSYS. Some functions are actually named 7361 something starting with __ and the normal name is an alias. */ 7362#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7363choke me 7364#else 7365char (*f) () = $ac_func; 7366#endif 7367#ifdef __cplusplus 7368} 7369#endif 7370 7371int 7372main () 7373{ 7374return f != $ac_func; 7375 ; 7376 return 0; 7377} 7378_ACEOF 7379rm -f conftest.$ac_objext conftest$ac_exeext 7380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7381 (eval $ac_link) 2>&5 7382 ac_status=$? 7383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7384 (exit $ac_status); } && 7385 { ac_try='test -s conftest$ac_exeext' 7386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7387 (eval $ac_try) 2>&5 7388 ac_status=$? 7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7390 (exit $ac_status); }; }; then 7391 eval "$as_ac_var=yes" 7392else 7393 echo "$as_me: failed program was:" >&5 7394sed 's/^/| /' conftest.$ac_ext >&5 7395 7396eval "$as_ac_var=no" 7397fi 7398rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7399fi 7400echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 7401echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7402if test `eval echo '${'$as_ac_var'}'` = yes; then 7403 cat >>confdefs.h <<_ACEOF 7404#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7405_ACEOF 7406 7407fi 7408done 7409 7410 fi 7411 ;; 7412 esac 7413 7414echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5 7415echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6 7416if test "${ac_cv_search_dnet_htoa+set}" = set; then 7417 echo $ECHO_N "(cached) $ECHO_C" >&6 7418else 7419 ac_func_search_save_LIBS=$LIBS 7420ac_cv_search_dnet_htoa=no 7421cat >conftest.$ac_ext <<_ACEOF 7422#line $LINENO "configure" 7423/* confdefs.h. */ 7424_ACEOF 7425cat confdefs.h >>conftest.$ac_ext 7426cat >>conftest.$ac_ext <<_ACEOF 7427/* end confdefs.h. */ 7428 7429/* Override any gcc2 internal prototype to avoid an error. */ 7430#ifdef __cplusplus 7431extern "C" 7432#endif 7433/* We use char because int might match the return type of a gcc2 7434 builtin and then its argument prototype would still apply. */ 7435char dnet_htoa (); 7436int 7437main () 7438{ 7439dnet_htoa (); 7440 ; 7441 return 0; 7442} 7443_ACEOF 7444rm -f conftest.$ac_objext conftest$ac_exeext 7445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7446 (eval $ac_link) 2>&5 7447 ac_status=$? 7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7449 (exit $ac_status); } && 7450 { ac_try='test -s conftest$ac_exeext' 7451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7452 (eval $ac_try) 2>&5 7453 ac_status=$? 7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7455 (exit $ac_status); }; }; then 7456 ac_cv_search_dnet_htoa="none required" 7457else 7458 echo "$as_me: failed program was:" >&5 7459sed 's/^/| /' conftest.$ac_ext >&5 7460 7461fi 7462rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7463if test "$ac_cv_search_dnet_htoa" = no; then 7464 for ac_lib in dnet; do 7465 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7466 cat >conftest.$ac_ext <<_ACEOF 7467#line $LINENO "configure" 7468/* confdefs.h. */ 7469_ACEOF 7470cat confdefs.h >>conftest.$ac_ext 7471cat >>conftest.$ac_ext <<_ACEOF 7472/* end confdefs.h. */ 7473 7474/* Override any gcc2 internal prototype to avoid an error. */ 7475#ifdef __cplusplus 7476extern "C" 7477#endif 7478/* We use char because int might match the return type of a gcc2 7479 builtin and then its argument prototype would still apply. */ 7480char dnet_htoa (); 7481int 7482main () 7483{ 7484dnet_htoa (); 7485 ; 7486 return 0; 7487} 7488_ACEOF 7489rm -f conftest.$ac_objext conftest$ac_exeext 7490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7491 (eval $ac_link) 2>&5 7492 ac_status=$? 7493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7494 (exit $ac_status); } && 7495 { ac_try='test -s conftest$ac_exeext' 7496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7497 (eval $ac_try) 2>&5 7498 ac_status=$? 7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7500 (exit $ac_status); }; }; then 7501 ac_cv_search_dnet_htoa="-l$ac_lib" 7502break 7503else 7504 echo "$as_me: failed program was:" >&5 7505sed 's/^/| /' conftest.$ac_ext >&5 7506 7507fi 7508rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7509 done 7510fi 7511LIBS=$ac_func_search_save_LIBS 7512fi 7513echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5 7514echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6 7515if test "$ac_cv_search_dnet_htoa" != no; then 7516 test "$ac_cv_search_dnet_htoa" = "none required" || LIBS="$ac_cv_search_dnet_htoa $LIBS" 7517 cat >>confdefs.h <<\_ACEOF 7518#define HAVE_DNET_HTOA 1 7519_ACEOF 7520 7521fi 7522 7523 7524 7525echo "$as_me:$LINENO: checking for main in -lrpc" >&5 7526echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6 7527if test "${ac_cv_lib_rpc_main+set}" = set; then 7528 echo $ECHO_N "(cached) $ECHO_C" >&6 7529else 7530 ac_check_lib_save_LIBS=$LIBS 7531LIBS="-lrpc $LIBS" 7532cat >conftest.$ac_ext <<_ACEOF 7533#line $LINENO "configure" 7534/* confdefs.h. */ 7535_ACEOF 7536cat confdefs.h >>conftest.$ac_ext 7537cat >>conftest.$ac_ext <<_ACEOF 7538/* end confdefs.h. */ 7539 7540 7541int 7542main () 7543{ 7544main (); 7545 ; 7546 return 0; 7547} 7548_ACEOF 7549rm -f conftest.$ac_objext conftest$ac_exeext 7550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7551 (eval $ac_link) 2>&5 7552 ac_status=$? 7553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7554 (exit $ac_status); } && 7555 { ac_try='test -s conftest$ac_exeext' 7556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7557 (eval $ac_try) 2>&5 7558 ac_status=$? 7559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7560 (exit $ac_status); }; }; then 7561 ac_cv_lib_rpc_main=yes 7562else 7563 echo "$as_me: failed program was:" >&5 7564sed 's/^/| /' conftest.$ac_ext >&5 7565 7566ac_cv_lib_rpc_main=no 7567fi 7568rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7569LIBS=$ac_check_lib_save_LIBS 7570fi 7571echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5 7572echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6 7573if test $ac_cv_lib_rpc_main = yes; then 7574 cat >>confdefs.h <<_ACEOF 7575#define HAVE_LIBRPC 1 7576_ACEOF 7577 7578 LIBS="-lrpc $LIBS" 7579 7580fi 7581 7582echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5 7583echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6 7584if test "${ac_cv_search_getrpcbynumber+set}" = set; then 7585 echo $ECHO_N "(cached) $ECHO_C" >&6 7586else 7587 ac_func_search_save_LIBS=$LIBS 7588ac_cv_search_getrpcbynumber=no 7589cat >conftest.$ac_ext <<_ACEOF 7590#line $LINENO "configure" 7591/* confdefs.h. */ 7592_ACEOF 7593cat confdefs.h >>conftest.$ac_ext 7594cat >>conftest.$ac_ext <<_ACEOF 7595/* end confdefs.h. */ 7596 7597/* Override any gcc2 internal prototype to avoid an error. */ 7598#ifdef __cplusplus 7599extern "C" 7600#endif 7601/* We use char because int might match the return type of a gcc2 7602 builtin and then its argument prototype would still apply. */ 7603char getrpcbynumber (); 7604int 7605main () 7606{ 7607getrpcbynumber (); 7608 ; 7609 return 0; 7610} 7611_ACEOF 7612rm -f conftest.$ac_objext conftest$ac_exeext 7613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7614 (eval $ac_link) 2>&5 7615 ac_status=$? 7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7617 (exit $ac_status); } && 7618 { ac_try='test -s conftest$ac_exeext' 7619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7620 (eval $ac_try) 2>&5 7621 ac_status=$? 7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7623 (exit $ac_status); }; }; then 7624 ac_cv_search_getrpcbynumber="none required" 7625else 7626 echo "$as_me: failed program was:" >&5 7627sed 's/^/| /' conftest.$ac_ext >&5 7628 7629fi 7630rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7631if test "$ac_cv_search_getrpcbynumber" = no; then 7632 for ac_lib in nsl; do 7633 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7634 cat >conftest.$ac_ext <<_ACEOF 7635#line $LINENO "configure" 7636/* confdefs.h. */ 7637_ACEOF 7638cat confdefs.h >>conftest.$ac_ext 7639cat >>conftest.$ac_ext <<_ACEOF 7640/* end confdefs.h. */ 7641 7642/* Override any gcc2 internal prototype to avoid an error. */ 7643#ifdef __cplusplus 7644extern "C" 7645#endif 7646/* We use char because int might match the return type of a gcc2 7647 builtin and then its argument prototype would still apply. */ 7648char getrpcbynumber (); 7649int 7650main () 7651{ 7652getrpcbynumber (); 7653 ; 7654 return 0; 7655} 7656_ACEOF 7657rm -f conftest.$ac_objext conftest$ac_exeext 7658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7659 (eval $ac_link) 2>&5 7660 ac_status=$? 7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7662 (exit $ac_status); } && 7663 { ac_try='test -s conftest$ac_exeext' 7664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7665 (eval $ac_try) 2>&5 7666 ac_status=$? 7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7668 (exit $ac_status); }; }; then 7669 ac_cv_search_getrpcbynumber="-l$ac_lib" 7670break 7671else 7672 echo "$as_me: failed program was:" >&5 7673sed 's/^/| /' conftest.$ac_ext >&5 7674 7675fi 7676rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7677 done 7678fi 7679LIBS=$ac_func_search_save_LIBS 7680fi 7681echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5 7682echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6 7683if test "$ac_cv_search_getrpcbynumber" != no; then 7684 test "$ac_cv_search_getrpcbynumber" = "none required" || LIBS="$ac_cv_search_getrpcbynumber $LIBS" 7685 cat >>confdefs.h <<\_ACEOF 7686#define HAVE_GETRPCBYNUMBER 1 7687_ACEOF 7688 7689fi 7690 7691 7692 7693 7694 # Most operating systems have gethostbyname() in the default searched 7695 # libraries (i.e. libc): 7696 # Some OSes (eg. Solaris) place it in libnsl 7697 # Some strange OSes (SINIX) have it in libsocket: 7698 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5 7699echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6 7700if test "${ac_cv_search_gethostbyname+set}" = set; then 7701 echo $ECHO_N "(cached) $ECHO_C" >&6 7702else 7703 ac_func_search_save_LIBS=$LIBS 7704ac_cv_search_gethostbyname=no 7705cat >conftest.$ac_ext <<_ACEOF 7706#line $LINENO "configure" 7707/* confdefs.h. */ 7708_ACEOF 7709cat confdefs.h >>conftest.$ac_ext 7710cat >>conftest.$ac_ext <<_ACEOF 7711/* end confdefs.h. */ 7712 7713/* Override any gcc2 internal prototype to avoid an error. */ 7714#ifdef __cplusplus 7715extern "C" 7716#endif 7717/* We use char because int might match the return type of a gcc2 7718 builtin and then its argument prototype would still apply. */ 7719char gethostbyname (); 7720int 7721main () 7722{ 7723gethostbyname (); 7724 ; 7725 return 0; 7726} 7727_ACEOF 7728rm -f conftest.$ac_objext conftest$ac_exeext 7729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7730 (eval $ac_link) 2>&5 7731 ac_status=$? 7732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7733 (exit $ac_status); } && 7734 { ac_try='test -s conftest$ac_exeext' 7735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7736 (eval $ac_try) 2>&5 7737 ac_status=$? 7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7739 (exit $ac_status); }; }; then 7740 ac_cv_search_gethostbyname="none required" 7741else 7742 echo "$as_me: failed program was:" >&5 7743sed 's/^/| /' conftest.$ac_ext >&5 7744 7745fi 7746rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7747if test "$ac_cv_search_gethostbyname" = no; then 7748 for ac_lib in nsl socket resolv; do 7749 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7750 cat >conftest.$ac_ext <<_ACEOF 7751#line $LINENO "configure" 7752/* confdefs.h. */ 7753_ACEOF 7754cat confdefs.h >>conftest.$ac_ext 7755cat >>conftest.$ac_ext <<_ACEOF 7756/* end confdefs.h. */ 7757 7758/* Override any gcc2 internal prototype to avoid an error. */ 7759#ifdef __cplusplus 7760extern "C" 7761#endif 7762/* We use char because int might match the return type of a gcc2 7763 builtin and then its argument prototype would still apply. */ 7764char gethostbyname (); 7765int 7766main () 7767{ 7768gethostbyname (); 7769 ; 7770 return 0; 7771} 7772_ACEOF 7773rm -f conftest.$ac_objext conftest$ac_exeext 7774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7775 (eval $ac_link) 2>&5 7776 ac_status=$? 7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7778 (exit $ac_status); } && 7779 { ac_try='test -s conftest$ac_exeext' 7780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7781 (eval $ac_try) 2>&5 7782 ac_status=$? 7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7784 (exit $ac_status); }; }; then 7785 ac_cv_search_gethostbyname="-l$ac_lib" 7786break 7787else 7788 echo "$as_me: failed program was:" >&5 7789sed 's/^/| /' conftest.$ac_ext >&5 7790 7791fi 7792rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7793 done 7794fi 7795LIBS=$ac_func_search_save_LIBS 7796fi 7797echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5 7798echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6 7799if test "$ac_cv_search_gethostbyname" != no; then 7800 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS" 7801 7802fi 7803 7804 # Unfortunately libsocket sometimes depends on libnsl and 7805 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this. 7806 if test "$ac_cv_search_gethostbyname" = "no" 7807 then 7808 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5 7809echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6 7810if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then 7811 echo $ECHO_N "(cached) $ECHO_C" >&6 7812else 7813 ac_check_lib_save_LIBS=$LIBS 7814LIBS="-lsocket -lnsl $LIBS" 7815cat >conftest.$ac_ext <<_ACEOF 7816#line $LINENO "configure" 7817/* confdefs.h. */ 7818_ACEOF 7819cat confdefs.h >>conftest.$ac_ext 7820cat >>conftest.$ac_ext <<_ACEOF 7821/* end confdefs.h. */ 7822 7823/* Override any gcc2 internal prototype to avoid an error. */ 7824#ifdef __cplusplus 7825extern "C" 7826#endif 7827/* We use char because int might match the return type of a gcc2 7828 builtin and then its argument prototype would still apply. */ 7829char gethostbyname (); 7830int 7831main () 7832{ 7833gethostbyname (); 7834 ; 7835 return 0; 7836} 7837_ACEOF 7838rm -f conftest.$ac_objext conftest$ac_exeext 7839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7840 (eval $ac_link) 2>&5 7841 ac_status=$? 7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7843 (exit $ac_status); } && 7844 { ac_try='test -s conftest$ac_exeext' 7845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7846 (eval $ac_try) 2>&5 7847 ac_status=$? 7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7849 (exit $ac_status); }; }; then 7850 ac_cv_lib_socket_gethostbyname=yes 7851else 7852 echo "$as_me: failed program was:" >&5 7853sed 's/^/| /' conftest.$ac_ext >&5 7854 7855ac_cv_lib_socket_gethostbyname=no 7856fi 7857rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7858LIBS=$ac_check_lib_save_LIBS 7859fi 7860echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5 7861echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6 7862if test $ac_cv_lib_socket_gethostbyname = yes; then 7863 LIBS="-lsocket -lnsl $LIBS" 7864fi 7865 7866 fi 7867 echo "$as_me:$LINENO: checking for library containing socket" >&5 7868echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6 7869if test "${ac_cv_search_socket+set}" = set; then 7870 echo $ECHO_N "(cached) $ECHO_C" >&6 7871else 7872 ac_func_search_save_LIBS=$LIBS 7873ac_cv_search_socket=no 7874cat >conftest.$ac_ext <<_ACEOF 7875#line $LINENO "configure" 7876/* confdefs.h. */ 7877_ACEOF 7878cat confdefs.h >>conftest.$ac_ext 7879cat >>conftest.$ac_ext <<_ACEOF 7880/* end confdefs.h. */ 7881 7882/* Override any gcc2 internal prototype to avoid an error. */ 7883#ifdef __cplusplus 7884extern "C" 7885#endif 7886/* We use char because int might match the return type of a gcc2 7887 builtin and then its argument prototype would still apply. */ 7888char socket (); 7889int 7890main () 7891{ 7892socket (); 7893 ; 7894 return 0; 7895} 7896_ACEOF 7897rm -f conftest.$ac_objext conftest$ac_exeext 7898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7899 (eval $ac_link) 2>&5 7900 ac_status=$? 7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7902 (exit $ac_status); } && 7903 { ac_try='test -s conftest$ac_exeext' 7904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7905 (eval $ac_try) 2>&5 7906 ac_status=$? 7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7908 (exit $ac_status); }; }; then 7909 ac_cv_search_socket="none required" 7910else 7911 echo "$as_me: failed program was:" >&5 7912sed 's/^/| /' conftest.$ac_ext >&5 7913 7914fi 7915rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7916if test "$ac_cv_search_socket" = no; then 7917 for ac_lib in socket; do 7918 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7919 cat >conftest.$ac_ext <<_ACEOF 7920#line $LINENO "configure" 7921/* confdefs.h. */ 7922_ACEOF 7923cat confdefs.h >>conftest.$ac_ext 7924cat >>conftest.$ac_ext <<_ACEOF 7925/* end confdefs.h. */ 7926 7927/* Override any gcc2 internal prototype to avoid an error. */ 7928#ifdef __cplusplus 7929extern "C" 7930#endif 7931/* We use char because int might match the return type of a gcc2 7932 builtin and then its argument prototype would still apply. */ 7933char socket (); 7934int 7935main () 7936{ 7937socket (); 7938 ; 7939 return 0; 7940} 7941_ACEOF 7942rm -f conftest.$ac_objext conftest$ac_exeext 7943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7944 (eval $ac_link) 2>&5 7945 ac_status=$? 7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7947 (exit $ac_status); } && 7948 { ac_try='test -s conftest$ac_exeext' 7949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7950 (eval $ac_try) 2>&5 7951 ac_status=$? 7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7953 (exit $ac_status); }; }; then 7954 ac_cv_search_socket="-l$ac_lib" 7955break 7956else 7957 echo "$as_me: failed program was:" >&5 7958sed 's/^/| /' conftest.$ac_ext >&5 7959 7960fi 7961rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7962 done 7963fi 7964LIBS=$ac_func_search_save_LIBS 7965fi 7966echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5 7967echo "${ECHO_T}$ac_cv_search_socket" >&6 7968if test "$ac_cv_search_socket" != no; then 7969 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS" 7970 7971else 7972 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 7973echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 7974if test "${ac_cv_lib_socket_socket+set}" = set; then 7975 echo $ECHO_N "(cached) $ECHO_C" >&6 7976else 7977 ac_check_lib_save_LIBS=$LIBS 7978LIBS="-lsocket -lnsl $LIBS" 7979cat >conftest.$ac_ext <<_ACEOF 7980#line $LINENO "configure" 7981/* confdefs.h. */ 7982_ACEOF 7983cat confdefs.h >>conftest.$ac_ext 7984cat >>conftest.$ac_ext <<_ACEOF 7985/* end confdefs.h. */ 7986 7987/* Override any gcc2 internal prototype to avoid an error. */ 7988#ifdef __cplusplus 7989extern "C" 7990#endif 7991/* We use char because int might match the return type of a gcc2 7992 builtin and then its argument prototype would still apply. */ 7993char socket (); 7994int 7995main () 7996{ 7997socket (); 7998 ; 7999 return 0; 8000} 8001_ACEOF 8002rm -f conftest.$ac_objext conftest$ac_exeext 8003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8004 (eval $ac_link) 2>&5 8005 ac_status=$? 8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8007 (exit $ac_status); } && 8008 { ac_try='test -s conftest$ac_exeext' 8009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8010 (eval $ac_try) 2>&5 8011 ac_status=$? 8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8013 (exit $ac_status); }; }; then 8014 ac_cv_lib_socket_socket=yes 8015else 8016 echo "$as_me: failed program was:" >&5 8017sed 's/^/| /' conftest.$ac_ext >&5 8018 8019ac_cv_lib_socket_socket=no 8020fi 8021rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8022LIBS=$ac_check_lib_save_LIBS 8023fi 8024echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 8025echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 8026if test $ac_cv_lib_socket_socket = yes; then 8027 LIBS="-lsocket -lnsl $LIBS" 8028fi 8029 8030fi 8031 8032 # DLPI needs putmsg under HPUX so test for -lstr while we're at it 8033 echo "$as_me:$LINENO: checking for library containing putmsg" >&5 8034echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6 8035if test "${ac_cv_search_putmsg+set}" = set; then 8036 echo $ECHO_N "(cached) $ECHO_C" >&6 8037else 8038 ac_func_search_save_LIBS=$LIBS 8039ac_cv_search_putmsg=no 8040cat >conftest.$ac_ext <<_ACEOF 8041#line $LINENO "configure" 8042/* confdefs.h. */ 8043_ACEOF 8044cat confdefs.h >>conftest.$ac_ext 8045cat >>conftest.$ac_ext <<_ACEOF 8046/* end confdefs.h. */ 8047 8048/* Override any gcc2 internal prototype to avoid an error. */ 8049#ifdef __cplusplus 8050extern "C" 8051#endif 8052/* We use char because int might match the return type of a gcc2 8053 builtin and then its argument prototype would still apply. */ 8054char putmsg (); 8055int 8056main () 8057{ 8058putmsg (); 8059 ; 8060 return 0; 8061} 8062_ACEOF 8063rm -f conftest.$ac_objext conftest$ac_exeext 8064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8065 (eval $ac_link) 2>&5 8066 ac_status=$? 8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8068 (exit $ac_status); } && 8069 { ac_try='test -s conftest$ac_exeext' 8070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8071 (eval $ac_try) 2>&5 8072 ac_status=$? 8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8074 (exit $ac_status); }; }; then 8075 ac_cv_search_putmsg="none required" 8076else 8077 echo "$as_me: failed program was:" >&5 8078sed 's/^/| /' conftest.$ac_ext >&5 8079 8080fi 8081rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8082if test "$ac_cv_search_putmsg" = no; then 8083 for ac_lib in str; do 8084 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8085 cat >conftest.$ac_ext <<_ACEOF 8086#line $LINENO "configure" 8087/* confdefs.h. */ 8088_ACEOF 8089cat confdefs.h >>conftest.$ac_ext 8090cat >>conftest.$ac_ext <<_ACEOF 8091/* end confdefs.h. */ 8092 8093/* Override any gcc2 internal prototype to avoid an error. */ 8094#ifdef __cplusplus 8095extern "C" 8096#endif 8097/* We use char because int might match the return type of a gcc2 8098 builtin and then its argument prototype would still apply. */ 8099char putmsg (); 8100int 8101main () 8102{ 8103putmsg (); 8104 ; 8105 return 0; 8106} 8107_ACEOF 8108rm -f conftest.$ac_objext conftest$ac_exeext 8109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8110 (eval $ac_link) 2>&5 8111 ac_status=$? 8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8113 (exit $ac_status); } && 8114 { ac_try='test -s conftest$ac_exeext' 8115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8116 (eval $ac_try) 2>&5 8117 ac_status=$? 8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8119 (exit $ac_status); }; }; then 8120 ac_cv_search_putmsg="-l$ac_lib" 8121break 8122else 8123 echo "$as_me: failed program was:" >&5 8124sed 's/^/| /' conftest.$ac_ext >&5 8125 8126fi 8127rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8128 done 8129fi 8130LIBS=$ac_func_search_save_LIBS 8131fi 8132echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5 8133echo "${ECHO_T}$ac_cv_search_putmsg" >&6 8134if test "$ac_cv_search_putmsg" != no; then 8135 test "$ac_cv_search_putmsg" = "none required" || LIBS="$ac_cv_search_putmsg $LIBS" 8136 8137fi 8138 8139 8140 8141 LBL_LIBS="$LIBS" 8142 pfopen=/usr/examples/packetfilter/pfopen.c 8143 if test -f $pfopen ; then 8144 8145for ac_func in pfopen 8146do 8147as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8148echo "$as_me:$LINENO: checking for $ac_func" >&5 8149echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8150if eval "test \"\${$as_ac_var+set}\" = set"; then 8151 echo $ECHO_N "(cached) $ECHO_C" >&6 8152else 8153 cat >conftest.$ac_ext <<_ACEOF 8154#line $LINENO "configure" 8155/* confdefs.h. */ 8156_ACEOF 8157cat confdefs.h >>conftest.$ac_ext 8158cat >>conftest.$ac_ext <<_ACEOF 8159/* end confdefs.h. */ 8160/* System header to define __stub macros and hopefully few prototypes, 8161 which can conflict with char $ac_func (); below. 8162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8163 <limits.h> exists even on freestanding compilers. */ 8164#ifdef __STDC__ 8165# include <limits.h> 8166#else 8167# include <assert.h> 8168#endif 8169/* Override any gcc2 internal prototype to avoid an error. */ 8170#ifdef __cplusplus 8171extern "C" 8172{ 8173#endif 8174/* We use char because int might match the return type of a gcc2 8175 builtin and then its argument prototype would still apply. */ 8176char $ac_func (); 8177/* The GNU C library defines this for functions which it implements 8178 to always fail with ENOSYS. Some functions are actually named 8179 something starting with __ and the normal name is an alias. */ 8180#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8181choke me 8182#else 8183char (*f) () = $ac_func; 8184#endif 8185#ifdef __cplusplus 8186} 8187#endif 8188 8189int 8190main () 8191{ 8192return f != $ac_func; 8193 ; 8194 return 0; 8195} 8196_ACEOF 8197rm -f conftest.$ac_objext conftest$ac_exeext 8198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8199 (eval $ac_link) 2>&5 8200 ac_status=$? 8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8202 (exit $ac_status); } && 8203 { ac_try='test -s conftest$ac_exeext' 8204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8205 (eval $ac_try) 2>&5 8206 ac_status=$? 8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8208 (exit $ac_status); }; }; then 8209 eval "$as_ac_var=yes" 8210else 8211 echo "$as_me: failed program was:" >&5 8212sed 's/^/| /' conftest.$ac_ext >&5 8213 8214eval "$as_ac_var=no" 8215fi 8216rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8217fi 8218echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 8219echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 8220if test `eval echo '${'$as_ac_var'}'` = yes; then 8221 cat >>confdefs.h <<_ACEOF 8222#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8223_ACEOF 8224 8225fi 8226done 8227 8228 if test $ac_cv_func_pfopen = "no" ; then 8229 echo "$as_me:$LINENO: result: Using $pfopen" >&5 8230echo "${ECHO_T}Using $pfopen" >&6 8231 LIBS="$LIBS $pfopen" 8232 fi 8233 fi 8234 echo "$as_me:$LINENO: checking for local pcap library" >&5 8235echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6 8236 libpcap=FAIL 8237 lastdir=FAIL 8238 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \ 8239 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'` 8240 for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do 8241 basedir=`echo $dir | sed -e 's/[ab][0-9]*$//'` 8242 if test $lastdir = $basedir ; then 8243 continue; 8244 fi 8245 lastdir=$dir 8246 if test -r $dir/libpcap.a ; then 8247 libpcap=$dir/libpcap.a 8248 d=$dir 8249 fi 8250 done 8251 if test $libpcap = FAIL ; then 8252 echo "$as_me:$LINENO: result: not found" >&5 8253echo "${ECHO_T}not found" >&6 8254 echo "$as_me:$LINENO: checking for main in -lpcap" >&5 8255echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6 8256if test "${ac_cv_lib_pcap_main+set}" = set; then 8257 echo $ECHO_N "(cached) $ECHO_C" >&6 8258else 8259 ac_check_lib_save_LIBS=$LIBS 8260LIBS="-lpcap $LIBS" 8261cat >conftest.$ac_ext <<_ACEOF 8262#line $LINENO "configure" 8263/* confdefs.h. */ 8264_ACEOF 8265cat confdefs.h >>conftest.$ac_ext 8266cat >>conftest.$ac_ext <<_ACEOF 8267/* end confdefs.h. */ 8268 8269 8270int 8271main () 8272{ 8273main (); 8274 ; 8275 return 0; 8276} 8277_ACEOF 8278rm -f conftest.$ac_objext conftest$ac_exeext 8279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8280 (eval $ac_link) 2>&5 8281 ac_status=$? 8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8283 (exit $ac_status); } && 8284 { ac_try='test -s conftest$ac_exeext' 8285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8286 (eval $ac_try) 2>&5 8287 ac_status=$? 8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8289 (exit $ac_status); }; }; then 8290 ac_cv_lib_pcap_main=yes 8291else 8292 echo "$as_me: failed program was:" >&5 8293sed 's/^/| /' conftest.$ac_ext >&5 8294 8295ac_cv_lib_pcap_main=no 8296fi 8297rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8298LIBS=$ac_check_lib_save_LIBS 8299fi 8300echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5 8301echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6 8302if test $ac_cv_lib_pcap_main = yes; then 8303 libpcap="-lpcap" 8304fi 8305 8306 if test $libpcap = FAIL ; then 8307 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5 8308echo "$as_me: error: see the INSTALL doc for more info" >&2;} 8309 { (exit 1); exit 1; }; } 8310 fi 8311 echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5 8312echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6 8313 if test \( ! -r /usr/local/include/pcap.h \) -a \ 8314 \( ! -r /usr/include/pcap.h \); then 8315 if test -r /usr/local/include/pcap/pcap.h; then 8316 d="/usr/local/include/pcap" 8317 elif test -r /usr/include/pcap/pcap.h; then 8318 d="/usr/include/pcap" 8319 fi 8320 fi 8321 if test -z "$d" ; then 8322 echo "$as_me:$LINENO: result: not found" >&5 8323echo "${ECHO_T}not found" >&6 8324 else 8325 V_INCLS="-I$d $V_INCLS" 8326 echo "$as_me:$LINENO: result: found -- -I$d added" >&5 8327echo "${ECHO_T}found -- -I$d added" >&6 8328 fi 8329 else 8330 V_PCAPDEP=$libpcap 8331 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \ 8332 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'` 8333 if test -r $d/pcap.h; then 8334 V_INCLS="-I$d $V_INCLS" 8335 elif test -r $places/pcap.h; then 8336 V_INCLS="-I$places $V_INCLS" 8337 else 8338 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5 8339echo "$as_me: error: cannot find pcap.h" >&2;} 8340 { (exit see INSTALL); exit see INSTALL; }; } 8341 fi 8342 echo "$as_me:$LINENO: result: $libpcap" >&5 8343echo "${ECHO_T}$libpcap" >&6 8344 fi 8345 LIBS="$libpcap $LIBS" 8346 case "$host_os" in 8347 8348 aix*) 8349 pseexe="/lib/pse.exp" 8350 echo "$as_me:$LINENO: checking for $pseexe" >&5 8351echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6 8352 if test -f $pseexe ; then 8353 echo "$as_me:$LINENO: result: yes" >&5 8354echo "${ECHO_T}yes" >&6 8355 LIBS="$LIBS -I:$pseexe" 8356 fi 8357 # 8358 # We need "-lodm" and "-lcfg", as libpcap requires them on 8359 # AIX, and we just build a static libpcap.a and thus can't 8360 # arrange that when you link with libpcap you automatically 8361 # link with those libraries. 8362 # 8363 LIBS="$LIBS -lodm -lcfg" 8364 ;; 8365 esac 8366 8367 echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5 8368echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6 8369if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then 8370 echo $ECHO_N "(cached) $ECHO_C" >&6 8371else 8372 cat >conftest.$ac_ext <<_ACEOF 8373#line $LINENO "configure" 8374/* confdefs.h. */ 8375_ACEOF 8376cat confdefs.h >>conftest.$ac_ext 8377cat >>conftest.$ac_ext <<_ACEOF 8378/* end confdefs.h. */ 8379/* System header to define __stub macros and hopefully few prototypes, 8380 which can conflict with char pcap_list_datalinks (); below. 8381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8382 <limits.h> exists even on freestanding compilers. */ 8383#ifdef __STDC__ 8384# include <limits.h> 8385#else 8386# include <assert.h> 8387#endif 8388/* Override any gcc2 internal prototype to avoid an error. */ 8389#ifdef __cplusplus 8390extern "C" 8391{ 8392#endif 8393/* We use char because int might match the return type of a gcc2 8394 builtin and then its argument prototype would still apply. */ 8395char pcap_list_datalinks (); 8396/* The GNU C library defines this for functions which it implements 8397 to always fail with ENOSYS. Some functions are actually named 8398 something starting with __ and the normal name is an alias. */ 8399#if defined (__stub_pcap_list_datalinks) || defined (__stub___pcap_list_datalinks) 8400choke me 8401#else 8402char (*f) () = pcap_list_datalinks; 8403#endif 8404#ifdef __cplusplus 8405} 8406#endif 8407 8408int 8409main () 8410{ 8411return f != pcap_list_datalinks; 8412 ; 8413 return 0; 8414} 8415_ACEOF 8416rm -f conftest.$ac_objext conftest$ac_exeext 8417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8418 (eval $ac_link) 2>&5 8419 ac_status=$? 8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8421 (exit $ac_status); } && 8422 { ac_try='test -s conftest$ac_exeext' 8423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8424 (eval $ac_try) 2>&5 8425 ac_status=$? 8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8427 (exit $ac_status); }; }; then 8428 ac_cv_func_pcap_list_datalinks=yes 8429else 8430 echo "$as_me: failed program was:" >&5 8431sed 's/^/| /' conftest.$ac_ext >&5 8432 8433ac_cv_func_pcap_list_datalinks=no 8434fi 8435rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8436fi 8437echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5 8438echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6 8439if test $ac_cv_func_pcap_list_datalinks = yes; then 8440 cat >>confdefs.h <<\_ACEOF 8441#define HAVE_PCAP_LIST_DATALINKS 1 8442_ACEOF 8443 8444else 8445 8446 LIBOBJS="$LIBOBJS datalinks.$ac_objext" 8447 8448fi 8449 8450 echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5 8451echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6 8452if test "${ac_cv_func_pcap_set_datalink+set}" = set; then 8453 echo $ECHO_N "(cached) $ECHO_C" >&6 8454else 8455 cat >conftest.$ac_ext <<_ACEOF 8456#line $LINENO "configure" 8457/* confdefs.h. */ 8458_ACEOF 8459cat confdefs.h >>conftest.$ac_ext 8460cat >>conftest.$ac_ext <<_ACEOF 8461/* end confdefs.h. */ 8462/* System header to define __stub macros and hopefully few prototypes, 8463 which can conflict with char pcap_set_datalink (); below. 8464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8465 <limits.h> exists even on freestanding compilers. */ 8466#ifdef __STDC__ 8467# include <limits.h> 8468#else 8469# include <assert.h> 8470#endif 8471/* Override any gcc2 internal prototype to avoid an error. */ 8472#ifdef __cplusplus 8473extern "C" 8474{ 8475#endif 8476/* We use char because int might match the return type of a gcc2 8477 builtin and then its argument prototype would still apply. */ 8478char pcap_set_datalink (); 8479/* The GNU C library defines this for functions which it implements 8480 to always fail with ENOSYS. Some functions are actually named 8481 something starting with __ and the normal name is an alias. */ 8482#if defined (__stub_pcap_set_datalink) || defined (__stub___pcap_set_datalink) 8483choke me 8484#else 8485char (*f) () = pcap_set_datalink; 8486#endif 8487#ifdef __cplusplus 8488} 8489#endif 8490 8491int 8492main () 8493{ 8494return f != pcap_set_datalink; 8495 ; 8496 return 0; 8497} 8498_ACEOF 8499rm -f conftest.$ac_objext conftest$ac_exeext 8500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8501 (eval $ac_link) 2>&5 8502 ac_status=$? 8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8504 (exit $ac_status); } && 8505 { ac_try='test -s conftest$ac_exeext' 8506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8507 (eval $ac_try) 2>&5 8508 ac_status=$? 8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8510 (exit $ac_status); }; }; then 8511 ac_cv_func_pcap_set_datalink=yes 8512else 8513 echo "$as_me: failed program was:" >&5 8514sed 's/^/| /' conftest.$ac_ext >&5 8515 8516ac_cv_func_pcap_set_datalink=no 8517fi 8518rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8519fi 8520echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5 8521echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6 8522if test $ac_cv_func_pcap_set_datalink = yes; then 8523 cat >>confdefs.h <<\_ACEOF 8524#define HAVE_PCAP_SET_DATALINK 1 8525_ACEOF 8526 8527fi 8528 8529 echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5 8530echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6 8531if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then 8532 echo $ECHO_N "(cached) $ECHO_C" >&6 8533else 8534 cat >conftest.$ac_ext <<_ACEOF 8535#line $LINENO "configure" 8536/* confdefs.h. */ 8537_ACEOF 8538cat confdefs.h >>conftest.$ac_ext 8539cat >>conftest.$ac_ext <<_ACEOF 8540/* end confdefs.h. */ 8541/* System header to define __stub macros and hopefully few prototypes, 8542 which can conflict with char pcap_datalink_name_to_val (); below. 8543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8544 <limits.h> exists even on freestanding compilers. */ 8545#ifdef __STDC__ 8546# include <limits.h> 8547#else 8548# include <assert.h> 8549#endif 8550/* Override any gcc2 internal prototype to avoid an error. */ 8551#ifdef __cplusplus 8552extern "C" 8553{ 8554#endif 8555/* We use char because int might match the return type of a gcc2 8556 builtin and then its argument prototype would still apply. */ 8557char pcap_datalink_name_to_val (); 8558/* The GNU C library defines this for functions which it implements 8559 to always fail with ENOSYS. Some functions are actually named 8560 something starting with __ and the normal name is an alias. */ 8561#if defined (__stub_pcap_datalink_name_to_val) || defined (__stub___pcap_datalink_name_to_val) 8562choke me 8563#else 8564char (*f) () = pcap_datalink_name_to_val; 8565#endif 8566#ifdef __cplusplus 8567} 8568#endif 8569 8570int 8571main () 8572{ 8573return f != pcap_datalink_name_to_val; 8574 ; 8575 return 0; 8576} 8577_ACEOF 8578rm -f conftest.$ac_objext conftest$ac_exeext 8579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8580 (eval $ac_link) 2>&5 8581 ac_status=$? 8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8583 (exit $ac_status); } && 8584 { ac_try='test -s conftest$ac_exeext' 8585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8586 (eval $ac_try) 2>&5 8587 ac_status=$? 8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8589 (exit $ac_status); }; }; then 8590 ac_cv_func_pcap_datalink_name_to_val=yes 8591else 8592 echo "$as_me: failed program was:" >&5 8593sed 's/^/| /' conftest.$ac_ext >&5 8594 8595ac_cv_func_pcap_datalink_name_to_val=no 8596fi 8597rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8598fi 8599echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5 8600echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6 8601if test $ac_cv_func_pcap_datalink_name_to_val = yes; then 8602 8603 cat >>confdefs.h <<\_ACEOF 8604#define HAVE_PCAP_DATALINK_NAME_TO_VAL 1 8605_ACEOF 8606 8607 echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5 8608echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6 8609if test "${ac_cv_func_pcap_datalink_val_to_description+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/* System header to define __stub macros and hopefully few prototypes, 8620 which can conflict with char pcap_datalink_val_to_description (); below. 8621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8622 <limits.h> exists even on freestanding compilers. */ 8623#ifdef __STDC__ 8624# include <limits.h> 8625#else 8626# include <assert.h> 8627#endif 8628/* Override any gcc2 internal prototype to avoid an error. */ 8629#ifdef __cplusplus 8630extern "C" 8631{ 8632#endif 8633/* We use char because int might match the return type of a gcc2 8634 builtin and then its argument prototype would still apply. */ 8635char pcap_datalink_val_to_description (); 8636/* The GNU C library defines this for functions which it implements 8637 to always fail with ENOSYS. Some functions are actually named 8638 something starting with __ and the normal name is an alias. */ 8639#if defined (__stub_pcap_datalink_val_to_description) || defined (__stub___pcap_datalink_val_to_description) 8640choke me 8641#else 8642char (*f) () = pcap_datalink_val_to_description; 8643#endif 8644#ifdef __cplusplus 8645} 8646#endif 8647 8648int 8649main () 8650{ 8651return f != pcap_datalink_val_to_description; 8652 ; 8653 return 0; 8654} 8655_ACEOF 8656rm -f conftest.$ac_objext conftest$ac_exeext 8657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8658 (eval $ac_link) 2>&5 8659 ac_status=$? 8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8661 (exit $ac_status); } && 8662 { ac_try='test -s conftest$ac_exeext' 8663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8664 (eval $ac_try) 2>&5 8665 ac_status=$? 8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8667 (exit $ac_status); }; }; then 8668 ac_cv_func_pcap_datalink_val_to_description=yes 8669else 8670 echo "$as_me: failed program was:" >&5 8671sed 's/^/| /' conftest.$ac_ext >&5 8672 8673ac_cv_func_pcap_datalink_val_to_description=no 8674fi 8675rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8676fi 8677echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5 8678echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6 8679if test $ac_cv_func_pcap_datalink_val_to_description = yes; then 8680 cat >>confdefs.h <<\_ACEOF 8681#define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1 8682_ACEOF 8683 8684else 8685 8686 LIBOBJS="$LIBOBJS dlnames.$ac_objext" 8687 8688fi 8689 8690 8691else 8692 8693 LIBOBJS="$LIBOBJS dlnames.$ac_objext" 8694 8695fi 8696 8697 8698 8699for ac_func in pcap_breakloop 8700do 8701as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8702echo "$as_me:$LINENO: checking for $ac_func" >&5 8703echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8704if eval "test \"\${$as_ac_var+set}\" = set"; then 8705 echo $ECHO_N "(cached) $ECHO_C" >&6 8706else 8707 cat >conftest.$ac_ext <<_ACEOF 8708#line $LINENO "configure" 8709/* confdefs.h. */ 8710_ACEOF 8711cat confdefs.h >>conftest.$ac_ext 8712cat >>conftest.$ac_ext <<_ACEOF 8713/* end confdefs.h. */ 8714/* System header to define __stub macros and hopefully few prototypes, 8715 which can conflict with char $ac_func (); below. 8716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8717 <limits.h> exists even on freestanding compilers. */ 8718#ifdef __STDC__ 8719# include <limits.h> 8720#else 8721# include <assert.h> 8722#endif 8723/* Override any gcc2 internal prototype to avoid an error. */ 8724#ifdef __cplusplus 8725extern "C" 8726{ 8727#endif 8728/* We use char because int might match the return type of a gcc2 8729 builtin and then its argument prototype would still apply. */ 8730char $ac_func (); 8731/* The GNU C library defines this for functions which it implements 8732 to always fail with ENOSYS. Some functions are actually named 8733 something starting with __ and the normal name is an alias. */ 8734#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8735choke me 8736#else 8737char (*f) () = $ac_func; 8738#endif 8739#ifdef __cplusplus 8740} 8741#endif 8742 8743int 8744main () 8745{ 8746return f != $ac_func; 8747 ; 8748 return 0; 8749} 8750_ACEOF 8751rm -f conftest.$ac_objext conftest$ac_exeext 8752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8753 (eval $ac_link) 2>&5 8754 ac_status=$? 8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8756 (exit $ac_status); } && 8757 { ac_try='test -s conftest$ac_exeext' 8758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8759 (eval $ac_try) 2>&5 8760 ac_status=$? 8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8762 (exit $ac_status); }; }; then 8763 eval "$as_ac_var=yes" 8764else 8765 echo "$as_me: failed program was:" >&5 8766sed 's/^/| /' conftest.$ac_ext >&5 8767 8768eval "$as_ac_var=no" 8769fi 8770rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8771fi 8772echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 8773echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 8774if test `eval echo '${'$as_ac_var'}'` = yes; then 8775 cat >>confdefs.h <<_ACEOF 8776#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8777_ACEOF 8778 8779fi 8780done 8781 8782 8783 echo "$as_me:$LINENO: checking for pcap_dump_ftell" >&5 8784echo $ECHO_N "checking for pcap_dump_ftell... $ECHO_C" >&6 8785if test "${ac_cv_func_pcap_dump_ftell+set}" = set; then 8786 echo $ECHO_N "(cached) $ECHO_C" >&6 8787else 8788 cat >conftest.$ac_ext <<_ACEOF 8789#line $LINENO "configure" 8790/* confdefs.h. */ 8791_ACEOF 8792cat confdefs.h >>conftest.$ac_ext 8793cat >>conftest.$ac_ext <<_ACEOF 8794/* end confdefs.h. */ 8795/* System header to define __stub macros and hopefully few prototypes, 8796 which can conflict with char pcap_dump_ftell (); below. 8797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8798 <limits.h> exists even on freestanding compilers. */ 8799#ifdef __STDC__ 8800# include <limits.h> 8801#else 8802# include <assert.h> 8803#endif 8804/* Override any gcc2 internal prototype to avoid an error. */ 8805#ifdef __cplusplus 8806extern "C" 8807{ 8808#endif 8809/* We use char because int might match the return type of a gcc2 8810 builtin and then its argument prototype would still apply. */ 8811char pcap_dump_ftell (); 8812/* The GNU C library defines this for functions which it implements 8813 to always fail with ENOSYS. Some functions are actually named 8814 something starting with __ and the normal name is an alias. */ 8815#if defined (__stub_pcap_dump_ftell) || defined (__stub___pcap_dump_ftell) 8816choke me 8817#else 8818char (*f) () = pcap_dump_ftell; 8819#endif 8820#ifdef __cplusplus 8821} 8822#endif 8823 8824int 8825main () 8826{ 8827return f != pcap_dump_ftell; 8828 ; 8829 return 0; 8830} 8831_ACEOF 8832rm -f conftest.$ac_objext conftest$ac_exeext 8833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8834 (eval $ac_link) 2>&5 8835 ac_status=$? 8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8837 (exit $ac_status); } && 8838 { ac_try='test -s conftest$ac_exeext' 8839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8840 (eval $ac_try) 2>&5 8841 ac_status=$? 8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8843 (exit $ac_status); }; }; then 8844 ac_cv_func_pcap_dump_ftell=yes 8845else 8846 echo "$as_me: failed program was:" >&5 8847sed 's/^/| /' conftest.$ac_ext >&5 8848 8849ac_cv_func_pcap_dump_ftell=no 8850fi 8851rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8852fi 8853echo "$as_me:$LINENO: result: $ac_cv_func_pcap_dump_ftell" >&5 8854echo "${ECHO_T}$ac_cv_func_pcap_dump_ftell" >&6 8855if test $ac_cv_func_pcap_dump_ftell = yes; then 8856 cat >>confdefs.h <<\_ACEOF 8857#define HAVE_PCAP_DUMP_FTELL 1 8858_ACEOF 8859 8860else 8861 8862 LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext" 8863 8864fi 8865 8866 8867 8868# 8869# Check for these after AC_LBL_LIBPCAP, so we link with the appropriate 8870# libraries (e.g., "-lsocket -lnsl" on Solaris). 8871# 8872# We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which 8873# use AC_CHECK_FUNC which doesn't let us specify the right #includes 8874# to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8 8875# resolver, and the way it defines inet_{ntop,pton} is rather strange; 8876# it does not ship with a libc symbol "inet_ntop()", it ships with 8877# "_inet_ntop()", and has a #define macro in one of the system headers 8878# to rename it. 8879# 8880echo "$as_me:$LINENO: checking for inet_ntop" >&5 8881echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6 8882cat >conftest.$ac_ext <<_ACEOF 8883#line $LINENO "configure" 8884/* confdefs.h. */ 8885_ACEOF 8886cat confdefs.h >>conftest.$ac_ext 8887cat >>conftest.$ac_ext <<_ACEOF 8888/* end confdefs.h. */ 8889#include <sys/types.h> 8890#include <sys/socket.h> 8891#include <netinet/in.h> 8892#include <arpa/inet.h> 8893int 8894main () 8895{ 8896char src[4], dst[128]; 8897inet_ntop(AF_INET, src, dst, sizeof(dst)); 8898 ; 8899 return 0; 8900} 8901_ACEOF 8902rm -f conftest.$ac_objext conftest$ac_exeext 8903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8904 (eval $ac_link) 2>&5 8905 ac_status=$? 8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8907 (exit $ac_status); } && 8908 { ac_try='test -s conftest$ac_exeext' 8909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8910 (eval $ac_try) 2>&5 8911 ac_status=$? 8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8913 (exit $ac_status); }; }; then 8914 echo "$as_me:$LINENO: result: yes" >&5 8915echo "${ECHO_T}yes" >&6 8916else 8917 echo "$as_me: failed program was:" >&5 8918sed 's/^/| /' conftest.$ac_ext >&5 8919 8920echo "$as_me:$LINENO: result: no" >&5 8921echo "${ECHO_T}no" >&6 8922 LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" 8923fi 8924rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8925echo "$as_me:$LINENO: checking for inet_pton" >&5 8926echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6 8927cat >conftest.$ac_ext <<_ACEOF 8928#line $LINENO "configure" 8929/* confdefs.h. */ 8930_ACEOF 8931cat confdefs.h >>conftest.$ac_ext 8932cat >>conftest.$ac_ext <<_ACEOF 8933/* end confdefs.h. */ 8934#include <sys/types.h> 8935#include <sys/socket.h> 8936#include <netinet/in.h> 8937#include <arpa/inet.h> 8938int 8939main () 8940{ 8941char src[128], dst[4]; 8942inet_pton(AF_INET, src, dst); 8943 ; 8944 return 0; 8945} 8946_ACEOF 8947rm -f conftest.$ac_objext conftest$ac_exeext 8948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8949 (eval $ac_link) 2>&5 8950 ac_status=$? 8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8952 (exit $ac_status); } && 8953 { ac_try='test -s conftest$ac_exeext' 8954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8955 (eval $ac_try) 2>&5 8956 ac_status=$? 8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8958 (exit $ac_status); }; }; then 8959 echo "$as_me:$LINENO: result: yes" >&5 8960echo "${ECHO_T}yes" >&6 8961else 8962 echo "$as_me: failed program was:" >&5 8963sed 's/^/| /' conftest.$ac_ext >&5 8964 8965echo "$as_me:$LINENO: result: no" >&5 8966echo "${ECHO_T}no" >&6 8967 LIBOBJS="$LIBOBJS inet_pton.$ac_objext" 8968fi 8969rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8970echo "$as_me:$LINENO: checking for inet_aton" >&5 8971echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6 8972cat >conftest.$ac_ext <<_ACEOF 8973#line $LINENO "configure" 8974/* confdefs.h. */ 8975_ACEOF 8976cat confdefs.h >>conftest.$ac_ext 8977cat >>conftest.$ac_ext <<_ACEOF 8978/* end confdefs.h. */ 8979#include <sys/types.h> 8980#include <netinet/in.h> 8981#include <arpa/inet.h> 8982int 8983main () 8984{ 8985char src[128]; 8986struct in_addr dst; 8987inet_aton(src, &dst); 8988 ; 8989 return 0; 8990} 8991_ACEOF 8992rm -f conftest.$ac_objext conftest$ac_exeext 8993if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8994 (eval $ac_link) 2>&5 8995 ac_status=$? 8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8997 (exit $ac_status); } && 8998 { ac_try='test -s conftest$ac_exeext' 8999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9000 (eval $ac_try) 2>&5 9001 ac_status=$? 9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9003 (exit $ac_status); }; }; then 9004 echo "$as_me:$LINENO: result: yes" >&5 9005echo "${ECHO_T}yes" >&6 9006else 9007 echo "$as_me: failed program was:" >&5 9008sed 's/^/| /' conftest.$ac_ext >&5 9009 9010echo "$as_me:$LINENO: result: no" >&5 9011echo "${ECHO_T}no" >&6 9012 LIBOBJS="$LIBOBJS inet_aton.$ac_objext" 9013fi 9014rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9015 9016# 9017# Check for these after AC_LBL_LIBPCAP, for the same reason. 9018# 9019# You are in a twisty little maze of UN*Xes, all different. 9020# Some might not have ether_ntohost(). 9021# Some might have it, but not declare it in any header file. 9022# Some might have it, but declare it in <netinet/if_ether.h>. 9023# Some might have it, but declare it in <netinet/ether.h> 9024# (And some might have it but document it as something declared in 9025# <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.) 9026# 9027# Before you is a C compiler. 9028# 9029 9030for ac_func in ether_ntohost 9031do 9032as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9033echo "$as_me:$LINENO: checking for $ac_func" >&5 9034echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9035if eval "test \"\${$as_ac_var+set}\" = set"; then 9036 echo $ECHO_N "(cached) $ECHO_C" >&6 9037else 9038 cat >conftest.$ac_ext <<_ACEOF 9039#line $LINENO "configure" 9040/* confdefs.h. */ 9041_ACEOF 9042cat confdefs.h >>conftest.$ac_ext 9043cat >>conftest.$ac_ext <<_ACEOF 9044/* end confdefs.h. */ 9045/* System header to define __stub macros and hopefully few prototypes, 9046 which can conflict with char $ac_func (); below. 9047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9048 <limits.h> exists even on freestanding compilers. */ 9049#ifdef __STDC__ 9050# include <limits.h> 9051#else 9052# include <assert.h> 9053#endif 9054/* Override any gcc2 internal prototype to avoid an error. */ 9055#ifdef __cplusplus 9056extern "C" 9057{ 9058#endif 9059/* We use char because int might match the return type of a gcc2 9060 builtin and then its argument prototype would still apply. */ 9061char $ac_func (); 9062/* The GNU C library defines this for functions which it implements 9063 to always fail with ENOSYS. Some functions are actually named 9064 something starting with __ and the normal name is an alias. */ 9065#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9066choke me 9067#else 9068char (*f) () = $ac_func; 9069#endif 9070#ifdef __cplusplus 9071} 9072#endif 9073 9074int 9075main () 9076{ 9077return f != $ac_func; 9078 ; 9079 return 0; 9080} 9081_ACEOF 9082rm -f conftest.$ac_objext conftest$ac_exeext 9083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9084 (eval $ac_link) 2>&5 9085 ac_status=$? 9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9087 (exit $ac_status); } && 9088 { ac_try='test -s conftest$ac_exeext' 9089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9090 (eval $ac_try) 2>&5 9091 ac_status=$? 9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9093 (exit $ac_status); }; }; then 9094 eval "$as_ac_var=yes" 9095else 9096 echo "$as_me: failed program was:" >&5 9097sed 's/^/| /' conftest.$ac_ext >&5 9098 9099eval "$as_ac_var=no" 9100fi 9101rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9102fi 9103echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9104echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9105if test `eval echo '${'$as_ac_var'}'` = yes; then 9106 cat >>confdefs.h <<_ACEOF 9107#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9108_ACEOF 9109 9110 echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5 9111echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6 9112if test "${ac_cv_buggy_ether_ntohost+set}" = set; then 9113 echo $ECHO_N "(cached) $ECHO_C" >&6 9114else 9115 9116 if test "$cross_compiling" = yes; then 9117 ac_cv_buggy_ether_ntohost="not while cross-compiling" 9118else 9119 cat >conftest.$ac_ext <<_ACEOF 9120#line $LINENO "configure" 9121/* confdefs.h. */ 9122_ACEOF 9123cat confdefs.h >>conftest.$ac_ext 9124cat >>conftest.$ac_ext <<_ACEOF 9125/* end confdefs.h. */ 9126 9127 #include <netdb.h> 9128 #include <sys/types.h> 9129 #include <sys/param.h> 9130 #include <sys/socket.h> 9131 9132 int 9133 main(int argc, char **argv) 9134 { 9135 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff }; 9136 char name[MAXHOSTNAMELEN]; 9137 9138 ether_ntohost(name, (struct ether_addr *)ea); 9139 exit(0); 9140 } 9141 9142_ACEOF 9143rm -f conftest$ac_exeext 9144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9145 (eval $ac_link) 2>&5 9146 ac_status=$? 9147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9148 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9150 (eval $ac_try) 2>&5 9151 ac_status=$? 9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9153 (exit $ac_status); }; }; then 9154 ac_cv_buggy_ether_ntohost=no 9155else 9156 echo "$as_me: program exited with status $ac_status" >&5 9157echo "$as_me: failed program was:" >&5 9158sed 's/^/| /' conftest.$ac_ext >&5 9159 9160( exit $ac_status ) 9161ac_cv_buggy_ether_ntohost=yes 9162fi 9163rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9164fi 9165fi 9166echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5 9167echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6 9168 if test "$ac_cv_buggy_ether_ntohost" = "no"; then 9169 cat >>confdefs.h <<\_ACEOF 9170#define USE_ETHER_NTOHOST 1 9171_ACEOF 9172 9173 fi 9174 9175fi 9176done 9177 9178if test "$ac_cv_func_ether_ntohost" = yes -a \ 9179 "$ac_cv_buggy_ether_ntohost" = "no"; then 9180 # 9181 # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>? 9182 # 9183 if test "$ac_cv_header_netinet_if_ether_h" = yes; then 9184 # 9185 # Yes. Does it declare ether_ntohost()? 9186 # 9187 echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5 9188echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6 9189if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then 9190 echo $ECHO_N "(cached) $ECHO_C" >&6 9191else 9192 cat >conftest.$ac_ext <<_ACEOF 9193#line $LINENO "configure" 9194/* confdefs.h. */ 9195_ACEOF 9196cat confdefs.h >>conftest.$ac_ext 9197cat >>conftest.$ac_ext <<_ACEOF 9198/* end confdefs.h. */ 9199 9200#include <sys/types.h> 9201#include <sys/socket.h> 9202#include <netinet/in.h> 9203#include <arpa/inet.h> 9204struct mbuf; 9205struct rtentry; 9206#include <net/if.h> 9207#include <netinet/if_ether.h> 9208 9209 9210int 9211main () 9212{ 9213#ifndef ether_ntohost 9214 char *p = (char *) ether_ntohost; 9215#endif 9216 9217 ; 9218 return 0; 9219} 9220_ACEOF 9221rm -f conftest.$ac_objext 9222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9223 (eval $ac_compile) 2>&5 9224 ac_status=$? 9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9226 (exit $ac_status); } && 9227 { ac_try='test -s conftest.$ac_objext' 9228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9229 (eval $ac_try) 2>&5 9230 ac_status=$? 9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9232 (exit $ac_status); }; }; then 9233 ac_cv_have_decl_ether_ntohost=yes 9234else 9235 echo "$as_me: failed program was:" >&5 9236sed 's/^/| /' conftest.$ac_ext >&5 9237 9238ac_cv_have_decl_ether_ntohost=no 9239fi 9240rm -f conftest.$ac_objext conftest.$ac_ext 9241fi 9242echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5 9243echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6 9244if test $ac_cv_have_decl_ether_ntohost = yes; then 9245 9246 9247cat >>confdefs.h <<\_ACEOF 9248#define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST 9249_ACEOF 9250 9251 9252fi 9253 9254 fi 9255 # 9256 # Did that succeed? 9257 # 9258 if test "$ac_cv_have_decl_ether_ntohost" != yes; then 9259 # 9260 # No, how about <netinet/ether.h>, as on Linux? 9261 # 9262 9263for ac_header in netinet/ether.h 9264do 9265as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 9266if eval "test \"\${$as_ac_Header+set}\" = set"; then 9267 echo "$as_me:$LINENO: checking for $ac_header" >&5 9268echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9269if eval "test \"\${$as_ac_Header+set}\" = set"; then 9270 echo $ECHO_N "(cached) $ECHO_C" >&6 9271fi 9272echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9273echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9274else 9275 # Is the header compilable? 9276echo "$as_me:$LINENO: checking $ac_header usability" >&5 9277echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 9278cat >conftest.$ac_ext <<_ACEOF 9279#line $LINENO "configure" 9280/* confdefs.h. */ 9281_ACEOF 9282cat confdefs.h >>conftest.$ac_ext 9283cat >>conftest.$ac_ext <<_ACEOF 9284/* end confdefs.h. */ 9285$ac_includes_default 9286#include <$ac_header> 9287_ACEOF 9288rm -f conftest.$ac_objext 9289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9290 (eval $ac_compile) 2>&5 9291 ac_status=$? 9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9293 (exit $ac_status); } && 9294 { ac_try='test -s conftest.$ac_objext' 9295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9296 (eval $ac_try) 2>&5 9297 ac_status=$? 9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9299 (exit $ac_status); }; }; then 9300 ac_header_compiler=yes 9301else 9302 echo "$as_me: failed program was:" >&5 9303sed 's/^/| /' conftest.$ac_ext >&5 9304 9305ac_header_compiler=no 9306fi 9307rm -f conftest.$ac_objext conftest.$ac_ext 9308echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9309echo "${ECHO_T}$ac_header_compiler" >&6 9310 9311# Is the header present? 9312echo "$as_me:$LINENO: checking $ac_header presence" >&5 9313echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 9314cat >conftest.$ac_ext <<_ACEOF 9315#line $LINENO "configure" 9316/* confdefs.h. */ 9317_ACEOF 9318cat confdefs.h >>conftest.$ac_ext 9319cat >>conftest.$ac_ext <<_ACEOF 9320/* end confdefs.h. */ 9321#include <$ac_header> 9322_ACEOF 9323if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 9324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9325 ac_status=$? 9326 grep -v '^ *+' conftest.er1 >conftest.err 9327 rm -f conftest.er1 9328 cat conftest.err >&5 9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9330 (exit $ac_status); } >/dev/null; then 9331 if test -s conftest.err; then 9332 ac_cpp_err=$ac_c_preproc_warn_flag 9333 else 9334 ac_cpp_err= 9335 fi 9336else 9337 ac_cpp_err=yes 9338fi 9339if test -z "$ac_cpp_err"; then 9340 ac_header_preproc=yes 9341else 9342 echo "$as_me: failed program was:" >&5 9343sed 's/^/| /' conftest.$ac_ext >&5 9344 9345 ac_header_preproc=no 9346fi 9347rm -f conftest.err conftest.$ac_ext 9348echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9349echo "${ECHO_T}$ac_header_preproc" >&6 9350 9351# So? What about this header? 9352case $ac_header_compiler:$ac_header_preproc in 9353 yes:no ) 9354 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 9355echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 9356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 9357echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 9358 ( 9359 cat <<\_ASBOX 9360## ------------------------------------ ## 9361## Report this to bug-autoconf@gnu.org. ## 9362## ------------------------------------ ## 9363_ASBOX 9364 ) | 9365 sed "s/^/$as_me: WARNING: /" >&2 9366 ;; 9367 no:yes ) 9368 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 9369echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 9370 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 9371echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 9372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 9373echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 9374 ( 9375 cat <<\_ASBOX 9376## ------------------------------------ ## 9377## Report this to bug-autoconf@gnu.org. ## 9378## ------------------------------------ ## 9379_ASBOX 9380 ) | 9381 sed "s/^/$as_me: WARNING: /" >&2 9382 ;; 9383esac 9384echo "$as_me:$LINENO: checking for $ac_header" >&5 9385echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9386if eval "test \"\${$as_ac_Header+set}\" = set"; then 9387 echo $ECHO_N "(cached) $ECHO_C" >&6 9388else 9389 eval "$as_ac_Header=$ac_header_preproc" 9390fi 9391echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9392echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9393 9394fi 9395if test `eval echo '${'$as_ac_Header'}'` = yes; then 9396 cat >>confdefs.h <<_ACEOF 9397#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 9398_ACEOF 9399 9400fi 9401 9402done 9403 9404 if test "$ac_cv_header_netinet_ether_h" = yes; then 9405 # 9406 # We have it - does it declare ether_ntohost()? 9407 # Unset ac_cv_have_decl_ether_ntohost so we don't 9408 # treat the previous failure as a cached value and 9409 # suppress the next test. 9410 # 9411 unset ac_cv_have_decl_ether_ntohost 9412 echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5 9413echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6 9414if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then 9415 echo $ECHO_N "(cached) $ECHO_C" >&6 9416else 9417 cat >conftest.$ac_ext <<_ACEOF 9418#line $LINENO "configure" 9419/* confdefs.h. */ 9420_ACEOF 9421cat confdefs.h >>conftest.$ac_ext 9422cat >>conftest.$ac_ext <<_ACEOF 9423/* end confdefs.h. */ 9424 9425#include <netinet/ether.h> 9426 9427 9428int 9429main () 9430{ 9431#ifndef ether_ntohost 9432 char *p = (char *) ether_ntohost; 9433#endif 9434 9435 ; 9436 return 0; 9437} 9438_ACEOF 9439rm -f conftest.$ac_objext 9440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9441 (eval $ac_compile) 2>&5 9442 ac_status=$? 9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9444 (exit $ac_status); } && 9445 { ac_try='test -s conftest.$ac_objext' 9446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9447 (eval $ac_try) 2>&5 9448 ac_status=$? 9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9450 (exit $ac_status); }; }; then 9451 ac_cv_have_decl_ether_ntohost=yes 9452else 9453 echo "$as_me: failed program was:" >&5 9454sed 's/^/| /' conftest.$ac_ext >&5 9455 9456ac_cv_have_decl_ether_ntohost=no 9457fi 9458rm -f conftest.$ac_objext conftest.$ac_ext 9459fi 9460echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5 9461echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6 9462if test $ac_cv_have_decl_ether_ntohost = yes; then 9463 9464 9465cat >>confdefs.h <<\_ACEOF 9466#define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST 9467_ACEOF 9468 9469 9470fi 9471 9472 fi 9473 fi 9474 # 9475 # Is ether_ntohost() declared? 9476 # 9477 if test "$ac_cv_have_decl_ether_ntohost" != yes; then 9478 # 9479 # No, we'll have to declare it ourselves. 9480 # Do we have "struct ether_addr"? 9481 # 9482 echo "$as_me:$LINENO: checking for struct ether_addr" >&5 9483echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6 9484if test "${ac_cv_type_struct_ether_addr+set}" = set; then 9485 echo $ECHO_N "(cached) $ECHO_C" >&6 9486else 9487 cat >conftest.$ac_ext <<_ACEOF 9488#line $LINENO "configure" 9489/* confdefs.h. */ 9490_ACEOF 9491cat confdefs.h >>conftest.$ac_ext 9492cat >>conftest.$ac_ext <<_ACEOF 9493/* end confdefs.h. */ 9494 9495#include <sys/types.h> 9496#include <sys/socket.h> 9497#include <netinet/in.h> 9498#include <arpa/inet.h> 9499struct mbuf; 9500struct rtentry; 9501#include <net/if.h> 9502#include <netinet/if_ether.h> 9503 9504 9505int 9506main () 9507{ 9508if ((struct ether_addr *) 0) 9509 return 0; 9510if (sizeof (struct ether_addr)) 9511 return 0; 9512 ; 9513 return 0; 9514} 9515_ACEOF 9516rm -f conftest.$ac_objext 9517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9518 (eval $ac_compile) 2>&5 9519 ac_status=$? 9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9521 (exit $ac_status); } && 9522 { ac_try='test -s conftest.$ac_objext' 9523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9524 (eval $ac_try) 2>&5 9525 ac_status=$? 9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9527 (exit $ac_status); }; }; then 9528 ac_cv_type_struct_ether_addr=yes 9529else 9530 echo "$as_me: failed program was:" >&5 9531sed 's/^/| /' conftest.$ac_ext >&5 9532 9533ac_cv_type_struct_ether_addr=no 9534fi 9535rm -f conftest.$ac_objext conftest.$ac_ext 9536fi 9537echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5 9538echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6 9539if test $ac_cv_type_struct_ether_addr = yes; then 9540 9541cat >>confdefs.h <<_ACEOF 9542#define HAVE_STRUCT_ETHER_ADDR 1 9543_ACEOF 9544 9545 9546fi 9547 9548 9549cat >>confdefs.h <<\_ACEOF 9550#define HAVE_DECL_ETHER_NTOHOST 0 9551_ACEOF 9552 9553 else 9554 9555cat >>confdefs.h <<\_ACEOF 9556#define HAVE_DECL_ETHER_NTOHOST 1 9557_ACEOF 9558 9559 fi 9560fi 9561 9562 9563 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5 9564echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6 9565 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then 9566 echo $ECHO_N "(cached) $ECHO_C" >&6 9567else 9568 cat >conftest.$ac_ext <<_ACEOF 9569#line $LINENO "configure" 9570/* confdefs.h. */ 9571_ACEOF 9572cat confdefs.h >>conftest.$ac_ext 9573cat >>conftest.$ac_ext <<_ACEOF 9574/* end confdefs.h. */ 9575 9576# include <sys/types.h> 9577# include <sys/socket.h> 9578int 9579main () 9580{ 9581u_int i = sizeof(((struct sockaddr *)0)->sa_len) 9582 ; 9583 return 0; 9584} 9585_ACEOF 9586rm -f conftest.$ac_objext 9587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9588 (eval $ac_compile) 2>&5 9589 ac_status=$? 9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9591 (exit $ac_status); } && 9592 { ac_try='test -s conftest.$ac_objext' 9593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9594 (eval $ac_try) 2>&5 9595 ac_status=$? 9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9597 (exit $ac_status); }; }; then 9598 ac_cv_sockaddr_has_sa_len=yes 9599else 9600 echo "$as_me: failed program was:" >&5 9601sed 's/^/| /' conftest.$ac_ext >&5 9602 9603ac_cv_sockaddr_has_sa_len=no 9604fi 9605rm -f conftest.$ac_objext conftest.$ac_ext 9606fi 9607 9608 echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5 9609echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6 9610 if test $ac_cv_sockaddr_has_sa_len = yes ; then 9611 cat >>confdefs.h <<\_ACEOF 9612#define HAVE_SOCKADDR_SA_LEN 1 9613_ACEOF 9614 9615 fi 9616 9617if test "$ac_cv_sockaddr_has_sa_len" = no; then 9618 missing_includes=yes 9619fi 9620 9621 9622 9623 9624for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version 9625do 9626as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9627echo "$as_me:$LINENO: checking for $ac_func" >&5 9628echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9629if eval "test \"\${$as_ac_var+set}\" = set"; then 9630 echo $ECHO_N "(cached) $ECHO_C" >&6 9631else 9632 cat >conftest.$ac_ext <<_ACEOF 9633#line $LINENO "configure" 9634/* confdefs.h. */ 9635_ACEOF 9636cat confdefs.h >>conftest.$ac_ext 9637cat >>conftest.$ac_ext <<_ACEOF 9638/* end confdefs.h. */ 9639/* System header to define __stub macros and hopefully few prototypes, 9640 which can conflict with char $ac_func (); below. 9641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9642 <limits.h> exists even on freestanding compilers. */ 9643#ifdef __STDC__ 9644# include <limits.h> 9645#else 9646# include <assert.h> 9647#endif 9648/* Override any gcc2 internal prototype to avoid an error. */ 9649#ifdef __cplusplus 9650extern "C" 9651{ 9652#endif 9653/* We use char because int might match the return type of a gcc2 9654 builtin and then its argument prototype would still apply. */ 9655char $ac_func (); 9656/* The GNU C library defines this for functions which it implements 9657 to always fail with ENOSYS. Some functions are actually named 9658 something starting with __ and the normal name is an alias. */ 9659#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9660choke me 9661#else 9662char (*f) () = $ac_func; 9663#endif 9664#ifdef __cplusplus 9665} 9666#endif 9667 9668int 9669main () 9670{ 9671return f != $ac_func; 9672 ; 9673 return 0; 9674} 9675_ACEOF 9676rm -f conftest.$ac_objext conftest$ac_exeext 9677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9678 (eval $ac_link) 2>&5 9679 ac_status=$? 9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9681 (exit $ac_status); } && 9682 { ac_try='test -s conftest$ac_exeext' 9683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9684 (eval $ac_try) 2>&5 9685 ac_status=$? 9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9687 (exit $ac_status); }; }; then 9688 eval "$as_ac_var=yes" 9689else 9690 echo "$as_me: failed program was:" >&5 9691sed 's/^/| /' conftest.$ac_ext >&5 9692 9693eval "$as_ac_var=no" 9694fi 9695rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9696fi 9697echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9698echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9699if test `eval echo '${'$as_ac_var'}'` = yes; then 9700 cat >>confdefs.h <<_ACEOF 9701#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9702_ACEOF 9703 9704fi 9705done 9706 9707if test $ac_cv_func_pcap_findalldevs = "yes" ; then 9708 savedcflags="$CFLAGS" 9709 CFLAGS="$CFLAGS $V_INCLS" 9710 echo "$as_me:$LINENO: checking for pcap_if_t" >&5 9711echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6 9712if test "${ac_cv_type_pcap_if_t+set}" = set; then 9713 echo $ECHO_N "(cached) $ECHO_C" >&6 9714else 9715 cat >conftest.$ac_ext <<_ACEOF 9716#line $LINENO "configure" 9717/* confdefs.h. */ 9718_ACEOF 9719cat confdefs.h >>conftest.$ac_ext 9720cat >>conftest.$ac_ext <<_ACEOF 9721/* end confdefs.h. */ 9722#include <pcap.h> 9723 9724int 9725main () 9726{ 9727if ((pcap_if_t *) 0) 9728 return 0; 9729if (sizeof (pcap_if_t)) 9730 return 0; 9731 ; 9732 return 0; 9733} 9734_ACEOF 9735rm -f conftest.$ac_objext 9736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9737 (eval $ac_compile) 2>&5 9738 ac_status=$? 9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9740 (exit $ac_status); } && 9741 { ac_try='test -s conftest.$ac_objext' 9742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9743 (eval $ac_try) 2>&5 9744 ac_status=$? 9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9746 (exit $ac_status); }; }; then 9747 ac_cv_type_pcap_if_t=yes 9748else 9749 echo "$as_me: failed program was:" >&5 9750sed 's/^/| /' conftest.$ac_ext >&5 9751 9752ac_cv_type_pcap_if_t=no 9753fi 9754rm -f conftest.$ac_objext conftest.$ac_ext 9755fi 9756echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5 9757echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6 9758if test $ac_cv_type_pcap_if_t = yes; then 9759 9760cat >>confdefs.h <<_ACEOF 9761#define HAVE_PCAP_IF_T 1 9762_ACEOF 9763 9764 9765fi 9766 9767 CFLAGS="$savedcflags" 9768fi 9769 9770if test $ac_cv_func_pcap_lib_version = "no" ; then 9771 echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5 9772echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6 9773 cat >conftest.$ac_ext <<_ACEOF 9774#line $LINENO "configure" 9775/* confdefs.h. */ 9776_ACEOF 9777cat confdefs.h >>conftest.$ac_ext 9778cat >>conftest.$ac_ext <<_ACEOF 9779/* end confdefs.h. */ 9780 9781int 9782main () 9783{ 9784 9785 extern char pcap_version[]; 9786 9787 return (int)pcap_version; 9788 9789 ; 9790 return 0; 9791} 9792_ACEOF 9793rm -f conftest.$ac_objext conftest$ac_exeext 9794if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9795 (eval $ac_link) 2>&5 9796 ac_status=$? 9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9798 (exit $ac_status); } && 9799 { ac_try='test -s conftest$ac_exeext' 9800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9801 (eval $ac_try) 2>&5 9802 ac_status=$? 9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9804 (exit $ac_status); }; }; then 9805 ac_lbl_cv_pcap_version_defined=yes 9806else 9807 echo "$as_me: failed program was:" >&5 9808sed 's/^/| /' conftest.$ac_ext >&5 9809 9810ac_lbl_cv_pcap_version_defined=no 9811fi 9812rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9813 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then 9814 echo "$as_me:$LINENO: result: yes" >&5 9815echo "${ECHO_T}yes" >&6 9816 cat >>confdefs.h <<\_ACEOF 9817#define HAVE_PCAP_VERSION 1 9818_ACEOF 9819 9820 else 9821 echo "$as_me:$LINENO: result: no" >&5 9822echo "${ECHO_T}no" >&6 9823 fi 9824fi 9825echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5 9826echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6 9827cat >conftest.$ac_ext <<_ACEOF 9828#line $LINENO "configure" 9829/* confdefs.h. */ 9830_ACEOF 9831cat confdefs.h >>conftest.$ac_ext 9832cat >>conftest.$ac_ext <<_ACEOF 9833/* end confdefs.h. */ 9834 9835int 9836main () 9837{ 9838 9839 extern int pcap_debug; 9840 9841 return pcap_debug; 9842 9843 ; 9844 return 0; 9845} 9846_ACEOF 9847rm -f conftest.$ac_objext conftest$ac_exeext 9848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9849 (eval $ac_link) 2>&5 9850 ac_status=$? 9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9852 (exit $ac_status); } && 9853 { ac_try='test -s conftest$ac_exeext' 9854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9855 (eval $ac_try) 2>&5 9856 ac_status=$? 9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9858 (exit $ac_status); }; }; then 9859 ac_lbl_cv_pcap_debug_defined=yes 9860else 9861 echo "$as_me: failed program was:" >&5 9862sed 's/^/| /' conftest.$ac_ext >&5 9863 9864ac_lbl_cv_pcap_debug_defined=no 9865fi 9866rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9867if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then 9868 echo "$as_me:$LINENO: result: yes" >&5 9869echo "${ECHO_T}yes" >&6 9870 cat >>confdefs.h <<\_ACEOF 9871#define HAVE_PCAP_DEBUG 1 9872_ACEOF 9873 9874else 9875 echo "$as_me:$LINENO: result: no" >&5 9876echo "${ECHO_T}no" >&6 9877 # 9878 # OK, what about "yydebug"? 9879 # 9880 echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5 9881echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6 9882 cat >conftest.$ac_ext <<_ACEOF 9883#line $LINENO "configure" 9884/* confdefs.h. */ 9885_ACEOF 9886cat confdefs.h >>conftest.$ac_ext 9887cat >>conftest.$ac_ext <<_ACEOF 9888/* end confdefs.h. */ 9889 9890int 9891main () 9892{ 9893 9894 extern int yydebug; 9895 9896 return yydebug; 9897 9898 ; 9899 return 0; 9900} 9901_ACEOF 9902rm -f conftest.$ac_objext conftest$ac_exeext 9903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9904 (eval $ac_link) 2>&5 9905 ac_status=$? 9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9907 (exit $ac_status); } && 9908 { ac_try='test -s conftest$ac_exeext' 9909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9910 (eval $ac_try) 2>&5 9911 ac_status=$? 9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9913 (exit $ac_status); }; }; then 9914 ac_lbl_cv_yydebug_defined=yes 9915else 9916 echo "$as_me: failed program was:" >&5 9917sed 's/^/| /' conftest.$ac_ext >&5 9918 9919ac_lbl_cv_yydebug_defined=no 9920fi 9921rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9922 if test "$ac_lbl_cv_yydebug_defined" = yes ; then 9923 echo "$as_me:$LINENO: result: yes" >&5 9924echo "${ECHO_T}yes" >&6 9925 cat >>confdefs.h <<\_ACEOF 9926#define HAVE_YYDEBUG 1 9927_ACEOF 9928 9929 else 9930 echo "$as_me:$LINENO: result: no" >&5 9931echo "${ECHO_T}no" >&6 9932 fi 9933fi 9934 9935for ac_func in bpf_dump 9936do 9937as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9938echo "$as_me:$LINENO: checking for $ac_func" >&5 9939echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9940if eval "test \"\${$as_ac_var+set}\" = set"; then 9941 echo $ECHO_N "(cached) $ECHO_C" >&6 9942else 9943 cat >conftest.$ac_ext <<_ACEOF 9944#line $LINENO "configure" 9945/* confdefs.h. */ 9946_ACEOF 9947cat confdefs.h >>conftest.$ac_ext 9948cat >>conftest.$ac_ext <<_ACEOF 9949/* end confdefs.h. */ 9950/* System header to define __stub macros and hopefully few prototypes, 9951 which can conflict with char $ac_func (); below. 9952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9953 <limits.h> exists even on freestanding compilers. */ 9954#ifdef __STDC__ 9955# include <limits.h> 9956#else 9957# include <assert.h> 9958#endif 9959/* Override any gcc2 internal prototype to avoid an error. */ 9960#ifdef __cplusplus 9961extern "C" 9962{ 9963#endif 9964/* We use char because int might match the return type of a gcc2 9965 builtin and then its argument prototype would still apply. */ 9966char $ac_func (); 9967/* The GNU C library defines this for functions which it implements 9968 to always fail with ENOSYS. Some functions are actually named 9969 something starting with __ and the normal name is an alias. */ 9970#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9971choke me 9972#else 9973char (*f) () = $ac_func; 9974#endif 9975#ifdef __cplusplus 9976} 9977#endif 9978 9979int 9980main () 9981{ 9982return f != $ac_func; 9983 ; 9984 return 0; 9985} 9986_ACEOF 9987rm -f conftest.$ac_objext conftest$ac_exeext 9988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9989 (eval $ac_link) 2>&5 9990 ac_status=$? 9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9992 (exit $ac_status); } && 9993 { ac_try='test -s conftest$ac_exeext' 9994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9995 (eval $ac_try) 2>&5 9996 ac_status=$? 9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9998 (exit $ac_status); }; }; then 9999 eval "$as_ac_var=yes" 10000else 10001 echo "$as_me: failed program was:" >&5 10002sed 's/^/| /' conftest.$ac_ext >&5 10003 10004eval "$as_ac_var=no" 10005fi 10006rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10007fi 10008echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 10009echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 10010if test `eval echo '${'$as_ac_var'}'` = yes; then 10011 cat >>confdefs.h <<_ACEOF 10012#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10013_ACEOF 10014 10015else 10016 LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 10017fi 10018done 10019 10020 10021V_GROUP=0 10022if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then 10023 V_GROUP=wheel 10024fi 10025case "$host_os" in 10026 10027aix*) 10028 cat >>confdefs.h <<\_ACEOF 10029#define _SUN 1 10030_ACEOF 10031 10032 ;; 10033 10034irix*) 10035 V_GROUP=sys 10036 ;; 10037 10038osf*) 10039 V_GROUP=system 10040 ;; 10041 10042solaris*) 10043 V_GROUP=sys 10044 ;; 10045esac 10046 10047if test -f /dev/bpf0 ; then 10048 V_GROUP=bpf 10049fi 10050 10051 10052for ac_header in sys/bitypes.h 10053do 10054as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10055if eval "test \"\${$as_ac_Header+set}\" = set"; then 10056 echo "$as_me:$LINENO: checking for $ac_header" >&5 10057echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10058if eval "test \"\${$as_ac_Header+set}\" = set"; then 10059 echo $ECHO_N "(cached) $ECHO_C" >&6 10060fi 10061echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10062echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10063else 10064 # Is the header compilable? 10065echo "$as_me:$LINENO: checking $ac_header usability" >&5 10066echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 10067cat >conftest.$ac_ext <<_ACEOF 10068#line $LINENO "configure" 10069/* confdefs.h. */ 10070_ACEOF 10071cat confdefs.h >>conftest.$ac_ext 10072cat >>conftest.$ac_ext <<_ACEOF 10073/* end confdefs.h. */ 10074$ac_includes_default 10075#include <$ac_header> 10076_ACEOF 10077rm -f conftest.$ac_objext 10078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10079 (eval $ac_compile) 2>&5 10080 ac_status=$? 10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10082 (exit $ac_status); } && 10083 { ac_try='test -s conftest.$ac_objext' 10084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10085 (eval $ac_try) 2>&5 10086 ac_status=$? 10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10088 (exit $ac_status); }; }; then 10089 ac_header_compiler=yes 10090else 10091 echo "$as_me: failed program was:" >&5 10092sed 's/^/| /' conftest.$ac_ext >&5 10093 10094ac_header_compiler=no 10095fi 10096rm -f conftest.$ac_objext conftest.$ac_ext 10097echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10098echo "${ECHO_T}$ac_header_compiler" >&6 10099 10100# Is the header present? 10101echo "$as_me:$LINENO: checking $ac_header presence" >&5 10102echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 10103cat >conftest.$ac_ext <<_ACEOF 10104#line $LINENO "configure" 10105/* confdefs.h. */ 10106_ACEOF 10107cat confdefs.h >>conftest.$ac_ext 10108cat >>conftest.$ac_ext <<_ACEOF 10109/* end confdefs.h. */ 10110#include <$ac_header> 10111_ACEOF 10112if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10113 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10114 ac_status=$? 10115 grep -v '^ *+' conftest.er1 >conftest.err 10116 rm -f conftest.er1 10117 cat conftest.err >&5 10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10119 (exit $ac_status); } >/dev/null; then 10120 if test -s conftest.err; then 10121 ac_cpp_err=$ac_c_preproc_warn_flag 10122 else 10123 ac_cpp_err= 10124 fi 10125else 10126 ac_cpp_err=yes 10127fi 10128if test -z "$ac_cpp_err"; then 10129 ac_header_preproc=yes 10130else 10131 echo "$as_me: failed program was:" >&5 10132sed 's/^/| /' conftest.$ac_ext >&5 10133 10134 ac_header_preproc=no 10135fi 10136rm -f conftest.err conftest.$ac_ext 10137echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10138echo "${ECHO_T}$ac_header_preproc" >&6 10139 10140# So? What about this header? 10141case $ac_header_compiler:$ac_header_preproc in 10142 yes:no ) 10143 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10144echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10146echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10147 ( 10148 cat <<\_ASBOX 10149## ------------------------------------ ## 10150## Report this to bug-autoconf@gnu.org. ## 10151## ------------------------------------ ## 10152_ASBOX 10153 ) | 10154 sed "s/^/$as_me: WARNING: /" >&2 10155 ;; 10156 no:yes ) 10157 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10158echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10159 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10160echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10162echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10163 ( 10164 cat <<\_ASBOX 10165## ------------------------------------ ## 10166## Report this to bug-autoconf@gnu.org. ## 10167## ------------------------------------ ## 10168_ASBOX 10169 ) | 10170 sed "s/^/$as_me: WARNING: /" >&2 10171 ;; 10172esac 10173echo "$as_me:$LINENO: checking for $ac_header" >&5 10174echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10175if eval "test \"\${$as_ac_Header+set}\" = set"; then 10176 echo $ECHO_N "(cached) $ECHO_C" >&6 10177else 10178 eval "$as_ac_Header=$ac_header_preproc" 10179fi 10180echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10181echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10182 10183fi 10184if test `eval echo '${'$as_ac_Header'}'` = yes; then 10185 cat >>confdefs.h <<_ACEOF 10186#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10187_ACEOF 10188 10189fi 10190 10191done 10192 10193 10194echo "$as_me:$LINENO: checking for int8_t" >&5 10195echo $ECHO_N "checking for int8_t... $ECHO_C" >&6 10196if test "${ac_cv_type_int8_t+set}" = set; then 10197 echo $ECHO_N "(cached) $ECHO_C" >&6 10198else 10199 cat >conftest.$ac_ext <<_ACEOF 10200#line $LINENO "configure" 10201/* confdefs.h. */ 10202_ACEOF 10203cat confdefs.h >>conftest.$ac_ext 10204cat >>conftest.$ac_ext <<_ACEOF 10205/* end confdefs.h. */ 10206$ac_includes_default 10207int 10208main () 10209{ 10210if ((int8_t *) 0) 10211 return 0; 10212if (sizeof (int8_t)) 10213 return 0; 10214 ; 10215 return 0; 10216} 10217_ACEOF 10218rm -f conftest.$ac_objext 10219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10220 (eval $ac_compile) 2>&5 10221 ac_status=$? 10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10223 (exit $ac_status); } && 10224 { ac_try='test -s conftest.$ac_objext' 10225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10226 (eval $ac_try) 2>&5 10227 ac_status=$? 10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10229 (exit $ac_status); }; }; then 10230 ac_cv_type_int8_t=yes 10231else 10232 echo "$as_me: failed program was:" >&5 10233sed 's/^/| /' conftest.$ac_ext >&5 10234 10235ac_cv_type_int8_t=no 10236fi 10237rm -f conftest.$ac_objext conftest.$ac_ext 10238fi 10239echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5 10240echo "${ECHO_T}$ac_cv_type_int8_t" >&6 10241if test $ac_cv_type_int8_t = yes; then 10242 : 10243else 10244 10245cat >>confdefs.h <<\_ACEOF 10246#define int8_t signed char 10247_ACEOF 10248 10249fi 10250 10251echo "$as_me:$LINENO: checking for u_int8_t" >&5 10252echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6 10253if test "${ac_cv_type_u_int8_t+set}" = set; then 10254 echo $ECHO_N "(cached) $ECHO_C" >&6 10255else 10256 cat >conftest.$ac_ext <<_ACEOF 10257#line $LINENO "configure" 10258/* confdefs.h. */ 10259_ACEOF 10260cat confdefs.h >>conftest.$ac_ext 10261cat >>conftest.$ac_ext <<_ACEOF 10262/* end confdefs.h. */ 10263$ac_includes_default 10264#ifdef HAVE_SYS_BITYPES_H 10265#include <sys/bitypes.h> 10266#endif 10267 10268int 10269main () 10270{ 10271if ((u_int8_t *) 0) 10272 return 0; 10273if (sizeof (u_int8_t)) 10274 return 0; 10275 ; 10276 return 0; 10277} 10278_ACEOF 10279rm -f conftest.$ac_objext 10280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10281 (eval $ac_compile) 2>&5 10282 ac_status=$? 10283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10284 (exit $ac_status); } && 10285 { ac_try='test -s conftest.$ac_objext' 10286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10287 (eval $ac_try) 2>&5 10288 ac_status=$? 10289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10290 (exit $ac_status); }; }; then 10291 ac_cv_type_u_int8_t=yes 10292else 10293 echo "$as_me: failed program was:" >&5 10294sed 's/^/| /' conftest.$ac_ext >&5 10295 10296ac_cv_type_u_int8_t=no 10297fi 10298rm -f conftest.$ac_objext conftest.$ac_ext 10299fi 10300echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5 10301echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6 10302if test $ac_cv_type_u_int8_t = yes; then 10303 : 10304else 10305 10306cat >>confdefs.h <<\_ACEOF 10307#define u_int8_t unsigned char 10308_ACEOF 10309 10310fi 10311 10312echo "$as_me:$LINENO: checking for int16_t" >&5 10313echo $ECHO_N "checking for int16_t... $ECHO_C" >&6 10314if test "${ac_cv_type_int16_t+set}" = set; then 10315 echo $ECHO_N "(cached) $ECHO_C" >&6 10316else 10317 cat >conftest.$ac_ext <<_ACEOF 10318#line $LINENO "configure" 10319/* confdefs.h. */ 10320_ACEOF 10321cat confdefs.h >>conftest.$ac_ext 10322cat >>conftest.$ac_ext <<_ACEOF 10323/* end confdefs.h. */ 10324$ac_includes_default 10325int 10326main () 10327{ 10328if ((int16_t *) 0) 10329 return 0; 10330if (sizeof (int16_t)) 10331 return 0; 10332 ; 10333 return 0; 10334} 10335_ACEOF 10336rm -f conftest.$ac_objext 10337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10338 (eval $ac_compile) 2>&5 10339 ac_status=$? 10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10341 (exit $ac_status); } && 10342 { ac_try='test -s conftest.$ac_objext' 10343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10344 (eval $ac_try) 2>&5 10345 ac_status=$? 10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10347 (exit $ac_status); }; }; then 10348 ac_cv_type_int16_t=yes 10349else 10350 echo "$as_me: failed program was:" >&5 10351sed 's/^/| /' conftest.$ac_ext >&5 10352 10353ac_cv_type_int16_t=no 10354fi 10355rm -f conftest.$ac_objext conftest.$ac_ext 10356fi 10357echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5 10358echo "${ECHO_T}$ac_cv_type_int16_t" >&6 10359if test $ac_cv_type_int16_t = yes; then 10360 : 10361else 10362 10363cat >>confdefs.h <<\_ACEOF 10364#define int16_t short 10365_ACEOF 10366 10367fi 10368 10369echo "$as_me:$LINENO: checking for u_int16_t" >&5 10370echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6 10371if test "${ac_cv_type_u_int16_t+set}" = set; then 10372 echo $ECHO_N "(cached) $ECHO_C" >&6 10373else 10374 cat >conftest.$ac_ext <<_ACEOF 10375#line $LINENO "configure" 10376/* confdefs.h. */ 10377_ACEOF 10378cat confdefs.h >>conftest.$ac_ext 10379cat >>conftest.$ac_ext <<_ACEOF 10380/* end confdefs.h. */ 10381$ac_includes_default 10382#ifdef HAVE_SYS_BITYPES_H 10383#include <sys/bitypes.h> 10384#endif 10385 10386int 10387main () 10388{ 10389if ((u_int16_t *) 0) 10390 return 0; 10391if (sizeof (u_int16_t)) 10392 return 0; 10393 ; 10394 return 0; 10395} 10396_ACEOF 10397rm -f conftest.$ac_objext 10398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10399 (eval $ac_compile) 2>&5 10400 ac_status=$? 10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10402 (exit $ac_status); } && 10403 { ac_try='test -s conftest.$ac_objext' 10404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10405 (eval $ac_try) 2>&5 10406 ac_status=$? 10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10408 (exit $ac_status); }; }; then 10409 ac_cv_type_u_int16_t=yes 10410else 10411 echo "$as_me: failed program was:" >&5 10412sed 's/^/| /' conftest.$ac_ext >&5 10413 10414ac_cv_type_u_int16_t=no 10415fi 10416rm -f conftest.$ac_objext conftest.$ac_ext 10417fi 10418echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5 10419echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6 10420if test $ac_cv_type_u_int16_t = yes; then 10421 : 10422else 10423 10424cat >>confdefs.h <<\_ACEOF 10425#define u_int16_t unsigned short 10426_ACEOF 10427 10428fi 10429 10430echo "$as_me:$LINENO: checking for int32_t" >&5 10431echo $ECHO_N "checking for int32_t... $ECHO_C" >&6 10432if test "${ac_cv_type_int32_t+set}" = set; then 10433 echo $ECHO_N "(cached) $ECHO_C" >&6 10434else 10435 cat >conftest.$ac_ext <<_ACEOF 10436#line $LINENO "configure" 10437/* confdefs.h. */ 10438_ACEOF 10439cat confdefs.h >>conftest.$ac_ext 10440cat >>conftest.$ac_ext <<_ACEOF 10441/* end confdefs.h. */ 10442$ac_includes_default 10443int 10444main () 10445{ 10446if ((int32_t *) 0) 10447 return 0; 10448if (sizeof (int32_t)) 10449 return 0; 10450 ; 10451 return 0; 10452} 10453_ACEOF 10454rm -f conftest.$ac_objext 10455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10456 (eval $ac_compile) 2>&5 10457 ac_status=$? 10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10459 (exit $ac_status); } && 10460 { ac_try='test -s conftest.$ac_objext' 10461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10462 (eval $ac_try) 2>&5 10463 ac_status=$? 10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10465 (exit $ac_status); }; }; then 10466 ac_cv_type_int32_t=yes 10467else 10468 echo "$as_me: failed program was:" >&5 10469sed 's/^/| /' conftest.$ac_ext >&5 10470 10471ac_cv_type_int32_t=no 10472fi 10473rm -f conftest.$ac_objext conftest.$ac_ext 10474fi 10475echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5 10476echo "${ECHO_T}$ac_cv_type_int32_t" >&6 10477if test $ac_cv_type_int32_t = yes; then 10478 : 10479else 10480 10481cat >>confdefs.h <<\_ACEOF 10482#define int32_t int 10483_ACEOF 10484 10485fi 10486 10487echo "$as_me:$LINENO: checking for u_int32_t" >&5 10488echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6 10489if test "${ac_cv_type_u_int32_t+set}" = set; then 10490 echo $ECHO_N "(cached) $ECHO_C" >&6 10491else 10492 cat >conftest.$ac_ext <<_ACEOF 10493#line $LINENO "configure" 10494/* confdefs.h. */ 10495_ACEOF 10496cat confdefs.h >>conftest.$ac_ext 10497cat >>conftest.$ac_ext <<_ACEOF 10498/* end confdefs.h. */ 10499$ac_includes_default 10500#ifdef HAVE_SYS_BITYPES_H 10501#include <sys/bitypes.h> 10502#endif 10503 10504int 10505main () 10506{ 10507if ((u_int32_t *) 0) 10508 return 0; 10509if (sizeof (u_int32_t)) 10510 return 0; 10511 ; 10512 return 0; 10513} 10514_ACEOF 10515rm -f conftest.$ac_objext 10516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10517 (eval $ac_compile) 2>&5 10518 ac_status=$? 10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10520 (exit $ac_status); } && 10521 { ac_try='test -s conftest.$ac_objext' 10522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10523 (eval $ac_try) 2>&5 10524 ac_status=$? 10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10526 (exit $ac_status); }; }; then 10527 ac_cv_type_u_int32_t=yes 10528else 10529 echo "$as_me: failed program was:" >&5 10530sed 's/^/| /' conftest.$ac_ext >&5 10531 10532ac_cv_type_u_int32_t=no 10533fi 10534rm -f conftest.$ac_objext conftest.$ac_ext 10535fi 10536echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 10537echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6 10538if test $ac_cv_type_u_int32_t = yes; then 10539 : 10540else 10541 10542cat >>confdefs.h <<\_ACEOF 10543#define u_int32_t unsigned int 10544_ACEOF 10545 10546fi 10547 10548echo "$as_me:$LINENO: checking for int64_t" >&5 10549echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 10550if test "${ac_cv_type_int64_t+set}" = set; then 10551 echo $ECHO_N "(cached) $ECHO_C" >&6 10552else 10553 cat >conftest.$ac_ext <<_ACEOF 10554#line $LINENO "configure" 10555/* confdefs.h. */ 10556_ACEOF 10557cat confdefs.h >>conftest.$ac_ext 10558cat >>conftest.$ac_ext <<_ACEOF 10559/* end confdefs.h. */ 10560$ac_includes_default 10561int 10562main () 10563{ 10564if ((int64_t *) 0) 10565 return 0; 10566if (sizeof (int64_t)) 10567 return 0; 10568 ; 10569 return 0; 10570} 10571_ACEOF 10572rm -f conftest.$ac_objext 10573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10574 (eval $ac_compile) 2>&5 10575 ac_status=$? 10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10577 (exit $ac_status); } && 10578 { ac_try='test -s conftest.$ac_objext' 10579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10580 (eval $ac_try) 2>&5 10581 ac_status=$? 10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10583 (exit $ac_status); }; }; then 10584 ac_cv_type_int64_t=yes 10585else 10586 echo "$as_me: failed program was:" >&5 10587sed 's/^/| /' conftest.$ac_ext >&5 10588 10589ac_cv_type_int64_t=no 10590fi 10591rm -f conftest.$ac_objext conftest.$ac_ext 10592fi 10593echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 10594echo "${ECHO_T}$ac_cv_type_int64_t" >&6 10595if test $ac_cv_type_int64_t = yes; then 10596 : 10597else 10598 10599cat >>confdefs.h <<\_ACEOF 10600#define int64_t long long 10601_ACEOF 10602 10603fi 10604 10605echo "$as_me:$LINENO: checking for u_int64_t" >&5 10606echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 10607if test "${ac_cv_type_u_int64_t+set}" = set; then 10608 echo $ECHO_N "(cached) $ECHO_C" >&6 10609else 10610 cat >conftest.$ac_ext <<_ACEOF 10611#line $LINENO "configure" 10612/* confdefs.h. */ 10613_ACEOF 10614cat confdefs.h >>conftest.$ac_ext 10615cat >>conftest.$ac_ext <<_ACEOF 10616/* end confdefs.h. */ 10617$ac_includes_default 10618#ifdef HAVE_SYS_BITYPES_H 10619#include <sys/bitypes.h> 10620#endif 10621 10622int 10623main () 10624{ 10625if ((u_int64_t *) 0) 10626 return 0; 10627if (sizeof (u_int64_t)) 10628 return 0; 10629 ; 10630 return 0; 10631} 10632_ACEOF 10633rm -f conftest.$ac_objext 10634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10635 (eval $ac_compile) 2>&5 10636 ac_status=$? 10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10638 (exit $ac_status); } && 10639 { ac_try='test -s conftest.$ac_objext' 10640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10641 (eval $ac_try) 2>&5 10642 ac_status=$? 10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10644 (exit $ac_status); }; }; then 10645 ac_cv_type_u_int64_t=yes 10646else 10647 echo "$as_me: failed program was:" >&5 10648sed 's/^/| /' conftest.$ac_ext >&5 10649 10650ac_cv_type_u_int64_t=no 10651fi 10652rm -f conftest.$ac_objext conftest.$ac_ext 10653fi 10654echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 10655echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 10656if test $ac_cv_type_u_int64_t = yes; then 10657 : 10658else 10659 10660cat >>confdefs.h <<\_ACEOF 10661#define u_int64_t unsigned long long 10662_ACEOF 10663 10664fi 10665 10666 10667# 10668# We can't just check for <inttypes.h> - some systems have one that 10669# doesn't define all the PRI[doxu]64 macros. 10670# 10671 10672for ac_header in inttypes.h 10673do 10674as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10675if eval "test \"\${$as_ac_Header+set}\" = set"; then 10676 echo "$as_me:$LINENO: checking for $ac_header" >&5 10677echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10678if eval "test \"\${$as_ac_Header+set}\" = set"; then 10679 echo $ECHO_N "(cached) $ECHO_C" >&6 10680fi 10681echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10682echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10683else 10684 # Is the header compilable? 10685echo "$as_me:$LINENO: checking $ac_header usability" >&5 10686echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 10687cat >conftest.$ac_ext <<_ACEOF 10688#line $LINENO "configure" 10689/* confdefs.h. */ 10690_ACEOF 10691cat confdefs.h >>conftest.$ac_ext 10692cat >>conftest.$ac_ext <<_ACEOF 10693/* end confdefs.h. */ 10694$ac_includes_default 10695#include <$ac_header> 10696_ACEOF 10697rm -f conftest.$ac_objext 10698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10699 (eval $ac_compile) 2>&5 10700 ac_status=$? 10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10702 (exit $ac_status); } && 10703 { ac_try='test -s conftest.$ac_objext' 10704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10705 (eval $ac_try) 2>&5 10706 ac_status=$? 10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10708 (exit $ac_status); }; }; then 10709 ac_header_compiler=yes 10710else 10711 echo "$as_me: failed program was:" >&5 10712sed 's/^/| /' conftest.$ac_ext >&5 10713 10714ac_header_compiler=no 10715fi 10716rm -f conftest.$ac_objext conftest.$ac_ext 10717echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10718echo "${ECHO_T}$ac_header_compiler" >&6 10719 10720# Is the header present? 10721echo "$as_me:$LINENO: checking $ac_header presence" >&5 10722echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 10723cat >conftest.$ac_ext <<_ACEOF 10724#line $LINENO "configure" 10725/* confdefs.h. */ 10726_ACEOF 10727cat confdefs.h >>conftest.$ac_ext 10728cat >>conftest.$ac_ext <<_ACEOF 10729/* end confdefs.h. */ 10730#include <$ac_header> 10731_ACEOF 10732if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10733 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10734 ac_status=$? 10735 grep -v '^ *+' conftest.er1 >conftest.err 10736 rm -f conftest.er1 10737 cat conftest.err >&5 10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10739 (exit $ac_status); } >/dev/null; then 10740 if test -s conftest.err; then 10741 ac_cpp_err=$ac_c_preproc_warn_flag 10742 else 10743 ac_cpp_err= 10744 fi 10745else 10746 ac_cpp_err=yes 10747fi 10748if test -z "$ac_cpp_err"; then 10749 ac_header_preproc=yes 10750else 10751 echo "$as_me: failed program was:" >&5 10752sed 's/^/| /' conftest.$ac_ext >&5 10753 10754 ac_header_preproc=no 10755fi 10756rm -f conftest.err conftest.$ac_ext 10757echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10758echo "${ECHO_T}$ac_header_preproc" >&6 10759 10760# So? What about this header? 10761case $ac_header_compiler:$ac_header_preproc in 10762 yes:no ) 10763 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10764echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10766echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10767 ( 10768 cat <<\_ASBOX 10769## ------------------------------------ ## 10770## Report this to bug-autoconf@gnu.org. ## 10771## ------------------------------------ ## 10772_ASBOX 10773 ) | 10774 sed "s/^/$as_me: WARNING: /" >&2 10775 ;; 10776 no:yes ) 10777 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10778echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10779 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10780echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10782echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10783 ( 10784 cat <<\_ASBOX 10785## ------------------------------------ ## 10786## Report this to bug-autoconf@gnu.org. ## 10787## ------------------------------------ ## 10788_ASBOX 10789 ) | 10790 sed "s/^/$as_me: WARNING: /" >&2 10791 ;; 10792esac 10793echo "$as_me:$LINENO: checking for $ac_header" >&5 10794echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10795if eval "test \"\${$as_ac_Header+set}\" = set"; then 10796 echo $ECHO_N "(cached) $ECHO_C" >&6 10797else 10798 eval "$as_ac_Header=$ac_header_preproc" 10799fi 10800echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10801echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10802 10803fi 10804if test `eval echo '${'$as_ac_Header'}'` = yes; then 10805 cat >>confdefs.h <<_ACEOF 10806#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10807_ACEOF 10808 10809 # 10810 # OK, we have inttypes.h, but does it define those macros? 10811 # 10812 echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5 10813echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6 10814 cat >conftest.$ac_ext <<_ACEOF 10815 10816 #line $LINENO "configure" 10817/* confdefs.h. */ 10818_ACEOF 10819cat confdefs.h >>conftest.$ac_ext 10820cat >>conftest.$ac_ext <<_ACEOF 10821/* end confdefs.h. */ 10822 10823 #include <inttypes.h> 10824 #include <stdio.h> 10825 #include <sys/types.h> 10826 #ifdef HAVE_SYS_BITYPES_H 10827 #include <sys/bitypes.h> 10828 #endif 10829 10830 main() 10831 { 10832 printf("%" PRId64 "\n", (u_int64_t)1); 10833 printf("%" PRIo64 "\n", (u_int64_t)1); 10834 printf("%" PRIx64 "\n", (u_int64_t)1); 10835 printf("%" PRIu64 "\n", (u_int64_t)1); 10836 } 10837 10838 10839_ACEOF 10840rm -f conftest.$ac_objext 10841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10842 (eval $ac_compile) 2>&5 10843 ac_status=$? 10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10845 (exit $ac_status); } && 10846 { ac_try='test -s conftest.$ac_objext' 10847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10848 (eval $ac_try) 2>&5 10849 ac_status=$? 10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10851 (exit $ac_status); }; }; then 10852 10853 echo "$as_me:$LINENO: result: yes" >&5 10854echo "${ECHO_T}yes" >&6 10855 ac_lbl_inttypes_h_defines_formats=yes 10856 10857else 10858 echo "$as_me: failed program was:" >&5 10859sed 's/^/| /' conftest.$ac_ext >&5 10860 10861 10862 echo "$as_me:$LINENO: result: no" >&5 10863echo "${ECHO_T}no" >&6 10864 ac_lbl_inttypes_h_defines_formats=no 10865 10866fi 10867rm -f conftest.$ac_objext conftest.$ac_ext 10868 10869else 10870 10871 # 10872 # We don't have inttypes.h, so it obviously can't define those 10873 # macros. 10874 # 10875 ac_lbl_inttypes_h_defines_formats=no 10876 10877fi 10878 10879done 10880 10881if test "$ac_lbl_inttypes_h_defines_formats" = no; then 10882 10883 echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5 10884echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6 10885 if test "$cross_compiling" = yes; then 10886 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 10887See \`config.log' for more details." >&5 10888echo "$as_me: error: cannot run test program while cross compiling 10889See \`config.log' for more details." >&2;} 10890 { (exit 1); exit 1; }; } 10891else 10892 cat >conftest.$ac_ext <<_ACEOF 10893 10894 #line $LINENO "configure" 10895/* confdefs.h. */ 10896_ACEOF 10897cat confdefs.h >>conftest.$ac_ext 10898cat >>conftest.$ac_ext <<_ACEOF 10899/* end confdefs.h. */ 10900 10901# ifdef HAVE_INTTYPES_H 10902 #include <inttypes.h> 10903# endif 10904# ifdef HAVE_SYS_BITYPES_H 10905 #include <sys/bitypes.h> 10906# endif 10907 #include <stdio.h> 10908 #include <sys/types.h> 10909 10910 main() 10911 { 10912 u_int64_t t = 1; 10913 char strbuf[16+1]; 10914 sprintf(strbuf, "%016lx", t << 32); 10915 if (strcmp(strbuf, "0000000100000000") == 0) 10916 exit(0); 10917 else 10918 exit(1); 10919 } 10920 10921 10922_ACEOF 10923rm -f conftest$ac_exeext 10924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10925 (eval $ac_link) 2>&5 10926 ac_status=$? 10927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10928 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10930 (eval $ac_try) 2>&5 10931 ac_status=$? 10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10933 (exit $ac_status); }; }; then 10934 10935 cat >>confdefs.h <<\_ACEOF 10936#define PRId64 "ld" 10937_ACEOF 10938 10939 cat >>confdefs.h <<\_ACEOF 10940#define PRIo64 "lo" 10941_ACEOF 10942 10943 cat >>confdefs.h <<\_ACEOF 10944#define PRIx64 "lx" 10945_ACEOF 10946 10947 cat >>confdefs.h <<\_ACEOF 10948#define PRIu64 "lu" 10949_ACEOF 10950 10951 echo "$as_me:$LINENO: result: yes" >&5 10952echo "${ECHO_T}yes" >&6 10953 10954else 10955 echo "$as_me: program exited with status $ac_status" >&5 10956echo "$as_me: failed program was:" >&5 10957sed 's/^/| /' conftest.$ac_ext >&5 10958 10959( exit $ac_status ) 10960 10961 echo "$as_me:$LINENO: result: no" >&5 10962echo "${ECHO_T}no" >&6 10963 10964 10965 echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5 10966echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6 10967 if test "$cross_compiling" = yes; then 10968 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 10969See \`config.log' for more details." >&5 10970echo "$as_me: error: cannot run test program while cross compiling 10971See \`config.log' for more details." >&2;} 10972 { (exit 1); exit 1; }; } 10973else 10974 cat >conftest.$ac_ext <<_ACEOF 10975 10976 #line $LINENO "configure" 10977/* confdefs.h. */ 10978_ACEOF 10979cat confdefs.h >>conftest.$ac_ext 10980cat >>conftest.$ac_ext <<_ACEOF 10981/* end confdefs.h. */ 10982 10983# ifdef HAVE_INTTYPES_H 10984 #include <inttypes.h> 10985# endif 10986# ifdef HAVE_SYS_BITYPES_H 10987 #include <sys/bitypes.h> 10988# endif 10989 #include <stdio.h> 10990 #include <sys/types.h> 10991 10992 main() 10993 { 10994 u_int64_t t = 1; 10995 char strbuf[16+1]; 10996 sprintf(strbuf, "%016llx", t << 32); 10997 if (strcmp(strbuf, "0000000100000000") == 0) 10998 exit(0); 10999 else 11000 exit(1); 11001 } 11002 11003 11004_ACEOF 11005rm -f conftest$ac_exeext 11006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11007 (eval $ac_link) 2>&5 11008 ac_status=$? 11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11010 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 11011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11012 (eval $ac_try) 2>&5 11013 ac_status=$? 11014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11015 (exit $ac_status); }; }; then 11016 11017 cat >>confdefs.h <<\_ACEOF 11018#define PRId64 "lld" 11019_ACEOF 11020 11021 cat >>confdefs.h <<\_ACEOF 11022#define PRIo64 "llo" 11023_ACEOF 11024 11025 cat >>confdefs.h <<\_ACEOF 11026#define PRIx64 "llx" 11027_ACEOF 11028 11029 cat >>confdefs.h <<\_ACEOF 11030#define PRIu64 "llu" 11031_ACEOF 11032 11033 echo "$as_me:$LINENO: result: yes" >&5 11034echo "${ECHO_T}yes" >&6 11035 11036else 11037 echo "$as_me: program exited with status $ac_status" >&5 11038echo "$as_me: failed program was:" >&5 11039sed 's/^/| /' conftest.$ac_ext >&5 11040 11041( exit $ac_status ) 11042 11043 echo "$as_me:$LINENO: result: no" >&5 11044echo "${ECHO_T}no" >&6 11045 11046 11047 echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5 11048echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6 11049 if test "$cross_compiling" = yes; then 11050 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 11051See \`config.log' for more details." >&5 11052echo "$as_me: error: cannot run test program while cross compiling 11053See \`config.log' for more details." >&2;} 11054 { (exit 1); exit 1; }; } 11055else 11056 cat >conftest.$ac_ext <<_ACEOF 11057 11058 #line $LINENO "configure" 11059/* confdefs.h. */ 11060_ACEOF 11061cat confdefs.h >>conftest.$ac_ext 11062cat >>conftest.$ac_ext <<_ACEOF 11063/* end confdefs.h. */ 11064 11065# ifdef HAVE_INTTYPES_H 11066 #include <inttypes.h> 11067# endif 11068# ifdef HAVE_SYS_BITYPES_H 11069 #include <sys/bitypes.h> 11070# endif 11071 #include <stdio.h> 11072 #include <sys/types.h> 11073 11074 main() 11075 { 11076 u_int64_t t = 1; 11077 char strbuf[16+1]; 11078 sprintf(strbuf, "%016Lx", t << 32); 11079 if (strcmp(strbuf, "0000000100000000") == 0) 11080 exit(0); 11081 else 11082 exit(1); 11083 } 11084 11085 11086_ACEOF 11087rm -f conftest$ac_exeext 11088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11089 (eval $ac_link) 2>&5 11090 ac_status=$? 11091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11092 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 11093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11094 (eval $ac_try) 2>&5 11095 ac_status=$? 11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11097 (exit $ac_status); }; }; then 11098 11099 cat >>confdefs.h <<\_ACEOF 11100#define PRId64 "Ld" 11101_ACEOF 11102 11103 cat >>confdefs.h <<\_ACEOF 11104#define PRIo64 "Lo" 11105_ACEOF 11106 11107 cat >>confdefs.h <<\_ACEOF 11108#define PRIx64 "Lx" 11109_ACEOF 11110 11111 cat >>confdefs.h <<\_ACEOF 11112#define PRIu64 "Lu" 11113_ACEOF 11114 11115 echo "$as_me:$LINENO: result: yes" >&5 11116echo "${ECHO_T}yes" >&6 11117 11118else 11119 echo "$as_me: program exited with status $ac_status" >&5 11120echo "$as_me: failed program was:" >&5 11121sed 's/^/| /' conftest.$ac_ext >&5 11122 11123( exit $ac_status ) 11124 11125 echo "$as_me:$LINENO: result: no" >&5 11126echo "${ECHO_T}no" >&6 11127 11128 11129 echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5 11130echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6 11131 if test "$cross_compiling" = yes; then 11132 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 11133See \`config.log' for more details." >&5 11134echo "$as_me: error: cannot run test program while cross compiling 11135See \`config.log' for more details." >&2;} 11136 { (exit 1); exit 1; }; } 11137else 11138 cat >conftest.$ac_ext <<_ACEOF 11139 11140 #line $LINENO "configure" 11141/* confdefs.h. */ 11142_ACEOF 11143cat confdefs.h >>conftest.$ac_ext 11144cat >>conftest.$ac_ext <<_ACEOF 11145/* end confdefs.h. */ 11146 11147# ifdef HAVE_INTTYPES_H 11148 #include <inttypes.h> 11149# endif 11150# ifdef HAVE_SYS_BITYPES_H 11151 #include <sys/bitypes.h> 11152# endif 11153 #include <stdio.h> 11154 #include <sys/types.h> 11155 11156 main() 11157 { 11158 u_int64_t t = 1; 11159 char strbuf[16+1]; 11160 sprintf(strbuf, "%016qx", t << 32); 11161 if (strcmp(strbuf, "0000000100000000") == 0) 11162 exit(0); 11163 else 11164 exit(1); 11165 } 11166 11167 11168_ACEOF 11169rm -f conftest$ac_exeext 11170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11171 (eval $ac_link) 2>&5 11172 ac_status=$? 11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 11175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11176 (eval $ac_try) 2>&5 11177 ac_status=$? 11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11179 (exit $ac_status); }; }; then 11180 11181 cat >>confdefs.h <<\_ACEOF 11182#define PRId64 "qd" 11183_ACEOF 11184 11185 cat >>confdefs.h <<\_ACEOF 11186#define PRIo64 "qo" 11187_ACEOF 11188 11189 cat >>confdefs.h <<\_ACEOF 11190#define PRIx64 "qx" 11191_ACEOF 11192 11193 cat >>confdefs.h <<\_ACEOF 11194#define PRIu64 "qu" 11195_ACEOF 11196 11197 echo "$as_me:$LINENO: result: yes" >&5 11198echo "${ECHO_T}yes" >&6 11199 11200else 11201 echo "$as_me: program exited with status $ac_status" >&5 11202echo "$as_me: failed program was:" >&5 11203sed 's/^/| /' conftest.$ac_ext >&5 11204 11205( exit $ac_status ) 11206 11207 echo "$as_me:$LINENO: result: no" >&5 11208echo "${ECHO_T}no" >&6 11209 11210 { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5 11211echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;} 11212 { (exit 1); exit 1; }; } 11213 11214 11215fi 11216rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11217fi 11218 11219 11220 11221fi 11222rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11223fi 11224 11225 11226 11227fi 11228rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11229fi 11230 11231 11232 11233fi 11234rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11235fi 11236 11237fi 11238 11239rm -f os-proto.h 11240 if test "${LBL_CFLAGS+set}" = set; then 11241 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}" 11242 fi 11243 if test -f .devel ; then 11244 if test "$GCC" = yes ; then 11245 if test "${LBL_CFLAGS+set}" != set; then 11246 if test "$ac_cv_prog_cc_g" = yes ; then 11247 V_CCOPT="-g $V_CCOPT" 11248 fi 11249 V_CCOPT="$V_CCOPT -Wall" 11250 if test $ac_cv_lbl_gcc_vers -gt 1 ; then 11251 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -W" 11252 fi 11253 fi 11254 else 11255 case "$host_os" in 11256 11257 irix6*) 11258 V_CCOPT="$V_CCOPT -n32" 11259 ;; 11260 11261 *) 11262 ;; 11263 esac 11264 fi 11265 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'` 11266 name="lbl/os-$os.h" 11267 if test -f $name ; then 11268 ln -s $name os-proto.h 11269 cat >>confdefs.h <<\_ACEOF 11270#define HAVE_OS_PROTO_H 1 11271_ACEOF 11272 11273 else 11274 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5 11275echo "$as_me: WARNING: can't find $name" >&2;} 11276 fi 11277 fi 11278 11279echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5 11280echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6 11281 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then 11282 echo $ECHO_N "(cached) $ECHO_C" >&6 11283else 11284 cat >conftest.$ac_ext <<_ACEOF 11285#line $LINENO "configure" 11286/* confdefs.h. */ 11287_ACEOF 11288cat confdefs.h >>conftest.$ac_ext 11289cat >>conftest.$ac_ext <<_ACEOF 11290/* end confdefs.h. */ 11291 11292# include <sys/types.h> 11293# include <sys/socket.h> 11294int 11295main () 11296{ 11297u_int i = sizeof(((struct sockaddr *)0)->sa_len) 11298 ; 11299 return 0; 11300} 11301_ACEOF 11302rm -f conftest.$ac_objext 11303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11304 (eval $ac_compile) 2>&5 11305 ac_status=$? 11306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11307 (exit $ac_status); } && 11308 { ac_try='test -s conftest.$ac_objext' 11309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11310 (eval $ac_try) 2>&5 11311 ac_status=$? 11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11313 (exit $ac_status); }; }; then 11314 ac_cv_lbl_sockaddr_has_sa_len=yes 11315else 11316 echo "$as_me: failed program was:" >&5 11317sed 's/^/| /' conftest.$ac_ext >&5 11318 11319ac_cv_lbl_sockaddr_has_sa_len=no 11320fi 11321rm -f conftest.$ac_objext conftest.$ac_ext 11322fi 11323 11324 echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5 11325echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6 11326 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then 11327 cat >>confdefs.h <<\_ACEOF 11328#define HAVE_SOCKADDR_SA_LEN 1 11329_ACEOF 11330 11331 fi 11332 11333echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5 11334echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6 11335 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then 11336 echo $ECHO_N "(cached) $ECHO_C" >&6 11337else 11338 case "$host_cpu" in 11339 11340 # 11341 # These are CPU types where: 11342 # 11343 # the CPU faults on an unaligned access, but at least some 11344 # OSes that support that CPU catch the fault and simulate 11345 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) - 11346 # the simulation is slow, so we don't want to use it; 11347 # 11348 # the CPU, I infer (from the old 11349 # 11350 # XXX: should also check that they don't do weird things (like on arm) 11351 # 11352 # comment) doesn't fault on unaligned accesses, but doesn't 11353 # do a normal unaligned fetch, either (e.g., presumably, ARM); 11354 # 11355 # for whatever reason, the test program doesn't work 11356 # (this has been claimed to be the case for several of those 11357 # CPUs - I don't know what the problem is; the problem 11358 # was reported as "the test program dumps core" for SuperH, 11359 # but that's what the test program is *supposed* to do - 11360 # it dumps core before it writes anything, so the test 11361 # for an empty output file should find an empty output 11362 # file and conclude that unaligned accesses don't work). 11363 # 11364 # This run-time test won't work if you're cross-compiling, so 11365 # in order to support cross-compiling for a particular CPU, 11366 # we have to wire in the list of CPU types anyway, as far as 11367 # I know, so perhaps we should just have a set of CPUs on 11368 # which we know it doesn't work, a set of CPUs on which we 11369 # know it does work, and have the script just fail on other 11370 # cpu types and update it when such a failure occurs. 11371 # 11372 alpha*|arm*|hp*|mips*|sh*|sparc*|ia64|nv1) 11373 ac_cv_lbl_unaligned_fail=yes 11374 ;; 11375 11376 *) 11377 cat >conftest.c <<EOF 11378# include <sys/types.h> 11379# include <sys/wait.h> 11380# include <stdio.h> 11381 unsigned char a[5] = { 1, 2, 3, 4, 5 }; 11382 main() { 11383 unsigned int i; 11384 pid_t pid; 11385 int status; 11386 /* avoid "core dumped" message */ 11387 pid = fork(); 11388 if (pid < 0) 11389 exit(2); 11390 if (pid > 0) { 11391 /* parent */ 11392 pid = waitpid(pid, &status, 0); 11393 if (pid < 0) 11394 exit(3); 11395 exit(!WIFEXITED(status)); 11396 } 11397 /* child */ 11398 i = *(unsigned int *)&a[1]; 11399 printf("%d\n", i); 11400 exit(0); 11401 } 11402EOF 11403 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \ 11404 conftest.c $LIBS >/dev/null 2>&1 11405 if test ! -x conftest ; then 11406 ac_cv_lbl_unaligned_fail=yes 11407 else 11408 ./conftest >conftest.out 11409 if test ! -s conftest.out ; then 11410 ac_cv_lbl_unaligned_fail=yes 11411 else 11412 ac_cv_lbl_unaligned_fail=no 11413 fi 11414 fi 11415 rm -f conftest* core core.conftest 11416 ;; 11417 esac 11418fi 11419 11420 echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5 11421echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6 11422 if test $ac_cv_lbl_unaligned_fail = yes ; then 11423 cat >>confdefs.h <<\_ACEOF 11424#define LBL_ALIGN 1 11425_ACEOF 11426 11427 fi 11428 11429 11430 echo "$as_me:$LINENO: checking for h_errno" >&5 11431echo $ECHO_N "checking for h_errno... $ECHO_C" >&6 11432 if test "${ac_cv_var_h_errno+set}" = set; then 11433 echo $ECHO_N "(cached) $ECHO_C" >&6 11434else 11435 cat >conftest.$ac_ext <<_ACEOF 11436#line $LINENO "configure" 11437/* confdefs.h. */ 11438_ACEOF 11439cat confdefs.h >>conftest.$ac_ext 11440cat >>conftest.$ac_ext <<_ACEOF 11441/* end confdefs.h. */ 11442 11443# include <sys/types.h> 11444# include <netdb.h> 11445int 11446main () 11447{ 11448int foo = h_errno; 11449 ; 11450 return 0; 11451} 11452_ACEOF 11453rm -f conftest.$ac_objext 11454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11455 (eval $ac_compile) 2>&5 11456 ac_status=$? 11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11458 (exit $ac_status); } && 11459 { ac_try='test -s conftest.$ac_objext' 11460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11461 (eval $ac_try) 2>&5 11462 ac_status=$? 11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11464 (exit $ac_status); }; }; then 11465 ac_cv_var_h_errno=yes 11466else 11467 echo "$as_me: failed program was:" >&5 11468sed 's/^/| /' conftest.$ac_ext >&5 11469 11470ac_cv_var_h_errno=no 11471fi 11472rm -f conftest.$ac_objext conftest.$ac_ext 11473fi 11474 11475 echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5 11476echo "${ECHO_T}$ac_cv_var_h_errno" >&6 11477 if test "$ac_cv_var_h_errno" = "yes"; then 11478 cat >>confdefs.h <<\_ACEOF 11479#define HAVE_H_ERRNO 1 11480_ACEOF 11481 11482 fi 11483 11484 11485 11486# Check whether --with-crypto or --without-crypto was given. 11487if test "${with_crypto+set}" = set; then 11488 withval="$with_crypto" 11489 11490else 11491 11492echo "$as_me:$LINENO: checking for SSLeay" >&5 11493echo $ECHO_N "checking for SSLeay... $ECHO_C" >&6 11494ac_cv_ssleay_path=no 11495incdir=no 11496 11497Xprefix=`eval echo $prefix` 11498 11499for dir in $Xprefix /usr/${host_alias} /usr /usr/local /usr/local/ssl /usr/pkg; do 11500 # 11501 # XXX - is there a better way to check if a given library is 11502 # in a given directory than checking each of the possible 11503 # shared library suffixes? 11504 # 11505 # Are there any other suffixes we need to look for? Do we have to 11506 # worry about ".so.{version}"? 11507 # 11508 # Or should we just look for "libcrypto.*"? 11509 # 11510 if test -d $dir/lib -a \( -f $dir/lib/libcrypto.a -o \ 11511 -f $dir/lib/libcrypto.so -o \ 11512 -f $dir/lib/libcrypto.sl -o \ 11513 -f $dir/lib/libcrypto.dylib \); then 11514 ac_cv_ssleay_path=$dir 11515 fi 11516 if test -d $dir/include/openssl -a -f $dir/include/openssl/des.h; then 11517 incdir="-I$dir/include" 11518 fi 11519 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then 11520 break; 11521 else 11522 ac_cv_ssleay_path=no 11523 incdir=no 11524 fi 11525done 11526echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5 11527echo "${ECHO_T}$ac_cv_ssleay_path" >&6 11528if test "$ac_cv_ssleay_path" != no; then 11529 V_INCLS="$V_INCLS $incdir" 11530 LDFLAGS="-L$dir/lib $LDFLAGS" 11531 if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then 11532 LIBS="$LIBS -lRSAglue" 11533 fi 11534 if test -f $ac_cv_ssleay_path/lib/librsaref.a; then 11535 LIBS="$LIBS -lrsaref" 11536 fi 11537 11538echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5 11539echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6 11540if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then 11541 echo $ECHO_N "(cached) $ECHO_C" >&6 11542else 11543 ac_check_lib_save_LIBS=$LIBS 11544LIBS="-lcrypto $LIBS" 11545cat >conftest.$ac_ext <<_ACEOF 11546#line $LINENO "configure" 11547/* confdefs.h. */ 11548_ACEOF 11549cat confdefs.h >>conftest.$ac_ext 11550cat >>conftest.$ac_ext <<_ACEOF 11551/* end confdefs.h. */ 11552 11553/* Override any gcc2 internal prototype to avoid an error. */ 11554#ifdef __cplusplus 11555extern "C" 11556#endif 11557/* We use char because int might match the return type of a gcc2 11558 builtin and then its argument prototype would still apply. */ 11559char DES_cbc_encrypt (); 11560int 11561main () 11562{ 11563DES_cbc_encrypt (); 11564 ; 11565 return 0; 11566} 11567_ACEOF 11568rm -f conftest.$ac_objext conftest$ac_exeext 11569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11570 (eval $ac_link) 2>&5 11571 ac_status=$? 11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11573 (exit $ac_status); } && 11574 { ac_try='test -s conftest$ac_exeext' 11575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11576 (eval $ac_try) 2>&5 11577 ac_status=$? 11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11579 (exit $ac_status); }; }; then 11580 ac_cv_lib_crypto_DES_cbc_encrypt=yes 11581else 11582 echo "$as_me: failed program was:" >&5 11583sed 's/^/| /' conftest.$ac_ext >&5 11584 11585ac_cv_lib_crypto_DES_cbc_encrypt=no 11586fi 11587rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11588LIBS=$ac_check_lib_save_LIBS 11589fi 11590echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5 11591echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6 11592if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then 11593 cat >>confdefs.h <<_ACEOF 11594#define HAVE_LIBCRYPTO 1 11595_ACEOF 11596 11597 LIBS="-lcrypto $LIBS" 11598 11599fi 11600 11601 11602 CPPFLAGS="$CPPFLAGS $V_INCLS" 11603 11604for ac_header in openssl/evp.h 11605do 11606as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11607if eval "test \"\${$as_ac_Header+set}\" = set"; then 11608 echo "$as_me:$LINENO: checking for $ac_header" >&5 11609echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11610if eval "test \"\${$as_ac_Header+set}\" = set"; then 11611 echo $ECHO_N "(cached) $ECHO_C" >&6 11612fi 11613echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 11614echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11615else 11616 # Is the header compilable? 11617echo "$as_me:$LINENO: checking $ac_header usability" >&5 11618echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 11619cat >conftest.$ac_ext <<_ACEOF 11620#line $LINENO "configure" 11621/* confdefs.h. */ 11622_ACEOF 11623cat confdefs.h >>conftest.$ac_ext 11624cat >>conftest.$ac_ext <<_ACEOF 11625/* end confdefs.h. */ 11626$ac_includes_default 11627#include <$ac_header> 11628_ACEOF 11629rm -f conftest.$ac_objext 11630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11631 (eval $ac_compile) 2>&5 11632 ac_status=$? 11633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11634 (exit $ac_status); } && 11635 { ac_try='test -s conftest.$ac_objext' 11636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11637 (eval $ac_try) 2>&5 11638 ac_status=$? 11639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11640 (exit $ac_status); }; }; then 11641 ac_header_compiler=yes 11642else 11643 echo "$as_me: failed program was:" >&5 11644sed 's/^/| /' conftest.$ac_ext >&5 11645 11646ac_header_compiler=no 11647fi 11648rm -f conftest.$ac_objext conftest.$ac_ext 11649echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11650echo "${ECHO_T}$ac_header_compiler" >&6 11651 11652# Is the header present? 11653echo "$as_me:$LINENO: checking $ac_header presence" >&5 11654echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 11655cat >conftest.$ac_ext <<_ACEOF 11656#line $LINENO "configure" 11657/* confdefs.h. */ 11658_ACEOF 11659cat confdefs.h >>conftest.$ac_ext 11660cat >>conftest.$ac_ext <<_ACEOF 11661/* end confdefs.h. */ 11662#include <$ac_header> 11663_ACEOF 11664if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 11665 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 11666 ac_status=$? 11667 grep -v '^ *+' conftest.er1 >conftest.err 11668 rm -f conftest.er1 11669 cat conftest.err >&5 11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11671 (exit $ac_status); } >/dev/null; then 11672 if test -s conftest.err; then 11673 ac_cpp_err=$ac_c_preproc_warn_flag 11674 else 11675 ac_cpp_err= 11676 fi 11677else 11678 ac_cpp_err=yes 11679fi 11680if test -z "$ac_cpp_err"; then 11681 ac_header_preproc=yes 11682else 11683 echo "$as_me: failed program was:" >&5 11684sed 's/^/| /' conftest.$ac_ext >&5 11685 11686 ac_header_preproc=no 11687fi 11688rm -f conftest.err conftest.$ac_ext 11689echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11690echo "${ECHO_T}$ac_header_preproc" >&6 11691 11692# So? What about this header? 11693case $ac_header_compiler:$ac_header_preproc in 11694 yes:no ) 11695 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11696echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11698echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11699 ( 11700 cat <<\_ASBOX 11701## ------------------------------------ ## 11702## Report this to bug-autoconf@gnu.org. ## 11703## ------------------------------------ ## 11704_ASBOX 11705 ) | 11706 sed "s/^/$as_me: WARNING: /" >&2 11707 ;; 11708 no:yes ) 11709 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11710echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11711 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11712echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11714echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11715 ( 11716 cat <<\_ASBOX 11717## ------------------------------------ ## 11718## Report this to bug-autoconf@gnu.org. ## 11719## ------------------------------------ ## 11720_ASBOX 11721 ) | 11722 sed "s/^/$as_me: WARNING: /" >&2 11723 ;; 11724esac 11725echo "$as_me:$LINENO: checking for $ac_header" >&5 11726echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11727if eval "test \"\${$as_ac_Header+set}\" = set"; then 11728 echo $ECHO_N "(cached) $ECHO_C" >&6 11729else 11730 eval "$as_ac_Header=$ac_header_preproc" 11731fi 11732echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 11733echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11734 11735fi 11736if test `eval echo '${'$as_ac_Header'}'` = yes; then 11737 cat >>confdefs.h <<_ACEOF 11738#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11739_ACEOF 11740 11741fi 11742 11743done 11744 11745fi 11746 11747fi; 11748 11749if test "$missing_includes" = "yes"; then 11750 CPPFLAGS="$CPPFLAGS -I\$(srcdir)/missing" 11751 V_INCLS="$V_INCLS -I\$(srcdir)/missing" 11752fi 11753 11754 11755 11756 11757 11758 11759 11760 11761# Find a good install program. We prefer a C program (faster), 11762# so one script is as good as another. But avoid the broken or 11763# incompatible versions: 11764# SysV /etc/install, /usr/sbin/install 11765# SunOS /usr/etc/install 11766# IRIX /sbin/install 11767# AIX /bin/install 11768# AmigaOS /C/install, which installs bootblocks on floppy discs 11769# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 11770# AFS /usr/afsws/bin/install, which mishandles nonexistent args 11771# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 11772# ./install, which can be erroneously created by make from ./install.sh. 11773echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 11774echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 11775if test -z "$INSTALL"; then 11776if test "${ac_cv_path_install+set}" = set; then 11777 echo $ECHO_N "(cached) $ECHO_C" >&6 11778else 11779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11780for as_dir in $PATH 11781do 11782 IFS=$as_save_IFS 11783 test -z "$as_dir" && as_dir=. 11784 # Account for people who put trailing slashes in PATH elements. 11785case $as_dir/ in 11786 ./ | .// | /cC/* | \ 11787 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 11788 /usr/ucb/* ) ;; 11789 *) 11790 # OSF1 and SCO ODT 3.0 have their own names for install. 11791 # Don't use installbsd from OSF since it installs stuff as root 11792 # by default. 11793 for ac_prog in ginstall scoinst install; do 11794 for ac_exec_ext in '' $ac_executable_extensions; do 11795 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 11796 if test $ac_prog = install && 11797 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 11798 # AIX install. It has an incompatible calling convention. 11799 : 11800 elif test $ac_prog = install && 11801 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 11802 # program-specific install script used by HP pwplus--don't use. 11803 : 11804 else 11805 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 11806 break 3 11807 fi 11808 fi 11809 done 11810 done 11811 ;; 11812esac 11813done 11814 11815 11816fi 11817 if test "${ac_cv_path_install+set}" = set; then 11818 INSTALL=$ac_cv_path_install 11819 else 11820 # As a last resort, use the slow shell script. We don't cache a 11821 # path for INSTALL within a source directory, because that will 11822 # break other packages using the cache if that directory is 11823 # removed, or if the path is relative. 11824 INSTALL=$ac_install_sh 11825 fi 11826fi 11827echo "$as_me:$LINENO: result: $INSTALL" >&5 11828echo "${ECHO_T}$INSTALL" >&6 11829 11830# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 11831# It thinks the first close brace ends the variable substitution. 11832test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 11833 11834test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 11835 11836test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 11837 11838 11839 ac_config_headers="$ac_config_headers config.h" 11840 11841 11842 ac_config_commands="$ac_config_commands default-1" 11843 11844 ac_config_files="$ac_config_files Makefile" 11845cat >confcache <<\_ACEOF 11846# This file is a shell script that caches the results of configure 11847# tests run on this system so they can be shared between configure 11848# scripts and configure runs, see configure's option --config-cache. 11849# It is not useful on other systems. If it contains results you don't 11850# want to keep, you may remove or edit it. 11851# 11852# config.status only pays attention to the cache file if you give it 11853# the --recheck option to rerun configure. 11854# 11855# `ac_cv_env_foo' variables (set or unset) will be overridden when 11856# loading this file, other *unset* `ac_cv_foo' will be assigned the 11857# following values. 11858 11859_ACEOF 11860 11861# The following way of writing the cache mishandles newlines in values, 11862# but we know of no workaround that is simple, portable, and efficient. 11863# So, don't put newlines in cache variables' values. 11864# Ultrix sh set writes to stderr and can't be redirected directly, 11865# and sets the high bit in the cache file unless we assign to the vars. 11866{ 11867 (set) 2>&1 | 11868 case `(ac_space=' '; set | grep ac_space) 2>&1` in 11869 *ac_space=\ *) 11870 # `set' does not quote correctly, so add quotes (double-quote 11871 # substitution turns \\\\ into \\, and sed turns \\ into \). 11872 sed -n \ 11873 "s/'/'\\\\''/g; 11874 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11875 ;; 11876 *) 11877 # `set' quotes correctly as required by POSIX, so do not add quotes. 11878 sed -n \ 11879 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 11880 ;; 11881 esac; 11882} | 11883 sed ' 11884 t clear 11885 : clear 11886 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11887 t end 11888 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11889 : end' >>confcache 11890if diff $cache_file confcache >/dev/null 2>&1; then :; else 11891 if test -w $cache_file; then 11892 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 11893 cat confcache >$cache_file 11894 else 11895 echo "not updating unwritable cache $cache_file" 11896 fi 11897fi 11898rm -f confcache 11899 11900test "x$prefix" = xNONE && prefix=$ac_default_prefix 11901# Let make expand exec_prefix. 11902test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11903 11904# VPATH may cause trouble with some makes, so we remove $(srcdir), 11905# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 11906# trailing colons and then remove the whole line if VPATH becomes empty 11907# (actually we leave an empty line to preserve line numbers). 11908if test "x$srcdir" = x.; then 11909 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 11910s/:*\$(srcdir):*/:/; 11911s/:*\${srcdir}:*/:/; 11912s/:*@srcdir@:*/:/; 11913s/^\([^=]*=[ ]*\):*/\1/; 11914s/:*$//; 11915s/^[^=]*=[ ]*$//; 11916}' 11917fi 11918 11919DEFS=-DHAVE_CONFIG_H 11920 11921ac_libobjs= 11922ac_ltlibobjs= 11923for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11924 # 1. Remove the extension, and $U if already installed. 11925 ac_i=`echo "$ac_i" | 11926 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 11927 # 2. Add them. 11928 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 11929 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 11930done 11931LIBOBJS=$ac_libobjs 11932 11933LTLIBOBJS=$ac_ltlibobjs 11934 11935 11936 11937: ${CONFIG_STATUS=./config.status} 11938ac_clean_files_save=$ac_clean_files 11939ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11940{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 11941echo "$as_me: creating $CONFIG_STATUS" >&6;} 11942cat >$CONFIG_STATUS <<_ACEOF 11943#! $SHELL 11944# Generated by $as_me. 11945# Run this file to recreate the current configuration. 11946# Compiler output produced by configure, useful for debugging 11947# configure, is in config.log if it exists. 11948 11949debug=false 11950ac_cs_recheck=false 11951ac_cs_silent=false 11952SHELL=\${CONFIG_SHELL-$SHELL} 11953_ACEOF 11954 11955cat >>$CONFIG_STATUS <<\_ACEOF 11956## --------------------- ## 11957## M4sh Initialization. ## 11958## --------------------- ## 11959 11960# Be Bourne compatible 11961if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 11962 emulate sh 11963 NULLCMD=: 11964 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 11965 # is contrary to our usage. Disable this feature. 11966 alias -g '${1+"$@"}'='"$@"' 11967elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 11968 set -o posix 11969fi 11970 11971# Support unset when possible. 11972if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 11973 as_unset=unset 11974else 11975 as_unset=false 11976fi 11977 11978 11979# Work around bugs in pre-3.0 UWIN ksh. 11980$as_unset ENV MAIL MAILPATH 11981PS1='$ ' 11982PS2='> ' 11983PS4='+ ' 11984 11985# NLS nuisances. 11986for as_var in \ 11987 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 11988 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 11989 LC_TELEPHONE LC_TIME 11990do 11991 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then 11992 eval $as_var=C; export $as_var 11993 else 11994 $as_unset $as_var 11995 fi 11996done 11997 11998# Required to use basename. 11999if expr a : '\(a\)' >/dev/null 2>&1; then 12000 as_expr=expr 12001else 12002 as_expr=false 12003fi 12004 12005if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 12006 as_basename=basename 12007else 12008 as_basename=false 12009fi 12010 12011 12012# Name of the executable. 12013as_me=`$as_basename "$0" || 12014$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12015 X"$0" : 'X\(//\)$' \| \ 12016 X"$0" : 'X\(/\)$' \| \ 12017 . : '\(.\)' 2>/dev/null || 12018echo X/"$0" | 12019 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 12020 /^X\/\(\/\/\)$/{ s//\1/; q; } 12021 /^X\/\(\/\).*/{ s//\1/; q; } 12022 s/.*/./; q'` 12023 12024 12025# PATH needs CR, and LINENO needs CR and PATH. 12026# Avoid depending upon Character Ranges. 12027as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12028as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12029as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12030as_cr_digits='0123456789' 12031as_cr_alnum=$as_cr_Letters$as_cr_digits 12032 12033# The user is always right. 12034if test "${PATH_SEPARATOR+set}" != set; then 12035 echo "#! /bin/sh" >conf$$.sh 12036 echo "exit 0" >>conf$$.sh 12037 chmod +x conf$$.sh 12038 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 12039 PATH_SEPARATOR=';' 12040 else 12041 PATH_SEPARATOR=: 12042 fi 12043 rm -f conf$$.sh 12044fi 12045 12046 12047 as_lineno_1=$LINENO 12048 as_lineno_2=$LINENO 12049 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 12050 test "x$as_lineno_1" != "x$as_lineno_2" && 12051 test "x$as_lineno_3" = "x$as_lineno_2" || { 12052 # Find who we are. Look in the path if we contain no path at all 12053 # relative or not. 12054 case $0 in 12055 *[\\/]* ) as_myself=$0 ;; 12056 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12057for as_dir in $PATH 12058do 12059 IFS=$as_save_IFS 12060 test -z "$as_dir" && as_dir=. 12061 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12062done 12063 12064 ;; 12065 esac 12066 # We did not find ourselves, most probably we were run as `sh COMMAND' 12067 # in which case we are not to be found in the path. 12068 if test "x$as_myself" = x; then 12069 as_myself=$0 12070 fi 12071 if test ! -f "$as_myself"; then 12072 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 12073echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 12074 { (exit 1); exit 1; }; } 12075 fi 12076 case $CONFIG_SHELL in 12077 '') 12078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12079for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 12080do 12081 IFS=$as_save_IFS 12082 test -z "$as_dir" && as_dir=. 12083 for as_base in sh bash ksh sh5; do 12084 case $as_dir in 12085 /*) 12086 if ("$as_dir/$as_base" -c ' 12087 as_lineno_1=$LINENO 12088 as_lineno_2=$LINENO 12089 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 12090 test "x$as_lineno_1" != "x$as_lineno_2" && 12091 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 12092 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 12093 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 12094 CONFIG_SHELL=$as_dir/$as_base 12095 export CONFIG_SHELL 12096 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 12097 fi;; 12098 esac 12099 done 12100done 12101;; 12102 esac 12103 12104 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 12105 # uniformly replaced by the line number. The first 'sed' inserts a 12106 # line-number line before each line; the second 'sed' does the real 12107 # work. The second script uses 'N' to pair each line-number line 12108 # with the numbered line, and appends trailing '-' during 12109 # substitution so that $LINENO is not a special case at line end. 12110 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 12111 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 12112 sed '=' <$as_myself | 12113 sed ' 12114 N 12115 s,$,-, 12116 : loop 12117 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 12118 t loop 12119 s,-$,, 12120 s,^['$as_cr_digits']*\n,, 12121 ' >$as_me.lineno && 12122 chmod +x $as_me.lineno || 12123 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 12124echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 12125 { (exit 1); exit 1; }; } 12126 12127 # Don't try to exec as it changes $[0], causing all sort of problems 12128 # (the dirname of $[0] is not the place where we might find the 12129 # original and so on. Autoconf is especially sensible to this). 12130 . ./$as_me.lineno 12131 # Exit status is that of the last command. 12132 exit 12133} 12134 12135 12136case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 12137 *c*,-n*) ECHO_N= ECHO_C=' 12138' ECHO_T=' ' ;; 12139 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 12140 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 12141esac 12142 12143if expr a : '\(a\)' >/dev/null 2>&1; then 12144 as_expr=expr 12145else 12146 as_expr=false 12147fi 12148 12149rm -f conf$$ conf$$.exe conf$$.file 12150echo >conf$$.file 12151if ln -s conf$$.file conf$$ 2>/dev/null; then 12152 # We could just check for DJGPP; but this test a) works b) is more generic 12153 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 12154 if test -f conf$$.exe; then 12155 # Don't use ln at all; we don't have any links 12156 as_ln_s='cp -p' 12157 else 12158 as_ln_s='ln -s' 12159 fi 12160elif ln conf$$.file conf$$ 2>/dev/null; then 12161 as_ln_s=ln 12162else 12163 as_ln_s='cp -p' 12164fi 12165rm -f conf$$ conf$$.exe conf$$.file 12166 12167if mkdir -p . 2>/dev/null; then 12168 as_mkdir_p=: 12169else 12170 as_mkdir_p=false 12171fi 12172 12173as_executable_p="test -f" 12174 12175# Sed expression to map a string onto a valid CPP name. 12176as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 12177 12178# Sed expression to map a string onto a valid variable name. 12179as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 12180 12181 12182# IFS 12183# We need space, tab and new line, in precisely that order. 12184as_nl=' 12185' 12186IFS=" $as_nl" 12187 12188# CDPATH. 12189$as_unset CDPATH 12190 12191exec 6>&1 12192 12193# Open the log real soon, to keep \$[0] and so on meaningful, and to 12194# report actual input values of CONFIG_FILES etc. instead of their 12195# values after options handling. Logging --version etc. is OK. 12196exec 5>>config.log 12197{ 12198 echo 12199 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12200## Running $as_me. ## 12201_ASBOX 12202} >&5 12203cat >&5 <<_CSEOF 12204 12205This file was extended by $as_me, which was 12206generated by GNU Autoconf 2.57. Invocation command line was 12207 12208 CONFIG_FILES = $CONFIG_FILES 12209 CONFIG_HEADERS = $CONFIG_HEADERS 12210 CONFIG_LINKS = $CONFIG_LINKS 12211 CONFIG_COMMANDS = $CONFIG_COMMANDS 12212 $ $0 $@ 12213 12214_CSEOF 12215echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 12216echo >&5 12217_ACEOF 12218 12219# Files that config.status was made for. 12220if test -n "$ac_config_files"; then 12221 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 12222fi 12223 12224if test -n "$ac_config_headers"; then 12225 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 12226fi 12227 12228if test -n "$ac_config_links"; then 12229 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 12230fi 12231 12232if test -n "$ac_config_commands"; then 12233 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 12234fi 12235 12236cat >>$CONFIG_STATUS <<\_ACEOF 12237 12238ac_cs_usage="\ 12239\`$as_me' instantiates files from templates according to the 12240current configuration. 12241 12242Usage: $0 [OPTIONS] [FILE]... 12243 12244 -h, --help print this help, then exit 12245 -V, --version print version number, then exit 12246 -q, --quiet do not print progress messages 12247 -d, --debug don't remove temporary files 12248 --recheck update $as_me by reconfiguring in the same conditions 12249 --file=FILE[:TEMPLATE] 12250 instantiate the configuration file FILE 12251 --header=FILE[:TEMPLATE] 12252 instantiate the configuration header FILE 12253 12254Configuration files: 12255$config_files 12256 12257Configuration headers: 12258$config_headers 12259 12260Configuration commands: 12261$config_commands 12262 12263Report bugs to <bug-autoconf@gnu.org>." 12264_ACEOF 12265 12266cat >>$CONFIG_STATUS <<_ACEOF 12267ac_cs_version="\\ 12268config.status 12269configured by $0, generated by GNU Autoconf 2.57, 12270 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 12271 12272Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 12273Free Software Foundation, Inc. 12274This config.status script is free software; the Free Software Foundation 12275gives unlimited permission to copy, distribute and modify it." 12276srcdir=$srcdir 12277INSTALL="$INSTALL" 12278_ACEOF 12279 12280cat >>$CONFIG_STATUS <<\_ACEOF 12281# If no file are specified by the user, then we need to provide default 12282# value. By we need to know if files were specified by the user. 12283ac_need_defaults=: 12284while test $# != 0 12285do 12286 case $1 in 12287 --*=*) 12288 ac_option=`expr "x$1" : 'x\([^=]*\)='` 12289 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 12290 ac_shift=: 12291 ;; 12292 -*) 12293 ac_option=$1 12294 ac_optarg=$2 12295 ac_shift=shift 12296 ;; 12297 *) # This is not an option, so the user has probably given explicit 12298 # arguments. 12299 ac_option=$1 12300 ac_need_defaults=false;; 12301 esac 12302 12303 case $ac_option in 12304 # Handling of the options. 12305_ACEOF 12306cat >>$CONFIG_STATUS <<\_ACEOF 12307 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12308 ac_cs_recheck=: ;; 12309 --version | --vers* | -V ) 12310 echo "$ac_cs_version"; exit 0 ;; 12311 --he | --h) 12312 # Conflict between --help and --header 12313 { { echo "$as_me:$LINENO: error: ambiguous option: $1 12314Try \`$0 --help' for more information." >&5 12315echo "$as_me: error: ambiguous option: $1 12316Try \`$0 --help' for more information." >&2;} 12317 { (exit 1); exit 1; }; };; 12318 --help | --hel | -h ) 12319 echo "$ac_cs_usage"; exit 0 ;; 12320 --debug | --d* | -d ) 12321 debug=: ;; 12322 --file | --fil | --fi | --f ) 12323 $ac_shift 12324 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 12325 ac_need_defaults=false;; 12326 --header | --heade | --head | --hea ) 12327 $ac_shift 12328 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 12329 ac_need_defaults=false;; 12330 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12331 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12332 ac_cs_silent=: ;; 12333 12334 # This is an error. 12335 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 12336Try \`$0 --help' for more information." >&5 12337echo "$as_me: error: unrecognized option: $1 12338Try \`$0 --help' for more information." >&2;} 12339 { (exit 1); exit 1; }; } ;; 12340 12341 *) ac_config_targets="$ac_config_targets $1" ;; 12342 12343 esac 12344 shift 12345done 12346 12347ac_configure_extra_args= 12348 12349if $ac_cs_silent; then 12350 exec 6>/dev/null 12351 ac_configure_extra_args="$ac_configure_extra_args --silent" 12352fi 12353 12354_ACEOF 12355cat >>$CONFIG_STATUS <<_ACEOF 12356if \$ac_cs_recheck; then 12357 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 12358 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12359fi 12360 12361_ACEOF 12362 12363cat >>$CONFIG_STATUS <<_ACEOF 12364# 12365# INIT-COMMANDS section. 12366# 12367 12368 12369 12370_ACEOF 12371 12372 12373 12374cat >>$CONFIG_STATUS <<\_ACEOF 12375for ac_config_target in $ac_config_targets 12376do 12377 case "$ac_config_target" in 12378 # Handling of arguments. 12379 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12380 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 12381 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12382 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 12383echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 12384 { (exit 1); exit 1; }; };; 12385 esac 12386done 12387 12388# If the user did not use the arguments to specify the items to instantiate, 12389# then the envvar interface is used. Set only those that are not. 12390# We use the long form for the default assignment because of an extremely 12391# bizarre bug on SunOS 4.1.3. 12392if $ac_need_defaults; then 12393 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12394 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12395 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12396fi 12397 12398# Have a temporary directory for convenience. Make it in the build tree 12399# simply because there is no reason to put it here, and in addition, 12400# creating and moving files from /tmp can sometimes cause problems. 12401# Create a temporary directory, and hook for its removal unless debugging. 12402$debug || 12403{ 12404 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 12405 trap '{ (exit 1); exit 1; }' 1 2 13 15 12406} 12407 12408# Create a (secure) tmp directory for tmp files. 12409 12410{ 12411 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 12412 test -n "$tmp" && test -d "$tmp" 12413} || 12414{ 12415 tmp=./confstat$$-$RANDOM 12416 (umask 077 && mkdir $tmp) 12417} || 12418{ 12419 echo "$me: cannot create a temporary directory in ." >&2 12420 { (exit 1); exit 1; } 12421} 12422 12423_ACEOF 12424 12425cat >>$CONFIG_STATUS <<_ACEOF 12426 12427# 12428# CONFIG_FILES section. 12429# 12430 12431# No need to generate the scripts if there are no CONFIG_FILES. 12432# This happens for instance when ./config.status config.h 12433if test -n "\$CONFIG_FILES"; then 12434 # Protect against being on the right side of a sed subst in config.status. 12435 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 12436 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 12437s,@SHELL@,$SHELL,;t t 12438s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 12439s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 12440s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 12441s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 12442s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 12443s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 12444s,@exec_prefix@,$exec_prefix,;t t 12445s,@prefix@,$prefix,;t t 12446s,@program_transform_name@,$program_transform_name,;t t 12447s,@bindir@,$bindir,;t t 12448s,@sbindir@,$sbindir,;t t 12449s,@libexecdir@,$libexecdir,;t t 12450s,@datadir@,$datadir,;t t 12451s,@sysconfdir@,$sysconfdir,;t t 12452s,@sharedstatedir@,$sharedstatedir,;t t 12453s,@localstatedir@,$localstatedir,;t t 12454s,@libdir@,$libdir,;t t 12455s,@includedir@,$includedir,;t t 12456s,@oldincludedir@,$oldincludedir,;t t 12457s,@infodir@,$infodir,;t t 12458s,@mandir@,$mandir,;t t 12459s,@build_alias@,$build_alias,;t t 12460s,@host_alias@,$host_alias,;t t 12461s,@target_alias@,$target_alias,;t t 12462s,@DEFS@,$DEFS,;t t 12463s,@ECHO_C@,$ECHO_C,;t t 12464s,@ECHO_N@,$ECHO_N,;t t 12465s,@ECHO_T@,$ECHO_T,;t t 12466s,@LIBS@,$LIBS,;t t 12467s,@build@,$build,;t t 12468s,@build_cpu@,$build_cpu,;t t 12469s,@build_vendor@,$build_vendor,;t t 12470s,@build_os@,$build_os,;t t 12471s,@host@,$host,;t t 12472s,@host_cpu@,$host_cpu,;t t 12473s,@host_vendor@,$host_vendor,;t t 12474s,@host_os@,$host_os,;t t 12475s,@SHLICC2@,$SHLICC2,;t t 12476s,@CC@,$CC,;t t 12477s,@CFLAGS@,$CFLAGS,;t t 12478s,@LDFLAGS@,$LDFLAGS,;t t 12479s,@CPPFLAGS@,$CPPFLAGS,;t t 12480s,@ac_ct_CC@,$ac_ct_CC,;t t 12481s,@EXEEXT@,$EXEEXT,;t t 12482s,@OBJEXT@,$OBJEXT,;t t 12483s,@CPP@,$CPP,;t t 12484s,@EGREP@,$EGREP,;t t 12485s,@LIBOBJS@,$LIBOBJS,;t t 12486s,@V_CCOPT@,$V_CCOPT,;t t 12487s,@V_DEFS@,$V_DEFS,;t t 12488s,@V_GROUP@,$V_GROUP,;t t 12489s,@V_INCLS@,$V_INCLS,;t t 12490s,@V_PCAPDEP@,$V_PCAPDEP,;t t 12491s,@LOCALSRC@,$LOCALSRC,;t t 12492s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 12493s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 12494s,@INSTALL_DATA@,$INSTALL_DATA,;t t 12495s,@LTLIBOBJS@,$LTLIBOBJS,;t t 12496CEOF 12497 12498_ACEOF 12499 12500 cat >>$CONFIG_STATUS <<\_ACEOF 12501 # Split the substitutions into bite-sized pieces for seds with 12502 # small command number limits, like on Digital OSF/1 and HP-UX. 12503 ac_max_sed_lines=48 12504 ac_sed_frag=1 # Number of current file. 12505 ac_beg=1 # First line for current file. 12506 ac_end=$ac_max_sed_lines # Line after last line for current file. 12507 ac_more_lines=: 12508 ac_sed_cmds= 12509 while $ac_more_lines; do 12510 if test $ac_beg -gt 1; then 12511 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 12512 else 12513 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 12514 fi 12515 if test ! -s $tmp/subs.frag; then 12516 ac_more_lines=false 12517 else 12518 # The purpose of the label and of the branching condition is to 12519 # speed up the sed processing (if there are no `@' at all, there 12520 # is no need to browse any of the substitutions). 12521 # These are the two extra sed commands mentioned above. 12522 (echo ':t 12523 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 12524 if test -z "$ac_sed_cmds"; then 12525 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 12526 else 12527 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 12528 fi 12529 ac_sed_frag=`expr $ac_sed_frag + 1` 12530 ac_beg=$ac_end 12531 ac_end=`expr $ac_end + $ac_max_sed_lines` 12532 fi 12533 done 12534 if test -z "$ac_sed_cmds"; then 12535 ac_sed_cmds=cat 12536 fi 12537fi # test -n "$CONFIG_FILES" 12538 12539_ACEOF 12540cat >>$CONFIG_STATUS <<\_ACEOF 12541for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 12542 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 12543 case $ac_file in 12544 - | *:- | *:-:* ) # input from stdin 12545 cat >$tmp/stdin 12546 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 12547 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 12548 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 12549 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 12550 * ) ac_file_in=$ac_file.in ;; 12551 esac 12552 12553 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 12554 ac_dir=`(dirname "$ac_file") 2>/dev/null || 12555$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12556 X"$ac_file" : 'X\(//\)[^/]' \| \ 12557 X"$ac_file" : 'X\(//\)$' \| \ 12558 X"$ac_file" : 'X\(/\)' \| \ 12559 . : '\(.\)' 2>/dev/null || 12560echo X"$ac_file" | 12561 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12562 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12563 /^X\(\/\/\)$/{ s//\1/; q; } 12564 /^X\(\/\).*/{ s//\1/; q; } 12565 s/.*/./; q'` 12566 { if $as_mkdir_p; then 12567 mkdir -p "$ac_dir" 12568 else 12569 as_dir="$ac_dir" 12570 as_dirs= 12571 while test ! -d "$as_dir"; do 12572 as_dirs="$as_dir $as_dirs" 12573 as_dir=`(dirname "$as_dir") 2>/dev/null || 12574$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12575 X"$as_dir" : 'X\(//\)[^/]' \| \ 12576 X"$as_dir" : 'X\(//\)$' \| \ 12577 X"$as_dir" : 'X\(/\)' \| \ 12578 . : '\(.\)' 2>/dev/null || 12579echo X"$as_dir" | 12580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12581 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12582 /^X\(\/\/\)$/{ s//\1/; q; } 12583 /^X\(\/\).*/{ s//\1/; q; } 12584 s/.*/./; q'` 12585 done 12586 test ! -n "$as_dirs" || mkdir $as_dirs 12587 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 12588echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 12589 { (exit 1); exit 1; }; }; } 12590 12591 ac_builddir=. 12592 12593if test "$ac_dir" != .; then 12594 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 12595 # A "../" for each directory in $ac_dir_suffix. 12596 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 12597else 12598 ac_dir_suffix= ac_top_builddir= 12599fi 12600 12601case $srcdir in 12602 .) # No --srcdir option. We are building in place. 12603 ac_srcdir=. 12604 if test -z "$ac_top_builddir"; then 12605 ac_top_srcdir=. 12606 else 12607 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 12608 fi ;; 12609 [\\/]* | ?:[\\/]* ) # Absolute path. 12610 ac_srcdir=$srcdir$ac_dir_suffix; 12611 ac_top_srcdir=$srcdir ;; 12612 *) # Relative path. 12613 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 12614 ac_top_srcdir=$ac_top_builddir$srcdir ;; 12615esac 12616# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 12617# absolute. 12618ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 12619ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 12620ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 12621ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 12622 12623 12624 case $INSTALL in 12625 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12626 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 12627 esac 12628 12629 if test x"$ac_file" != x-; then 12630 { echo "$as_me:$LINENO: creating $ac_file" >&5 12631echo "$as_me: creating $ac_file" >&6;} 12632 rm -f "$ac_file" 12633 fi 12634 # Let's still pretend it is `configure' which instantiates (i.e., don't 12635 # use $as_me), people would be surprised to read: 12636 # /* config.h. Generated by config.status. */ 12637 if test x"$ac_file" = x-; then 12638 configure_input= 12639 else 12640 configure_input="$ac_file. " 12641 fi 12642 configure_input=$configure_input"Generated from `echo $ac_file_in | 12643 sed 's,.*/,,'` by configure." 12644 12645 # First look for the input files in the build tree, otherwise in the 12646 # src tree. 12647 ac_file_inputs=`IFS=: 12648 for f in $ac_file_in; do 12649 case $f in 12650 -) echo $tmp/stdin ;; 12651 [\\/$]*) 12652 # Absolute (can't be DOS-style, as IFS=:) 12653 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 12654echo "$as_me: error: cannot find input file: $f" >&2;} 12655 { (exit 1); exit 1; }; } 12656 echo $f;; 12657 *) # Relative 12658 if test -f "$f"; then 12659 # Build tree 12660 echo $f 12661 elif test -f "$srcdir/$f"; then 12662 # Source tree 12663 echo $srcdir/$f 12664 else 12665 # /dev/null tree 12666 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 12667echo "$as_me: error: cannot find input file: $f" >&2;} 12668 { (exit 1); exit 1; }; } 12669 fi;; 12670 esac 12671 done` || { (exit 1); exit 1; } 12672_ACEOF 12673cat >>$CONFIG_STATUS <<_ACEOF 12674 sed "$ac_vpsub 12675$extrasub 12676_ACEOF 12677cat >>$CONFIG_STATUS <<\_ACEOF 12678:t 12679/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12680s,@configure_input@,$configure_input,;t t 12681s,@srcdir@,$ac_srcdir,;t t 12682s,@abs_srcdir@,$ac_abs_srcdir,;t t 12683s,@top_srcdir@,$ac_top_srcdir,;t t 12684s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 12685s,@builddir@,$ac_builddir,;t t 12686s,@abs_builddir@,$ac_abs_builddir,;t t 12687s,@top_builddir@,$ac_top_builddir,;t t 12688s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 12689s,@INSTALL@,$ac_INSTALL,;t t 12690" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 12691 rm -f $tmp/stdin 12692 if test x"$ac_file" != x-; then 12693 mv $tmp/out $ac_file 12694 else 12695 cat $tmp/out 12696 rm -f $tmp/out 12697 fi 12698 12699done 12700_ACEOF 12701cat >>$CONFIG_STATUS <<\_ACEOF 12702 12703# 12704# CONFIG_HEADER section. 12705# 12706 12707# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 12708# NAME is the cpp macro being defined and VALUE is the value it is being given. 12709# 12710# ac_d sets the value in "#define NAME VALUE" lines. 12711ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 12712ac_dB='[ ].*$,\1#\2' 12713ac_dC=' ' 12714ac_dD=',;t' 12715# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 12716ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 12717ac_uB='$,\1#\2define\3' 12718ac_uC=' ' 12719ac_uD=',;t' 12720 12721for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 12722 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 12723 case $ac_file in 12724 - | *:- | *:-:* ) # input from stdin 12725 cat >$tmp/stdin 12726 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 12727 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 12728 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 12729 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 12730 * ) ac_file_in=$ac_file.in ;; 12731 esac 12732 12733 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 12734echo "$as_me: creating $ac_file" >&6;} 12735 12736 # First look for the input files in the build tree, otherwise in the 12737 # src tree. 12738 ac_file_inputs=`IFS=: 12739 for f in $ac_file_in; do 12740 case $f in 12741 -) echo $tmp/stdin ;; 12742 [\\/$]*) 12743 # Absolute (can't be DOS-style, as IFS=:) 12744 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 12745echo "$as_me: error: cannot find input file: $f" >&2;} 12746 { (exit 1); exit 1; }; } 12747 echo $f;; 12748 *) # Relative 12749 if test -f "$f"; then 12750 # Build tree 12751 echo $f 12752 elif test -f "$srcdir/$f"; then 12753 # Source tree 12754 echo $srcdir/$f 12755 else 12756 # /dev/null tree 12757 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 12758echo "$as_me: error: cannot find input file: $f" >&2;} 12759 { (exit 1); exit 1; }; } 12760 fi;; 12761 esac 12762 done` || { (exit 1); exit 1; } 12763 # Remove the trailing spaces. 12764 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 12765 12766_ACEOF 12767 12768# Transform confdefs.h into two sed scripts, `conftest.defines' and 12769# `conftest.undefs', that substitutes the proper values into 12770# config.h.in to produce config.h. The first handles `#define' 12771# templates, and the second `#undef' templates. 12772# And first: Protect against being on the right side of a sed subst in 12773# config.status. Protect against being in an unquoted here document 12774# in config.status. 12775rm -f conftest.defines conftest.undefs 12776# Using a here document instead of a string reduces the quoting nightmare. 12777# Putting comments in sed scripts is not portable. 12778# 12779# `end' is used to avoid that the second main sed command (meant for 12780# 0-ary CPP macros) applies to n-ary macro definitions. 12781# See the Autoconf documentation for `clear'. 12782cat >confdef2sed.sed <<\_ACEOF 12783s/[\\&,]/\\&/g 12784s,[\\$`],\\&,g 12785t clear 12786: clear 12787s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 12788t end 12789s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 12790: end 12791_ACEOF 12792# If some macros were called several times there might be several times 12793# the same #defines, which is useless. Nevertheless, we may not want to 12794# sort them, since we want the *last* AC-DEFINE to be honored. 12795uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 12796sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 12797rm -f confdef2sed.sed 12798 12799# This sed command replaces #undef with comments. This is necessary, for 12800# example, in the case of _POSIX_SOURCE, which is predefined and required 12801# on some systems where configure will not decide to define it. 12802cat >>conftest.undefs <<\_ACEOF 12803s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 12804_ACEOF 12805 12806# Break up conftest.defines because some shells have a limit on the size 12807# of here documents, and old seds have small limits too (100 cmds). 12808echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 12809echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 12810echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 12811echo ' :' >>$CONFIG_STATUS 12812rm -f conftest.tail 12813while grep . conftest.defines >/dev/null 12814do 12815 # Write a limited-size here document to $tmp/defines.sed. 12816 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 12817 # Speed up: don't consider the non `#define' lines. 12818 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 12819 # Work around the forget-to-reset-the-flag bug. 12820 echo 't clr' >>$CONFIG_STATUS 12821 echo ': clr' >>$CONFIG_STATUS 12822 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 12823 echo 'CEOF 12824 sed -f $tmp/defines.sed $tmp/in >$tmp/out 12825 rm -f $tmp/in 12826 mv $tmp/out $tmp/in 12827' >>$CONFIG_STATUS 12828 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 12829 rm -f conftest.defines 12830 mv conftest.tail conftest.defines 12831done 12832rm -f conftest.defines 12833echo ' fi # grep' >>$CONFIG_STATUS 12834echo >>$CONFIG_STATUS 12835 12836# Break up conftest.undefs because some shells have a limit on the size 12837# of here documents, and old seds have small limits too (100 cmds). 12838echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 12839rm -f conftest.tail 12840while grep . conftest.undefs >/dev/null 12841do 12842 # Write a limited-size here document to $tmp/undefs.sed. 12843 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 12844 # Speed up: don't consider the non `#undef' 12845 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 12846 # Work around the forget-to-reset-the-flag bug. 12847 echo 't clr' >>$CONFIG_STATUS 12848 echo ': clr' >>$CONFIG_STATUS 12849 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 12850 echo 'CEOF 12851 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 12852 rm -f $tmp/in 12853 mv $tmp/out $tmp/in 12854' >>$CONFIG_STATUS 12855 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 12856 rm -f conftest.undefs 12857 mv conftest.tail conftest.undefs 12858done 12859rm -f conftest.undefs 12860 12861cat >>$CONFIG_STATUS <<\_ACEOF 12862 # Let's still pretend it is `configure' which instantiates (i.e., don't 12863 # use $as_me), people would be surprised to read: 12864 # /* config.h. Generated by config.status. */ 12865 if test x"$ac_file" = x-; then 12866 echo "/* Generated by configure. */" >$tmp/config.h 12867 else 12868 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 12869 fi 12870 cat $tmp/in >>$tmp/config.h 12871 rm -f $tmp/in 12872 if test x"$ac_file" != x-; then 12873 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 12874 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 12875echo "$as_me: $ac_file is unchanged" >&6;} 12876 else 12877 ac_dir=`(dirname "$ac_file") 2>/dev/null || 12878$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12879 X"$ac_file" : 'X\(//\)[^/]' \| \ 12880 X"$ac_file" : 'X\(//\)$' \| \ 12881 X"$ac_file" : 'X\(/\)' \| \ 12882 . : '\(.\)' 2>/dev/null || 12883echo X"$ac_file" | 12884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12885 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12886 /^X\(\/\/\)$/{ s//\1/; q; } 12887 /^X\(\/\).*/{ s//\1/; q; } 12888 s/.*/./; q'` 12889 { if $as_mkdir_p; then 12890 mkdir -p "$ac_dir" 12891 else 12892 as_dir="$ac_dir" 12893 as_dirs= 12894 while test ! -d "$as_dir"; do 12895 as_dirs="$as_dir $as_dirs" 12896 as_dir=`(dirname "$as_dir") 2>/dev/null || 12897$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12898 X"$as_dir" : 'X\(//\)[^/]' \| \ 12899 X"$as_dir" : 'X\(//\)$' \| \ 12900 X"$as_dir" : 'X\(/\)' \| \ 12901 . : '\(.\)' 2>/dev/null || 12902echo X"$as_dir" | 12903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12904 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12905 /^X\(\/\/\)$/{ s//\1/; q; } 12906 /^X\(\/\).*/{ s//\1/; q; } 12907 s/.*/./; q'` 12908 done 12909 test ! -n "$as_dirs" || mkdir $as_dirs 12910 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 12911echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 12912 { (exit 1); exit 1; }; }; } 12913 12914 rm -f $ac_file 12915 mv $tmp/config.h $ac_file 12916 fi 12917 else 12918 cat $tmp/config.h 12919 rm -f $tmp/config.h 12920 fi 12921done 12922_ACEOF 12923cat >>$CONFIG_STATUS <<\_ACEOF 12924 12925# 12926# CONFIG_COMMANDS section. 12927# 12928for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 12929 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 12930 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 12931 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 12932$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12933 X"$ac_dest" : 'X\(//\)[^/]' \| \ 12934 X"$ac_dest" : 'X\(//\)$' \| \ 12935 X"$ac_dest" : 'X\(/\)' \| \ 12936 . : '\(.\)' 2>/dev/null || 12937echo X"$ac_dest" | 12938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12939 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12940 /^X\(\/\/\)$/{ s//\1/; q; } 12941 /^X\(\/\).*/{ s//\1/; q; } 12942 s/.*/./; q'` 12943 ac_builddir=. 12944 12945if test "$ac_dir" != .; then 12946 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 12947 # A "../" for each directory in $ac_dir_suffix. 12948 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 12949else 12950 ac_dir_suffix= ac_top_builddir= 12951fi 12952 12953case $srcdir in 12954 .) # No --srcdir option. We are building in place. 12955 ac_srcdir=. 12956 if test -z "$ac_top_builddir"; then 12957 ac_top_srcdir=. 12958 else 12959 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 12960 fi ;; 12961 [\\/]* | ?:[\\/]* ) # Absolute path. 12962 ac_srcdir=$srcdir$ac_dir_suffix; 12963 ac_top_srcdir=$srcdir ;; 12964 *) # Relative path. 12965 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 12966 ac_top_srcdir=$ac_top_builddir$srcdir ;; 12967esac 12968# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 12969# absolute. 12970ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 12971ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 12972ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 12973ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 12974 12975 12976 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 12977echo "$as_me: executing $ac_dest commands" >&6;} 12978 case $ac_dest in 12979 default-1 ) if test -f .devel; then 12980 echo timestamp > stamp-h 12981 cat Makefile-devel-adds >> Makefile 12982 make depend 12983fi ;; 12984 esac 12985done 12986_ACEOF 12987 12988cat >>$CONFIG_STATUS <<\_ACEOF 12989 12990{ (exit 0); exit 0; } 12991_ACEOF 12992chmod +x $CONFIG_STATUS 12993ac_clean_files=$ac_clean_files_save 12994 12995 12996# configure is writing to config.log, and then calls config.status. 12997# config.status does its own redirection, appending to config.log. 12998# Unfortunately, on DOS this fails, as config.log is still kept open 12999# by configure, so config.status won't be able to write to it; its 13000# output is simply discarded. So we exec the FD to /dev/null, 13001# effectively closing config.log, so it can be properly (re)opened and 13002# appended to by config.status. When coming back to configure, we 13003# need to make the FD available again. 13004if test "$no_create" != yes; then 13005 ac_cs_success=: 13006 ac_config_status_args= 13007 test "$silent" = yes && 13008 ac_config_status_args="$ac_config_status_args --quiet" 13009 exec 5>/dev/null 13010 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13011 exec 5>>config.log 13012 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13013 # would make configure fail if this is the last instruction. 13014 $ac_cs_success || { (exit 1); exit 1; } 13015fi 13016 13017exit 0 13018