1#! /bin/sh 2# From configure.in Revision: 1.120.2.6 . 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.57. 5# 6# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 7# Free Software Foundation, Inc. 8# This configure script is free software; the Free Software Foundation 9# gives unlimited permission to copy, distribute and modify it. 10## --------------------- ## 11## M4sh Initialization. ## 12## --------------------- ## 13 14# Be Bourne compatible 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 22 set -o posix 23fi 24 25# Support unset when possible. 26if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 27 as_unset=unset 28else 29 as_unset=false 30fi 31 32 33# Work around bugs in pre-3.0 UWIN ksh. 34$as_unset ENV MAIL MAILPATH 35PS1='$ ' 36PS2='> ' 37PS4='+ ' 38 39# NLS nuisances. 40for as_var in \ 41 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 42 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 43 LC_TELEPHONE LC_TIME 44do 45 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then 46 eval $as_var=C; export $as_var 47 else 48 $as_unset $as_var 49 fi 50done 51 52# Required to use basename. 53if expr a : '\(a\)' >/dev/null 2>&1; then 54 as_expr=expr 55else 56 as_expr=false 57fi 58 59if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 60 as_basename=basename 61else 62 as_basename=false 63fi 64 65 66# Name of the executable. 67as_me=`$as_basename "$0" || 68$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 69 X"$0" : 'X\(//\)$' \| \ 70 X"$0" : 'X\(/\)$' \| \ 71 . : '\(.\)' 2>/dev/null || 72echo X/"$0" | 73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 74 /^X\/\(\/\/\)$/{ s//\1/; q; } 75 /^X\/\(\/\).*/{ s//\1/; q; } 76 s/.*/./; q'` 77 78 79# PATH needs CR, and LINENO needs CR and PATH. 80# Avoid depending upon Character Ranges. 81as_cr_letters='abcdefghijklmnopqrstuvwxyz' 82as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 83as_cr_Letters=$as_cr_letters$as_cr_LETTERS 84as_cr_digits='0123456789' 85as_cr_alnum=$as_cr_Letters$as_cr_digits 86 87# The user is always right. 88if test "${PATH_SEPARATOR+set}" != set; then 89 echo "#! /bin/sh" >conf$$.sh 90 echo "exit 0" >>conf$$.sh 91 chmod +x conf$$.sh 92 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 93 PATH_SEPARATOR=';' 94 else 95 PATH_SEPARATOR=: 96 fi 97 rm -f conf$$.sh 98fi 99 100 101 as_lineno_1=$LINENO 102 as_lineno_2=$LINENO 103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 104 test "x$as_lineno_1" != "x$as_lineno_2" && 105 test "x$as_lineno_3" = "x$as_lineno_2" || { 106 # Find who we are. Look in the path if we contain no path at all 107 # relative or not. 108 case $0 in 109 *[\\/]* ) as_myself=$0 ;; 110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 111for as_dir in $PATH 112do 113 IFS=$as_save_IFS 114 test -z "$as_dir" && as_dir=. 115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 116done 117 118 ;; 119 esac 120 # We did not find ourselves, most probably we were run as `sh COMMAND' 121 # in which case we are not to be found in the path. 122 if test "x$as_myself" = x; then 123 as_myself=$0 124 fi 125 if test ! -f "$as_myself"; then 126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 127 { (exit 1); exit 1; }; } 128 fi 129 case $CONFIG_SHELL in 130 '') 131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 132for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 133do 134 IFS=$as_save_IFS 135 test -z "$as_dir" && as_dir=. 136 for as_base in sh bash ksh sh5; do 137 case $as_dir in 138 /*) 139 if ("$as_dir/$as_base" -c ' 140 as_lineno_1=$LINENO 141 as_lineno_2=$LINENO 142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 143 test "x$as_lineno_1" != "x$as_lineno_2" && 144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 145 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 146 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 147 CONFIG_SHELL=$as_dir/$as_base 148 export CONFIG_SHELL 149 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 150 fi;; 151 esac 152 done 153done 154;; 155 esac 156 157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 158 # uniformly replaced by the line number. The first 'sed' inserts a 159 # line-number line before each line; the second 'sed' does the real 160 # work. The second script uses 'N' to pair each line-number line 161 # with the numbered line, and appends trailing '-' during 162 # substitution so that $LINENO is not a special case at line end. 163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 165 sed '=' <$as_myself | 166 sed ' 167 N 168 s,$,-, 169 : loop 170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 171 t loop 172 s,-$,, 173 s,^['$as_cr_digits']*\n,, 174 ' >$as_me.lineno && 175 chmod +x $as_me.lineno || 176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 177 { (exit 1); exit 1; }; } 178 179 # Don't try to exec as it changes $[0], causing all sort of problems 180 # (the dirname of $[0] is not the place where we might find the 181 # original and so on. Autoconf is especially sensible to this). 182 . ./$as_me.lineno 183 # Exit status is that of the last command. 184 exit 185} 186 187 188case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 189 *c*,-n*) ECHO_N= ECHO_C=' 190' ECHO_T=' ' ;; 191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 193esac 194 195if expr a : '\(a\)' >/dev/null 2>&1; then 196 as_expr=expr 197else 198 as_expr=false 199fi 200 201rm -f conf$$ conf$$.exe conf$$.file 202echo >conf$$.file 203if ln -s conf$$.file conf$$ 2>/dev/null; then 204 # We could just check for DJGPP; but this test a) works b) is more generic 205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 206 if test -f conf$$.exe; then 207 # Don't use ln at all; we don't have any links 208 as_ln_s='cp -p' 209 else 210 as_ln_s='ln -s' 211 fi 212elif ln conf$$.file conf$$ 2>/dev/null; then 213 as_ln_s=ln 214else 215 as_ln_s='cp -p' 216fi 217rm -f conf$$ conf$$.exe conf$$.file 218 219if mkdir -p . 2>/dev/null; then 220 as_mkdir_p=: 221else 222 as_mkdir_p=false 223fi 224 225as_executable_p="test -f" 226 227# Sed expression to map a string onto a valid CPP name. 228as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 229 230# Sed expression to map a string onto a valid variable name. 231as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 232 233 234# IFS 235# We need space, tab and new line, in precisely that order. 236as_nl=' 237' 238IFS=" $as_nl" 239 240# CDPATH. 241$as_unset CDPATH 242 243 244# Name of the host. 245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 246# so uname gets run too. 247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 248 249exec 6>&1 250 251# 252# Initializations. 253# 254ac_default_prefix=/usr/local 255ac_config_libobj_dir=. 256cross_compiling=no 257subdirs= 258MFLAGS= 259MAKEFLAGS= 260SHELL=${CONFIG_SHELL-/bin/sh} 261 262# Maximum number of lines to put in a shell here document. 263# This variable seems obsolete. It should probably be removed, and 264# only ac_max_sed_lines should be used. 265: ${ac_max_here_lines=38} 266 267# Identity of this package. 268PACKAGE_NAME= 269PACKAGE_TARNAME= 270PACKAGE_VERSION= 271PACKAGE_STRING= 272PACKAGE_BUGREPORT= 273 274ac_unique_file="pcap.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 target target_cpu target_vendor target_os SHLICC2 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LIBOBJS V_LEX V_YACC RANLIB ac_ct_RANLIB V_CCOPT V_DEFS V_INCLS V_LIBS V_PCAP V_FINDALLDEVS V_RANLIB SSRC DYEXT 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 --target=TARGET configure for building compilers for TARGET [HOST] 838_ACEOF 839fi 840 841if test -n "$ac_init_help"; then 842 843 cat <<\_ACEOF 844 845Optional Features: 846 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 847 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 848 --disable-protochain disable \"protochain\" insn 849 --enable-ipv6 build IPv6-capable version 850 --enable-optimizer-dbg build optimizer debugging code 851 --enable-yydebug build parser debugging code 852 853Optional Packages: 854 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 855 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 856 --without-gcc don't use gcc 857 --with-pcap=TYPE use packet capture TYPE 858 --with-dag[=DIR] include Endace DAG support ("yes", "no" or DIR; default="yes" on BSD and Linux if present) 859 --with-dag-includes=DIR Endace DAG include directory 860 --with-dag-libraries=DIR Endace DAG library directory 861 --with-septel[=DIR] include Septel support (located in directory DIR, if supplied). default=yes, on Linux, if present 862 --without-flex don't use flex 863 --without-bison don't use bison 864 865Some influential environment variables: 866 CC C compiler command 867 CFLAGS C compiler flags 868 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 869 nonstandard directory <lib dir> 870 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 871 headers in a nonstandard directory <include dir> 872 CPP C preprocessor 873 874Use these variables to override the choices made by `configure' or to help 875it to find libraries and programs with nonstandard names/locations. 876 877_ACEOF 878fi 879 880if test "$ac_init_help" = "recursive"; then 881 # If there are subdirs, report their specific --help. 882 ac_popdir=`pwd` 883 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 884 test -d $ac_dir || continue 885 ac_builddir=. 886 887if test "$ac_dir" != .; then 888 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 889 # A "../" for each directory in $ac_dir_suffix. 890 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 891else 892 ac_dir_suffix= ac_top_builddir= 893fi 894 895case $srcdir in 896 .) # No --srcdir option. We are building in place. 897 ac_srcdir=. 898 if test -z "$ac_top_builddir"; then 899 ac_top_srcdir=. 900 else 901 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 902 fi ;; 903 [\\/]* | ?:[\\/]* ) # Absolute path. 904 ac_srcdir=$srcdir$ac_dir_suffix; 905 ac_top_srcdir=$srcdir ;; 906 *) # Relative path. 907 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 908 ac_top_srcdir=$ac_top_builddir$srcdir ;; 909esac 910# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 911# absolute. 912ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 913ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 914ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 915ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 916 917 cd $ac_dir 918 # Check for guested configure; otherwise get Cygnus style configure. 919 if test -f $ac_srcdir/configure.gnu; then 920 echo 921 $SHELL $ac_srcdir/configure.gnu --help=recursive 922 elif test -f $ac_srcdir/configure; then 923 echo 924 $SHELL $ac_srcdir/configure --help=recursive 925 elif test -f $ac_srcdir/configure.ac || 926 test -f $ac_srcdir/configure.in; then 927 echo 928 $ac_configure --help 929 else 930 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 931 fi 932 cd $ac_popdir 933 done 934fi 935 936test -n "$ac_init_help" && exit 0 937if $ac_init_version; then 938 cat <<\_ACEOF 939 940Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 941Free Software Foundation, Inc. 942This configure script is free software; the Free Software Foundation 943gives unlimited permission to copy, distribute and modify it. 944_ACEOF 945 exit 0 946fi 947exec 5>config.log 948cat >&5 <<_ACEOF 949This file contains any messages produced by compilers while 950running configure, to aid debugging if configure makes a mistake. 951 952It was created by $as_me, which was 953generated by GNU Autoconf 2.57. Invocation command line was 954 955 $ $0 $@ 956 957_ACEOF 958{ 959cat <<_ASUNAME 960## --------- ## 961## Platform. ## 962## --------- ## 963 964hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 965uname -m = `(uname -m) 2>/dev/null || echo unknown` 966uname -r = `(uname -r) 2>/dev/null || echo unknown` 967uname -s = `(uname -s) 2>/dev/null || echo unknown` 968uname -v = `(uname -v) 2>/dev/null || echo unknown` 969 970/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 971/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 972 973/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 974/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 975/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 976hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 977/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 978/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 979/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 980 981_ASUNAME 982 983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 984for as_dir in $PATH 985do 986 IFS=$as_save_IFS 987 test -z "$as_dir" && as_dir=. 988 echo "PATH: $as_dir" 989done 990 991} >&5 992 993cat >&5 <<_ACEOF 994 995 996## ----------- ## 997## Core tests. ## 998## ----------- ## 999 1000_ACEOF 1001 1002 1003# Keep a trace of the command line. 1004# Strip out --no-create and --no-recursion so they do not pile up. 1005# Strip out --silent because we don't want to record it for future runs. 1006# Also quote any args containing shell meta-characters. 1007# Make two passes to allow for proper duplicate-argument suppression. 1008ac_configure_args= 1009ac_configure_args0= 1010ac_configure_args1= 1011ac_sep= 1012ac_must_keep_next=false 1013for ac_pass in 1 2 1014do 1015 for ac_arg 1016 do 1017 case $ac_arg in 1018 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1019 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1020 | -silent | --silent | --silen | --sile | --sil) 1021 continue ;; 1022 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1023 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1024 esac 1025 case $ac_pass in 1026 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1027 2) 1028 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1029 if test $ac_must_keep_next = true; then 1030 ac_must_keep_next=false # Got value, back to normal. 1031 else 1032 case $ac_arg in 1033 *=* | --config-cache | -C | -disable-* | --disable-* \ 1034 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1035 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1036 | -with-* | --with-* | -without-* | --without-* | --x) 1037 case "$ac_configure_args0 " in 1038 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1039 esac 1040 ;; 1041 -* ) ac_must_keep_next=true ;; 1042 esac 1043 fi 1044 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1045 # Get rid of the leading space. 1046 ac_sep=" " 1047 ;; 1048 esac 1049 done 1050done 1051$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1052$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1053 1054# When interrupted or exit'd, cleanup temporary files, and complete 1055# config.log. We remove comments because anyway the quotes in there 1056# would cause problems or look ugly. 1057# WARNING: Be sure not to use single quotes in there, as some shells, 1058# such as our DU 5.0 friend, will then `close' the trap. 1059trap 'exit_status=$? 1060 # Save into config.log some information that might help in debugging. 1061 { 1062 echo 1063 1064 cat <<\_ASBOX 1065## ---------------- ## 1066## Cache variables. ## 1067## ---------------- ## 1068_ASBOX 1069 echo 1070 # The following way of writing the cache mishandles newlines in values, 1071{ 1072 (set) 2>&1 | 1073 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1074 *ac_space=\ *) 1075 sed -n \ 1076 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1077 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1078 ;; 1079 *) 1080 sed -n \ 1081 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1082 ;; 1083 esac; 1084} 1085 echo 1086 1087 cat <<\_ASBOX 1088## ----------------- ## 1089## Output variables. ## 1090## ----------------- ## 1091_ASBOX 1092 echo 1093 for ac_var in $ac_subst_vars 1094 do 1095 eval ac_val=$`echo $ac_var` 1096 echo "$ac_var='"'"'$ac_val'"'"'" 1097 done | sort 1098 echo 1099 1100 if test -n "$ac_subst_files"; then 1101 cat <<\_ASBOX 1102## ------------- ## 1103## Output files. ## 1104## ------------- ## 1105_ASBOX 1106 echo 1107 for ac_var in $ac_subst_files 1108 do 1109 eval ac_val=$`echo $ac_var` 1110 echo "$ac_var='"'"'$ac_val'"'"'" 1111 done | sort 1112 echo 1113 fi 1114 1115 if test -s confdefs.h; then 1116 cat <<\_ASBOX 1117## ----------- ## 1118## confdefs.h. ## 1119## ----------- ## 1120_ASBOX 1121 echo 1122 sed "/^$/d" confdefs.h | sort 1123 echo 1124 fi 1125 test "$ac_signal" != 0 && 1126 echo "$as_me: caught signal $ac_signal" 1127 echo "$as_me: exit $exit_status" 1128 } >&5 1129 rm -f core core.* *.core && 1130 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1131 exit $exit_status 1132 ' 0 1133for ac_signal in 1 2 13 15; do 1134 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1135done 1136ac_signal=0 1137 1138# confdefs.h avoids OS command line length limits that DEFS can exceed. 1139rm -rf conftest* confdefs.h 1140# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1141echo >confdefs.h 1142 1143# Predefined preprocessor variables. 1144 1145cat >>confdefs.h <<_ACEOF 1146#define PACKAGE_NAME "$PACKAGE_NAME" 1147_ACEOF 1148 1149 1150cat >>confdefs.h <<_ACEOF 1151#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1152_ACEOF 1153 1154 1155cat >>confdefs.h <<_ACEOF 1156#define PACKAGE_VERSION "$PACKAGE_VERSION" 1157_ACEOF 1158 1159 1160cat >>confdefs.h <<_ACEOF 1161#define PACKAGE_STRING "$PACKAGE_STRING" 1162_ACEOF 1163 1164 1165cat >>confdefs.h <<_ACEOF 1166#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1167_ACEOF 1168 1169 1170# Let the site file select an alternate cache file if it wants to. 1171# Prefer explicitly selected file to automatically selected ones. 1172if test -z "$CONFIG_SITE"; then 1173 if test "x$prefix" != xNONE; then 1174 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1175 else 1176 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1177 fi 1178fi 1179for ac_site_file in $CONFIG_SITE; do 1180 if test -r "$ac_site_file"; then 1181 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1182echo "$as_me: loading site script $ac_site_file" >&6;} 1183 sed 's/^/| /' "$ac_site_file" >&5 1184 . "$ac_site_file" 1185 fi 1186done 1187 1188if test -r "$cache_file"; then 1189 # Some versions of bash will fail to source /dev/null (special 1190 # files actually), so we avoid doing that. 1191 if test -f "$cache_file"; then 1192 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1193echo "$as_me: loading cache $cache_file" >&6;} 1194 case $cache_file in 1195 [\\/]* | ?:[\\/]* ) . $cache_file;; 1196 *) . ./$cache_file;; 1197 esac 1198 fi 1199else 1200 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1201echo "$as_me: creating cache $cache_file" >&6;} 1202 >$cache_file 1203fi 1204 1205# Check that the precious variables saved in the cache have kept the same 1206# value. 1207ac_cache_corrupted=false 1208for ac_var in `(set) 2>&1 | 1209 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1210 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1211 eval ac_new_set=\$ac_env_${ac_var}_set 1212 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1213 eval ac_new_val="\$ac_env_${ac_var}_value" 1214 case $ac_old_set,$ac_new_set in 1215 set,) 1216 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1217echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1218 ac_cache_corrupted=: ;; 1219 ,set) 1220 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1221echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1222 ac_cache_corrupted=: ;; 1223 ,);; 1224 *) 1225 if test "x$ac_old_val" != "x$ac_new_val"; then 1226 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1227echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1228 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1229echo "$as_me: former value: $ac_old_val" >&2;} 1230 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1231echo "$as_me: current value: $ac_new_val" >&2;} 1232 ac_cache_corrupted=: 1233 fi;; 1234 esac 1235 # Pass precious variables to config.status. 1236 if test "$ac_new_set" = set; then 1237 case $ac_new_val in 1238 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1239 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1240 *) ac_arg=$ac_var=$ac_new_val ;; 1241 esac 1242 case " $ac_configure_args " in 1243 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1244 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1245 esac 1246 fi 1247done 1248if $ac_cache_corrupted; then 1249 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1250echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1251 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1252echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1253 { (exit 1); exit 1; }; } 1254fi 1255 1256ac_ext=c 1257ac_cpp='$CPP $CPPFLAGS' 1258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1260ac_compiler_gnu=$ac_cv_c_compiler_gnu 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281ac_aux_dir= 1282for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1283 if test -f $ac_dir/install-sh; then 1284 ac_aux_dir=$ac_dir 1285 ac_install_sh="$ac_aux_dir/install-sh -c" 1286 break 1287 elif test -f $ac_dir/install.sh; then 1288 ac_aux_dir=$ac_dir 1289 ac_install_sh="$ac_aux_dir/install.sh -c" 1290 break 1291 elif test -f $ac_dir/shtool; then 1292 ac_aux_dir=$ac_dir 1293 ac_install_sh="$ac_aux_dir/shtool install -c" 1294 break 1295 fi 1296done 1297if test -z "$ac_aux_dir"; then 1298 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1299echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1300 { (exit 1); exit 1; }; } 1301fi 1302ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1303ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1304ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1305 1306# Make sure we can run config.sub. 1307$ac_config_sub sun4 >/dev/null 2>&1 || 1308 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1309echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1310 { (exit 1); exit 1; }; } 1311 1312echo "$as_me:$LINENO: checking build system type" >&5 1313echo $ECHO_N "checking build system type... $ECHO_C" >&6 1314if test "${ac_cv_build+set}" = set; then 1315 echo $ECHO_N "(cached) $ECHO_C" >&6 1316else 1317 ac_cv_build_alias=$build_alias 1318test -z "$ac_cv_build_alias" && 1319 ac_cv_build_alias=`$ac_config_guess` 1320test -z "$ac_cv_build_alias" && 1321 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1322echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1323 { (exit 1); exit 1; }; } 1324ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1325 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1326echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1327 { (exit 1); exit 1; }; } 1328 1329fi 1330echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1331echo "${ECHO_T}$ac_cv_build" >&6 1332build=$ac_cv_build 1333build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1334build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1335build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1336 1337 1338echo "$as_me:$LINENO: checking host system type" >&5 1339echo $ECHO_N "checking host system type... $ECHO_C" >&6 1340if test "${ac_cv_host+set}" = set; then 1341 echo $ECHO_N "(cached) $ECHO_C" >&6 1342else 1343 ac_cv_host_alias=$host_alias 1344test -z "$ac_cv_host_alias" && 1345 ac_cv_host_alias=$ac_cv_build_alias 1346ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1347 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1348echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1349 { (exit 1); exit 1; }; } 1350 1351fi 1352echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1353echo "${ECHO_T}$ac_cv_host" >&6 1354host=$ac_cv_host 1355host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1356host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1357host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1358 1359 1360echo "$as_me:$LINENO: checking target system type" >&5 1361echo $ECHO_N "checking target system type... $ECHO_C" >&6 1362if test "${ac_cv_target+set}" = set; then 1363 echo $ECHO_N "(cached) $ECHO_C" >&6 1364else 1365 ac_cv_target_alias=$target_alias 1366test "x$ac_cv_target_alias" = "x" && 1367 ac_cv_target_alias=$ac_cv_host_alias 1368ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || 1369 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 1370echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} 1371 { (exit 1); exit 1; }; } 1372 1373fi 1374echo "$as_me:$LINENO: result: $ac_cv_target" >&5 1375echo "${ECHO_T}$ac_cv_target" >&6 1376target=$ac_cv_target 1377target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1378target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1379target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1380 1381 1382# The aliases save the names the user supplied, while $host etc. 1383# will get canonicalized. 1384test -n "$target_alias" && 1385 test "$program_prefix$program_suffix$program_transform_name" = \ 1386 NONENONEs,x,x, && 1387 program_prefix=${target_alias}- 1388 1389 1390 1391 1392 1393 1394# Check whether --with-gcc or --without-gcc was given. 1395if test "${with_gcc+set}" = set; then 1396 withval="$with_gcc" 1397 1398fi; 1399 V_CCOPT="-O" 1400 V_INCLS="" 1401 if test "${srcdir}" != "." ; then 1402 V_INCLS="-I\$(srcdir)" 1403 fi 1404 if test "${CFLAGS+set}" = set; then 1405 LBL_CFLAGS="$CFLAGS" 1406 fi 1407 if test -z "$CC" ; then 1408 case "$target_os" in 1409 1410 bsdi*) 1411 # Extract the first word of "shlicc2", so it can be a program name with args. 1412set dummy shlicc2; ac_word=$2 1413echo "$as_me:$LINENO: checking for $ac_word" >&5 1414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1415if test "${ac_cv_prog_SHLICC2+set}" = set; then 1416 echo $ECHO_N "(cached) $ECHO_C" >&6 1417else 1418 if test -n "$SHLICC2"; then 1419 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test. 1420else 1421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1422for as_dir in $PATH 1423do 1424 IFS=$as_save_IFS 1425 test -z "$as_dir" && as_dir=. 1426 for ac_exec_ext in '' $ac_executable_extensions; do 1427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1428 ac_cv_prog_SHLICC2="yes" 1429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1430 break 2 1431 fi 1432done 1433done 1434 1435 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no" 1436fi 1437fi 1438SHLICC2=$ac_cv_prog_SHLICC2 1439if test -n "$SHLICC2"; then 1440 echo "$as_me:$LINENO: result: $SHLICC2" >&5 1441echo "${ECHO_T}$SHLICC2" >&6 1442else 1443 echo "$as_me:$LINENO: result: no" >&5 1444echo "${ECHO_T}no" >&6 1445fi 1446 1447 if test $SHLICC2 = yes ; then 1448 CC=shlicc2 1449 export CC 1450 fi 1451 ;; 1452 esac 1453 fi 1454 if test -z "$CC" -a "$with_gcc" = no ; then 1455 CC=cc 1456 export CC 1457 fi 1458 ac_ext=c 1459ac_cpp='$CPP $CPPFLAGS' 1460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1462ac_compiler_gnu=$ac_cv_c_compiler_gnu 1463if test -n "$ac_tool_prefix"; then 1464 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1465set dummy ${ac_tool_prefix}gcc; ac_word=$2 1466echo "$as_me:$LINENO: checking for $ac_word" >&5 1467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1468if test "${ac_cv_prog_CC+set}" = set; then 1469 echo $ECHO_N "(cached) $ECHO_C" >&6 1470else 1471 if test -n "$CC"; then 1472 ac_cv_prog_CC="$CC" # Let the user override the test. 1473else 1474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1475for as_dir in $PATH 1476do 1477 IFS=$as_save_IFS 1478 test -z "$as_dir" && as_dir=. 1479 for ac_exec_ext in '' $ac_executable_extensions; do 1480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1481 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1483 break 2 1484 fi 1485done 1486done 1487 1488fi 1489fi 1490CC=$ac_cv_prog_CC 1491if test -n "$CC"; then 1492 echo "$as_me:$LINENO: result: $CC" >&5 1493echo "${ECHO_T}$CC" >&6 1494else 1495 echo "$as_me:$LINENO: result: no" >&5 1496echo "${ECHO_T}no" >&6 1497fi 1498 1499fi 1500if test -z "$ac_cv_prog_CC"; then 1501 ac_ct_CC=$CC 1502 # Extract the first word of "gcc", so it can be a program name with args. 1503set dummy gcc; ac_word=$2 1504echo "$as_me:$LINENO: checking for $ac_word" >&5 1505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1506if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1507 echo $ECHO_N "(cached) $ECHO_C" >&6 1508else 1509 if test -n "$ac_ct_CC"; then 1510 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1511else 1512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1513for as_dir in $PATH 1514do 1515 IFS=$as_save_IFS 1516 test -z "$as_dir" && as_dir=. 1517 for ac_exec_ext in '' $ac_executable_extensions; do 1518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1519 ac_cv_prog_ac_ct_CC="gcc" 1520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1521 break 2 1522 fi 1523done 1524done 1525 1526fi 1527fi 1528ac_ct_CC=$ac_cv_prog_ac_ct_CC 1529if test -n "$ac_ct_CC"; then 1530 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1531echo "${ECHO_T}$ac_ct_CC" >&6 1532else 1533 echo "$as_me:$LINENO: result: no" >&5 1534echo "${ECHO_T}no" >&6 1535fi 1536 1537 CC=$ac_ct_CC 1538else 1539 CC="$ac_cv_prog_CC" 1540fi 1541 1542if test -z "$CC"; then 1543 if test -n "$ac_tool_prefix"; then 1544 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1545set dummy ${ac_tool_prefix}cc; ac_word=$2 1546echo "$as_me:$LINENO: checking for $ac_word" >&5 1547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1548if test "${ac_cv_prog_CC+set}" = set; then 1549 echo $ECHO_N "(cached) $ECHO_C" >&6 1550else 1551 if test -n "$CC"; then 1552 ac_cv_prog_CC="$CC" # Let the user override the test. 1553else 1554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1555for as_dir in $PATH 1556do 1557 IFS=$as_save_IFS 1558 test -z "$as_dir" && as_dir=. 1559 for ac_exec_ext in '' $ac_executable_extensions; do 1560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1561 ac_cv_prog_CC="${ac_tool_prefix}cc" 1562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1563 break 2 1564 fi 1565done 1566done 1567 1568fi 1569fi 1570CC=$ac_cv_prog_CC 1571if test -n "$CC"; then 1572 echo "$as_me:$LINENO: result: $CC" >&5 1573echo "${ECHO_T}$CC" >&6 1574else 1575 echo "$as_me:$LINENO: result: no" >&5 1576echo "${ECHO_T}no" >&6 1577fi 1578 1579fi 1580if test -z "$ac_cv_prog_CC"; then 1581 ac_ct_CC=$CC 1582 # Extract the first word of "cc", so it can be a program name with args. 1583set dummy cc; ac_word=$2 1584echo "$as_me:$LINENO: checking for $ac_word" >&5 1585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1586if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1587 echo $ECHO_N "(cached) $ECHO_C" >&6 1588else 1589 if test -n "$ac_ct_CC"; then 1590 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1591else 1592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1593for as_dir in $PATH 1594do 1595 IFS=$as_save_IFS 1596 test -z "$as_dir" && as_dir=. 1597 for ac_exec_ext in '' $ac_executable_extensions; do 1598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1599 ac_cv_prog_ac_ct_CC="cc" 1600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1601 break 2 1602 fi 1603done 1604done 1605 1606fi 1607fi 1608ac_ct_CC=$ac_cv_prog_ac_ct_CC 1609if test -n "$ac_ct_CC"; then 1610 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1611echo "${ECHO_T}$ac_ct_CC" >&6 1612else 1613 echo "$as_me:$LINENO: result: no" >&5 1614echo "${ECHO_T}no" >&6 1615fi 1616 1617 CC=$ac_ct_CC 1618else 1619 CC="$ac_cv_prog_CC" 1620fi 1621 1622fi 1623if test -z "$CC"; then 1624 # Extract the first word of "cc", so it can be a program name with args. 1625set dummy cc; ac_word=$2 1626echo "$as_me:$LINENO: checking for $ac_word" >&5 1627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1628if test "${ac_cv_prog_CC+set}" = set; then 1629 echo $ECHO_N "(cached) $ECHO_C" >&6 1630else 1631 if test -n "$CC"; then 1632 ac_cv_prog_CC="$CC" # Let the user override the test. 1633else 1634 ac_prog_rejected=no 1635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1636for as_dir in $PATH 1637do 1638 IFS=$as_save_IFS 1639 test -z "$as_dir" && as_dir=. 1640 for ac_exec_ext in '' $ac_executable_extensions; do 1641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1642 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1643 ac_prog_rejected=yes 1644 continue 1645 fi 1646 ac_cv_prog_CC="cc" 1647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1648 break 2 1649 fi 1650done 1651done 1652 1653if test $ac_prog_rejected = yes; then 1654 # We found a bogon in the path, so make sure we never use it. 1655 set dummy $ac_cv_prog_CC 1656 shift 1657 if test $# != 0; then 1658 # We chose a different compiler from the bogus one. 1659 # However, it has the same basename, so the bogon will be chosen 1660 # first if we set CC to just the basename; use the full file name. 1661 shift 1662 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1663 fi 1664fi 1665fi 1666fi 1667CC=$ac_cv_prog_CC 1668if test -n "$CC"; then 1669 echo "$as_me:$LINENO: result: $CC" >&5 1670echo "${ECHO_T}$CC" >&6 1671else 1672 echo "$as_me:$LINENO: result: no" >&5 1673echo "${ECHO_T}no" >&6 1674fi 1675 1676fi 1677if test -z "$CC"; then 1678 if test -n "$ac_tool_prefix"; then 1679 for ac_prog in cl 1680 do 1681 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1682set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1683echo "$as_me:$LINENO: checking for $ac_word" >&5 1684echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1685if test "${ac_cv_prog_CC+set}" = set; then 1686 echo $ECHO_N "(cached) $ECHO_C" >&6 1687else 1688 if test -n "$CC"; then 1689 ac_cv_prog_CC="$CC" # Let the user override the test. 1690else 1691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1692for as_dir in $PATH 1693do 1694 IFS=$as_save_IFS 1695 test -z "$as_dir" && as_dir=. 1696 for ac_exec_ext in '' $ac_executable_extensions; do 1697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1698 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1700 break 2 1701 fi 1702done 1703done 1704 1705fi 1706fi 1707CC=$ac_cv_prog_CC 1708if test -n "$CC"; then 1709 echo "$as_me:$LINENO: result: $CC" >&5 1710echo "${ECHO_T}$CC" >&6 1711else 1712 echo "$as_me:$LINENO: result: no" >&5 1713echo "${ECHO_T}no" >&6 1714fi 1715 1716 test -n "$CC" && break 1717 done 1718fi 1719if test -z "$CC"; then 1720 ac_ct_CC=$CC 1721 for ac_prog in cl 1722do 1723 # Extract the first word of "$ac_prog", so it can be a program name with args. 1724set dummy $ac_prog; ac_word=$2 1725echo "$as_me:$LINENO: checking for $ac_word" >&5 1726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1727if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1728 echo $ECHO_N "(cached) $ECHO_C" >&6 1729else 1730 if test -n "$ac_ct_CC"; then 1731 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1732else 1733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1734for as_dir in $PATH 1735do 1736 IFS=$as_save_IFS 1737 test -z "$as_dir" && as_dir=. 1738 for ac_exec_ext in '' $ac_executable_extensions; do 1739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1740 ac_cv_prog_ac_ct_CC="$ac_prog" 1741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1742 break 2 1743 fi 1744done 1745done 1746 1747fi 1748fi 1749ac_ct_CC=$ac_cv_prog_ac_ct_CC 1750if test -n "$ac_ct_CC"; then 1751 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1752echo "${ECHO_T}$ac_ct_CC" >&6 1753else 1754 echo "$as_me:$LINENO: result: no" >&5 1755echo "${ECHO_T}no" >&6 1756fi 1757 1758 test -n "$ac_ct_CC" && break 1759done 1760 1761 CC=$ac_ct_CC 1762fi 1763 1764fi 1765 1766 1767test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1768See \`config.log' for more details." >&5 1769echo "$as_me: error: no acceptable C compiler found in \$PATH 1770See \`config.log' for more details." >&2;} 1771 { (exit 1); exit 1; }; } 1772 1773# Provide some information about the compiler. 1774echo "$as_me:$LINENO:" \ 1775 "checking for C compiler version" >&5 1776ac_compiler=`set X $ac_compile; echo $2` 1777{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1778 (eval $ac_compiler --version </dev/null >&5) 2>&5 1779 ac_status=$? 1780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1781 (exit $ac_status); } 1782{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1783 (eval $ac_compiler -v </dev/null >&5) 2>&5 1784 ac_status=$? 1785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1786 (exit $ac_status); } 1787{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1788 (eval $ac_compiler -V </dev/null >&5) 2>&5 1789 ac_status=$? 1790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1791 (exit $ac_status); } 1792 1793cat >conftest.$ac_ext <<_ACEOF 1794#line $LINENO "configure" 1795/* confdefs.h. */ 1796_ACEOF 1797cat confdefs.h >>conftest.$ac_ext 1798cat >>conftest.$ac_ext <<_ACEOF 1799/* end confdefs.h. */ 1800 1801int 1802main () 1803{ 1804 1805 ; 1806 return 0; 1807} 1808_ACEOF 1809ac_clean_files_save=$ac_clean_files 1810ac_clean_files="$ac_clean_files a.out a.exe b.out" 1811# Try to create an executable without -o first, disregard a.out. 1812# It will help us diagnose broken compilers, and finding out an intuition 1813# of exeext. 1814echo "$as_me:$LINENO: checking for C compiler default output" >&5 1815echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 1816ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1817if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1818 (eval $ac_link_default) 2>&5 1819 ac_status=$? 1820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1821 (exit $ac_status); }; then 1822 # Find the output, starting from the most likely. This scheme is 1823# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1824# resort. 1825 1826# Be careful to initialize this variable, since it used to be cached. 1827# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1828ac_cv_exeext= 1829# b.out is created by i960 compilers. 1830for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1831do 1832 test -f "$ac_file" || continue 1833 case $ac_file in 1834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1835 ;; 1836 conftest.$ac_ext ) 1837 # This is the source file. 1838 ;; 1839 [ab].out ) 1840 # We found the default executable, but exeext='' is most 1841 # certainly right. 1842 break;; 1843 *.* ) 1844 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1845 # FIXME: I believe we export ac_cv_exeext for Libtool, 1846 # but it would be cool to find out if it's true. Does anybody 1847 # maintain Libtool? --akim. 1848 export ac_cv_exeext 1849 break;; 1850 * ) 1851 break;; 1852 esac 1853done 1854else 1855 echo "$as_me: failed program was:" >&5 1856sed 's/^/| /' conftest.$ac_ext >&5 1857 1858{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 1859See \`config.log' for more details." >&5 1860echo "$as_me: error: C compiler cannot create executables 1861See \`config.log' for more details." >&2;} 1862 { (exit 77); exit 77; }; } 1863fi 1864 1865ac_exeext=$ac_cv_exeext 1866echo "$as_me:$LINENO: result: $ac_file" >&5 1867echo "${ECHO_T}$ac_file" >&6 1868 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 the C compiler works" >&5 1872echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1873# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1874# If not cross compiling, check that we can run a simple program. 1875if test "$cross_compiling" != yes; then 1876 if { ac_try='./$ac_file' 1877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1878 (eval $ac_try) 2>&5 1879 ac_status=$? 1880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1881 (exit $ac_status); }; }; then 1882 cross_compiling=no 1883 else 1884 if test "$cross_compiling" = maybe; then 1885 cross_compiling=yes 1886 else 1887 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1888If you meant to cross compile, use \`--host'. 1889See \`config.log' for more details." >&5 1890echo "$as_me: error: cannot run C compiled programs. 1891If you meant to cross compile, use \`--host'. 1892See \`config.log' for more details." >&2;} 1893 { (exit 1); exit 1; }; } 1894 fi 1895 fi 1896fi 1897echo "$as_me:$LINENO: result: yes" >&5 1898echo "${ECHO_T}yes" >&6 1899 1900rm -f a.out a.exe conftest$ac_cv_exeext b.out 1901ac_clean_files=$ac_clean_files_save 1902# Check the compiler produces executables we can run. If not, either 1903# the compiler is broken, or we cross compile. 1904echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1905echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1906echo "$as_me:$LINENO: result: $cross_compiling" >&5 1907echo "${ECHO_T}$cross_compiling" >&6 1908 1909echo "$as_me:$LINENO: checking for suffix of executables" >&5 1910echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1912 (eval $ac_link) 2>&5 1913 ac_status=$? 1914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1915 (exit $ac_status); }; then 1916 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1917# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1918# work properly (i.e., refer to `conftest.exe'), while it won't with 1919# `rm'. 1920for ac_file in conftest.exe conftest conftest.*; do 1921 test -f "$ac_file" || continue 1922 case $ac_file in 1923 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1924 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1925 export ac_cv_exeext 1926 break;; 1927 * ) break;; 1928 esac 1929done 1930else 1931 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1932See \`config.log' for more details." >&5 1933echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1934See \`config.log' for more details." >&2;} 1935 { (exit 1); exit 1; }; } 1936fi 1937 1938rm -f conftest$ac_cv_exeext 1939echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1940echo "${ECHO_T}$ac_cv_exeext" >&6 1941 1942rm -f conftest.$ac_ext 1943EXEEXT=$ac_cv_exeext 1944ac_exeext=$EXEEXT 1945echo "$as_me:$LINENO: checking for suffix of object files" >&5 1946echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1947if test "${ac_cv_objext+set}" = set; then 1948 echo $ECHO_N "(cached) $ECHO_C" >&6 1949else 1950 cat >conftest.$ac_ext <<_ACEOF 1951#line $LINENO "configure" 1952/* confdefs.h. */ 1953_ACEOF 1954cat confdefs.h >>conftest.$ac_ext 1955cat >>conftest.$ac_ext <<_ACEOF 1956/* end confdefs.h. */ 1957 1958int 1959main () 1960{ 1961 1962 ; 1963 return 0; 1964} 1965_ACEOF 1966rm -f conftest.o conftest.obj 1967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1968 (eval $ac_compile) 2>&5 1969 ac_status=$? 1970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1971 (exit $ac_status); }; then 1972 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1973 case $ac_file in 1974 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 1975 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1976 break;; 1977 esac 1978done 1979else 1980 echo "$as_me: failed program was:" >&5 1981sed 's/^/| /' conftest.$ac_ext >&5 1982 1983{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 1984See \`config.log' for more details." >&5 1985echo "$as_me: error: cannot compute suffix of object files: cannot compile 1986See \`config.log' for more details." >&2;} 1987 { (exit 1); exit 1; }; } 1988fi 1989 1990rm -f conftest.$ac_cv_objext conftest.$ac_ext 1991fi 1992echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 1993echo "${ECHO_T}$ac_cv_objext" >&6 1994OBJEXT=$ac_cv_objext 1995ac_objext=$OBJEXT 1996echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 1997echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1998if test "${ac_cv_c_compiler_gnu+set}" = set; then 1999 echo $ECHO_N "(cached) $ECHO_C" >&6 2000else 2001 cat >conftest.$ac_ext <<_ACEOF 2002#line $LINENO "configure" 2003/* confdefs.h. */ 2004_ACEOF 2005cat confdefs.h >>conftest.$ac_ext 2006cat >>conftest.$ac_ext <<_ACEOF 2007/* end confdefs.h. */ 2008 2009int 2010main () 2011{ 2012#ifndef __GNUC__ 2013 choke me 2014#endif 2015 2016 ; 2017 return 0; 2018} 2019_ACEOF 2020rm -f conftest.$ac_objext 2021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2022 (eval $ac_compile) 2>&5 2023 ac_status=$? 2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2025 (exit $ac_status); } && 2026 { ac_try='test -s conftest.$ac_objext' 2027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2028 (eval $ac_try) 2>&5 2029 ac_status=$? 2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2031 (exit $ac_status); }; }; then 2032 ac_compiler_gnu=yes 2033else 2034 echo "$as_me: failed program was:" >&5 2035sed 's/^/| /' conftest.$ac_ext >&5 2036 2037ac_compiler_gnu=no 2038fi 2039rm -f conftest.$ac_objext conftest.$ac_ext 2040ac_cv_c_compiler_gnu=$ac_compiler_gnu 2041 2042fi 2043echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2044echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2045GCC=`test $ac_compiler_gnu = yes && echo yes` 2046ac_test_CFLAGS=${CFLAGS+set} 2047ac_save_CFLAGS=$CFLAGS 2048CFLAGS="-g" 2049echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2050echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2051if test "${ac_cv_prog_cc_g+set}" = set; then 2052 echo $ECHO_N "(cached) $ECHO_C" >&6 2053else 2054 cat >conftest.$ac_ext <<_ACEOF 2055#line $LINENO "configure" 2056/* confdefs.h. */ 2057_ACEOF 2058cat confdefs.h >>conftest.$ac_ext 2059cat >>conftest.$ac_ext <<_ACEOF 2060/* end confdefs.h. */ 2061 2062int 2063main () 2064{ 2065 2066 ; 2067 return 0; 2068} 2069_ACEOF 2070rm -f conftest.$ac_objext 2071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2072 (eval $ac_compile) 2>&5 2073 ac_status=$? 2074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2075 (exit $ac_status); } && 2076 { ac_try='test -s conftest.$ac_objext' 2077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2078 (eval $ac_try) 2>&5 2079 ac_status=$? 2080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2081 (exit $ac_status); }; }; then 2082 ac_cv_prog_cc_g=yes 2083else 2084 echo "$as_me: failed program was:" >&5 2085sed 's/^/| /' conftest.$ac_ext >&5 2086 2087ac_cv_prog_cc_g=no 2088fi 2089rm -f conftest.$ac_objext conftest.$ac_ext 2090fi 2091echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2092echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2093if test "$ac_test_CFLAGS" = set; then 2094 CFLAGS=$ac_save_CFLAGS 2095elif test $ac_cv_prog_cc_g = yes; then 2096 if test "$GCC" = yes; then 2097 CFLAGS="-g -O2" 2098 else 2099 CFLAGS="-g" 2100 fi 2101else 2102 if test "$GCC" = yes; then 2103 CFLAGS="-O2" 2104 else 2105 CFLAGS= 2106 fi 2107fi 2108echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2109echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2110if test "${ac_cv_prog_cc_stdc+set}" = set; then 2111 echo $ECHO_N "(cached) $ECHO_C" >&6 2112else 2113 ac_cv_prog_cc_stdc=no 2114ac_save_CC=$CC 2115cat >conftest.$ac_ext <<_ACEOF 2116#line $LINENO "configure" 2117/* confdefs.h. */ 2118_ACEOF 2119cat confdefs.h >>conftest.$ac_ext 2120cat >>conftest.$ac_ext <<_ACEOF 2121/* end confdefs.h. */ 2122#include <stdarg.h> 2123#include <stdio.h> 2124#include <sys/types.h> 2125#include <sys/stat.h> 2126/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2127struct buf { int x; }; 2128FILE * (*rcsopen) (struct buf *, struct stat *, int); 2129static char *e (p, i) 2130 char **p; 2131 int i; 2132{ 2133 return p[i]; 2134} 2135static char *f (char * (*g) (char **, int), char **p, ...) 2136{ 2137 char *s; 2138 va_list v; 2139 va_start (v,p); 2140 s = g (p, va_arg (v,int)); 2141 va_end (v); 2142 return s; 2143} 2144int test (int i, double x); 2145struct s1 {int (*f) (int a);}; 2146struct s2 {int (*f) (double a);}; 2147int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2148int argc; 2149char **argv; 2150int 2151main () 2152{ 2153return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2154 ; 2155 return 0; 2156} 2157_ACEOF 2158# Don't try gcc -ansi; that turns off useful extensions and 2159# breaks some systems' header files. 2160# AIX -qlanglvl=ansi 2161# Ultrix and OSF/1 -std1 2162# HP-UX 10.20 and later -Ae 2163# HP-UX older versions -Aa -D_HPUX_SOURCE 2164# SVR4 -Xc -D__EXTENSIONS__ 2165for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2166do 2167 CC="$ac_save_CC $ac_arg" 2168 rm -f conftest.$ac_objext 2169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2170 (eval $ac_compile) 2>&5 2171 ac_status=$? 2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2173 (exit $ac_status); } && 2174 { ac_try='test -s conftest.$ac_objext' 2175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2176 (eval $ac_try) 2>&5 2177 ac_status=$? 2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2179 (exit $ac_status); }; }; then 2180 ac_cv_prog_cc_stdc=$ac_arg 2181break 2182else 2183 echo "$as_me: failed program was:" >&5 2184sed 's/^/| /' conftest.$ac_ext >&5 2185 2186fi 2187rm -f conftest.$ac_objext 2188done 2189rm -f conftest.$ac_ext conftest.$ac_objext 2190CC=$ac_save_CC 2191 2192fi 2193 2194case "x$ac_cv_prog_cc_stdc" in 2195 x|xno) 2196 echo "$as_me:$LINENO: result: none needed" >&5 2197echo "${ECHO_T}none needed" >&6 ;; 2198 *) 2199 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2200echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2201 CC="$CC $ac_cv_prog_cc_stdc" ;; 2202esac 2203 2204# Some people use a C++ compiler to compile C. Since we use `exit', 2205# in C++ we need to declare it. In case someone uses the same compiler 2206# for both compiling C and C++ we need to have the C++ compiler decide 2207# the declaration of exit, since it's the most demanding environment. 2208cat >conftest.$ac_ext <<_ACEOF 2209#ifndef __cplusplus 2210 choke me 2211#endif 2212_ACEOF 2213rm -f conftest.$ac_objext 2214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2215 (eval $ac_compile) 2>&5 2216 ac_status=$? 2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2218 (exit $ac_status); } && 2219 { ac_try='test -s conftest.$ac_objext' 2220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2221 (eval $ac_try) 2>&5 2222 ac_status=$? 2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2224 (exit $ac_status); }; }; then 2225 for ac_declaration in \ 2226 ''\ 2227 '#include <stdlib.h>' \ 2228 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2229 'extern "C" void std::exit (int); using std::exit;' \ 2230 'extern "C" void exit (int) throw ();' \ 2231 'extern "C" void exit (int);' \ 2232 'void exit (int);' 2233do 2234 cat >conftest.$ac_ext <<_ACEOF 2235#line $LINENO "configure" 2236/* confdefs.h. */ 2237_ACEOF 2238cat confdefs.h >>conftest.$ac_ext 2239cat >>conftest.$ac_ext <<_ACEOF 2240/* end confdefs.h. */ 2241#include <stdlib.h> 2242$ac_declaration 2243int 2244main () 2245{ 2246exit (42); 2247 ; 2248 return 0; 2249} 2250_ACEOF 2251rm -f conftest.$ac_objext 2252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2253 (eval $ac_compile) 2>&5 2254 ac_status=$? 2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2256 (exit $ac_status); } && 2257 { ac_try='test -s conftest.$ac_objext' 2258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2259 (eval $ac_try) 2>&5 2260 ac_status=$? 2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2262 (exit $ac_status); }; }; then 2263 : 2264else 2265 echo "$as_me: failed program was:" >&5 2266sed 's/^/| /' conftest.$ac_ext >&5 2267 2268continue 2269fi 2270rm -f conftest.$ac_objext conftest.$ac_ext 2271 cat >conftest.$ac_ext <<_ACEOF 2272#line $LINENO "configure" 2273/* confdefs.h. */ 2274_ACEOF 2275cat confdefs.h >>conftest.$ac_ext 2276cat >>conftest.$ac_ext <<_ACEOF 2277/* end confdefs.h. */ 2278$ac_declaration 2279int 2280main () 2281{ 2282exit (42); 2283 ; 2284 return 0; 2285} 2286_ACEOF 2287rm -f conftest.$ac_objext 2288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2289 (eval $ac_compile) 2>&5 2290 ac_status=$? 2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2292 (exit $ac_status); } && 2293 { ac_try='test -s conftest.$ac_objext' 2294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2295 (eval $ac_try) 2>&5 2296 ac_status=$? 2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2298 (exit $ac_status); }; }; then 2299 break 2300else 2301 echo "$as_me: failed program was:" >&5 2302sed 's/^/| /' conftest.$ac_ext >&5 2303 2304fi 2305rm -f conftest.$ac_objext conftest.$ac_ext 2306done 2307rm -f conftest* 2308if test -n "$ac_declaration"; then 2309 echo '#ifdef __cplusplus' >>confdefs.h 2310 echo $ac_declaration >>confdefs.h 2311 echo '#endif' >>confdefs.h 2312fi 2313 2314else 2315 echo "$as_me: failed program was:" >&5 2316sed 's/^/| /' conftest.$ac_ext >&5 2317 2318fi 2319rm -f conftest.$ac_objext conftest.$ac_ext 2320ac_ext=c 2321ac_cpp='$CPP $CPPFLAGS' 2322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2324ac_compiler_gnu=$ac_cv_c_compiler_gnu 2325 2326 if test "$GCC" = yes ; then 2327 if test "$SHLICC2" = yes ; then 2328 ac_cv_lbl_gcc_vers=2 2329 V_CCOPT="-O2" 2330 else 2331 echo "$as_me:$LINENO: checking gcc version" >&5 2332echo $ECHO_N "checking gcc version... $ECHO_C" >&6 2333 if test "${ac_cv_lbl_gcc_vers+set}" = set; then 2334 echo $ECHO_N "(cached) $ECHO_C" >&6 2335else 2336 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \ 2337 sed -e '/^gcc version /!d' \ 2338 -e 's/^gcc version //' \ 2339 -e 's/ .*//' -e 's/^[^0-9]*//' \ 2340 -e 's/\..*//'` 2341fi 2342 2343 echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5 2344echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6 2345 if test $ac_cv_lbl_gcc_vers -gt 1 ; then 2346 V_CCOPT="-O2" 2347 fi 2348 fi 2349 else 2350 echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5 2351echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6 2352 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then 2353 echo $ECHO_N "(cached) $ECHO_C" >&6 2354else 2355 2356cat >conftest.$ac_ext <<_ACEOF 2357#line $LINENO "configure" 2358/* confdefs.h. */ 2359_ACEOF 2360cat confdefs.h >>conftest.$ac_ext 2361cat >>conftest.$ac_ext <<_ACEOF 2362/* end confdefs.h. */ 2363#include <sys/types.h> 2364int 2365main () 2366{ 2367int frob(int, char *) 2368 ; 2369 return 0; 2370} 2371_ACEOF 2372rm -f conftest.$ac_objext 2373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2374 (eval $ac_compile) 2>&5 2375 ac_status=$? 2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2377 (exit $ac_status); } && 2378 { ac_try='test -s conftest.$ac_objext' 2379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2380 (eval $ac_try) 2>&5 2381 ac_status=$? 2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2383 (exit $ac_status); }; }; then 2384 ac_cv_lbl_cc_ansi_prototypes=yes 2385else 2386 echo "$as_me: failed program was:" >&5 2387sed 's/^/| /' conftest.$ac_ext >&5 2388 2389ac_cv_lbl_cc_ansi_prototypes=no 2390fi 2391rm -f conftest.$ac_objext conftest.$ac_ext 2392fi 2393 2394 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5 2395echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6 2396 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then 2397 case "$target_os" in 2398 2399 hpux*) 2400 echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5 2401echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6 2402 savedcflags="$CFLAGS" 2403 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS" 2404 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then 2405 echo $ECHO_N "(cached) $ECHO_C" >&6 2406else 2407 cat >conftest.$ac_ext <<_ACEOF 2408#line $LINENO "configure" 2409/* confdefs.h. */ 2410_ACEOF 2411cat confdefs.h >>conftest.$ac_ext 2412cat >>conftest.$ac_ext <<_ACEOF 2413/* end confdefs.h. */ 2414#include <sys/types.h> 2415int 2416main () 2417{ 2418int frob(int, char *) 2419 ; 2420 return 0; 2421} 2422_ACEOF 2423rm -f conftest.$ac_objext 2424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2425 (eval $ac_compile) 2>&5 2426 ac_status=$? 2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2428 (exit $ac_status); } && 2429 { ac_try='test -s conftest.$ac_objext' 2430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2431 (eval $ac_try) 2>&5 2432 ac_status=$? 2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2434 (exit $ac_status); }; }; then 2435 ac_cv_lbl_cc_hpux_cc_aa=yes 2436else 2437 echo "$as_me: failed program was:" >&5 2438sed 's/^/| /' conftest.$ac_ext >&5 2439 2440ac_cv_lbl_cc_hpux_cc_aa=no 2441fi 2442rm -f conftest.$ac_objext conftest.$ac_ext 2443fi 2444 2445 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5 2446echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6 2447 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then 2448 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5 2449echo "$as_me: error: see the INSTALL doc for more info" >&2;} 2450 { (exit 1); exit 1; }; } 2451 fi 2452 CFLAGS="$savedcflags" 2453 V_CCOPT="-Aa $V_CCOPT" 2454 2455cat >>confdefs.h <<\_ACEOF 2456#define _HPUX_SOURCE 1 2457_ACEOF 2458 2459 ;; 2460 2461 *) 2462 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5 2463echo "$as_me: error: see the INSTALL doc for more info" >&2;} 2464 { (exit 1); exit 1; }; } 2465 ;; 2466 esac 2467 fi 2468 V_INCLS="$V_INCLS -I/usr/local/include" 2469 LDFLAGS="$LDFLAGS -L/usr/local/lib" 2470 2471 case "$target_os" in 2472 2473 irix*) 2474 V_CCOPT="$V_CCOPT -xansi -signed -g3" 2475 ;; 2476 2477 osf*) 2478 V_CCOPT="$V_CCOPT -std1 -g3" 2479 ;; 2480 2481 ultrix*) 2482 echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5 2483echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6 2484 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then 2485 echo $ECHO_N "(cached) $ECHO_C" >&6 2486else 2487 cat >conftest.$ac_ext <<_ACEOF 2488#line $LINENO "configure" 2489/* confdefs.h. */ 2490_ACEOF 2491cat confdefs.h >>conftest.$ac_ext 2492cat >>conftest.$ac_ext <<_ACEOF 2493/* end confdefs.h. */ 2494#include <sys/types.h> 2495int 2496main () 2497{ 2498struct a { int b; }; 2499 void c(const struct a *) 2500 ; 2501 return 0; 2502} 2503_ACEOF 2504rm -f conftest.$ac_objext 2505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2506 (eval $ac_compile) 2>&5 2507 ac_status=$? 2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2509 (exit $ac_status); } && 2510 { ac_try='test -s conftest.$ac_objext' 2511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2512 (eval $ac_try) 2>&5 2513 ac_status=$? 2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2515 (exit $ac_status); }; }; then 2516 ac_cv_lbl_cc_const_proto=yes 2517else 2518 echo "$as_me: failed program was:" >&5 2519sed 's/^/| /' conftest.$ac_ext >&5 2520 2521ac_cv_lbl_cc_const_proto=no 2522fi 2523rm -f conftest.$ac_objext conftest.$ac_ext 2524fi 2525 2526 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5 2527echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6 2528 if test $ac_cv_lbl_cc_const_proto = no ; then 2529 cat >>confdefs.h <<\_ACEOF 2530#define const 2531_ACEOF 2532 2533 fi 2534 ;; 2535 esac 2536 fi 2537 2538echo "$as_me:$LINENO: checking for inline" >&5 2539echo $ECHO_N "checking for inline... $ECHO_C" >&6 2540 save_CFLAGS="$CFLAGS" 2541 CFLAGS="$V_CCOPT" 2542 if test "${ac_cv_lbl_inline+set}" = set; then 2543 echo $ECHO_N "(cached) $ECHO_C" >&6 2544else 2545 2546 ac_cv_lbl_inline="" 2547 ac_lbl_cc_inline=no 2548 for ac_lbl_inline in inline __inline__ __inline 2549 do 2550 cat >conftest.$ac_ext <<_ACEOF 2551#line $LINENO "configure" 2552/* confdefs.h. */ 2553_ACEOF 2554cat confdefs.h >>conftest.$ac_ext 2555cat >>conftest.$ac_ext <<_ACEOF 2556/* end confdefs.h. */ 2557#define inline $ac_lbl_inline 2558 static inline struct iltest *foo(void); 2559 struct iltest { 2560 int iltest1; 2561 int iltest2; 2562 }; 2563 2564 static inline struct iltest * 2565 foo() 2566 { 2567 static struct iltest xxx; 2568 2569 return &xxx; 2570 } 2571int 2572main () 2573{ 2574 2575 ; 2576 return 0; 2577} 2578_ACEOF 2579rm -f conftest.$ac_objext 2580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2581 (eval $ac_compile) 2>&5 2582 ac_status=$? 2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2584 (exit $ac_status); } && 2585 { ac_try='test -s conftest.$ac_objext' 2586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2587 (eval $ac_try) 2>&5 2588 ac_status=$? 2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2590 (exit $ac_status); }; }; then 2591 ac_lbl_cc_inline=yes 2592else 2593 echo "$as_me: failed program was:" >&5 2594sed 's/^/| /' conftest.$ac_ext >&5 2595 2596fi 2597rm -f conftest.$ac_objext conftest.$ac_ext 2598 if test "$ac_lbl_cc_inline" = yes ; then 2599 break; 2600 fi 2601 done 2602 if test "$ac_lbl_cc_inline" = yes ; then 2603 ac_cv_lbl_inline=$ac_lbl_inline 2604 fi 2605fi 2606 2607 CFLAGS="$save_CFLAGS" 2608 if test ! -z "$ac_cv_lbl_inline" ; then 2609 echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5 2610echo "${ECHO_T}$ac_cv_lbl_inline" >&6 2611 else 2612 echo "$as_me:$LINENO: result: no" >&5 2613echo "${ECHO_T}no" >&6 2614 fi 2615 2616cat >>confdefs.h <<_ACEOF 2617#define inline $ac_cv_lbl_inline 2618_ACEOF 2619 2620 2621echo "$as_me:$LINENO: checking for __attribute__" >&5 2622echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6 2623if test "${ac_cv___attribute__+set}" = set; then 2624 echo $ECHO_N "(cached) $ECHO_C" >&6 2625else 2626 2627cat >conftest.$ac_ext <<_ACEOF 2628#line $LINENO "configure" 2629/* confdefs.h. */ 2630_ACEOF 2631cat confdefs.h >>conftest.$ac_ext 2632cat >>conftest.$ac_ext <<_ACEOF 2633/* end confdefs.h. */ 2634 2635#include <stdlib.h> 2636 2637static void foo(void) __attribute__ ((noreturn)); 2638 2639static void 2640foo(void) 2641{ 2642 exit(1); 2643} 2644 2645int 2646main(int argc, char **argv) 2647{ 2648 foo(); 2649} 2650 2651_ACEOF 2652rm -f conftest.$ac_objext 2653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2654 (eval $ac_compile) 2>&5 2655 ac_status=$? 2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2657 (exit $ac_status); } && 2658 { ac_try='test -s conftest.$ac_objext' 2659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2660 (eval $ac_try) 2>&5 2661 ac_status=$? 2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2663 (exit $ac_status); }; }; then 2664 ac_cv___attribute__=yes 2665else 2666 echo "$as_me: failed program was:" >&5 2667sed 's/^/| /' conftest.$ac_ext >&5 2668 2669ac_cv___attribute__=no 2670fi 2671rm -f conftest.$ac_objext conftest.$ac_ext 2672fi 2673 2674if test "$ac_cv___attribute__" = "yes"; then 2675 2676cat >>confdefs.h <<\_ACEOF 2677#define HAVE___ATTRIBUTE__ 1 2678_ACEOF 2679 2680 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\"" 2681else 2682 V_DEFS="$V_DEFS -D_U_=\"\"" 2683fi 2684echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5 2685echo "${ECHO_T}$ac_cv___attribute__" >&6 2686 2687 2688echo "$as_me:$LINENO: checking for u_int8_t using $CC" >&5 2689echo $ECHO_N "checking for u_int8_t using $CC... $ECHO_C" >&6 2690 if test "${ac_cv_lbl_have_u_int8_t+set}" = set; then 2691 echo $ECHO_N "(cached) $ECHO_C" >&6 2692else 2693 cat >conftest.$ac_ext <<_ACEOF 2694#line $LINENO "configure" 2695/* confdefs.h. */ 2696_ACEOF 2697cat confdefs.h >>conftest.$ac_ext 2698cat >>conftest.$ac_ext <<_ACEOF 2699/* end confdefs.h. */ 2700 2701# include "confdefs.h" 2702# include <sys/types.h> 2703# if STDC_HEADERS 2704# include <stdlib.h> 2705# include <stddef.h> 2706# endif 2707int 2708main () 2709{ 2710u_int8_t i 2711 ; 2712 return 0; 2713} 2714_ACEOF 2715rm -f conftest.$ac_objext 2716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2717 (eval $ac_compile) 2>&5 2718 ac_status=$? 2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2720 (exit $ac_status); } && 2721 { ac_try='test -s conftest.$ac_objext' 2722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2723 (eval $ac_try) 2>&5 2724 ac_status=$? 2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2726 (exit $ac_status); }; }; then 2727 ac_cv_lbl_have_u_int8_t=yes 2728else 2729 echo "$as_me: failed program was:" >&5 2730sed 's/^/| /' conftest.$ac_ext >&5 2731 2732ac_cv_lbl_have_u_int8_t=no 2733fi 2734rm -f conftest.$ac_objext conftest.$ac_ext 2735fi 2736 2737 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int8_t" >&5 2738echo "${ECHO_T}$ac_cv_lbl_have_u_int8_t" >&6 2739 if test $ac_cv_lbl_have_u_int8_t = no ; then 2740 2741cat >>confdefs.h <<\_ACEOF 2742#define u_int8_t u_char 2743_ACEOF 2744 2745 fi 2746echo "$as_me:$LINENO: checking for u_int16_t using $CC" >&5 2747echo $ECHO_N "checking for u_int16_t using $CC... $ECHO_C" >&6 2748 if test "${ac_cv_lbl_have_u_int16_t+set}" = set; then 2749 echo $ECHO_N "(cached) $ECHO_C" >&6 2750else 2751 cat >conftest.$ac_ext <<_ACEOF 2752#line $LINENO "configure" 2753/* confdefs.h. */ 2754_ACEOF 2755cat confdefs.h >>conftest.$ac_ext 2756cat >>conftest.$ac_ext <<_ACEOF 2757/* end confdefs.h. */ 2758 2759# include "confdefs.h" 2760# include <sys/types.h> 2761# if STDC_HEADERS 2762# include <stdlib.h> 2763# include <stddef.h> 2764# endif 2765int 2766main () 2767{ 2768u_int16_t i 2769 ; 2770 return 0; 2771} 2772_ACEOF 2773rm -f conftest.$ac_objext 2774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2775 (eval $ac_compile) 2>&5 2776 ac_status=$? 2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2778 (exit $ac_status); } && 2779 { ac_try='test -s conftest.$ac_objext' 2780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2781 (eval $ac_try) 2>&5 2782 ac_status=$? 2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2784 (exit $ac_status); }; }; then 2785 ac_cv_lbl_have_u_int16_t=yes 2786else 2787 echo "$as_me: failed program was:" >&5 2788sed 's/^/| /' conftest.$ac_ext >&5 2789 2790ac_cv_lbl_have_u_int16_t=no 2791fi 2792rm -f conftest.$ac_objext conftest.$ac_ext 2793fi 2794 2795 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int16_t" >&5 2796echo "${ECHO_T}$ac_cv_lbl_have_u_int16_t" >&6 2797 if test $ac_cv_lbl_have_u_int16_t = no ; then 2798 2799cat >>confdefs.h <<\_ACEOF 2800#define u_int16_t u_short 2801_ACEOF 2802 2803 fi 2804echo "$as_me:$LINENO: checking for u_int32_t using $CC" >&5 2805echo $ECHO_N "checking for u_int32_t using $CC... $ECHO_C" >&6 2806 if test "${ac_cv_lbl_have_u_int32_t+set}" = set; then 2807 echo $ECHO_N "(cached) $ECHO_C" >&6 2808else 2809 cat >conftest.$ac_ext <<_ACEOF 2810#line $LINENO "configure" 2811/* confdefs.h. */ 2812_ACEOF 2813cat confdefs.h >>conftest.$ac_ext 2814cat >>conftest.$ac_ext <<_ACEOF 2815/* end confdefs.h. */ 2816 2817# include "confdefs.h" 2818# include <sys/types.h> 2819# if STDC_HEADERS 2820# include <stdlib.h> 2821# include <stddef.h> 2822# endif 2823int 2824main () 2825{ 2826u_int32_t i 2827 ; 2828 return 0; 2829} 2830_ACEOF 2831rm -f conftest.$ac_objext 2832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2833 (eval $ac_compile) 2>&5 2834 ac_status=$? 2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2836 (exit $ac_status); } && 2837 { ac_try='test -s conftest.$ac_objext' 2838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2839 (eval $ac_try) 2>&5 2840 ac_status=$? 2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2842 (exit $ac_status); }; }; then 2843 ac_cv_lbl_have_u_int32_t=yes 2844else 2845 echo "$as_me: failed program was:" >&5 2846sed 's/^/| /' conftest.$ac_ext >&5 2847 2848ac_cv_lbl_have_u_int32_t=no 2849fi 2850rm -f conftest.$ac_objext conftest.$ac_ext 2851fi 2852 2853 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int32_t" >&5 2854echo "${ECHO_T}$ac_cv_lbl_have_u_int32_t" >&6 2855 if test $ac_cv_lbl_have_u_int32_t = no ; then 2856 2857cat >>confdefs.h <<\_ACEOF 2858#define u_int32_t u_int 2859_ACEOF 2860 2861 fi 2862 2863ac_ext=c 2864ac_cpp='$CPP $CPPFLAGS' 2865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2867ac_compiler_gnu=$ac_cv_c_compiler_gnu 2868echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2869echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2870# On Suns, sometimes $CPP names a directory. 2871if test -n "$CPP" && test -d "$CPP"; then 2872 CPP= 2873fi 2874if test -z "$CPP"; then 2875 if test "${ac_cv_prog_CPP+set}" = set; then 2876 echo $ECHO_N "(cached) $ECHO_C" >&6 2877else 2878 # Double quotes because CPP needs to be expanded 2879 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2880 do 2881 ac_preproc_ok=false 2882for ac_c_preproc_warn_flag in '' yes 2883do 2884 # Use a header file that comes with gcc, so configuring glibc 2885 # with a fresh cross-compiler works. 2886 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2887 # <limits.h> exists even on freestanding compilers. 2888 # On the NeXT, cc -E runs the code through the compiler's parser, 2889 # not just through cpp. "Syntax error" is here to catch this case. 2890 cat >conftest.$ac_ext <<_ACEOF 2891#line $LINENO "configure" 2892/* confdefs.h. */ 2893_ACEOF 2894cat confdefs.h >>conftest.$ac_ext 2895cat >>conftest.$ac_ext <<_ACEOF 2896/* end confdefs.h. */ 2897#ifdef __STDC__ 2898# include <limits.h> 2899#else 2900# include <assert.h> 2901#endif 2902 Syntax error 2903_ACEOF 2904if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2905 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2906 ac_status=$? 2907 grep -v '^ *+' conftest.er1 >conftest.err 2908 rm -f conftest.er1 2909 cat conftest.err >&5 2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2911 (exit $ac_status); } >/dev/null; then 2912 if test -s conftest.err; then 2913 ac_cpp_err=$ac_c_preproc_warn_flag 2914 else 2915 ac_cpp_err= 2916 fi 2917else 2918 ac_cpp_err=yes 2919fi 2920if test -z "$ac_cpp_err"; then 2921 : 2922else 2923 echo "$as_me: failed program was:" >&5 2924sed 's/^/| /' conftest.$ac_ext >&5 2925 2926 # Broken: fails on valid input. 2927continue 2928fi 2929rm -f conftest.err conftest.$ac_ext 2930 2931 # OK, works on sane cases. Now check whether non-existent headers 2932 # can be detected and how. 2933 cat >conftest.$ac_ext <<_ACEOF 2934#line $LINENO "configure" 2935/* confdefs.h. */ 2936_ACEOF 2937cat confdefs.h >>conftest.$ac_ext 2938cat >>conftest.$ac_ext <<_ACEOF 2939/* end confdefs.h. */ 2940#include <ac_nonexistent.h> 2941_ACEOF 2942if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2943 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2944 ac_status=$? 2945 grep -v '^ *+' conftest.er1 >conftest.err 2946 rm -f conftest.er1 2947 cat conftest.err >&5 2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2949 (exit $ac_status); } >/dev/null; then 2950 if test -s conftest.err; then 2951 ac_cpp_err=$ac_c_preproc_warn_flag 2952 else 2953 ac_cpp_err= 2954 fi 2955else 2956 ac_cpp_err=yes 2957fi 2958if test -z "$ac_cpp_err"; then 2959 # Broken: success on invalid input. 2960continue 2961else 2962 echo "$as_me: failed program was:" >&5 2963sed 's/^/| /' conftest.$ac_ext >&5 2964 2965 # Passes both tests. 2966ac_preproc_ok=: 2967break 2968fi 2969rm -f conftest.err conftest.$ac_ext 2970 2971done 2972# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2973rm -f conftest.err conftest.$ac_ext 2974if $ac_preproc_ok; then 2975 break 2976fi 2977 2978 done 2979 ac_cv_prog_CPP=$CPP 2980 2981fi 2982 CPP=$ac_cv_prog_CPP 2983else 2984 ac_cv_prog_CPP=$CPP 2985fi 2986echo "$as_me:$LINENO: result: $CPP" >&5 2987echo "${ECHO_T}$CPP" >&6 2988ac_preproc_ok=false 2989for ac_c_preproc_warn_flag in '' yes 2990do 2991 # Use a header file that comes with gcc, so configuring glibc 2992 # with a fresh cross-compiler works. 2993 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2994 # <limits.h> exists even on freestanding compilers. 2995 # On the NeXT, cc -E runs the code through the compiler's parser, 2996 # not just through cpp. "Syntax error" is here to catch this case. 2997 cat >conftest.$ac_ext <<_ACEOF 2998#line $LINENO "configure" 2999/* confdefs.h. */ 3000_ACEOF 3001cat confdefs.h >>conftest.$ac_ext 3002cat >>conftest.$ac_ext <<_ACEOF 3003/* end confdefs.h. */ 3004#ifdef __STDC__ 3005# include <limits.h> 3006#else 3007# include <assert.h> 3008#endif 3009 Syntax error 3010_ACEOF 3011if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3013 ac_status=$? 3014 grep -v '^ *+' conftest.er1 >conftest.err 3015 rm -f conftest.er1 3016 cat conftest.err >&5 3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3018 (exit $ac_status); } >/dev/null; then 3019 if test -s conftest.err; then 3020 ac_cpp_err=$ac_c_preproc_warn_flag 3021 else 3022 ac_cpp_err= 3023 fi 3024else 3025 ac_cpp_err=yes 3026fi 3027if test -z "$ac_cpp_err"; then 3028 : 3029else 3030 echo "$as_me: failed program was:" >&5 3031sed 's/^/| /' conftest.$ac_ext >&5 3032 3033 # Broken: fails on valid input. 3034continue 3035fi 3036rm -f conftest.err conftest.$ac_ext 3037 3038 # OK, works on sane cases. Now check whether non-existent headers 3039 # can be detected and how. 3040 cat >conftest.$ac_ext <<_ACEOF 3041#line $LINENO "configure" 3042/* confdefs.h. */ 3043_ACEOF 3044cat confdefs.h >>conftest.$ac_ext 3045cat >>conftest.$ac_ext <<_ACEOF 3046/* end confdefs.h. */ 3047#include <ac_nonexistent.h> 3048_ACEOF 3049if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3050 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3051 ac_status=$? 3052 grep -v '^ *+' conftest.er1 >conftest.err 3053 rm -f conftest.er1 3054 cat conftest.err >&5 3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3056 (exit $ac_status); } >/dev/null; then 3057 if test -s conftest.err; then 3058 ac_cpp_err=$ac_c_preproc_warn_flag 3059 else 3060 ac_cpp_err= 3061 fi 3062else 3063 ac_cpp_err=yes 3064fi 3065if test -z "$ac_cpp_err"; then 3066 # Broken: success on invalid input. 3067continue 3068else 3069 echo "$as_me: failed program was:" >&5 3070sed 's/^/| /' conftest.$ac_ext >&5 3071 3072 # Passes both tests. 3073ac_preproc_ok=: 3074break 3075fi 3076rm -f conftest.err conftest.$ac_ext 3077 3078done 3079# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3080rm -f conftest.err conftest.$ac_ext 3081if $ac_preproc_ok; then 3082 : 3083else 3084 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3085See \`config.log' for more details." >&5 3086echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3087See \`config.log' for more details." >&2;} 3088 { (exit 1); exit 1; }; } 3089fi 3090 3091ac_ext=c 3092ac_cpp='$CPP $CPPFLAGS' 3093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3095ac_compiler_gnu=$ac_cv_c_compiler_gnu 3096 3097 3098echo "$as_me:$LINENO: checking for egrep" >&5 3099echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3100if test "${ac_cv_prog_egrep+set}" = set; then 3101 echo $ECHO_N "(cached) $ECHO_C" >&6 3102else 3103 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3104 then ac_cv_prog_egrep='grep -E' 3105 else ac_cv_prog_egrep='egrep' 3106 fi 3107fi 3108echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3109echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3110 EGREP=$ac_cv_prog_egrep 3111 3112 3113echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3114echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3115if test "${ac_cv_header_stdc+set}" = set; then 3116 echo $ECHO_N "(cached) $ECHO_C" >&6 3117else 3118 cat >conftest.$ac_ext <<_ACEOF 3119#line $LINENO "configure" 3120/* confdefs.h. */ 3121_ACEOF 3122cat confdefs.h >>conftest.$ac_ext 3123cat >>conftest.$ac_ext <<_ACEOF 3124/* end confdefs.h. */ 3125#include <stdlib.h> 3126#include <stdarg.h> 3127#include <string.h> 3128#include <float.h> 3129 3130int 3131main () 3132{ 3133 3134 ; 3135 return 0; 3136} 3137_ACEOF 3138rm -f conftest.$ac_objext 3139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3140 (eval $ac_compile) 2>&5 3141 ac_status=$? 3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3143 (exit $ac_status); } && 3144 { ac_try='test -s conftest.$ac_objext' 3145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3146 (eval $ac_try) 2>&5 3147 ac_status=$? 3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3149 (exit $ac_status); }; }; then 3150 ac_cv_header_stdc=yes 3151else 3152 echo "$as_me: failed program was:" >&5 3153sed 's/^/| /' conftest.$ac_ext >&5 3154 3155ac_cv_header_stdc=no 3156fi 3157rm -f conftest.$ac_objext conftest.$ac_ext 3158 3159if test $ac_cv_header_stdc = yes; then 3160 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3161 cat >conftest.$ac_ext <<_ACEOF 3162#line $LINENO "configure" 3163/* confdefs.h. */ 3164_ACEOF 3165cat confdefs.h >>conftest.$ac_ext 3166cat >>conftest.$ac_ext <<_ACEOF 3167/* end confdefs.h. */ 3168#include <string.h> 3169 3170_ACEOF 3171if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3172 $EGREP "memchr" >/dev/null 2>&1; then 3173 : 3174else 3175 ac_cv_header_stdc=no 3176fi 3177rm -f conftest* 3178 3179fi 3180 3181if test $ac_cv_header_stdc = yes; then 3182 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3183 cat >conftest.$ac_ext <<_ACEOF 3184#line $LINENO "configure" 3185/* confdefs.h. */ 3186_ACEOF 3187cat confdefs.h >>conftest.$ac_ext 3188cat >>conftest.$ac_ext <<_ACEOF 3189/* end confdefs.h. */ 3190#include <stdlib.h> 3191 3192_ACEOF 3193if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3194 $EGREP "free" >/dev/null 2>&1; then 3195 : 3196else 3197 ac_cv_header_stdc=no 3198fi 3199rm -f conftest* 3200 3201fi 3202 3203if test $ac_cv_header_stdc = yes; then 3204 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3205 if test "$cross_compiling" = yes; then 3206 : 3207else 3208 cat >conftest.$ac_ext <<_ACEOF 3209#line $LINENO "configure" 3210/* confdefs.h. */ 3211_ACEOF 3212cat confdefs.h >>conftest.$ac_ext 3213cat >>conftest.$ac_ext <<_ACEOF 3214/* end confdefs.h. */ 3215#include <ctype.h> 3216#if ((' ' & 0x0FF) == 0x020) 3217# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3218# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3219#else 3220# define ISLOWER(c) \ 3221 (('a' <= (c) && (c) <= 'i') \ 3222 || ('j' <= (c) && (c) <= 'r') \ 3223 || ('s' <= (c) && (c) <= 'z')) 3224# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3225#endif 3226 3227#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3228int 3229main () 3230{ 3231 int i; 3232 for (i = 0; i < 256; i++) 3233 if (XOR (islower (i), ISLOWER (i)) 3234 || toupper (i) != TOUPPER (i)) 3235 exit(2); 3236 exit (0); 3237} 3238_ACEOF 3239rm -f conftest$ac_exeext 3240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3241 (eval $ac_link) 2>&5 3242 ac_status=$? 3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3244 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3246 (eval $ac_try) 2>&5 3247 ac_status=$? 3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3249 (exit $ac_status); }; }; then 3250 : 3251else 3252 echo "$as_me: program exited with status $ac_status" >&5 3253echo "$as_me: failed program was:" >&5 3254sed 's/^/| /' conftest.$ac_ext >&5 3255 3256( exit $ac_status ) 3257ac_cv_header_stdc=no 3258fi 3259rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3260fi 3261fi 3262fi 3263echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3264echo "${ECHO_T}$ac_cv_header_stdc" >&6 3265if test $ac_cv_header_stdc = yes; then 3266 3267cat >>confdefs.h <<\_ACEOF 3268#define STDC_HEADERS 1 3269_ACEOF 3270 3271fi 3272 3273# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3284 inttypes.h stdint.h unistd.h 3285do 3286as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3287echo "$as_me:$LINENO: checking for $ac_header" >&5 3288echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3289if eval "test \"\${$as_ac_Header+set}\" = set"; then 3290 echo $ECHO_N "(cached) $ECHO_C" >&6 3291else 3292 cat >conftest.$ac_ext <<_ACEOF 3293#line $LINENO "configure" 3294/* confdefs.h. */ 3295_ACEOF 3296cat confdefs.h >>conftest.$ac_ext 3297cat >>conftest.$ac_ext <<_ACEOF 3298/* end confdefs.h. */ 3299$ac_includes_default 3300 3301#include <$ac_header> 3302_ACEOF 3303rm -f conftest.$ac_objext 3304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3305 (eval $ac_compile) 2>&5 3306 ac_status=$? 3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3308 (exit $ac_status); } && 3309 { ac_try='test -s conftest.$ac_objext' 3310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3311 (eval $ac_try) 2>&5 3312 ac_status=$? 3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3314 (exit $ac_status); }; }; then 3315 eval "$as_ac_Header=yes" 3316else 3317 echo "$as_me: failed program was:" >&5 3318sed 's/^/| /' conftest.$ac_ext >&5 3319 3320eval "$as_ac_Header=no" 3321fi 3322rm -f conftest.$ac_objext conftest.$ac_ext 3323fi 3324echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3325echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3326if test `eval echo '${'$as_ac_Header'}'` = yes; then 3327 cat >>confdefs.h <<_ACEOF 3328#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3329_ACEOF 3330 3331fi 3332 3333done 3334 3335 3336 3337 3338 3339for ac_header in sys/ioccom.h sys/sockio.h limits.h 3340do 3341as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3342if eval "test \"\${$as_ac_Header+set}\" = set"; then 3343 echo "$as_me:$LINENO: checking for $ac_header" >&5 3344echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3345if eval "test \"\${$as_ac_Header+set}\" = set"; then 3346 echo $ECHO_N "(cached) $ECHO_C" >&6 3347fi 3348echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3349echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3350else 3351 # Is the header compilable? 3352echo "$as_me:$LINENO: checking $ac_header usability" >&5 3353echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3354cat >conftest.$ac_ext <<_ACEOF 3355#line $LINENO "configure" 3356/* confdefs.h. */ 3357_ACEOF 3358cat confdefs.h >>conftest.$ac_ext 3359cat >>conftest.$ac_ext <<_ACEOF 3360/* end confdefs.h. */ 3361$ac_includes_default 3362#include <$ac_header> 3363_ACEOF 3364rm -f conftest.$ac_objext 3365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3366 (eval $ac_compile) 2>&5 3367 ac_status=$? 3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3369 (exit $ac_status); } && 3370 { ac_try='test -s conftest.$ac_objext' 3371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3372 (eval $ac_try) 2>&5 3373 ac_status=$? 3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3375 (exit $ac_status); }; }; then 3376 ac_header_compiler=yes 3377else 3378 echo "$as_me: failed program was:" >&5 3379sed 's/^/| /' conftest.$ac_ext >&5 3380 3381ac_header_compiler=no 3382fi 3383rm -f conftest.$ac_objext conftest.$ac_ext 3384echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3385echo "${ECHO_T}$ac_header_compiler" >&6 3386 3387# Is the header present? 3388echo "$as_me:$LINENO: checking $ac_header presence" >&5 3389echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 3390cat >conftest.$ac_ext <<_ACEOF 3391#line $LINENO "configure" 3392/* confdefs.h. */ 3393_ACEOF 3394cat confdefs.h >>conftest.$ac_ext 3395cat >>conftest.$ac_ext <<_ACEOF 3396/* end confdefs.h. */ 3397#include <$ac_header> 3398_ACEOF 3399if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3400 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3401 ac_status=$? 3402 grep -v '^ *+' conftest.er1 >conftest.err 3403 rm -f conftest.er1 3404 cat conftest.err >&5 3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3406 (exit $ac_status); } >/dev/null; then 3407 if test -s conftest.err; then 3408 ac_cpp_err=$ac_c_preproc_warn_flag 3409 else 3410 ac_cpp_err= 3411 fi 3412else 3413 ac_cpp_err=yes 3414fi 3415if test -z "$ac_cpp_err"; then 3416 ac_header_preproc=yes 3417else 3418 echo "$as_me: failed program was:" >&5 3419sed 's/^/| /' conftest.$ac_ext >&5 3420 3421 ac_header_preproc=no 3422fi 3423rm -f conftest.err conftest.$ac_ext 3424echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3425echo "${ECHO_T}$ac_header_preproc" >&6 3426 3427# So? What about this header? 3428case $ac_header_compiler:$ac_header_preproc in 3429 yes:no ) 3430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3431echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3433echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3434 ( 3435 cat <<\_ASBOX 3436## ------------------------------------ ## 3437## Report this to bug-autoconf@gnu.org. ## 3438## ------------------------------------ ## 3439_ASBOX 3440 ) | 3441 sed "s/^/$as_me: WARNING: /" >&2 3442 ;; 3443 no:yes ) 3444 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3445echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3446 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3447echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3449echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3450 ( 3451 cat <<\_ASBOX 3452## ------------------------------------ ## 3453## Report this to bug-autoconf@gnu.org. ## 3454## ------------------------------------ ## 3455_ASBOX 3456 ) | 3457 sed "s/^/$as_me: WARNING: /" >&2 3458 ;; 3459esac 3460echo "$as_me:$LINENO: checking for $ac_header" >&5 3461echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3462if eval "test \"\${$as_ac_Header+set}\" = set"; then 3463 echo $ECHO_N "(cached) $ECHO_C" >&6 3464else 3465 eval "$as_ac_Header=$ac_header_preproc" 3466fi 3467echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3468echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3469 3470fi 3471if test `eval echo '${'$as_ac_Header'}'` = yes; then 3472 cat >>confdefs.h <<_ACEOF 3473#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3474_ACEOF 3475 3476fi 3477 3478done 3479 3480 3481for ac_header in netinet/if_ether.h 3482do 3483as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3484echo "$as_me:$LINENO: checking for $ac_header" >&5 3485echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3486if eval "test \"\${$as_ac_Header+set}\" = set"; then 3487 echo $ECHO_N "(cached) $ECHO_C" >&6 3488else 3489 cat >conftest.$ac_ext <<_ACEOF 3490#line $LINENO "configure" 3491/* confdefs.h. */ 3492_ACEOF 3493cat confdefs.h >>conftest.$ac_ext 3494cat >>conftest.$ac_ext <<_ACEOF 3495/* end confdefs.h. */ 3496#include <sys/types.h> 3497#include <sys/socket.h> 3498 3499#include <$ac_header> 3500_ACEOF 3501rm -f conftest.$ac_objext 3502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3503 (eval $ac_compile) 2>&5 3504 ac_status=$? 3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3506 (exit $ac_status); } && 3507 { ac_try='test -s conftest.$ac_objext' 3508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3509 (eval $ac_try) 2>&5 3510 ac_status=$? 3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3512 (exit $ac_status); }; }; then 3513 eval "$as_ac_Header=yes" 3514else 3515 echo "$as_me: failed program was:" >&5 3516sed 's/^/| /' conftest.$ac_ext >&5 3517 3518eval "$as_ac_Header=no" 3519fi 3520rm -f conftest.$ac_objext conftest.$ac_ext 3521fi 3522echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3523echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3524if test `eval echo '${'$as_ac_Header'}'` = yes; then 3525 cat >>confdefs.h <<_ACEOF 3526#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3527_ACEOF 3528 3529fi 3530 3531done 3532 3533if test "$ac_cv_header_netinet_if_ether_h" != yes; then 3534 # 3535 # The simple test didn't work. 3536 # Do we need to include <net/if.h> first? 3537 # Unset ac_cv_header_netinet_if_ether_h so we don't 3538 # treat the previous failure as a cached value and 3539 # suppress the next test. 3540 # 3541 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5 3542echo "$as_me: Rechecking with some additional includes" >&6;} 3543 unset ac_cv_header_netinet_if_ether_h 3544 3545for ac_header in netinet/if_ether.h 3546do 3547as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3548echo "$as_me:$LINENO: checking for $ac_header" >&5 3549echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3550if eval "test \"\${$as_ac_Header+set}\" = set"; then 3551 echo $ECHO_N "(cached) $ECHO_C" >&6 3552else 3553 cat >conftest.$ac_ext <<_ACEOF 3554#line $LINENO "configure" 3555/* confdefs.h. */ 3556_ACEOF 3557cat confdefs.h >>conftest.$ac_ext 3558cat >>conftest.$ac_ext <<_ACEOF 3559/* end confdefs.h. */ 3560#include <sys/types.h> 3561#include <sys/socket.h> 3562#include <netinet/in.h> 3563struct mbuf; 3564struct rtentry; 3565#include <net/if.h> 3566 3567#include <$ac_header> 3568_ACEOF 3569rm -f conftest.$ac_objext 3570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3571 (eval $ac_compile) 2>&5 3572 ac_status=$? 3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3574 (exit $ac_status); } && 3575 { ac_try='test -s conftest.$ac_objext' 3576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3577 (eval $ac_try) 2>&5 3578 ac_status=$? 3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3580 (exit $ac_status); }; }; then 3581 eval "$as_ac_Header=yes" 3582else 3583 echo "$as_me: failed program was:" >&5 3584sed 's/^/| /' conftest.$ac_ext >&5 3585 3586eval "$as_ac_Header=no" 3587fi 3588rm -f conftest.$ac_objext conftest.$ac_ext 3589fi 3590echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3591echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3592if test `eval echo '${'$as_ac_Header'}'` = yes; then 3593 cat >>confdefs.h <<_ACEOF 3594#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3595_ACEOF 3596 3597fi 3598 3599done 3600 3601fi 3602 3603if test "$GCC" = yes ; then 3604 echo "$as_me:$LINENO: checking for ANSI ioctl definitions" >&5 3605echo $ECHO_N "checking for ANSI ioctl definitions... $ECHO_C" >&6 3606 if test "${ac_cv_lbl_gcc_fixincludes+set}" = set; then 3607 echo $ECHO_N "(cached) $ECHO_C" >&6 3608else 3609 cat >conftest.$ac_ext <<_ACEOF 3610#line $LINENO "configure" 3611/* confdefs.h. */ 3612_ACEOF 3613cat confdefs.h >>conftest.$ac_ext 3614cat >>conftest.$ac_ext <<_ACEOF 3615/* end confdefs.h. */ 3616/* 3617 * This generates a "duplicate case value" when fixincludes 3618 * has not be run. 3619 */ 3620# include <sys/types.h> 3621# include <sys/time.h> 3622# include <sys/ioctl.h> 3623# ifdef HAVE_SYS_IOCCOM_H 3624# include <sys/ioccom.h> 3625# endif 3626int 3627main () 3628{ 3629switch (0) { 3630 case _IO('A', 1):; 3631 case _IO('B', 1):; 3632 } 3633 ; 3634 return 0; 3635} 3636_ACEOF 3637rm -f conftest.$ac_objext 3638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3639 (eval $ac_compile) 2>&5 3640 ac_status=$? 3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3642 (exit $ac_status); } && 3643 { ac_try='test -s conftest.$ac_objext' 3644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3645 (eval $ac_try) 2>&5 3646 ac_status=$? 3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3648 (exit $ac_status); }; }; then 3649 ac_cv_lbl_gcc_fixincludes=yes 3650else 3651 echo "$as_me: failed program was:" >&5 3652sed 's/^/| /' conftest.$ac_ext >&5 3653 3654ac_cv_lbl_gcc_fixincludes=no 3655fi 3656rm -f conftest.$ac_objext conftest.$ac_ext 3657fi 3658 3659 echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_fixincludes" >&5 3660echo "${ECHO_T}$ac_cv_lbl_gcc_fixincludes" >&6 3661 if test $ac_cv_lbl_gcc_fixincludes = no ; then 3662 # Don't cache failure 3663 unset ac_cv_lbl_gcc_fixincludes 3664 { { echo "$as_me:$LINENO: error: see the INSTALL for more info" >&5 3665echo "$as_me: error: see the INSTALL for more info" >&2;} 3666 { (exit 1); exit 1; }; } 3667 fi 3668 fi 3669 3670 3671 3672for ac_func in strerror strlcpy 3673do 3674as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 3675echo "$as_me:$LINENO: checking for $ac_func" >&5 3676echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 3677if eval "test \"\${$as_ac_var+set}\" = set"; then 3678 echo $ECHO_N "(cached) $ECHO_C" >&6 3679else 3680 cat >conftest.$ac_ext <<_ACEOF 3681#line $LINENO "configure" 3682/* confdefs.h. */ 3683_ACEOF 3684cat confdefs.h >>conftest.$ac_ext 3685cat >>conftest.$ac_ext <<_ACEOF 3686/* end confdefs.h. */ 3687/* System header to define __stub macros and hopefully few prototypes, 3688 which can conflict with char $ac_func (); below. 3689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3690 <limits.h> exists even on freestanding compilers. */ 3691#ifdef __STDC__ 3692# include <limits.h> 3693#else 3694# include <assert.h> 3695#endif 3696/* Override any gcc2 internal prototype to avoid an error. */ 3697#ifdef __cplusplus 3698extern "C" 3699{ 3700#endif 3701/* We use char because int might match the return type of a gcc2 3702 builtin and then its argument prototype would still apply. */ 3703char $ac_func (); 3704/* The GNU C library defines this for functions which it implements 3705 to always fail with ENOSYS. Some functions are actually named 3706 something starting with __ and the normal name is an alias. */ 3707#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3708choke me 3709#else 3710char (*f) () = $ac_func; 3711#endif 3712#ifdef __cplusplus 3713} 3714#endif 3715 3716int 3717main () 3718{ 3719return f != $ac_func; 3720 ; 3721 return 0; 3722} 3723_ACEOF 3724rm -f conftest.$ac_objext conftest$ac_exeext 3725if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3726 (eval $ac_link) 2>&5 3727 ac_status=$? 3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3729 (exit $ac_status); } && 3730 { ac_try='test -s conftest$ac_exeext' 3731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3732 (eval $ac_try) 2>&5 3733 ac_status=$? 3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3735 (exit $ac_status); }; }; then 3736 eval "$as_ac_var=yes" 3737else 3738 echo "$as_me: failed program was:" >&5 3739sed 's/^/| /' conftest.$ac_ext >&5 3740 3741eval "$as_ac_var=no" 3742fi 3743rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3744fi 3745echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 3746echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 3747if test `eval echo '${'$as_ac_var'}'` = yes; then 3748 cat >>confdefs.h <<_ACEOF 3749#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 3750_ACEOF 3751 3752fi 3753done 3754 3755 3756needsnprintf=no 3757 3758 3759for ac_func in vsnprintf snprintf 3760do 3761as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 3762echo "$as_me:$LINENO: checking for $ac_func" >&5 3763echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 3764if eval "test \"\${$as_ac_var+set}\" = set"; then 3765 echo $ECHO_N "(cached) $ECHO_C" >&6 3766else 3767 cat >conftest.$ac_ext <<_ACEOF 3768#line $LINENO "configure" 3769/* confdefs.h. */ 3770_ACEOF 3771cat confdefs.h >>conftest.$ac_ext 3772cat >>conftest.$ac_ext <<_ACEOF 3773/* end confdefs.h. */ 3774/* System header to define __stub macros and hopefully few prototypes, 3775 which can conflict with char $ac_func (); below. 3776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3777 <limits.h> exists even on freestanding compilers. */ 3778#ifdef __STDC__ 3779# include <limits.h> 3780#else 3781# include <assert.h> 3782#endif 3783/* Override any gcc2 internal prototype to avoid an error. */ 3784#ifdef __cplusplus 3785extern "C" 3786{ 3787#endif 3788/* We use char because int might match the return type of a gcc2 3789 builtin and then its argument prototype would still apply. */ 3790char $ac_func (); 3791/* The GNU C library defines this for functions which it implements 3792 to always fail with ENOSYS. Some functions are actually named 3793 something starting with __ and the normal name is an alias. */ 3794#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3795choke me 3796#else 3797char (*f) () = $ac_func; 3798#endif 3799#ifdef __cplusplus 3800} 3801#endif 3802 3803int 3804main () 3805{ 3806return f != $ac_func; 3807 ; 3808 return 0; 3809} 3810_ACEOF 3811rm -f conftest.$ac_objext conftest$ac_exeext 3812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3813 (eval $ac_link) 2>&5 3814 ac_status=$? 3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3816 (exit $ac_status); } && 3817 { ac_try='test -s conftest$ac_exeext' 3818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3819 (eval $ac_try) 2>&5 3820 ac_status=$? 3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3822 (exit $ac_status); }; }; then 3823 eval "$as_ac_var=yes" 3824else 3825 echo "$as_me: failed program was:" >&5 3826sed 's/^/| /' conftest.$ac_ext >&5 3827 3828eval "$as_ac_var=no" 3829fi 3830rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3831fi 3832echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 3833echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 3834if test `eval echo '${'$as_ac_var'}'` = yes; then 3835 cat >>confdefs.h <<_ACEOF 3836#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 3837_ACEOF 3838 3839else 3840 needsnprintf=yes 3841fi 3842done 3843 3844if test $needsnprintf = yes; then 3845 LIBOBJS="$LIBOBJS snprintf.$ac_objext" 3846fi 3847 3848# 3849# Do this before checking for ether_hostton(), as it's a 3850# "gethostbyname() -ish function". 3851# 3852 3853 # Most operating systems have gethostbyname() in the default searched 3854 # libraries (i.e. libc): 3855 # Some OSes (eg. Solaris) place it in libnsl 3856 # Some strange OSes (SINIX) have it in libsocket: 3857 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5 3858echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6 3859if test "${ac_cv_search_gethostbyname+set}" = set; then 3860 echo $ECHO_N "(cached) $ECHO_C" >&6 3861else 3862 ac_func_search_save_LIBS=$LIBS 3863ac_cv_search_gethostbyname=no 3864cat >conftest.$ac_ext <<_ACEOF 3865#line $LINENO "configure" 3866/* confdefs.h. */ 3867_ACEOF 3868cat confdefs.h >>conftest.$ac_ext 3869cat >>conftest.$ac_ext <<_ACEOF 3870/* end confdefs.h. */ 3871 3872/* Override any gcc2 internal prototype to avoid an error. */ 3873#ifdef __cplusplus 3874extern "C" 3875#endif 3876/* We use char because int might match the return type of a gcc2 3877 builtin and then its argument prototype would still apply. */ 3878char gethostbyname (); 3879int 3880main () 3881{ 3882gethostbyname (); 3883 ; 3884 return 0; 3885} 3886_ACEOF 3887rm -f conftest.$ac_objext 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); } && 3893 { ac_try='test -s conftest$ac_exeext' 3894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3895 (eval $ac_try) 2>&5 3896 ac_status=$? 3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3898 (exit $ac_status); }; }; then 3899 ac_cv_search_gethostbyname="none required" 3900else 3901 echo "$as_me: failed program was:" >&5 3902sed 's/^/| /' conftest.$ac_ext >&5 3903 3904fi 3905rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3906if test "$ac_cv_search_gethostbyname" = no; then 3907 for ac_lib in nsl socket resolv; do 3908 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3909 cat >conftest.$ac_ext <<_ACEOF 3910#line $LINENO "configure" 3911/* confdefs.h. */ 3912_ACEOF 3913cat confdefs.h >>conftest.$ac_ext 3914cat >>conftest.$ac_ext <<_ACEOF 3915/* end confdefs.h. */ 3916 3917/* Override any gcc2 internal prototype to avoid an error. */ 3918#ifdef __cplusplus 3919extern "C" 3920#endif 3921/* We use char because int might match the return type of a gcc2 3922 builtin and then its argument prototype would still apply. */ 3923char gethostbyname (); 3924int 3925main () 3926{ 3927gethostbyname (); 3928 ; 3929 return 0; 3930} 3931_ACEOF 3932rm -f conftest.$ac_objext conftest$ac_exeext 3933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3934 (eval $ac_link) 2>&5 3935 ac_status=$? 3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3937 (exit $ac_status); } && 3938 { ac_try='test -s conftest$ac_exeext' 3939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3940 (eval $ac_try) 2>&5 3941 ac_status=$? 3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3943 (exit $ac_status); }; }; then 3944 ac_cv_search_gethostbyname="-l$ac_lib" 3945break 3946else 3947 echo "$as_me: failed program was:" >&5 3948sed 's/^/| /' conftest.$ac_ext >&5 3949 3950fi 3951rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3952 done 3953fi 3954LIBS=$ac_func_search_save_LIBS 3955fi 3956echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5 3957echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6 3958if test "$ac_cv_search_gethostbyname" != no; then 3959 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS" 3960 3961fi 3962 3963 # Unfortunately libsocket sometimes depends on libnsl and 3964 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this. 3965 if test "$ac_cv_search_gethostbyname" = "no" 3966 then 3967 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5 3968echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6 3969if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then 3970 echo $ECHO_N "(cached) $ECHO_C" >&6 3971else 3972 ac_check_lib_save_LIBS=$LIBS 3973LIBS="-lsocket -lnsl $LIBS" 3974cat >conftest.$ac_ext <<_ACEOF 3975#line $LINENO "configure" 3976/* confdefs.h. */ 3977_ACEOF 3978cat confdefs.h >>conftest.$ac_ext 3979cat >>conftest.$ac_ext <<_ACEOF 3980/* end confdefs.h. */ 3981 3982/* Override any gcc2 internal prototype to avoid an error. */ 3983#ifdef __cplusplus 3984extern "C" 3985#endif 3986/* We use char because int might match the return type of a gcc2 3987 builtin and then its argument prototype would still apply. */ 3988char gethostbyname (); 3989int 3990main () 3991{ 3992gethostbyname (); 3993 ; 3994 return 0; 3995} 3996_ACEOF 3997rm -f conftest.$ac_objext conftest$ac_exeext 3998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3999 (eval $ac_link) 2>&5 4000 ac_status=$? 4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4002 (exit $ac_status); } && 4003 { ac_try='test -s conftest$ac_exeext' 4004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4005 (eval $ac_try) 2>&5 4006 ac_status=$? 4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4008 (exit $ac_status); }; }; then 4009 ac_cv_lib_socket_gethostbyname=yes 4010else 4011 echo "$as_me: failed program was:" >&5 4012sed 's/^/| /' conftest.$ac_ext >&5 4013 4014ac_cv_lib_socket_gethostbyname=no 4015fi 4016rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4017LIBS=$ac_check_lib_save_LIBS 4018fi 4019echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5 4020echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6 4021if test $ac_cv_lib_socket_gethostbyname = yes; then 4022 LIBS="-lsocket -lnsl $LIBS" 4023fi 4024 4025 fi 4026 echo "$as_me:$LINENO: checking for library containing socket" >&5 4027echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6 4028if test "${ac_cv_search_socket+set}" = set; then 4029 echo $ECHO_N "(cached) $ECHO_C" >&6 4030else 4031 ac_func_search_save_LIBS=$LIBS 4032ac_cv_search_socket=no 4033cat >conftest.$ac_ext <<_ACEOF 4034#line $LINENO "configure" 4035/* confdefs.h. */ 4036_ACEOF 4037cat confdefs.h >>conftest.$ac_ext 4038cat >>conftest.$ac_ext <<_ACEOF 4039/* end confdefs.h. */ 4040 4041/* Override any gcc2 internal prototype to avoid an error. */ 4042#ifdef __cplusplus 4043extern "C" 4044#endif 4045/* We use char because int might match the return type of a gcc2 4046 builtin and then its argument prototype would still apply. */ 4047char socket (); 4048int 4049main () 4050{ 4051socket (); 4052 ; 4053 return 0; 4054} 4055_ACEOF 4056rm -f conftest.$ac_objext conftest$ac_exeext 4057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4058 (eval $ac_link) 2>&5 4059 ac_status=$? 4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4061 (exit $ac_status); } && 4062 { ac_try='test -s conftest$ac_exeext' 4063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4064 (eval $ac_try) 2>&5 4065 ac_status=$? 4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4067 (exit $ac_status); }; }; then 4068 ac_cv_search_socket="none required" 4069else 4070 echo "$as_me: failed program was:" >&5 4071sed 's/^/| /' conftest.$ac_ext >&5 4072 4073fi 4074rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4075if test "$ac_cv_search_socket" = no; then 4076 for ac_lib in socket; do 4077 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4078 cat >conftest.$ac_ext <<_ACEOF 4079#line $LINENO "configure" 4080/* confdefs.h. */ 4081_ACEOF 4082cat confdefs.h >>conftest.$ac_ext 4083cat >>conftest.$ac_ext <<_ACEOF 4084/* end confdefs.h. */ 4085 4086/* Override any gcc2 internal prototype to avoid an error. */ 4087#ifdef __cplusplus 4088extern "C" 4089#endif 4090/* We use char because int might match the return type of a gcc2 4091 builtin and then its argument prototype would still apply. */ 4092char socket (); 4093int 4094main () 4095{ 4096socket (); 4097 ; 4098 return 0; 4099} 4100_ACEOF 4101rm -f conftest.$ac_objext conftest$ac_exeext 4102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4103 (eval $ac_link) 2>&5 4104 ac_status=$? 4105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4106 (exit $ac_status); } && 4107 { ac_try='test -s conftest$ac_exeext' 4108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4109 (eval $ac_try) 2>&5 4110 ac_status=$? 4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4112 (exit $ac_status); }; }; then 4113 ac_cv_search_socket="-l$ac_lib" 4114break 4115else 4116 echo "$as_me: failed program was:" >&5 4117sed 's/^/| /' conftest.$ac_ext >&5 4118 4119fi 4120rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4121 done 4122fi 4123LIBS=$ac_func_search_save_LIBS 4124fi 4125echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5 4126echo "${ECHO_T}$ac_cv_search_socket" >&6 4127if test "$ac_cv_search_socket" != no; then 4128 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS" 4129 4130else 4131 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 4132echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 4133if test "${ac_cv_lib_socket_socket+set}" = set; then 4134 echo $ECHO_N "(cached) $ECHO_C" >&6 4135else 4136 ac_check_lib_save_LIBS=$LIBS 4137LIBS="-lsocket -lnsl $LIBS" 4138cat >conftest.$ac_ext <<_ACEOF 4139#line $LINENO "configure" 4140/* confdefs.h. */ 4141_ACEOF 4142cat confdefs.h >>conftest.$ac_ext 4143cat >>conftest.$ac_ext <<_ACEOF 4144/* end confdefs.h. */ 4145 4146/* Override any gcc2 internal prototype to avoid an error. */ 4147#ifdef __cplusplus 4148extern "C" 4149#endif 4150/* We use char because int might match the return type of a gcc2 4151 builtin and then its argument prototype would still apply. */ 4152char socket (); 4153int 4154main () 4155{ 4156socket (); 4157 ; 4158 return 0; 4159} 4160_ACEOF 4161rm -f conftest.$ac_objext conftest$ac_exeext 4162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4163 (eval $ac_link) 2>&5 4164 ac_status=$? 4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4166 (exit $ac_status); } && 4167 { ac_try='test -s conftest$ac_exeext' 4168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4169 (eval $ac_try) 2>&5 4170 ac_status=$? 4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4172 (exit $ac_status); }; }; then 4173 ac_cv_lib_socket_socket=yes 4174else 4175 echo "$as_me: failed program was:" >&5 4176sed 's/^/| /' conftest.$ac_ext >&5 4177 4178ac_cv_lib_socket_socket=no 4179fi 4180rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4181LIBS=$ac_check_lib_save_LIBS 4182fi 4183echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 4184echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 4185if test $ac_cv_lib_socket_socket = yes; then 4186 LIBS="-lsocket -lnsl $LIBS" 4187fi 4188 4189fi 4190 4191 # DLPI needs putmsg under HPUX so test for -lstr while we're at it 4192 echo "$as_me:$LINENO: checking for library containing putmsg" >&5 4193echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6 4194if test "${ac_cv_search_putmsg+set}" = set; then 4195 echo $ECHO_N "(cached) $ECHO_C" >&6 4196else 4197 ac_func_search_save_LIBS=$LIBS 4198ac_cv_search_putmsg=no 4199cat >conftest.$ac_ext <<_ACEOF 4200#line $LINENO "configure" 4201/* confdefs.h. */ 4202_ACEOF 4203cat confdefs.h >>conftest.$ac_ext 4204cat >>conftest.$ac_ext <<_ACEOF 4205/* end confdefs.h. */ 4206 4207/* Override any gcc2 internal prototype to avoid an error. */ 4208#ifdef __cplusplus 4209extern "C" 4210#endif 4211/* We use char because int might match the return type of a gcc2 4212 builtin and then its argument prototype would still apply. */ 4213char putmsg (); 4214int 4215main () 4216{ 4217putmsg (); 4218 ; 4219 return 0; 4220} 4221_ACEOF 4222rm -f conftest.$ac_objext conftest$ac_exeext 4223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4224 (eval $ac_link) 2>&5 4225 ac_status=$? 4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4227 (exit $ac_status); } && 4228 { ac_try='test -s conftest$ac_exeext' 4229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4230 (eval $ac_try) 2>&5 4231 ac_status=$? 4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4233 (exit $ac_status); }; }; then 4234 ac_cv_search_putmsg="none required" 4235else 4236 echo "$as_me: failed program was:" >&5 4237sed 's/^/| /' conftest.$ac_ext >&5 4238 4239fi 4240rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4241if test "$ac_cv_search_putmsg" = no; then 4242 for ac_lib in str; do 4243 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4244 cat >conftest.$ac_ext <<_ACEOF 4245#line $LINENO "configure" 4246/* confdefs.h. */ 4247_ACEOF 4248cat confdefs.h >>conftest.$ac_ext 4249cat >>conftest.$ac_ext <<_ACEOF 4250/* end confdefs.h. */ 4251 4252/* Override any gcc2 internal prototype to avoid an error. */ 4253#ifdef __cplusplus 4254extern "C" 4255#endif 4256/* We use char because int might match the return type of a gcc2 4257 builtin and then its argument prototype would still apply. */ 4258char putmsg (); 4259int 4260main () 4261{ 4262putmsg (); 4263 ; 4264 return 0; 4265} 4266_ACEOF 4267rm -f conftest.$ac_objext conftest$ac_exeext 4268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4269 (eval $ac_link) 2>&5 4270 ac_status=$? 4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4272 (exit $ac_status); } && 4273 { ac_try='test -s conftest$ac_exeext' 4274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4275 (eval $ac_try) 2>&5 4276 ac_status=$? 4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4278 (exit $ac_status); }; }; then 4279 ac_cv_search_putmsg="-l$ac_lib" 4280break 4281else 4282 echo "$as_me: failed program was:" >&5 4283sed 's/^/| /' conftest.$ac_ext >&5 4284 4285fi 4286rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4287 done 4288fi 4289LIBS=$ac_func_search_save_LIBS 4290fi 4291echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5 4292echo "${ECHO_T}$ac_cv_search_putmsg" >&6 4293if test "$ac_cv_search_putmsg" != no; then 4294 test "$ac_cv_search_putmsg" = "none required" || LIBS="$ac_cv_search_putmsg $LIBS" 4295 4296fi 4297 4298 4299 4300# 4301# You are in a twisty little maze of UN*Xes, all different. 4302# Some might not have ether_hostton(). 4303# Some might have it, but not declare it in any header file. 4304# Some might have it, but declare it in <netinet/if_ether.h>. 4305# Some might have it, but declare it in <netinet/ether.h> 4306# (And some might have it but document it as something declared in 4307# <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.) 4308# 4309# Before you is a C compiler. 4310# 4311 4312for ac_func in ether_hostton 4313do 4314as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4315echo "$as_me:$LINENO: checking for $ac_func" >&5 4316echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4317if eval "test \"\${$as_ac_var+set}\" = set"; then 4318 echo $ECHO_N "(cached) $ECHO_C" >&6 4319else 4320 cat >conftest.$ac_ext <<_ACEOF 4321#line $LINENO "configure" 4322/* confdefs.h. */ 4323_ACEOF 4324cat confdefs.h >>conftest.$ac_ext 4325cat >>conftest.$ac_ext <<_ACEOF 4326/* end confdefs.h. */ 4327/* System header to define __stub macros and hopefully few prototypes, 4328 which can conflict with char $ac_func (); below. 4329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4330 <limits.h> exists even on freestanding compilers. */ 4331#ifdef __STDC__ 4332# include <limits.h> 4333#else 4334# include <assert.h> 4335#endif 4336/* Override any gcc2 internal prototype to avoid an error. */ 4337#ifdef __cplusplus 4338extern "C" 4339{ 4340#endif 4341/* We use char because int might match the return type of a gcc2 4342 builtin and then its argument prototype would still apply. */ 4343char $ac_func (); 4344/* The GNU C library defines this for functions which it implements 4345 to always fail with ENOSYS. Some functions are actually named 4346 something starting with __ and the normal name is an alias. */ 4347#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4348choke me 4349#else 4350char (*f) () = $ac_func; 4351#endif 4352#ifdef __cplusplus 4353} 4354#endif 4355 4356int 4357main () 4358{ 4359return f != $ac_func; 4360 ; 4361 return 0; 4362} 4363_ACEOF 4364rm -f conftest.$ac_objext conftest$ac_exeext 4365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4366 (eval $ac_link) 2>&5 4367 ac_status=$? 4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4369 (exit $ac_status); } && 4370 { ac_try='test -s conftest$ac_exeext' 4371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4372 (eval $ac_try) 2>&5 4373 ac_status=$? 4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4375 (exit $ac_status); }; }; then 4376 eval "$as_ac_var=yes" 4377else 4378 echo "$as_me: failed program was:" >&5 4379sed 's/^/| /' conftest.$ac_ext >&5 4380 4381eval "$as_ac_var=no" 4382fi 4383rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4384fi 4385echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 4386echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 4387if test `eval echo '${'$as_ac_var'}'` = yes; then 4388 cat >>confdefs.h <<_ACEOF 4389#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 4390_ACEOF 4391 4392fi 4393done 4394 4395if test "$ac_cv_func_ether_hostton" = yes; then 4396 # 4397 # OK, we have ether_hostton(). Do we have <netinet/if_ether.h>? 4398 # 4399 if test "$ac_cv_header_netinet_if_ether_h" = yes; then 4400 # 4401 # Yes. Does it declare ether_hostton()? 4402 # 4403 echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5 4404echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6 4405if test "${ac_cv_have_decl_ether_hostton+set}" = set; then 4406 echo $ECHO_N "(cached) $ECHO_C" >&6 4407else 4408 cat >conftest.$ac_ext <<_ACEOF 4409#line $LINENO "configure" 4410/* confdefs.h. */ 4411_ACEOF 4412cat confdefs.h >>conftest.$ac_ext 4413cat >>conftest.$ac_ext <<_ACEOF 4414/* end confdefs.h. */ 4415 4416#include <sys/types.h> 4417#include <sys/socket.h> 4418#include <netinet/in.h> 4419#include <arpa/inet.h> 4420struct mbuf; 4421struct rtentry; 4422#include <net/if.h> 4423#include <netinet/if_ether.h> 4424 4425 4426int 4427main () 4428{ 4429#ifndef ether_hostton 4430 char *p = (char *) ether_hostton; 4431#endif 4432 4433 ; 4434 return 0; 4435} 4436_ACEOF 4437rm -f conftest.$ac_objext 4438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4439 (eval $ac_compile) 2>&5 4440 ac_status=$? 4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4442 (exit $ac_status); } && 4443 { ac_try='test -s conftest.$ac_objext' 4444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4445 (eval $ac_try) 2>&5 4446 ac_status=$? 4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4448 (exit $ac_status); }; }; then 4449 ac_cv_have_decl_ether_hostton=yes 4450else 4451 echo "$as_me: failed program was:" >&5 4452sed 's/^/| /' conftest.$ac_ext >&5 4453 4454ac_cv_have_decl_ether_hostton=no 4455fi 4456rm -f conftest.$ac_objext conftest.$ac_ext 4457fi 4458echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5 4459echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6 4460if test $ac_cv_have_decl_ether_hostton = yes; then 4461 4462 4463cat >>confdefs.h <<\_ACEOF 4464#define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON 4465_ACEOF 4466 4467 4468fi 4469 4470 fi 4471 # 4472 # Did that succeed? 4473 # 4474 if test "$ac_cv_have_decl_ether_hostton" != yes; then 4475 # 4476 # No, how about <netinet/ether.h>, as on Linux? 4477 # 4478 4479for ac_header in netinet/ether.h 4480do 4481as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4482if eval "test \"\${$as_ac_Header+set}\" = set"; then 4483 echo "$as_me:$LINENO: checking for $ac_header" >&5 4484echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4485if eval "test \"\${$as_ac_Header+set}\" = set"; then 4486 echo $ECHO_N "(cached) $ECHO_C" >&6 4487fi 4488echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4489echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4490else 4491 # Is the header compilable? 4492echo "$as_me:$LINENO: checking $ac_header usability" >&5 4493echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4494cat >conftest.$ac_ext <<_ACEOF 4495#line $LINENO "configure" 4496/* confdefs.h. */ 4497_ACEOF 4498cat confdefs.h >>conftest.$ac_ext 4499cat >>conftest.$ac_ext <<_ACEOF 4500/* end confdefs.h. */ 4501$ac_includes_default 4502#include <$ac_header> 4503_ACEOF 4504rm -f conftest.$ac_objext 4505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4506 (eval $ac_compile) 2>&5 4507 ac_status=$? 4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4509 (exit $ac_status); } && 4510 { ac_try='test -s conftest.$ac_objext' 4511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4512 (eval $ac_try) 2>&5 4513 ac_status=$? 4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4515 (exit $ac_status); }; }; then 4516 ac_header_compiler=yes 4517else 4518 echo "$as_me: failed program was:" >&5 4519sed 's/^/| /' conftest.$ac_ext >&5 4520 4521ac_header_compiler=no 4522fi 4523rm -f conftest.$ac_objext conftest.$ac_ext 4524echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4525echo "${ECHO_T}$ac_header_compiler" >&6 4526 4527# Is the header present? 4528echo "$as_me:$LINENO: checking $ac_header presence" >&5 4529echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4530cat >conftest.$ac_ext <<_ACEOF 4531#line $LINENO "configure" 4532/* confdefs.h. */ 4533_ACEOF 4534cat confdefs.h >>conftest.$ac_ext 4535cat >>conftest.$ac_ext <<_ACEOF 4536/* end confdefs.h. */ 4537#include <$ac_header> 4538_ACEOF 4539if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4540 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4541 ac_status=$? 4542 grep -v '^ *+' conftest.er1 >conftest.err 4543 rm -f conftest.er1 4544 cat conftest.err >&5 4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4546 (exit $ac_status); } >/dev/null; then 4547 if test -s conftest.err; then 4548 ac_cpp_err=$ac_c_preproc_warn_flag 4549 else 4550 ac_cpp_err= 4551 fi 4552else 4553 ac_cpp_err=yes 4554fi 4555if test -z "$ac_cpp_err"; then 4556 ac_header_preproc=yes 4557else 4558 echo "$as_me: failed program was:" >&5 4559sed 's/^/| /' conftest.$ac_ext >&5 4560 4561 ac_header_preproc=no 4562fi 4563rm -f conftest.err conftest.$ac_ext 4564echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4565echo "${ECHO_T}$ac_header_preproc" >&6 4566 4567# So? What about this header? 4568case $ac_header_compiler:$ac_header_preproc in 4569 yes:no ) 4570 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4571echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4573echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4574 ( 4575 cat <<\_ASBOX 4576## ------------------------------------ ## 4577## Report this to bug-autoconf@gnu.org. ## 4578## ------------------------------------ ## 4579_ASBOX 4580 ) | 4581 sed "s/^/$as_me: WARNING: /" >&2 4582 ;; 4583 no:yes ) 4584 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4585echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4586 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4587echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4589echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4590 ( 4591 cat <<\_ASBOX 4592## ------------------------------------ ## 4593## Report this to bug-autoconf@gnu.org. ## 4594## ------------------------------------ ## 4595_ASBOX 4596 ) | 4597 sed "s/^/$as_me: WARNING: /" >&2 4598 ;; 4599esac 4600echo "$as_me:$LINENO: checking for $ac_header" >&5 4601echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4602if eval "test \"\${$as_ac_Header+set}\" = set"; then 4603 echo $ECHO_N "(cached) $ECHO_C" >&6 4604else 4605 eval "$as_ac_Header=$ac_header_preproc" 4606fi 4607echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4608echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4609 4610fi 4611if test `eval echo '${'$as_ac_Header'}'` = yes; then 4612 cat >>confdefs.h <<_ACEOF 4613#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4614_ACEOF 4615 4616fi 4617 4618done 4619 4620 if test "$ac_cv_header_netinet_ether_h" = yes; then 4621 # 4622 # We have it - does it declare ether_hostton()? 4623 # Unset ac_cv_have_decl_ether_hostton so we don't 4624 # treat the previous failure as a cached value and 4625 # suppress the next test. 4626 # 4627 unset ac_cv_have_decl_ether_hostton 4628 echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5 4629echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6 4630if test "${ac_cv_have_decl_ether_hostton+set}" = set; then 4631 echo $ECHO_N "(cached) $ECHO_C" >&6 4632else 4633 cat >conftest.$ac_ext <<_ACEOF 4634#line $LINENO "configure" 4635/* confdefs.h. */ 4636_ACEOF 4637cat confdefs.h >>conftest.$ac_ext 4638cat >>conftest.$ac_ext <<_ACEOF 4639/* end confdefs.h. */ 4640 4641#include <netinet/ether.h> 4642 4643 4644int 4645main () 4646{ 4647#ifndef ether_hostton 4648 char *p = (char *) ether_hostton; 4649#endif 4650 4651 ; 4652 return 0; 4653} 4654_ACEOF 4655rm -f conftest.$ac_objext 4656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4657 (eval $ac_compile) 2>&5 4658 ac_status=$? 4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4660 (exit $ac_status); } && 4661 { ac_try='test -s conftest.$ac_objext' 4662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4663 (eval $ac_try) 2>&5 4664 ac_status=$? 4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4666 (exit $ac_status); }; }; then 4667 ac_cv_have_decl_ether_hostton=yes 4668else 4669 echo "$as_me: failed program was:" >&5 4670sed 's/^/| /' conftest.$ac_ext >&5 4671 4672ac_cv_have_decl_ether_hostton=no 4673fi 4674rm -f conftest.$ac_objext conftest.$ac_ext 4675fi 4676echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5 4677echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6 4678if test $ac_cv_have_decl_ether_hostton = yes; then 4679 4680 4681cat >>confdefs.h <<\_ACEOF 4682#define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON 4683_ACEOF 4684 4685 4686fi 4687 4688 fi 4689 fi 4690 # 4691 # Is ether_hostton() declared? 4692 # 4693 if test "$ac_cv_have_decl_ether_hostton" != yes; then 4694 # 4695 # No, we'll have to declare it ourselves. 4696 # Do we have "struct ether_addr"? 4697 # 4698 echo "$as_me:$LINENO: checking for struct ether_addr" >&5 4699echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6 4700if test "${ac_cv_type_struct_ether_addr+set}" = set; then 4701 echo $ECHO_N "(cached) $ECHO_C" >&6 4702else 4703 cat >conftest.$ac_ext <<_ACEOF 4704#line $LINENO "configure" 4705/* confdefs.h. */ 4706_ACEOF 4707cat confdefs.h >>conftest.$ac_ext 4708cat >>conftest.$ac_ext <<_ACEOF 4709/* end confdefs.h. */ 4710 4711#include <sys/types.h> 4712#include <sys/socket.h> 4713#include <netinet/in.h> 4714#include <arpa/inet.h> 4715struct mbuf; 4716struct rtentry; 4717#include <net/if.h> 4718#include <netinet/if_ether.h> 4719 4720 4721int 4722main () 4723{ 4724if ((struct ether_addr *) 0) 4725 return 0; 4726if (sizeof (struct ether_addr)) 4727 return 0; 4728 ; 4729 return 0; 4730} 4731_ACEOF 4732rm -f conftest.$ac_objext 4733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4734 (eval $ac_compile) 2>&5 4735 ac_status=$? 4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4737 (exit $ac_status); } && 4738 { ac_try='test -s conftest.$ac_objext' 4739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4740 (eval $ac_try) 2>&5 4741 ac_status=$? 4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4743 (exit $ac_status); }; }; then 4744 ac_cv_type_struct_ether_addr=yes 4745else 4746 echo "$as_me: failed program was:" >&5 4747sed 's/^/| /' conftest.$ac_ext >&5 4748 4749ac_cv_type_struct_ether_addr=no 4750fi 4751rm -f conftest.$ac_objext conftest.$ac_ext 4752fi 4753echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5 4754echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6 4755if test $ac_cv_type_struct_ether_addr = yes; then 4756 4757cat >>confdefs.h <<_ACEOF 4758#define HAVE_STRUCT_ETHER_ADDR 1 4759_ACEOF 4760 4761 4762fi 4763 4764 4765cat >>confdefs.h <<\_ACEOF 4766#define HAVE_DECL_ETHER_HOSTTON 0 4767_ACEOF 4768 4769 else 4770 4771cat >>confdefs.h <<\_ACEOF 4772#define HAVE_DECL_ETHER_HOSTTON 1 4773_ACEOF 4774 4775 fi 4776fi 4777 4778echo "$as_me:$LINENO: checking if --disable-protochain option is specified" >&5 4779echo $ECHO_N "checking if --disable-protochain option is specified... $ECHO_C" >&6 4780# Check whether --enable-protochain or --disable-protochain was given. 4781if test "${enable_protochain+set}" = set; then 4782 enableval="$enable_protochain" 4783 4784fi; 4785case "x$enable_protochain" in 4786xyes) enable_protochain=enabled ;; 4787xno) enable_protochain=disabled ;; 4788x) enable_protochain=enabled ;; 4789esac 4790 4791if test "$enable_protochain" = "disabled"; then 4792 4793cat >>confdefs.h <<\_ACEOF 4794#define NO_PROTOCHAIN 1 4795_ACEOF 4796 4797fi 4798echo "$as_me:$LINENO: result: ${enable_protochain}" >&5 4799echo "${ECHO_T}${enable_protochain}" >&6 4800 4801if test -z "$with_pcap" && test "$cross_compiling" = yes; then 4802 { { echo "$as_me:$LINENO: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&5 4803echo "$as_me: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&2;} 4804 { (exit 1); exit 1; }; } 4805fi 4806 4807# Check whether --with-pcap or --without-pcap was given. 4808if test "${with_pcap+set}" = set; then 4809 withval="$with_pcap" 4810 4811fi; 4812echo "$as_me:$LINENO: checking packet capture type" >&5 4813echo $ECHO_N "checking packet capture type... $ECHO_C" >&6 4814if test ! -z "$with_pcap" ; then 4815 V_PCAP="$withval" 4816elif test -r /dev/bpf0 ; then 4817 V_PCAP=bpf 4818elif test -r /usr/include/net/pfilt.h ; then 4819 V_PCAP=pf 4820elif test -r /dev/enet ; then 4821 V_PCAP=enet 4822elif test -r /dev/nit ; then 4823 V_PCAP=snit 4824elif test -r /usr/include/sys/net/nit.h ; then 4825 V_PCAP=nit 4826elif test -r /usr/include/linux/socket.h ; then 4827 V_PCAP=linux 4828elif test -r /usr/include/net/raw.h ; then 4829 V_PCAP=snoop 4830elif test -r /usr/include/odmi.h ; then 4831 # 4832 # On AIX, the BPF devices might not yet be present - they're 4833 # created the first time libpcap runs after booting. 4834 # We check for odmi.h instead. 4835 # 4836 V_PCAP=bpf 4837elif test -r /usr/include/sys/dlpi.h ; then 4838 V_PCAP=dlpi 4839elif test -c /dev/bpf0 ; then # check again in case not readable 4840 V_PCAP=bpf 4841elif test -c /dev/enet ; then # check again in case not readable 4842 V_PCAP=enet 4843elif test -c /dev/nit ; then # check again in case not readable 4844 V_PCAP=snit 4845else 4846 V_PCAP=null 4847fi 4848echo "$as_me:$LINENO: result: $V_PCAP" >&5 4849echo "${ECHO_T}$V_PCAP" >&6 4850 4851if test "$V_PCAP" = null 4852then 4853 # 4854 # We can't capture, so we can't open any capture 4855 # devices, so we won't return any interfaces. 4856 # 4857 V_FINDALLDEVS=null 4858else 4859 echo "$as_me:$LINENO: checking for getifaddrs" >&5 4860echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6 4861if test "${ac_cv_func_getifaddrs+set}" = set; then 4862 echo $ECHO_N "(cached) $ECHO_C" >&6 4863else 4864 cat >conftest.$ac_ext <<_ACEOF 4865#line $LINENO "configure" 4866/* confdefs.h. */ 4867_ACEOF 4868cat confdefs.h >>conftest.$ac_ext 4869cat >>conftest.$ac_ext <<_ACEOF 4870/* end confdefs.h. */ 4871/* System header to define __stub macros and hopefully few prototypes, 4872 which can conflict with char getifaddrs (); below. 4873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4874 <limits.h> exists even on freestanding compilers. */ 4875#ifdef __STDC__ 4876# include <limits.h> 4877#else 4878# include <assert.h> 4879#endif 4880/* Override any gcc2 internal prototype to avoid an error. */ 4881#ifdef __cplusplus 4882extern "C" 4883{ 4884#endif 4885/* We use char because int might match the return type of a gcc2 4886 builtin and then its argument prototype would still apply. */ 4887char getifaddrs (); 4888/* The GNU C library defines this for functions which it implements 4889 to always fail with ENOSYS. Some functions are actually named 4890 something starting with __ and the normal name is an alias. */ 4891#if defined (__stub_getifaddrs) || defined (__stub___getifaddrs) 4892choke me 4893#else 4894char (*f) () = getifaddrs; 4895#endif 4896#ifdef __cplusplus 4897} 4898#endif 4899 4900int 4901main () 4902{ 4903return f != getifaddrs; 4904 ; 4905 return 0; 4906} 4907_ACEOF 4908rm -f conftest.$ac_objext conftest$ac_exeext 4909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4910 (eval $ac_link) 2>&5 4911 ac_status=$? 4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4913 (exit $ac_status); } && 4914 { ac_try='test -s conftest$ac_exeext' 4915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4916 (eval $ac_try) 2>&5 4917 ac_status=$? 4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4919 (exit $ac_status); }; }; then 4920 ac_cv_func_getifaddrs=yes 4921else 4922 echo "$as_me: failed program was:" >&5 4923sed 's/^/| /' conftest.$ac_ext >&5 4924 4925ac_cv_func_getifaddrs=no 4926fi 4927rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4928fi 4929echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5 4930echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6 4931if test $ac_cv_func_getifaddrs = yes; then 4932 4933 # 4934 # We have "getifaddrs()"; make sure we have <ifaddrs.h> 4935 # as well, just in case some platform is really weird. 4936 # 4937 if test "${ac_cv_header_ifaddrs_h+set}" = set; then 4938 echo "$as_me:$LINENO: checking for ifaddrs.h" >&5 4939echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6 4940if test "${ac_cv_header_ifaddrs_h+set}" = set; then 4941 echo $ECHO_N "(cached) $ECHO_C" >&6 4942fi 4943echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5 4944echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6 4945else 4946 # Is the header compilable? 4947echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5 4948echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6 4949cat >conftest.$ac_ext <<_ACEOF 4950#line $LINENO "configure" 4951/* confdefs.h. */ 4952_ACEOF 4953cat confdefs.h >>conftest.$ac_ext 4954cat >>conftest.$ac_ext <<_ACEOF 4955/* end confdefs.h. */ 4956$ac_includes_default 4957#include <ifaddrs.h> 4958_ACEOF 4959rm -f conftest.$ac_objext 4960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4961 (eval $ac_compile) 2>&5 4962 ac_status=$? 4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4964 (exit $ac_status); } && 4965 { ac_try='test -s conftest.$ac_objext' 4966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4967 (eval $ac_try) 2>&5 4968 ac_status=$? 4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4970 (exit $ac_status); }; }; then 4971 ac_header_compiler=yes 4972else 4973 echo "$as_me: failed program was:" >&5 4974sed 's/^/| /' conftest.$ac_ext >&5 4975 4976ac_header_compiler=no 4977fi 4978rm -f conftest.$ac_objext conftest.$ac_ext 4979echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4980echo "${ECHO_T}$ac_header_compiler" >&6 4981 4982# Is the header present? 4983echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5 4984echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6 4985cat >conftest.$ac_ext <<_ACEOF 4986#line $LINENO "configure" 4987/* confdefs.h. */ 4988_ACEOF 4989cat confdefs.h >>conftest.$ac_ext 4990cat >>conftest.$ac_ext <<_ACEOF 4991/* end confdefs.h. */ 4992#include <ifaddrs.h> 4993_ACEOF 4994if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4996 ac_status=$? 4997 grep -v '^ *+' conftest.er1 >conftest.err 4998 rm -f conftest.er1 4999 cat conftest.err >&5 5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5001 (exit $ac_status); } >/dev/null; then 5002 if test -s conftest.err; then 5003 ac_cpp_err=$ac_c_preproc_warn_flag 5004 else 5005 ac_cpp_err= 5006 fi 5007else 5008 ac_cpp_err=yes 5009fi 5010if test -z "$ac_cpp_err"; then 5011 ac_header_preproc=yes 5012else 5013 echo "$as_me: failed program was:" >&5 5014sed 's/^/| /' conftest.$ac_ext >&5 5015 5016 ac_header_preproc=no 5017fi 5018rm -f conftest.err conftest.$ac_ext 5019echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5020echo "${ECHO_T}$ac_header_preproc" >&6 5021 5022# So? What about this header? 5023case $ac_header_compiler:$ac_header_preproc in 5024 yes:no ) 5025 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5 5026echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5027 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5 5028echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;} 5029 ( 5030 cat <<\_ASBOX 5031## ------------------------------------ ## 5032## Report this to bug-autoconf@gnu.org. ## 5033## ------------------------------------ ## 5034_ASBOX 5035 ) | 5036 sed "s/^/$as_me: WARNING: /" >&2 5037 ;; 5038 no:yes ) 5039 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5 5040echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;} 5041 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&5 5042echo "$as_me: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&2;} 5043 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5 5044echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;} 5045 ( 5046 cat <<\_ASBOX 5047## ------------------------------------ ## 5048## Report this to bug-autoconf@gnu.org. ## 5049## ------------------------------------ ## 5050_ASBOX 5051 ) | 5052 sed "s/^/$as_me: WARNING: /" >&2 5053 ;; 5054esac 5055echo "$as_me:$LINENO: checking for ifaddrs.h" >&5 5056echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6 5057if test "${ac_cv_header_ifaddrs_h+set}" = set; then 5058 echo $ECHO_N "(cached) $ECHO_C" >&6 5059else 5060 ac_cv_header_ifaddrs_h=$ac_header_preproc 5061fi 5062echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5 5063echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6 5064 5065fi 5066if test $ac_cv_header_ifaddrs_h = yes; then 5067 5068 # 5069 # We have the header, so we use "getifaddrs()" to 5070 # get the list of interfaces. 5071 # 5072 V_FINDALLDEVS=getad 5073 5074else 5075 5076 # 5077 # We don't have the header - give up. 5078 # XXX - we could also fall back on some other 5079 # mechanism, but, for now, this'll catch this 5080 # problem so that we can at least try to figure 5081 # out something to do on systems with "getifaddrs()" 5082 # but without "ifaddrs.h", if there is something 5083 # we can do on those systems. 5084 # 5085 { { echo "$as_me:$LINENO: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&5 5086echo "$as_me: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&2;} 5087 { (exit 1); exit 1; }; } 5088 5089fi 5090 5091 5092 5093else 5094 5095 # 5096 # Well, we don't have "getifaddrs()", so we have to use 5097 # some other mechanism; determine what that mechanism is. 5098 # 5099 # The first thing we use is the type of capture mechanism, 5100 # which is somewhat of a proxy for the OS we're using. 5101 # 5102 case "$V_PCAP" in 5103 5104 dlpi) 5105 # 5106 # This might be Solaris 8 or later, with 5107 # SIOCGLIFCONF, or it might be some other OS 5108 # or some older version of Solaris, with 5109 # just SIOCGIFCONF. 5110 # 5111 echo "$as_me:$LINENO: checking whether we have SIOCGLIFCONF" >&5 5112echo $ECHO_N "checking whether we have SIOCGLIFCONF... $ECHO_C" >&6 5113 if test "${ac_cv_lbl_have_siocglifconf+set}" = set; then 5114 echo $ECHO_N "(cached) $ECHO_C" >&6 5115else 5116 cat >conftest.$ac_ext <<_ACEOF 5117#line $LINENO "configure" 5118/* confdefs.h. */ 5119_ACEOF 5120cat confdefs.h >>conftest.$ac_ext 5121cat >>conftest.$ac_ext <<_ACEOF 5122/* end confdefs.h. */ 5123#include <sys/param.h> 5124 #include <sys/file.h> 5125 #include <sys/ioctl.h> 5126 #include <sys/socket.h> 5127 #include <sys/sockio.h> 5128int 5129main () 5130{ 5131ioctl(0, SIOCGLIFCONF, (char *)0); 5132 ; 5133 return 0; 5134} 5135_ACEOF 5136rm -f conftest.$ac_objext 5137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5138 (eval $ac_compile) 2>&5 5139 ac_status=$? 5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5141 (exit $ac_status); } && 5142 { ac_try='test -s conftest.$ac_objext' 5143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5144 (eval $ac_try) 2>&5 5145 ac_status=$? 5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5147 (exit $ac_status); }; }; then 5148 ac_cv_lbl_have_siocglifconf=yes 5149else 5150 echo "$as_me: failed program was:" >&5 5151sed 's/^/| /' conftest.$ac_ext >&5 5152 5153ac_cv_lbl_have_siocglifconf=no 5154fi 5155rm -f conftest.$ac_objext conftest.$ac_ext 5156fi 5157 5158 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_siocglifconf" >&5 5159echo "${ECHO_T}$ac_cv_lbl_have_siocglifconf" >&6 5160 if test $ac_cv_lbl_have_siocglifconf = yes ; then 5161 V_FINDALLDEVS=glifc 5162 else 5163 V_FINDALLDEVS=gifc 5164 fi 5165 ;; 5166 5167 *) 5168 # 5169 # Assume we just have SIOCGIFCONF. 5170 # (XXX - on at least later Linux kernels, there's 5171 # another mechanism, and we should be using that 5172 # instead.) 5173 # 5174 V_FINDALLDEVS=gifc 5175 ;; 5176 esac 5177fi 5178 5179fi 5180 5181echo "$as_me:$LINENO: checking if --enable-ipv6 option is specified" >&5 5182echo $ECHO_N "checking if --enable-ipv6 option is specified... $ECHO_C" >&6 5183# Check whether --enable-ipv6 or --disable-ipv6 was given. 5184if test "${enable_ipv6+set}" = set; then 5185 enableval="$enable_ipv6" 5186 5187fi; 5188if test "$enable_ipv6" = "yes"; then 5189 5190cat >>confdefs.h <<\_ACEOF 5191#define INET6 1 5192_ACEOF 5193 5194fi 5195echo "$as_me:$LINENO: result: ${enable_ipv6-no}" >&5 5196echo "${ECHO_T}${enable_ipv6-no}" >&6 5197 5198echo "$as_me:$LINENO: checking whether to build optimizer debugging code" >&5 5199echo $ECHO_N "checking whether to build optimizer debugging code... $ECHO_C" >&6 5200# Check whether --enable-optimizer-dbg or --disable-optimizer-dbg was given. 5201if test "${enable_optimizer_dbg+set}" = set; then 5202 enableval="$enable_optimizer_dbg" 5203 5204fi; 5205if test "$enable_optimizer_dbg" = "yes"; then 5206 5207cat >>confdefs.h <<\_ACEOF 5208#define BDEBUG 1 5209_ACEOF 5210 5211fi 5212echo "$as_me:$LINENO: result: ${enable_optimizer_dbg-no}" >&5 5213echo "${ECHO_T}${enable_optimizer_dbg-no}" >&6 5214 5215echo "$as_me:$LINENO: checking whether to build parser debugging code" >&5 5216echo $ECHO_N "checking whether to build parser debugging code... $ECHO_C" >&6 5217# Check whether --enable-yydebug or --disable-yydebug was given. 5218if test "${enable_yydebug+set}" = set; then 5219 enableval="$enable_yydebug" 5220 5221fi; 5222if test "$enable_yydebug" = "yes"; then 5223 5224cat >>confdefs.h <<\_ACEOF 5225#define YYDEBUG 1 5226_ACEOF 5227 5228fi 5229echo "$as_me:$LINENO: result: ${enable_yydebug-no}" >&5 5230echo "${ECHO_T}${enable_yydebug-no}" >&6 5231 5232case "$V_PCAP" in 5233 5234dlpi) 5235 5236 5237for ac_header in sys/bufmod.h sys/dlpi_ext.h 5238do 5239as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5240if eval "test \"\${$as_ac_Header+set}\" = set"; then 5241 echo "$as_me:$LINENO: checking for $ac_header" >&5 5242echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5243if eval "test \"\${$as_ac_Header+set}\" = set"; then 5244 echo $ECHO_N "(cached) $ECHO_C" >&6 5245fi 5246echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5247echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5248else 5249 # Is the header compilable? 5250echo "$as_me:$LINENO: checking $ac_header usability" >&5 5251echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 5252cat >conftest.$ac_ext <<_ACEOF 5253#line $LINENO "configure" 5254/* confdefs.h. */ 5255_ACEOF 5256cat confdefs.h >>conftest.$ac_ext 5257cat >>conftest.$ac_ext <<_ACEOF 5258/* end confdefs.h. */ 5259$ac_includes_default 5260#include <$ac_header> 5261_ACEOF 5262rm -f conftest.$ac_objext 5263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5264 (eval $ac_compile) 2>&5 5265 ac_status=$? 5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5267 (exit $ac_status); } && 5268 { ac_try='test -s conftest.$ac_objext' 5269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5270 (eval $ac_try) 2>&5 5271 ac_status=$? 5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5273 (exit $ac_status); }; }; then 5274 ac_header_compiler=yes 5275else 5276 echo "$as_me: failed program was:" >&5 5277sed 's/^/| /' conftest.$ac_ext >&5 5278 5279ac_header_compiler=no 5280fi 5281rm -f conftest.$ac_objext conftest.$ac_ext 5282echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5283echo "${ECHO_T}$ac_header_compiler" >&6 5284 5285# Is the header present? 5286echo "$as_me:$LINENO: checking $ac_header presence" >&5 5287echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5288cat >conftest.$ac_ext <<_ACEOF 5289#line $LINENO "configure" 5290/* confdefs.h. */ 5291_ACEOF 5292cat confdefs.h >>conftest.$ac_ext 5293cat >>conftest.$ac_ext <<_ACEOF 5294/* end confdefs.h. */ 5295#include <$ac_header> 5296_ACEOF 5297if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5298 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5299 ac_status=$? 5300 grep -v '^ *+' conftest.er1 >conftest.err 5301 rm -f conftest.er1 5302 cat conftest.err >&5 5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5304 (exit $ac_status); } >/dev/null; then 5305 if test -s conftest.err; then 5306 ac_cpp_err=$ac_c_preproc_warn_flag 5307 else 5308 ac_cpp_err= 5309 fi 5310else 5311 ac_cpp_err=yes 5312fi 5313if test -z "$ac_cpp_err"; then 5314 ac_header_preproc=yes 5315else 5316 echo "$as_me: failed program was:" >&5 5317sed 's/^/| /' conftest.$ac_ext >&5 5318 5319 ac_header_preproc=no 5320fi 5321rm -f conftest.err conftest.$ac_ext 5322echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5323echo "${ECHO_T}$ac_header_preproc" >&6 5324 5325# So? What about this header? 5326case $ac_header_compiler:$ac_header_preproc in 5327 yes:no ) 5328 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5329echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5331echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5332 ( 5333 cat <<\_ASBOX 5334## ------------------------------------ ## 5335## Report this to bug-autoconf@gnu.org. ## 5336## ------------------------------------ ## 5337_ASBOX 5338 ) | 5339 sed "s/^/$as_me: WARNING: /" >&2 5340 ;; 5341 no:yes ) 5342 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5343echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5344 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5345echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5347echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5348 ( 5349 cat <<\_ASBOX 5350## ------------------------------------ ## 5351## Report this to bug-autoconf@gnu.org. ## 5352## ------------------------------------ ## 5353_ASBOX 5354 ) | 5355 sed "s/^/$as_me: WARNING: /" >&2 5356 ;; 5357esac 5358echo "$as_me:$LINENO: checking for $ac_header" >&5 5359echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5360if eval "test \"\${$as_ac_Header+set}\" = set"; then 5361 echo $ECHO_N "(cached) $ECHO_C" >&6 5362else 5363 eval "$as_ac_Header=$ac_header_preproc" 5364fi 5365echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5366echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5367 5368fi 5369if test `eval echo '${'$as_ac_Header'}'` = yes; then 5370 cat >>confdefs.h <<_ACEOF 5371#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5372_ACEOF 5373 5374fi 5375 5376done 5377 5378 echo "$as_me:$LINENO: checking for /dev/dlpi device" >&5 5379echo $ECHO_N "checking for /dev/dlpi device... $ECHO_C" >&6 5380 if test -c /dev/dlpi ; then 5381 echo "$as_me:$LINENO: result: yes" >&5 5382echo "${ECHO_T}yes" >&6 5383 5384cat >>confdefs.h <<\_ACEOF 5385#define HAVE_DEV_DLPI 1 5386_ACEOF 5387 5388 else 5389 echo "$as_me:$LINENO: result: no" >&5 5390echo "${ECHO_T}no" >&6 5391 dir="/dev/dlpi" 5392 echo "$as_me:$LINENO: checking for $dir directory" >&5 5393echo $ECHO_N "checking for $dir directory... $ECHO_C" >&6 5394 if test -d $dir ; then 5395 echo "$as_me:$LINENO: result: yes" >&5 5396echo "${ECHO_T}yes" >&6 5397 5398cat >>confdefs.h <<_ACEOF 5399#define PCAP_DEV_PREFIX "$dir" 5400_ACEOF 5401 5402 else 5403 echo "$as_me:$LINENO: result: no" >&5 5404echo "${ECHO_T}no" >&6 5405 fi 5406 fi 5407 ;; 5408 5409linux) 5410 echo "$as_me:$LINENO: checking Linux kernel version" >&5 5411echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6 5412 if test "$cross_compiling" = yes; then 5413 if test "${ac_cv_linux_vers+set}" = set; then 5414 echo $ECHO_N "(cached) $ECHO_C" >&6 5415else 5416 ac_cv_linux_vers=unknown 5417fi 5418 5419 else 5420 if test "${ac_cv_linux_vers+set}" = set; then 5421 echo $ECHO_N "(cached) $ECHO_C" >&6 5422else 5423 ac_cv_linux_vers=`uname -r 2>&1 | \ 5424 sed -n -e '$s/.* //' -e '$s/\..*//p'` 5425fi 5426 5427 fi 5428 echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5 5429echo "${ECHO_T}$ac_cv_linux_vers" >&6 5430 if test $ac_cv_linux_vers = unknown ; then 5431 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5 5432echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;} 5433 { (exit 1); exit 1; }; } 5434 fi 5435 if test $ac_cv_linux_vers -lt 2 ; then 5436 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5 5437echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;} 5438 { (exit 1); exit 1; }; } 5439 fi 5440 echo "$as_me:$LINENO: checking if if_packet.h has tpacket_stats defined" >&5 5441echo $ECHO_N "checking if if_packet.h has tpacket_stats defined... $ECHO_C" >&6 5442 if test "${ac_cv_lbl_tpacket_stats+set}" = set; then 5443 echo $ECHO_N "(cached) $ECHO_C" >&6 5444else 5445 cat >conftest.$ac_ext <<_ACEOF 5446#line $LINENO "configure" 5447/* confdefs.h. */ 5448_ACEOF 5449cat confdefs.h >>conftest.$ac_ext 5450cat >>conftest.$ac_ext <<_ACEOF 5451/* end confdefs.h. */ 5452 5453# include <linux/if_packet.h> 5454int 5455main () 5456{ 5457struct tpacket_stats stats 5458 ; 5459 return 0; 5460} 5461_ACEOF 5462rm -f conftest.$ac_objext 5463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5464 (eval $ac_compile) 2>&5 5465 ac_status=$? 5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5467 (exit $ac_status); } && 5468 { ac_try='test -s conftest.$ac_objext' 5469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5470 (eval $ac_try) 2>&5 5471 ac_status=$? 5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5473 (exit $ac_status); }; }; then 5474 ac_cv_lbl_tpacket_stats=yes 5475else 5476 echo "$as_me: failed program was:" >&5 5477sed 's/^/| /' conftest.$ac_ext >&5 5478 5479ac_cv_lbl_tpacket_stats=no 5480fi 5481rm -f conftest.$ac_objext conftest.$ac_ext 5482fi 5483 5484 echo "$as_me:$LINENO: result: $ac_cv_lbl_tpacket_stats" >&5 5485echo "${ECHO_T}$ac_cv_lbl_tpacket_stats" >&6 5486 if test $ac_cv_lbl_tpacket_stats = yes; then 5487 5488cat >>confdefs.h <<\_ACEOF 5489#define HAVE_TPACKET_STATS 1 5490_ACEOF 5491 5492 fi 5493 ;; 5494 5495dag) 5496 V_DEFS="$V_DEFS -DDAG_ONLY" 5497 ;; 5498 5499septel) 5500 V_DEFS="$V_DEFS -DSEPTEL_ONLY" 5501 ;; 5502 5503null) 5504 { echo "$as_me:$LINENO: WARNING: cannot determine packet capture interface" >&5 5505echo "$as_me: WARNING: cannot determine packet capture interface" >&2;} 5506 { echo "$as_me:$LINENO: WARNING: (see the INSTALL doc for more info)" >&5 5507echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;} 5508 ;; 5509 5510esac 5511 5512echo "$as_me:$LINENO: checking whether we have /proc/net/dev" >&5 5513echo $ECHO_N "checking whether we have /proc/net/dev... $ECHO_C" >&6 5514if test -r /proc/net/dev ; then 5515 ac_cv_lbl_proc_net_dev=yes 5516else 5517 ac_cv_lbl_proc_net_dev=no 5518fi 5519if test $ac_cv_lbl_proc_net_dev = yes; then 5520 5521cat >>confdefs.h <<\_ACEOF 5522#define HAVE_PROC_NET_DEV 1 5523_ACEOF 5524 5525fi 5526echo "$as_me:$LINENO: result: $ac_cv_lbl_proc_net_dev" >&5 5527echo "${ECHO_T}$ac_cv_lbl_proc_net_dev" >&6 5528 5529# Check for Endace DAG card support. 5530 5531# Check whether --with-dag or --without-dag was given. 5532if test "${with_dag+set}" = set; then 5533 withval="$with_dag" 5534 5535 if test "$withval" = no 5536 then 5537 # User doesn't want DAG support. 5538 want_dag=no 5539 elif test "$withval" = yes 5540 then 5541 # User wants DAG support but hasn't specified a directory. 5542 want_dag=yes 5543 else 5544 # User wants DAG support and has specified a directory, so use the provided value. 5545 want_dag=yes 5546 dag_root=$withval 5547 fi 5548 5549else 5550 5551 # 5552 # Use DAG API if present, otherwise don't 5553 # 5554 want_dag=ifpresent 5555 5556fi; 5557 5558 5559# Check whether --with-dag-includes or --without-dag-includes was given. 5560if test "${with_dag_includes+set}" = set; then 5561 withval="$with_dag_includes" 5562 5563 # User wants DAG support and has specified a header directory, so use the provided value. 5564 want_dag=yes 5565 dag_include_dir=$withval 5566 5567fi; 5568 5569 5570# Check whether --with-dag-libraries or --without-dag-libraries was given. 5571if test "${with_dag_libraries+set}" = set; then 5572 withval="$with_dag_libraries" 5573 5574 # User wants DAG support and has specified a library directory, so use the provided value. 5575 want_dag=yes 5576 dag_lib_dir=$withval 5577 5578fi; 5579 5580case "$V_PCAP" in 5581linux|bpf|dag) 5582 # 5583 # We support the DAG API if we're on Linux or BSD, or if we're 5584 # building a DAG-only libpcap. 5585 # 5586 ;; 5587*) 5588 # 5589 # If the user explicitly requested DAG, tell them it's not 5590 # supported. 5591 # 5592 # If they expressed no preference, don't include it. 5593 # 5594 if test $want_dag = yes; then 5595 { { echo "$as_me:$LINENO: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&5 5596echo "$as_me: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&2;} 5597 { (exit 1); exit 1; }; } 5598 elif test $want_dag = yes; then 5599 want_dag=no 5600 fi 5601 ;; 5602esac 5603 5604ac_cv_lbl_dag_api=no 5605if test "$want_dag" != no; then 5606 5607 echo "$as_me:$LINENO: checking whether we have DAG API headers" >&5 5608echo $ECHO_N "checking whether we have DAG API headers... $ECHO_C" >&6 5609 5610 # If necessary, set default paths for DAG API headers and libraries. 5611 if test -z "$dag_root"; then 5612 dag_root=/usr/local 5613 fi 5614 5615 if test -z "$dag_include_dir"; then 5616 dag_include_dir="$dag_root/include" 5617 fi 5618 5619 if test -z "$dag_lib_dir"; then 5620 dag_lib_dir="$dag_root/lib" 5621 fi 5622 5623 if test -z "$dag_tools_dir"; then 5624 dag_tools_dir="$dag_root/tools" 5625 fi 5626 5627 if test -r $dag_include_dir/dagapi.h; then 5628 ac_cv_lbl_dag_api=yes 5629 fi 5630 echo "$as_me:$LINENO: result: $ac_cv_lbl_dag_api ($dag_include_dir)" >&5 5631echo "${ECHO_T}$ac_cv_lbl_dag_api ($dag_include_dir)" >&6 5632fi 5633 5634if test $ac_cv_lbl_dag_api = yes; then 5635 5636 echo "$as_me:$LINENO: checking dagapi.o" >&5 5637echo $ECHO_N "checking dagapi.o... $ECHO_C" >&6 5638 dagapi_obj=no 5639 if test -r $dag_tools_dir/dagapi.o; then 5640 # 2.4.x. 5641 dagapi_obj=$dag_tools_dir/dagapi.o 5642 elif test -r $dag_lib_dir/dagapi.o; then 5643 # 2.5.x. 5644 dagapi_obj=$dag_lib_dir/dagapi.o 5645 elif test -r $dag_lib_dir/libdag.a; then 5646 # 2.5.x. 5647 ar x $dag_lib_dir/libdag.a dagapi.o 5648 if test -r ./dagapi.o; then 5649 dagapi_obj=./dagapi.o 5650 fi 5651 fi 5652 5653 if test $dagapi_obj = no; then 5654 echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&5 5655echo "${ECHO_T}no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&6 5656 ac_cv_lbl_dag_api=no 5657 else 5658 echo "$as_me:$LINENO: result: yes ($dagapi_obj)" >&5 5659echo "${ECHO_T}yes ($dagapi_obj)" >&6 5660 fi 5661fi 5662 5663if test $ac_cv_lbl_dag_api = yes; then 5664 5665 echo "$as_me:$LINENO: checking dagopts.o" >&5 5666echo $ECHO_N "checking dagopts.o... $ECHO_C" >&6 5667 dagopts_obj=no 5668 if test -r $dag_tools_dir/dagopts.o; then 5669 # 2.4.x. 5670 dagopts_obj=$dag_tools_dir/dagopts.o 5671 elif test -r $dag_lib_dir/dagopts.o; then 5672 # 2.5.x. 5673 dagopts_obj=$dag_lib_dir/dagopts.o 5674 elif test -r $dag_lib_dir/libdag.a; then 5675 # 2.5.x. 5676 ar x $dag_lib_dir/libdag.a dagopts.o 5677 if test -r ./dagopts.o; then 5678 dagopts_obj=./dagopts.o 5679 fi 5680 fi 5681 5682 if test $dagopts_obj = no; then 5683 echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&5 5684echo "${ECHO_T}no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&6 5685 ac_cv_lbl_dag_api=no 5686 else 5687 echo "$as_me:$LINENO: result: yes ($dagopts_obj)" >&5 5688echo "${ECHO_T}yes ($dagopts_obj)" >&6 5689 fi 5690fi 5691 5692if test $ac_cv_lbl_dag_api = yes; then 5693 # Under 2.5.x only we need to add dagreg.o. 5694 if test -r $dag_include_dir/dagreg.h; then 5695 echo "$as_me:$LINENO: checking dagreg.o" >&5 5696echo $ECHO_N "checking dagreg.o... $ECHO_C" >&6 5697 dagreg_obj=no 5698 if test -r $dag_lib_dir/dagreg.o; then 5699 # Object file is ready and waiting. 5700 dagreg_obj=$dag_lib_dir/dagreg.o 5701 elif test -r $dag_lib_dir/libdag.a; then 5702 # Extract from libdag.a. 5703 ar x $dag_lib_dir/libdag.a dagreg.o 5704 if test -r ./dagreg.o; then 5705 dagreg_obj=./dagreg.o 5706 fi 5707 fi 5708 5709 if test $dagreg_obj = no; then 5710 echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_lib_dir/libdag.a)" >&5 5711echo "${ECHO_T}no (checked $dag_lib_dir $dag_lib_dir/libdag.a)" >&6 5712 ac_cv_lbl_dag_api=no 5713 else 5714 echo "$as_me:$LINENO: result: yes ($dagreg_obj)" >&5 5715echo "${ECHO_T}yes ($dagreg_obj)" >&6 5716 fi 5717 fi 5718fi 5719 5720if test $ac_cv_lbl_dag_api = yes; then 5721 V_INCLS="$V_INCLS -I$dag_include_dir" 5722 V_LIBS="$V_LIBS $dagapi_obj $dagopts_obj $dagreg_obj" 5723 if test $V_PCAP != dag ; then 5724 SSRC="pcap-dag.c" 5725 fi 5726 5727 # See if we can find a general version string. 5728 # Don't need to save and restore LIBS to prevent -ldag being 5729 # included if there's a found-action (arg 3). 5730 saved_ldflags=$LDFLAGS 5731 LDFLAGS="-L$dag_lib_dir" 5732 echo "$as_me:$LINENO: checking for dag_attach_stream in -ldag" >&5 5733echo $ECHO_N "checking for dag_attach_stream in -ldag... $ECHO_C" >&6 5734if test "${ac_cv_lib_dag_dag_attach_stream+set}" = set; then 5735 echo $ECHO_N "(cached) $ECHO_C" >&6 5736else 5737 ac_check_lib_save_LIBS=$LIBS 5738LIBS="-ldag $LIBS" 5739cat >conftest.$ac_ext <<_ACEOF 5740#line $LINENO "configure" 5741/* confdefs.h. */ 5742_ACEOF 5743cat confdefs.h >>conftest.$ac_ext 5744cat >>conftest.$ac_ext <<_ACEOF 5745/* end confdefs.h. */ 5746 5747/* Override any gcc2 internal prototype to avoid an error. */ 5748#ifdef __cplusplus 5749extern "C" 5750#endif 5751/* We use char because int might match the return type of a gcc2 5752 builtin and then its argument prototype would still apply. */ 5753char dag_attach_stream (); 5754int 5755main () 5756{ 5757dag_attach_stream (); 5758 ; 5759 return 0; 5760} 5761_ACEOF 5762rm -f conftest.$ac_objext conftest$ac_exeext 5763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5764 (eval $ac_link) 2>&5 5765 ac_status=$? 5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5767 (exit $ac_status); } && 5768 { ac_try='test -s conftest$ac_exeext' 5769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5770 (eval $ac_try) 2>&5 5771 ac_status=$? 5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5773 (exit $ac_status); }; }; then 5774 ac_cv_lib_dag_dag_attach_stream=yes 5775else 5776 echo "$as_me: failed program was:" >&5 5777sed 's/^/| /' conftest.$ac_ext >&5 5778 5779ac_cv_lib_dag_dag_attach_stream=no 5780fi 5781rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5782LIBS=$ac_check_lib_save_LIBS 5783fi 5784echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_attach_stream" >&5 5785echo "${ECHO_T}$ac_cv_lib_dag_dag_attach_stream" >&6 5786if test $ac_cv_lib_dag_dag_attach_stream = yes; then 5787 dag_version="2.5.x" 5788else 5789 dag_version="2.4.x" 5790fi 5791 5792 LDFLAGS=$saved_ldflags 5793 5794 # See if we can find a specific version string. 5795 echo "$as_me:$LINENO: checking the DAG API version" >&5 5796echo $ECHO_N "checking the DAG API version... $ECHO_C" >&6 5797 if test -r "$dag_root/VERSION"; then 5798 dag_version="`cat $dag_root/VERSION`" 5799 fi 5800 echo "$as_me:$LINENO: result: $dag_version" >&5 5801echo "${ECHO_T}$dag_version" >&6 5802 5803cat >>confdefs.h <<\_ACEOF 5804#define HAVE_DAG_API 1 5805_ACEOF 5806 5807fi 5808 5809if test $ac_cv_lbl_dag_api = no; then 5810 if test "$want_dag" = yes; then 5811 # User wanted DAG support but we couldn't find it. 5812 { { echo "$as_me:$LINENO: error: DAG API requested, but not found at $dag_root: use --without-dag" >&5 5813echo "$as_me: error: DAG API requested, but not found at $dag_root: use --without-dag" >&2;} 5814 { (exit 1); exit 1; }; } 5815 fi 5816 5817 if test "$V_PCAP" = dag; then 5818 # User requested "dag" capture type but the DAG API wasn't 5819 # found. 5820 { { echo "$as_me:$LINENO: error: Specifying the capture type as \"dag\" requires the DAG API to be present; use the --with-dag options to specify the location. (Try \"./configure --help\" for more information.)" >&5 5821echo "$as_me: error: Specifying the capture type as \"dag\" requires the DAG API to be present; use the --with-dag options to specify the location. (Try \"./configure --help\" for more information.)" >&2;} 5822 { (exit 1); exit 1; }; } 5823 fi 5824fi 5825 5826 5827# Check whether --with-septel or --without-septel was given. 5828if test "${with_septel+set}" = set; then 5829 withval="$with_septel" 5830 5831 if test "$withval" = no 5832 then 5833 want_septel=no 5834 elif test "$withval" = yes 5835 then 5836 want_septel=yes 5837 septel_root= 5838 else 5839 want_septel=yes 5840 septel_root=$withval 5841 fi 5842 5843else 5844 5845 # 5846 # Use Septel API if present, otherwise don't 5847 # 5848 want_septel=ifpresent 5849 septel_root=./../septel 5850 5851fi; 5852ac_cv_lbl_septel_api=no 5853case "$V_PCAP" in 5854linux|septel) 5855 # 5856 # We support the Septel API if we're on Linux, or if we're building 5857 # a Septel-only libpcap. 5858 # 5859 ;; 5860*) 5861 # 5862 # If the user explicitly requested Septel, tell them it's not 5863 # supported. 5864 # 5865 # If they expressed no preference, don't include it. 5866 # 5867 if test $want_septel = yes; then 5868 { { echo "$as_me:$LINENO: error: Septel support only available with 'linux' and 'septel' packet capture types" >&5 5869echo "$as_me: error: Septel support only available with 'linux' and 'septel' packet capture types" >&2;} 5870 { (exit 1); exit 1; }; } 5871 elif test $want_septel = yes; then 5872 want_septel=no 5873 fi 5874 ;; 5875esac 5876 5877if test "$with_septel" != no; then 5878 echo "$as_me:$LINENO: checking whether we have Septel API" >&5 5879echo $ECHO_N "checking whether we have Septel API... $ECHO_C" >&6 5880 5881 if test -z "$septel_root"; then 5882 septel_root=$srcdir/../septel 5883 5884 fi 5885 5886 septel_tools_dir="$septel_root" 5887 septel_include_dir="$septel_root/INC" 5888 DEF="-DHAVE_SEPTEL_API" 5889 5890 ac_cv_lbl_septel_api=no 5891 if test -r "$septel_include_dir/msg.h"; then 5892 V_INCLS="$V_INCLS -I$septel_include_dir" 5893 V_DEFS="$V_DEFS $DEF" 5894 V_LIBS="$V_LIBS $septel_tools_dir/asciibin.o $septel_tools_dir/bit2byte.o $septel_tools_dir/confirm.o $septel_tools_dir/fmtmsg.o $septel_tools_dir/gct_unix.o $septel_tools_dir/hqueue.o $septel_tools_dir/ident.o $septel_tools_dir/mem.o $septel_tools_dir/pack.o $septel_tools_dir/parse.o $septel_tools_dir/pool.o $septel_tools_dir/sdlsig.o $septel_tools_dir/strtonum.o $septel_tools_dir/timer.o $septel_tools_dir/trace.o " 5895 5896 if test "$V_PCAP" != septel ; then 5897 SSRC="pcap-septel.c" 5898 5899 fi 5900 ac_cv_lbl_septel_api=yes 5901 fi 5902 5903 echo "$as_me:$LINENO: result: $ac_cv_lbl_septel_api" >&5 5904echo "${ECHO_T}$ac_cv_lbl_septel_api" >&6 5905 if test $ac_cv_lbl_septel_api = no; then 5906 if test "$want_septel" = yes; then 5907 { { echo "$as_me:$LINENO: error: Septel API not found under directory $septel_root; use --without-septel" >&5 5908echo "$as_me: error: Septel API not found under directory $septel_root; use --without-septel" >&2;} 5909 { (exit 1); exit 1; }; } 5910 fi 5911 else 5912 5913cat >>confdefs.h <<\_ACEOF 5914#define HAVE_SEPTEL_API 1 5915_ACEOF 5916 5917 fi 5918fi 5919 5920if test "$V_PCAP" = septel -a "$ac_cv_lbl_septel_api" = no; then 5921 { { echo "$as_me:$LINENO: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&5 5922echo "$as_me: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&2;} 5923 { (exit 1); exit 1; }; } 5924fi 5925 5926 5927 5928# Check whether --with-flex or --without-flex was given. 5929if test "${with_flex+set}" = set; then 5930 withval="$with_flex" 5931 5932fi; 5933 5934# Check whether --with-bison or --without-bison was given. 5935if test "${with_bison+set}" = set; then 5936 withval="$with_bison" 5937 5938fi; 5939 if test "$with_flex" = no ; then 5940 V_LEX=lex 5941 else 5942 for ac_prog in flex 5943do 5944 # Extract the first word of "$ac_prog", so it can be a program name with args. 5945set dummy $ac_prog; ac_word=$2 5946echo "$as_me:$LINENO: checking for $ac_word" >&5 5947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5948if test "${ac_cv_prog_V_LEX+set}" = set; then 5949 echo $ECHO_N "(cached) $ECHO_C" >&6 5950else 5951 if test -n "$V_LEX"; then 5952 ac_cv_prog_V_LEX="$V_LEX" # Let the user override the test. 5953else 5954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5955for as_dir in $PATH 5956do 5957 IFS=$as_save_IFS 5958 test -z "$as_dir" && as_dir=. 5959 for ac_exec_ext in '' $ac_executable_extensions; do 5960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5961 ac_cv_prog_V_LEX="$ac_prog" 5962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5963 break 2 5964 fi 5965done 5966done 5967 5968fi 5969fi 5970V_LEX=$ac_cv_prog_V_LEX 5971if test -n "$V_LEX"; then 5972 echo "$as_me:$LINENO: result: $V_LEX" >&5 5973echo "${ECHO_T}$V_LEX" >&6 5974else 5975 echo "$as_me:$LINENO: result: no" >&5 5976echo "${ECHO_T}no" >&6 5977fi 5978 5979 test -n "$V_LEX" && break 5980done 5981test -n "$V_LEX" || V_LEX="lex" 5982 5983 fi 5984 if test "$V_LEX" = flex ; then 5985 # The -V flag was added in 2.4 5986 echo "$as_me:$LINENO: checking for flex 2.4 or higher" >&5 5987echo $ECHO_N "checking for flex 2.4 or higher... $ECHO_C" >&6 5988 if test "${ac_cv_lbl_flex_v24+set}" = set; then 5989 echo $ECHO_N "(cached) $ECHO_C" >&6 5990else 5991 if flex -V >/dev/null 2>&1; then 5992 ac_cv_lbl_flex_v24=yes 5993 else 5994 ac_cv_lbl_flex_v24=no 5995 fi 5996fi 5997 5998 echo "$as_me:$LINENO: result: $ac_cv_lbl_flex_v24" >&5 5999echo "${ECHO_T}$ac_cv_lbl_flex_v24" >&6 6000 if test $ac_cv_lbl_flex_v24 = no ; then 6001 s="2.4 or higher required" 6002 { echo "$as_me:$LINENO: WARNING: ignoring obsolete flex executable ($s)" >&5 6003echo "$as_me: WARNING: ignoring obsolete flex executable ($s)" >&2;} 6004 V_LEX=lex 6005 fi 6006 fi 6007 if test "$with_bison" = no ; then 6008 V_YACC=yacc 6009 else 6010 for ac_prog in bison 6011do 6012 # Extract the first word of "$ac_prog", so it can be a program name with args. 6013set dummy $ac_prog; ac_word=$2 6014echo "$as_me:$LINENO: checking for $ac_word" >&5 6015echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6016if test "${ac_cv_prog_V_YACC+set}" = set; then 6017 echo $ECHO_N "(cached) $ECHO_C" >&6 6018else 6019 if test -n "$V_YACC"; then 6020 ac_cv_prog_V_YACC="$V_YACC" # Let the user override the test. 6021else 6022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6023for as_dir in $PATH 6024do 6025 IFS=$as_save_IFS 6026 test -z "$as_dir" && as_dir=. 6027 for ac_exec_ext in '' $ac_executable_extensions; do 6028 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6029 ac_cv_prog_V_YACC="$ac_prog" 6030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6031 break 2 6032 fi 6033done 6034done 6035 6036fi 6037fi 6038V_YACC=$ac_cv_prog_V_YACC 6039if test -n "$V_YACC"; then 6040 echo "$as_me:$LINENO: result: $V_YACC" >&5 6041echo "${ECHO_T}$V_YACC" >&6 6042else 6043 echo "$as_me:$LINENO: result: no" >&5 6044echo "${ECHO_T}no" >&6 6045fi 6046 6047 test -n "$V_YACC" && break 6048done 6049test -n "$V_YACC" || V_YACC="yacc" 6050 6051 fi 6052 if test "$V_YACC" = bison ; then 6053 V_YACC="$V_YACC -y" 6054 fi 6055 if test "$V_LEX" != lex -a "$V_YACC" = yacc -o "$V_LEX" = lex -a "$V_YACC" != yacc ; then 6056 { echo "$as_me:$LINENO: WARNING: don't have both flex and bison; reverting to lex/yacc" >&5 6057echo "$as_me: WARNING: don't have both flex and bison; reverting to lex/yacc" >&2;} 6058 V_LEX=lex 6059 V_YACC=yacc 6060 fi 6061 if test "$V_LEX" = flex -a -n "pcap_" ; then 6062 V_LEX="$V_LEX -Ppcap_" 6063 V_YACC="$V_YACC -p pcap_" 6064 fi 6065if test "$V_LEX" = lex ; then 6066# Some versions of lex can't handle the definitions section of scanner.l . 6067# Try lexing it and complain if it can't deal. 6068 echo "$as_me:$LINENO: checking for capable lex" >&5 6069echo $ECHO_N "checking for capable lex... $ECHO_C" >&6 6070if test "${tcpdump_cv_capable_lex+set}" = set; then 6071 echo $ECHO_N "(cached) $ECHO_C" >&6 6072else 6073 if lex -t scanner.l > /dev/null 2>&1; then 6074 tcpdump_cv_capable_lex=yes 6075 else 6076 tcpdump_cv_capable_lex=insufficient 6077 fi 6078fi 6079echo "$as_me:$LINENO: result: $tcpdump_cv_capable_lex" >&5 6080echo "${ECHO_T}$tcpdump_cv_capable_lex" >&6 6081 if test $tcpdump_cv_capable_lex = insufficient ; then 6082 { { echo "$as_me:$LINENO: error: Your operating system's lex is insufficient to compile 6083 libpcap. flex is a lex replacement that has many advantages, including 6084 being able to compile libpcap. For more information, see 6085 http://www.gnu.org/software/flex/flex.html ." >&5 6086echo "$as_me: error: Your operating system's lex is insufficient to compile 6087 libpcap. flex is a lex replacement that has many advantages, including 6088 being able to compile libpcap. For more information, see 6089 http://www.gnu.org/software/flex/flex.html ." >&2;} 6090 { (exit 1); exit 1; }; } 6091 fi 6092fi 6093 6094DYEXT="so" 6095case "$host_os" in 6096 6097aix*) 6098 6099cat >>confdefs.h <<\_ACEOF 6100#define _SUN 1 6101_ACEOF 6102 6103 ;; 6104 6105hpux9*) 6106 6107cat >>confdefs.h <<\_ACEOF 6108#define HAVE_HPUX9 1 6109_ACEOF 6110 6111 ;; 6112 6113hpux10.0*) 6114 ;; 6115 6116hpux10.1*) 6117 ;; 6118 6119hpux*) 6120 6121cat >>confdefs.h <<\_ACEOF 6122#define HAVE_HPUX10_20_OR_LATER 1 6123_ACEOF 6124 6125 ;; 6126 6127sinix*) 6128 echo "$as_me:$LINENO: checking if SINIX compiler defines sinix" >&5 6129echo $ECHO_N "checking if SINIX compiler defines sinix... $ECHO_C" >&6 6130 if test "${ac_cv_cc_sinix_defined+set}" = set; then 6131 echo $ECHO_N "(cached) $ECHO_C" >&6 6132else 6133 cat >conftest.$ac_ext <<_ACEOF 6134#line $LINENO "configure" 6135/* confdefs.h. */ 6136_ACEOF 6137cat confdefs.h >>conftest.$ac_ext 6138cat >>conftest.$ac_ext <<_ACEOF 6139/* end confdefs.h. */ 6140 6141int 6142main () 6143{ 6144int i = sinix; 6145 ; 6146 return 0; 6147} 6148_ACEOF 6149rm -f conftest.$ac_objext 6150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6151 (eval $ac_compile) 2>&5 6152 ac_status=$? 6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6154 (exit $ac_status); } && 6155 { ac_try='test -s conftest.$ac_objext' 6156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6157 (eval $ac_try) 2>&5 6158 ac_status=$? 6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6160 (exit $ac_status); }; }; then 6161 ac_cv_cc_sinix_defined=yes 6162else 6163 echo "$as_me: failed program was:" >&5 6164sed 's/^/| /' conftest.$ac_ext >&5 6165 6166ac_cv_cc_sinix_defined=no 6167fi 6168rm -f conftest.$ac_objext conftest.$ac_ext 6169fi 6170 6171 echo "$as_me:$LINENO: result: $ac_cv_cc_sinix_defined" >&5 6172echo "${ECHO_T}$ac_cv_cc_sinix_defined" >&6 6173 if test $ac_cv_cc_sinix_defined = no ; then 6174 6175cat >>confdefs.h <<\_ACEOF 6176#define sinix 1 6177_ACEOF 6178 6179 fi 6180 ;; 6181 6182solaris*) 6183 6184cat >>confdefs.h <<\_ACEOF 6185#define HAVE_SOLARIS 1 6186_ACEOF 6187 6188 ;; 6189 6190darwin*) 6191 DYEXT="dylib" 6192 V_CCOPT="$V_CCOPT -fno-common" 6193 ;; 6194esac 6195 6196if test -n "$ac_tool_prefix"; then 6197 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6198set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6199echo "$as_me:$LINENO: checking for $ac_word" >&5 6200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6201if test "${ac_cv_prog_RANLIB+set}" = set; then 6202 echo $ECHO_N "(cached) $ECHO_C" >&6 6203else 6204 if test -n "$RANLIB"; then 6205 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6206else 6207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6208for as_dir in $PATH 6209do 6210 IFS=$as_save_IFS 6211 test -z "$as_dir" && as_dir=. 6212 for ac_exec_ext in '' $ac_executable_extensions; do 6213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6214 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6216 break 2 6217 fi 6218done 6219done 6220 6221fi 6222fi 6223RANLIB=$ac_cv_prog_RANLIB 6224if test -n "$RANLIB"; then 6225 echo "$as_me:$LINENO: result: $RANLIB" >&5 6226echo "${ECHO_T}$RANLIB" >&6 6227else 6228 echo "$as_me:$LINENO: result: no" >&5 6229echo "${ECHO_T}no" >&6 6230fi 6231 6232fi 6233if test -z "$ac_cv_prog_RANLIB"; then 6234 ac_ct_RANLIB=$RANLIB 6235 # Extract the first word of "ranlib", so it can be a program name with args. 6236set dummy ranlib; ac_word=$2 6237echo "$as_me:$LINENO: checking for $ac_word" >&5 6238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6239if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6240 echo $ECHO_N "(cached) $ECHO_C" >&6 6241else 6242 if test -n "$ac_ct_RANLIB"; then 6243 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6244else 6245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6246for as_dir in $PATH 6247do 6248 IFS=$as_save_IFS 6249 test -z "$as_dir" && as_dir=. 6250 for ac_exec_ext in '' $ac_executable_extensions; do 6251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6252 ac_cv_prog_ac_ct_RANLIB="ranlib" 6253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6254 break 2 6255 fi 6256done 6257done 6258 6259 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 6260fi 6261fi 6262ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6263if test -n "$ac_ct_RANLIB"; then 6264 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6265echo "${ECHO_T}$ac_ct_RANLIB" >&6 6266else 6267 echo "$as_me:$LINENO: result: no" >&5 6268echo "${ECHO_T}no" >&6 6269fi 6270 6271 RANLIB=$ac_ct_RANLIB 6272else 6273 RANLIB="$ac_cv_prog_RANLIB" 6274fi 6275 6276 6277rm -f os-proto.h 6278 if test "${LBL_CFLAGS+set}" = set; then 6279 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}" 6280 fi 6281 if test -f .devel ; then 6282 if test "$GCC" = yes ; then 6283 if test "${LBL_CFLAGS+set}" != set; then 6284 if test "$ac_cv_prog_cc_g" = yes ; then 6285 V_CCOPT="-g $V_CCOPT" 6286 fi 6287 V_CCOPT="$V_CCOPT -Wall" 6288 if test $ac_cv_lbl_gcc_vers -gt 1 ; then 6289 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes" 6290 fi 6291 fi 6292 else 6293 case "$target_os" in 6294 6295 irix6*) 6296 V_CCOPT="$V_CCOPT -n32" 6297 ;; 6298 6299 *) 6300 ;; 6301 esac 6302 fi 6303 os=`echo $target_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'` 6304 name="lbl/os-$os.h" 6305 if test -f $name ; then 6306 ln -s $name os-proto.h 6307 6308cat >>confdefs.h <<\_ACEOF 6309#define HAVE_OS_PROTO_H 1 6310_ACEOF 6311 6312 else 6313 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5 6314echo "$as_me: WARNING: can't find $name" >&2;} 6315 fi 6316 fi 6317 6318echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5 6319echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6 6320 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then 6321 echo $ECHO_N "(cached) $ECHO_C" >&6 6322else 6323 cat >conftest.$ac_ext <<_ACEOF 6324#line $LINENO "configure" 6325/* confdefs.h. */ 6326_ACEOF 6327cat confdefs.h >>conftest.$ac_ext 6328cat >>conftest.$ac_ext <<_ACEOF 6329/* end confdefs.h. */ 6330 6331# include <sys/types.h> 6332# include <sys/socket.h> 6333int 6334main () 6335{ 6336u_int i = sizeof(((struct sockaddr *)0)->sa_len) 6337 ; 6338 return 0; 6339} 6340_ACEOF 6341rm -f conftest.$ac_objext 6342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6343 (eval $ac_compile) 2>&5 6344 ac_status=$? 6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6346 (exit $ac_status); } && 6347 { ac_try='test -s conftest.$ac_objext' 6348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6349 (eval $ac_try) 2>&5 6350 ac_status=$? 6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6352 (exit $ac_status); }; }; then 6353 ac_cv_lbl_sockaddr_has_sa_len=yes 6354else 6355 echo "$as_me: failed program was:" >&5 6356sed 's/^/| /' conftest.$ac_ext >&5 6357 6358ac_cv_lbl_sockaddr_has_sa_len=no 6359fi 6360rm -f conftest.$ac_objext conftest.$ac_ext 6361fi 6362 6363 echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5 6364echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6 6365 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then 6366 6367cat >>confdefs.h <<\_ACEOF 6368#define HAVE_SOCKADDR_SA_LEN 1 6369_ACEOF 6370 6371 fi 6372 6373echo "$as_me:$LINENO: checking if sockaddr_storage struct exists" >&5 6374echo $ECHO_N "checking if sockaddr_storage struct exists... $ECHO_C" >&6 6375 if test "${ac_cv_lbl_has_sockaddr_storage+set}" = set; then 6376 echo $ECHO_N "(cached) $ECHO_C" >&6 6377else 6378 cat >conftest.$ac_ext <<_ACEOF 6379#line $LINENO "configure" 6380/* confdefs.h. */ 6381_ACEOF 6382cat confdefs.h >>conftest.$ac_ext 6383cat >>conftest.$ac_ext <<_ACEOF 6384/* end confdefs.h. */ 6385 6386# include <sys/types.h> 6387# include <sys/socket.h> 6388int 6389main () 6390{ 6391u_int i = sizeof (struct sockaddr_storage) 6392 ; 6393 return 0; 6394} 6395_ACEOF 6396rm -f conftest.$ac_objext 6397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6398 (eval $ac_compile) 2>&5 6399 ac_status=$? 6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6401 (exit $ac_status); } && 6402 { ac_try='test -s conftest.$ac_objext' 6403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6404 (eval $ac_try) 2>&5 6405 ac_status=$? 6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6407 (exit $ac_status); }; }; then 6408 ac_cv_lbl_has_sockaddr_storage=yes 6409else 6410 echo "$as_me: failed program was:" >&5 6411sed 's/^/| /' conftest.$ac_ext >&5 6412 6413ac_cv_lbl_has_sockaddr_storage=no 6414fi 6415rm -f conftest.$ac_objext conftest.$ac_ext 6416fi 6417 6418 echo "$as_me:$LINENO: result: $ac_cv_lbl_has_sockaddr_storage" >&5 6419echo "${ECHO_T}$ac_cv_lbl_has_sockaddr_storage" >&6 6420 if test $ac_cv_lbl_has_sockaddr_storage = yes ; then 6421 6422cat >>confdefs.h <<\_ACEOF 6423#define HAVE_SOCKADDR_STORAGE 1 6424_ACEOF 6425 6426 fi 6427 6428echo "$as_me:$LINENO: checking if dl_hp_ppa_info_t struct has dl_module_id_1 member" >&5 6429echo $ECHO_N "checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... $ECHO_C" >&6 6430 if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then 6431 echo $ECHO_N "(cached) $ECHO_C" >&6 6432else 6433 cat >conftest.$ac_ext <<_ACEOF 6434#line $LINENO "configure" 6435/* confdefs.h. */ 6436_ACEOF 6437cat confdefs.h >>conftest.$ac_ext 6438cat >>conftest.$ac_ext <<_ACEOF 6439/* end confdefs.h. */ 6440 6441# include <sys/types.h> 6442# include <sys/dlpi.h> 6443# include <sys/dlpi_ext.h> 6444int 6445main () 6446{ 6447u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1) 6448 ; 6449 return 0; 6450} 6451_ACEOF 6452rm -f conftest.$ac_objext 6453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6454 (eval $ac_compile) 2>&5 6455 ac_status=$? 6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6457 (exit $ac_status); } && 6458 { ac_try='test -s conftest.$ac_objext' 6459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6460 (eval $ac_try) 2>&5 6461 ac_status=$? 6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6463 (exit $ac_status); }; }; then 6464 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=yes 6465else 6466 echo "$as_me: failed program was:" >&5 6467sed 's/^/| /' conftest.$ac_ext >&5 6468 6469ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=no 6470fi 6471rm -f conftest.$ac_objext conftest.$ac_ext 6472fi 6473 6474 echo "$as_me:$LINENO: result: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5 6475echo "${ECHO_T}$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6 6476 if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then 6477 6478cat >>confdefs.h <<\_ACEOF 6479#define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1 6480_ACEOF 6481 6482 fi 6483 6484echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5 6485echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6 6486 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then 6487 echo $ECHO_N "(cached) $ECHO_C" >&6 6488else 6489 case "$host_cpu" in 6490 6491 # 6492 # These are CPU types where: 6493 # 6494 # the CPU faults on an unaligned access, but at least some 6495 # OSes that support that CPU catch the fault and simulate 6496 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) - 6497 # the simulation is slow, so we don't want to use it; 6498 # 6499 # the CPU, I infer (from the old 6500 # 6501 # XXX: should also check that they don't do weird things (like on arm) 6502 # 6503 # comment) doesn't fault on unaligned accesses, but doesn't 6504 # do a normal unaligned fetch, either (e.g., presumably, ARM); 6505 # 6506 # for whatever reason, the test program doesn't work 6507 # (this has been claimed to be the case for several of those 6508 # CPUs - I don't know what the problem is; the problem 6509 # was reported as "the test program dumps core" for SuperH, 6510 # but that's what the test program is *supposed* to do - 6511 # it dumps core before it writes anything, so the test 6512 # for an empty output file should find an empty output 6513 # file and conclude that unaligned accesses don't work). 6514 # 6515 # This run-time test won't work if you're cross-compiling, so 6516 # in order to support cross-compiling for a particular CPU, 6517 # we have to wire in the list of CPU types anyway, as far as 6518 # I know, so perhaps we should just have a set of CPUs on 6519 # which we know it doesn't work, a set of CPUs on which we 6520 # know it does work, and have the script just fail on other 6521 # cpu types and update it when such a failure occurs. 6522 # 6523 alpha*|arm*|hp*|mips*|sh*|sparc*|ia64|nv1) 6524 ac_cv_lbl_unaligned_fail=yes 6525 ;; 6526 6527 *) 6528 cat >conftest.c <<EOF 6529# include <sys/types.h> 6530# include <sys/wait.h> 6531# include <stdio.h> 6532 unsigned char a[5] = { 1, 2, 3, 4, 5 }; 6533 main() { 6534 unsigned int i; 6535 pid_t pid; 6536 int status; 6537 /* avoid "core dumped" message */ 6538 pid = fork(); 6539 if (pid < 0) 6540 exit(2); 6541 if (pid > 0) { 6542 /* parent */ 6543 pid = waitpid(pid, &status, 0); 6544 if (pid < 0) 6545 exit(3); 6546 exit(!WIFEXITED(status)); 6547 } 6548 /* child */ 6549 i = *(unsigned int *)&a[1]; 6550 printf("%d\n", i); 6551 exit(0); 6552 } 6553EOF 6554 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \ 6555 conftest.c $LIBS >/dev/null 2>&1 6556 if test ! -x conftest ; then 6557 ac_cv_lbl_unaligned_fail=yes 6558 else 6559 ./conftest >conftest.out 6560 if test ! -s conftest.out ; then 6561 ac_cv_lbl_unaligned_fail=yes 6562 else 6563 ac_cv_lbl_unaligned_fail=no 6564 fi 6565 fi 6566 rm -f conftest* core core.conftest 6567 ;; 6568 esac 6569fi 6570 6571 echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5 6572echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6 6573 if test $ac_cv_lbl_unaligned_fail = yes ; then 6574 6575cat >>confdefs.h <<\_ACEOF 6576#define LBL_ALIGN 1 6577_ACEOF 6578 6579 fi 6580 6581# 6582# Makefile.in includes rules to generate version.h, so we assume 6583# that it will be generated if autoconf is used. 6584# 6585 6586cat >>confdefs.h <<\_ACEOF 6587#define HAVE_VERSION_H 1 6588_ACEOF 6589 6590 6591rm -f net 6592ln -s ${srcdir}/bpf/net net 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606# Find a good install program. We prefer a C program (faster), 6607# so one script is as good as another. But avoid the broken or 6608# incompatible versions: 6609# SysV /etc/install, /usr/sbin/install 6610# SunOS /usr/etc/install 6611# IRIX /sbin/install 6612# AIX /bin/install 6613# AmigaOS /C/install, which installs bootblocks on floppy discs 6614# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 6615# AFS /usr/afsws/bin/install, which mishandles nonexistent args 6616# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 6617# ./install, which can be erroneously created by make from ./install.sh. 6618echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 6619echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 6620if test -z "$INSTALL"; then 6621if test "${ac_cv_path_install+set}" = set; then 6622 echo $ECHO_N "(cached) $ECHO_C" >&6 6623else 6624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6625for as_dir in $PATH 6626do 6627 IFS=$as_save_IFS 6628 test -z "$as_dir" && as_dir=. 6629 # Account for people who put trailing slashes in PATH elements. 6630case $as_dir/ in 6631 ./ | .// | /cC/* | \ 6632 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 6633 /usr/ucb/* ) ;; 6634 *) 6635 # OSF1 and SCO ODT 3.0 have their own names for install. 6636 # Don't use installbsd from OSF since it installs stuff as root 6637 # by default. 6638 for ac_prog in ginstall scoinst install; do 6639 for ac_exec_ext in '' $ac_executable_extensions; do 6640 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 6641 if test $ac_prog = install && 6642 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 6643 # AIX install. It has an incompatible calling convention. 6644 : 6645 elif test $ac_prog = install && 6646 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 6647 # program-specific install script used by HP pwplus--don't use. 6648 : 6649 else 6650 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 6651 break 3 6652 fi 6653 fi 6654 done 6655 done 6656 ;; 6657esac 6658done 6659 6660 6661fi 6662 if test "${ac_cv_path_install+set}" = set; then 6663 INSTALL=$ac_cv_path_install 6664 else 6665 # As a last resort, use the slow shell script. We don't cache a 6666 # path for INSTALL within a source directory, because that will 6667 # break other packages using the cache if that directory is 6668 # removed, or if the path is relative. 6669 INSTALL=$ac_install_sh 6670 fi 6671fi 6672echo "$as_me:$LINENO: result: $INSTALL" >&5 6673echo "${ECHO_T}$INSTALL" >&6 6674 6675# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 6676# It thinks the first close brace ends the variable substitution. 6677test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 6678 6679test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 6680 6681test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 6682 6683 6684 ac_config_headers="$ac_config_headers config.h" 6685 6686 6687 ac_config_files="$ac_config_files Makefile" 6688cat >confcache <<\_ACEOF 6689# This file is a shell script that caches the results of configure 6690# tests run on this system so they can be shared between configure 6691# scripts and configure runs, see configure's option --config-cache. 6692# It is not useful on other systems. If it contains results you don't 6693# want to keep, you may remove or edit it. 6694# 6695# config.status only pays attention to the cache file if you give it 6696# the --recheck option to rerun configure. 6697# 6698# `ac_cv_env_foo' variables (set or unset) will be overridden when 6699# loading this file, other *unset* `ac_cv_foo' will be assigned the 6700# following values. 6701 6702_ACEOF 6703 6704# The following way of writing the cache mishandles newlines in values, 6705# but we know of no workaround that is simple, portable, and efficient. 6706# So, don't put newlines in cache variables' values. 6707# Ultrix sh set writes to stderr and can't be redirected directly, 6708# and sets the high bit in the cache file unless we assign to the vars. 6709{ 6710 (set) 2>&1 | 6711 case `(ac_space=' '; set | grep ac_space) 2>&1` in 6712 *ac_space=\ *) 6713 # `set' does not quote correctly, so add quotes (double-quote 6714 # substitution turns \\\\ into \\, and sed turns \\ into \). 6715 sed -n \ 6716 "s/'/'\\\\''/g; 6717 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 6718 ;; 6719 *) 6720 # `set' quotes correctly as required by POSIX, so do not add quotes. 6721 sed -n \ 6722 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 6723 ;; 6724 esac; 6725} | 6726 sed ' 6727 t clear 6728 : clear 6729 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 6730 t end 6731 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 6732 : end' >>confcache 6733if diff $cache_file confcache >/dev/null 2>&1; then :; else 6734 if test -w $cache_file; then 6735 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 6736 cat confcache >$cache_file 6737 else 6738 echo "not updating unwritable cache $cache_file" 6739 fi 6740fi 6741rm -f confcache 6742 6743test "x$prefix" = xNONE && prefix=$ac_default_prefix 6744# Let make expand exec_prefix. 6745test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 6746 6747# VPATH may cause trouble with some makes, so we remove $(srcdir), 6748# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 6749# trailing colons and then remove the whole line if VPATH becomes empty 6750# (actually we leave an empty line to preserve line numbers). 6751if test "x$srcdir" = x.; then 6752 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 6753s/:*\$(srcdir):*/:/; 6754s/:*\${srcdir}:*/:/; 6755s/:*@srcdir@:*/:/; 6756s/^\([^=]*=[ ]*\):*/\1/; 6757s/:*$//; 6758s/^[^=]*=[ ]*$//; 6759}' 6760fi 6761 6762DEFS=-DHAVE_CONFIG_H 6763 6764ac_libobjs= 6765ac_ltlibobjs= 6766for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 6767 # 1. Remove the extension, and $U if already installed. 6768 ac_i=`echo "$ac_i" | 6769 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 6770 # 2. Add them. 6771 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 6772 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 6773done 6774LIBOBJS=$ac_libobjs 6775 6776LTLIBOBJS=$ac_ltlibobjs 6777 6778 6779 6780: ${CONFIG_STATUS=./config.status} 6781ac_clean_files_save=$ac_clean_files 6782ac_clean_files="$ac_clean_files $CONFIG_STATUS" 6783{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 6784echo "$as_me: creating $CONFIG_STATUS" >&6;} 6785cat >$CONFIG_STATUS <<_ACEOF 6786#! $SHELL 6787# Generated by $as_me. 6788# Run this file to recreate the current configuration. 6789# Compiler output produced by configure, useful for debugging 6790# configure, is in config.log if it exists. 6791 6792debug=false 6793ac_cs_recheck=false 6794ac_cs_silent=false 6795SHELL=\${CONFIG_SHELL-$SHELL} 6796_ACEOF 6797 6798cat >>$CONFIG_STATUS <<\_ACEOF 6799## --------------------- ## 6800## M4sh Initialization. ## 6801## --------------------- ## 6802 6803# Be Bourne compatible 6804if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 6805 emulate sh 6806 NULLCMD=: 6807 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 6808 # is contrary to our usage. Disable this feature. 6809 alias -g '${1+"$@"}'='"$@"' 6810elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 6811 set -o posix 6812fi 6813 6814# Support unset when possible. 6815if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 6816 as_unset=unset 6817else 6818 as_unset=false 6819fi 6820 6821 6822# Work around bugs in pre-3.0 UWIN ksh. 6823$as_unset ENV MAIL MAILPATH 6824PS1='$ ' 6825PS2='> ' 6826PS4='+ ' 6827 6828# NLS nuisances. 6829for as_var in \ 6830 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 6831 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 6832 LC_TELEPHONE LC_TIME 6833do 6834 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then 6835 eval $as_var=C; export $as_var 6836 else 6837 $as_unset $as_var 6838 fi 6839done 6840 6841# Required to use basename. 6842if expr a : '\(a\)' >/dev/null 2>&1; then 6843 as_expr=expr 6844else 6845 as_expr=false 6846fi 6847 6848if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 6849 as_basename=basename 6850else 6851 as_basename=false 6852fi 6853 6854 6855# Name of the executable. 6856as_me=`$as_basename "$0" || 6857$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 6858 X"$0" : 'X\(//\)$' \| \ 6859 X"$0" : 'X\(/\)$' \| \ 6860 . : '\(.\)' 2>/dev/null || 6861echo X/"$0" | 6862 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 6863 /^X\/\(\/\/\)$/{ s//\1/; q; } 6864 /^X\/\(\/\).*/{ s//\1/; q; } 6865 s/.*/./; q'` 6866 6867 6868# PATH needs CR, and LINENO needs CR and PATH. 6869# Avoid depending upon Character Ranges. 6870as_cr_letters='abcdefghijklmnopqrstuvwxyz' 6871as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 6872as_cr_Letters=$as_cr_letters$as_cr_LETTERS 6873as_cr_digits='0123456789' 6874as_cr_alnum=$as_cr_Letters$as_cr_digits 6875 6876# The user is always right. 6877if test "${PATH_SEPARATOR+set}" != set; then 6878 echo "#! /bin/sh" >conf$$.sh 6879 echo "exit 0" >>conf$$.sh 6880 chmod +x conf$$.sh 6881 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 6882 PATH_SEPARATOR=';' 6883 else 6884 PATH_SEPARATOR=: 6885 fi 6886 rm -f conf$$.sh 6887fi 6888 6889 6890 as_lineno_1=$LINENO 6891 as_lineno_2=$LINENO 6892 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 6893 test "x$as_lineno_1" != "x$as_lineno_2" && 6894 test "x$as_lineno_3" = "x$as_lineno_2" || { 6895 # Find who we are. Look in the path if we contain no path at all 6896 # relative or not. 6897 case $0 in 6898 *[\\/]* ) as_myself=$0 ;; 6899 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6900for as_dir in $PATH 6901do 6902 IFS=$as_save_IFS 6903 test -z "$as_dir" && as_dir=. 6904 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 6905done 6906 6907 ;; 6908 esac 6909 # We did not find ourselves, most probably we were run as `sh COMMAND' 6910 # in which case we are not to be found in the path. 6911 if test "x$as_myself" = x; then 6912 as_myself=$0 6913 fi 6914 if test ! -f "$as_myself"; then 6915 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 6916echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 6917 { (exit 1); exit 1; }; } 6918 fi 6919 case $CONFIG_SHELL in 6920 '') 6921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6922for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 6923do 6924 IFS=$as_save_IFS 6925 test -z "$as_dir" && as_dir=. 6926 for as_base in sh bash ksh sh5; do 6927 case $as_dir in 6928 /*) 6929 if ("$as_dir/$as_base" -c ' 6930 as_lineno_1=$LINENO 6931 as_lineno_2=$LINENO 6932 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 6933 test "x$as_lineno_1" != "x$as_lineno_2" && 6934 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 6935 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 6936 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 6937 CONFIG_SHELL=$as_dir/$as_base 6938 export CONFIG_SHELL 6939 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 6940 fi;; 6941 esac 6942 done 6943done 6944;; 6945 esac 6946 6947 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 6948 # uniformly replaced by the line number. The first 'sed' inserts a 6949 # line-number line before each line; the second 'sed' does the real 6950 # work. The second script uses 'N' to pair each line-number line 6951 # with the numbered line, and appends trailing '-' during 6952 # substitution so that $LINENO is not a special case at line end. 6953 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 6954 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 6955 sed '=' <$as_myself | 6956 sed ' 6957 N 6958 s,$,-, 6959 : loop 6960 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 6961 t loop 6962 s,-$,, 6963 s,^['$as_cr_digits']*\n,, 6964 ' >$as_me.lineno && 6965 chmod +x $as_me.lineno || 6966 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 6967echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 6968 { (exit 1); exit 1; }; } 6969 6970 # Don't try to exec as it changes $[0], causing all sort of problems 6971 # (the dirname of $[0] is not the place where we might find the 6972 # original and so on. Autoconf is especially sensible to this). 6973 . ./$as_me.lineno 6974 # Exit status is that of the last command. 6975 exit 6976} 6977 6978 6979case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 6980 *c*,-n*) ECHO_N= ECHO_C=' 6981' ECHO_T=' ' ;; 6982 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 6983 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 6984esac 6985 6986if expr a : '\(a\)' >/dev/null 2>&1; then 6987 as_expr=expr 6988else 6989 as_expr=false 6990fi 6991 6992rm -f conf$$ conf$$.exe conf$$.file 6993echo >conf$$.file 6994if ln -s conf$$.file conf$$ 2>/dev/null; then 6995 # We could just check for DJGPP; but this test a) works b) is more generic 6996 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 6997 if test -f conf$$.exe; then 6998 # Don't use ln at all; we don't have any links 6999 as_ln_s='cp -p' 7000 else 7001 as_ln_s='ln -s' 7002 fi 7003elif ln conf$$.file conf$$ 2>/dev/null; then 7004 as_ln_s=ln 7005else 7006 as_ln_s='cp -p' 7007fi 7008rm -f conf$$ conf$$.exe conf$$.file 7009 7010if mkdir -p . 2>/dev/null; then 7011 as_mkdir_p=: 7012else 7013 as_mkdir_p=false 7014fi 7015 7016as_executable_p="test -f" 7017 7018# Sed expression to map a string onto a valid CPP name. 7019as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 7020 7021# Sed expression to map a string onto a valid variable name. 7022as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 7023 7024 7025# IFS 7026# We need space, tab and new line, in precisely that order. 7027as_nl=' 7028' 7029IFS=" $as_nl" 7030 7031# CDPATH. 7032$as_unset CDPATH 7033 7034exec 6>&1 7035 7036# Open the log real soon, to keep \$[0] and so on meaningful, and to 7037# report actual input values of CONFIG_FILES etc. instead of their 7038# values after options handling. Logging --version etc. is OK. 7039exec 5>>config.log 7040{ 7041 echo 7042 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 7043## Running $as_me. ## 7044_ASBOX 7045} >&5 7046cat >&5 <<_CSEOF 7047 7048This file was extended by $as_me, which was 7049generated by GNU Autoconf 2.57. Invocation command line was 7050 7051 CONFIG_FILES = $CONFIG_FILES 7052 CONFIG_HEADERS = $CONFIG_HEADERS 7053 CONFIG_LINKS = $CONFIG_LINKS 7054 CONFIG_COMMANDS = $CONFIG_COMMANDS 7055 $ $0 $@ 7056 7057_CSEOF 7058echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 7059echo >&5 7060_ACEOF 7061 7062# Files that config.status was made for. 7063if test -n "$ac_config_files"; then 7064 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 7065fi 7066 7067if test -n "$ac_config_headers"; then 7068 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 7069fi 7070 7071if test -n "$ac_config_links"; then 7072 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 7073fi 7074 7075if test -n "$ac_config_commands"; then 7076 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 7077fi 7078 7079cat >>$CONFIG_STATUS <<\_ACEOF 7080 7081ac_cs_usage="\ 7082\`$as_me' instantiates files from templates according to the 7083current configuration. 7084 7085Usage: $0 [OPTIONS] [FILE]... 7086 7087 -h, --help print this help, then exit 7088 -V, --version print version number, then exit 7089 -q, --quiet do not print progress messages 7090 -d, --debug don't remove temporary files 7091 --recheck update $as_me by reconfiguring in the same conditions 7092 --file=FILE[:TEMPLATE] 7093 instantiate the configuration file FILE 7094 --header=FILE[:TEMPLATE] 7095 instantiate the configuration header FILE 7096 7097Configuration files: 7098$config_files 7099 7100Configuration headers: 7101$config_headers 7102 7103Report bugs to <bug-autoconf@gnu.org>." 7104_ACEOF 7105 7106cat >>$CONFIG_STATUS <<_ACEOF 7107ac_cs_version="\\ 7108config.status 7109configured by $0, generated by GNU Autoconf 2.57, 7110 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 7111 7112Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 7113Free Software Foundation, Inc. 7114This config.status script is free software; the Free Software Foundation 7115gives unlimited permission to copy, distribute and modify it." 7116srcdir=$srcdir 7117INSTALL="$INSTALL" 7118_ACEOF 7119 7120cat >>$CONFIG_STATUS <<\_ACEOF 7121# If no file are specified by the user, then we need to provide default 7122# value. By we need to know if files were specified by the user. 7123ac_need_defaults=: 7124while test $# != 0 7125do 7126 case $1 in 7127 --*=*) 7128 ac_option=`expr "x$1" : 'x\([^=]*\)='` 7129 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 7130 ac_shift=: 7131 ;; 7132 -*) 7133 ac_option=$1 7134 ac_optarg=$2 7135 ac_shift=shift 7136 ;; 7137 *) # This is not an option, so the user has probably given explicit 7138 # arguments. 7139 ac_option=$1 7140 ac_need_defaults=false;; 7141 esac 7142 7143 case $ac_option in 7144 # Handling of the options. 7145_ACEOF 7146cat >>$CONFIG_STATUS <<\_ACEOF 7147 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 7148 ac_cs_recheck=: ;; 7149 --version | --vers* | -V ) 7150 echo "$ac_cs_version"; exit 0 ;; 7151 --he | --h) 7152 # Conflict between --help and --header 7153 { { echo "$as_me:$LINENO: error: ambiguous option: $1 7154Try \`$0 --help' for more information." >&5 7155echo "$as_me: error: ambiguous option: $1 7156Try \`$0 --help' for more information." >&2;} 7157 { (exit 1); exit 1; }; };; 7158 --help | --hel | -h ) 7159 echo "$ac_cs_usage"; exit 0 ;; 7160 --debug | --d* | -d ) 7161 debug=: ;; 7162 --file | --fil | --fi | --f ) 7163 $ac_shift 7164 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 7165 ac_need_defaults=false;; 7166 --header | --heade | --head | --hea ) 7167 $ac_shift 7168 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 7169 ac_need_defaults=false;; 7170 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 7171 | -silent | --silent | --silen | --sile | --sil | --si | --s) 7172 ac_cs_silent=: ;; 7173 7174 # This is an error. 7175 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 7176Try \`$0 --help' for more information." >&5 7177echo "$as_me: error: unrecognized option: $1 7178Try \`$0 --help' for more information." >&2;} 7179 { (exit 1); exit 1; }; } ;; 7180 7181 *) ac_config_targets="$ac_config_targets $1" ;; 7182 7183 esac 7184 shift 7185done 7186 7187ac_configure_extra_args= 7188 7189if $ac_cs_silent; then 7190 exec 6>/dev/null 7191 ac_configure_extra_args="$ac_configure_extra_args --silent" 7192fi 7193 7194_ACEOF 7195cat >>$CONFIG_STATUS <<_ACEOF 7196if \$ac_cs_recheck; then 7197 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 7198 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 7199fi 7200 7201_ACEOF 7202 7203 7204 7205 7206 7207cat >>$CONFIG_STATUS <<\_ACEOF 7208for ac_config_target in $ac_config_targets 7209do 7210 case "$ac_config_target" in 7211 # Handling of arguments. 7212 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 7213 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 7214 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 7215echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 7216 { (exit 1); exit 1; }; };; 7217 esac 7218done 7219 7220# If the user did not use the arguments to specify the items to instantiate, 7221# then the envvar interface is used. Set only those that are not. 7222# We use the long form for the default assignment because of an extremely 7223# bizarre bug on SunOS 4.1.3. 7224if $ac_need_defaults; then 7225 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 7226 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 7227fi 7228 7229# Have a temporary directory for convenience. Make it in the build tree 7230# simply because there is no reason to put it here, and in addition, 7231# creating and moving files from /tmp can sometimes cause problems. 7232# Create a temporary directory, and hook for its removal unless debugging. 7233$debug || 7234{ 7235 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 7236 trap '{ (exit 1); exit 1; }' 1 2 13 15 7237} 7238 7239# Create a (secure) tmp directory for tmp files. 7240 7241{ 7242 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 7243 test -n "$tmp" && test -d "$tmp" 7244} || 7245{ 7246 tmp=./confstat$$-$RANDOM 7247 (umask 077 && mkdir $tmp) 7248} || 7249{ 7250 echo "$me: cannot create a temporary directory in ." >&2 7251 { (exit 1); exit 1; } 7252} 7253 7254_ACEOF 7255 7256cat >>$CONFIG_STATUS <<_ACEOF 7257 7258# 7259# CONFIG_FILES section. 7260# 7261 7262# No need to generate the scripts if there are no CONFIG_FILES. 7263# This happens for instance when ./config.status config.h 7264if test -n "\$CONFIG_FILES"; then 7265 # Protect against being on the right side of a sed subst in config.status. 7266 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 7267 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 7268s,@SHELL@,$SHELL,;t t 7269s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 7270s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 7271s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 7272s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 7273s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 7274s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 7275s,@exec_prefix@,$exec_prefix,;t t 7276s,@prefix@,$prefix,;t t 7277s,@program_transform_name@,$program_transform_name,;t t 7278s,@bindir@,$bindir,;t t 7279s,@sbindir@,$sbindir,;t t 7280s,@libexecdir@,$libexecdir,;t t 7281s,@datadir@,$datadir,;t t 7282s,@sysconfdir@,$sysconfdir,;t t 7283s,@sharedstatedir@,$sharedstatedir,;t t 7284s,@localstatedir@,$localstatedir,;t t 7285s,@libdir@,$libdir,;t t 7286s,@includedir@,$includedir,;t t 7287s,@oldincludedir@,$oldincludedir,;t t 7288s,@infodir@,$infodir,;t t 7289s,@mandir@,$mandir,;t t 7290s,@build_alias@,$build_alias,;t t 7291s,@host_alias@,$host_alias,;t t 7292s,@target_alias@,$target_alias,;t t 7293s,@DEFS@,$DEFS,;t t 7294s,@ECHO_C@,$ECHO_C,;t t 7295s,@ECHO_N@,$ECHO_N,;t t 7296s,@ECHO_T@,$ECHO_T,;t t 7297s,@LIBS@,$LIBS,;t t 7298s,@build@,$build,;t t 7299s,@build_cpu@,$build_cpu,;t t 7300s,@build_vendor@,$build_vendor,;t t 7301s,@build_os@,$build_os,;t t 7302s,@host@,$host,;t t 7303s,@host_cpu@,$host_cpu,;t t 7304s,@host_vendor@,$host_vendor,;t t 7305s,@host_os@,$host_os,;t t 7306s,@target@,$target,;t t 7307s,@target_cpu@,$target_cpu,;t t 7308s,@target_vendor@,$target_vendor,;t t 7309s,@target_os@,$target_os,;t t 7310s,@SHLICC2@,$SHLICC2,;t t 7311s,@CC@,$CC,;t t 7312s,@CFLAGS@,$CFLAGS,;t t 7313s,@LDFLAGS@,$LDFLAGS,;t t 7314s,@CPPFLAGS@,$CPPFLAGS,;t t 7315s,@ac_ct_CC@,$ac_ct_CC,;t t 7316s,@EXEEXT@,$EXEEXT,;t t 7317s,@OBJEXT@,$OBJEXT,;t t 7318s,@CPP@,$CPP,;t t 7319s,@EGREP@,$EGREP,;t t 7320s,@LIBOBJS@,$LIBOBJS,;t t 7321s,@V_LEX@,$V_LEX,;t t 7322s,@V_YACC@,$V_YACC,;t t 7323s,@RANLIB@,$RANLIB,;t t 7324s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 7325s,@V_CCOPT@,$V_CCOPT,;t t 7326s,@V_DEFS@,$V_DEFS,;t t 7327s,@V_INCLS@,$V_INCLS,;t t 7328s,@V_LIBS@,$V_LIBS,;t t 7329s,@V_PCAP@,$V_PCAP,;t t 7330s,@V_FINDALLDEVS@,$V_FINDALLDEVS,;t t 7331s,@V_RANLIB@,$V_RANLIB,;t t 7332s,@SSRC@,$SSRC,;t t 7333s,@DYEXT@,$DYEXT,;t t 7334s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 7335s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 7336s,@INSTALL_DATA@,$INSTALL_DATA,;t t 7337s,@LTLIBOBJS@,$LTLIBOBJS,;t t 7338CEOF 7339 7340_ACEOF 7341 7342 cat >>$CONFIG_STATUS <<\_ACEOF 7343 # Split the substitutions into bite-sized pieces for seds with 7344 # small command number limits, like on Digital OSF/1 and HP-UX. 7345 ac_max_sed_lines=48 7346 ac_sed_frag=1 # Number of current file. 7347 ac_beg=1 # First line for current file. 7348 ac_end=$ac_max_sed_lines # Line after last line for current file. 7349 ac_more_lines=: 7350 ac_sed_cmds= 7351 while $ac_more_lines; do 7352 if test $ac_beg -gt 1; then 7353 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 7354 else 7355 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 7356 fi 7357 if test ! -s $tmp/subs.frag; then 7358 ac_more_lines=false 7359 else 7360 # The purpose of the label and of the branching condition is to 7361 # speed up the sed processing (if there are no `@' at all, there 7362 # is no need to browse any of the substitutions). 7363 # These are the two extra sed commands mentioned above. 7364 (echo ':t 7365 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 7366 if test -z "$ac_sed_cmds"; then 7367 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 7368 else 7369 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 7370 fi 7371 ac_sed_frag=`expr $ac_sed_frag + 1` 7372 ac_beg=$ac_end 7373 ac_end=`expr $ac_end + $ac_max_sed_lines` 7374 fi 7375 done 7376 if test -z "$ac_sed_cmds"; then 7377 ac_sed_cmds=cat 7378 fi 7379fi # test -n "$CONFIG_FILES" 7380 7381_ACEOF 7382cat >>$CONFIG_STATUS <<\_ACEOF 7383for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 7384 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 7385 case $ac_file in 7386 - | *:- | *:-:* ) # input from stdin 7387 cat >$tmp/stdin 7388 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 7389 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 7390 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 7391 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 7392 * ) ac_file_in=$ac_file.in ;; 7393 esac 7394 7395 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 7396 ac_dir=`(dirname "$ac_file") 2>/dev/null || 7397$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7398 X"$ac_file" : 'X\(//\)[^/]' \| \ 7399 X"$ac_file" : 'X\(//\)$' \| \ 7400 X"$ac_file" : 'X\(/\)' \| \ 7401 . : '\(.\)' 2>/dev/null || 7402echo X"$ac_file" | 7403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 7404 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 7405 /^X\(\/\/\)$/{ s//\1/; q; } 7406 /^X\(\/\).*/{ s//\1/; q; } 7407 s/.*/./; q'` 7408 { if $as_mkdir_p; then 7409 mkdir -p "$ac_dir" 7410 else 7411 as_dir="$ac_dir" 7412 as_dirs= 7413 while test ! -d "$as_dir"; do 7414 as_dirs="$as_dir $as_dirs" 7415 as_dir=`(dirname "$as_dir") 2>/dev/null || 7416$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7417 X"$as_dir" : 'X\(//\)[^/]' \| \ 7418 X"$as_dir" : 'X\(//\)$' \| \ 7419 X"$as_dir" : 'X\(/\)' \| \ 7420 . : '\(.\)' 2>/dev/null || 7421echo X"$as_dir" | 7422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 7423 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 7424 /^X\(\/\/\)$/{ s//\1/; q; } 7425 /^X\(\/\).*/{ s//\1/; q; } 7426 s/.*/./; q'` 7427 done 7428 test ! -n "$as_dirs" || mkdir $as_dirs 7429 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 7430echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 7431 { (exit 1); exit 1; }; }; } 7432 7433 ac_builddir=. 7434 7435if test "$ac_dir" != .; then 7436 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 7437 # A "../" for each directory in $ac_dir_suffix. 7438 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 7439else 7440 ac_dir_suffix= ac_top_builddir= 7441fi 7442 7443case $srcdir in 7444 .) # No --srcdir option. We are building in place. 7445 ac_srcdir=. 7446 if test -z "$ac_top_builddir"; then 7447 ac_top_srcdir=. 7448 else 7449 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 7450 fi ;; 7451 [\\/]* | ?:[\\/]* ) # Absolute path. 7452 ac_srcdir=$srcdir$ac_dir_suffix; 7453 ac_top_srcdir=$srcdir ;; 7454 *) # Relative path. 7455 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 7456 ac_top_srcdir=$ac_top_builddir$srcdir ;; 7457esac 7458# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 7459# absolute. 7460ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 7461ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 7462ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 7463ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 7464 7465 7466 case $INSTALL in 7467 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 7468 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 7469 esac 7470 7471 if test x"$ac_file" != x-; then 7472 { echo "$as_me:$LINENO: creating $ac_file" >&5 7473echo "$as_me: creating $ac_file" >&6;} 7474 rm -f "$ac_file" 7475 fi 7476 # Let's still pretend it is `configure' which instantiates (i.e., don't 7477 # use $as_me), people would be surprised to read: 7478 # /* config.h. Generated by config.status. */ 7479 if test x"$ac_file" = x-; then 7480 configure_input= 7481 else 7482 configure_input="$ac_file. " 7483 fi 7484 configure_input=$configure_input"Generated from `echo $ac_file_in | 7485 sed 's,.*/,,'` by configure." 7486 7487 # First look for the input files in the build tree, otherwise in the 7488 # src tree. 7489 ac_file_inputs=`IFS=: 7490 for f in $ac_file_in; do 7491 case $f in 7492 -) echo $tmp/stdin ;; 7493 [\\/$]*) 7494 # Absolute (can't be DOS-style, as IFS=:) 7495 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 7496echo "$as_me: error: cannot find input file: $f" >&2;} 7497 { (exit 1); exit 1; }; } 7498 echo $f;; 7499 *) # Relative 7500 if test -f "$f"; then 7501 # Build tree 7502 echo $f 7503 elif test -f "$srcdir/$f"; then 7504 # Source tree 7505 echo $srcdir/$f 7506 else 7507 # /dev/null tree 7508 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 7509echo "$as_me: error: cannot find input file: $f" >&2;} 7510 { (exit 1); exit 1; }; } 7511 fi;; 7512 esac 7513 done` || { (exit 1); exit 1; } 7514_ACEOF 7515cat >>$CONFIG_STATUS <<_ACEOF 7516 sed "$ac_vpsub 7517$extrasub 7518_ACEOF 7519cat >>$CONFIG_STATUS <<\_ACEOF 7520:t 7521/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 7522s,@configure_input@,$configure_input,;t t 7523s,@srcdir@,$ac_srcdir,;t t 7524s,@abs_srcdir@,$ac_abs_srcdir,;t t 7525s,@top_srcdir@,$ac_top_srcdir,;t t 7526s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 7527s,@builddir@,$ac_builddir,;t t 7528s,@abs_builddir@,$ac_abs_builddir,;t t 7529s,@top_builddir@,$ac_top_builddir,;t t 7530s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 7531s,@INSTALL@,$ac_INSTALL,;t t 7532" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 7533 rm -f $tmp/stdin 7534 if test x"$ac_file" != x-; then 7535 mv $tmp/out $ac_file 7536 else 7537 cat $tmp/out 7538 rm -f $tmp/out 7539 fi 7540 7541done 7542_ACEOF 7543cat >>$CONFIG_STATUS <<\_ACEOF 7544 7545# 7546# CONFIG_HEADER section. 7547# 7548 7549# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 7550# NAME is the cpp macro being defined and VALUE is the value it is being given. 7551# 7552# ac_d sets the value in "#define NAME VALUE" lines. 7553ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 7554ac_dB='[ ].*$,\1#\2' 7555ac_dC=' ' 7556ac_dD=',;t' 7557# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 7558ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 7559ac_uB='$,\1#\2define\3' 7560ac_uC=' ' 7561ac_uD=',;t' 7562 7563for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 7564 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 7565 case $ac_file in 7566 - | *:- | *:-:* ) # input from stdin 7567 cat >$tmp/stdin 7568 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 7569 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 7570 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 7571 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 7572 * ) ac_file_in=$ac_file.in ;; 7573 esac 7574 7575 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 7576echo "$as_me: creating $ac_file" >&6;} 7577 7578 # First look for the input files in the build tree, otherwise in the 7579 # src tree. 7580 ac_file_inputs=`IFS=: 7581 for f in $ac_file_in; do 7582 case $f in 7583 -) echo $tmp/stdin ;; 7584 [\\/$]*) 7585 # Absolute (can't be DOS-style, as IFS=:) 7586 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 7587echo "$as_me: error: cannot find input file: $f" >&2;} 7588 { (exit 1); exit 1; }; } 7589 echo $f;; 7590 *) # Relative 7591 if test -f "$f"; then 7592 # Build tree 7593 echo $f 7594 elif test -f "$srcdir/$f"; then 7595 # Source tree 7596 echo $srcdir/$f 7597 else 7598 # /dev/null tree 7599 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 7600echo "$as_me: error: cannot find input file: $f" >&2;} 7601 { (exit 1); exit 1; }; } 7602 fi;; 7603 esac 7604 done` || { (exit 1); exit 1; } 7605 # Remove the trailing spaces. 7606 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 7607 7608_ACEOF 7609 7610# Transform confdefs.h into two sed scripts, `conftest.defines' and 7611# `conftest.undefs', that substitutes the proper values into 7612# config.h.in to produce config.h. The first handles `#define' 7613# templates, and the second `#undef' templates. 7614# And first: Protect against being on the right side of a sed subst in 7615# config.status. Protect against being in an unquoted here document 7616# in config.status. 7617rm -f conftest.defines conftest.undefs 7618# Using a here document instead of a string reduces the quoting nightmare. 7619# Putting comments in sed scripts is not portable. 7620# 7621# `end' is used to avoid that the second main sed command (meant for 7622# 0-ary CPP macros) applies to n-ary macro definitions. 7623# See the Autoconf documentation for `clear'. 7624cat >confdef2sed.sed <<\_ACEOF 7625s/[\\&,]/\\&/g 7626s,[\\$`],\\&,g 7627t clear 7628: clear 7629s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 7630t end 7631s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 7632: end 7633_ACEOF 7634# If some macros were called several times there might be several times 7635# the same #defines, which is useless. Nevertheless, we may not want to 7636# sort them, since we want the *last* AC-DEFINE to be honored. 7637uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 7638sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 7639rm -f confdef2sed.sed 7640 7641# This sed command replaces #undef with comments. This is necessary, for 7642# example, in the case of _POSIX_SOURCE, which is predefined and required 7643# on some systems where configure will not decide to define it. 7644cat >>conftest.undefs <<\_ACEOF 7645s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 7646_ACEOF 7647 7648# Break up conftest.defines because some shells have a limit on the size 7649# of here documents, and old seds have small limits too (100 cmds). 7650echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 7651echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 7652echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 7653echo ' :' >>$CONFIG_STATUS 7654rm -f conftest.tail 7655while grep . conftest.defines >/dev/null 7656do 7657 # Write a limited-size here document to $tmp/defines.sed. 7658 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 7659 # Speed up: don't consider the non `#define' lines. 7660 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 7661 # Work around the forget-to-reset-the-flag bug. 7662 echo 't clr' >>$CONFIG_STATUS 7663 echo ': clr' >>$CONFIG_STATUS 7664 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 7665 echo 'CEOF 7666 sed -f $tmp/defines.sed $tmp/in >$tmp/out 7667 rm -f $tmp/in 7668 mv $tmp/out $tmp/in 7669' >>$CONFIG_STATUS 7670 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 7671 rm -f conftest.defines 7672 mv conftest.tail conftest.defines 7673done 7674rm -f conftest.defines 7675echo ' fi # grep' >>$CONFIG_STATUS 7676echo >>$CONFIG_STATUS 7677 7678# Break up conftest.undefs because some shells have a limit on the size 7679# of here documents, and old seds have small limits too (100 cmds). 7680echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 7681rm -f conftest.tail 7682while grep . conftest.undefs >/dev/null 7683do 7684 # Write a limited-size here document to $tmp/undefs.sed. 7685 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 7686 # Speed up: don't consider the non `#undef' 7687 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 7688 # Work around the forget-to-reset-the-flag bug. 7689 echo 't clr' >>$CONFIG_STATUS 7690 echo ': clr' >>$CONFIG_STATUS 7691 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 7692 echo 'CEOF 7693 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 7694 rm -f $tmp/in 7695 mv $tmp/out $tmp/in 7696' >>$CONFIG_STATUS 7697 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 7698 rm -f conftest.undefs 7699 mv conftest.tail conftest.undefs 7700done 7701rm -f conftest.undefs 7702 7703cat >>$CONFIG_STATUS <<\_ACEOF 7704 # Let's still pretend it is `configure' which instantiates (i.e., don't 7705 # use $as_me), people would be surprised to read: 7706 # /* config.h. Generated by config.status. */ 7707 if test x"$ac_file" = x-; then 7708 echo "/* Generated by configure. */" >$tmp/config.h 7709 else 7710 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 7711 fi 7712 cat $tmp/in >>$tmp/config.h 7713 rm -f $tmp/in 7714 if test x"$ac_file" != x-; then 7715 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 7716 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 7717echo "$as_me: $ac_file is unchanged" >&6;} 7718 else 7719 ac_dir=`(dirname "$ac_file") 2>/dev/null || 7720$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7721 X"$ac_file" : 'X\(//\)[^/]' \| \ 7722 X"$ac_file" : 'X\(//\)$' \| \ 7723 X"$ac_file" : 'X\(/\)' \| \ 7724 . : '\(.\)' 2>/dev/null || 7725echo X"$ac_file" | 7726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 7727 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 7728 /^X\(\/\/\)$/{ s//\1/; q; } 7729 /^X\(\/\).*/{ s//\1/; q; } 7730 s/.*/./; q'` 7731 { if $as_mkdir_p; then 7732 mkdir -p "$ac_dir" 7733 else 7734 as_dir="$ac_dir" 7735 as_dirs= 7736 while test ! -d "$as_dir"; do 7737 as_dirs="$as_dir $as_dirs" 7738 as_dir=`(dirname "$as_dir") 2>/dev/null || 7739$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7740 X"$as_dir" : 'X\(//\)[^/]' \| \ 7741 X"$as_dir" : 'X\(//\)$' \| \ 7742 X"$as_dir" : 'X\(/\)' \| \ 7743 . : '\(.\)' 2>/dev/null || 7744echo X"$as_dir" | 7745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 7746 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 7747 /^X\(\/\/\)$/{ s//\1/; q; } 7748 /^X\(\/\).*/{ s//\1/; q; } 7749 s/.*/./; q'` 7750 done 7751 test ! -n "$as_dirs" || mkdir $as_dirs 7752 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 7753echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 7754 { (exit 1); exit 1; }; }; } 7755 7756 rm -f $ac_file 7757 mv $tmp/config.h $ac_file 7758 fi 7759 else 7760 cat $tmp/config.h 7761 rm -f $tmp/config.h 7762 fi 7763done 7764_ACEOF 7765 7766cat >>$CONFIG_STATUS <<\_ACEOF 7767 7768{ (exit 0); exit 0; } 7769_ACEOF 7770chmod +x $CONFIG_STATUS 7771ac_clean_files=$ac_clean_files_save 7772 7773 7774# configure is writing to config.log, and then calls config.status. 7775# config.status does its own redirection, appending to config.log. 7776# Unfortunately, on DOS this fails, as config.log is still kept open 7777# by configure, so config.status won't be able to write to it; its 7778# output is simply discarded. So we exec the FD to /dev/null, 7779# effectively closing config.log, so it can be properly (re)opened and 7780# appended to by config.status. When coming back to configure, we 7781# need to make the FD available again. 7782if test "$no_create" != yes; then 7783 ac_cs_success=: 7784 ac_config_status_args= 7785 test "$silent" = yes && 7786 ac_config_status_args="$ac_config_status_args --quiet" 7787 exec 5>/dev/null 7788 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 7789 exec 5>>config.log 7790 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 7791 # would make configure fail if this is the last instruction. 7792 $ac_cs_success || { (exit 1); exit 1; } 7793fi 7794 7795 7796if test -f .devel ; then 7797 make depend 7798fi 7799exit 0 7800