configure revision 146773
1#! /bin/sh 2# From configure.in Revision: 1.188 . 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 save_CFLAGS="$CFLAGS" 2507 CFLAGS="$V_CCOPT" 2508 if test "${ac_cv_lbl_inline+set}" = set; then 2509 echo $ECHO_N "(cached) $ECHO_C" >&6 2510else 2511 2512 ac_cv_lbl_inline="" 2513 ac_lbl_cc_inline=no 2514 for ac_lbl_inline in inline __inline__ __inline 2515 do 2516 cat >conftest.$ac_ext <<_ACEOF 2517#line $LINENO "configure" 2518/* confdefs.h. */ 2519_ACEOF 2520cat confdefs.h >>conftest.$ac_ext 2521cat >>conftest.$ac_ext <<_ACEOF 2522/* end confdefs.h. */ 2523#define inline $ac_lbl_inline 2524 static inline struct iltest *foo(void); 2525 struct iltest { 2526 int iltest1; 2527 int iltest2; 2528 }; 2529 2530 static inline struct iltest * 2531 foo() 2532 { 2533 static struct iltest xxx; 2534 2535 return &xxx; 2536 } 2537int 2538main () 2539{ 2540 2541 ; 2542 return 0; 2543} 2544_ACEOF 2545rm -f conftest.$ac_objext 2546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2547 (eval $ac_compile) 2>&5 2548 ac_status=$? 2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2550 (exit $ac_status); } && 2551 { ac_try='test -s conftest.$ac_objext' 2552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2553 (eval $ac_try) 2>&5 2554 ac_status=$? 2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2556 (exit $ac_status); }; }; then 2557 ac_lbl_cc_inline=yes 2558else 2559 echo "$as_me: failed program was:" >&5 2560sed 's/^/| /' conftest.$ac_ext >&5 2561 2562fi 2563rm -f conftest.$ac_objext conftest.$ac_ext 2564 if test "$ac_lbl_cc_inline" = yes ; then 2565 break; 2566 fi 2567 done 2568 if test "$ac_lbl_cc_inline" = yes ; then 2569 ac_cv_lbl_inline=$ac_lbl_inline 2570 fi 2571fi 2572 2573 CFLAGS="$save_CFLAGS" 2574 if test ! -z "$ac_cv_lbl_inline" ; then 2575 echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5 2576echo "${ECHO_T}$ac_cv_lbl_inline" >&6 2577 else 2578 echo "$as_me:$LINENO: result: no" >&5 2579echo "${ECHO_T}no" >&6 2580 fi 2581 2582cat >>confdefs.h <<_ACEOF 2583#define inline $ac_cv_lbl_inline 2584_ACEOF 2585 2586 2587echo "$as_me:$LINENO: checking for __attribute__" >&5 2588echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6 2589if test "${ac_cv___attribute__+set}" = set; then 2590 echo $ECHO_N "(cached) $ECHO_C" >&6 2591else 2592 2593cat >conftest.$ac_ext <<_ACEOF 2594#line $LINENO "configure" 2595/* confdefs.h. */ 2596_ACEOF 2597cat confdefs.h >>conftest.$ac_ext 2598cat >>conftest.$ac_ext <<_ACEOF 2599/* end confdefs.h. */ 2600 2601#include <stdlib.h> 2602 2603int 2604main () 2605{ 2606 2607static void foo(void) __attribute__ ((noreturn)); 2608 2609static void 2610foo(void) 2611{ 2612 exit(1); 2613} 2614 2615 ; 2616 return 0; 2617} 2618_ACEOF 2619rm -f conftest.$ac_objext 2620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2621 (eval $ac_compile) 2>&5 2622 ac_status=$? 2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2624 (exit $ac_status); } && 2625 { ac_try='test -s conftest.$ac_objext' 2626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2627 (eval $ac_try) 2>&5 2628 ac_status=$? 2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2630 (exit $ac_status); }; }; then 2631 ac_cv___attribute__=yes 2632else 2633 echo "$as_me: failed program was:" >&5 2634sed 's/^/| /' conftest.$ac_ext >&5 2635 2636ac_cv___attribute__=no 2637fi 2638rm -f conftest.$ac_objext conftest.$ac_ext 2639fi 2640 2641if test "$ac_cv___attribute__" = "yes"; then 2642 2643cat >>confdefs.h <<\_ACEOF 2644#define HAVE___ATTRIBUTE__ 1 2645_ACEOF 2646 2647 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\"" 2648else 2649 V_DEFS="$V_DEFS -D_U_=\"\"" 2650fi 2651echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5 2652echo "${ECHO_T}$ac_cv___attribute__" >&6 2653 2654ac_ext=c 2655ac_cpp='$CPP $CPPFLAGS' 2656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2658ac_compiler_gnu=$ac_cv_c_compiler_gnu 2659echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2660echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2661# On Suns, sometimes $CPP names a directory. 2662if test -n "$CPP" && test -d "$CPP"; then 2663 CPP= 2664fi 2665if test -z "$CPP"; then 2666 if test "${ac_cv_prog_CPP+set}" = set; then 2667 echo $ECHO_N "(cached) $ECHO_C" >&6 2668else 2669 # Double quotes because CPP needs to be expanded 2670 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2671 do 2672 ac_preproc_ok=false 2673for ac_c_preproc_warn_flag in '' yes 2674do 2675 # Use a header file that comes with gcc, so configuring glibc 2676 # with a fresh cross-compiler works. 2677 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2678 # <limits.h> exists even on freestanding compilers. 2679 # On the NeXT, cc -E runs the code through the compiler's parser, 2680 # not just through cpp. "Syntax error" is here to catch this case. 2681 cat >conftest.$ac_ext <<_ACEOF 2682#line $LINENO "configure" 2683/* confdefs.h. */ 2684_ACEOF 2685cat confdefs.h >>conftest.$ac_ext 2686cat >>conftest.$ac_ext <<_ACEOF 2687/* end confdefs.h. */ 2688#ifdef __STDC__ 2689# include <limits.h> 2690#else 2691# include <assert.h> 2692#endif 2693 Syntax error 2694_ACEOF 2695if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2696 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2697 ac_status=$? 2698 grep -v '^ *+' conftest.er1 >conftest.err 2699 rm -f conftest.er1 2700 cat conftest.err >&5 2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2702 (exit $ac_status); } >/dev/null; then 2703 if test -s conftest.err; then 2704 ac_cpp_err=$ac_c_preproc_warn_flag 2705 else 2706 ac_cpp_err= 2707 fi 2708else 2709 ac_cpp_err=yes 2710fi 2711if test -z "$ac_cpp_err"; then 2712 : 2713else 2714 echo "$as_me: failed program was:" >&5 2715sed 's/^/| /' conftest.$ac_ext >&5 2716 2717 # Broken: fails on valid input. 2718continue 2719fi 2720rm -f conftest.err conftest.$ac_ext 2721 2722 # OK, works on sane cases. Now check whether non-existent headers 2723 # can be detected and how. 2724 cat >conftest.$ac_ext <<_ACEOF 2725#line $LINENO "configure" 2726/* confdefs.h. */ 2727_ACEOF 2728cat confdefs.h >>conftest.$ac_ext 2729cat >>conftest.$ac_ext <<_ACEOF 2730/* end confdefs.h. */ 2731#include <ac_nonexistent.h> 2732_ACEOF 2733if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2734 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2735 ac_status=$? 2736 grep -v '^ *+' conftest.er1 >conftest.err 2737 rm -f conftest.er1 2738 cat conftest.err >&5 2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2740 (exit $ac_status); } >/dev/null; then 2741 if test -s conftest.err; then 2742 ac_cpp_err=$ac_c_preproc_warn_flag 2743 else 2744 ac_cpp_err= 2745 fi 2746else 2747 ac_cpp_err=yes 2748fi 2749if test -z "$ac_cpp_err"; then 2750 # Broken: success on invalid input. 2751continue 2752else 2753 echo "$as_me: failed program was:" >&5 2754sed 's/^/| /' conftest.$ac_ext >&5 2755 2756 # Passes both tests. 2757ac_preproc_ok=: 2758break 2759fi 2760rm -f conftest.err conftest.$ac_ext 2761 2762done 2763# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2764rm -f conftest.err conftest.$ac_ext 2765if $ac_preproc_ok; then 2766 break 2767fi 2768 2769 done 2770 ac_cv_prog_CPP=$CPP 2771 2772fi 2773 CPP=$ac_cv_prog_CPP 2774else 2775 ac_cv_prog_CPP=$CPP 2776fi 2777echo "$as_me:$LINENO: result: $CPP" >&5 2778echo "${ECHO_T}$CPP" >&6 2779ac_preproc_ok=false 2780for ac_c_preproc_warn_flag in '' yes 2781do 2782 # Use a header file that comes with gcc, so configuring glibc 2783 # with a fresh cross-compiler works. 2784 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2785 # <limits.h> exists even on freestanding compilers. 2786 # On the NeXT, cc -E runs the code through the compiler's parser, 2787 # not just through cpp. "Syntax error" is here to catch this case. 2788 cat >conftest.$ac_ext <<_ACEOF 2789#line $LINENO "configure" 2790/* confdefs.h. */ 2791_ACEOF 2792cat confdefs.h >>conftest.$ac_ext 2793cat >>conftest.$ac_ext <<_ACEOF 2794/* end confdefs.h. */ 2795#ifdef __STDC__ 2796# include <limits.h> 2797#else 2798# include <assert.h> 2799#endif 2800 Syntax error 2801_ACEOF 2802if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2803 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2804 ac_status=$? 2805 grep -v '^ *+' conftest.er1 >conftest.err 2806 rm -f conftest.er1 2807 cat conftest.err >&5 2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2809 (exit $ac_status); } >/dev/null; then 2810 if test -s conftest.err; then 2811 ac_cpp_err=$ac_c_preproc_warn_flag 2812 else 2813 ac_cpp_err= 2814 fi 2815else 2816 ac_cpp_err=yes 2817fi 2818if test -z "$ac_cpp_err"; then 2819 : 2820else 2821 echo "$as_me: failed program was:" >&5 2822sed 's/^/| /' conftest.$ac_ext >&5 2823 2824 # Broken: fails on valid input. 2825continue 2826fi 2827rm -f conftest.err conftest.$ac_ext 2828 2829 # OK, works on sane cases. Now check whether non-existent headers 2830 # can be detected and how. 2831 cat >conftest.$ac_ext <<_ACEOF 2832#line $LINENO "configure" 2833/* confdefs.h. */ 2834_ACEOF 2835cat confdefs.h >>conftest.$ac_ext 2836cat >>conftest.$ac_ext <<_ACEOF 2837/* end confdefs.h. */ 2838#include <ac_nonexistent.h> 2839_ACEOF 2840if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2841 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2842 ac_status=$? 2843 grep -v '^ *+' conftest.er1 >conftest.err 2844 rm -f conftest.er1 2845 cat conftest.err >&5 2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2847 (exit $ac_status); } >/dev/null; then 2848 if test -s conftest.err; then 2849 ac_cpp_err=$ac_c_preproc_warn_flag 2850 else 2851 ac_cpp_err= 2852 fi 2853else 2854 ac_cpp_err=yes 2855fi 2856if test -z "$ac_cpp_err"; then 2857 # Broken: success on invalid input. 2858continue 2859else 2860 echo "$as_me: failed program was:" >&5 2861sed 's/^/| /' conftest.$ac_ext >&5 2862 2863 # Passes both tests. 2864ac_preproc_ok=: 2865break 2866fi 2867rm -f conftest.err conftest.$ac_ext 2868 2869done 2870# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2871rm -f conftest.err conftest.$ac_ext 2872if $ac_preproc_ok; then 2873 : 2874else 2875 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 2876See \`config.log' for more details." >&5 2877echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 2878See \`config.log' for more details." >&2;} 2879 { (exit 1); exit 1; }; } 2880fi 2881 2882ac_ext=c 2883ac_cpp='$CPP $CPPFLAGS' 2884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2886ac_compiler_gnu=$ac_cv_c_compiler_gnu 2887 2888 2889echo "$as_me:$LINENO: checking for egrep" >&5 2890echo $ECHO_N "checking for egrep... $ECHO_C" >&6 2891if test "${ac_cv_prog_egrep+set}" = set; then 2892 echo $ECHO_N "(cached) $ECHO_C" >&6 2893else 2894 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 2895 then ac_cv_prog_egrep='grep -E' 2896 else ac_cv_prog_egrep='egrep' 2897 fi 2898fi 2899echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 2900echo "${ECHO_T}$ac_cv_prog_egrep" >&6 2901 EGREP=$ac_cv_prog_egrep 2902 2903 2904echo "$as_me:$LINENO: checking for ANSI C header files" >&5 2905echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 2906if test "${ac_cv_header_stdc+set}" = set; then 2907 echo $ECHO_N "(cached) $ECHO_C" >&6 2908else 2909 cat >conftest.$ac_ext <<_ACEOF 2910#line $LINENO "configure" 2911/* confdefs.h. */ 2912_ACEOF 2913cat confdefs.h >>conftest.$ac_ext 2914cat >>conftest.$ac_ext <<_ACEOF 2915/* end confdefs.h. */ 2916#include <stdlib.h> 2917#include <stdarg.h> 2918#include <string.h> 2919#include <float.h> 2920 2921int 2922main () 2923{ 2924 2925 ; 2926 return 0; 2927} 2928_ACEOF 2929rm -f conftest.$ac_objext 2930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2931 (eval $ac_compile) 2>&5 2932 ac_status=$? 2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2934 (exit $ac_status); } && 2935 { ac_try='test -s conftest.$ac_objext' 2936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2937 (eval $ac_try) 2>&5 2938 ac_status=$? 2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2940 (exit $ac_status); }; }; then 2941 ac_cv_header_stdc=yes 2942else 2943 echo "$as_me: failed program was:" >&5 2944sed 's/^/| /' conftest.$ac_ext >&5 2945 2946ac_cv_header_stdc=no 2947fi 2948rm -f conftest.$ac_objext conftest.$ac_ext 2949 2950if test $ac_cv_header_stdc = yes; then 2951 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2952 cat >conftest.$ac_ext <<_ACEOF 2953#line $LINENO "configure" 2954/* confdefs.h. */ 2955_ACEOF 2956cat confdefs.h >>conftest.$ac_ext 2957cat >>conftest.$ac_ext <<_ACEOF 2958/* end confdefs.h. */ 2959#include <string.h> 2960 2961_ACEOF 2962if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2963 $EGREP "memchr" >/dev/null 2>&1; then 2964 : 2965else 2966 ac_cv_header_stdc=no 2967fi 2968rm -f conftest* 2969 2970fi 2971 2972if test $ac_cv_header_stdc = yes; then 2973 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2974 cat >conftest.$ac_ext <<_ACEOF 2975#line $LINENO "configure" 2976/* confdefs.h. */ 2977_ACEOF 2978cat confdefs.h >>conftest.$ac_ext 2979cat >>conftest.$ac_ext <<_ACEOF 2980/* end confdefs.h. */ 2981#include <stdlib.h> 2982 2983_ACEOF 2984if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2985 $EGREP "free" >/dev/null 2>&1; then 2986 : 2987else 2988 ac_cv_header_stdc=no 2989fi 2990rm -f conftest* 2991 2992fi 2993 2994if test $ac_cv_header_stdc = yes; then 2995 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2996 if test "$cross_compiling" = yes; then 2997 : 2998else 2999 cat >conftest.$ac_ext <<_ACEOF 3000#line $LINENO "configure" 3001/* confdefs.h. */ 3002_ACEOF 3003cat confdefs.h >>conftest.$ac_ext 3004cat >>conftest.$ac_ext <<_ACEOF 3005/* end confdefs.h. */ 3006#include <ctype.h> 3007#if ((' ' & 0x0FF) == 0x020) 3008# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3009# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3010#else 3011# define ISLOWER(c) \ 3012 (('a' <= (c) && (c) <= 'i') \ 3013 || ('j' <= (c) && (c) <= 'r') \ 3014 || ('s' <= (c) && (c) <= 'z')) 3015# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3016#endif 3017 3018#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3019int 3020main () 3021{ 3022 int i; 3023 for (i = 0; i < 256; i++) 3024 if (XOR (islower (i), ISLOWER (i)) 3025 || toupper (i) != TOUPPER (i)) 3026 exit(2); 3027 exit (0); 3028} 3029_ACEOF 3030rm -f conftest$ac_exeext 3031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3032 (eval $ac_link) 2>&5 3033 ac_status=$? 3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3035 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3037 (eval $ac_try) 2>&5 3038 ac_status=$? 3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3040 (exit $ac_status); }; }; then 3041 : 3042else 3043 echo "$as_me: program exited with status $ac_status" >&5 3044echo "$as_me: failed program was:" >&5 3045sed 's/^/| /' conftest.$ac_ext >&5 3046 3047( exit $ac_status ) 3048ac_cv_header_stdc=no 3049fi 3050rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3051fi 3052fi 3053fi 3054echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3055echo "${ECHO_T}$ac_cv_header_stdc" >&6 3056if test $ac_cv_header_stdc = yes; then 3057 3058cat >>confdefs.h <<\_ACEOF 3059#define STDC_HEADERS 1 3060_ACEOF 3061 3062fi 3063 3064# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3075 inttypes.h stdint.h unistd.h 3076do 3077as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3078echo "$as_me:$LINENO: checking for $ac_header" >&5 3079echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3080if eval "test \"\${$as_ac_Header+set}\" = set"; then 3081 echo $ECHO_N "(cached) $ECHO_C" >&6 3082else 3083 cat >conftest.$ac_ext <<_ACEOF 3084#line $LINENO "configure" 3085/* confdefs.h. */ 3086_ACEOF 3087cat confdefs.h >>conftest.$ac_ext 3088cat >>conftest.$ac_ext <<_ACEOF 3089/* end confdefs.h. */ 3090$ac_includes_default 3091 3092#include <$ac_header> 3093_ACEOF 3094rm -f conftest.$ac_objext 3095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3096 (eval $ac_compile) 2>&5 3097 ac_status=$? 3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3099 (exit $ac_status); } && 3100 { ac_try='test -s conftest.$ac_objext' 3101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3102 (eval $ac_try) 2>&5 3103 ac_status=$? 3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3105 (exit $ac_status); }; }; then 3106 eval "$as_ac_Header=yes" 3107else 3108 echo "$as_me: failed program was:" >&5 3109sed 's/^/| /' conftest.$ac_ext >&5 3110 3111eval "$as_ac_Header=no" 3112fi 3113rm -f conftest.$ac_objext conftest.$ac_ext 3114fi 3115echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3116echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3117if test `eval echo '${'$as_ac_Header'}'` = yes; then 3118 cat >>confdefs.h <<_ACEOF 3119#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3120_ACEOF 3121 3122fi 3123 3124done 3125 3126 3127 3128 3129 3130for ac_header in fcntl.h rpc/rpcent.h netdnet/dnetdb.h 3131do 3132as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3133if eval "test \"\${$as_ac_Header+set}\" = set"; then 3134 echo "$as_me:$LINENO: checking for $ac_header" >&5 3135echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3136if eval "test \"\${$as_ac_Header+set}\" = set"; then 3137 echo $ECHO_N "(cached) $ECHO_C" >&6 3138fi 3139echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3140echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3141else 3142 # Is the header compilable? 3143echo "$as_me:$LINENO: checking $ac_header usability" >&5 3144echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3145cat >conftest.$ac_ext <<_ACEOF 3146#line $LINENO "configure" 3147/* confdefs.h. */ 3148_ACEOF 3149cat confdefs.h >>conftest.$ac_ext 3150cat >>conftest.$ac_ext <<_ACEOF 3151/* end confdefs.h. */ 3152$ac_includes_default 3153#include <$ac_header> 3154_ACEOF 3155rm -f conftest.$ac_objext 3156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3157 (eval $ac_compile) 2>&5 3158 ac_status=$? 3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3160 (exit $ac_status); } && 3161 { ac_try='test -s conftest.$ac_objext' 3162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3163 (eval $ac_try) 2>&5 3164 ac_status=$? 3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3166 (exit $ac_status); }; }; then 3167 ac_header_compiler=yes 3168else 3169 echo "$as_me: failed program was:" >&5 3170sed 's/^/| /' conftest.$ac_ext >&5 3171 3172ac_header_compiler=no 3173fi 3174rm -f conftest.$ac_objext conftest.$ac_ext 3175echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3176echo "${ECHO_T}$ac_header_compiler" >&6 3177 3178# Is the header present? 3179echo "$as_me:$LINENO: checking $ac_header presence" >&5 3180echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 3181cat >conftest.$ac_ext <<_ACEOF 3182#line $LINENO "configure" 3183/* confdefs.h. */ 3184_ACEOF 3185cat confdefs.h >>conftest.$ac_ext 3186cat >>conftest.$ac_ext <<_ACEOF 3187/* end confdefs.h. */ 3188#include <$ac_header> 3189_ACEOF 3190if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3191 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3192 ac_status=$? 3193 grep -v '^ *+' conftest.er1 >conftest.err 3194 rm -f conftest.er1 3195 cat conftest.err >&5 3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3197 (exit $ac_status); } >/dev/null; then 3198 if test -s conftest.err; then 3199 ac_cpp_err=$ac_c_preproc_warn_flag 3200 else 3201 ac_cpp_err= 3202 fi 3203else 3204 ac_cpp_err=yes 3205fi 3206if test -z "$ac_cpp_err"; then 3207 ac_header_preproc=yes 3208else 3209 echo "$as_me: failed program was:" >&5 3210sed 's/^/| /' conftest.$ac_ext >&5 3211 3212 ac_header_preproc=no 3213fi 3214rm -f conftest.err conftest.$ac_ext 3215echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3216echo "${ECHO_T}$ac_header_preproc" >&6 3217 3218# So? What about this header? 3219case $ac_header_compiler:$ac_header_preproc in 3220 yes:no ) 3221 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3222echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3224echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3225 ( 3226 cat <<\_ASBOX 3227## ------------------------------------ ## 3228## Report this to bug-autoconf@gnu.org. ## 3229## ------------------------------------ ## 3230_ASBOX 3231 ) | 3232 sed "s/^/$as_me: WARNING: /" >&2 3233 ;; 3234 no:yes ) 3235 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3236echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3237 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3238echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3240echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3241 ( 3242 cat <<\_ASBOX 3243## ------------------------------------ ## 3244## Report this to bug-autoconf@gnu.org. ## 3245## ------------------------------------ ## 3246_ASBOX 3247 ) | 3248 sed "s/^/$as_me: WARNING: /" >&2 3249 ;; 3250esac 3251echo "$as_me:$LINENO: checking for $ac_header" >&5 3252echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3253if eval "test \"\${$as_ac_Header+set}\" = set"; then 3254 echo $ECHO_N "(cached) $ECHO_C" >&6 3255else 3256 eval "$as_ac_Header=$ac_header_preproc" 3257fi 3258echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3259echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3260 3261fi 3262if test `eval echo '${'$as_ac_Header'}'` = yes; then 3263 cat >>confdefs.h <<_ACEOF 3264#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3265_ACEOF 3266 3267fi 3268 3269done 3270 3271 3272for ac_header in netinet/if_ether.h 3273do 3274as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3275echo "$as_me:$LINENO: checking for $ac_header" >&5 3276echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3277if eval "test \"\${$as_ac_Header+set}\" = set"; then 3278 echo $ECHO_N "(cached) $ECHO_C" >&6 3279else 3280 cat >conftest.$ac_ext <<_ACEOF 3281#line $LINENO "configure" 3282/* confdefs.h. */ 3283_ACEOF 3284cat confdefs.h >>conftest.$ac_ext 3285cat >>conftest.$ac_ext <<_ACEOF 3286/* end confdefs.h. */ 3287#include <sys/types.h> 3288#include <sys/socket.h> 3289 3290#include <$ac_header> 3291_ACEOF 3292rm -f conftest.$ac_objext 3293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3294 (eval $ac_compile) 2>&5 3295 ac_status=$? 3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3297 (exit $ac_status); } && 3298 { ac_try='test -s conftest.$ac_objext' 3299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3300 (eval $ac_try) 2>&5 3301 ac_status=$? 3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3303 (exit $ac_status); }; }; then 3304 eval "$as_ac_Header=yes" 3305else 3306 echo "$as_me: failed program was:" >&5 3307sed 's/^/| /' conftest.$ac_ext >&5 3308 3309eval "$as_ac_Header=no" 3310fi 3311rm -f conftest.$ac_objext conftest.$ac_ext 3312fi 3313echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3314echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3315if test `eval echo '${'$as_ac_Header'}'` = yes; then 3316 cat >>confdefs.h <<_ACEOF 3317#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3318_ACEOF 3319 3320fi 3321 3322done 3323 3324if test "$ac_cv_header_netinet_if_ether_h" != yes; then 3325 # 3326 # The simple test didn't work. 3327 # Do we need to include <net/if.h> first? 3328 # Unset ac_cv_header_netinet_if_ether_h so we don't 3329 # treat the previous failure as a cached value and 3330 # suppress the next test. 3331 # 3332 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5 3333echo "$as_me: Rechecking with some additional includes" >&6;} 3334 unset ac_cv_header_netinet_if_ether_h 3335 3336for ac_header in netinet/if_ether.h 3337do 3338as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3339echo "$as_me:$LINENO: checking for $ac_header" >&5 3340echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3341if eval "test \"\${$as_ac_Header+set}\" = set"; then 3342 echo $ECHO_N "(cached) $ECHO_C" >&6 3343else 3344 cat >conftest.$ac_ext <<_ACEOF 3345#line $LINENO "configure" 3346/* confdefs.h. */ 3347_ACEOF 3348cat confdefs.h >>conftest.$ac_ext 3349cat >>conftest.$ac_ext <<_ACEOF 3350/* end confdefs.h. */ 3351#include <sys/types.h> 3352#include <sys/socket.h> 3353#include <netinet/in.h> 3354struct mbuf; 3355struct rtentry; 3356#include <net/if.h> 3357 3358#include <$ac_header> 3359_ACEOF 3360rm -f conftest.$ac_objext 3361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3362 (eval $ac_compile) 2>&5 3363 ac_status=$? 3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3365 (exit $ac_status); } && 3366 { ac_try='test -s conftest.$ac_objext' 3367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3368 (eval $ac_try) 2>&5 3369 ac_status=$? 3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3371 (exit $ac_status); }; }; then 3372 eval "$as_ac_Header=yes" 3373else 3374 echo "$as_me: failed program was:" >&5 3375sed 's/^/| /' conftest.$ac_ext >&5 3376 3377eval "$as_ac_Header=no" 3378fi 3379rm -f conftest.$ac_objext conftest.$ac_ext 3380fi 3381echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3382echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3383if test `eval echo '${'$as_ac_Header'}'` = yes; then 3384 cat >>confdefs.h <<_ACEOF 3385#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3386_ACEOF 3387 3388fi 3389 3390done 3391 3392fi 3393 3394echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 3395echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 3396if test "${ac_cv_header_time+set}" = set; then 3397 echo $ECHO_N "(cached) $ECHO_C" >&6 3398else 3399 cat >conftest.$ac_ext <<_ACEOF 3400#line $LINENO "configure" 3401/* confdefs.h. */ 3402_ACEOF 3403cat confdefs.h >>conftest.$ac_ext 3404cat >>conftest.$ac_ext <<_ACEOF 3405/* end confdefs.h. */ 3406#include <sys/types.h> 3407#include <sys/time.h> 3408#include <time.h> 3409 3410int 3411main () 3412{ 3413if ((struct tm *) 0) 3414return 0; 3415 ; 3416 return 0; 3417} 3418_ACEOF 3419rm -f conftest.$ac_objext 3420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3421 (eval $ac_compile) 2>&5 3422 ac_status=$? 3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3424 (exit $ac_status); } && 3425 { ac_try='test -s conftest.$ac_objext' 3426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3427 (eval $ac_try) 2>&5 3428 ac_status=$? 3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3430 (exit $ac_status); }; }; then 3431 ac_cv_header_time=yes 3432else 3433 echo "$as_me: failed program was:" >&5 3434sed 's/^/| /' conftest.$ac_ext >&5 3435 3436ac_cv_header_time=no 3437fi 3438rm -f conftest.$ac_objext conftest.$ac_ext 3439fi 3440echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 3441echo "${ECHO_T}$ac_cv_header_time" >&6 3442if test $ac_cv_header_time = yes; then 3443 3444cat >>confdefs.h <<\_ACEOF 3445#define TIME_WITH_SYS_TIME 1 3446_ACEOF 3447 3448fi 3449 3450 3451case "$host_os" in 3452 3453linux*) 3454 echo "$as_me:$LINENO: checking Linux kernel version" >&5 3455echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6 3456 if test "$cross_compiling" = yes; then 3457 if test "${ac_cv_linux_vers+set}" = set; then 3458 echo $ECHO_N "(cached) $ECHO_C" >&6 3459else 3460 ac_cv_linux_vers=unknown 3461fi 3462 3463 else 3464 if test "${ac_cv_linux_vers+set}" = set; then 3465 echo $ECHO_N "(cached) $ECHO_C" >&6 3466else 3467 ac_cv_linux_vers=`uname -r 2>&1 | \ 3468 sed -n -e '$s/.* //' -e '$s/\..*//p'` 3469fi 3470 3471 fi 3472 echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5 3473echo "${ECHO_T}$ac_cv_linux_vers" >&6 3474 if test $ac_cv_linux_vers = unknown ; then 3475 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5 3476echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;} 3477 { (exit 1); exit 1; }; } 3478 fi 3479 if test $ac_cv_linux_vers -lt 2 ; then 3480 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5 3481echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;} 3482 { (exit 1); exit 1; }; } 3483 fi 3484 ;; 3485 3486*) 3487 ;; 3488esac 3489 3490 3491 3492for ac_header in smi.h 3493do 3494as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3495if eval "test \"\${$as_ac_Header+set}\" = set"; then 3496 echo "$as_me:$LINENO: checking for $ac_header" >&5 3497echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3498if eval "test \"\${$as_ac_Header+set}\" = set"; then 3499 echo $ECHO_N "(cached) $ECHO_C" >&6 3500fi 3501echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3502echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3503else 3504 # Is the header compilable? 3505echo "$as_me:$LINENO: checking $ac_header usability" >&5 3506echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3507cat >conftest.$ac_ext <<_ACEOF 3508#line $LINENO "configure" 3509/* confdefs.h. */ 3510_ACEOF 3511cat confdefs.h >>conftest.$ac_ext 3512cat >>conftest.$ac_ext <<_ACEOF 3513/* end confdefs.h. */ 3514$ac_includes_default 3515#include <$ac_header> 3516_ACEOF 3517rm -f conftest.$ac_objext 3518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3519 (eval $ac_compile) 2>&5 3520 ac_status=$? 3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3522 (exit $ac_status); } && 3523 { ac_try='test -s conftest.$ac_objext' 3524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3525 (eval $ac_try) 2>&5 3526 ac_status=$? 3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3528 (exit $ac_status); }; }; then 3529 ac_header_compiler=yes 3530else 3531 echo "$as_me: failed program was:" >&5 3532sed 's/^/| /' conftest.$ac_ext >&5 3533 3534ac_header_compiler=no 3535fi 3536rm -f conftest.$ac_objext conftest.$ac_ext 3537echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3538echo "${ECHO_T}$ac_header_compiler" >&6 3539 3540# Is the header present? 3541echo "$as_me:$LINENO: checking $ac_header presence" >&5 3542echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 3543cat >conftest.$ac_ext <<_ACEOF 3544#line $LINENO "configure" 3545/* confdefs.h. */ 3546_ACEOF 3547cat confdefs.h >>conftest.$ac_ext 3548cat >>conftest.$ac_ext <<_ACEOF 3549/* end confdefs.h. */ 3550#include <$ac_header> 3551_ACEOF 3552if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3553 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3554 ac_status=$? 3555 grep -v '^ *+' conftest.er1 >conftest.err 3556 rm -f conftest.er1 3557 cat conftest.err >&5 3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3559 (exit $ac_status); } >/dev/null; then 3560 if test -s conftest.err; then 3561 ac_cpp_err=$ac_c_preproc_warn_flag 3562 else 3563 ac_cpp_err= 3564 fi 3565else 3566 ac_cpp_err=yes 3567fi 3568if test -z "$ac_cpp_err"; then 3569 ac_header_preproc=yes 3570else 3571 echo "$as_me: failed program was:" >&5 3572sed 's/^/| /' conftest.$ac_ext >&5 3573 3574 ac_header_preproc=no 3575fi 3576rm -f conftest.err conftest.$ac_ext 3577echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3578echo "${ECHO_T}$ac_header_preproc" >&6 3579 3580# So? What about this header? 3581case $ac_header_compiler:$ac_header_preproc in 3582 yes:no ) 3583 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3584echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3586echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3587 ( 3588 cat <<\_ASBOX 3589## ------------------------------------ ## 3590## Report this to bug-autoconf@gnu.org. ## 3591## ------------------------------------ ## 3592_ASBOX 3593 ) | 3594 sed "s/^/$as_me: WARNING: /" >&2 3595 ;; 3596 no:yes ) 3597 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3598echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3599 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3600echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3602echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3603 ( 3604 cat <<\_ASBOX 3605## ------------------------------------ ## 3606## Report this to bug-autoconf@gnu.org. ## 3607## ------------------------------------ ## 3608_ASBOX 3609 ) | 3610 sed "s/^/$as_me: WARNING: /" >&2 3611 ;; 3612esac 3613echo "$as_me:$LINENO: checking for $ac_header" >&5 3614echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3615if eval "test \"\${$as_ac_Header+set}\" = set"; then 3616 echo $ECHO_N "(cached) $ECHO_C" >&6 3617else 3618 eval "$as_ac_Header=$ac_header_preproc" 3619fi 3620echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3621echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3622 3623fi 3624if test `eval echo '${'$as_ac_Header'}'` = yes; then 3625 cat >>confdefs.h <<_ACEOF 3626#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3627_ACEOF 3628 3629fi 3630 3631done 3632 3633 3634echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5 3635echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6 3636if test "${ac_cv_lib_smi_smiInit+set}" = set; then 3637 echo $ECHO_N "(cached) $ECHO_C" >&6 3638else 3639 ac_check_lib_save_LIBS=$LIBS 3640LIBS="-lsmi $LIBS" 3641cat >conftest.$ac_ext <<_ACEOF 3642#line $LINENO "configure" 3643/* confdefs.h. */ 3644_ACEOF 3645cat confdefs.h >>conftest.$ac_ext 3646cat >>conftest.$ac_ext <<_ACEOF 3647/* end confdefs.h. */ 3648 3649/* Override any gcc2 internal prototype to avoid an error. */ 3650#ifdef __cplusplus 3651extern "C" 3652#endif 3653/* We use char because int might match the return type of a gcc2 3654 builtin and then its argument prototype would still apply. */ 3655char smiInit (); 3656int 3657main () 3658{ 3659smiInit (); 3660 ; 3661 return 0; 3662} 3663_ACEOF 3664rm -f conftest.$ac_objext conftest$ac_exeext 3665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3666 (eval $ac_link) 2>&5 3667 ac_status=$? 3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3669 (exit $ac_status); } && 3670 { ac_try='test -s conftest$ac_exeext' 3671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3672 (eval $ac_try) 2>&5 3673 ac_status=$? 3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3675 (exit $ac_status); }; }; then 3676 ac_cv_lib_smi_smiInit=yes 3677else 3678 echo "$as_me: failed program was:" >&5 3679sed 's/^/| /' conftest.$ac_ext >&5 3680 3681ac_cv_lib_smi_smiInit=no 3682fi 3683rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3684LIBS=$ac_check_lib_save_LIBS 3685fi 3686echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5 3687echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6 3688if test $ac_cv_lib_smi_smiInit = yes; then 3689 cat >>confdefs.h <<_ACEOF 3690#define HAVE_LIBSMI 1 3691_ACEOF 3692 3693 LIBS="-lsmi $LIBS" 3694 3695fi 3696 3697if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes 3698then 3699echo "$as_me:$LINENO: checking whether to enable libsmi" >&5 3700echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6 3701 if test "$cross_compiling" = yes; then 3702 echo "$as_me:$LINENO: result: not when cross-compiling" >&5 3703echo "${ECHO_T}not when cross-compiling" >&6 3704 libsmi=no 3705 3706else 3707 cat >conftest.$ac_ext <<_ACEOF 3708#line $LINENO "configure" 3709/* confdefs.h. */ 3710_ACEOF 3711cat confdefs.h >>conftest.$ac_ext 3712cat >>conftest.$ac_ext <<_ACEOF 3713/* end confdefs.h. */ 3714 /* libsmi available check */ 3715#include <smi.h> 3716main() 3717{ 3718 int current, revision, age, n; 3719 const int required = 2; 3720 if (smiInit("")) 3721 exit(1); 3722 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version)) 3723 exit(2); 3724 n = sscanf(smi_library_version, "%d:%d:%d", ¤t, &revision, &age); 3725 if (n != 3) 3726 exit(3); 3727 if (required < current - age || required > current) 3728 exit(4); 3729 exit(0); 3730} 3731 3732_ACEOF 3733rm -f conftest$ac_exeext 3734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3735 (eval $ac_link) 2>&5 3736 ac_status=$? 3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3740 (eval $ac_try) 2>&5 3741 ac_status=$? 3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3743 (exit $ac_status); }; }; then 3744 echo "$as_me:$LINENO: result: yes" >&5 3745echo "${ECHO_T}yes" >&6 3746 cat >>confdefs.h <<\_ACEOF 3747#define LIBSMI 1 3748_ACEOF 3749 3750 libsmi=yes 3751else 3752 echo "$as_me: program exited with status $ac_status" >&5 3753echo "$as_me: failed program was:" >&5 3754sed 's/^/| /' conftest.$ac_ext >&5 3755 3756( exit $ac_status ) 3757 case $? in 3758 1) echo "$as_me:$LINENO: result: no - smiInit failed" >&5 3759echo "${ECHO_T}no - smiInit failed" >&6 ;; 3760 2) echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5 3761echo "${ECHO_T}no - header/library version mismatch" >&6 ;; 3762 3) echo "$as_me:$LINENO: result: no - can't determine library version" >&5 3763echo "${ECHO_T}no - can't determine library version" >&6 ;; 3764 4) echo "$as_me:$LINENO: result: no - too old" >&5 3765echo "${ECHO_T}no - too old" >&6 ;; 3766 *) echo "$as_me:$LINENO: result: no" >&5 3767echo "${ECHO_T}no" >&6 ;; 3768 esac 3769 libsmi=no 3770fi 3771rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3772fi 3773fi 3774 3775echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5 3776echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6 3777# Check whether --enable-smb or --disable-smb was given. 3778if test "${enable_smb+set}" = set; then 3779 enableval="$enable_smb" 3780 3781else 3782 enableval=yes 3783fi; 3784case "$enableval" in 3785yes) echo "$as_me:$LINENO: result: yes" >&5 3786echo "${ECHO_T}yes" >&6 3787 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5 3788echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;} 3789 cat >>confdefs.h <<\_ACEOF 3790#define TCPDUMP_DO_SMB 1 3791_ACEOF 3792 3793 LOCALSRC="print-smb.c smbutil.c $LOCALSRC" 3794 ;; 3795*) echo "$as_me:$LINENO: result: no" >&5 3796echo "${ECHO_T}no" >&6 3797 ;; 3798esac 3799 3800 3801# Check whether --with-user or --without-user was given. 3802if test "${with_user+set}" = set; then 3803 withval="$with_user" 3804 3805fi; 3806echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5 3807echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6 3808if test ! -z "$with_user" ; then 3809 cat >>confdefs.h <<_ACEOF 3810#define WITH_USER "$withval" 3811_ACEOF 3812 3813 echo "$as_me:$LINENO: result: to \"$withval\"" >&5 3814echo "${ECHO_T}to \"$withval\"" >&6 3815else 3816 echo "$as_me:$LINENO: result: no" >&5 3817echo "${ECHO_T}no" >&6 3818fi 3819 3820 3821# Check whether --with-chroot or --without-chroot was given. 3822if test "${with_chroot+set}" = set; then 3823 withval="$with_chroot" 3824 3825fi; 3826echo "$as_me:$LINENO: checking whether to chroot" >&5 3827echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6 3828if test ! -z "$with_chroot" ; then 3829 cat >>confdefs.h <<_ACEOF 3830#define WITH_CHROOT "$withval" 3831_ACEOF 3832 3833 echo "$as_me:$LINENO: result: to \"$withval\"" >&5 3834echo "${ECHO_T}to \"$withval\"" >&6 3835else 3836 echo "$as_me:$LINENO: result: no" >&5 3837echo "${ECHO_T}no" >&6 3838fi 3839 3840echo "$as_me:$LINENO: checking whether to enable ipv6" >&5 3841echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6 3842# Check whether --enable-ipv6 or --disable-ipv6 was given. 3843if test "${enable_ipv6+set}" = set; then 3844 enableval="$enable_ipv6" 3845 case "$enableval" in 3846yes) echo "$as_me:$LINENO: result: yes" >&5 3847echo "${ECHO_T}yes" >&6 3848 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" 3849 cat >>confdefs.h <<\_ACEOF 3850#define INET6 1 3851_ACEOF 3852 3853 ipv6=yes 3854 ;; 3855*) 3856 echo "$as_me:$LINENO: result: no" >&5 3857echo "${ECHO_T}no" >&6 3858 ipv6=no 3859 ;; 3860 esac 3861else 3862 if test "$cross_compiling" = yes; then 3863 echo "$as_me:$LINENO: result: no" >&5 3864echo "${ECHO_T}no" >&6 3865 ipv6=no 3866 3867else 3868 cat >conftest.$ac_ext <<_ACEOF 3869#line $LINENO "configure" 3870/* confdefs.h. */ 3871_ACEOF 3872cat confdefs.h >>conftest.$ac_ext 3873cat >>conftest.$ac_ext <<_ACEOF 3874/* end confdefs.h. */ 3875 /* AF_INET6 available check */ 3876#include <sys/types.h> 3877#include <sys/socket.h> 3878main() 3879{ 3880 if (socket(AF_INET6, SOCK_STREAM, 0) < 0) 3881 exit(1); 3882 else 3883 exit(0); 3884} 3885 3886_ACEOF 3887rm -f conftest$ac_exeext 3888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3889 (eval $ac_link) 2>&5 3890 ac_status=$? 3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3892 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3894 (eval $ac_try) 2>&5 3895 ac_status=$? 3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3897 (exit $ac_status); }; }; then 3898 echo "$as_me:$LINENO: result: yes" >&5 3899echo "${ECHO_T}yes" >&6 3900 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" 3901 cat >>confdefs.h <<\_ACEOF 3902#define INET6 1 3903_ACEOF 3904 3905 ipv6=yes 3906else 3907 echo "$as_me: program exited with status $ac_status" >&5 3908echo "$as_me: failed program was:" >&5 3909sed 's/^/| /' conftest.$ac_ext >&5 3910 3911( exit $ac_status ) 3912 echo "$as_me:$LINENO: result: no" >&5 3913echo "${ECHO_T}no" >&6 3914 ipv6=no 3915fi 3916rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3917fi 3918fi; 3919 3920ipv6type=unknown 3921ipv6lib=none 3922ipv6trylibc=no 3923 3924if test "$ipv6" = "yes"; then 3925 echo "$as_me:$LINENO: checking ipv6 stack type" >&5 3926echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6 3927 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do 3928 case $i in 3929 inria) 3930 cat >conftest.$ac_ext <<_ACEOF 3931#line $LINENO "configure" 3932/* confdefs.h. */ 3933_ACEOF 3934cat confdefs.h >>conftest.$ac_ext 3935cat >>conftest.$ac_ext <<_ACEOF 3936/* end confdefs.h. */ 3937#include <netinet/in.h> 3938#ifdef IPV6_INRIA_VERSION 3939yes 3940#endif 3941_ACEOF 3942if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3943 $EGREP "yes" >/dev/null 2>&1; then 3944 ipv6type=$i; 3945 CFLAGS="-DINET6 $CFLAGS" 3946fi 3947rm -f conftest* 3948 3949 ;; 3950 kame) 3951 cat >conftest.$ac_ext <<_ACEOF 3952#line $LINENO "configure" 3953/* confdefs.h. */ 3954_ACEOF 3955cat confdefs.h >>conftest.$ac_ext 3956cat >>conftest.$ac_ext <<_ACEOF 3957/* end confdefs.h. */ 3958#include <netinet/in.h> 3959#ifdef __KAME__ 3960yes 3961#endif 3962_ACEOF 3963if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3964 $EGREP "yes" >/dev/null 2>&1; then 3965 ipv6type=$i; 3966 ipv6lib=inet6; 3967 ipv6libdir=/usr/local/v6/lib; 3968 ipv6trylibc=yes; 3969 CFLAGS="-DINET6 $CFLAGS" 3970fi 3971rm -f conftest* 3972 3973 ;; 3974 linux-glibc) 3975 cat >conftest.$ac_ext <<_ACEOF 3976#line $LINENO "configure" 3977/* confdefs.h. */ 3978_ACEOF 3979cat confdefs.h >>conftest.$ac_ext 3980cat >>conftest.$ac_ext <<_ACEOF 3981/* end confdefs.h. */ 3982#include <features.h> 3983#if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1 3984yes 3985#endif 3986_ACEOF 3987if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3988 $EGREP "yes" >/dev/null 2>&1; then 3989 ipv6type=$i; 3990 CFLAGS="-DINET6 $CFLAGS" 3991fi 3992rm -f conftest* 3993 3994 ;; 3995 linux-libinet6) 3996 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then 3997 ipv6type=$i 3998 ipv6lib=inet6 3999 ipv6libdir=/usr/inet6/lib 4000 ipv6trylibc=yes; 4001 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS" 4002 fi 4003 ;; 4004 toshiba) 4005 cat >conftest.$ac_ext <<_ACEOF 4006#line $LINENO "configure" 4007/* confdefs.h. */ 4008_ACEOF 4009cat confdefs.h >>conftest.$ac_ext 4010cat >>conftest.$ac_ext <<_ACEOF 4011/* end confdefs.h. */ 4012#include <sys/param.h> 4013#ifdef _TOSHIBA_INET6 4014yes 4015#endif 4016_ACEOF 4017if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4018 $EGREP "yes" >/dev/null 2>&1; then 4019 ipv6type=$i; 4020 ipv6lib=inet6; 4021 ipv6libdir=/usr/local/v6/lib; 4022 CFLAGS="-DINET6 $CFLAGS" 4023fi 4024rm -f conftest* 4025 4026 ;; 4027 v6d) 4028 cat >conftest.$ac_ext <<_ACEOF 4029#line $LINENO "configure" 4030/* confdefs.h. */ 4031_ACEOF 4032cat confdefs.h >>conftest.$ac_ext 4033cat >>conftest.$ac_ext <<_ACEOF 4034/* end confdefs.h. */ 4035#include </usr/local/v6/include/sys/v6config.h> 4036#ifdef __V6D__ 4037yes 4038#endif 4039_ACEOF 4040if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4041 $EGREP "yes" >/dev/null 2>&1; then 4042 ipv6type=$i; 4043 ipv6lib=v6; 4044 ipv6libdir=/usr/local/v6/lib; 4045 CFLAGS="-I/usr/local/v6/include $CFLAGS" 4046fi 4047rm -f conftest* 4048 4049 ;; 4050 zeta) 4051 cat >conftest.$ac_ext <<_ACEOF 4052#line $LINENO "configure" 4053/* confdefs.h. */ 4054_ACEOF 4055cat confdefs.h >>conftest.$ac_ext 4056cat >>conftest.$ac_ext <<_ACEOF 4057/* end confdefs.h. */ 4058#include <sys/param.h> 4059#ifdef _ZETA_MINAMI_INET6 4060yes 4061#endif 4062_ACEOF 4063if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4064 $EGREP "yes" >/dev/null 2>&1; then 4065 ipv6type=$i; 4066 ipv6lib=inet6; 4067 ipv6libdir=/usr/local/v6/lib; 4068 CFLAGS="-DINET6 $CFLAGS" 4069fi 4070rm -f conftest* 4071 4072 ;; 4073 esac 4074 if test "$ipv6type" != "unknown"; then 4075 break 4076 fi 4077 done 4078 echo "$as_me:$LINENO: result: $ipv6type" >&5 4079echo "${ECHO_T}$ipv6type" >&6 4080fi 4081 4082if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then 4083 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then 4084 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" 4085 echo "You have $ipv6lib library, using it" 4086 else 4087 if test "$ipv6trylibc" = "yes"; then 4088 echo "You do not have $ipv6lib library, using libc" 4089 else 4090 echo 'Fatal: no $ipv6lib library found. cannot continue.' 4091 echo "You need to fetch lib$ipv6lib.a from appropriate" 4092 echo 'ipv6 kit and compile beforehand.' 4093 exit 1 4094 fi 4095 fi 4096fi 4097 4098 4099if test "$ipv6" = "yes"; then 4100 # 4101 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()" 4102 # function in libc; there are "ngetaddrinfo()" and 4103 # "ogetaddrinfo()" functions, and <netdb.h> #defines 4104 # "getaddrinfo" to be either "ngetaddrinfo" or 4105 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN 4106 # or _XOPEN_SOURCE_EXTENDED are defined or not. 4107 # 4108 # So this test doesn't work on Tru64 5.1, and possibly 4109 # on other 5.x releases. This causes the configure 4110 # script to become confused, and results in libpcap 4111 # being unbuildable. 4112 # 4113 echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5 4114echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6 4115if test "${ac_cv_search_getaddrinfo+set}" = set; then 4116 echo $ECHO_N "(cached) $ECHO_C" >&6 4117else 4118 ac_func_search_save_LIBS=$LIBS 4119ac_cv_search_getaddrinfo=no 4120cat >conftest.$ac_ext <<_ACEOF 4121#line $LINENO "configure" 4122/* confdefs.h. */ 4123_ACEOF 4124cat confdefs.h >>conftest.$ac_ext 4125cat >>conftest.$ac_ext <<_ACEOF 4126/* end confdefs.h. */ 4127 4128/* Override any gcc2 internal prototype to avoid an error. */ 4129#ifdef __cplusplus 4130extern "C" 4131#endif 4132/* We use char because int might match the return type of a gcc2 4133 builtin and then its argument prototype would still apply. */ 4134char getaddrinfo (); 4135int 4136main () 4137{ 4138getaddrinfo (); 4139 ; 4140 return 0; 4141} 4142_ACEOF 4143rm -f conftest.$ac_objext conftest$ac_exeext 4144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4145 (eval $ac_link) 2>&5 4146 ac_status=$? 4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4148 (exit $ac_status); } && 4149 { ac_try='test -s conftest$ac_exeext' 4150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4151 (eval $ac_try) 2>&5 4152 ac_status=$? 4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4154 (exit $ac_status); }; }; then 4155 ac_cv_search_getaddrinfo="none required" 4156else 4157 echo "$as_me: failed program was:" >&5 4158sed 's/^/| /' conftest.$ac_ext >&5 4159 4160fi 4161rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4162if test "$ac_cv_search_getaddrinfo" = no; then 4163 for ac_lib in socket; do 4164 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4165 cat >conftest.$ac_ext <<_ACEOF 4166#line $LINENO "configure" 4167/* confdefs.h. */ 4168_ACEOF 4169cat confdefs.h >>conftest.$ac_ext 4170cat >>conftest.$ac_ext <<_ACEOF 4171/* end confdefs.h. */ 4172 4173/* Override any gcc2 internal prototype to avoid an error. */ 4174#ifdef __cplusplus 4175extern "C" 4176#endif 4177/* We use char because int might match the return type of a gcc2 4178 builtin and then its argument prototype would still apply. */ 4179char getaddrinfo (); 4180int 4181main () 4182{ 4183getaddrinfo (); 4184 ; 4185 return 0; 4186} 4187_ACEOF 4188rm -f conftest.$ac_objext conftest$ac_exeext 4189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4190 (eval $ac_link) 2>&5 4191 ac_status=$? 4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4193 (exit $ac_status); } && 4194 { ac_try='test -s conftest$ac_exeext' 4195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4196 (eval $ac_try) 2>&5 4197 ac_status=$? 4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4199 (exit $ac_status); }; }; then 4200 ac_cv_search_getaddrinfo="-l$ac_lib" 4201break 4202else 4203 echo "$as_me: failed program was:" >&5 4204sed 's/^/| /' conftest.$ac_ext >&5 4205 4206fi 4207rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4208 done 4209fi 4210LIBS=$ac_func_search_save_LIBS 4211fi 4212echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5 4213echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6 4214if test "$ac_cv_search_getaddrinfo" != no; then 4215 test "$ac_cv_search_getaddrinfo" = "none required" || LIBS="$ac_cv_search_getaddrinfo $LIBS" 4216 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 4217echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6 4218 if test "${td_cv_buggygetaddrinfo+set}" = set; then 4219 echo $ECHO_N "(cached) $ECHO_C" >&6 4220else 4221 if test "$cross_compiling" = yes; then 4222 td_cv_buggygetaddrinfo=yes 4223else 4224 cat >conftest.$ac_ext <<_ACEOF 4225#line $LINENO "configure" 4226/* confdefs.h. */ 4227_ACEOF 4228cat confdefs.h >>conftest.$ac_ext 4229cat >>conftest.$ac_ext <<_ACEOF 4230/* end confdefs.h. */ 4231 4232#include <sys/types.h> 4233#include <netdb.h> 4234#include <string.h> 4235#include <sys/socket.h> 4236#include <netinet/in.h> 4237 4238main() 4239{ 4240 int passive, gaierr, inet4 = 0, inet6 = 0; 4241 struct addrinfo hints, *ai, *aitop; 4242 char straddr[INET6_ADDRSTRLEN], strport[16]; 4243 4244 for (passive = 0; passive <= 1; passive++) { 4245 memset(&hints, 0, sizeof(hints)); 4246 hints.ai_family = AF_UNSPEC; 4247 hints.ai_flags = passive ? AI_PASSIVE : 0; 4248 hints.ai_socktype = SOCK_STREAM; 4249 hints.ai_protocol = IPPROTO_TCP; 4250 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { 4251 (void)gai_strerror(gaierr); 4252 goto bad; 4253 } 4254 for (ai = aitop; ai; ai = ai->ai_next) { 4255 if (ai->ai_addr == NULL || 4256 ai->ai_addrlen == 0 || 4257 getnameinfo(ai->ai_addr, ai->ai_addrlen, 4258 straddr, sizeof(straddr), strport, sizeof(strport), 4259 NI_NUMERICHOST|NI_NUMERICSERV) != 0) { 4260 goto bad; 4261 } 4262 switch (ai->ai_family) { 4263 case AF_INET: 4264 if (strcmp(strport, "54321") != 0) { 4265 goto bad; 4266 } 4267 if (passive) { 4268 if (strcmp(straddr, "0.0.0.0") != 0) { 4269 goto bad; 4270 } 4271 } else { 4272 if (strcmp(straddr, "127.0.0.1") != 0) { 4273 goto bad; 4274 } 4275 } 4276 inet4++; 4277 break; 4278 case AF_INET6: 4279 if (strcmp(strport, "54321") != 0) { 4280 goto bad; 4281 } 4282 if (passive) { 4283 if (strcmp(straddr, "::") != 0) { 4284 goto bad; 4285 } 4286 } else { 4287 if (strcmp(straddr, "::1") != 0) { 4288 goto bad; 4289 } 4290 } 4291 inet6++; 4292 break; 4293 case AF_UNSPEC: 4294 goto bad; 4295 break; 4296#ifdef AF_UNIX 4297 case AF_UNIX: 4298#else 4299#ifdef AF_LOCAL 4300 case AF_LOCAL: 4301#endif 4302#endif 4303 default: 4304 /* another family support? */ 4305 break; 4306 } 4307 } 4308 } 4309 4310 /* supported family should be 2, unsupported family should be 0 */ 4311 if (!(inet4 == 0 || inet4 == 2)) 4312 goto bad; 4313 if (!(inet6 == 0 || inet6 == 2)) 4314 goto bad; 4315 4316 if (aitop) 4317 freeaddrinfo(aitop); 4318 exit(0); 4319 4320 bad: 4321 if (aitop) 4322 freeaddrinfo(aitop); 4323 exit(1); 4324} 4325 4326_ACEOF 4327rm -f conftest$ac_exeext 4328if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4329 (eval $ac_link) 2>&5 4330 ac_status=$? 4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4332 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4334 (eval $ac_try) 2>&5 4335 ac_status=$? 4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4337 (exit $ac_status); }; }; then 4338 td_cv_buggygetaddrinfo=no 4339else 4340 echo "$as_me: program exited with status $ac_status" >&5 4341echo "$as_me: failed program was:" >&5 4342sed 's/^/| /' conftest.$ac_ext >&5 4343 4344( exit $ac_status ) 4345td_cv_buggygetaddrinfo=yes 4346fi 4347rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4348fi 4349fi 4350 4351 if test "$td_cv_buggygetaddrinfo" = no; then 4352 echo "$as_me:$LINENO: result: good" >&5 4353echo "${ECHO_T}good" >&6 4354 else 4355 echo "$as_me:$LINENO: result: buggy" >&5 4356echo "${ECHO_T}buggy" >&6 4357 fi 4358 4359 if test "$td_cv_buggygetaddrinfo" = "yes"; then 4360 # 4361 # XXX - it doesn't appear that "ipv6type" can ever be 4362 # set to "linux". Should this be testing for 4363 # "linux-glibc", or for that *or* "linux-libinet6"? 4364 # If the latter, note that "linux-libinet6" is also 4365 # the type given to some non-Linux OSes. 4366 # 4367 if test "$ipv6type" != "linux"; then 4368 echo 'Fatal: You must get working getaddrinfo() function.' 4369 echo ' or you can specify "--disable-ipv6"'. 4370 exit 1 4371 else 4372 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.' 4373 echo ' Better upgrade your system library to newest version' 4374 echo ' of GNU C library (aka glibc).' 4375 fi 4376 fi 4377 4378fi 4379 4380 4381 4382for ac_func in getaddrinfo getnameinfo 4383do 4384as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4385echo "$as_me:$LINENO: checking for $ac_func" >&5 4386echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4387if eval "test \"\${$as_ac_var+set}\" = set"; then 4388 echo $ECHO_N "(cached) $ECHO_C" >&6 4389else 4390 cat >conftest.$ac_ext <<_ACEOF 4391#line $LINENO "configure" 4392/* confdefs.h. */ 4393_ACEOF 4394cat confdefs.h >>conftest.$ac_ext 4395cat >>conftest.$ac_ext <<_ACEOF 4396/* end confdefs.h. */ 4397/* System header to define __stub macros and hopefully few prototypes, 4398 which can conflict with char $ac_func (); below. 4399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4400 <limits.h> exists even on freestanding compilers. */ 4401#ifdef __STDC__ 4402# include <limits.h> 4403#else 4404# include <assert.h> 4405#endif 4406/* Override any gcc2 internal prototype to avoid an error. */ 4407#ifdef __cplusplus 4408extern "C" 4409{ 4410#endif 4411/* We use char because int might match the return type of a gcc2 4412 builtin and then its argument prototype would still apply. */ 4413char $ac_func (); 4414/* The GNU C library defines this for functions which it implements 4415 to always fail with ENOSYS. Some functions are actually named 4416 something starting with __ and the normal name is an alias. */ 4417#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4418choke me 4419#else 4420char (*f) () = $ac_func; 4421#endif 4422#ifdef __cplusplus 4423} 4424#endif 4425 4426int 4427main () 4428{ 4429return f != $ac_func; 4430 ; 4431 return 0; 4432} 4433_ACEOF 4434rm -f conftest.$ac_objext conftest$ac_exeext 4435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4436 (eval $ac_link) 2>&5 4437 ac_status=$? 4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4439 (exit $ac_status); } && 4440 { ac_try='test -s conftest$ac_exeext' 4441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4442 (eval $ac_try) 2>&5 4443 ac_status=$? 4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4445 (exit $ac_status); }; }; then 4446 eval "$as_ac_var=yes" 4447else 4448 echo "$as_me: failed program was:" >&5 4449sed 's/^/| /' conftest.$ac_ext >&5 4450 4451eval "$as_ac_var=no" 4452fi 4453rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4454fi 4455echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 4456echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 4457if test `eval echo '${'$as_ac_var'}'` = yes; then 4458 cat >>confdefs.h <<_ACEOF 4459#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 4460_ACEOF 4461 4462else 4463 LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 4464fi 4465done 4466 4467 4468fi 4469 4470echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5 4471echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6 4472if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then 4473 echo $ECHO_N "(cached) $ECHO_C" >&6 4474else 4475 cat >conftest.$ac_ext <<_ACEOF 4476#line $LINENO "configure" 4477/* confdefs.h. */ 4478_ACEOF 4479cat confdefs.h >>conftest.$ac_ext 4480cat >>conftest.$ac_ext <<_ACEOF 4481/* end confdefs.h. */ 4482#include <netdnet/dnetdb.h> 4483 4484_ACEOF 4485if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4486 $EGREP "dnet_htoa" >/dev/null 2>&1; then 4487 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes 4488else 4489 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no 4490fi 4491rm -f conftest* 4492 4493fi 4494echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5 4495echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6 4496if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then 4497 cat >>confdefs.h <<\_ACEOF 4498#define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1 4499_ACEOF 4500 4501fi 4502 4503echo "$as_me:$LINENO: checking for char" >&5 4504echo $ECHO_N "checking for char... $ECHO_C" >&6 4505if test "${ac_cv_type_char+set}" = set; then 4506 echo $ECHO_N "(cached) $ECHO_C" >&6 4507else 4508 cat >conftest.$ac_ext <<_ACEOF 4509#line $LINENO "configure" 4510/* confdefs.h. */ 4511_ACEOF 4512cat confdefs.h >>conftest.$ac_ext 4513cat >>conftest.$ac_ext <<_ACEOF 4514/* end confdefs.h. */ 4515$ac_includes_default 4516int 4517main () 4518{ 4519if ((char *) 0) 4520 return 0; 4521if (sizeof (char)) 4522 return 0; 4523 ; 4524 return 0; 4525} 4526_ACEOF 4527rm -f conftest.$ac_objext 4528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4529 (eval $ac_compile) 2>&5 4530 ac_status=$? 4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4532 (exit $ac_status); } && 4533 { ac_try='test -s conftest.$ac_objext' 4534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4535 (eval $ac_try) 2>&5 4536 ac_status=$? 4537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4538 (exit $ac_status); }; }; then 4539 ac_cv_type_char=yes 4540else 4541 echo "$as_me: failed program was:" >&5 4542sed 's/^/| /' conftest.$ac_ext >&5 4543 4544ac_cv_type_char=no 4545fi 4546rm -f conftest.$ac_objext conftest.$ac_ext 4547fi 4548echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 4549echo "${ECHO_T}$ac_cv_type_char" >&6 4550 4551echo "$as_me:$LINENO: checking size of char" >&5 4552echo $ECHO_N "checking size of char... $ECHO_C" >&6 4553if test "${ac_cv_sizeof_char+set}" = set; then 4554 echo $ECHO_N "(cached) $ECHO_C" >&6 4555else 4556 if test "$ac_cv_type_char" = yes; then 4557 # The cast to unsigned long works around a bug in the HP C Compiler 4558 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4559 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4560 # This bug is HP SR number 8606223364. 4561 if test "$cross_compiling" = yes; then 4562 # Depending upon the size, compute the lo and hi bounds. 4563cat >conftest.$ac_ext <<_ACEOF 4564#line $LINENO "configure" 4565/* confdefs.h. */ 4566_ACEOF 4567cat confdefs.h >>conftest.$ac_ext 4568cat >>conftest.$ac_ext <<_ACEOF 4569/* end confdefs.h. */ 4570$ac_includes_default 4571int 4572main () 4573{ 4574static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; 4575test_array [0] = 0 4576 4577 ; 4578 return 0; 4579} 4580_ACEOF 4581rm -f conftest.$ac_objext 4582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4583 (eval $ac_compile) 2>&5 4584 ac_status=$? 4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4586 (exit $ac_status); } && 4587 { ac_try='test -s conftest.$ac_objext' 4588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4589 (eval $ac_try) 2>&5 4590 ac_status=$? 4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4592 (exit $ac_status); }; }; then 4593 ac_lo=0 ac_mid=0 4594 while :; do 4595 cat >conftest.$ac_ext <<_ACEOF 4596#line $LINENO "configure" 4597/* confdefs.h. */ 4598_ACEOF 4599cat confdefs.h >>conftest.$ac_ext 4600cat >>conftest.$ac_ext <<_ACEOF 4601/* end confdefs.h. */ 4602$ac_includes_default 4603int 4604main () 4605{ 4606static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; 4607test_array [0] = 0 4608 4609 ; 4610 return 0; 4611} 4612_ACEOF 4613rm -f conftest.$ac_objext 4614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4615 (eval $ac_compile) 2>&5 4616 ac_status=$? 4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4618 (exit $ac_status); } && 4619 { ac_try='test -s conftest.$ac_objext' 4620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4621 (eval $ac_try) 2>&5 4622 ac_status=$? 4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4624 (exit $ac_status); }; }; then 4625 ac_hi=$ac_mid; break 4626else 4627 echo "$as_me: failed program was:" >&5 4628sed 's/^/| /' conftest.$ac_ext >&5 4629 4630ac_lo=`expr $ac_mid + 1` 4631 if test $ac_lo -le $ac_mid; then 4632 ac_lo= ac_hi= 4633 break 4634 fi 4635 ac_mid=`expr 2 '*' $ac_mid + 1` 4636fi 4637rm -f conftest.$ac_objext conftest.$ac_ext 4638 done 4639else 4640 echo "$as_me: failed program was:" >&5 4641sed 's/^/| /' conftest.$ac_ext >&5 4642 4643cat >conftest.$ac_ext <<_ACEOF 4644#line $LINENO "configure" 4645/* confdefs.h. */ 4646_ACEOF 4647cat confdefs.h >>conftest.$ac_ext 4648cat >>conftest.$ac_ext <<_ACEOF 4649/* end confdefs.h. */ 4650$ac_includes_default 4651int 4652main () 4653{ 4654static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; 4655test_array [0] = 0 4656 4657 ; 4658 return 0; 4659} 4660_ACEOF 4661rm -f conftest.$ac_objext 4662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4663 (eval $ac_compile) 2>&5 4664 ac_status=$? 4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4666 (exit $ac_status); } && 4667 { ac_try='test -s conftest.$ac_objext' 4668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4669 (eval $ac_try) 2>&5 4670 ac_status=$? 4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4672 (exit $ac_status); }; }; then 4673 ac_hi=-1 ac_mid=-1 4674 while :; do 4675 cat >conftest.$ac_ext <<_ACEOF 4676#line $LINENO "configure" 4677/* confdefs.h. */ 4678_ACEOF 4679cat confdefs.h >>conftest.$ac_ext 4680cat >>conftest.$ac_ext <<_ACEOF 4681/* end confdefs.h. */ 4682$ac_includes_default 4683int 4684main () 4685{ 4686static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; 4687test_array [0] = 0 4688 4689 ; 4690 return 0; 4691} 4692_ACEOF 4693rm -f conftest.$ac_objext 4694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4695 (eval $ac_compile) 2>&5 4696 ac_status=$? 4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4698 (exit $ac_status); } && 4699 { ac_try='test -s conftest.$ac_objext' 4700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4701 (eval $ac_try) 2>&5 4702 ac_status=$? 4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4704 (exit $ac_status); }; }; then 4705 ac_lo=$ac_mid; break 4706else 4707 echo "$as_me: failed program was:" >&5 4708sed 's/^/| /' conftest.$ac_ext >&5 4709 4710ac_hi=`expr '(' $ac_mid ')' - 1` 4711 if test $ac_mid -le $ac_hi; then 4712 ac_lo= ac_hi= 4713 break 4714 fi 4715 ac_mid=`expr 2 '*' $ac_mid` 4716fi 4717rm -f conftest.$ac_objext conftest.$ac_ext 4718 done 4719else 4720 echo "$as_me: failed program was:" >&5 4721sed 's/^/| /' conftest.$ac_ext >&5 4722 4723ac_lo= ac_hi= 4724fi 4725rm -f conftest.$ac_objext conftest.$ac_ext 4726fi 4727rm -f conftest.$ac_objext conftest.$ac_ext 4728# Binary search between lo and hi bounds. 4729while test "x$ac_lo" != "x$ac_hi"; do 4730 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 4731 cat >conftest.$ac_ext <<_ACEOF 4732#line $LINENO "configure" 4733/* confdefs.h. */ 4734_ACEOF 4735cat confdefs.h >>conftest.$ac_ext 4736cat >>conftest.$ac_ext <<_ACEOF 4737/* end confdefs.h. */ 4738$ac_includes_default 4739int 4740main () 4741{ 4742static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; 4743test_array [0] = 0 4744 4745 ; 4746 return 0; 4747} 4748_ACEOF 4749rm -f conftest.$ac_objext 4750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4751 (eval $ac_compile) 2>&5 4752 ac_status=$? 4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4754 (exit $ac_status); } && 4755 { ac_try='test -s conftest.$ac_objext' 4756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4757 (eval $ac_try) 2>&5 4758 ac_status=$? 4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4760 (exit $ac_status); }; }; then 4761 ac_hi=$ac_mid 4762else 4763 echo "$as_me: failed program was:" >&5 4764sed 's/^/| /' conftest.$ac_ext >&5 4765 4766ac_lo=`expr '(' $ac_mid ')' + 1` 4767fi 4768rm -f conftest.$ac_objext conftest.$ac_ext 4769done 4770case $ac_lo in 4771?*) ac_cv_sizeof_char=$ac_lo;; 4772'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 4773See \`config.log' for more details." >&5 4774echo "$as_me: error: cannot compute sizeof (char), 77 4775See \`config.log' for more details." >&2;} 4776 { (exit 1); exit 1; }; } ;; 4777esac 4778else 4779 if test "$cross_compiling" = yes; then 4780 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 4781See \`config.log' for more details." >&5 4782echo "$as_me: error: cannot run test program while cross compiling 4783See \`config.log' for more details." >&2;} 4784 { (exit 1); exit 1; }; } 4785else 4786 cat >conftest.$ac_ext <<_ACEOF 4787#line $LINENO "configure" 4788/* confdefs.h. */ 4789_ACEOF 4790cat confdefs.h >>conftest.$ac_ext 4791cat >>conftest.$ac_ext <<_ACEOF 4792/* end confdefs.h. */ 4793$ac_includes_default 4794long longval () { return (long) (sizeof (char)); } 4795unsigned long ulongval () { return (long) (sizeof (char)); } 4796#include <stdio.h> 4797#include <stdlib.h> 4798int 4799main () 4800{ 4801 4802 FILE *f = fopen ("conftest.val", "w"); 4803 if (! f) 4804 exit (1); 4805 if (((long) (sizeof (char))) < 0) 4806 { 4807 long i = longval (); 4808 if (i != ((long) (sizeof (char)))) 4809 exit (1); 4810 fprintf (f, "%ld\n", i); 4811 } 4812 else 4813 { 4814 unsigned long i = ulongval (); 4815 if (i != ((long) (sizeof (char)))) 4816 exit (1); 4817 fprintf (f, "%lu\n", i); 4818 } 4819 exit (ferror (f) || fclose (f) != 0); 4820 4821 ; 4822 return 0; 4823} 4824_ACEOF 4825rm -f conftest$ac_exeext 4826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4827 (eval $ac_link) 2>&5 4828 ac_status=$? 4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4830 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4832 (eval $ac_try) 2>&5 4833 ac_status=$? 4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4835 (exit $ac_status); }; }; then 4836 ac_cv_sizeof_char=`cat conftest.val` 4837else 4838 echo "$as_me: program exited with status $ac_status" >&5 4839echo "$as_me: failed program was:" >&5 4840sed 's/^/| /' conftest.$ac_ext >&5 4841 4842( exit $ac_status ) 4843{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 4844See \`config.log' for more details." >&5 4845echo "$as_me: error: cannot compute sizeof (char), 77 4846See \`config.log' for more details." >&2;} 4847 { (exit 1); exit 1; }; } 4848fi 4849rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4850fi 4851fi 4852rm -f conftest.val 4853else 4854 ac_cv_sizeof_char=0 4855fi 4856fi 4857echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 4858echo "${ECHO_T}$ac_cv_sizeof_char" >&6 4859cat >>confdefs.h <<_ACEOF 4860#define SIZEOF_CHAR $ac_cv_sizeof_char 4861_ACEOF 4862 4863 4864echo "$as_me:$LINENO: checking for short" >&5 4865echo $ECHO_N "checking for short... $ECHO_C" >&6 4866if test "${ac_cv_type_short+set}" = set; then 4867 echo $ECHO_N "(cached) $ECHO_C" >&6 4868else 4869 cat >conftest.$ac_ext <<_ACEOF 4870#line $LINENO "configure" 4871/* confdefs.h. */ 4872_ACEOF 4873cat confdefs.h >>conftest.$ac_ext 4874cat >>conftest.$ac_ext <<_ACEOF 4875/* end confdefs.h. */ 4876$ac_includes_default 4877int 4878main () 4879{ 4880if ((short *) 0) 4881 return 0; 4882if (sizeof (short)) 4883 return 0; 4884 ; 4885 return 0; 4886} 4887_ACEOF 4888rm -f conftest.$ac_objext 4889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4890 (eval $ac_compile) 2>&5 4891 ac_status=$? 4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4893 (exit $ac_status); } && 4894 { ac_try='test -s conftest.$ac_objext' 4895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4896 (eval $ac_try) 2>&5 4897 ac_status=$? 4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4899 (exit $ac_status); }; }; then 4900 ac_cv_type_short=yes 4901else 4902 echo "$as_me: failed program was:" >&5 4903sed 's/^/| /' conftest.$ac_ext >&5 4904 4905ac_cv_type_short=no 4906fi 4907rm -f conftest.$ac_objext conftest.$ac_ext 4908fi 4909echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 4910echo "${ECHO_T}$ac_cv_type_short" >&6 4911 4912echo "$as_me:$LINENO: checking size of short" >&5 4913echo $ECHO_N "checking size of short... $ECHO_C" >&6 4914if test "${ac_cv_sizeof_short+set}" = set; then 4915 echo $ECHO_N "(cached) $ECHO_C" >&6 4916else 4917 if test "$ac_cv_type_short" = yes; then 4918 # The cast to unsigned long works around a bug in the HP C Compiler 4919 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4920 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4921 # This bug is HP SR number 8606223364. 4922 if test "$cross_compiling" = yes; then 4923 # Depending upon the size, compute the lo and hi bounds. 4924cat >conftest.$ac_ext <<_ACEOF 4925#line $LINENO "configure" 4926/* confdefs.h. */ 4927_ACEOF 4928cat confdefs.h >>conftest.$ac_ext 4929cat >>conftest.$ac_ext <<_ACEOF 4930/* end confdefs.h. */ 4931$ac_includes_default 4932int 4933main () 4934{ 4935static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; 4936test_array [0] = 0 4937 4938 ; 4939 return 0; 4940} 4941_ACEOF 4942rm -f conftest.$ac_objext 4943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4944 (eval $ac_compile) 2>&5 4945 ac_status=$? 4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4947 (exit $ac_status); } && 4948 { ac_try='test -s conftest.$ac_objext' 4949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4950 (eval $ac_try) 2>&5 4951 ac_status=$? 4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4953 (exit $ac_status); }; }; then 4954 ac_lo=0 ac_mid=0 4955 while :; do 4956 cat >conftest.$ac_ext <<_ACEOF 4957#line $LINENO "configure" 4958/* confdefs.h. */ 4959_ACEOF 4960cat confdefs.h >>conftest.$ac_ext 4961cat >>conftest.$ac_ext <<_ACEOF 4962/* end confdefs.h. */ 4963$ac_includes_default 4964int 4965main () 4966{ 4967static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 4968test_array [0] = 0 4969 4970 ; 4971 return 0; 4972} 4973_ACEOF 4974rm -f conftest.$ac_objext 4975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4976 (eval $ac_compile) 2>&5 4977 ac_status=$? 4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4979 (exit $ac_status); } && 4980 { ac_try='test -s conftest.$ac_objext' 4981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4982 (eval $ac_try) 2>&5 4983 ac_status=$? 4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4985 (exit $ac_status); }; }; then 4986 ac_hi=$ac_mid; break 4987else 4988 echo "$as_me: failed program was:" >&5 4989sed 's/^/| /' conftest.$ac_ext >&5 4990 4991ac_lo=`expr $ac_mid + 1` 4992 if test $ac_lo -le $ac_mid; then 4993 ac_lo= ac_hi= 4994 break 4995 fi 4996 ac_mid=`expr 2 '*' $ac_mid + 1` 4997fi 4998rm -f conftest.$ac_objext conftest.$ac_ext 4999 done 5000else 5001 echo "$as_me: failed program was:" >&5 5002sed 's/^/| /' conftest.$ac_ext >&5 5003 5004cat >conftest.$ac_ext <<_ACEOF 5005#line $LINENO "configure" 5006/* confdefs.h. */ 5007_ACEOF 5008cat confdefs.h >>conftest.$ac_ext 5009cat >>conftest.$ac_ext <<_ACEOF 5010/* end confdefs.h. */ 5011$ac_includes_default 5012int 5013main () 5014{ 5015static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; 5016test_array [0] = 0 5017 5018 ; 5019 return 0; 5020} 5021_ACEOF 5022rm -f conftest.$ac_objext 5023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5024 (eval $ac_compile) 2>&5 5025 ac_status=$? 5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5027 (exit $ac_status); } && 5028 { ac_try='test -s conftest.$ac_objext' 5029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5030 (eval $ac_try) 2>&5 5031 ac_status=$? 5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5033 (exit $ac_status); }; }; then 5034 ac_hi=-1 ac_mid=-1 5035 while :; do 5036 cat >conftest.$ac_ext <<_ACEOF 5037#line $LINENO "configure" 5038/* confdefs.h. */ 5039_ACEOF 5040cat confdefs.h >>conftest.$ac_ext 5041cat >>conftest.$ac_ext <<_ACEOF 5042/* end confdefs.h. */ 5043$ac_includes_default 5044int 5045main () 5046{ 5047static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; 5048test_array [0] = 0 5049 5050 ; 5051 return 0; 5052} 5053_ACEOF 5054rm -f conftest.$ac_objext 5055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5056 (eval $ac_compile) 2>&5 5057 ac_status=$? 5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5059 (exit $ac_status); } && 5060 { ac_try='test -s conftest.$ac_objext' 5061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5062 (eval $ac_try) 2>&5 5063 ac_status=$? 5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5065 (exit $ac_status); }; }; then 5066 ac_lo=$ac_mid; break 5067else 5068 echo "$as_me: failed program was:" >&5 5069sed 's/^/| /' conftest.$ac_ext >&5 5070 5071ac_hi=`expr '(' $ac_mid ')' - 1` 5072 if test $ac_mid -le $ac_hi; then 5073 ac_lo= ac_hi= 5074 break 5075 fi 5076 ac_mid=`expr 2 '*' $ac_mid` 5077fi 5078rm -f conftest.$ac_objext conftest.$ac_ext 5079 done 5080else 5081 echo "$as_me: failed program was:" >&5 5082sed 's/^/| /' conftest.$ac_ext >&5 5083 5084ac_lo= ac_hi= 5085fi 5086rm -f conftest.$ac_objext conftest.$ac_ext 5087fi 5088rm -f conftest.$ac_objext conftest.$ac_ext 5089# Binary search between lo and hi bounds. 5090while test "x$ac_lo" != "x$ac_hi"; do 5091 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 5092 cat >conftest.$ac_ext <<_ACEOF 5093#line $LINENO "configure" 5094/* confdefs.h. */ 5095_ACEOF 5096cat confdefs.h >>conftest.$ac_ext 5097cat >>conftest.$ac_ext <<_ACEOF 5098/* end confdefs.h. */ 5099$ac_includes_default 5100int 5101main () 5102{ 5103static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 5104test_array [0] = 0 5105 5106 ; 5107 return 0; 5108} 5109_ACEOF 5110rm -f conftest.$ac_objext 5111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5112 (eval $ac_compile) 2>&5 5113 ac_status=$? 5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5115 (exit $ac_status); } && 5116 { ac_try='test -s conftest.$ac_objext' 5117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5118 (eval $ac_try) 2>&5 5119 ac_status=$? 5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5121 (exit $ac_status); }; }; then 5122 ac_hi=$ac_mid 5123else 5124 echo "$as_me: failed program was:" >&5 5125sed 's/^/| /' conftest.$ac_ext >&5 5126 5127ac_lo=`expr '(' $ac_mid ')' + 1` 5128fi 5129rm -f conftest.$ac_objext conftest.$ac_ext 5130done 5131case $ac_lo in 5132?*) ac_cv_sizeof_short=$ac_lo;; 5133'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 5134See \`config.log' for more details." >&5 5135echo "$as_me: error: cannot compute sizeof (short), 77 5136See \`config.log' for more details." >&2;} 5137 { (exit 1); exit 1; }; } ;; 5138esac 5139else 5140 if test "$cross_compiling" = yes; then 5141 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 5142See \`config.log' for more details." >&5 5143echo "$as_me: error: cannot run test program while cross compiling 5144See \`config.log' for more details." >&2;} 5145 { (exit 1); exit 1; }; } 5146else 5147 cat >conftest.$ac_ext <<_ACEOF 5148#line $LINENO "configure" 5149/* confdefs.h. */ 5150_ACEOF 5151cat confdefs.h >>conftest.$ac_ext 5152cat >>conftest.$ac_ext <<_ACEOF 5153/* end confdefs.h. */ 5154$ac_includes_default 5155long longval () { return (long) (sizeof (short)); } 5156unsigned long ulongval () { return (long) (sizeof (short)); } 5157#include <stdio.h> 5158#include <stdlib.h> 5159int 5160main () 5161{ 5162 5163 FILE *f = fopen ("conftest.val", "w"); 5164 if (! f) 5165 exit (1); 5166 if (((long) (sizeof (short))) < 0) 5167 { 5168 long i = longval (); 5169 if (i != ((long) (sizeof (short)))) 5170 exit (1); 5171 fprintf (f, "%ld\n", i); 5172 } 5173 else 5174 { 5175 unsigned long i = ulongval (); 5176 if (i != ((long) (sizeof (short)))) 5177 exit (1); 5178 fprintf (f, "%lu\n", i); 5179 } 5180 exit (ferror (f) || fclose (f) != 0); 5181 5182 ; 5183 return 0; 5184} 5185_ACEOF 5186rm -f conftest$ac_exeext 5187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5188 (eval $ac_link) 2>&5 5189 ac_status=$? 5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5191 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5193 (eval $ac_try) 2>&5 5194 ac_status=$? 5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5196 (exit $ac_status); }; }; then 5197 ac_cv_sizeof_short=`cat conftest.val` 5198else 5199 echo "$as_me: program exited with status $ac_status" >&5 5200echo "$as_me: failed program was:" >&5 5201sed 's/^/| /' conftest.$ac_ext >&5 5202 5203( exit $ac_status ) 5204{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 5205See \`config.log' for more details." >&5 5206echo "$as_me: error: cannot compute sizeof (short), 77 5207See \`config.log' for more details." >&2;} 5208 { (exit 1); exit 1; }; } 5209fi 5210rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5211fi 5212fi 5213rm -f conftest.val 5214else 5215 ac_cv_sizeof_short=0 5216fi 5217fi 5218echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 5219echo "${ECHO_T}$ac_cv_sizeof_short" >&6 5220cat >>confdefs.h <<_ACEOF 5221#define SIZEOF_SHORT $ac_cv_sizeof_short 5222_ACEOF 5223 5224 5225echo "$as_me:$LINENO: checking for int" >&5 5226echo $ECHO_N "checking for int... $ECHO_C" >&6 5227if test "${ac_cv_type_int+set}" = set; then 5228 echo $ECHO_N "(cached) $ECHO_C" >&6 5229else 5230 cat >conftest.$ac_ext <<_ACEOF 5231#line $LINENO "configure" 5232/* confdefs.h. */ 5233_ACEOF 5234cat confdefs.h >>conftest.$ac_ext 5235cat >>conftest.$ac_ext <<_ACEOF 5236/* end confdefs.h. */ 5237$ac_includes_default 5238int 5239main () 5240{ 5241if ((int *) 0) 5242 return 0; 5243if (sizeof (int)) 5244 return 0; 5245 ; 5246 return 0; 5247} 5248_ACEOF 5249rm -f conftest.$ac_objext 5250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5251 (eval $ac_compile) 2>&5 5252 ac_status=$? 5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5254 (exit $ac_status); } && 5255 { ac_try='test -s conftest.$ac_objext' 5256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5257 (eval $ac_try) 2>&5 5258 ac_status=$? 5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5260 (exit $ac_status); }; }; then 5261 ac_cv_type_int=yes 5262else 5263 echo "$as_me: failed program was:" >&5 5264sed 's/^/| /' conftest.$ac_ext >&5 5265 5266ac_cv_type_int=no 5267fi 5268rm -f conftest.$ac_objext conftest.$ac_ext 5269fi 5270echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 5271echo "${ECHO_T}$ac_cv_type_int" >&6 5272 5273echo "$as_me:$LINENO: checking size of int" >&5 5274echo $ECHO_N "checking size of int... $ECHO_C" >&6 5275if test "${ac_cv_sizeof_int+set}" = set; then 5276 echo $ECHO_N "(cached) $ECHO_C" >&6 5277else 5278 if test "$ac_cv_type_int" = yes; then 5279 # The cast to unsigned long works around a bug in the HP C Compiler 5280 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 5281 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 5282 # This bug is HP SR number 8606223364. 5283 if test "$cross_compiling" = yes; then 5284 # Depending upon the size, compute the lo and hi bounds. 5285cat >conftest.$ac_ext <<_ACEOF 5286#line $LINENO "configure" 5287/* confdefs.h. */ 5288_ACEOF 5289cat confdefs.h >>conftest.$ac_ext 5290cat >>conftest.$ac_ext <<_ACEOF 5291/* end confdefs.h. */ 5292$ac_includes_default 5293int 5294main () 5295{ 5296static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 5297test_array [0] = 0 5298 5299 ; 5300 return 0; 5301} 5302_ACEOF 5303rm -f conftest.$ac_objext 5304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5305 (eval $ac_compile) 2>&5 5306 ac_status=$? 5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5308 (exit $ac_status); } && 5309 { ac_try='test -s conftest.$ac_objext' 5310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5311 (eval $ac_try) 2>&5 5312 ac_status=$? 5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5314 (exit $ac_status); }; }; then 5315 ac_lo=0 ac_mid=0 5316 while :; do 5317 cat >conftest.$ac_ext <<_ACEOF 5318#line $LINENO "configure" 5319/* confdefs.h. */ 5320_ACEOF 5321cat confdefs.h >>conftest.$ac_ext 5322cat >>conftest.$ac_ext <<_ACEOF 5323/* end confdefs.h. */ 5324$ac_includes_default 5325int 5326main () 5327{ 5328static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 5329test_array [0] = 0 5330 5331 ; 5332 return 0; 5333} 5334_ACEOF 5335rm -f conftest.$ac_objext 5336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5337 (eval $ac_compile) 2>&5 5338 ac_status=$? 5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5340 (exit $ac_status); } && 5341 { ac_try='test -s conftest.$ac_objext' 5342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5343 (eval $ac_try) 2>&5 5344 ac_status=$? 5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5346 (exit $ac_status); }; }; then 5347 ac_hi=$ac_mid; break 5348else 5349 echo "$as_me: failed program was:" >&5 5350sed 's/^/| /' conftest.$ac_ext >&5 5351 5352ac_lo=`expr $ac_mid + 1` 5353 if test $ac_lo -le $ac_mid; then 5354 ac_lo= ac_hi= 5355 break 5356 fi 5357 ac_mid=`expr 2 '*' $ac_mid + 1` 5358fi 5359rm -f conftest.$ac_objext conftest.$ac_ext 5360 done 5361else 5362 echo "$as_me: failed program was:" >&5 5363sed 's/^/| /' conftest.$ac_ext >&5 5364 5365cat >conftest.$ac_ext <<_ACEOF 5366#line $LINENO "configure" 5367/* confdefs.h. */ 5368_ACEOF 5369cat confdefs.h >>conftest.$ac_ext 5370cat >>conftest.$ac_ext <<_ACEOF 5371/* end confdefs.h. */ 5372$ac_includes_default 5373int 5374main () 5375{ 5376static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 5377test_array [0] = 0 5378 5379 ; 5380 return 0; 5381} 5382_ACEOF 5383rm -f conftest.$ac_objext 5384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5385 (eval $ac_compile) 2>&5 5386 ac_status=$? 5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5388 (exit $ac_status); } && 5389 { ac_try='test -s conftest.$ac_objext' 5390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5391 (eval $ac_try) 2>&5 5392 ac_status=$? 5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5394 (exit $ac_status); }; }; then 5395 ac_hi=-1 ac_mid=-1 5396 while :; do 5397 cat >conftest.$ac_ext <<_ACEOF 5398#line $LINENO "configure" 5399/* confdefs.h. */ 5400_ACEOF 5401cat confdefs.h >>conftest.$ac_ext 5402cat >>conftest.$ac_ext <<_ACEOF 5403/* end confdefs.h. */ 5404$ac_includes_default 5405int 5406main () 5407{ 5408static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 5409test_array [0] = 0 5410 5411 ; 5412 return 0; 5413} 5414_ACEOF 5415rm -f conftest.$ac_objext 5416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5417 (eval $ac_compile) 2>&5 5418 ac_status=$? 5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5420 (exit $ac_status); } && 5421 { ac_try='test -s conftest.$ac_objext' 5422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5423 (eval $ac_try) 2>&5 5424 ac_status=$? 5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5426 (exit $ac_status); }; }; then 5427 ac_lo=$ac_mid; break 5428else 5429 echo "$as_me: failed program was:" >&5 5430sed 's/^/| /' conftest.$ac_ext >&5 5431 5432ac_hi=`expr '(' $ac_mid ')' - 1` 5433 if test $ac_mid -le $ac_hi; then 5434 ac_lo= ac_hi= 5435 break 5436 fi 5437 ac_mid=`expr 2 '*' $ac_mid` 5438fi 5439rm -f conftest.$ac_objext conftest.$ac_ext 5440 done 5441else 5442 echo "$as_me: failed program was:" >&5 5443sed 's/^/| /' conftest.$ac_ext >&5 5444 5445ac_lo= ac_hi= 5446fi 5447rm -f conftest.$ac_objext conftest.$ac_ext 5448fi 5449rm -f conftest.$ac_objext conftest.$ac_ext 5450# Binary search between lo and hi bounds. 5451while test "x$ac_lo" != "x$ac_hi"; do 5452 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 5453 cat >conftest.$ac_ext <<_ACEOF 5454#line $LINENO "configure" 5455/* confdefs.h. */ 5456_ACEOF 5457cat confdefs.h >>conftest.$ac_ext 5458cat >>conftest.$ac_ext <<_ACEOF 5459/* end confdefs.h. */ 5460$ac_includes_default 5461int 5462main () 5463{ 5464static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 5465test_array [0] = 0 5466 5467 ; 5468 return 0; 5469} 5470_ACEOF 5471rm -f conftest.$ac_objext 5472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5473 (eval $ac_compile) 2>&5 5474 ac_status=$? 5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5476 (exit $ac_status); } && 5477 { ac_try='test -s conftest.$ac_objext' 5478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5479 (eval $ac_try) 2>&5 5480 ac_status=$? 5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5482 (exit $ac_status); }; }; then 5483 ac_hi=$ac_mid 5484else 5485 echo "$as_me: failed program was:" >&5 5486sed 's/^/| /' conftest.$ac_ext >&5 5487 5488ac_lo=`expr '(' $ac_mid ')' + 1` 5489fi 5490rm -f conftest.$ac_objext conftest.$ac_ext 5491done 5492case $ac_lo in 5493?*) ac_cv_sizeof_int=$ac_lo;; 5494'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 5495See \`config.log' for more details." >&5 5496echo "$as_me: error: cannot compute sizeof (int), 77 5497See \`config.log' for more details." >&2;} 5498 { (exit 1); exit 1; }; } ;; 5499esac 5500else 5501 if test "$cross_compiling" = yes; then 5502 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 5503See \`config.log' for more details." >&5 5504echo "$as_me: error: cannot run test program while cross compiling 5505See \`config.log' for more details." >&2;} 5506 { (exit 1); exit 1; }; } 5507else 5508 cat >conftest.$ac_ext <<_ACEOF 5509#line $LINENO "configure" 5510/* confdefs.h. */ 5511_ACEOF 5512cat confdefs.h >>conftest.$ac_ext 5513cat >>conftest.$ac_ext <<_ACEOF 5514/* end confdefs.h. */ 5515$ac_includes_default 5516long longval () { return (long) (sizeof (int)); } 5517unsigned long ulongval () { return (long) (sizeof (int)); } 5518#include <stdio.h> 5519#include <stdlib.h> 5520int 5521main () 5522{ 5523 5524 FILE *f = fopen ("conftest.val", "w"); 5525 if (! f) 5526 exit (1); 5527 if (((long) (sizeof (int))) < 0) 5528 { 5529 long i = longval (); 5530 if (i != ((long) (sizeof (int)))) 5531 exit (1); 5532 fprintf (f, "%ld\n", i); 5533 } 5534 else 5535 { 5536 unsigned long i = ulongval (); 5537 if (i != ((long) (sizeof (int)))) 5538 exit (1); 5539 fprintf (f, "%lu\n", i); 5540 } 5541 exit (ferror (f) || fclose (f) != 0); 5542 5543 ; 5544 return 0; 5545} 5546_ACEOF 5547rm -f conftest$ac_exeext 5548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5549 (eval $ac_link) 2>&5 5550 ac_status=$? 5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5552 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5554 (eval $ac_try) 2>&5 5555 ac_status=$? 5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5557 (exit $ac_status); }; }; then 5558 ac_cv_sizeof_int=`cat conftest.val` 5559else 5560 echo "$as_me: program exited with status $ac_status" >&5 5561echo "$as_me: failed program was:" >&5 5562sed 's/^/| /' conftest.$ac_ext >&5 5563 5564( exit $ac_status ) 5565{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 5566See \`config.log' for more details." >&5 5567echo "$as_me: error: cannot compute sizeof (int), 77 5568See \`config.log' for more details." >&2;} 5569 { (exit 1); exit 1; }; } 5570fi 5571rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5572fi 5573fi 5574rm -f conftest.val 5575else 5576 ac_cv_sizeof_int=0 5577fi 5578fi 5579echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 5580echo "${ECHO_T}$ac_cv_sizeof_int" >&6 5581cat >>confdefs.h <<_ACEOF 5582#define SIZEOF_INT $ac_cv_sizeof_int 5583_ACEOF 5584 5585 5586echo "$as_me:$LINENO: checking for long" >&5 5587echo $ECHO_N "checking for long... $ECHO_C" >&6 5588if test "${ac_cv_type_long+set}" = set; then 5589 echo $ECHO_N "(cached) $ECHO_C" >&6 5590else 5591 cat >conftest.$ac_ext <<_ACEOF 5592#line $LINENO "configure" 5593/* confdefs.h. */ 5594_ACEOF 5595cat confdefs.h >>conftest.$ac_ext 5596cat >>conftest.$ac_ext <<_ACEOF 5597/* end confdefs.h. */ 5598$ac_includes_default 5599int 5600main () 5601{ 5602if ((long *) 0) 5603 return 0; 5604if (sizeof (long)) 5605 return 0; 5606 ; 5607 return 0; 5608} 5609_ACEOF 5610rm -f conftest.$ac_objext 5611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5612 (eval $ac_compile) 2>&5 5613 ac_status=$? 5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5615 (exit $ac_status); } && 5616 { ac_try='test -s conftest.$ac_objext' 5617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5618 (eval $ac_try) 2>&5 5619 ac_status=$? 5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5621 (exit $ac_status); }; }; then 5622 ac_cv_type_long=yes 5623else 5624 echo "$as_me: failed program was:" >&5 5625sed 's/^/| /' conftest.$ac_ext >&5 5626 5627ac_cv_type_long=no 5628fi 5629rm -f conftest.$ac_objext conftest.$ac_ext 5630fi 5631echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 5632echo "${ECHO_T}$ac_cv_type_long" >&6 5633 5634echo "$as_me:$LINENO: checking size of long" >&5 5635echo $ECHO_N "checking size of long... $ECHO_C" >&6 5636if test "${ac_cv_sizeof_long+set}" = set; then 5637 echo $ECHO_N "(cached) $ECHO_C" >&6 5638else 5639 if test "$ac_cv_type_long" = yes; then 5640 # The cast to unsigned long works around a bug in the HP C Compiler 5641 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 5642 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 5643 # This bug is HP SR number 8606223364. 5644 if test "$cross_compiling" = yes; then 5645 # Depending upon the size, compute the lo and hi bounds. 5646cat >conftest.$ac_ext <<_ACEOF 5647#line $LINENO "configure" 5648/* confdefs.h. */ 5649_ACEOF 5650cat confdefs.h >>conftest.$ac_ext 5651cat >>conftest.$ac_ext <<_ACEOF 5652/* end confdefs.h. */ 5653$ac_includes_default 5654int 5655main () 5656{ 5657static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 5658test_array [0] = 0 5659 5660 ; 5661 return 0; 5662} 5663_ACEOF 5664rm -f conftest.$ac_objext 5665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5666 (eval $ac_compile) 2>&5 5667 ac_status=$? 5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5669 (exit $ac_status); } && 5670 { ac_try='test -s conftest.$ac_objext' 5671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5672 (eval $ac_try) 2>&5 5673 ac_status=$? 5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5675 (exit $ac_status); }; }; then 5676 ac_lo=0 ac_mid=0 5677 while :; do 5678 cat >conftest.$ac_ext <<_ACEOF 5679#line $LINENO "configure" 5680/* confdefs.h. */ 5681_ACEOF 5682cat confdefs.h >>conftest.$ac_ext 5683cat >>conftest.$ac_ext <<_ACEOF 5684/* end confdefs.h. */ 5685$ac_includes_default 5686int 5687main () 5688{ 5689static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 5690test_array [0] = 0 5691 5692 ; 5693 return 0; 5694} 5695_ACEOF 5696rm -f conftest.$ac_objext 5697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5698 (eval $ac_compile) 2>&5 5699 ac_status=$? 5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5701 (exit $ac_status); } && 5702 { ac_try='test -s conftest.$ac_objext' 5703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5704 (eval $ac_try) 2>&5 5705 ac_status=$? 5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5707 (exit $ac_status); }; }; then 5708 ac_hi=$ac_mid; break 5709else 5710 echo "$as_me: failed program was:" >&5 5711sed 's/^/| /' conftest.$ac_ext >&5 5712 5713ac_lo=`expr $ac_mid + 1` 5714 if test $ac_lo -le $ac_mid; then 5715 ac_lo= ac_hi= 5716 break 5717 fi 5718 ac_mid=`expr 2 '*' $ac_mid + 1` 5719fi 5720rm -f conftest.$ac_objext conftest.$ac_ext 5721 done 5722else 5723 echo "$as_me: failed program was:" >&5 5724sed 's/^/| /' conftest.$ac_ext >&5 5725 5726cat >conftest.$ac_ext <<_ACEOF 5727#line $LINENO "configure" 5728/* confdefs.h. */ 5729_ACEOF 5730cat confdefs.h >>conftest.$ac_ext 5731cat >>conftest.$ac_ext <<_ACEOF 5732/* end confdefs.h. */ 5733$ac_includes_default 5734int 5735main () 5736{ 5737static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 5738test_array [0] = 0 5739 5740 ; 5741 return 0; 5742} 5743_ACEOF 5744rm -f conftest.$ac_objext 5745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5746 (eval $ac_compile) 2>&5 5747 ac_status=$? 5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5749 (exit $ac_status); } && 5750 { ac_try='test -s conftest.$ac_objext' 5751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5752 (eval $ac_try) 2>&5 5753 ac_status=$? 5754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5755 (exit $ac_status); }; }; then 5756 ac_hi=-1 ac_mid=-1 5757 while :; do 5758 cat >conftest.$ac_ext <<_ACEOF 5759#line $LINENO "configure" 5760/* confdefs.h. */ 5761_ACEOF 5762cat confdefs.h >>conftest.$ac_ext 5763cat >>conftest.$ac_ext <<_ACEOF 5764/* end confdefs.h. */ 5765$ac_includes_default 5766int 5767main () 5768{ 5769static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 5770test_array [0] = 0 5771 5772 ; 5773 return 0; 5774} 5775_ACEOF 5776rm -f conftest.$ac_objext 5777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5778 (eval $ac_compile) 2>&5 5779 ac_status=$? 5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5781 (exit $ac_status); } && 5782 { ac_try='test -s conftest.$ac_objext' 5783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5784 (eval $ac_try) 2>&5 5785 ac_status=$? 5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5787 (exit $ac_status); }; }; then 5788 ac_lo=$ac_mid; break 5789else 5790 echo "$as_me: failed program was:" >&5 5791sed 's/^/| /' conftest.$ac_ext >&5 5792 5793ac_hi=`expr '(' $ac_mid ')' - 1` 5794 if test $ac_mid -le $ac_hi; then 5795 ac_lo= ac_hi= 5796 break 5797 fi 5798 ac_mid=`expr 2 '*' $ac_mid` 5799fi 5800rm -f conftest.$ac_objext conftest.$ac_ext 5801 done 5802else 5803 echo "$as_me: failed program was:" >&5 5804sed 's/^/| /' conftest.$ac_ext >&5 5805 5806ac_lo= ac_hi= 5807fi 5808rm -f conftest.$ac_objext conftest.$ac_ext 5809fi 5810rm -f conftest.$ac_objext conftest.$ac_ext 5811# Binary search between lo and hi bounds. 5812while test "x$ac_lo" != "x$ac_hi"; do 5813 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 5814 cat >conftest.$ac_ext <<_ACEOF 5815#line $LINENO "configure" 5816/* confdefs.h. */ 5817_ACEOF 5818cat confdefs.h >>conftest.$ac_ext 5819cat >>conftest.$ac_ext <<_ACEOF 5820/* end confdefs.h. */ 5821$ac_includes_default 5822int 5823main () 5824{ 5825static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 5826test_array [0] = 0 5827 5828 ; 5829 return 0; 5830} 5831_ACEOF 5832rm -f conftest.$ac_objext 5833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5834 (eval $ac_compile) 2>&5 5835 ac_status=$? 5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5837 (exit $ac_status); } && 5838 { ac_try='test -s conftest.$ac_objext' 5839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5840 (eval $ac_try) 2>&5 5841 ac_status=$? 5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5843 (exit $ac_status); }; }; then 5844 ac_hi=$ac_mid 5845else 5846 echo "$as_me: failed program was:" >&5 5847sed 's/^/| /' conftest.$ac_ext >&5 5848 5849ac_lo=`expr '(' $ac_mid ')' + 1` 5850fi 5851rm -f conftest.$ac_objext conftest.$ac_ext 5852done 5853case $ac_lo in 5854?*) ac_cv_sizeof_long=$ac_lo;; 5855'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 5856See \`config.log' for more details." >&5 5857echo "$as_me: error: cannot compute sizeof (long), 77 5858See \`config.log' for more details." >&2;} 5859 { (exit 1); exit 1; }; } ;; 5860esac 5861else 5862 if test "$cross_compiling" = yes; then 5863 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 5864See \`config.log' for more details." >&5 5865echo "$as_me: error: cannot run test program while cross compiling 5866See \`config.log' for more details." >&2;} 5867 { (exit 1); exit 1; }; } 5868else 5869 cat >conftest.$ac_ext <<_ACEOF 5870#line $LINENO "configure" 5871/* confdefs.h. */ 5872_ACEOF 5873cat confdefs.h >>conftest.$ac_ext 5874cat >>conftest.$ac_ext <<_ACEOF 5875/* end confdefs.h. */ 5876$ac_includes_default 5877long longval () { return (long) (sizeof (long)); } 5878unsigned long ulongval () { return (long) (sizeof (long)); } 5879#include <stdio.h> 5880#include <stdlib.h> 5881int 5882main () 5883{ 5884 5885 FILE *f = fopen ("conftest.val", "w"); 5886 if (! f) 5887 exit (1); 5888 if (((long) (sizeof (long))) < 0) 5889 { 5890 long i = longval (); 5891 if (i != ((long) (sizeof (long)))) 5892 exit (1); 5893 fprintf (f, "%ld\n", i); 5894 } 5895 else 5896 { 5897 unsigned long i = ulongval (); 5898 if (i != ((long) (sizeof (long)))) 5899 exit (1); 5900 fprintf (f, "%lu\n", i); 5901 } 5902 exit (ferror (f) || fclose (f) != 0); 5903 5904 ; 5905 return 0; 5906} 5907_ACEOF 5908rm -f conftest$ac_exeext 5909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5910 (eval $ac_link) 2>&5 5911 ac_status=$? 5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5915 (eval $ac_try) 2>&5 5916 ac_status=$? 5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5918 (exit $ac_status); }; }; then 5919 ac_cv_sizeof_long=`cat conftest.val` 5920else 5921 echo "$as_me: program exited with status $ac_status" >&5 5922echo "$as_me: failed program was:" >&5 5923sed 's/^/| /' conftest.$ac_ext >&5 5924 5925( exit $ac_status ) 5926{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 5927See \`config.log' for more details." >&5 5928echo "$as_me: error: cannot compute sizeof (long), 77 5929See \`config.log' for more details." >&2;} 5930 { (exit 1); exit 1; }; } 5931fi 5932rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5933fi 5934fi 5935rm -f conftest.val 5936else 5937 ac_cv_sizeof_long=0 5938fi 5939fi 5940echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 5941echo "${ECHO_T}$ac_cv_sizeof_long" >&6 5942cat >>confdefs.h <<_ACEOF 5943#define SIZEOF_LONG $ac_cv_sizeof_long 5944_ACEOF 5945 5946 5947echo "$as_me:$LINENO: checking for long long" >&5 5948echo $ECHO_N "checking for long long... $ECHO_C" >&6 5949if test "${ac_cv_type_long_long+set}" = set; then 5950 echo $ECHO_N "(cached) $ECHO_C" >&6 5951else 5952 cat >conftest.$ac_ext <<_ACEOF 5953#line $LINENO "configure" 5954/* confdefs.h. */ 5955_ACEOF 5956cat confdefs.h >>conftest.$ac_ext 5957cat >>conftest.$ac_ext <<_ACEOF 5958/* end confdefs.h. */ 5959$ac_includes_default 5960int 5961main () 5962{ 5963if ((long long *) 0) 5964 return 0; 5965if (sizeof (long long)) 5966 return 0; 5967 ; 5968 return 0; 5969} 5970_ACEOF 5971rm -f conftest.$ac_objext 5972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5973 (eval $ac_compile) 2>&5 5974 ac_status=$? 5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5976 (exit $ac_status); } && 5977 { ac_try='test -s conftest.$ac_objext' 5978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5979 (eval $ac_try) 2>&5 5980 ac_status=$? 5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5982 (exit $ac_status); }; }; then 5983 ac_cv_type_long_long=yes 5984else 5985 echo "$as_me: failed program was:" >&5 5986sed 's/^/| /' conftest.$ac_ext >&5 5987 5988ac_cv_type_long_long=no 5989fi 5990rm -f conftest.$ac_objext conftest.$ac_ext 5991fi 5992echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 5993echo "${ECHO_T}$ac_cv_type_long_long" >&6 5994 5995echo "$as_me:$LINENO: checking size of long long" >&5 5996echo $ECHO_N "checking size of long long... $ECHO_C" >&6 5997if test "${ac_cv_sizeof_long_long+set}" = set; then 5998 echo $ECHO_N "(cached) $ECHO_C" >&6 5999else 6000 if test "$ac_cv_type_long_long" = yes; then 6001 # The cast to unsigned long works around a bug in the HP C Compiler 6002 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6003 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6004 # This bug is HP SR number 8606223364. 6005 if test "$cross_compiling" = yes; then 6006 # Depending upon the size, compute the lo and hi bounds. 6007cat >conftest.$ac_ext <<_ACEOF 6008#line $LINENO "configure" 6009/* confdefs.h. */ 6010_ACEOF 6011cat confdefs.h >>conftest.$ac_ext 6012cat >>conftest.$ac_ext <<_ACEOF 6013/* end confdefs.h. */ 6014$ac_includes_default 6015int 6016main () 6017{ 6018static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; 6019test_array [0] = 0 6020 6021 ; 6022 return 0; 6023} 6024_ACEOF 6025rm -f conftest.$ac_objext 6026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6027 (eval $ac_compile) 2>&5 6028 ac_status=$? 6029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6030 (exit $ac_status); } && 6031 { ac_try='test -s conftest.$ac_objext' 6032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6033 (eval $ac_try) 2>&5 6034 ac_status=$? 6035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6036 (exit $ac_status); }; }; then 6037 ac_lo=0 ac_mid=0 6038 while :; do 6039 cat >conftest.$ac_ext <<_ACEOF 6040#line $LINENO "configure" 6041/* confdefs.h. */ 6042_ACEOF 6043cat confdefs.h >>conftest.$ac_ext 6044cat >>conftest.$ac_ext <<_ACEOF 6045/* end confdefs.h. */ 6046$ac_includes_default 6047int 6048main () 6049{ 6050static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 6051test_array [0] = 0 6052 6053 ; 6054 return 0; 6055} 6056_ACEOF 6057rm -f conftest.$ac_objext 6058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6059 (eval $ac_compile) 2>&5 6060 ac_status=$? 6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6062 (exit $ac_status); } && 6063 { ac_try='test -s conftest.$ac_objext' 6064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6065 (eval $ac_try) 2>&5 6066 ac_status=$? 6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6068 (exit $ac_status); }; }; then 6069 ac_hi=$ac_mid; break 6070else 6071 echo "$as_me: failed program was:" >&5 6072sed 's/^/| /' conftest.$ac_ext >&5 6073 6074ac_lo=`expr $ac_mid + 1` 6075 if test $ac_lo -le $ac_mid; then 6076 ac_lo= ac_hi= 6077 break 6078 fi 6079 ac_mid=`expr 2 '*' $ac_mid + 1` 6080fi 6081rm -f conftest.$ac_objext conftest.$ac_ext 6082 done 6083else 6084 echo "$as_me: failed program was:" >&5 6085sed 's/^/| /' conftest.$ac_ext >&5 6086 6087cat >conftest.$ac_ext <<_ACEOF 6088#line $LINENO "configure" 6089/* confdefs.h. */ 6090_ACEOF 6091cat confdefs.h >>conftest.$ac_ext 6092cat >>conftest.$ac_ext <<_ACEOF 6093/* end confdefs.h. */ 6094$ac_includes_default 6095int 6096main () 6097{ 6098static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; 6099test_array [0] = 0 6100 6101 ; 6102 return 0; 6103} 6104_ACEOF 6105rm -f conftest.$ac_objext 6106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6107 (eval $ac_compile) 2>&5 6108 ac_status=$? 6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6110 (exit $ac_status); } && 6111 { ac_try='test -s conftest.$ac_objext' 6112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6113 (eval $ac_try) 2>&5 6114 ac_status=$? 6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6116 (exit $ac_status); }; }; then 6117 ac_hi=-1 ac_mid=-1 6118 while :; do 6119 cat >conftest.$ac_ext <<_ACEOF 6120#line $LINENO "configure" 6121/* confdefs.h. */ 6122_ACEOF 6123cat confdefs.h >>conftest.$ac_ext 6124cat >>conftest.$ac_ext <<_ACEOF 6125/* end confdefs.h. */ 6126$ac_includes_default 6127int 6128main () 6129{ 6130static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; 6131test_array [0] = 0 6132 6133 ; 6134 return 0; 6135} 6136_ACEOF 6137rm -f conftest.$ac_objext 6138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6139 (eval $ac_compile) 2>&5 6140 ac_status=$? 6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6142 (exit $ac_status); } && 6143 { ac_try='test -s conftest.$ac_objext' 6144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6145 (eval $ac_try) 2>&5 6146 ac_status=$? 6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6148 (exit $ac_status); }; }; then 6149 ac_lo=$ac_mid; break 6150else 6151 echo "$as_me: failed program was:" >&5 6152sed 's/^/| /' conftest.$ac_ext >&5 6153 6154ac_hi=`expr '(' $ac_mid ')' - 1` 6155 if test $ac_mid -le $ac_hi; then 6156 ac_lo= ac_hi= 6157 break 6158 fi 6159 ac_mid=`expr 2 '*' $ac_mid` 6160fi 6161rm -f conftest.$ac_objext conftest.$ac_ext 6162 done 6163else 6164 echo "$as_me: failed program was:" >&5 6165sed 's/^/| /' conftest.$ac_ext >&5 6166 6167ac_lo= ac_hi= 6168fi 6169rm -f conftest.$ac_objext conftest.$ac_ext 6170fi 6171rm -f conftest.$ac_objext conftest.$ac_ext 6172# Binary search between lo and hi bounds. 6173while test "x$ac_lo" != "x$ac_hi"; do 6174 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 6175 cat >conftest.$ac_ext <<_ACEOF 6176#line $LINENO "configure" 6177/* confdefs.h. */ 6178_ACEOF 6179cat confdefs.h >>conftest.$ac_ext 6180cat >>conftest.$ac_ext <<_ACEOF 6181/* end confdefs.h. */ 6182$ac_includes_default 6183int 6184main () 6185{ 6186static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 6187test_array [0] = 0 6188 6189 ; 6190 return 0; 6191} 6192_ACEOF 6193rm -f conftest.$ac_objext 6194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6195 (eval $ac_compile) 2>&5 6196 ac_status=$? 6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6198 (exit $ac_status); } && 6199 { ac_try='test -s conftest.$ac_objext' 6200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6201 (eval $ac_try) 2>&5 6202 ac_status=$? 6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6204 (exit $ac_status); }; }; then 6205 ac_hi=$ac_mid 6206else 6207 echo "$as_me: failed program was:" >&5 6208sed 's/^/| /' conftest.$ac_ext >&5 6209 6210ac_lo=`expr '(' $ac_mid ')' + 1` 6211fi 6212rm -f conftest.$ac_objext conftest.$ac_ext 6213done 6214case $ac_lo in 6215?*) ac_cv_sizeof_long_long=$ac_lo;; 6216'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 6217See \`config.log' for more details." >&5 6218echo "$as_me: error: cannot compute sizeof (long long), 77 6219See \`config.log' for more details." >&2;} 6220 { (exit 1); exit 1; }; } ;; 6221esac 6222else 6223 if test "$cross_compiling" = yes; then 6224 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 6225See \`config.log' for more details." >&5 6226echo "$as_me: error: cannot run test program while cross compiling 6227See \`config.log' for more details." >&2;} 6228 { (exit 1); exit 1; }; } 6229else 6230 cat >conftest.$ac_ext <<_ACEOF 6231#line $LINENO "configure" 6232/* confdefs.h. */ 6233_ACEOF 6234cat confdefs.h >>conftest.$ac_ext 6235cat >>conftest.$ac_ext <<_ACEOF 6236/* end confdefs.h. */ 6237$ac_includes_default 6238long longval () { return (long) (sizeof (long long)); } 6239unsigned long ulongval () { return (long) (sizeof (long long)); } 6240#include <stdio.h> 6241#include <stdlib.h> 6242int 6243main () 6244{ 6245 6246 FILE *f = fopen ("conftest.val", "w"); 6247 if (! f) 6248 exit (1); 6249 if (((long) (sizeof (long long))) < 0) 6250 { 6251 long i = longval (); 6252 if (i != ((long) (sizeof (long long)))) 6253 exit (1); 6254 fprintf (f, "%ld\n", i); 6255 } 6256 else 6257 { 6258 unsigned long i = ulongval (); 6259 if (i != ((long) (sizeof (long long)))) 6260 exit (1); 6261 fprintf (f, "%lu\n", i); 6262 } 6263 exit (ferror (f) || fclose (f) != 0); 6264 6265 ; 6266 return 0; 6267} 6268_ACEOF 6269rm -f conftest$ac_exeext 6270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6271 (eval $ac_link) 2>&5 6272 ac_status=$? 6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6274 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6276 (eval $ac_try) 2>&5 6277 ac_status=$? 6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6279 (exit $ac_status); }; }; then 6280 ac_cv_sizeof_long_long=`cat conftest.val` 6281else 6282 echo "$as_me: program exited with status $ac_status" >&5 6283echo "$as_me: failed program was:" >&5 6284sed 's/^/| /' conftest.$ac_ext >&5 6285 6286( exit $ac_status ) 6287{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 6288See \`config.log' for more details." >&5 6289echo "$as_me: error: cannot compute sizeof (long long), 77 6290See \`config.log' for more details." >&2;} 6291 { (exit 1); exit 1; }; } 6292fi 6293rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6294fi 6295fi 6296rm -f conftest.val 6297else 6298 ac_cv_sizeof_long_long=0 6299fi 6300fi 6301echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 6302echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 6303cat >>confdefs.h <<_ACEOF 6304#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 6305_ACEOF 6306 6307 6308 6309 6310 6311 echo "$as_me:$LINENO: checking for addrinfo" >&5 6312echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6 6313 if test "${ac_cv_addrinfo+set}" = set; then 6314 echo $ECHO_N "(cached) $ECHO_C" >&6 6315else 6316 cat >conftest.$ac_ext <<_ACEOF 6317#line $LINENO "configure" 6318/* confdefs.h. */ 6319_ACEOF 6320cat confdefs.h >>conftest.$ac_ext 6321cat >>conftest.$ac_ext <<_ACEOF 6322/* end confdefs.h. */ 6323 6324# include <netdb.h> 6325int 6326main () 6327{ 6328struct addrinfo a 6329 ; 6330 return 0; 6331} 6332_ACEOF 6333rm -f conftest.$ac_objext 6334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6335 (eval $ac_compile) 2>&5 6336 ac_status=$? 6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6338 (exit $ac_status); } && 6339 { ac_try='test -s conftest.$ac_objext' 6340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6341 (eval $ac_try) 2>&5 6342 ac_status=$? 6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6344 (exit $ac_status); }; }; then 6345 ac_cv_addrinfo=yes 6346else 6347 echo "$as_me: failed program was:" >&5 6348sed 's/^/| /' conftest.$ac_ext >&5 6349 6350ac_cv_addrinfo=no 6351fi 6352rm -f conftest.$ac_objext conftest.$ac_ext 6353fi 6354 6355 echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5 6356echo "${ECHO_T}$ac_cv_addrinfo" >&6 6357 if test $ac_cv_addrinfo = yes; then 6358 cat >>confdefs.h <<\_ACEOF 6359#define HAVE_ADDRINFO 1 6360_ACEOF 6361 6362 else 6363 cat >>confdefs.h <<\_ACEOF 6364#define NEED_ADDRINFO_H 1 6365_ACEOF 6366 6367 fi 6368 6369if test "$ac_cv_addrinfo" = no; then 6370 missing_includes=yes 6371fi 6372 6373 6374 echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5 6375echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6 6376 if test "${ac_cv_maxserv+set}" = set; then 6377 echo $ECHO_N "(cached) $ECHO_C" >&6 6378else 6379 cat >conftest.$ac_ext <<_ACEOF 6380#line $LINENO "configure" 6381/* confdefs.h. */ 6382_ACEOF 6383cat confdefs.h >>conftest.$ac_ext 6384cat >>conftest.$ac_ext <<_ACEOF 6385/* end confdefs.h. */ 6386#include <netdb.h> 6387#ifdef NI_MAXSERV 6388yes 6389#endif 6390_ACEOF 6391if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6392 $EGREP "yes" >/dev/null 2>&1; then 6393 ac_cv_maxserv=yes 6394else 6395 ac_cv_maxserv=no 6396fi 6397rm -f conftest* 6398 6399fi 6400 6401 echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5 6402echo "${ECHO_T}$ac_cv_maxserv" >&6 6403 if test $ac_cv_maxserv != yes; then 6404 cat >>confdefs.h <<\_ACEOF 6405#define NEED_ADDRINFO_H 1 6406_ACEOF 6407 6408 fi 6409 6410if test "$ac_cv_maxserv" = no; then 6411 missing_includes=yes 6412fi 6413 6414 6415 echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5 6416echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6 6417 if test "${ac_cv_namereqd+set}" = set; then 6418 echo $ECHO_N "(cached) $ECHO_C" >&6 6419else 6420 cat >conftest.$ac_ext <<_ACEOF 6421#line $LINENO "configure" 6422/* confdefs.h. */ 6423_ACEOF 6424cat confdefs.h >>conftest.$ac_ext 6425cat >>conftest.$ac_ext <<_ACEOF 6426/* end confdefs.h. */ 6427#include <netdb.h> 6428#ifdef NI_NOFQDN 6429yes 6430#endif 6431_ACEOF 6432if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6433 $EGREP "yes" >/dev/null 2>&1; then 6434 ac_cv_namereqd=yes 6435else 6436 ac_cv_namereqd=no 6437fi 6438rm -f conftest* 6439 6440fi 6441 6442 echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5 6443echo "${ECHO_T}$ac_cv_namereqd" >&6 6444 if test $ac_cv_namereqd != yes; then 6445 cat >>confdefs.h <<\_ACEOF 6446#define NEED_ADDRINFO_H 1 6447_ACEOF 6448 6449 fi 6450 6451if test "$ac_cv_namereqd" = no; then 6452 missing_includes=yes 6453fi 6454 6455 6456 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 6457echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6 6458 if test "${ac_cv_sa_storage+set}" = set; then 6459 echo $ECHO_N "(cached) $ECHO_C" >&6 6460else 6461 cat >conftest.$ac_ext <<_ACEOF 6462#line $LINENO "configure" 6463/* confdefs.h. */ 6464_ACEOF 6465cat confdefs.h >>conftest.$ac_ext 6466cat >>conftest.$ac_ext <<_ACEOF 6467/* end confdefs.h. */ 6468 6469# include <sys/types.h> 6470# include <sys/socket.h> 6471int 6472main () 6473{ 6474struct sockaddr_storage s 6475 ; 6476 return 0; 6477} 6478_ACEOF 6479rm -f conftest.$ac_objext 6480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6481 (eval $ac_compile) 2>&5 6482 ac_status=$? 6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6484 (exit $ac_status); } && 6485 { ac_try='test -s conftest.$ac_objext' 6486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6487 (eval $ac_try) 2>&5 6488 ac_status=$? 6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6490 (exit $ac_status); }; }; then 6491 ac_cv_sa_storage=yes 6492else 6493 echo "$as_me: failed program was:" >&5 6494sed 's/^/| /' conftest.$ac_ext >&5 6495 6496ac_cv_sa_storage=no 6497fi 6498rm -f conftest.$ac_objext conftest.$ac_ext 6499fi 6500 6501 echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5 6502echo "${ECHO_T}$ac_cv_sa_storage" >&6 6503 if test $ac_cv_sa_storage = yes; then 6504 cat >>confdefs.h <<\_ACEOF 6505#define HAVE_SOCKADDR_STORAGE 1 6506_ACEOF 6507 6508 fi 6509 6510if test "$ac_cv_sa_storage" = no; then 6511 missing_includes=yes 6512fi 6513 6514 6515 ac_cv_addrsz=yes 6516 echo "$as_me:$LINENO: checking for INADDRSZ" >&5 6517echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6 6518 if test "${ac_cv_inaddrsz+set}" = set; then 6519 echo $ECHO_N "(cached) $ECHO_C" >&6 6520else 6521 cat >conftest.$ac_ext <<_ACEOF 6522#line $LINENO "configure" 6523/* confdefs.h. */ 6524_ACEOF 6525cat confdefs.h >>conftest.$ac_ext 6526cat >>conftest.$ac_ext <<_ACEOF 6527/* end confdefs.h. */ 6528 6529# include <arpa/nameser.h> 6530int 6531main () 6532{ 6533int a = INADDRSZ 6534 ; 6535 return 0; 6536} 6537_ACEOF 6538rm -f conftest.$ac_objext 6539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6540 (eval $ac_compile) 2>&5 6541 ac_status=$? 6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6543 (exit $ac_status); } && 6544 { ac_try='test -s conftest.$ac_objext' 6545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6546 (eval $ac_try) 2>&5 6547 ac_status=$? 6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6549 (exit $ac_status); }; }; then 6550 ac_cv_inaddrsz=yes 6551else 6552 echo "$as_me: failed program was:" >&5 6553sed 's/^/| /' conftest.$ac_ext >&5 6554 6555ac_cv_inaddrsz=no 6556fi 6557rm -f conftest.$ac_objext conftest.$ac_ext 6558fi 6559 6560 echo "$as_me:$LINENO: result: $ac_cv_inaddrsz" >&5 6561echo "${ECHO_T}$ac_cv_inaddrsz" >&6 6562 if test $ac_cv_inaddrsz = yes; then 6563 cat >>confdefs.h <<\_ACEOF 6564#define HAVE_INADDRSZ 1 6565_ACEOF 6566 6567 else 6568 ac_cv_addrsz=no 6569 fi 6570 echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5 6571echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6 6572 if test "${ac_cv_in6addrsz+set}" = set; then 6573 echo $ECHO_N "(cached) $ECHO_C" >&6 6574else 6575 cat >conftest.$ac_ext <<_ACEOF 6576#line $LINENO "configure" 6577/* confdefs.h. */ 6578_ACEOF 6579cat confdefs.h >>conftest.$ac_ext 6580cat >>conftest.$ac_ext <<_ACEOF 6581/* end confdefs.h. */ 6582 6583# include <arpa/nameser.h> 6584int 6585main () 6586{ 6587int a = IN6ADDRSZ 6588 ; 6589 return 0; 6590} 6591_ACEOF 6592rm -f conftest.$ac_objext 6593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6594 (eval $ac_compile) 2>&5 6595 ac_status=$? 6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6597 (exit $ac_status); } && 6598 { ac_try='test -s conftest.$ac_objext' 6599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6600 (eval $ac_try) 2>&5 6601 ac_status=$? 6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6603 (exit $ac_status); }; }; then 6604 ac_cv_in6addrsz=yes 6605else 6606 echo "$as_me: failed program was:" >&5 6607sed 's/^/| /' conftest.$ac_ext >&5 6608 6609ac_cv_in6addrsz=no 6610fi 6611rm -f conftest.$ac_objext conftest.$ac_ext 6612fi 6613 6614 echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5 6615echo "${ECHO_T}$ac_cv_in6addrsz" >&6 6616 if test $ac_cv_in6addrsz = yes; then 6617 cat >>confdefs.h <<\_ACEOF 6618#define HAVE_IN6ADDRSZ 1 6619_ACEOF 6620 6621 else 6622 ac_cv_addrsz=no 6623 fi 6624 6625if test "$ac_cv_addrsz" = no; then 6626 missing_includes=yes 6627fi 6628 6629 6630 echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5 6631echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6 6632 if test "${ac_cv_res_inet6+set}" = set; then 6633 echo $ECHO_N "(cached) $ECHO_C" >&6 6634else 6635 cat >conftest.$ac_ext <<_ACEOF 6636#line $LINENO "configure" 6637/* confdefs.h. */ 6638_ACEOF 6639cat confdefs.h >>conftest.$ac_ext 6640cat >>conftest.$ac_ext <<_ACEOF 6641/* end confdefs.h. */ 6642 6643# include <sys/types.h> 6644# include <netinet/in.h> 6645# include <resolv.h> 6646int 6647main () 6648{ 6649int a = RES_USE_INET6 6650 ; 6651 return 0; 6652} 6653_ACEOF 6654rm -f conftest.$ac_objext 6655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6656 (eval $ac_compile) 2>&5 6657 ac_status=$? 6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6659 (exit $ac_status); } && 6660 { ac_try='test -s conftest.$ac_objext' 6661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6662 (eval $ac_try) 2>&5 6663 ac_status=$? 6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6665 (exit $ac_status); }; }; then 6666 ac_cv_res_inet6=yes 6667else 6668 echo "$as_me: failed program was:" >&5 6669sed 's/^/| /' conftest.$ac_ext >&5 6670 6671ac_cv_res_inet6=no 6672fi 6673rm -f conftest.$ac_objext conftest.$ac_ext 6674fi 6675 6676 echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5 6677echo "${ECHO_T}$ac_cv_res_inet6" >&6 6678 if test $ac_cv_res_inet6 = yes; then 6679 cat >>confdefs.h <<\_ACEOF 6680#define HAVE_RES_USE_INET6 1 6681_ACEOF 6682 6683 fi 6684 6685if test "$ac_cv_res_inet6" = no; then 6686 missing_includes=yes 6687fi 6688 6689 6690 echo "$as_me:$LINENO: checking for res_state_ext" >&5 6691echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6 6692 if test "${ac_cv_res_state_ext+set}" = set; then 6693 echo $ECHO_N "(cached) $ECHO_C" >&6 6694else 6695 cat >conftest.$ac_ext <<_ACEOF 6696#line $LINENO "configure" 6697/* confdefs.h. */ 6698_ACEOF 6699cat confdefs.h >>conftest.$ac_ext 6700cat >>conftest.$ac_ext <<_ACEOF 6701/* end confdefs.h. */ 6702 6703# include <sys/types.h> 6704# include <netinet/in.h> 6705# include <netinet6/in6.h> 6706# include <resolv.h> 6707int 6708main () 6709{ 6710struct __res_state_ext e 6711 ; 6712 return 0; 6713} 6714_ACEOF 6715rm -f conftest.$ac_objext 6716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6717 (eval $ac_compile) 2>&5 6718 ac_status=$? 6719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6720 (exit $ac_status); } && 6721 { ac_try='test -s conftest.$ac_objext' 6722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6723 (eval $ac_try) 2>&5 6724 ac_status=$? 6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6726 (exit $ac_status); }; }; then 6727 ac_cv_res_state_ext=yes 6728else 6729 echo "$as_me: failed program was:" >&5 6730sed 's/^/| /' conftest.$ac_ext >&5 6731 6732ac_cv_res_state_ext=no 6733fi 6734rm -f conftest.$ac_objext conftest.$ac_ext 6735fi 6736 6737 echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5 6738echo "${ECHO_T}$ac_cv_res_state_ext" >&6 6739 if test $ac_cv_res_state_ext = yes; then 6740 cat >>confdefs.h <<\_ACEOF 6741#define HAVE_RES_STATE_EXT 1 6742_ACEOF 6743 6744 fi 6745 6746if test "$ac_cv_res_state_ext" = no; then 6747 missing_includes=yes 6748fi 6749 6750 6751 echo "$as_me:$LINENO: checking for nsort in res_state" >&5 6752echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6 6753 if test "${ac_cv_res_state+set}" = set; then 6754 echo $ECHO_N "(cached) $ECHO_C" >&6 6755else 6756 cat >conftest.$ac_ext <<_ACEOF 6757#line $LINENO "configure" 6758/* confdefs.h. */ 6759_ACEOF 6760cat confdefs.h >>conftest.$ac_ext 6761cat >>conftest.$ac_ext <<_ACEOF 6762/* end confdefs.h. */ 6763 6764# include <sys/types.h> 6765# include <netinet/in.h> 6766# include <netinet6/in6.h> 6767# include <resolv.h> 6768int 6769main () 6770{ 6771struct __res_state e; e.nsort = 0 6772 ; 6773 return 0; 6774} 6775_ACEOF 6776rm -f conftest.$ac_objext 6777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6778 (eval $ac_compile) 2>&5 6779 ac_status=$? 6780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6781 (exit $ac_status); } && 6782 { ac_try='test -s conftest.$ac_objext' 6783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6784 (eval $ac_try) 2>&5 6785 ac_status=$? 6786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6787 (exit $ac_status); }; }; then 6788 ac_cv_res_state=yes 6789else 6790 echo "$as_me: failed program was:" >&5 6791sed 's/^/| /' conftest.$ac_ext >&5 6792 6793ac_cv_res_state=no 6794fi 6795rm -f conftest.$ac_objext conftest.$ac_ext 6796fi 6797 6798 echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5 6799echo "${ECHO_T}$ac_cv_res_state" >&6 6800 if test $ac_cv_res_state = yes; then 6801 cat >>confdefs.h <<\_ACEOF 6802#define HAVE_NEW_RES_STATE 1 6803_ACEOF 6804 6805 fi 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep 6816do 6817as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6818echo "$as_me:$LINENO: checking for $ac_func" >&5 6819echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6820if eval "test \"\${$as_ac_var+set}\" = set"; then 6821 echo $ECHO_N "(cached) $ECHO_C" >&6 6822else 6823 cat >conftest.$ac_ext <<_ACEOF 6824#line $LINENO "configure" 6825/* confdefs.h. */ 6826_ACEOF 6827cat confdefs.h >>conftest.$ac_ext 6828cat >>conftest.$ac_ext <<_ACEOF 6829/* end confdefs.h. */ 6830/* System header to define __stub macros and hopefully few prototypes, 6831 which can conflict with char $ac_func (); below. 6832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6833 <limits.h> exists even on freestanding compilers. */ 6834#ifdef __STDC__ 6835# include <limits.h> 6836#else 6837# include <assert.h> 6838#endif 6839/* Override any gcc2 internal prototype to avoid an error. */ 6840#ifdef __cplusplus 6841extern "C" 6842{ 6843#endif 6844/* We use char because int might match the return type of a gcc2 6845 builtin and then its argument prototype would still apply. */ 6846char $ac_func (); 6847/* The GNU C library defines this for functions which it implements 6848 to always fail with ENOSYS. Some functions are actually named 6849 something starting with __ and the normal name is an alias. */ 6850#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6851choke me 6852#else 6853char (*f) () = $ac_func; 6854#endif 6855#ifdef __cplusplus 6856} 6857#endif 6858 6859int 6860main () 6861{ 6862return f != $ac_func; 6863 ; 6864 return 0; 6865} 6866_ACEOF 6867rm -f conftest.$ac_objext conftest$ac_exeext 6868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6869 (eval $ac_link) 2>&5 6870 ac_status=$? 6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6872 (exit $ac_status); } && 6873 { ac_try='test -s conftest$ac_exeext' 6874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6875 (eval $ac_try) 2>&5 6876 ac_status=$? 6877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6878 (exit $ac_status); }; }; then 6879 eval "$as_ac_var=yes" 6880else 6881 echo "$as_me: failed program was:" >&5 6882sed 's/^/| /' conftest.$ac_ext >&5 6883 6884eval "$as_ac_var=no" 6885fi 6886rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6887fi 6888echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6889echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6890if test `eval echo '${'$as_ac_var'}'` = yes; then 6891 cat >>confdefs.h <<_ACEOF 6892#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6893_ACEOF 6894 6895else 6896 LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 6897fi 6898done 6899 6900 6901 6902for ac_func in strftime 6903do 6904as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6905echo "$as_me:$LINENO: checking for $ac_func" >&5 6906echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6907if eval "test \"\${$as_ac_var+set}\" = set"; then 6908 echo $ECHO_N "(cached) $ECHO_C" >&6 6909else 6910 cat >conftest.$ac_ext <<_ACEOF 6911#line $LINENO "configure" 6912/* confdefs.h. */ 6913_ACEOF 6914cat confdefs.h >>conftest.$ac_ext 6915cat >>conftest.$ac_ext <<_ACEOF 6916/* end confdefs.h. */ 6917/* System header to define __stub macros and hopefully few prototypes, 6918 which can conflict with char $ac_func (); below. 6919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6920 <limits.h> exists even on freestanding compilers. */ 6921#ifdef __STDC__ 6922# include <limits.h> 6923#else 6924# include <assert.h> 6925#endif 6926/* Override any gcc2 internal prototype to avoid an error. */ 6927#ifdef __cplusplus 6928extern "C" 6929{ 6930#endif 6931/* We use char because int might match the return type of a gcc2 6932 builtin and then its argument prototype would still apply. */ 6933char $ac_func (); 6934/* The GNU C library defines this for functions which it implements 6935 to always fail with ENOSYS. Some functions are actually named 6936 something starting with __ and the normal name is an alias. */ 6937#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6938choke me 6939#else 6940char (*f) () = $ac_func; 6941#endif 6942#ifdef __cplusplus 6943} 6944#endif 6945 6946int 6947main () 6948{ 6949return f != $ac_func; 6950 ; 6951 return 0; 6952} 6953_ACEOF 6954rm -f conftest.$ac_objext conftest$ac_exeext 6955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6956 (eval $ac_link) 2>&5 6957 ac_status=$? 6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6959 (exit $ac_status); } && 6960 { ac_try='test -s conftest$ac_exeext' 6961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6962 (eval $ac_try) 2>&5 6963 ac_status=$? 6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6965 (exit $ac_status); }; }; then 6966 eval "$as_ac_var=yes" 6967else 6968 echo "$as_me: failed program was:" >&5 6969sed 's/^/| /' conftest.$ac_ext >&5 6970 6971eval "$as_ac_var=no" 6972fi 6973rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6974fi 6975echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6976echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6977if test `eval echo '${'$as_ac_var'}'` = yes; then 6978 cat >>confdefs.h <<_ACEOF 6979#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6980_ACEOF 6981 6982fi 6983done 6984 6985 6986 6987for ac_func in setlinebuf alarm 6988do 6989as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6990echo "$as_me:$LINENO: checking for $ac_func" >&5 6991echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6992if eval "test \"\${$as_ac_var+set}\" = set"; then 6993 echo $ECHO_N "(cached) $ECHO_C" >&6 6994else 6995 cat >conftest.$ac_ext <<_ACEOF 6996#line $LINENO "configure" 6997/* confdefs.h. */ 6998_ACEOF 6999cat confdefs.h >>conftest.$ac_ext 7000cat >>conftest.$ac_ext <<_ACEOF 7001/* end confdefs.h. */ 7002/* System header to define __stub macros and hopefully few prototypes, 7003 which can conflict with char $ac_func (); below. 7004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7005 <limits.h> exists even on freestanding compilers. */ 7006#ifdef __STDC__ 7007# include <limits.h> 7008#else 7009# include <assert.h> 7010#endif 7011/* Override any gcc2 internal prototype to avoid an error. */ 7012#ifdef __cplusplus 7013extern "C" 7014{ 7015#endif 7016/* We use char because int might match the return type of a gcc2 7017 builtin and then its argument prototype would still apply. */ 7018char $ac_func (); 7019/* The GNU C library defines this for functions which it implements 7020 to always fail with ENOSYS. Some functions are actually named 7021 something starting with __ and the normal name is an alias. */ 7022#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7023choke me 7024#else 7025char (*f) () = $ac_func; 7026#endif 7027#ifdef __cplusplus 7028} 7029#endif 7030 7031int 7032main () 7033{ 7034return f != $ac_func; 7035 ; 7036 return 0; 7037} 7038_ACEOF 7039rm -f conftest.$ac_objext conftest$ac_exeext 7040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7041 (eval $ac_link) 2>&5 7042 ac_status=$? 7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7044 (exit $ac_status); } && 7045 { ac_try='test -s conftest$ac_exeext' 7046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7047 (eval $ac_try) 2>&5 7048 ac_status=$? 7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7050 (exit $ac_status); }; }; then 7051 eval "$as_ac_var=yes" 7052else 7053 echo "$as_me: failed program was:" >&5 7054sed 's/^/| /' conftest.$ac_ext >&5 7055 7056eval "$as_ac_var=no" 7057fi 7058rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7059fi 7060echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 7061echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7062if test `eval echo '${'$as_ac_var'}'` = yes; then 7063 cat >>confdefs.h <<_ACEOF 7064#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7065_ACEOF 7066 7067fi 7068done 7069 7070 7071needsnprintf=no 7072 7073 7074for ac_func in vsnprintf snprintf 7075do 7076as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7077echo "$as_me:$LINENO: checking for $ac_func" >&5 7078echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7079if eval "test \"\${$as_ac_var+set}\" = set"; then 7080 echo $ECHO_N "(cached) $ECHO_C" >&6 7081else 7082 cat >conftest.$ac_ext <<_ACEOF 7083#line $LINENO "configure" 7084/* confdefs.h. */ 7085_ACEOF 7086cat confdefs.h >>conftest.$ac_ext 7087cat >>conftest.$ac_ext <<_ACEOF 7088/* end confdefs.h. */ 7089/* System header to define __stub macros and hopefully few prototypes, 7090 which can conflict with char $ac_func (); below. 7091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7092 <limits.h> exists even on freestanding compilers. */ 7093#ifdef __STDC__ 7094# include <limits.h> 7095#else 7096# include <assert.h> 7097#endif 7098/* Override any gcc2 internal prototype to avoid an error. */ 7099#ifdef __cplusplus 7100extern "C" 7101{ 7102#endif 7103/* We use char because int might match the return type of a gcc2 7104 builtin and then its argument prototype would still apply. */ 7105char $ac_func (); 7106/* The GNU C library defines this for functions which it implements 7107 to always fail with ENOSYS. Some functions are actually named 7108 something starting with __ and the normal name is an alias. */ 7109#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7110choke me 7111#else 7112char (*f) () = $ac_func; 7113#endif 7114#ifdef __cplusplus 7115} 7116#endif 7117 7118int 7119main () 7120{ 7121return f != $ac_func; 7122 ; 7123 return 0; 7124} 7125_ACEOF 7126rm -f conftest.$ac_objext conftest$ac_exeext 7127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7128 (eval $ac_link) 2>&5 7129 ac_status=$? 7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7131 (exit $ac_status); } && 7132 { ac_try='test -s conftest$ac_exeext' 7133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7134 (eval $ac_try) 2>&5 7135 ac_status=$? 7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7137 (exit $ac_status); }; }; then 7138 eval "$as_ac_var=yes" 7139else 7140 echo "$as_me: failed program was:" >&5 7141sed 's/^/| /' conftest.$ac_ext >&5 7142 7143eval "$as_ac_var=no" 7144fi 7145rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7146fi 7147echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 7148echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7149if test `eval echo '${'$as_ac_var'}'` = yes; then 7150 cat >>confdefs.h <<_ACEOF 7151#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7152_ACEOF 7153 7154else 7155 needsnprintf=yes 7156fi 7157done 7158 7159if test $needsnprintf = yes; then 7160 LIBOBJS="$LIBOBJS snprintf.$ac_objext" 7161fi 7162 7163 7164 echo "$as_me:$LINENO: checking return type of signal handlers" >&5 7165echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 7166if test "${ac_cv_type_signal+set}" = set; then 7167 echo $ECHO_N "(cached) $ECHO_C" >&6 7168else 7169 cat >conftest.$ac_ext <<_ACEOF 7170#line $LINENO "configure" 7171/* confdefs.h. */ 7172_ACEOF 7173cat confdefs.h >>conftest.$ac_ext 7174cat >>conftest.$ac_ext <<_ACEOF 7175/* end confdefs.h. */ 7176#include <sys/types.h> 7177#include <signal.h> 7178#ifdef signal 7179# undef signal 7180#endif 7181#ifdef __cplusplus 7182extern "C" void (*signal (int, void (*)(int)))(int); 7183#else 7184void (*signal ()) (); 7185#endif 7186 7187int 7188main () 7189{ 7190int i; 7191 ; 7192 return 0; 7193} 7194_ACEOF 7195rm -f conftest.$ac_objext 7196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7197 (eval $ac_compile) 2>&5 7198 ac_status=$? 7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7200 (exit $ac_status); } && 7201 { ac_try='test -s conftest.$ac_objext' 7202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7203 (eval $ac_try) 2>&5 7204 ac_status=$? 7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7206 (exit $ac_status); }; }; then 7207 ac_cv_type_signal=void 7208else 7209 echo "$as_me: failed program was:" >&5 7210sed 's/^/| /' conftest.$ac_ext >&5 7211 7212ac_cv_type_signal=int 7213fi 7214rm -f conftest.$ac_objext conftest.$ac_ext 7215fi 7216echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 7217echo "${ECHO_T}$ac_cv_type_signal" >&6 7218 7219cat >>confdefs.h <<_ACEOF 7220#define RETSIGTYPE $ac_cv_type_signal 7221_ACEOF 7222 7223 7224 if test "$ac_cv_type_signal" = void ; then 7225 cat >>confdefs.h <<\_ACEOF 7226#define RETSIGVAL 7227_ACEOF 7228 7229 else 7230 cat >>confdefs.h <<\_ACEOF 7231#define RETSIGVAL (0) 7232_ACEOF 7233 7234 fi 7235 case "$host_os" in 7236 7237 irix*) 7238 cat >>confdefs.h <<\_ACEOF 7239#define _BSD_SIGNALS 1 7240_ACEOF 7241 7242 ;; 7243 7244 *) 7245 7246for ac_func in sigaction 7247do 7248as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7249echo "$as_me:$LINENO: checking for $ac_func" >&5 7250echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7251if eval "test \"\${$as_ac_var+set}\" = set"; then 7252 echo $ECHO_N "(cached) $ECHO_C" >&6 7253else 7254 cat >conftest.$ac_ext <<_ACEOF 7255#line $LINENO "configure" 7256/* confdefs.h. */ 7257_ACEOF 7258cat confdefs.h >>conftest.$ac_ext 7259cat >>conftest.$ac_ext <<_ACEOF 7260/* end confdefs.h. */ 7261/* System header to define __stub macros and hopefully few prototypes, 7262 which can conflict with char $ac_func (); below. 7263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7264 <limits.h> exists even on freestanding compilers. */ 7265#ifdef __STDC__ 7266# include <limits.h> 7267#else 7268# include <assert.h> 7269#endif 7270/* Override any gcc2 internal prototype to avoid an error. */ 7271#ifdef __cplusplus 7272extern "C" 7273{ 7274#endif 7275/* We use char because int might match the return type of a gcc2 7276 builtin and then its argument prototype would still apply. */ 7277char $ac_func (); 7278/* The GNU C library defines this for functions which it implements 7279 to always fail with ENOSYS. Some functions are actually named 7280 something starting with __ and the normal name is an alias. */ 7281#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7282choke me 7283#else 7284char (*f) () = $ac_func; 7285#endif 7286#ifdef __cplusplus 7287} 7288#endif 7289 7290int 7291main () 7292{ 7293return f != $ac_func; 7294 ; 7295 return 0; 7296} 7297_ACEOF 7298rm -f conftest.$ac_objext conftest$ac_exeext 7299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7300 (eval $ac_link) 2>&5 7301 ac_status=$? 7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7303 (exit $ac_status); } && 7304 { ac_try='test -s conftest$ac_exeext' 7305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7306 (eval $ac_try) 2>&5 7307 ac_status=$? 7308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7309 (exit $ac_status); }; }; then 7310 eval "$as_ac_var=yes" 7311else 7312 echo "$as_me: failed program was:" >&5 7313sed 's/^/| /' conftest.$ac_ext >&5 7314 7315eval "$as_ac_var=no" 7316fi 7317rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7318fi 7319echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 7320echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7321if test `eval echo '${'$as_ac_var'}'` = yes; then 7322 cat >>confdefs.h <<_ACEOF 7323#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7324_ACEOF 7325 7326fi 7327done 7328 7329 if test $ac_cv_func_sigaction = no ; then 7330 7331for ac_func in sigset 7332do 7333as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7334echo "$as_me:$LINENO: checking for $ac_func" >&5 7335echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7336if eval "test \"\${$as_ac_var+set}\" = set"; then 7337 echo $ECHO_N "(cached) $ECHO_C" >&6 7338else 7339 cat >conftest.$ac_ext <<_ACEOF 7340#line $LINENO "configure" 7341/* confdefs.h. */ 7342_ACEOF 7343cat confdefs.h >>conftest.$ac_ext 7344cat >>conftest.$ac_ext <<_ACEOF 7345/* end confdefs.h. */ 7346/* System header to define __stub macros and hopefully few prototypes, 7347 which can conflict with char $ac_func (); below. 7348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7349 <limits.h> exists even on freestanding compilers. */ 7350#ifdef __STDC__ 7351# include <limits.h> 7352#else 7353# include <assert.h> 7354#endif 7355/* Override any gcc2 internal prototype to avoid an error. */ 7356#ifdef __cplusplus 7357extern "C" 7358{ 7359#endif 7360/* We use char because int might match the return type of a gcc2 7361 builtin and then its argument prototype would still apply. */ 7362char $ac_func (); 7363/* The GNU C library defines this for functions which it implements 7364 to always fail with ENOSYS. Some functions are actually named 7365 something starting with __ and the normal name is an alias. */ 7366#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7367choke me 7368#else 7369char (*f) () = $ac_func; 7370#endif 7371#ifdef __cplusplus 7372} 7373#endif 7374 7375int 7376main () 7377{ 7378return f != $ac_func; 7379 ; 7380 return 0; 7381} 7382_ACEOF 7383rm -f conftest.$ac_objext conftest$ac_exeext 7384if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7385 (eval $ac_link) 2>&5 7386 ac_status=$? 7387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7388 (exit $ac_status); } && 7389 { ac_try='test -s conftest$ac_exeext' 7390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7391 (eval $ac_try) 2>&5 7392 ac_status=$? 7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7394 (exit $ac_status); }; }; then 7395 eval "$as_ac_var=yes" 7396else 7397 echo "$as_me: failed program was:" >&5 7398sed 's/^/| /' conftest.$ac_ext >&5 7399 7400eval "$as_ac_var=no" 7401fi 7402rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7403fi 7404echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 7405echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7406if test `eval echo '${'$as_ac_var'}'` = yes; then 7407 cat >>confdefs.h <<_ACEOF 7408#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7409_ACEOF 7410 7411fi 7412done 7413 7414 fi 7415 ;; 7416 esac 7417 7418echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5 7419echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6 7420if test "${ac_cv_search_dnet_htoa+set}" = set; then 7421 echo $ECHO_N "(cached) $ECHO_C" >&6 7422else 7423 ac_func_search_save_LIBS=$LIBS 7424ac_cv_search_dnet_htoa=no 7425cat >conftest.$ac_ext <<_ACEOF 7426#line $LINENO "configure" 7427/* confdefs.h. */ 7428_ACEOF 7429cat confdefs.h >>conftest.$ac_ext 7430cat >>conftest.$ac_ext <<_ACEOF 7431/* end confdefs.h. */ 7432 7433/* Override any gcc2 internal prototype to avoid an error. */ 7434#ifdef __cplusplus 7435extern "C" 7436#endif 7437/* We use char because int might match the return type of a gcc2 7438 builtin and then its argument prototype would still apply. */ 7439char dnet_htoa (); 7440int 7441main () 7442{ 7443dnet_htoa (); 7444 ; 7445 return 0; 7446} 7447_ACEOF 7448rm -f conftest.$ac_objext conftest$ac_exeext 7449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7450 (eval $ac_link) 2>&5 7451 ac_status=$? 7452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7453 (exit $ac_status); } && 7454 { ac_try='test -s conftest$ac_exeext' 7455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7456 (eval $ac_try) 2>&5 7457 ac_status=$? 7458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7459 (exit $ac_status); }; }; then 7460 ac_cv_search_dnet_htoa="none required" 7461else 7462 echo "$as_me: failed program was:" >&5 7463sed 's/^/| /' conftest.$ac_ext >&5 7464 7465fi 7466rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7467if test "$ac_cv_search_dnet_htoa" = no; then 7468 for ac_lib in dnet; do 7469 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7470 cat >conftest.$ac_ext <<_ACEOF 7471#line $LINENO "configure" 7472/* confdefs.h. */ 7473_ACEOF 7474cat confdefs.h >>conftest.$ac_ext 7475cat >>conftest.$ac_ext <<_ACEOF 7476/* end confdefs.h. */ 7477 7478/* Override any gcc2 internal prototype to avoid an error. */ 7479#ifdef __cplusplus 7480extern "C" 7481#endif 7482/* We use char because int might match the return type of a gcc2 7483 builtin and then its argument prototype would still apply. */ 7484char dnet_htoa (); 7485int 7486main () 7487{ 7488dnet_htoa (); 7489 ; 7490 return 0; 7491} 7492_ACEOF 7493rm -f conftest.$ac_objext conftest$ac_exeext 7494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7495 (eval $ac_link) 2>&5 7496 ac_status=$? 7497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7498 (exit $ac_status); } && 7499 { ac_try='test -s conftest$ac_exeext' 7500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7501 (eval $ac_try) 2>&5 7502 ac_status=$? 7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7504 (exit $ac_status); }; }; then 7505 ac_cv_search_dnet_htoa="-l$ac_lib" 7506break 7507else 7508 echo "$as_me: failed program was:" >&5 7509sed 's/^/| /' conftest.$ac_ext >&5 7510 7511fi 7512rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7513 done 7514fi 7515LIBS=$ac_func_search_save_LIBS 7516fi 7517echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5 7518echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6 7519if test "$ac_cv_search_dnet_htoa" != no; then 7520 test "$ac_cv_search_dnet_htoa" = "none required" || LIBS="$ac_cv_search_dnet_htoa $LIBS" 7521 cat >>confdefs.h <<\_ACEOF 7522#define HAVE_DNET_HTOA 1 7523_ACEOF 7524 7525fi 7526 7527 7528 7529echo "$as_me:$LINENO: checking for main in -lrpc" >&5 7530echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6 7531if test "${ac_cv_lib_rpc_main+set}" = set; then 7532 echo $ECHO_N "(cached) $ECHO_C" >&6 7533else 7534 ac_check_lib_save_LIBS=$LIBS 7535LIBS="-lrpc $LIBS" 7536cat >conftest.$ac_ext <<_ACEOF 7537#line $LINENO "configure" 7538/* confdefs.h. */ 7539_ACEOF 7540cat confdefs.h >>conftest.$ac_ext 7541cat >>conftest.$ac_ext <<_ACEOF 7542/* end confdefs.h. */ 7543 7544 7545int 7546main () 7547{ 7548main (); 7549 ; 7550 return 0; 7551} 7552_ACEOF 7553rm -f conftest.$ac_objext conftest$ac_exeext 7554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7555 (eval $ac_link) 2>&5 7556 ac_status=$? 7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7558 (exit $ac_status); } && 7559 { ac_try='test -s conftest$ac_exeext' 7560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7561 (eval $ac_try) 2>&5 7562 ac_status=$? 7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7564 (exit $ac_status); }; }; then 7565 ac_cv_lib_rpc_main=yes 7566else 7567 echo "$as_me: failed program was:" >&5 7568sed 's/^/| /' conftest.$ac_ext >&5 7569 7570ac_cv_lib_rpc_main=no 7571fi 7572rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7573LIBS=$ac_check_lib_save_LIBS 7574fi 7575echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5 7576echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6 7577if test $ac_cv_lib_rpc_main = yes; then 7578 cat >>confdefs.h <<_ACEOF 7579#define HAVE_LIBRPC 1 7580_ACEOF 7581 7582 LIBS="-lrpc $LIBS" 7583 7584fi 7585 7586echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5 7587echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6 7588if test "${ac_cv_search_getrpcbynumber+set}" = set; then 7589 echo $ECHO_N "(cached) $ECHO_C" >&6 7590else 7591 ac_func_search_save_LIBS=$LIBS 7592ac_cv_search_getrpcbynumber=no 7593cat >conftest.$ac_ext <<_ACEOF 7594#line $LINENO "configure" 7595/* confdefs.h. */ 7596_ACEOF 7597cat confdefs.h >>conftest.$ac_ext 7598cat >>conftest.$ac_ext <<_ACEOF 7599/* end confdefs.h. */ 7600 7601/* Override any gcc2 internal prototype to avoid an error. */ 7602#ifdef __cplusplus 7603extern "C" 7604#endif 7605/* We use char because int might match the return type of a gcc2 7606 builtin and then its argument prototype would still apply. */ 7607char getrpcbynumber (); 7608int 7609main () 7610{ 7611getrpcbynumber (); 7612 ; 7613 return 0; 7614} 7615_ACEOF 7616rm -f conftest.$ac_objext conftest$ac_exeext 7617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7618 (eval $ac_link) 2>&5 7619 ac_status=$? 7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7621 (exit $ac_status); } && 7622 { ac_try='test -s conftest$ac_exeext' 7623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7624 (eval $ac_try) 2>&5 7625 ac_status=$? 7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7627 (exit $ac_status); }; }; then 7628 ac_cv_search_getrpcbynumber="none required" 7629else 7630 echo "$as_me: failed program was:" >&5 7631sed 's/^/| /' conftest.$ac_ext >&5 7632 7633fi 7634rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7635if test "$ac_cv_search_getrpcbynumber" = no; then 7636 for ac_lib in nsl; do 7637 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7638 cat >conftest.$ac_ext <<_ACEOF 7639#line $LINENO "configure" 7640/* confdefs.h. */ 7641_ACEOF 7642cat confdefs.h >>conftest.$ac_ext 7643cat >>conftest.$ac_ext <<_ACEOF 7644/* end confdefs.h. */ 7645 7646/* Override any gcc2 internal prototype to avoid an error. */ 7647#ifdef __cplusplus 7648extern "C" 7649#endif 7650/* We use char because int might match the return type of a gcc2 7651 builtin and then its argument prototype would still apply. */ 7652char getrpcbynumber (); 7653int 7654main () 7655{ 7656getrpcbynumber (); 7657 ; 7658 return 0; 7659} 7660_ACEOF 7661rm -f conftest.$ac_objext conftest$ac_exeext 7662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7663 (eval $ac_link) 2>&5 7664 ac_status=$? 7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7666 (exit $ac_status); } && 7667 { ac_try='test -s conftest$ac_exeext' 7668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7669 (eval $ac_try) 2>&5 7670 ac_status=$? 7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7672 (exit $ac_status); }; }; then 7673 ac_cv_search_getrpcbynumber="-l$ac_lib" 7674break 7675else 7676 echo "$as_me: failed program was:" >&5 7677sed 's/^/| /' conftest.$ac_ext >&5 7678 7679fi 7680rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7681 done 7682fi 7683LIBS=$ac_func_search_save_LIBS 7684fi 7685echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5 7686echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6 7687if test "$ac_cv_search_getrpcbynumber" != no; then 7688 test "$ac_cv_search_getrpcbynumber" = "none required" || LIBS="$ac_cv_search_getrpcbynumber $LIBS" 7689 cat >>confdefs.h <<\_ACEOF 7690#define HAVE_GETRPCBYNUMBER 1 7691_ACEOF 7692 7693fi 7694 7695 7696 7697 7698 # Most operating systems have gethostbyname() in the default searched 7699 # libraries (i.e. libc): 7700 # Some OSes (eg. Solaris) place it in libnsl 7701 # Some strange OSes (SINIX) have it in libsocket: 7702 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5 7703echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6 7704if test "${ac_cv_search_gethostbyname+set}" = set; then 7705 echo $ECHO_N "(cached) $ECHO_C" >&6 7706else 7707 ac_func_search_save_LIBS=$LIBS 7708ac_cv_search_gethostbyname=no 7709cat >conftest.$ac_ext <<_ACEOF 7710#line $LINENO "configure" 7711/* confdefs.h. */ 7712_ACEOF 7713cat confdefs.h >>conftest.$ac_ext 7714cat >>conftest.$ac_ext <<_ACEOF 7715/* end confdefs.h. */ 7716 7717/* Override any gcc2 internal prototype to avoid an error. */ 7718#ifdef __cplusplus 7719extern "C" 7720#endif 7721/* We use char because int might match the return type of a gcc2 7722 builtin and then its argument prototype would still apply. */ 7723char gethostbyname (); 7724int 7725main () 7726{ 7727gethostbyname (); 7728 ; 7729 return 0; 7730} 7731_ACEOF 7732rm -f conftest.$ac_objext conftest$ac_exeext 7733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7734 (eval $ac_link) 2>&5 7735 ac_status=$? 7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7737 (exit $ac_status); } && 7738 { ac_try='test -s conftest$ac_exeext' 7739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7740 (eval $ac_try) 2>&5 7741 ac_status=$? 7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7743 (exit $ac_status); }; }; then 7744 ac_cv_search_gethostbyname="none required" 7745else 7746 echo "$as_me: failed program was:" >&5 7747sed 's/^/| /' conftest.$ac_ext >&5 7748 7749fi 7750rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7751if test "$ac_cv_search_gethostbyname" = no; then 7752 for ac_lib in nsl socket resolv; do 7753 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7754 cat >conftest.$ac_ext <<_ACEOF 7755#line $LINENO "configure" 7756/* confdefs.h. */ 7757_ACEOF 7758cat confdefs.h >>conftest.$ac_ext 7759cat >>conftest.$ac_ext <<_ACEOF 7760/* end confdefs.h. */ 7761 7762/* Override any gcc2 internal prototype to avoid an error. */ 7763#ifdef __cplusplus 7764extern "C" 7765#endif 7766/* We use char because int might match the return type of a gcc2 7767 builtin and then its argument prototype would still apply. */ 7768char gethostbyname (); 7769int 7770main () 7771{ 7772gethostbyname (); 7773 ; 7774 return 0; 7775} 7776_ACEOF 7777rm -f conftest.$ac_objext conftest$ac_exeext 7778if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7779 (eval $ac_link) 2>&5 7780 ac_status=$? 7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7782 (exit $ac_status); } && 7783 { ac_try='test -s conftest$ac_exeext' 7784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7785 (eval $ac_try) 2>&5 7786 ac_status=$? 7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7788 (exit $ac_status); }; }; then 7789 ac_cv_search_gethostbyname="-l$ac_lib" 7790break 7791else 7792 echo "$as_me: failed program was:" >&5 7793sed 's/^/| /' conftest.$ac_ext >&5 7794 7795fi 7796rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7797 done 7798fi 7799LIBS=$ac_func_search_save_LIBS 7800fi 7801echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5 7802echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6 7803if test "$ac_cv_search_gethostbyname" != no; then 7804 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS" 7805 7806fi 7807 7808 # Unfortunately libsocket sometimes depends on libnsl and 7809 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this. 7810 if test "$ac_cv_search_gethostbyname" = "no" 7811 then 7812 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5 7813echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6 7814if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then 7815 echo $ECHO_N "(cached) $ECHO_C" >&6 7816else 7817 ac_check_lib_save_LIBS=$LIBS 7818LIBS="-lsocket -lnsl $LIBS" 7819cat >conftest.$ac_ext <<_ACEOF 7820#line $LINENO "configure" 7821/* confdefs.h. */ 7822_ACEOF 7823cat confdefs.h >>conftest.$ac_ext 7824cat >>conftest.$ac_ext <<_ACEOF 7825/* end confdefs.h. */ 7826 7827/* Override any gcc2 internal prototype to avoid an error. */ 7828#ifdef __cplusplus 7829extern "C" 7830#endif 7831/* We use char because int might match the return type of a gcc2 7832 builtin and then its argument prototype would still apply. */ 7833char gethostbyname (); 7834int 7835main () 7836{ 7837gethostbyname (); 7838 ; 7839 return 0; 7840} 7841_ACEOF 7842rm -f conftest.$ac_objext conftest$ac_exeext 7843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7844 (eval $ac_link) 2>&5 7845 ac_status=$? 7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7847 (exit $ac_status); } && 7848 { ac_try='test -s conftest$ac_exeext' 7849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7850 (eval $ac_try) 2>&5 7851 ac_status=$? 7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7853 (exit $ac_status); }; }; then 7854 ac_cv_lib_socket_gethostbyname=yes 7855else 7856 echo "$as_me: failed program was:" >&5 7857sed 's/^/| /' conftest.$ac_ext >&5 7858 7859ac_cv_lib_socket_gethostbyname=no 7860fi 7861rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7862LIBS=$ac_check_lib_save_LIBS 7863fi 7864echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5 7865echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6 7866if test $ac_cv_lib_socket_gethostbyname = yes; then 7867 LIBS="-lsocket -lnsl $LIBS" 7868fi 7869 7870 fi 7871 echo "$as_me:$LINENO: checking for library containing socket" >&5 7872echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6 7873if test "${ac_cv_search_socket+set}" = set; then 7874 echo $ECHO_N "(cached) $ECHO_C" >&6 7875else 7876 ac_func_search_save_LIBS=$LIBS 7877ac_cv_search_socket=no 7878cat >conftest.$ac_ext <<_ACEOF 7879#line $LINENO "configure" 7880/* confdefs.h. */ 7881_ACEOF 7882cat confdefs.h >>conftest.$ac_ext 7883cat >>conftest.$ac_ext <<_ACEOF 7884/* end confdefs.h. */ 7885 7886/* Override any gcc2 internal prototype to avoid an error. */ 7887#ifdef __cplusplus 7888extern "C" 7889#endif 7890/* We use char because int might match the return type of a gcc2 7891 builtin and then its argument prototype would still apply. */ 7892char socket (); 7893int 7894main () 7895{ 7896socket (); 7897 ; 7898 return 0; 7899} 7900_ACEOF 7901rm -f conftest.$ac_objext conftest$ac_exeext 7902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7903 (eval $ac_link) 2>&5 7904 ac_status=$? 7905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7906 (exit $ac_status); } && 7907 { ac_try='test -s conftest$ac_exeext' 7908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7909 (eval $ac_try) 2>&5 7910 ac_status=$? 7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7912 (exit $ac_status); }; }; then 7913 ac_cv_search_socket="none required" 7914else 7915 echo "$as_me: failed program was:" >&5 7916sed 's/^/| /' conftest.$ac_ext >&5 7917 7918fi 7919rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7920if test "$ac_cv_search_socket" = no; then 7921 for ac_lib in socket; do 7922 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7923 cat >conftest.$ac_ext <<_ACEOF 7924#line $LINENO "configure" 7925/* confdefs.h. */ 7926_ACEOF 7927cat confdefs.h >>conftest.$ac_ext 7928cat >>conftest.$ac_ext <<_ACEOF 7929/* end confdefs.h. */ 7930 7931/* Override any gcc2 internal prototype to avoid an error. */ 7932#ifdef __cplusplus 7933extern "C" 7934#endif 7935/* We use char because int might match the return type of a gcc2 7936 builtin and then its argument prototype would still apply. */ 7937char socket (); 7938int 7939main () 7940{ 7941socket (); 7942 ; 7943 return 0; 7944} 7945_ACEOF 7946rm -f conftest.$ac_objext conftest$ac_exeext 7947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7948 (eval $ac_link) 2>&5 7949 ac_status=$? 7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7951 (exit $ac_status); } && 7952 { ac_try='test -s conftest$ac_exeext' 7953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7954 (eval $ac_try) 2>&5 7955 ac_status=$? 7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7957 (exit $ac_status); }; }; then 7958 ac_cv_search_socket="-l$ac_lib" 7959break 7960else 7961 echo "$as_me: failed program was:" >&5 7962sed 's/^/| /' conftest.$ac_ext >&5 7963 7964fi 7965rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7966 done 7967fi 7968LIBS=$ac_func_search_save_LIBS 7969fi 7970echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5 7971echo "${ECHO_T}$ac_cv_search_socket" >&6 7972if test "$ac_cv_search_socket" != no; then 7973 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS" 7974 7975else 7976 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 7977echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 7978if test "${ac_cv_lib_socket_socket+set}" = set; then 7979 echo $ECHO_N "(cached) $ECHO_C" >&6 7980else 7981 ac_check_lib_save_LIBS=$LIBS 7982LIBS="-lsocket -lnsl $LIBS" 7983cat >conftest.$ac_ext <<_ACEOF 7984#line $LINENO "configure" 7985/* confdefs.h. */ 7986_ACEOF 7987cat confdefs.h >>conftest.$ac_ext 7988cat >>conftest.$ac_ext <<_ACEOF 7989/* end confdefs.h. */ 7990 7991/* Override any gcc2 internal prototype to avoid an error. */ 7992#ifdef __cplusplus 7993extern "C" 7994#endif 7995/* We use char because int might match the return type of a gcc2 7996 builtin and then its argument prototype would still apply. */ 7997char socket (); 7998int 7999main () 8000{ 8001socket (); 8002 ; 8003 return 0; 8004} 8005_ACEOF 8006rm -f conftest.$ac_objext conftest$ac_exeext 8007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8008 (eval $ac_link) 2>&5 8009 ac_status=$? 8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8011 (exit $ac_status); } && 8012 { ac_try='test -s conftest$ac_exeext' 8013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8014 (eval $ac_try) 2>&5 8015 ac_status=$? 8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8017 (exit $ac_status); }; }; then 8018 ac_cv_lib_socket_socket=yes 8019else 8020 echo "$as_me: failed program was:" >&5 8021sed 's/^/| /' conftest.$ac_ext >&5 8022 8023ac_cv_lib_socket_socket=no 8024fi 8025rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8026LIBS=$ac_check_lib_save_LIBS 8027fi 8028echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 8029echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 8030if test $ac_cv_lib_socket_socket = yes; then 8031 LIBS="-lsocket -lnsl $LIBS" 8032fi 8033 8034fi 8035 8036 # DLPI needs putmsg under HPUX so test for -lstr while we're at it 8037 echo "$as_me:$LINENO: checking for library containing putmsg" >&5 8038echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6 8039if test "${ac_cv_search_putmsg+set}" = set; then 8040 echo $ECHO_N "(cached) $ECHO_C" >&6 8041else 8042 ac_func_search_save_LIBS=$LIBS 8043ac_cv_search_putmsg=no 8044cat >conftest.$ac_ext <<_ACEOF 8045#line $LINENO "configure" 8046/* confdefs.h. */ 8047_ACEOF 8048cat confdefs.h >>conftest.$ac_ext 8049cat >>conftest.$ac_ext <<_ACEOF 8050/* end confdefs.h. */ 8051 8052/* Override any gcc2 internal prototype to avoid an error. */ 8053#ifdef __cplusplus 8054extern "C" 8055#endif 8056/* We use char because int might match the return type of a gcc2 8057 builtin and then its argument prototype would still apply. */ 8058char putmsg (); 8059int 8060main () 8061{ 8062putmsg (); 8063 ; 8064 return 0; 8065} 8066_ACEOF 8067rm -f conftest.$ac_objext conftest$ac_exeext 8068if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8069 (eval $ac_link) 2>&5 8070 ac_status=$? 8071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8072 (exit $ac_status); } && 8073 { ac_try='test -s conftest$ac_exeext' 8074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8075 (eval $ac_try) 2>&5 8076 ac_status=$? 8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8078 (exit $ac_status); }; }; then 8079 ac_cv_search_putmsg="none required" 8080else 8081 echo "$as_me: failed program was:" >&5 8082sed 's/^/| /' conftest.$ac_ext >&5 8083 8084fi 8085rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8086if test "$ac_cv_search_putmsg" = no; then 8087 for ac_lib in str; do 8088 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8089 cat >conftest.$ac_ext <<_ACEOF 8090#line $LINENO "configure" 8091/* confdefs.h. */ 8092_ACEOF 8093cat confdefs.h >>conftest.$ac_ext 8094cat >>conftest.$ac_ext <<_ACEOF 8095/* end confdefs.h. */ 8096 8097/* Override any gcc2 internal prototype to avoid an error. */ 8098#ifdef __cplusplus 8099extern "C" 8100#endif 8101/* We use char because int might match the return type of a gcc2 8102 builtin and then its argument prototype would still apply. */ 8103char putmsg (); 8104int 8105main () 8106{ 8107putmsg (); 8108 ; 8109 return 0; 8110} 8111_ACEOF 8112rm -f conftest.$ac_objext conftest$ac_exeext 8113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8114 (eval $ac_link) 2>&5 8115 ac_status=$? 8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8117 (exit $ac_status); } && 8118 { ac_try='test -s conftest$ac_exeext' 8119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8120 (eval $ac_try) 2>&5 8121 ac_status=$? 8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8123 (exit $ac_status); }; }; then 8124 ac_cv_search_putmsg="-l$ac_lib" 8125break 8126else 8127 echo "$as_me: failed program was:" >&5 8128sed 's/^/| /' conftest.$ac_ext >&5 8129 8130fi 8131rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8132 done 8133fi 8134LIBS=$ac_func_search_save_LIBS 8135fi 8136echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5 8137echo "${ECHO_T}$ac_cv_search_putmsg" >&6 8138if test "$ac_cv_search_putmsg" != no; then 8139 test "$ac_cv_search_putmsg" = "none required" || LIBS="$ac_cv_search_putmsg $LIBS" 8140 8141fi 8142 8143 8144 8145 LBL_LIBS="$LIBS" 8146 pfopen=/usr/examples/packetfilter/pfopen.c 8147 if test -f $pfopen ; then 8148 8149for ac_func in pfopen 8150do 8151as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8152echo "$as_me:$LINENO: checking for $ac_func" >&5 8153echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8154if eval "test \"\${$as_ac_var+set}\" = set"; then 8155 echo $ECHO_N "(cached) $ECHO_C" >&6 8156else 8157 cat >conftest.$ac_ext <<_ACEOF 8158#line $LINENO "configure" 8159/* confdefs.h. */ 8160_ACEOF 8161cat confdefs.h >>conftest.$ac_ext 8162cat >>conftest.$ac_ext <<_ACEOF 8163/* end confdefs.h. */ 8164/* System header to define __stub macros and hopefully few prototypes, 8165 which can conflict with char $ac_func (); below. 8166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8167 <limits.h> exists even on freestanding compilers. */ 8168#ifdef __STDC__ 8169# include <limits.h> 8170#else 8171# include <assert.h> 8172#endif 8173/* Override any gcc2 internal prototype to avoid an error. */ 8174#ifdef __cplusplus 8175extern "C" 8176{ 8177#endif 8178/* We use char because int might match the return type of a gcc2 8179 builtin and then its argument prototype would still apply. */ 8180char $ac_func (); 8181/* The GNU C library defines this for functions which it implements 8182 to always fail with ENOSYS. Some functions are actually named 8183 something starting with __ and the normal name is an alias. */ 8184#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8185choke me 8186#else 8187char (*f) () = $ac_func; 8188#endif 8189#ifdef __cplusplus 8190} 8191#endif 8192 8193int 8194main () 8195{ 8196return f != $ac_func; 8197 ; 8198 return 0; 8199} 8200_ACEOF 8201rm -f conftest.$ac_objext conftest$ac_exeext 8202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8203 (eval $ac_link) 2>&5 8204 ac_status=$? 8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8206 (exit $ac_status); } && 8207 { ac_try='test -s conftest$ac_exeext' 8208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8209 (eval $ac_try) 2>&5 8210 ac_status=$? 8211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8212 (exit $ac_status); }; }; then 8213 eval "$as_ac_var=yes" 8214else 8215 echo "$as_me: failed program was:" >&5 8216sed 's/^/| /' conftest.$ac_ext >&5 8217 8218eval "$as_ac_var=no" 8219fi 8220rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8221fi 8222echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 8223echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 8224if test `eval echo '${'$as_ac_var'}'` = yes; then 8225 cat >>confdefs.h <<_ACEOF 8226#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8227_ACEOF 8228 8229fi 8230done 8231 8232 if test $ac_cv_func_pfopen = "no" ; then 8233 echo "$as_me:$LINENO: result: Using $pfopen" >&5 8234echo "${ECHO_T}Using $pfopen" >&6 8235 LIBS="$LIBS $pfopen" 8236 fi 8237 fi 8238 echo "$as_me:$LINENO: checking for local pcap library" >&5 8239echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6 8240 libpcap=FAIL 8241 lastdir=FAIL 8242 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \ 8243 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'` 8244 for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do 8245 basedir=`echo $dir | sed -e 's/[ab][0-9]*$//'` 8246 if test $lastdir = $basedir ; then 8247 continue; 8248 fi 8249 lastdir=$dir 8250 if test -r $dir/libpcap.a ; then 8251 libpcap=$dir/libpcap.a 8252 d=$dir 8253 fi 8254 done 8255 if test $libpcap = FAIL ; then 8256 echo "$as_me:$LINENO: result: not found" >&5 8257echo "${ECHO_T}not found" >&6 8258 echo "$as_me:$LINENO: checking for main in -lpcap" >&5 8259echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6 8260if test "${ac_cv_lib_pcap_main+set}" = set; then 8261 echo $ECHO_N "(cached) $ECHO_C" >&6 8262else 8263 ac_check_lib_save_LIBS=$LIBS 8264LIBS="-lpcap $LIBS" 8265cat >conftest.$ac_ext <<_ACEOF 8266#line $LINENO "configure" 8267/* confdefs.h. */ 8268_ACEOF 8269cat confdefs.h >>conftest.$ac_ext 8270cat >>conftest.$ac_ext <<_ACEOF 8271/* end confdefs.h. */ 8272 8273 8274int 8275main () 8276{ 8277main (); 8278 ; 8279 return 0; 8280} 8281_ACEOF 8282rm -f conftest.$ac_objext conftest$ac_exeext 8283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8284 (eval $ac_link) 2>&5 8285 ac_status=$? 8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8287 (exit $ac_status); } && 8288 { ac_try='test -s conftest$ac_exeext' 8289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8290 (eval $ac_try) 2>&5 8291 ac_status=$? 8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8293 (exit $ac_status); }; }; then 8294 ac_cv_lib_pcap_main=yes 8295else 8296 echo "$as_me: failed program was:" >&5 8297sed 's/^/| /' conftest.$ac_ext >&5 8298 8299ac_cv_lib_pcap_main=no 8300fi 8301rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8302LIBS=$ac_check_lib_save_LIBS 8303fi 8304echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5 8305echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6 8306if test $ac_cv_lib_pcap_main = yes; then 8307 libpcap="-lpcap" 8308fi 8309 8310 if test $libpcap = FAIL ; then 8311 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5 8312echo "$as_me: error: see the INSTALL doc for more info" >&2;} 8313 { (exit 1); exit 1; }; } 8314 fi 8315 echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5 8316echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6 8317 if test \( ! -r /usr/local/include/pcap.h \) -a \ 8318 \( ! -r /usr/include/pcap.h \); then 8319 if test -r /usr/local/include/pcap/pcap.h; then 8320 d="/usr/local/include/pcap" 8321 elif test -r /usr/include/pcap/pcap.h; then 8322 d="/usr/include/pcap" 8323 fi 8324 fi 8325 if test -z "$d" ; then 8326 echo "$as_me:$LINENO: result: not found" >&5 8327echo "${ECHO_T}not found" >&6 8328 else 8329 V_INCLS="-I$d $V_INCLS" 8330 echo "$as_me:$LINENO: result: found -- -I$d added" >&5 8331echo "${ECHO_T}found -- -I$d added" >&6 8332 fi 8333 else 8334 V_PCAPDEP=$libpcap 8335 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \ 8336 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'` 8337 if test -r $d/pcap.h; then 8338 V_INCLS="-I$d $V_INCLS" 8339 elif test -r $places/pcap.h; then 8340 V_INCLS="-I$places $V_INCLS" 8341 else 8342 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5 8343echo "$as_me: error: cannot find pcap.h" >&2;} 8344 { (exit see INSTALL); exit see INSTALL; }; } 8345 fi 8346 echo "$as_me:$LINENO: result: $libpcap" >&5 8347echo "${ECHO_T}$libpcap" >&6 8348 fi 8349 LIBS="$libpcap $LIBS" 8350 case "$host_os" in 8351 8352 aix*) 8353 pseexe="/lib/pse.exp" 8354 echo "$as_me:$LINENO: checking for $pseexe" >&5 8355echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6 8356 if test -f $pseexe ; then 8357 echo "$as_me:$LINENO: result: yes" >&5 8358echo "${ECHO_T}yes" >&6 8359 LIBS="$LIBS -I:$pseexe" 8360 fi 8361 # 8362 # We need "-lodm" and "-lcfg", as libpcap requires them on 8363 # AIX, and we just build a static libpcap.a and thus can't 8364 # arrange that when you link with libpcap you automatically 8365 # link with those libraries. 8366 # 8367 LIBS="$LIBS -lodm -lcfg" 8368 ;; 8369 esac 8370 8371 echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5 8372echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6 8373if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then 8374 echo $ECHO_N "(cached) $ECHO_C" >&6 8375else 8376 cat >conftest.$ac_ext <<_ACEOF 8377#line $LINENO "configure" 8378/* confdefs.h. */ 8379_ACEOF 8380cat confdefs.h >>conftest.$ac_ext 8381cat >>conftest.$ac_ext <<_ACEOF 8382/* end confdefs.h. */ 8383/* System header to define __stub macros and hopefully few prototypes, 8384 which can conflict with char pcap_list_datalinks (); below. 8385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8386 <limits.h> exists even on freestanding compilers. */ 8387#ifdef __STDC__ 8388# include <limits.h> 8389#else 8390# include <assert.h> 8391#endif 8392/* Override any gcc2 internal prototype to avoid an error. */ 8393#ifdef __cplusplus 8394extern "C" 8395{ 8396#endif 8397/* We use char because int might match the return type of a gcc2 8398 builtin and then its argument prototype would still apply. */ 8399char pcap_list_datalinks (); 8400/* The GNU C library defines this for functions which it implements 8401 to always fail with ENOSYS. Some functions are actually named 8402 something starting with __ and the normal name is an alias. */ 8403#if defined (__stub_pcap_list_datalinks) || defined (__stub___pcap_list_datalinks) 8404choke me 8405#else 8406char (*f) () = pcap_list_datalinks; 8407#endif 8408#ifdef __cplusplus 8409} 8410#endif 8411 8412int 8413main () 8414{ 8415return f != pcap_list_datalinks; 8416 ; 8417 return 0; 8418} 8419_ACEOF 8420rm -f conftest.$ac_objext conftest$ac_exeext 8421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8422 (eval $ac_link) 2>&5 8423 ac_status=$? 8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8425 (exit $ac_status); } && 8426 { ac_try='test -s conftest$ac_exeext' 8427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8428 (eval $ac_try) 2>&5 8429 ac_status=$? 8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8431 (exit $ac_status); }; }; then 8432 ac_cv_func_pcap_list_datalinks=yes 8433else 8434 echo "$as_me: failed program was:" >&5 8435sed 's/^/| /' conftest.$ac_ext >&5 8436 8437ac_cv_func_pcap_list_datalinks=no 8438fi 8439rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8440fi 8441echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5 8442echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6 8443if test $ac_cv_func_pcap_list_datalinks = yes; then 8444 cat >>confdefs.h <<\_ACEOF 8445#define HAVE_PCAP_LIST_DATALINKS 1 8446_ACEOF 8447 8448else 8449 LIBOBJS="$LIBOBJS datalinks.$ac_objext" 8450fi 8451 8452 echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5 8453echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6 8454if test "${ac_cv_func_pcap_set_datalink+set}" = set; then 8455 echo $ECHO_N "(cached) $ECHO_C" >&6 8456else 8457 cat >conftest.$ac_ext <<_ACEOF 8458#line $LINENO "configure" 8459/* confdefs.h. */ 8460_ACEOF 8461cat confdefs.h >>conftest.$ac_ext 8462cat >>conftest.$ac_ext <<_ACEOF 8463/* end confdefs.h. */ 8464/* System header to define __stub macros and hopefully few prototypes, 8465 which can conflict with char pcap_set_datalink (); below. 8466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8467 <limits.h> exists even on freestanding compilers. */ 8468#ifdef __STDC__ 8469# include <limits.h> 8470#else 8471# include <assert.h> 8472#endif 8473/* Override any gcc2 internal prototype to avoid an error. */ 8474#ifdef __cplusplus 8475extern "C" 8476{ 8477#endif 8478/* We use char because int might match the return type of a gcc2 8479 builtin and then its argument prototype would still apply. */ 8480char pcap_set_datalink (); 8481/* The GNU C library defines this for functions which it implements 8482 to always fail with ENOSYS. Some functions are actually named 8483 something starting with __ and the normal name is an alias. */ 8484#if defined (__stub_pcap_set_datalink) || defined (__stub___pcap_set_datalink) 8485choke me 8486#else 8487char (*f) () = pcap_set_datalink; 8488#endif 8489#ifdef __cplusplus 8490} 8491#endif 8492 8493int 8494main () 8495{ 8496return f != pcap_set_datalink; 8497 ; 8498 return 0; 8499} 8500_ACEOF 8501rm -f conftest.$ac_objext conftest$ac_exeext 8502if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8503 (eval $ac_link) 2>&5 8504 ac_status=$? 8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8506 (exit $ac_status); } && 8507 { ac_try='test -s conftest$ac_exeext' 8508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8509 (eval $ac_try) 2>&5 8510 ac_status=$? 8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8512 (exit $ac_status); }; }; then 8513 ac_cv_func_pcap_set_datalink=yes 8514else 8515 echo "$as_me: failed program was:" >&5 8516sed 's/^/| /' conftest.$ac_ext >&5 8517 8518ac_cv_func_pcap_set_datalink=no 8519fi 8520rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8521fi 8522echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5 8523echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6 8524if test $ac_cv_func_pcap_set_datalink = yes; then 8525 cat >>confdefs.h <<\_ACEOF 8526#define HAVE_PCAP_SET_DATALINK 1 8527_ACEOF 8528 8529fi 8530 8531 echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5 8532echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6 8533if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then 8534 echo $ECHO_N "(cached) $ECHO_C" >&6 8535else 8536 cat >conftest.$ac_ext <<_ACEOF 8537#line $LINENO "configure" 8538/* confdefs.h. */ 8539_ACEOF 8540cat confdefs.h >>conftest.$ac_ext 8541cat >>conftest.$ac_ext <<_ACEOF 8542/* end confdefs.h. */ 8543/* System header to define __stub macros and hopefully few prototypes, 8544 which can conflict with char pcap_datalink_name_to_val (); below. 8545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8546 <limits.h> exists even on freestanding compilers. */ 8547#ifdef __STDC__ 8548# include <limits.h> 8549#else 8550# include <assert.h> 8551#endif 8552/* Override any gcc2 internal prototype to avoid an error. */ 8553#ifdef __cplusplus 8554extern "C" 8555{ 8556#endif 8557/* We use char because int might match the return type of a gcc2 8558 builtin and then its argument prototype would still apply. */ 8559char pcap_datalink_name_to_val (); 8560/* The GNU C library defines this for functions which it implements 8561 to always fail with ENOSYS. Some functions are actually named 8562 something starting with __ and the normal name is an alias. */ 8563#if defined (__stub_pcap_datalink_name_to_val) || defined (__stub___pcap_datalink_name_to_val) 8564choke me 8565#else 8566char (*f) () = pcap_datalink_name_to_val; 8567#endif 8568#ifdef __cplusplus 8569} 8570#endif 8571 8572int 8573main () 8574{ 8575return f != pcap_datalink_name_to_val; 8576 ; 8577 return 0; 8578} 8579_ACEOF 8580rm -f conftest.$ac_objext conftest$ac_exeext 8581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8582 (eval $ac_link) 2>&5 8583 ac_status=$? 8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8585 (exit $ac_status); } && 8586 { ac_try='test -s conftest$ac_exeext' 8587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8588 (eval $ac_try) 2>&5 8589 ac_status=$? 8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8591 (exit $ac_status); }; }; then 8592 ac_cv_func_pcap_datalink_name_to_val=yes 8593else 8594 echo "$as_me: failed program was:" >&5 8595sed 's/^/| /' conftest.$ac_ext >&5 8596 8597ac_cv_func_pcap_datalink_name_to_val=no 8598fi 8599rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8600fi 8601echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5 8602echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6 8603if test $ac_cv_func_pcap_datalink_name_to_val = yes; then 8604 8605 cat >>confdefs.h <<\_ACEOF 8606#define HAVE_PCAP_DATALINK_NAME_TO_VAL 1 8607_ACEOF 8608 8609 echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5 8610echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6 8611if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then 8612 echo $ECHO_N "(cached) $ECHO_C" >&6 8613else 8614 cat >conftest.$ac_ext <<_ACEOF 8615#line $LINENO "configure" 8616/* confdefs.h. */ 8617_ACEOF 8618cat confdefs.h >>conftest.$ac_ext 8619cat >>conftest.$ac_ext <<_ACEOF 8620/* end confdefs.h. */ 8621/* System header to define __stub macros and hopefully few prototypes, 8622 which can conflict with char pcap_datalink_val_to_description (); below. 8623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8624 <limits.h> exists even on freestanding compilers. */ 8625#ifdef __STDC__ 8626# include <limits.h> 8627#else 8628# include <assert.h> 8629#endif 8630/* Override any gcc2 internal prototype to avoid an error. */ 8631#ifdef __cplusplus 8632extern "C" 8633{ 8634#endif 8635/* We use char because int might match the return type of a gcc2 8636 builtin and then its argument prototype would still apply. */ 8637char pcap_datalink_val_to_description (); 8638/* The GNU C library defines this for functions which it implements 8639 to always fail with ENOSYS. Some functions are actually named 8640 something starting with __ and the normal name is an alias. */ 8641#if defined (__stub_pcap_datalink_val_to_description) || defined (__stub___pcap_datalink_val_to_description) 8642choke me 8643#else 8644char (*f) () = pcap_datalink_val_to_description; 8645#endif 8646#ifdef __cplusplus 8647} 8648#endif 8649 8650int 8651main () 8652{ 8653return f != pcap_datalink_val_to_description; 8654 ; 8655 return 0; 8656} 8657_ACEOF 8658rm -f conftest.$ac_objext conftest$ac_exeext 8659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8660 (eval $ac_link) 2>&5 8661 ac_status=$? 8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8663 (exit $ac_status); } && 8664 { ac_try='test -s conftest$ac_exeext' 8665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8666 (eval $ac_try) 2>&5 8667 ac_status=$? 8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8669 (exit $ac_status); }; }; then 8670 ac_cv_func_pcap_datalink_val_to_description=yes 8671else 8672 echo "$as_me: failed program was:" >&5 8673sed 's/^/| /' conftest.$ac_ext >&5 8674 8675ac_cv_func_pcap_datalink_val_to_description=no 8676fi 8677rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8678fi 8679echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5 8680echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6 8681if test $ac_cv_func_pcap_datalink_val_to_description = yes; then 8682 cat >>confdefs.h <<\_ACEOF 8683#define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1 8684_ACEOF 8685 8686else 8687 LIBOBJS="$LIBOBJS dlnames.$ac_objext" 8688fi 8689 8690 8691else 8692 LIBOBJS="$LIBOBJS dlnames.$ac_objext" 8693fi 8694 8695 8696 8697for ac_func in pcap_breakloop 8698do 8699as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8700echo "$as_me:$LINENO: checking for $ac_func" >&5 8701echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8702if eval "test \"\${$as_ac_var+set}\" = set"; then 8703 echo $ECHO_N "(cached) $ECHO_C" >&6 8704else 8705 cat >conftest.$ac_ext <<_ACEOF 8706#line $LINENO "configure" 8707/* confdefs.h. */ 8708_ACEOF 8709cat confdefs.h >>conftest.$ac_ext 8710cat >>conftest.$ac_ext <<_ACEOF 8711/* end confdefs.h. */ 8712/* System header to define __stub macros and hopefully few prototypes, 8713 which can conflict with char $ac_func (); below. 8714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8715 <limits.h> exists even on freestanding compilers. */ 8716#ifdef __STDC__ 8717# include <limits.h> 8718#else 8719# include <assert.h> 8720#endif 8721/* Override any gcc2 internal prototype to avoid an error. */ 8722#ifdef __cplusplus 8723extern "C" 8724{ 8725#endif 8726/* We use char because int might match the return type of a gcc2 8727 builtin and then its argument prototype would still apply. */ 8728char $ac_func (); 8729/* The GNU C library defines this for functions which it implements 8730 to always fail with ENOSYS. Some functions are actually named 8731 something starting with __ and the normal name is an alias. */ 8732#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8733choke me 8734#else 8735char (*f) () = $ac_func; 8736#endif 8737#ifdef __cplusplus 8738} 8739#endif 8740 8741int 8742main () 8743{ 8744return f != $ac_func; 8745 ; 8746 return 0; 8747} 8748_ACEOF 8749rm -f conftest.$ac_objext conftest$ac_exeext 8750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8751 (eval $ac_link) 2>&5 8752 ac_status=$? 8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8754 (exit $ac_status); } && 8755 { ac_try='test -s conftest$ac_exeext' 8756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8757 (eval $ac_try) 2>&5 8758 ac_status=$? 8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8760 (exit $ac_status); }; }; then 8761 eval "$as_ac_var=yes" 8762else 8763 echo "$as_me: failed program was:" >&5 8764sed 's/^/| /' conftest.$ac_ext >&5 8765 8766eval "$as_ac_var=no" 8767fi 8768rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8769fi 8770echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 8771echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 8772if test `eval echo '${'$as_ac_var'}'` = yes; then 8773 cat >>confdefs.h <<_ACEOF 8774#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8775_ACEOF 8776 8777fi 8778done 8779 8780 8781 8782# 8783# Check for these after AC_LBL_LIBPCAP, so we link with the appropriate 8784# libraries (e.g., "-lsocket -lnsl" on Solaris). 8785# 8786# We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which 8787# use AC_CHECK_FUNC which doesn't let us specify the right #includes 8788# to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8 8789# resolver, and the way it defines inet_{ntop,pton} is rather strange; 8790# it does not ship with a libc symbol "inet_ntop()", it ships with 8791# "_inet_ntop()", and has a #define macro in one of the system headers 8792# to rename it. 8793# 8794echo "$as_me:$LINENO: checking for inet_ntop" >&5 8795echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6 8796cat >conftest.$ac_ext <<_ACEOF 8797#line $LINENO "configure" 8798/* confdefs.h. */ 8799_ACEOF 8800cat confdefs.h >>conftest.$ac_ext 8801cat >>conftest.$ac_ext <<_ACEOF 8802/* end confdefs.h. */ 8803#include <sys/types.h> 8804#include <sys/socket.h> 8805#include <netinet/in.h> 8806#include <arpa/inet.h> 8807int 8808main () 8809{ 8810char src[4], dst[128]; 8811inet_ntop(AF_INET, src, dst, sizeof(dst)); 8812 ; 8813 return 0; 8814} 8815_ACEOF 8816rm -f conftest.$ac_objext conftest$ac_exeext 8817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8818 (eval $ac_link) 2>&5 8819 ac_status=$? 8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8821 (exit $ac_status); } && 8822 { ac_try='test -s conftest$ac_exeext' 8823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8824 (eval $ac_try) 2>&5 8825 ac_status=$? 8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8827 (exit $ac_status); }; }; then 8828 echo "$as_me:$LINENO: result: yes" >&5 8829echo "${ECHO_T}yes" >&6 8830else 8831 echo "$as_me: failed program was:" >&5 8832sed 's/^/| /' conftest.$ac_ext >&5 8833 8834echo "$as_me:$LINENO: result: no" >&5 8835echo "${ECHO_T}no" >&6 8836 LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" 8837fi 8838rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8839echo "$as_me:$LINENO: checking for inet_pton" >&5 8840echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6 8841cat >conftest.$ac_ext <<_ACEOF 8842#line $LINENO "configure" 8843/* confdefs.h. */ 8844_ACEOF 8845cat confdefs.h >>conftest.$ac_ext 8846cat >>conftest.$ac_ext <<_ACEOF 8847/* end confdefs.h. */ 8848#include <sys/types.h> 8849#include <sys/socket.h> 8850#include <netinet/in.h> 8851#include <arpa/inet.h> 8852int 8853main () 8854{ 8855char src[128], dst[4]; 8856inet_pton(AF_INET, src, dst); 8857 ; 8858 return 0; 8859} 8860_ACEOF 8861rm -f conftest.$ac_objext conftest$ac_exeext 8862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8863 (eval $ac_link) 2>&5 8864 ac_status=$? 8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8866 (exit $ac_status); } && 8867 { ac_try='test -s conftest$ac_exeext' 8868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8869 (eval $ac_try) 2>&5 8870 ac_status=$? 8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8872 (exit $ac_status); }; }; then 8873 echo "$as_me:$LINENO: result: yes" >&5 8874echo "${ECHO_T}yes" >&6 8875else 8876 echo "$as_me: failed program was:" >&5 8877sed 's/^/| /' conftest.$ac_ext >&5 8878 8879echo "$as_me:$LINENO: result: no" >&5 8880echo "${ECHO_T}no" >&6 8881 LIBOBJS="$LIBOBJS inet_pton.$ac_objext" 8882fi 8883rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8884echo "$as_me:$LINENO: checking for inet_aton" >&5 8885echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6 8886cat >conftest.$ac_ext <<_ACEOF 8887#line $LINENO "configure" 8888/* confdefs.h. */ 8889_ACEOF 8890cat confdefs.h >>conftest.$ac_ext 8891cat >>conftest.$ac_ext <<_ACEOF 8892/* end confdefs.h. */ 8893#include <sys/types.h> 8894#include <netinet/in.h> 8895#include <arpa/inet.h> 8896int 8897main () 8898{ 8899char src[128]; 8900struct in_addr dst; 8901inet_aton(src, &dst); 8902 ; 8903 return 0; 8904} 8905_ACEOF 8906rm -f conftest.$ac_objext conftest$ac_exeext 8907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8908 (eval $ac_link) 2>&5 8909 ac_status=$? 8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8911 (exit $ac_status); } && 8912 { ac_try='test -s conftest$ac_exeext' 8913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8914 (eval $ac_try) 2>&5 8915 ac_status=$? 8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8917 (exit $ac_status); }; }; then 8918 echo "$as_me:$LINENO: result: yes" >&5 8919echo "${ECHO_T}yes" >&6 8920else 8921 echo "$as_me: failed program was:" >&5 8922sed 's/^/| /' conftest.$ac_ext >&5 8923 8924echo "$as_me:$LINENO: result: no" >&5 8925echo "${ECHO_T}no" >&6 8926 LIBOBJS="$LIBOBJS inet_aton.$ac_objext" 8927fi 8928rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8929 8930# 8931# Check for these after AC_LBL_LIBPCAP, for the same reason. 8932# 8933# You are in a twisty little maze of UN*Xes, all different. 8934# Some might not have ether_ntohost(). 8935# Some might have it, but not declare it in any header file. 8936# Some might have it, but declare it in <netinet/if_ether.h>. 8937# Some might have it, but declare it in <netinet/ether.h> 8938# (And some might have it but document it as something declared in 8939# <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.) 8940# 8941# Before you is a C compiler. 8942# 8943 8944for ac_func in ether_ntohost 8945do 8946as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8947echo "$as_me:$LINENO: checking for $ac_func" >&5 8948echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8949if eval "test \"\${$as_ac_var+set}\" = set"; then 8950 echo $ECHO_N "(cached) $ECHO_C" >&6 8951else 8952 cat >conftest.$ac_ext <<_ACEOF 8953#line $LINENO "configure" 8954/* confdefs.h. */ 8955_ACEOF 8956cat confdefs.h >>conftest.$ac_ext 8957cat >>conftest.$ac_ext <<_ACEOF 8958/* end confdefs.h. */ 8959/* System header to define __stub macros and hopefully few prototypes, 8960 which can conflict with char $ac_func (); below. 8961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8962 <limits.h> exists even on freestanding compilers. */ 8963#ifdef __STDC__ 8964# include <limits.h> 8965#else 8966# include <assert.h> 8967#endif 8968/* Override any gcc2 internal prototype to avoid an error. */ 8969#ifdef __cplusplus 8970extern "C" 8971{ 8972#endif 8973/* We use char because int might match the return type of a gcc2 8974 builtin and then its argument prototype would still apply. */ 8975char $ac_func (); 8976/* The GNU C library defines this for functions which it implements 8977 to always fail with ENOSYS. Some functions are actually named 8978 something starting with __ and the normal name is an alias. */ 8979#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8980choke me 8981#else 8982char (*f) () = $ac_func; 8983#endif 8984#ifdef __cplusplus 8985} 8986#endif 8987 8988int 8989main () 8990{ 8991return f != $ac_func; 8992 ; 8993 return 0; 8994} 8995_ACEOF 8996rm -f conftest.$ac_objext conftest$ac_exeext 8997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8998 (eval $ac_link) 2>&5 8999 ac_status=$? 9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9001 (exit $ac_status); } && 9002 { ac_try='test -s conftest$ac_exeext' 9003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9004 (eval $ac_try) 2>&5 9005 ac_status=$? 9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9007 (exit $ac_status); }; }; then 9008 eval "$as_ac_var=yes" 9009else 9010 echo "$as_me: failed program was:" >&5 9011sed 's/^/| /' conftest.$ac_ext >&5 9012 9013eval "$as_ac_var=no" 9014fi 9015rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9016fi 9017echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9018echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9019if test `eval echo '${'$as_ac_var'}'` = yes; then 9020 cat >>confdefs.h <<_ACEOF 9021#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9022_ACEOF 9023 9024 echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5 9025echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6 9026if test "${ac_cv_buggy_ether_ntohost+set}" = set; then 9027 echo $ECHO_N "(cached) $ECHO_C" >&6 9028else 9029 9030 if test "$cross_compiling" = yes; then 9031 ac_cv_buggy_ether_ntohost="not while cross-compiling" 9032else 9033 cat >conftest.$ac_ext <<_ACEOF 9034#line $LINENO "configure" 9035/* confdefs.h. */ 9036_ACEOF 9037cat confdefs.h >>conftest.$ac_ext 9038cat >>conftest.$ac_ext <<_ACEOF 9039/* end confdefs.h. */ 9040 9041 #include <netdb.h> 9042 #include <sys/types.h> 9043 #include <sys/param.h> 9044 #include <sys/socket.h> 9045 9046 int 9047 main(int argc, char **argv) 9048 { 9049 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff }; 9050 char name[MAXHOSTNAMELEN]; 9051 9052 ether_ntohost(name, (struct ether_addr *)ea); 9053 exit(0); 9054 } 9055 9056_ACEOF 9057rm -f conftest$ac_exeext 9058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9059 (eval $ac_link) 2>&5 9060 ac_status=$? 9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9062 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9064 (eval $ac_try) 2>&5 9065 ac_status=$? 9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9067 (exit $ac_status); }; }; then 9068 ac_cv_buggy_ether_ntohost=no 9069else 9070 echo "$as_me: program exited with status $ac_status" >&5 9071echo "$as_me: failed program was:" >&5 9072sed 's/^/| /' conftest.$ac_ext >&5 9073 9074( exit $ac_status ) 9075ac_cv_buggy_ether_ntohost=yes 9076fi 9077rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9078fi 9079fi 9080echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5 9081echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6 9082 if test "$ac_cv_buggy_ether_ntohost" = "no"; then 9083 cat >>confdefs.h <<\_ACEOF 9084#define USE_ETHER_NTOHOST 1 9085_ACEOF 9086 9087 fi 9088 9089fi 9090done 9091 9092if test "$ac_cv_func_ether_ntohost" = yes -a \ 9093 "$ac_cv_buggy_ether_ntohost" = "no"; then 9094 # 9095 # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>? 9096 # 9097 if test "$ac_cv_header_netinet_if_ether_h" = yes; then 9098 # 9099 # Yes. Does it declare ether_ntohost()? 9100 # 9101 echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5 9102echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6 9103if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then 9104 echo $ECHO_N "(cached) $ECHO_C" >&6 9105else 9106 cat >conftest.$ac_ext <<_ACEOF 9107#line $LINENO "configure" 9108/* confdefs.h. */ 9109_ACEOF 9110cat confdefs.h >>conftest.$ac_ext 9111cat >>conftest.$ac_ext <<_ACEOF 9112/* end confdefs.h. */ 9113 9114#include <sys/types.h> 9115#include <sys/socket.h> 9116#include <netinet/in.h> 9117struct mbuf; 9118struct rtentry; 9119#include <net/if.h> 9120#include <netinet/if_ether.h> 9121 9122 9123int 9124main () 9125{ 9126#ifndef ether_ntohost 9127 char *p = (char *) ether_ntohost; 9128#endif 9129 9130 ; 9131 return 0; 9132} 9133_ACEOF 9134rm -f conftest.$ac_objext 9135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9136 (eval $ac_compile) 2>&5 9137 ac_status=$? 9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9139 (exit $ac_status); } && 9140 { ac_try='test -s conftest.$ac_objext' 9141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9142 (eval $ac_try) 2>&5 9143 ac_status=$? 9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9145 (exit $ac_status); }; }; then 9146 ac_cv_have_decl_ether_ntohost=yes 9147else 9148 echo "$as_me: failed program was:" >&5 9149sed 's/^/| /' conftest.$ac_ext >&5 9150 9151ac_cv_have_decl_ether_ntohost=no 9152fi 9153rm -f conftest.$ac_objext conftest.$ac_ext 9154fi 9155echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5 9156echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6 9157if test $ac_cv_have_decl_ether_ntohost = yes; then 9158 9159cat >>confdefs.h <<_ACEOF 9160#define HAVE_DECL_ETHER_NTOHOST 1 9161_ACEOF 9162 9163 9164 9165cat >>confdefs.h <<\_ACEOF 9166#define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST 9167_ACEOF 9168 9169 9170else 9171 cat >>confdefs.h <<_ACEOF 9172#define HAVE_DECL_ETHER_NTOHOST 0 9173_ACEOF 9174 9175 9176fi 9177 9178 9179 fi 9180 # 9181 # Did that succeed? 9182 # 9183 if test "$ac_cv_have_decl_ether_ntohost" != yes; then 9184 # 9185 # No, how about <netinet/ether.h>, as on Linux? 9186 # 9187 9188for ac_header in netinet/ether.h 9189do 9190as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 9191if eval "test \"\${$as_ac_Header+set}\" = set"; then 9192 echo "$as_me:$LINENO: checking for $ac_header" >&5 9193echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9194if eval "test \"\${$as_ac_Header+set}\" = set"; then 9195 echo $ECHO_N "(cached) $ECHO_C" >&6 9196fi 9197echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9198echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9199else 9200 # Is the header compilable? 9201echo "$as_me:$LINENO: checking $ac_header usability" >&5 9202echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 9203cat >conftest.$ac_ext <<_ACEOF 9204#line $LINENO "configure" 9205/* confdefs.h. */ 9206_ACEOF 9207cat confdefs.h >>conftest.$ac_ext 9208cat >>conftest.$ac_ext <<_ACEOF 9209/* end confdefs.h. */ 9210$ac_includes_default 9211#include <$ac_header> 9212_ACEOF 9213rm -f conftest.$ac_objext 9214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9215 (eval $ac_compile) 2>&5 9216 ac_status=$? 9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9218 (exit $ac_status); } && 9219 { ac_try='test -s conftest.$ac_objext' 9220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9221 (eval $ac_try) 2>&5 9222 ac_status=$? 9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9224 (exit $ac_status); }; }; then 9225 ac_header_compiler=yes 9226else 9227 echo "$as_me: failed program was:" >&5 9228sed 's/^/| /' conftest.$ac_ext >&5 9229 9230ac_header_compiler=no 9231fi 9232rm -f conftest.$ac_objext conftest.$ac_ext 9233echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9234echo "${ECHO_T}$ac_header_compiler" >&6 9235 9236# Is the header present? 9237echo "$as_me:$LINENO: checking $ac_header presence" >&5 9238echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 9239cat >conftest.$ac_ext <<_ACEOF 9240#line $LINENO "configure" 9241/* confdefs.h. */ 9242_ACEOF 9243cat confdefs.h >>conftest.$ac_ext 9244cat >>conftest.$ac_ext <<_ACEOF 9245/* end confdefs.h. */ 9246#include <$ac_header> 9247_ACEOF 9248if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 9249 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9250 ac_status=$? 9251 grep -v '^ *+' conftest.er1 >conftest.err 9252 rm -f conftest.er1 9253 cat conftest.err >&5 9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9255 (exit $ac_status); } >/dev/null; then 9256 if test -s conftest.err; then 9257 ac_cpp_err=$ac_c_preproc_warn_flag 9258 else 9259 ac_cpp_err= 9260 fi 9261else 9262 ac_cpp_err=yes 9263fi 9264if test -z "$ac_cpp_err"; then 9265 ac_header_preproc=yes 9266else 9267 echo "$as_me: failed program was:" >&5 9268sed 's/^/| /' conftest.$ac_ext >&5 9269 9270 ac_header_preproc=no 9271fi 9272rm -f conftest.err conftest.$ac_ext 9273echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9274echo "${ECHO_T}$ac_header_preproc" >&6 9275 9276# So? What about this header? 9277case $ac_header_compiler:$ac_header_preproc in 9278 yes:no ) 9279 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 9280echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 9281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 9282echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 9283 ( 9284 cat <<\_ASBOX 9285## ------------------------------------ ## 9286## Report this to bug-autoconf@gnu.org. ## 9287## ------------------------------------ ## 9288_ASBOX 9289 ) | 9290 sed "s/^/$as_me: WARNING: /" >&2 9291 ;; 9292 no:yes ) 9293 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 9294echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 9295 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 9296echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 9297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 9298echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 9299 ( 9300 cat <<\_ASBOX 9301## ------------------------------------ ## 9302## Report this to bug-autoconf@gnu.org. ## 9303## ------------------------------------ ## 9304_ASBOX 9305 ) | 9306 sed "s/^/$as_me: WARNING: /" >&2 9307 ;; 9308esac 9309echo "$as_me:$LINENO: checking for $ac_header" >&5 9310echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9311if eval "test \"\${$as_ac_Header+set}\" = set"; then 9312 echo $ECHO_N "(cached) $ECHO_C" >&6 9313else 9314 eval "$as_ac_Header=$ac_header_preproc" 9315fi 9316echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9317echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9318 9319fi 9320if test `eval echo '${'$as_ac_Header'}'` = yes; then 9321 cat >>confdefs.h <<_ACEOF 9322#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 9323_ACEOF 9324 9325fi 9326 9327done 9328 9329 if test "$ac_cv_header_netinet_ether_h" = yes; then 9330 # 9331 # We have it - does it declare ether_ntohost()? 9332 # Unset ac_cv_have_decl_ether_ntohost so we don't 9333 # treat the previous failure as a cached value and 9334 # suppress the next test. 9335 # 9336 unset ac_cv_have_decl_ether_ntohost 9337 echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5 9338echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6 9339if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then 9340 echo $ECHO_N "(cached) $ECHO_C" >&6 9341else 9342 cat >conftest.$ac_ext <<_ACEOF 9343#line $LINENO "configure" 9344/* confdefs.h. */ 9345_ACEOF 9346cat confdefs.h >>conftest.$ac_ext 9347cat >>conftest.$ac_ext <<_ACEOF 9348/* end confdefs.h. */ 9349 9350#include <netinet/ether.h> 9351 9352 9353int 9354main () 9355{ 9356#ifndef ether_ntohost 9357 char *p = (char *) ether_ntohost; 9358#endif 9359 9360 ; 9361 return 0; 9362} 9363_ACEOF 9364rm -f conftest.$ac_objext 9365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9366 (eval $ac_compile) 2>&5 9367 ac_status=$? 9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9369 (exit $ac_status); } && 9370 { ac_try='test -s conftest.$ac_objext' 9371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9372 (eval $ac_try) 2>&5 9373 ac_status=$? 9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9375 (exit $ac_status); }; }; then 9376 ac_cv_have_decl_ether_ntohost=yes 9377else 9378 echo "$as_me: failed program was:" >&5 9379sed 's/^/| /' conftest.$ac_ext >&5 9380 9381ac_cv_have_decl_ether_ntohost=no 9382fi 9383rm -f conftest.$ac_objext conftest.$ac_ext 9384fi 9385echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5 9386echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6 9387if test $ac_cv_have_decl_ether_ntohost = yes; then 9388 9389cat >>confdefs.h <<_ACEOF 9390#define HAVE_DECL_ETHER_NTOHOST 1 9391_ACEOF 9392 9393 9394 9395cat >>confdefs.h <<\_ACEOF 9396#define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST 9397_ACEOF 9398 9399 9400else 9401 cat >>confdefs.h <<_ACEOF 9402#define HAVE_DECL_ETHER_NTOHOST 0 9403_ACEOF 9404 9405 9406fi 9407 9408 9409 fi 9410 fi 9411fi 9412 9413 9414 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5 9415echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6 9416 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then 9417 echo $ECHO_N "(cached) $ECHO_C" >&6 9418else 9419 cat >conftest.$ac_ext <<_ACEOF 9420#line $LINENO "configure" 9421/* confdefs.h. */ 9422_ACEOF 9423cat confdefs.h >>conftest.$ac_ext 9424cat >>conftest.$ac_ext <<_ACEOF 9425/* end confdefs.h. */ 9426 9427# include <sys/types.h> 9428# include <sys/socket.h> 9429int 9430main () 9431{ 9432u_int i = sizeof(((struct sockaddr *)0)->sa_len) 9433 ; 9434 return 0; 9435} 9436_ACEOF 9437rm -f conftest.$ac_objext 9438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9439 (eval $ac_compile) 2>&5 9440 ac_status=$? 9441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9442 (exit $ac_status); } && 9443 { ac_try='test -s conftest.$ac_objext' 9444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9445 (eval $ac_try) 2>&5 9446 ac_status=$? 9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9448 (exit $ac_status); }; }; then 9449 ac_cv_sockaddr_has_sa_len=yes 9450else 9451 echo "$as_me: failed program was:" >&5 9452sed 's/^/| /' conftest.$ac_ext >&5 9453 9454ac_cv_sockaddr_has_sa_len=no 9455fi 9456rm -f conftest.$ac_objext conftest.$ac_ext 9457fi 9458 9459 echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5 9460echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6 9461 if test $ac_cv_sockaddr_has_sa_len = yes ; then 9462 cat >>confdefs.h <<\_ACEOF 9463#define HAVE_SOCKADDR_SA_LEN 1 9464_ACEOF 9465 9466 fi 9467 9468if test "$ac_cv_sockaddr_has_sa_len" = no; then 9469 missing_includes=yes 9470fi 9471 9472 9473 9474 9475for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version 9476do 9477as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9478echo "$as_me:$LINENO: checking for $ac_func" >&5 9479echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9480if eval "test \"\${$as_ac_var+set}\" = set"; then 9481 echo $ECHO_N "(cached) $ECHO_C" >&6 9482else 9483 cat >conftest.$ac_ext <<_ACEOF 9484#line $LINENO "configure" 9485/* confdefs.h. */ 9486_ACEOF 9487cat confdefs.h >>conftest.$ac_ext 9488cat >>conftest.$ac_ext <<_ACEOF 9489/* end confdefs.h. */ 9490/* System header to define __stub macros and hopefully few prototypes, 9491 which can conflict with char $ac_func (); below. 9492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9493 <limits.h> exists even on freestanding compilers. */ 9494#ifdef __STDC__ 9495# include <limits.h> 9496#else 9497# include <assert.h> 9498#endif 9499/* Override any gcc2 internal prototype to avoid an error. */ 9500#ifdef __cplusplus 9501extern "C" 9502{ 9503#endif 9504/* We use char because int might match the return type of a gcc2 9505 builtin and then its argument prototype would still apply. */ 9506char $ac_func (); 9507/* The GNU C library defines this for functions which it implements 9508 to always fail with ENOSYS. Some functions are actually named 9509 something starting with __ and the normal name is an alias. */ 9510#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9511choke me 9512#else 9513char (*f) () = $ac_func; 9514#endif 9515#ifdef __cplusplus 9516} 9517#endif 9518 9519int 9520main () 9521{ 9522return f != $ac_func; 9523 ; 9524 return 0; 9525} 9526_ACEOF 9527rm -f conftest.$ac_objext conftest$ac_exeext 9528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9529 (eval $ac_link) 2>&5 9530 ac_status=$? 9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9532 (exit $ac_status); } && 9533 { ac_try='test -s conftest$ac_exeext' 9534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9535 (eval $ac_try) 2>&5 9536 ac_status=$? 9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9538 (exit $ac_status); }; }; then 9539 eval "$as_ac_var=yes" 9540else 9541 echo "$as_me: failed program was:" >&5 9542sed 's/^/| /' conftest.$ac_ext >&5 9543 9544eval "$as_ac_var=no" 9545fi 9546rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9547fi 9548echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9549echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9550if test `eval echo '${'$as_ac_var'}'` = yes; then 9551 cat >>confdefs.h <<_ACEOF 9552#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9553_ACEOF 9554 9555fi 9556done 9557 9558if test $ac_cv_func_pcap_findalldevs = "yes" ; then 9559 savedcflags="$CFLAGS" 9560 CFLAGS="$CFLAGS $V_INCLS" 9561 echo "$as_me:$LINENO: checking for pcap_if_t" >&5 9562echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6 9563if test "${ac_cv_type_pcap_if_t+set}" = set; then 9564 echo $ECHO_N "(cached) $ECHO_C" >&6 9565else 9566 cat >conftest.$ac_ext <<_ACEOF 9567#line $LINENO "configure" 9568/* confdefs.h. */ 9569_ACEOF 9570cat confdefs.h >>conftest.$ac_ext 9571cat >>conftest.$ac_ext <<_ACEOF 9572/* end confdefs.h. */ 9573#include <pcap.h> 9574 9575int 9576main () 9577{ 9578if ((pcap_if_t *) 0) 9579 return 0; 9580if (sizeof (pcap_if_t)) 9581 return 0; 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_type_pcap_if_t=yes 9599else 9600 echo "$as_me: failed program was:" >&5 9601sed 's/^/| /' conftest.$ac_ext >&5 9602 9603ac_cv_type_pcap_if_t=no 9604fi 9605rm -f conftest.$ac_objext conftest.$ac_ext 9606fi 9607echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5 9608echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6 9609if test $ac_cv_type_pcap_if_t = yes; then 9610 9611cat >>confdefs.h <<_ACEOF 9612#define HAVE_PCAP_IF_T 1 9613_ACEOF 9614 9615 9616fi 9617 9618 CFLAGS="$savedcflags" 9619fi 9620 9621if test $ac_cv_func_pcap_lib_version = "no" ; then 9622 echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5 9623echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6 9624 cat >conftest.$ac_ext <<_ACEOF 9625#line $LINENO "configure" 9626/* confdefs.h. */ 9627_ACEOF 9628cat confdefs.h >>conftest.$ac_ext 9629cat >>conftest.$ac_ext <<_ACEOF 9630/* end confdefs.h. */ 9631 9632int 9633main () 9634{ 9635 9636 extern char pcap_version[]; 9637 9638 return (int)pcap_version; 9639 9640 ; 9641 return 0; 9642} 9643_ACEOF 9644rm -f conftest.$ac_objext conftest$ac_exeext 9645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9646 (eval $ac_link) 2>&5 9647 ac_status=$? 9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9649 (exit $ac_status); } && 9650 { ac_try='test -s conftest$ac_exeext' 9651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9652 (eval $ac_try) 2>&5 9653 ac_status=$? 9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9655 (exit $ac_status); }; }; then 9656 ac_lbl_cv_pcap_version_defined=yes 9657else 9658 echo "$as_me: failed program was:" >&5 9659sed 's/^/| /' conftest.$ac_ext >&5 9660 9661ac_lbl_cv_pcap_version_defined=no 9662fi 9663rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9664 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then 9665 echo "$as_me:$LINENO: result: yes" >&5 9666echo "${ECHO_T}yes" >&6 9667 cat >>confdefs.h <<\_ACEOF 9668#define HAVE_PCAP_VERSION 1 9669_ACEOF 9670 9671 else 9672 echo "$as_me:$LINENO: result: no" >&5 9673echo "${ECHO_T}no" >&6 9674 fi 9675fi 9676echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5 9677echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6 9678cat >conftest.$ac_ext <<_ACEOF 9679#line $LINENO "configure" 9680/* confdefs.h. */ 9681_ACEOF 9682cat confdefs.h >>conftest.$ac_ext 9683cat >>conftest.$ac_ext <<_ACEOF 9684/* end confdefs.h. */ 9685 9686int 9687main () 9688{ 9689 9690 extern int pcap_debug; 9691 9692 return pcap_debug; 9693 9694 ; 9695 return 0; 9696} 9697_ACEOF 9698rm -f conftest.$ac_objext conftest$ac_exeext 9699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9700 (eval $ac_link) 2>&5 9701 ac_status=$? 9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9703 (exit $ac_status); } && 9704 { ac_try='test -s conftest$ac_exeext' 9705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9706 (eval $ac_try) 2>&5 9707 ac_status=$? 9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9709 (exit $ac_status); }; }; then 9710 ac_lbl_cv_pcap_debug_defined=yes 9711else 9712 echo "$as_me: failed program was:" >&5 9713sed 's/^/| /' conftest.$ac_ext >&5 9714 9715ac_lbl_cv_pcap_debug_defined=no 9716fi 9717rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9718if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then 9719 echo "$as_me:$LINENO: result: yes" >&5 9720echo "${ECHO_T}yes" >&6 9721 cat >>confdefs.h <<\_ACEOF 9722#define HAVE_PCAP_DEBUG 1 9723_ACEOF 9724 9725else 9726 echo "$as_me:$LINENO: result: no" >&5 9727echo "${ECHO_T}no" >&6 9728 # 9729 # OK, what about "yydebug"? 9730 # 9731 echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5 9732echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6 9733 cat >conftest.$ac_ext <<_ACEOF 9734#line $LINENO "configure" 9735/* confdefs.h. */ 9736_ACEOF 9737cat confdefs.h >>conftest.$ac_ext 9738cat >>conftest.$ac_ext <<_ACEOF 9739/* end confdefs.h. */ 9740 9741int 9742main () 9743{ 9744 9745 extern int yydebug; 9746 9747 return yydebug; 9748 9749 ; 9750 return 0; 9751} 9752_ACEOF 9753rm -f conftest.$ac_objext conftest$ac_exeext 9754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9755 (eval $ac_link) 2>&5 9756 ac_status=$? 9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9758 (exit $ac_status); } && 9759 { ac_try='test -s conftest$ac_exeext' 9760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9761 (eval $ac_try) 2>&5 9762 ac_status=$? 9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9764 (exit $ac_status); }; }; then 9765 ac_lbl_cv_yydebug_defined=yes 9766else 9767 echo "$as_me: failed program was:" >&5 9768sed 's/^/| /' conftest.$ac_ext >&5 9769 9770ac_lbl_cv_yydebug_defined=no 9771fi 9772rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9773 if test "$ac_lbl_cv_yydebug_defined" = yes ; then 9774 echo "$as_me:$LINENO: result: yes" >&5 9775echo "${ECHO_T}yes" >&6 9776 cat >>confdefs.h <<\_ACEOF 9777#define HAVE_YYDEBUG 1 9778_ACEOF 9779 9780 else 9781 echo "$as_me:$LINENO: result: no" >&5 9782echo "${ECHO_T}no" >&6 9783 fi 9784fi 9785 9786for ac_func in bpf_dump 9787do 9788as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9789echo "$as_me:$LINENO: checking for $ac_func" >&5 9790echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9791if eval "test \"\${$as_ac_var+set}\" = set"; then 9792 echo $ECHO_N "(cached) $ECHO_C" >&6 9793else 9794 cat >conftest.$ac_ext <<_ACEOF 9795#line $LINENO "configure" 9796/* confdefs.h. */ 9797_ACEOF 9798cat confdefs.h >>conftest.$ac_ext 9799cat >>conftest.$ac_ext <<_ACEOF 9800/* end confdefs.h. */ 9801/* System header to define __stub macros and hopefully few prototypes, 9802 which can conflict with char $ac_func (); below. 9803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9804 <limits.h> exists even on freestanding compilers. */ 9805#ifdef __STDC__ 9806# include <limits.h> 9807#else 9808# include <assert.h> 9809#endif 9810/* Override any gcc2 internal prototype to avoid an error. */ 9811#ifdef __cplusplus 9812extern "C" 9813{ 9814#endif 9815/* We use char because int might match the return type of a gcc2 9816 builtin and then its argument prototype would still apply. */ 9817char $ac_func (); 9818/* The GNU C library defines this for functions which it implements 9819 to always fail with ENOSYS. Some functions are actually named 9820 something starting with __ and the normal name is an alias. */ 9821#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9822choke me 9823#else 9824char (*f) () = $ac_func; 9825#endif 9826#ifdef __cplusplus 9827} 9828#endif 9829 9830int 9831main () 9832{ 9833return f != $ac_func; 9834 ; 9835 return 0; 9836} 9837_ACEOF 9838rm -f conftest.$ac_objext conftest$ac_exeext 9839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9840 (eval $ac_link) 2>&5 9841 ac_status=$? 9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9843 (exit $ac_status); } && 9844 { ac_try='test -s conftest$ac_exeext' 9845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9846 (eval $ac_try) 2>&5 9847 ac_status=$? 9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9849 (exit $ac_status); }; }; then 9850 eval "$as_ac_var=yes" 9851else 9852 echo "$as_me: failed program was:" >&5 9853sed 's/^/| /' conftest.$ac_ext >&5 9854 9855eval "$as_ac_var=no" 9856fi 9857rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9858fi 9859echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9860echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9861if test `eval echo '${'$as_ac_var'}'` = yes; then 9862 cat >>confdefs.h <<_ACEOF 9863#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9864_ACEOF 9865 9866else 9867 LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 9868fi 9869done 9870 9871 9872V_GROUP=0 9873if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then 9874 V_GROUP=wheel 9875fi 9876case "$host_os" in 9877 9878aix*) 9879 cat >>confdefs.h <<\_ACEOF 9880#define _SUN 1 9881_ACEOF 9882 9883 ;; 9884 9885irix*) 9886 V_GROUP=sys 9887 ;; 9888 9889osf*) 9890 V_GROUP=system 9891 ;; 9892 9893solaris*) 9894 V_GROUP=sys 9895 ;; 9896esac 9897 9898if test -f /dev/bpf0 ; then 9899 V_GROUP=bpf 9900fi 9901 9902echo "$as_me:$LINENO: checking for int8_t using $CC" >&5 9903echo $ECHO_N "checking for int8_t using $CC... $ECHO_C" >&6 9904 if test "${ac_cv_lbl_have_int8_t+set}" = set; then 9905 echo $ECHO_N "(cached) $ECHO_C" >&6 9906else 9907 cat >conftest.$ac_ext <<_ACEOF 9908#line $LINENO "configure" 9909/* confdefs.h. */ 9910_ACEOF 9911cat confdefs.h >>conftest.$ac_ext 9912cat >>conftest.$ac_ext <<_ACEOF 9913/* end confdefs.h. */ 9914 9915# include "confdefs.h" 9916# include <sys/types.h> 9917# if STDC_HEADERS 9918# include <stdlib.h> 9919# include <stddef.h> 9920# endif 9921int 9922main () 9923{ 9924int8_t i 9925 ; 9926 return 0; 9927} 9928_ACEOF 9929rm -f conftest.$ac_objext 9930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9931 (eval $ac_compile) 2>&5 9932 ac_status=$? 9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9934 (exit $ac_status); } && 9935 { ac_try='test -s conftest.$ac_objext' 9936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9937 (eval $ac_try) 2>&5 9938 ac_status=$? 9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9940 (exit $ac_status); }; }; then 9941 ac_cv_lbl_have_int8_t=yes 9942else 9943 echo "$as_me: failed program was:" >&5 9944sed 's/^/| /' conftest.$ac_ext >&5 9945 9946ac_cv_lbl_have_int8_t=no 9947fi 9948rm -f conftest.$ac_objext conftest.$ac_ext 9949fi 9950 9951 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int8_t" >&5 9952echo "${ECHO_T}$ac_cv_lbl_have_int8_t" >&6 9953 if test $ac_cv_lbl_have_int8_t = no ; then 9954 cat >>confdefs.h <<\_ACEOF 9955#define int8_t signed char 9956_ACEOF 9957 9958 fi 9959echo "$as_me:$LINENO: checking for u_int8_t using $CC" >&5 9960echo $ECHO_N "checking for u_int8_t using $CC... $ECHO_C" >&6 9961 if test "${ac_cv_lbl_have_u_int8_t+set}" = set; then 9962 echo $ECHO_N "(cached) $ECHO_C" >&6 9963else 9964 cat >conftest.$ac_ext <<_ACEOF 9965#line $LINENO "configure" 9966/* confdefs.h. */ 9967_ACEOF 9968cat confdefs.h >>conftest.$ac_ext 9969cat >>conftest.$ac_ext <<_ACEOF 9970/* end confdefs.h. */ 9971 9972# include "confdefs.h" 9973# include <sys/types.h> 9974# if STDC_HEADERS 9975# include <stdlib.h> 9976# include <stddef.h> 9977# endif 9978int 9979main () 9980{ 9981u_int8_t i 9982 ; 9983 return 0; 9984} 9985_ACEOF 9986rm -f conftest.$ac_objext 9987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9988 (eval $ac_compile) 2>&5 9989 ac_status=$? 9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9991 (exit $ac_status); } && 9992 { ac_try='test -s conftest.$ac_objext' 9993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9994 (eval $ac_try) 2>&5 9995 ac_status=$? 9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9997 (exit $ac_status); }; }; then 9998 ac_cv_lbl_have_u_int8_t=yes 9999else 10000 echo "$as_me: failed program was:" >&5 10001sed 's/^/| /' conftest.$ac_ext >&5 10002 10003ac_cv_lbl_have_u_int8_t=no 10004fi 10005rm -f conftest.$ac_objext conftest.$ac_ext 10006fi 10007 10008 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int8_t" >&5 10009echo "${ECHO_T}$ac_cv_lbl_have_u_int8_t" >&6 10010 if test $ac_cv_lbl_have_u_int8_t = no ; then 10011 cat >>confdefs.h <<\_ACEOF 10012#define u_int8_t u_char 10013_ACEOF 10014 10015 fi 10016echo "$as_me:$LINENO: checking for int16_t using $CC" >&5 10017echo $ECHO_N "checking for int16_t using $CC... $ECHO_C" >&6 10018 if test "${ac_cv_lbl_have_int16_t+set}" = set; then 10019 echo $ECHO_N "(cached) $ECHO_C" >&6 10020else 10021 cat >conftest.$ac_ext <<_ACEOF 10022#line $LINENO "configure" 10023/* confdefs.h. */ 10024_ACEOF 10025cat confdefs.h >>conftest.$ac_ext 10026cat >>conftest.$ac_ext <<_ACEOF 10027/* end confdefs.h. */ 10028 10029# include "confdefs.h" 10030# include <sys/types.h> 10031# if STDC_HEADERS 10032# include <stdlib.h> 10033# include <stddef.h> 10034# endif 10035int 10036main () 10037{ 10038int16_t i 10039 ; 10040 return 0; 10041} 10042_ACEOF 10043rm -f conftest.$ac_objext 10044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10045 (eval $ac_compile) 2>&5 10046 ac_status=$? 10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10048 (exit $ac_status); } && 10049 { ac_try='test -s conftest.$ac_objext' 10050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10051 (eval $ac_try) 2>&5 10052 ac_status=$? 10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10054 (exit $ac_status); }; }; then 10055 ac_cv_lbl_have_int16_t=yes 10056else 10057 echo "$as_me: failed program was:" >&5 10058sed 's/^/| /' conftest.$ac_ext >&5 10059 10060ac_cv_lbl_have_int16_t=no 10061fi 10062rm -f conftest.$ac_objext conftest.$ac_ext 10063fi 10064 10065 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int16_t" >&5 10066echo "${ECHO_T}$ac_cv_lbl_have_int16_t" >&6 10067 if test $ac_cv_lbl_have_int16_t = no ; then 10068 cat >>confdefs.h <<\_ACEOF 10069#define int16_t short 10070_ACEOF 10071 10072 fi 10073echo "$as_me:$LINENO: checking for u_int16_t using $CC" >&5 10074echo $ECHO_N "checking for u_int16_t using $CC... $ECHO_C" >&6 10075 if test "${ac_cv_lbl_have_u_int16_t+set}" = set; then 10076 echo $ECHO_N "(cached) $ECHO_C" >&6 10077else 10078 cat >conftest.$ac_ext <<_ACEOF 10079#line $LINENO "configure" 10080/* confdefs.h. */ 10081_ACEOF 10082cat confdefs.h >>conftest.$ac_ext 10083cat >>conftest.$ac_ext <<_ACEOF 10084/* end confdefs.h. */ 10085 10086# include "confdefs.h" 10087# include <sys/types.h> 10088# if STDC_HEADERS 10089# include <stdlib.h> 10090# include <stddef.h> 10091# endif 10092int 10093main () 10094{ 10095u_int16_t i 10096 ; 10097 return 0; 10098} 10099_ACEOF 10100rm -f conftest.$ac_objext 10101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10102 (eval $ac_compile) 2>&5 10103 ac_status=$? 10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10105 (exit $ac_status); } && 10106 { ac_try='test -s conftest.$ac_objext' 10107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10108 (eval $ac_try) 2>&5 10109 ac_status=$? 10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10111 (exit $ac_status); }; }; then 10112 ac_cv_lbl_have_u_int16_t=yes 10113else 10114 echo "$as_me: failed program was:" >&5 10115sed 's/^/| /' conftest.$ac_ext >&5 10116 10117ac_cv_lbl_have_u_int16_t=no 10118fi 10119rm -f conftest.$ac_objext conftest.$ac_ext 10120fi 10121 10122 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int16_t" >&5 10123echo "${ECHO_T}$ac_cv_lbl_have_u_int16_t" >&6 10124 if test $ac_cv_lbl_have_u_int16_t = no ; then 10125 cat >>confdefs.h <<\_ACEOF 10126#define u_int16_t u_short 10127_ACEOF 10128 10129 fi 10130echo "$as_me:$LINENO: checking for int32_t using $CC" >&5 10131echo $ECHO_N "checking for int32_t using $CC... $ECHO_C" >&6 10132 if test "${ac_cv_lbl_have_int32_t+set}" = set; then 10133 echo $ECHO_N "(cached) $ECHO_C" >&6 10134else 10135 cat >conftest.$ac_ext <<_ACEOF 10136#line $LINENO "configure" 10137/* confdefs.h. */ 10138_ACEOF 10139cat confdefs.h >>conftest.$ac_ext 10140cat >>conftest.$ac_ext <<_ACEOF 10141/* end confdefs.h. */ 10142 10143# include "confdefs.h" 10144# include <sys/types.h> 10145# if STDC_HEADERS 10146# include <stdlib.h> 10147# include <stddef.h> 10148# endif 10149int 10150main () 10151{ 10152int32_t i 10153 ; 10154 return 0; 10155} 10156_ACEOF 10157rm -f conftest.$ac_objext 10158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10159 (eval $ac_compile) 2>&5 10160 ac_status=$? 10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10162 (exit $ac_status); } && 10163 { ac_try='test -s conftest.$ac_objext' 10164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10165 (eval $ac_try) 2>&5 10166 ac_status=$? 10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10168 (exit $ac_status); }; }; then 10169 ac_cv_lbl_have_int32_t=yes 10170else 10171 echo "$as_me: failed program was:" >&5 10172sed 's/^/| /' conftest.$ac_ext >&5 10173 10174ac_cv_lbl_have_int32_t=no 10175fi 10176rm -f conftest.$ac_objext conftest.$ac_ext 10177fi 10178 10179 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int32_t" >&5 10180echo "${ECHO_T}$ac_cv_lbl_have_int32_t" >&6 10181 if test $ac_cv_lbl_have_int32_t = no ; then 10182 cat >>confdefs.h <<\_ACEOF 10183#define int32_t int 10184_ACEOF 10185 10186 fi 10187echo "$as_me:$LINENO: checking for u_int32_t using $CC" >&5 10188echo $ECHO_N "checking for u_int32_t using $CC... $ECHO_C" >&6 10189 if test "${ac_cv_lbl_have_u_int32_t+set}" = set; then 10190 echo $ECHO_N "(cached) $ECHO_C" >&6 10191else 10192 cat >conftest.$ac_ext <<_ACEOF 10193#line $LINENO "configure" 10194/* confdefs.h. */ 10195_ACEOF 10196cat confdefs.h >>conftest.$ac_ext 10197cat >>conftest.$ac_ext <<_ACEOF 10198/* end confdefs.h. */ 10199 10200# include "confdefs.h" 10201# include <sys/types.h> 10202# if STDC_HEADERS 10203# include <stdlib.h> 10204# include <stddef.h> 10205# endif 10206int 10207main () 10208{ 10209u_int32_t i 10210 ; 10211 return 0; 10212} 10213_ACEOF 10214rm -f conftest.$ac_objext 10215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10216 (eval $ac_compile) 2>&5 10217 ac_status=$? 10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10219 (exit $ac_status); } && 10220 { ac_try='test -s conftest.$ac_objext' 10221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10222 (eval $ac_try) 2>&5 10223 ac_status=$? 10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10225 (exit $ac_status); }; }; then 10226 ac_cv_lbl_have_u_int32_t=yes 10227else 10228 echo "$as_me: failed program was:" >&5 10229sed 's/^/| /' conftest.$ac_ext >&5 10230 10231ac_cv_lbl_have_u_int32_t=no 10232fi 10233rm -f conftest.$ac_objext conftest.$ac_ext 10234fi 10235 10236 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int32_t" >&5 10237echo "${ECHO_T}$ac_cv_lbl_have_u_int32_t" >&6 10238 if test $ac_cv_lbl_have_u_int32_t = no ; then 10239 cat >>confdefs.h <<\_ACEOF 10240#define u_int32_t u_int 10241_ACEOF 10242 10243 fi 10244echo "$as_me:$LINENO: checking for int64_t using $CC" >&5 10245echo $ECHO_N "checking for int64_t using $CC... $ECHO_C" >&6 10246 if test "${ac_cv_lbl_have_int64_t+set}" = set; then 10247 echo $ECHO_N "(cached) $ECHO_C" >&6 10248else 10249 cat >conftest.$ac_ext <<_ACEOF 10250#line $LINENO "configure" 10251/* confdefs.h. */ 10252_ACEOF 10253cat confdefs.h >>conftest.$ac_ext 10254cat >>conftest.$ac_ext <<_ACEOF 10255/* end confdefs.h. */ 10256 10257# include "confdefs.h" 10258# include <sys/types.h> 10259# if STDC_HEADERS 10260# include <stdlib.h> 10261# include <stddef.h> 10262# endif 10263int 10264main () 10265{ 10266int64_t i 10267 ; 10268 return 0; 10269} 10270_ACEOF 10271rm -f conftest.$ac_objext 10272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10273 (eval $ac_compile) 2>&5 10274 ac_status=$? 10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10276 (exit $ac_status); } && 10277 { ac_try='test -s conftest.$ac_objext' 10278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10279 (eval $ac_try) 2>&5 10280 ac_status=$? 10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10282 (exit $ac_status); }; }; then 10283 ac_cv_lbl_have_int64_t=yes 10284else 10285 echo "$as_me: failed program was:" >&5 10286sed 's/^/| /' conftest.$ac_ext >&5 10287 10288ac_cv_lbl_have_int64_t=no 10289fi 10290rm -f conftest.$ac_objext conftest.$ac_ext 10291fi 10292 10293 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int64_t" >&5 10294echo "${ECHO_T}$ac_cv_lbl_have_int64_t" >&6 10295 if test $ac_cv_lbl_have_int64_t = no ; then 10296 cat >>confdefs.h <<\_ACEOF 10297#define int64_t long long 10298_ACEOF 10299 10300 fi 10301echo "$as_me:$LINENO: checking for u_int64_t using $CC" >&5 10302echo $ECHO_N "checking for u_int64_t using $CC... $ECHO_C" >&6 10303 if test "${ac_cv_lbl_have_u_int64_t+set}" = set; then 10304 echo $ECHO_N "(cached) $ECHO_C" >&6 10305else 10306 cat >conftest.$ac_ext <<_ACEOF 10307#line $LINENO "configure" 10308/* confdefs.h. */ 10309_ACEOF 10310cat confdefs.h >>conftest.$ac_ext 10311cat >>conftest.$ac_ext <<_ACEOF 10312/* end confdefs.h. */ 10313 10314# include "confdefs.h" 10315# include <sys/types.h> 10316# if STDC_HEADERS 10317# include <stdlib.h> 10318# include <stddef.h> 10319# endif 10320int 10321main () 10322{ 10323u_int64_t i 10324 ; 10325 return 0; 10326} 10327_ACEOF 10328rm -f conftest.$ac_objext 10329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10330 (eval $ac_compile) 2>&5 10331 ac_status=$? 10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10333 (exit $ac_status); } && 10334 { ac_try='test -s conftest.$ac_objext' 10335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10336 (eval $ac_try) 2>&5 10337 ac_status=$? 10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10339 (exit $ac_status); }; }; then 10340 ac_cv_lbl_have_u_int64_t=yes 10341else 10342 echo "$as_me: failed program was:" >&5 10343sed 's/^/| /' conftest.$ac_ext >&5 10344 10345ac_cv_lbl_have_u_int64_t=no 10346fi 10347rm -f conftest.$ac_objext conftest.$ac_ext 10348fi 10349 10350 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int64_t" >&5 10351echo "${ECHO_T}$ac_cv_lbl_have_u_int64_t" >&6 10352 if test $ac_cv_lbl_have_u_int64_t = no ; then 10353 cat >>confdefs.h <<\_ACEOF 10354#define u_int64_t unsigned long long 10355_ACEOF 10356 10357 fi 10358 10359# 10360# We can't just check for <inttypes.h> - some systems have one that 10361# doesn't define all the PRI[doxu]64 macros. 10362# 10363 10364for ac_header in inttypes.h 10365do 10366as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10367if eval "test \"\${$as_ac_Header+set}\" = set"; then 10368 echo "$as_me:$LINENO: checking for $ac_header" >&5 10369echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10370if eval "test \"\${$as_ac_Header+set}\" = set"; then 10371 echo $ECHO_N "(cached) $ECHO_C" >&6 10372fi 10373echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10374echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10375else 10376 # Is the header compilable? 10377echo "$as_me:$LINENO: checking $ac_header usability" >&5 10378echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 10379cat >conftest.$ac_ext <<_ACEOF 10380#line $LINENO "configure" 10381/* confdefs.h. */ 10382_ACEOF 10383cat confdefs.h >>conftest.$ac_ext 10384cat >>conftest.$ac_ext <<_ACEOF 10385/* end confdefs.h. */ 10386$ac_includes_default 10387#include <$ac_header> 10388_ACEOF 10389rm -f conftest.$ac_objext 10390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10391 (eval $ac_compile) 2>&5 10392 ac_status=$? 10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10394 (exit $ac_status); } && 10395 { ac_try='test -s conftest.$ac_objext' 10396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10397 (eval $ac_try) 2>&5 10398 ac_status=$? 10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10400 (exit $ac_status); }; }; then 10401 ac_header_compiler=yes 10402else 10403 echo "$as_me: failed program was:" >&5 10404sed 's/^/| /' conftest.$ac_ext >&5 10405 10406ac_header_compiler=no 10407fi 10408rm -f conftest.$ac_objext conftest.$ac_ext 10409echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10410echo "${ECHO_T}$ac_header_compiler" >&6 10411 10412# Is the header present? 10413echo "$as_me:$LINENO: checking $ac_header presence" >&5 10414echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 10415cat >conftest.$ac_ext <<_ACEOF 10416#line $LINENO "configure" 10417/* confdefs.h. */ 10418_ACEOF 10419cat confdefs.h >>conftest.$ac_ext 10420cat >>conftest.$ac_ext <<_ACEOF 10421/* end confdefs.h. */ 10422#include <$ac_header> 10423_ACEOF 10424if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10425 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10426 ac_status=$? 10427 grep -v '^ *+' conftest.er1 >conftest.err 10428 rm -f conftest.er1 10429 cat conftest.err >&5 10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10431 (exit $ac_status); } >/dev/null; then 10432 if test -s conftest.err; then 10433 ac_cpp_err=$ac_c_preproc_warn_flag 10434 else 10435 ac_cpp_err= 10436 fi 10437else 10438 ac_cpp_err=yes 10439fi 10440if test -z "$ac_cpp_err"; then 10441 ac_header_preproc=yes 10442else 10443 echo "$as_me: failed program was:" >&5 10444sed 's/^/| /' conftest.$ac_ext >&5 10445 10446 ac_header_preproc=no 10447fi 10448rm -f conftest.err conftest.$ac_ext 10449echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10450echo "${ECHO_T}$ac_header_preproc" >&6 10451 10452# So? What about this header? 10453case $ac_header_compiler:$ac_header_preproc in 10454 yes:no ) 10455 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10456echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10458echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10459 ( 10460 cat <<\_ASBOX 10461## ------------------------------------ ## 10462## Report this to bug-autoconf@gnu.org. ## 10463## ------------------------------------ ## 10464_ASBOX 10465 ) | 10466 sed "s/^/$as_me: WARNING: /" >&2 10467 ;; 10468 no:yes ) 10469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10470echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10472echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10474echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10475 ( 10476 cat <<\_ASBOX 10477## ------------------------------------ ## 10478## Report this to bug-autoconf@gnu.org. ## 10479## ------------------------------------ ## 10480_ASBOX 10481 ) | 10482 sed "s/^/$as_me: WARNING: /" >&2 10483 ;; 10484esac 10485echo "$as_me:$LINENO: checking for $ac_header" >&5 10486echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10487if eval "test \"\${$as_ac_Header+set}\" = set"; then 10488 echo $ECHO_N "(cached) $ECHO_C" >&6 10489else 10490 eval "$as_ac_Header=$ac_header_preproc" 10491fi 10492echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10493echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10494 10495fi 10496if test `eval echo '${'$as_ac_Header'}'` = yes; then 10497 cat >>confdefs.h <<_ACEOF 10498#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10499_ACEOF 10500 10501 # 10502 # OK, we have inttypes.h, but does it define those macros? 10503 # 10504 echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5 10505echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6 10506 cat >conftest.$ac_ext <<_ACEOF 10507 10508 #line $LINENO "configure" 10509/* confdefs.h. */ 10510_ACEOF 10511cat confdefs.h >>conftest.$ac_ext 10512cat >>conftest.$ac_ext <<_ACEOF 10513/* end confdefs.h. */ 10514 10515 #include <inttypes.h> 10516 #include <stdio.h> 10517 #include <sys/types.h> 10518 10519 main() 10520 { 10521 printf("%" PRId64 "\n", (u_int64_t)1); 10522 printf("%" PRIo64 "\n", (u_int64_t)1); 10523 printf("%" PRIx64 "\n", (u_int64_t)1); 10524 printf("%" PRIu64 "\n", (u_int64_t)1); 10525 } 10526 10527 10528_ACEOF 10529rm -f conftest.$ac_objext 10530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10531 (eval $ac_compile) 2>&5 10532 ac_status=$? 10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10534 (exit $ac_status); } && 10535 { ac_try='test -s conftest.$ac_objext' 10536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10537 (eval $ac_try) 2>&5 10538 ac_status=$? 10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10540 (exit $ac_status); }; }; then 10541 10542 echo "$as_me:$LINENO: result: yes" >&5 10543echo "${ECHO_T}yes" >&6 10544 ac_lbl_inttypes_h_defines_formats=yes 10545 10546else 10547 echo "$as_me: failed program was:" >&5 10548sed 's/^/| /' conftest.$ac_ext >&5 10549 10550 10551 echo "$as_me:$LINENO: result: no" >&5 10552echo "${ECHO_T}no" >&6 10553 ac_lbl_inttypes_h_defines_formats=no 10554 10555fi 10556rm -f conftest.$ac_objext conftest.$ac_ext 10557 10558else 10559 10560 # 10561 # We don't have inttypes.h, so it obviously can't define those 10562 # macros. 10563 # 10564 ac_lbl_inttypes_h_defines_formats=no 10565 10566fi 10567 10568done 10569 10570if test "$ac_lbl_inttypes_h_defines_formats" = yes; then 10571 cat >>confdefs.h <<\_ACEOF 10572#define INTTYPES_H_DEFINES_FORMATS 1 10573_ACEOF 10574 10575else 10576 10577 echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5 10578echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6 10579 if test "$cross_compiling" = yes; then 10580 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 10581See \`config.log' for more details." >&5 10582echo "$as_me: error: cannot run test program while cross compiling 10583See \`config.log' for more details." >&2;} 10584 { (exit 1); exit 1; }; } 10585else 10586 cat >conftest.$ac_ext <<_ACEOF 10587 10588 #line $LINENO "configure" 10589/* confdefs.h. */ 10590_ACEOF 10591cat confdefs.h >>conftest.$ac_ext 10592cat >>conftest.$ac_ext <<_ACEOF 10593/* end confdefs.h. */ 10594 10595# ifdef HAVE_INTTYPES_H 10596 #include <inttypes.h> 10597# endif 10598 #include <stdio.h> 10599 #include <sys/types.h> 10600 10601 main() 10602 { 10603 u_int64_t t = 1; 10604 char strbuf[16+1]; 10605 sprintf(strbuf, "%016llx", t << 32); 10606 if (strcmp(strbuf, "0000000100000000") == 0) 10607 exit(0); 10608 else 10609 exit(1); 10610 } 10611 10612 10613_ACEOF 10614rm -f conftest$ac_exeext 10615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10616 (eval $ac_link) 2>&5 10617 ac_status=$? 10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10619 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10621 (eval $ac_try) 2>&5 10622 ac_status=$? 10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10624 (exit $ac_status); }; }; then 10625 10626 cat >>confdefs.h <<\_ACEOF 10627#define PRId64 "lld" 10628_ACEOF 10629 10630 cat >>confdefs.h <<\_ACEOF 10631#define PRIo64 "llo" 10632_ACEOF 10633 10634 cat >>confdefs.h <<\_ACEOF 10635#define PRIx64 "llx" 10636_ACEOF 10637 10638 cat >>confdefs.h <<\_ACEOF 10639#define PRIu64 "llu" 10640_ACEOF 10641 10642 echo "$as_me:$LINENO: result: yes" >&5 10643echo "${ECHO_T}yes" >&6 10644 10645else 10646 echo "$as_me: program exited with status $ac_status" >&5 10647echo "$as_me: failed program was:" >&5 10648sed 's/^/| /' conftest.$ac_ext >&5 10649 10650( exit $ac_status ) 10651 10652 echo "$as_me:$LINENO: result: no" >&5 10653echo "${ECHO_T}no" >&6 10654 10655 10656 echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5 10657echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6 10658 if test "$cross_compiling" = yes; then 10659 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 10660See \`config.log' for more details." >&5 10661echo "$as_me: error: cannot run test program while cross compiling 10662See \`config.log' for more details." >&2;} 10663 { (exit 1); exit 1; }; } 10664else 10665 cat >conftest.$ac_ext <<_ACEOF 10666 10667 #line $LINENO "configure" 10668/* confdefs.h. */ 10669_ACEOF 10670cat confdefs.h >>conftest.$ac_ext 10671cat >>conftest.$ac_ext <<_ACEOF 10672/* end confdefs.h. */ 10673 10674# ifdef HAVE_INTTYPES_H 10675 #include <inttypes.h> 10676# endif 10677 #include <stdio.h> 10678 #include <sys/types.h> 10679 10680 main() 10681 { 10682 u_int64_t t = 1; 10683 char strbuf[16+1]; 10684 sprintf(strbuf, "%016Lx", t << 32); 10685 if (strcmp(strbuf, "0000000100000000") == 0) 10686 exit(0); 10687 else 10688 exit(1); 10689 } 10690 10691 10692_ACEOF 10693rm -f conftest$ac_exeext 10694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10695 (eval $ac_link) 2>&5 10696 ac_status=$? 10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10700 (eval $ac_try) 2>&5 10701 ac_status=$? 10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10703 (exit $ac_status); }; }; then 10704 10705 cat >>confdefs.h <<\_ACEOF 10706#define PRId64 "Ld" 10707_ACEOF 10708 10709 cat >>confdefs.h <<\_ACEOF 10710#define PRIo64 "Lo" 10711_ACEOF 10712 10713 cat >>confdefs.h <<\_ACEOF 10714#define PRIx64 "Lx" 10715_ACEOF 10716 10717 cat >>confdefs.h <<\_ACEOF 10718#define PRIu64 "Lu" 10719_ACEOF 10720 10721 echo "$as_me:$LINENO: result: yes" >&5 10722echo "${ECHO_T}yes" >&6 10723 10724else 10725 echo "$as_me: program exited with status $ac_status" >&5 10726echo "$as_me: failed program was:" >&5 10727sed 's/^/| /' conftest.$ac_ext >&5 10728 10729( exit $ac_status ) 10730 10731 echo "$as_me:$LINENO: result: no" >&5 10732echo "${ECHO_T}no" >&6 10733 10734 10735 echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5 10736echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6 10737 if test "$cross_compiling" = yes; then 10738 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 10739See \`config.log' for more details." >&5 10740echo "$as_me: error: cannot run test program while cross compiling 10741See \`config.log' for more details." >&2;} 10742 { (exit 1); exit 1; }; } 10743else 10744 cat >conftest.$ac_ext <<_ACEOF 10745 10746 #line $LINENO "configure" 10747/* confdefs.h. */ 10748_ACEOF 10749cat confdefs.h >>conftest.$ac_ext 10750cat >>conftest.$ac_ext <<_ACEOF 10751/* end confdefs.h. */ 10752 10753# ifdef HAVE_INTTYPES_H 10754 #include <inttypes.h> 10755# endif 10756 #include <stdio.h> 10757 #include <sys/types.h> 10758 10759 main() 10760 { 10761 u_int64_t t = 1; 10762 char strbuf[16+1]; 10763 sprintf(strbuf, "%016qx", t << 32); 10764 if (strcmp(strbuf, "0000000100000000") == 0) 10765 exit(0); 10766 else 10767 exit(1); 10768 } 10769 10770 10771_ACEOF 10772rm -f conftest$ac_exeext 10773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10774 (eval $ac_link) 2>&5 10775 ac_status=$? 10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10779 (eval $ac_try) 2>&5 10780 ac_status=$? 10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10782 (exit $ac_status); }; }; then 10783 10784 cat >>confdefs.h <<\_ACEOF 10785#define PRId64 "qd" 10786_ACEOF 10787 10788 cat >>confdefs.h <<\_ACEOF 10789#define PRIo64 "qo" 10790_ACEOF 10791 10792 cat >>confdefs.h <<\_ACEOF 10793#define PRIx64 "qx" 10794_ACEOF 10795 10796 cat >>confdefs.h <<\_ACEOF 10797#define PRIu64 "qu" 10798_ACEOF 10799 10800 echo "$as_me:$LINENO: result: yes" >&5 10801echo "${ECHO_T}yes" >&6 10802 10803else 10804 echo "$as_me: program exited with status $ac_status" >&5 10805echo "$as_me: failed program was:" >&5 10806sed 's/^/| /' conftest.$ac_ext >&5 10807 10808( exit $ac_status ) 10809 10810 echo "$as_me:$LINENO: result: no" >&5 10811echo "${ECHO_T}no" >&6 10812 10813 { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5 10814echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;} 10815 { (exit 1); exit 1; }; } 10816 10817 10818fi 10819rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10820fi 10821 10822 10823 10824fi 10825rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10826fi 10827 10828 10829 10830fi 10831rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10832fi 10833 10834fi 10835 10836rm -f os-proto.h 10837 if test "${LBL_CFLAGS+set}" = set; then 10838 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}" 10839 fi 10840 if test -f .devel ; then 10841 if test "$GCC" = yes ; then 10842 if test "${LBL_CFLAGS+set}" != set; then 10843 if test "$ac_cv_prog_cc_g" = yes ; then 10844 V_CCOPT="-g $V_CCOPT" 10845 fi 10846 V_CCOPT="$V_CCOPT -Wall" 10847 if test $ac_cv_lbl_gcc_vers -gt 1 ; then 10848 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -W" 10849 fi 10850 fi 10851 else 10852 case "$host_os" in 10853 10854 irix6*) 10855 V_CCOPT="$V_CCOPT -n32" 10856 ;; 10857 10858 *) 10859 ;; 10860 esac 10861 fi 10862 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'` 10863 name="lbl/os-$os.h" 10864 if test -f $name ; then 10865 ln -s $name os-proto.h 10866 cat >>confdefs.h <<\_ACEOF 10867#define HAVE_OS_PROTO_H 1 10868_ACEOF 10869 10870 else 10871 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5 10872echo "$as_me: WARNING: can't find $name" >&2;} 10873 fi 10874 fi 10875 10876echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5 10877echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6 10878 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then 10879 echo $ECHO_N "(cached) $ECHO_C" >&6 10880else 10881 cat >conftest.$ac_ext <<_ACEOF 10882#line $LINENO "configure" 10883/* confdefs.h. */ 10884_ACEOF 10885cat confdefs.h >>conftest.$ac_ext 10886cat >>conftest.$ac_ext <<_ACEOF 10887/* end confdefs.h. */ 10888 10889# include <sys/types.h> 10890# include <sys/socket.h> 10891int 10892main () 10893{ 10894u_int i = sizeof(((struct sockaddr *)0)->sa_len) 10895 ; 10896 return 0; 10897} 10898_ACEOF 10899rm -f conftest.$ac_objext 10900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10901 (eval $ac_compile) 2>&5 10902 ac_status=$? 10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10904 (exit $ac_status); } && 10905 { ac_try='test -s conftest.$ac_objext' 10906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10907 (eval $ac_try) 2>&5 10908 ac_status=$? 10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10910 (exit $ac_status); }; }; then 10911 ac_cv_lbl_sockaddr_has_sa_len=yes 10912else 10913 echo "$as_me: failed program was:" >&5 10914sed 's/^/| /' conftest.$ac_ext >&5 10915 10916ac_cv_lbl_sockaddr_has_sa_len=no 10917fi 10918rm -f conftest.$ac_objext conftest.$ac_ext 10919fi 10920 10921 echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5 10922echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6 10923 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then 10924 cat >>confdefs.h <<\_ACEOF 10925#define HAVE_SOCKADDR_SA_LEN 1 10926_ACEOF 10927 10928 fi 10929 10930echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5 10931echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6 10932 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then 10933 echo $ECHO_N "(cached) $ECHO_C" >&6 10934else 10935 case "$host_cpu" in 10936 10937 # 10938 # These are CPU types where: 10939 # 10940 # the CPU faults on an unaligned access, but at least some 10941 # OSes that support that CPU catch the fault and simulate 10942 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) - 10943 # the simulation is slow, so we don't want to use it; 10944 # 10945 # the CPU, I infer (from the old 10946 # 10947 # XXX: should also check that they don't do weird things (like on arm) 10948 # 10949 # comment) doesn't fault on unaligned accesses, but doesn't 10950 # do a normal unaligned fetch, either (e.g., presumably, ARM); 10951 # 10952 # for whatever reason, the test program doesn't work 10953 # (this has been claimed to be the case for several of those 10954 # CPUs - I don't know what the problem is; the problem 10955 # was reported as "the test program dumps core" for SuperH, 10956 # but that's what the test program is *supposed* to do - 10957 # it dumps core before it writes anything, so the test 10958 # for an empty output file should find an empty output 10959 # file and conclude that unaligned accesses don't work). 10960 # 10961 # This run-time test won't work if you're cross-compiling, so 10962 # in order to support cross-compiling for a particular CPU, 10963 # we have to wire in the list of CPU types anyway, as far as 10964 # I know, so perhaps we should just have a set of CPUs on 10965 # which we know it doesn't work, a set of CPUs on which we 10966 # know it does work, and have the script just fail on other 10967 # cpu types and update it when such a failure occurs. 10968 # 10969 alpha*|arm*|hp*|mips*|sh*|sparc*|ia64|nv1) 10970 ac_cv_lbl_unaligned_fail=yes 10971 ;; 10972 10973 *) 10974 cat >conftest.c <<EOF 10975# include <sys/types.h> 10976# include <sys/wait.h> 10977# include <stdio.h> 10978 unsigned char a[5] = { 1, 2, 3, 4, 5 }; 10979 main() { 10980 unsigned int i; 10981 pid_t pid; 10982 int status; 10983 /* avoid "core dumped" message */ 10984 pid = fork(); 10985 if (pid < 0) 10986 exit(2); 10987 if (pid > 0) { 10988 /* parent */ 10989 pid = waitpid(pid, &status, 0); 10990 if (pid < 0) 10991 exit(3); 10992 exit(!WIFEXITED(status)); 10993 } 10994 /* child */ 10995 i = *(unsigned int *)&a[1]; 10996 printf("%d\n", i); 10997 exit(0); 10998 } 10999EOF 11000 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \ 11001 conftest.c $LIBS >/dev/null 2>&1 11002 if test ! -x conftest ; then 11003 ac_cv_lbl_unaligned_fail=yes 11004 else 11005 ./conftest >conftest.out 11006 if test ! -s conftest.out ; then 11007 ac_cv_lbl_unaligned_fail=yes 11008 else 11009 ac_cv_lbl_unaligned_fail=no 11010 fi 11011 fi 11012 rm -f conftest* core core.conftest 11013 ;; 11014 esac 11015fi 11016 11017 echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5 11018echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6 11019 if test $ac_cv_lbl_unaligned_fail = yes ; then 11020 cat >>confdefs.h <<\_ACEOF 11021#define LBL_ALIGN 1 11022_ACEOF 11023 11024 fi 11025 11026 11027 echo "$as_me:$LINENO: checking for h_errno" >&5 11028echo $ECHO_N "checking for h_errno... $ECHO_C" >&6 11029 if test "${ac_cv_var_h_errno+set}" = set; then 11030 echo $ECHO_N "(cached) $ECHO_C" >&6 11031else 11032 cat >conftest.$ac_ext <<_ACEOF 11033#line $LINENO "configure" 11034/* confdefs.h. */ 11035_ACEOF 11036cat confdefs.h >>conftest.$ac_ext 11037cat >>conftest.$ac_ext <<_ACEOF 11038/* end confdefs.h. */ 11039 11040# include <sys/types.h> 11041# include <netdb.h> 11042int 11043main () 11044{ 11045int foo = h_errno; 11046 ; 11047 return 0; 11048} 11049_ACEOF 11050rm -f conftest.$ac_objext 11051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11052 (eval $ac_compile) 2>&5 11053 ac_status=$? 11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11055 (exit $ac_status); } && 11056 { ac_try='test -s conftest.$ac_objext' 11057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11058 (eval $ac_try) 2>&5 11059 ac_status=$? 11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11061 (exit $ac_status); }; }; then 11062 ac_cv_var_h_errno=yes 11063else 11064 echo "$as_me: failed program was:" >&5 11065sed 's/^/| /' conftest.$ac_ext >&5 11066 11067ac_cv_var_h_errno=no 11068fi 11069rm -f conftest.$ac_objext conftest.$ac_ext 11070fi 11071 11072 echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5 11073echo "${ECHO_T}$ac_cv_var_h_errno" >&6 11074 if test "$ac_cv_var_h_errno" = "yes"; then 11075 cat >>confdefs.h <<\_ACEOF 11076#define HAVE_H_ERRNO 1 11077_ACEOF 11078 11079 fi 11080 11081 11082 11083# Check whether --with-crypto or --without-crypto was given. 11084if test "${with_crypto+set}" = set; then 11085 withval="$with_crypto" 11086 11087else 11088 11089echo "$as_me:$LINENO: checking for SSLeay" >&5 11090echo $ECHO_N "checking for SSLeay... $ECHO_C" >&6 11091ac_cv_ssleay_path=no 11092incdir=no 11093 11094Xprefix=`eval echo $prefix` 11095 11096for dir in $Xprefix /usr/${host_alias} /usr /usr/local /usr/local/ssl /usr/pkg; do 11097 # 11098 # XXX - is there a better way to check if a given library is 11099 # in a given directory than checking each of the possible 11100 # shared library suffixes? 11101 # 11102 # Are there any other suffixes we need to look for? Do we have to 11103 # worry about ".so.{version}"? 11104 # 11105 # Or should we just look for "libcrypto.*"? 11106 # 11107 if test -d $dir/lib -a \( -f $dir/lib/libcrypto.a -o \ 11108 -f $dir/lib/libcrypto.so -o \ 11109 -f $dir/lib/libcrypto.sl -o \ 11110 -f $dir/lib/libcrypto.dylib \); then 11111 ac_cv_ssleay_path=$dir 11112 fi 11113 if test -d $dir/include/openssl -a -f $dir/include/openssl/des.h; then 11114 incdir="-I$dir/include" 11115 fi 11116 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then 11117 break; 11118 else 11119 ac_cv_ssleay_path=no 11120 incdir=no 11121 fi 11122done 11123echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5 11124echo "${ECHO_T}$ac_cv_ssleay_path" >&6 11125if test "$ac_cv_ssleay_path" != no; then 11126 V_INCLS="$V_INCLS $incdir" 11127 LDFLAGS="-L$dir/lib $LDFLAGS" 11128 if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then 11129 LIBS="$LIBS -lRSAglue" 11130 fi 11131 if test -f $ac_cv_ssleay_path/lib/librsaref.a; then 11132 LIBS="$LIBS -lrsaref" 11133 fi 11134 11135echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5 11136echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6 11137if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then 11138 echo $ECHO_N "(cached) $ECHO_C" >&6 11139else 11140 ac_check_lib_save_LIBS=$LIBS 11141LIBS="-lcrypto $LIBS" 11142cat >conftest.$ac_ext <<_ACEOF 11143#line $LINENO "configure" 11144/* confdefs.h. */ 11145_ACEOF 11146cat confdefs.h >>conftest.$ac_ext 11147cat >>conftest.$ac_ext <<_ACEOF 11148/* end confdefs.h. */ 11149 11150/* Override any gcc2 internal prototype to avoid an error. */ 11151#ifdef __cplusplus 11152extern "C" 11153#endif 11154/* We use char because int might match the return type of a gcc2 11155 builtin and then its argument prototype would still apply. */ 11156char DES_cbc_encrypt (); 11157int 11158main () 11159{ 11160DES_cbc_encrypt (); 11161 ; 11162 return 0; 11163} 11164_ACEOF 11165rm -f conftest.$ac_objext conftest$ac_exeext 11166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11167 (eval $ac_link) 2>&5 11168 ac_status=$? 11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11170 (exit $ac_status); } && 11171 { ac_try='test -s conftest$ac_exeext' 11172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11173 (eval $ac_try) 2>&5 11174 ac_status=$? 11175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11176 (exit $ac_status); }; }; then 11177 ac_cv_lib_crypto_DES_cbc_encrypt=yes 11178else 11179 echo "$as_me: failed program was:" >&5 11180sed 's/^/| /' conftest.$ac_ext >&5 11181 11182ac_cv_lib_crypto_DES_cbc_encrypt=no 11183fi 11184rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11185LIBS=$ac_check_lib_save_LIBS 11186fi 11187echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5 11188echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6 11189if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then 11190 cat >>confdefs.h <<_ACEOF 11191#define HAVE_LIBCRYPTO 1 11192_ACEOF 11193 11194 LIBS="-lcrypto $LIBS" 11195 11196fi 11197 11198 11199 CPPFLAGS="$CPPFLAGS $V_INCLS" 11200 11201for ac_header in openssl/evp.h 11202do 11203as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11204if eval "test \"\${$as_ac_Header+set}\" = set"; then 11205 echo "$as_me:$LINENO: checking for $ac_header" >&5 11206echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11207if eval "test \"\${$as_ac_Header+set}\" = set"; then 11208 echo $ECHO_N "(cached) $ECHO_C" >&6 11209fi 11210echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 11211echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11212else 11213 # Is the header compilable? 11214echo "$as_me:$LINENO: checking $ac_header usability" >&5 11215echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 11216cat >conftest.$ac_ext <<_ACEOF 11217#line $LINENO "configure" 11218/* confdefs.h. */ 11219_ACEOF 11220cat confdefs.h >>conftest.$ac_ext 11221cat >>conftest.$ac_ext <<_ACEOF 11222/* end confdefs.h. */ 11223$ac_includes_default 11224#include <$ac_header> 11225_ACEOF 11226rm -f conftest.$ac_objext 11227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11228 (eval $ac_compile) 2>&5 11229 ac_status=$? 11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11231 (exit $ac_status); } && 11232 { ac_try='test -s conftest.$ac_objext' 11233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11234 (eval $ac_try) 2>&5 11235 ac_status=$? 11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11237 (exit $ac_status); }; }; then 11238 ac_header_compiler=yes 11239else 11240 echo "$as_me: failed program was:" >&5 11241sed 's/^/| /' conftest.$ac_ext >&5 11242 11243ac_header_compiler=no 11244fi 11245rm -f conftest.$ac_objext conftest.$ac_ext 11246echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11247echo "${ECHO_T}$ac_header_compiler" >&6 11248 11249# Is the header present? 11250echo "$as_me:$LINENO: checking $ac_header presence" >&5 11251echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 11252cat >conftest.$ac_ext <<_ACEOF 11253#line $LINENO "configure" 11254/* confdefs.h. */ 11255_ACEOF 11256cat confdefs.h >>conftest.$ac_ext 11257cat >>conftest.$ac_ext <<_ACEOF 11258/* end confdefs.h. */ 11259#include <$ac_header> 11260_ACEOF 11261if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 11262 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 11263 ac_status=$? 11264 grep -v '^ *+' conftest.er1 >conftest.err 11265 rm -f conftest.er1 11266 cat conftest.err >&5 11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11268 (exit $ac_status); } >/dev/null; then 11269 if test -s conftest.err; then 11270 ac_cpp_err=$ac_c_preproc_warn_flag 11271 else 11272 ac_cpp_err= 11273 fi 11274else 11275 ac_cpp_err=yes 11276fi 11277if test -z "$ac_cpp_err"; then 11278 ac_header_preproc=yes 11279else 11280 echo "$as_me: failed program was:" >&5 11281sed 's/^/| /' conftest.$ac_ext >&5 11282 11283 ac_header_preproc=no 11284fi 11285rm -f conftest.err conftest.$ac_ext 11286echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11287echo "${ECHO_T}$ac_header_preproc" >&6 11288 11289# So? What about this header? 11290case $ac_header_compiler:$ac_header_preproc in 11291 yes:no ) 11292 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11293echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11295echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11296 ( 11297 cat <<\_ASBOX 11298## ------------------------------------ ## 11299## Report this to bug-autoconf@gnu.org. ## 11300## ------------------------------------ ## 11301_ASBOX 11302 ) | 11303 sed "s/^/$as_me: WARNING: /" >&2 11304 ;; 11305 no:yes ) 11306 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11307echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11308 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11309echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11311echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11312 ( 11313 cat <<\_ASBOX 11314## ------------------------------------ ## 11315## Report this to bug-autoconf@gnu.org. ## 11316## ------------------------------------ ## 11317_ASBOX 11318 ) | 11319 sed "s/^/$as_me: WARNING: /" >&2 11320 ;; 11321esac 11322echo "$as_me:$LINENO: checking for $ac_header" >&5 11323echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11324if eval "test \"\${$as_ac_Header+set}\" = set"; then 11325 echo $ECHO_N "(cached) $ECHO_C" >&6 11326else 11327 eval "$as_ac_Header=$ac_header_preproc" 11328fi 11329echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 11330echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11331 11332fi 11333if test `eval echo '${'$as_ac_Header'}'` = yes; then 11334 cat >>confdefs.h <<_ACEOF 11335#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11336_ACEOF 11337 11338fi 11339 11340done 11341 11342fi 11343 11344fi; 11345 11346if test "$missing_includes" = "yes"; then 11347 CPPFLAGS="$CPPFLAGS -I\$(srcdir)/missing" 11348 V_INCLS="$V_INCLS -I\$(srcdir)/missing" 11349fi 11350 11351 11352 11353 11354 11355 11356 11357 11358# Find a good install program. We prefer a C program (faster), 11359# so one script is as good as another. But avoid the broken or 11360# incompatible versions: 11361# SysV /etc/install, /usr/sbin/install 11362# SunOS /usr/etc/install 11363# IRIX /sbin/install 11364# AIX /bin/install 11365# AmigaOS /C/install, which installs bootblocks on floppy discs 11366# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 11367# AFS /usr/afsws/bin/install, which mishandles nonexistent args 11368# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 11369# ./install, which can be erroneously created by make from ./install.sh. 11370echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 11371echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 11372if test -z "$INSTALL"; then 11373if test "${ac_cv_path_install+set}" = set; then 11374 echo $ECHO_N "(cached) $ECHO_C" >&6 11375else 11376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11377for as_dir in $PATH 11378do 11379 IFS=$as_save_IFS 11380 test -z "$as_dir" && as_dir=. 11381 # Account for people who put trailing slashes in PATH elements. 11382case $as_dir/ in 11383 ./ | .// | /cC/* | \ 11384 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 11385 /usr/ucb/* ) ;; 11386 *) 11387 # OSF1 and SCO ODT 3.0 have their own names for install. 11388 # Don't use installbsd from OSF since it installs stuff as root 11389 # by default. 11390 for ac_prog in ginstall scoinst install; do 11391 for ac_exec_ext in '' $ac_executable_extensions; do 11392 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 11393 if test $ac_prog = install && 11394 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 11395 # AIX install. It has an incompatible calling convention. 11396 : 11397 elif test $ac_prog = install && 11398 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 11399 # program-specific install script used by HP pwplus--don't use. 11400 : 11401 else 11402 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 11403 break 3 11404 fi 11405 fi 11406 done 11407 done 11408 ;; 11409esac 11410done 11411 11412 11413fi 11414 if test "${ac_cv_path_install+set}" = set; then 11415 INSTALL=$ac_cv_path_install 11416 else 11417 # As a last resort, use the slow shell script. We don't cache a 11418 # path for INSTALL within a source directory, because that will 11419 # break other packages using the cache if that directory is 11420 # removed, or if the path is relative. 11421 INSTALL=$ac_install_sh 11422 fi 11423fi 11424echo "$as_me:$LINENO: result: $INSTALL" >&5 11425echo "${ECHO_T}$INSTALL" >&6 11426 11427# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 11428# It thinks the first close brace ends the variable substitution. 11429test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 11430 11431test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 11432 11433test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 11434 11435 11436 ac_config_headers="$ac_config_headers config.h" 11437 11438 11439 ac_config_commands="$ac_config_commands default-1" 11440 11441 ac_config_files="$ac_config_files Makefile" 11442cat >confcache <<\_ACEOF 11443# This file is a shell script that caches the results of configure 11444# tests run on this system so they can be shared between configure 11445# scripts and configure runs, see configure's option --config-cache. 11446# It is not useful on other systems. If it contains results you don't 11447# want to keep, you may remove or edit it. 11448# 11449# config.status only pays attention to the cache file if you give it 11450# the --recheck option to rerun configure. 11451# 11452# `ac_cv_env_foo' variables (set or unset) will be overridden when 11453# loading this file, other *unset* `ac_cv_foo' will be assigned the 11454# following values. 11455 11456_ACEOF 11457 11458# The following way of writing the cache mishandles newlines in values, 11459# but we know of no workaround that is simple, portable, and efficient. 11460# So, don't put newlines in cache variables' values. 11461# Ultrix sh set writes to stderr and can't be redirected directly, 11462# and sets the high bit in the cache file unless we assign to the vars. 11463{ 11464 (set) 2>&1 | 11465 case `(ac_space=' '; set | grep ac_space) 2>&1` in 11466 *ac_space=\ *) 11467 # `set' does not quote correctly, so add quotes (double-quote 11468 # substitution turns \\\\ into \\, and sed turns \\ into \). 11469 sed -n \ 11470 "s/'/'\\\\''/g; 11471 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11472 ;; 11473 *) 11474 # `set' quotes correctly as required by POSIX, so do not add quotes. 11475 sed -n \ 11476 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 11477 ;; 11478 esac; 11479} | 11480 sed ' 11481 t clear 11482 : clear 11483 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11484 t end 11485 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11486 : end' >>confcache 11487if diff $cache_file confcache >/dev/null 2>&1; then :; else 11488 if test -w $cache_file; then 11489 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 11490 cat confcache >$cache_file 11491 else 11492 echo "not updating unwritable cache $cache_file" 11493 fi 11494fi 11495rm -f confcache 11496 11497test "x$prefix" = xNONE && prefix=$ac_default_prefix 11498# Let make expand exec_prefix. 11499test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11500 11501# VPATH may cause trouble with some makes, so we remove $(srcdir), 11502# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 11503# trailing colons and then remove the whole line if VPATH becomes empty 11504# (actually we leave an empty line to preserve line numbers). 11505if test "x$srcdir" = x.; then 11506 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 11507s/:*\$(srcdir):*/:/; 11508s/:*\${srcdir}:*/:/; 11509s/:*@srcdir@:*/:/; 11510s/^\([^=]*=[ ]*\):*/\1/; 11511s/:*$//; 11512s/^[^=]*=[ ]*$//; 11513}' 11514fi 11515 11516DEFS=-DHAVE_CONFIG_H 11517 11518ac_libobjs= 11519ac_ltlibobjs= 11520for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11521 # 1. Remove the extension, and $U if already installed. 11522 ac_i=`echo "$ac_i" | 11523 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 11524 # 2. Add them. 11525 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 11526 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 11527done 11528LIBOBJS=$ac_libobjs 11529 11530LTLIBOBJS=$ac_ltlibobjs 11531 11532 11533 11534: ${CONFIG_STATUS=./config.status} 11535ac_clean_files_save=$ac_clean_files 11536ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11537{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 11538echo "$as_me: creating $CONFIG_STATUS" >&6;} 11539cat >$CONFIG_STATUS <<_ACEOF 11540#! $SHELL 11541# Generated by $as_me. 11542# Run this file to recreate the current configuration. 11543# Compiler output produced by configure, useful for debugging 11544# configure, is in config.log if it exists. 11545 11546debug=false 11547ac_cs_recheck=false 11548ac_cs_silent=false 11549SHELL=\${CONFIG_SHELL-$SHELL} 11550_ACEOF 11551 11552cat >>$CONFIG_STATUS <<\_ACEOF 11553## --------------------- ## 11554## M4sh Initialization. ## 11555## --------------------- ## 11556 11557# Be Bourne compatible 11558if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 11559 emulate sh 11560 NULLCMD=: 11561 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 11562 # is contrary to our usage. Disable this feature. 11563 alias -g '${1+"$@"}'='"$@"' 11564elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 11565 set -o posix 11566fi 11567 11568# Support unset when possible. 11569if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 11570 as_unset=unset 11571else 11572 as_unset=false 11573fi 11574 11575 11576# Work around bugs in pre-3.0 UWIN ksh. 11577$as_unset ENV MAIL MAILPATH 11578PS1='$ ' 11579PS2='> ' 11580PS4='+ ' 11581 11582# NLS nuisances. 11583for as_var in \ 11584 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 11585 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 11586 LC_TELEPHONE LC_TIME 11587do 11588 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then 11589 eval $as_var=C; export $as_var 11590 else 11591 $as_unset $as_var 11592 fi 11593done 11594 11595# Required to use basename. 11596if expr a : '\(a\)' >/dev/null 2>&1; then 11597 as_expr=expr 11598else 11599 as_expr=false 11600fi 11601 11602if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 11603 as_basename=basename 11604else 11605 as_basename=false 11606fi 11607 11608 11609# Name of the executable. 11610as_me=`$as_basename "$0" || 11611$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11612 X"$0" : 'X\(//\)$' \| \ 11613 X"$0" : 'X\(/\)$' \| \ 11614 . : '\(.\)' 2>/dev/null || 11615echo X/"$0" | 11616 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 11617 /^X\/\(\/\/\)$/{ s//\1/; q; } 11618 /^X\/\(\/\).*/{ s//\1/; q; } 11619 s/.*/./; q'` 11620 11621 11622# PATH needs CR, and LINENO needs CR and PATH. 11623# Avoid depending upon Character Ranges. 11624as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11625as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11626as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11627as_cr_digits='0123456789' 11628as_cr_alnum=$as_cr_Letters$as_cr_digits 11629 11630# The user is always right. 11631if test "${PATH_SEPARATOR+set}" != set; then 11632 echo "#! /bin/sh" >conf$$.sh 11633 echo "exit 0" >>conf$$.sh 11634 chmod +x conf$$.sh 11635 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 11636 PATH_SEPARATOR=';' 11637 else 11638 PATH_SEPARATOR=: 11639 fi 11640 rm -f conf$$.sh 11641fi 11642 11643 11644 as_lineno_1=$LINENO 11645 as_lineno_2=$LINENO 11646 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 11647 test "x$as_lineno_1" != "x$as_lineno_2" && 11648 test "x$as_lineno_3" = "x$as_lineno_2" || { 11649 # Find who we are. Look in the path if we contain no path at all 11650 # relative or not. 11651 case $0 in 11652 *[\\/]* ) as_myself=$0 ;; 11653 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11654for as_dir in $PATH 11655do 11656 IFS=$as_save_IFS 11657 test -z "$as_dir" && as_dir=. 11658 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11659done 11660 11661 ;; 11662 esac 11663 # We did not find ourselves, most probably we were run as `sh COMMAND' 11664 # in which case we are not to be found in the path. 11665 if test "x$as_myself" = x; then 11666 as_myself=$0 11667 fi 11668 if test ! -f "$as_myself"; then 11669 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 11670echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 11671 { (exit 1); exit 1; }; } 11672 fi 11673 case $CONFIG_SHELL in 11674 '') 11675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11676for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 11677do 11678 IFS=$as_save_IFS 11679 test -z "$as_dir" && as_dir=. 11680 for as_base in sh bash ksh sh5; do 11681 case $as_dir in 11682 /*) 11683 if ("$as_dir/$as_base" -c ' 11684 as_lineno_1=$LINENO 11685 as_lineno_2=$LINENO 11686 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 11687 test "x$as_lineno_1" != "x$as_lineno_2" && 11688 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 11689 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 11690 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 11691 CONFIG_SHELL=$as_dir/$as_base 11692 export CONFIG_SHELL 11693 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 11694 fi;; 11695 esac 11696 done 11697done 11698;; 11699 esac 11700 11701 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 11702 # uniformly replaced by the line number. The first 'sed' inserts a 11703 # line-number line before each line; the second 'sed' does the real 11704 # work. The second script uses 'N' to pair each line-number line 11705 # with the numbered line, and appends trailing '-' during 11706 # substitution so that $LINENO is not a special case at line end. 11707 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 11708 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 11709 sed '=' <$as_myself | 11710 sed ' 11711 N 11712 s,$,-, 11713 : loop 11714 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 11715 t loop 11716 s,-$,, 11717 s,^['$as_cr_digits']*\n,, 11718 ' >$as_me.lineno && 11719 chmod +x $as_me.lineno || 11720 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 11721echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 11722 { (exit 1); exit 1; }; } 11723 11724 # Don't try to exec as it changes $[0], causing all sort of problems 11725 # (the dirname of $[0] is not the place where we might find the 11726 # original and so on. Autoconf is especially sensible to this). 11727 . ./$as_me.lineno 11728 # Exit status is that of the last command. 11729 exit 11730} 11731 11732 11733case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 11734 *c*,-n*) ECHO_N= ECHO_C=' 11735' ECHO_T=' ' ;; 11736 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 11737 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 11738esac 11739 11740if expr a : '\(a\)' >/dev/null 2>&1; then 11741 as_expr=expr 11742else 11743 as_expr=false 11744fi 11745 11746rm -f conf$$ conf$$.exe conf$$.file 11747echo >conf$$.file 11748if ln -s conf$$.file conf$$ 2>/dev/null; then 11749 # We could just check for DJGPP; but this test a) works b) is more generic 11750 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 11751 if test -f conf$$.exe; then 11752 # Don't use ln at all; we don't have any links 11753 as_ln_s='cp -p' 11754 else 11755 as_ln_s='ln -s' 11756 fi 11757elif ln conf$$.file conf$$ 2>/dev/null; then 11758 as_ln_s=ln 11759else 11760 as_ln_s='cp -p' 11761fi 11762rm -f conf$$ conf$$.exe conf$$.file 11763 11764if mkdir -p . 2>/dev/null; then 11765 as_mkdir_p=: 11766else 11767 as_mkdir_p=false 11768fi 11769 11770as_executable_p="test -f" 11771 11772# Sed expression to map a string onto a valid CPP name. 11773as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 11774 11775# Sed expression to map a string onto a valid variable name. 11776as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 11777 11778 11779# IFS 11780# We need space, tab and new line, in precisely that order. 11781as_nl=' 11782' 11783IFS=" $as_nl" 11784 11785# CDPATH. 11786$as_unset CDPATH 11787 11788exec 6>&1 11789 11790# Open the log real soon, to keep \$[0] and so on meaningful, and to 11791# report actual input values of CONFIG_FILES etc. instead of their 11792# values after options handling. Logging --version etc. is OK. 11793exec 5>>config.log 11794{ 11795 echo 11796 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11797## Running $as_me. ## 11798_ASBOX 11799} >&5 11800cat >&5 <<_CSEOF 11801 11802This file was extended by $as_me, which was 11803generated by GNU Autoconf 2.57. Invocation command line was 11804 11805 CONFIG_FILES = $CONFIG_FILES 11806 CONFIG_HEADERS = $CONFIG_HEADERS 11807 CONFIG_LINKS = $CONFIG_LINKS 11808 CONFIG_COMMANDS = $CONFIG_COMMANDS 11809 $ $0 $@ 11810 11811_CSEOF 11812echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 11813echo >&5 11814_ACEOF 11815 11816# Files that config.status was made for. 11817if test -n "$ac_config_files"; then 11818 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 11819fi 11820 11821if test -n "$ac_config_headers"; then 11822 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 11823fi 11824 11825if test -n "$ac_config_links"; then 11826 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 11827fi 11828 11829if test -n "$ac_config_commands"; then 11830 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 11831fi 11832 11833cat >>$CONFIG_STATUS <<\_ACEOF 11834 11835ac_cs_usage="\ 11836\`$as_me' instantiates files from templates according to the 11837current configuration. 11838 11839Usage: $0 [OPTIONS] [FILE]... 11840 11841 -h, --help print this help, then exit 11842 -V, --version print version number, then exit 11843 -q, --quiet do not print progress messages 11844 -d, --debug don't remove temporary files 11845 --recheck update $as_me by reconfiguring in the same conditions 11846 --file=FILE[:TEMPLATE] 11847 instantiate the configuration file FILE 11848 --header=FILE[:TEMPLATE] 11849 instantiate the configuration header FILE 11850 11851Configuration files: 11852$config_files 11853 11854Configuration headers: 11855$config_headers 11856 11857Configuration commands: 11858$config_commands 11859 11860Report bugs to <bug-autoconf@gnu.org>." 11861_ACEOF 11862 11863cat >>$CONFIG_STATUS <<_ACEOF 11864ac_cs_version="\\ 11865config.status 11866configured by $0, generated by GNU Autoconf 2.57, 11867 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 11868 11869Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 11870Free Software Foundation, Inc. 11871This config.status script is free software; the Free Software Foundation 11872gives unlimited permission to copy, distribute and modify it." 11873srcdir=$srcdir 11874INSTALL="$INSTALL" 11875_ACEOF 11876 11877cat >>$CONFIG_STATUS <<\_ACEOF 11878# If no file are specified by the user, then we need to provide default 11879# value. By we need to know if files were specified by the user. 11880ac_need_defaults=: 11881while test $# != 0 11882do 11883 case $1 in 11884 --*=*) 11885 ac_option=`expr "x$1" : 'x\([^=]*\)='` 11886 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 11887 ac_shift=: 11888 ;; 11889 -*) 11890 ac_option=$1 11891 ac_optarg=$2 11892 ac_shift=shift 11893 ;; 11894 *) # This is not an option, so the user has probably given explicit 11895 # arguments. 11896 ac_option=$1 11897 ac_need_defaults=false;; 11898 esac 11899 11900 case $ac_option in 11901 # Handling of the options. 11902_ACEOF 11903cat >>$CONFIG_STATUS <<\_ACEOF 11904 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11905 ac_cs_recheck=: ;; 11906 --version | --vers* | -V ) 11907 echo "$ac_cs_version"; exit 0 ;; 11908 --he | --h) 11909 # Conflict between --help and --header 11910 { { echo "$as_me:$LINENO: error: ambiguous option: $1 11911Try \`$0 --help' for more information." >&5 11912echo "$as_me: error: ambiguous option: $1 11913Try \`$0 --help' for more information." >&2;} 11914 { (exit 1); exit 1; }; };; 11915 --help | --hel | -h ) 11916 echo "$ac_cs_usage"; exit 0 ;; 11917 --debug | --d* | -d ) 11918 debug=: ;; 11919 --file | --fil | --fi | --f ) 11920 $ac_shift 11921 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 11922 ac_need_defaults=false;; 11923 --header | --heade | --head | --hea ) 11924 $ac_shift 11925 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 11926 ac_need_defaults=false;; 11927 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11928 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11929 ac_cs_silent=: ;; 11930 11931 # This is an error. 11932 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 11933Try \`$0 --help' for more information." >&5 11934echo "$as_me: error: unrecognized option: $1 11935Try \`$0 --help' for more information." >&2;} 11936 { (exit 1); exit 1; }; } ;; 11937 11938 *) ac_config_targets="$ac_config_targets $1" ;; 11939 11940 esac 11941 shift 11942done 11943 11944ac_configure_extra_args= 11945 11946if $ac_cs_silent; then 11947 exec 6>/dev/null 11948 ac_configure_extra_args="$ac_configure_extra_args --silent" 11949fi 11950 11951_ACEOF 11952cat >>$CONFIG_STATUS <<_ACEOF 11953if \$ac_cs_recheck; then 11954 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 11955 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11956fi 11957 11958_ACEOF 11959 11960cat >>$CONFIG_STATUS <<_ACEOF 11961# 11962# INIT-COMMANDS section. 11963# 11964 11965 11966 11967_ACEOF 11968 11969 11970 11971cat >>$CONFIG_STATUS <<\_ACEOF 11972for ac_config_target in $ac_config_targets 11973do 11974 case "$ac_config_target" in 11975 # Handling of arguments. 11976 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11977 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 11978 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11979 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 11980echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 11981 { (exit 1); exit 1; }; };; 11982 esac 11983done 11984 11985# If the user did not use the arguments to specify the items to instantiate, 11986# then the envvar interface is used. Set only those that are not. 11987# We use the long form for the default assignment because of an extremely 11988# bizarre bug on SunOS 4.1.3. 11989if $ac_need_defaults; then 11990 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11991 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11992 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11993fi 11994 11995# Have a temporary directory for convenience. Make it in the build tree 11996# simply because there is no reason to put it here, and in addition, 11997# creating and moving files from /tmp can sometimes cause problems. 11998# Create a temporary directory, and hook for its removal unless debugging. 11999$debug || 12000{ 12001 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 12002 trap '{ (exit 1); exit 1; }' 1 2 13 15 12003} 12004 12005# Create a (secure) tmp directory for tmp files. 12006 12007{ 12008 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 12009 test -n "$tmp" && test -d "$tmp" 12010} || 12011{ 12012 tmp=./confstat$$-$RANDOM 12013 (umask 077 && mkdir $tmp) 12014} || 12015{ 12016 echo "$me: cannot create a temporary directory in ." >&2 12017 { (exit 1); exit 1; } 12018} 12019 12020_ACEOF 12021 12022cat >>$CONFIG_STATUS <<_ACEOF 12023 12024# 12025# CONFIG_FILES section. 12026# 12027 12028# No need to generate the scripts if there are no CONFIG_FILES. 12029# This happens for instance when ./config.status config.h 12030if test -n "\$CONFIG_FILES"; then 12031 # Protect against being on the right side of a sed subst in config.status. 12032 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 12033 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 12034s,@SHELL@,$SHELL,;t t 12035s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 12036s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 12037s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 12038s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 12039s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 12040s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 12041s,@exec_prefix@,$exec_prefix,;t t 12042s,@prefix@,$prefix,;t t 12043s,@program_transform_name@,$program_transform_name,;t t 12044s,@bindir@,$bindir,;t t 12045s,@sbindir@,$sbindir,;t t 12046s,@libexecdir@,$libexecdir,;t t 12047s,@datadir@,$datadir,;t t 12048s,@sysconfdir@,$sysconfdir,;t t 12049s,@sharedstatedir@,$sharedstatedir,;t t 12050s,@localstatedir@,$localstatedir,;t t 12051s,@libdir@,$libdir,;t t 12052s,@includedir@,$includedir,;t t 12053s,@oldincludedir@,$oldincludedir,;t t 12054s,@infodir@,$infodir,;t t 12055s,@mandir@,$mandir,;t t 12056s,@build_alias@,$build_alias,;t t 12057s,@host_alias@,$host_alias,;t t 12058s,@target_alias@,$target_alias,;t t 12059s,@DEFS@,$DEFS,;t t 12060s,@ECHO_C@,$ECHO_C,;t t 12061s,@ECHO_N@,$ECHO_N,;t t 12062s,@ECHO_T@,$ECHO_T,;t t 12063s,@LIBS@,$LIBS,;t t 12064s,@build@,$build,;t t 12065s,@build_cpu@,$build_cpu,;t t 12066s,@build_vendor@,$build_vendor,;t t 12067s,@build_os@,$build_os,;t t 12068s,@host@,$host,;t t 12069s,@host_cpu@,$host_cpu,;t t 12070s,@host_vendor@,$host_vendor,;t t 12071s,@host_os@,$host_os,;t t 12072s,@SHLICC2@,$SHLICC2,;t t 12073s,@CC@,$CC,;t t 12074s,@CFLAGS@,$CFLAGS,;t t 12075s,@LDFLAGS@,$LDFLAGS,;t t 12076s,@CPPFLAGS@,$CPPFLAGS,;t t 12077s,@ac_ct_CC@,$ac_ct_CC,;t t 12078s,@EXEEXT@,$EXEEXT,;t t 12079s,@OBJEXT@,$OBJEXT,;t t 12080s,@CPP@,$CPP,;t t 12081s,@EGREP@,$EGREP,;t t 12082s,@LIBOBJS@,$LIBOBJS,;t t 12083s,@V_CCOPT@,$V_CCOPT,;t t 12084s,@V_DEFS@,$V_DEFS,;t t 12085s,@V_GROUP@,$V_GROUP,;t t 12086s,@V_INCLS@,$V_INCLS,;t t 12087s,@V_PCAPDEP@,$V_PCAPDEP,;t t 12088s,@LOCALSRC@,$LOCALSRC,;t t 12089s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 12090s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 12091s,@INSTALL_DATA@,$INSTALL_DATA,;t t 12092s,@LTLIBOBJS@,$LTLIBOBJS,;t t 12093CEOF 12094 12095_ACEOF 12096 12097 cat >>$CONFIG_STATUS <<\_ACEOF 12098 # Split the substitutions into bite-sized pieces for seds with 12099 # small command number limits, like on Digital OSF/1 and HP-UX. 12100 ac_max_sed_lines=48 12101 ac_sed_frag=1 # Number of current file. 12102 ac_beg=1 # First line for current file. 12103 ac_end=$ac_max_sed_lines # Line after last line for current file. 12104 ac_more_lines=: 12105 ac_sed_cmds= 12106 while $ac_more_lines; do 12107 if test $ac_beg -gt 1; then 12108 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 12109 else 12110 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 12111 fi 12112 if test ! -s $tmp/subs.frag; then 12113 ac_more_lines=false 12114 else 12115 # The purpose of the label and of the branching condition is to 12116 # speed up the sed processing (if there are no `@' at all, there 12117 # is no need to browse any of the substitutions). 12118 # These are the two extra sed commands mentioned above. 12119 (echo ':t 12120 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 12121 if test -z "$ac_sed_cmds"; then 12122 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 12123 else 12124 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 12125 fi 12126 ac_sed_frag=`expr $ac_sed_frag + 1` 12127 ac_beg=$ac_end 12128 ac_end=`expr $ac_end + $ac_max_sed_lines` 12129 fi 12130 done 12131 if test -z "$ac_sed_cmds"; then 12132 ac_sed_cmds=cat 12133 fi 12134fi # test -n "$CONFIG_FILES" 12135 12136_ACEOF 12137cat >>$CONFIG_STATUS <<\_ACEOF 12138for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 12139 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 12140 case $ac_file in 12141 - | *:- | *:-:* ) # input from stdin 12142 cat >$tmp/stdin 12143 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 12144 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 12145 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 12146 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 12147 * ) ac_file_in=$ac_file.in ;; 12148 esac 12149 12150 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 12151 ac_dir=`(dirname "$ac_file") 2>/dev/null || 12152$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12153 X"$ac_file" : 'X\(//\)[^/]' \| \ 12154 X"$ac_file" : 'X\(//\)$' \| \ 12155 X"$ac_file" : 'X\(/\)' \| \ 12156 . : '\(.\)' 2>/dev/null || 12157echo X"$ac_file" | 12158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12159 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12160 /^X\(\/\/\)$/{ s//\1/; q; } 12161 /^X\(\/\).*/{ s//\1/; q; } 12162 s/.*/./; q'` 12163 { if $as_mkdir_p; then 12164 mkdir -p "$ac_dir" 12165 else 12166 as_dir="$ac_dir" 12167 as_dirs= 12168 while test ! -d "$as_dir"; do 12169 as_dirs="$as_dir $as_dirs" 12170 as_dir=`(dirname "$as_dir") 2>/dev/null || 12171$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12172 X"$as_dir" : 'X\(//\)[^/]' \| \ 12173 X"$as_dir" : 'X\(//\)$' \| \ 12174 X"$as_dir" : 'X\(/\)' \| \ 12175 . : '\(.\)' 2>/dev/null || 12176echo X"$as_dir" | 12177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12178 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12179 /^X\(\/\/\)$/{ s//\1/; q; } 12180 /^X\(\/\).*/{ s//\1/; q; } 12181 s/.*/./; q'` 12182 done 12183 test ! -n "$as_dirs" || mkdir $as_dirs 12184 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 12185echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 12186 { (exit 1); exit 1; }; }; } 12187 12188 ac_builddir=. 12189 12190if test "$ac_dir" != .; then 12191 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 12192 # A "../" for each directory in $ac_dir_suffix. 12193 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 12194else 12195 ac_dir_suffix= ac_top_builddir= 12196fi 12197 12198case $srcdir in 12199 .) # No --srcdir option. We are building in place. 12200 ac_srcdir=. 12201 if test -z "$ac_top_builddir"; then 12202 ac_top_srcdir=. 12203 else 12204 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 12205 fi ;; 12206 [\\/]* | ?:[\\/]* ) # Absolute path. 12207 ac_srcdir=$srcdir$ac_dir_suffix; 12208 ac_top_srcdir=$srcdir ;; 12209 *) # Relative path. 12210 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 12211 ac_top_srcdir=$ac_top_builddir$srcdir ;; 12212esac 12213# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 12214# absolute. 12215ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 12216ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 12217ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 12218ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 12219 12220 12221 case $INSTALL in 12222 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12223 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 12224 esac 12225 12226 if test x"$ac_file" != x-; then 12227 { echo "$as_me:$LINENO: creating $ac_file" >&5 12228echo "$as_me: creating $ac_file" >&6;} 12229 rm -f "$ac_file" 12230 fi 12231 # Let's still pretend it is `configure' which instantiates (i.e., don't 12232 # use $as_me), people would be surprised to read: 12233 # /* config.h. Generated by config.status. */ 12234 if test x"$ac_file" = x-; then 12235 configure_input= 12236 else 12237 configure_input="$ac_file. " 12238 fi 12239 configure_input=$configure_input"Generated from `echo $ac_file_in | 12240 sed 's,.*/,,'` by configure." 12241 12242 # First look for the input files in the build tree, otherwise in the 12243 # src tree. 12244 ac_file_inputs=`IFS=: 12245 for f in $ac_file_in; do 12246 case $f in 12247 -) echo $tmp/stdin ;; 12248 [\\/$]*) 12249 # Absolute (can't be DOS-style, as IFS=:) 12250 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 12251echo "$as_me: error: cannot find input file: $f" >&2;} 12252 { (exit 1); exit 1; }; } 12253 echo $f;; 12254 *) # Relative 12255 if test -f "$f"; then 12256 # Build tree 12257 echo $f 12258 elif test -f "$srcdir/$f"; then 12259 # Source tree 12260 echo $srcdir/$f 12261 else 12262 # /dev/null tree 12263 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 12264echo "$as_me: error: cannot find input file: $f" >&2;} 12265 { (exit 1); exit 1; }; } 12266 fi;; 12267 esac 12268 done` || { (exit 1); exit 1; } 12269_ACEOF 12270cat >>$CONFIG_STATUS <<_ACEOF 12271 sed "$ac_vpsub 12272$extrasub 12273_ACEOF 12274cat >>$CONFIG_STATUS <<\_ACEOF 12275:t 12276/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12277s,@configure_input@,$configure_input,;t t 12278s,@srcdir@,$ac_srcdir,;t t 12279s,@abs_srcdir@,$ac_abs_srcdir,;t t 12280s,@top_srcdir@,$ac_top_srcdir,;t t 12281s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 12282s,@builddir@,$ac_builddir,;t t 12283s,@abs_builddir@,$ac_abs_builddir,;t t 12284s,@top_builddir@,$ac_top_builddir,;t t 12285s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 12286s,@INSTALL@,$ac_INSTALL,;t t 12287" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 12288 rm -f $tmp/stdin 12289 if test x"$ac_file" != x-; then 12290 mv $tmp/out $ac_file 12291 else 12292 cat $tmp/out 12293 rm -f $tmp/out 12294 fi 12295 12296done 12297_ACEOF 12298cat >>$CONFIG_STATUS <<\_ACEOF 12299 12300# 12301# CONFIG_HEADER section. 12302# 12303 12304# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 12305# NAME is the cpp macro being defined and VALUE is the value it is being given. 12306# 12307# ac_d sets the value in "#define NAME VALUE" lines. 12308ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 12309ac_dB='[ ].*$,\1#\2' 12310ac_dC=' ' 12311ac_dD=',;t' 12312# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 12313ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 12314ac_uB='$,\1#\2define\3' 12315ac_uC=' ' 12316ac_uD=',;t' 12317 12318for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 12319 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 12320 case $ac_file in 12321 - | *:- | *:-:* ) # input from stdin 12322 cat >$tmp/stdin 12323 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 12324 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 12325 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 12326 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 12327 * ) ac_file_in=$ac_file.in ;; 12328 esac 12329 12330 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 12331echo "$as_me: creating $ac_file" >&6;} 12332 12333 # First look for the input files in the build tree, otherwise in the 12334 # src tree. 12335 ac_file_inputs=`IFS=: 12336 for f in $ac_file_in; do 12337 case $f in 12338 -) echo $tmp/stdin ;; 12339 [\\/$]*) 12340 # Absolute (can't be DOS-style, as IFS=:) 12341 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 12342echo "$as_me: error: cannot find input file: $f" >&2;} 12343 { (exit 1); exit 1; }; } 12344 echo $f;; 12345 *) # Relative 12346 if test -f "$f"; then 12347 # Build tree 12348 echo $f 12349 elif test -f "$srcdir/$f"; then 12350 # Source tree 12351 echo $srcdir/$f 12352 else 12353 # /dev/null tree 12354 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 12355echo "$as_me: error: cannot find input file: $f" >&2;} 12356 { (exit 1); exit 1; }; } 12357 fi;; 12358 esac 12359 done` || { (exit 1); exit 1; } 12360 # Remove the trailing spaces. 12361 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 12362 12363_ACEOF 12364 12365# Transform confdefs.h into two sed scripts, `conftest.defines' and 12366# `conftest.undefs', that substitutes the proper values into 12367# config.h.in to produce config.h. The first handles `#define' 12368# templates, and the second `#undef' templates. 12369# And first: Protect against being on the right side of a sed subst in 12370# config.status. Protect against being in an unquoted here document 12371# in config.status. 12372rm -f conftest.defines conftest.undefs 12373# Using a here document instead of a string reduces the quoting nightmare. 12374# Putting comments in sed scripts is not portable. 12375# 12376# `end' is used to avoid that the second main sed command (meant for 12377# 0-ary CPP macros) applies to n-ary macro definitions. 12378# See the Autoconf documentation for `clear'. 12379cat >confdef2sed.sed <<\_ACEOF 12380s/[\\&,]/\\&/g 12381s,[\\$`],\\&,g 12382t clear 12383: clear 12384s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 12385t end 12386s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 12387: end 12388_ACEOF 12389# If some macros were called several times there might be several times 12390# the same #defines, which is useless. Nevertheless, we may not want to 12391# sort them, since we want the *last* AC-DEFINE to be honored. 12392uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 12393sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 12394rm -f confdef2sed.sed 12395 12396# This sed command replaces #undef with comments. This is necessary, for 12397# example, in the case of _POSIX_SOURCE, which is predefined and required 12398# on some systems where configure will not decide to define it. 12399cat >>conftest.undefs <<\_ACEOF 12400s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 12401_ACEOF 12402 12403# Break up conftest.defines because some shells have a limit on the size 12404# of here documents, and old seds have small limits too (100 cmds). 12405echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 12406echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 12407echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 12408echo ' :' >>$CONFIG_STATUS 12409rm -f conftest.tail 12410while grep . conftest.defines >/dev/null 12411do 12412 # Write a limited-size here document to $tmp/defines.sed. 12413 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 12414 # Speed up: don't consider the non `#define' lines. 12415 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 12416 # Work around the forget-to-reset-the-flag bug. 12417 echo 't clr' >>$CONFIG_STATUS 12418 echo ': clr' >>$CONFIG_STATUS 12419 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 12420 echo 'CEOF 12421 sed -f $tmp/defines.sed $tmp/in >$tmp/out 12422 rm -f $tmp/in 12423 mv $tmp/out $tmp/in 12424' >>$CONFIG_STATUS 12425 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 12426 rm -f conftest.defines 12427 mv conftest.tail conftest.defines 12428done 12429rm -f conftest.defines 12430echo ' fi # grep' >>$CONFIG_STATUS 12431echo >>$CONFIG_STATUS 12432 12433# Break up conftest.undefs because some shells have a limit on the size 12434# of here documents, and old seds have small limits too (100 cmds). 12435echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 12436rm -f conftest.tail 12437while grep . conftest.undefs >/dev/null 12438do 12439 # Write a limited-size here document to $tmp/undefs.sed. 12440 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 12441 # Speed up: don't consider the non `#undef' 12442 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 12443 # Work around the forget-to-reset-the-flag bug. 12444 echo 't clr' >>$CONFIG_STATUS 12445 echo ': clr' >>$CONFIG_STATUS 12446 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 12447 echo 'CEOF 12448 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 12449 rm -f $tmp/in 12450 mv $tmp/out $tmp/in 12451' >>$CONFIG_STATUS 12452 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 12453 rm -f conftest.undefs 12454 mv conftest.tail conftest.undefs 12455done 12456rm -f conftest.undefs 12457 12458cat >>$CONFIG_STATUS <<\_ACEOF 12459 # Let's still pretend it is `configure' which instantiates (i.e., don't 12460 # use $as_me), people would be surprised to read: 12461 # /* config.h. Generated by config.status. */ 12462 if test x"$ac_file" = x-; then 12463 echo "/* Generated by configure. */" >$tmp/config.h 12464 else 12465 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 12466 fi 12467 cat $tmp/in >>$tmp/config.h 12468 rm -f $tmp/in 12469 if test x"$ac_file" != x-; then 12470 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 12471 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 12472echo "$as_me: $ac_file is unchanged" >&6;} 12473 else 12474 ac_dir=`(dirname "$ac_file") 2>/dev/null || 12475$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12476 X"$ac_file" : 'X\(//\)[^/]' \| \ 12477 X"$ac_file" : 'X\(//\)$' \| \ 12478 X"$ac_file" : 'X\(/\)' \| \ 12479 . : '\(.\)' 2>/dev/null || 12480echo X"$ac_file" | 12481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12482 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12483 /^X\(\/\/\)$/{ s//\1/; q; } 12484 /^X\(\/\).*/{ s//\1/; q; } 12485 s/.*/./; q'` 12486 { if $as_mkdir_p; then 12487 mkdir -p "$ac_dir" 12488 else 12489 as_dir="$ac_dir" 12490 as_dirs= 12491 while test ! -d "$as_dir"; do 12492 as_dirs="$as_dir $as_dirs" 12493 as_dir=`(dirname "$as_dir") 2>/dev/null || 12494$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12495 X"$as_dir" : 'X\(//\)[^/]' \| \ 12496 X"$as_dir" : 'X\(//\)$' \| \ 12497 X"$as_dir" : 'X\(/\)' \| \ 12498 . : '\(.\)' 2>/dev/null || 12499echo X"$as_dir" | 12500 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12501 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12502 /^X\(\/\/\)$/{ s//\1/; q; } 12503 /^X\(\/\).*/{ s//\1/; q; } 12504 s/.*/./; q'` 12505 done 12506 test ! -n "$as_dirs" || mkdir $as_dirs 12507 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 12508echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 12509 { (exit 1); exit 1; }; }; } 12510 12511 rm -f $ac_file 12512 mv $tmp/config.h $ac_file 12513 fi 12514 else 12515 cat $tmp/config.h 12516 rm -f $tmp/config.h 12517 fi 12518done 12519_ACEOF 12520cat >>$CONFIG_STATUS <<\_ACEOF 12521 12522# 12523# CONFIG_COMMANDS section. 12524# 12525for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 12526 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 12527 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 12528 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 12529$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12530 X"$ac_dest" : 'X\(//\)[^/]' \| \ 12531 X"$ac_dest" : 'X\(//\)$' \| \ 12532 X"$ac_dest" : 'X\(/\)' \| \ 12533 . : '\(.\)' 2>/dev/null || 12534echo X"$ac_dest" | 12535 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12536 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12537 /^X\(\/\/\)$/{ s//\1/; q; } 12538 /^X\(\/\).*/{ s//\1/; q; } 12539 s/.*/./; q'` 12540 ac_builddir=. 12541 12542if test "$ac_dir" != .; then 12543 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 12544 # A "../" for each directory in $ac_dir_suffix. 12545 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 12546else 12547 ac_dir_suffix= ac_top_builddir= 12548fi 12549 12550case $srcdir in 12551 .) # No --srcdir option. We are building in place. 12552 ac_srcdir=. 12553 if test -z "$ac_top_builddir"; then 12554 ac_top_srcdir=. 12555 else 12556 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 12557 fi ;; 12558 [\\/]* | ?:[\\/]* ) # Absolute path. 12559 ac_srcdir=$srcdir$ac_dir_suffix; 12560 ac_top_srcdir=$srcdir ;; 12561 *) # Relative path. 12562 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 12563 ac_top_srcdir=$ac_top_builddir$srcdir ;; 12564esac 12565# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 12566# absolute. 12567ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 12568ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 12569ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 12570ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 12571 12572 12573 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 12574echo "$as_me: executing $ac_dest commands" >&6;} 12575 case $ac_dest in 12576 default-1 ) if test -f .devel; then 12577 echo timestamp > stamp-h 12578 cat Makefile-devel-adds >> Makefile 12579 make depend 12580fi ;; 12581 esac 12582done 12583_ACEOF 12584 12585cat >>$CONFIG_STATUS <<\_ACEOF 12586 12587{ (exit 0); exit 0; } 12588_ACEOF 12589chmod +x $CONFIG_STATUS 12590ac_clean_files=$ac_clean_files_save 12591 12592 12593# configure is writing to config.log, and then calls config.status. 12594# config.status does its own redirection, appending to config.log. 12595# Unfortunately, on DOS this fails, as config.log is still kept open 12596# by configure, so config.status won't be able to write to it; its 12597# output is simply discarded. So we exec the FD to /dev/null, 12598# effectively closing config.log, so it can be properly (re)opened and 12599# appended to by config.status. When coming back to configure, we 12600# need to make the FD available again. 12601if test "$no_create" != yes; then 12602 ac_cs_success=: 12603 ac_config_status_args= 12604 test "$silent" = yes && 12605 ac_config_status_args="$ac_config_status_args --quiet" 12606 exec 5>/dev/null 12607 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12608 exec 5>>config.log 12609 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12610 # would make configure fail if this is the last instruction. 12611 $ac_cs_success || { (exit 1); exit 1; } 12612fi 12613 12614exit 0 12615