1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for pcap 1.10.0. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199test \$(( 1 + 1 )) = 2 || exit 1" 200 if (eval "$as_required") 2>/dev/null; then : 201 as_have_required=yes 202else 203 as_have_required=no 204fi 205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 206 207else 208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 209as_found=false 210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 211do 212 IFS=$as_save_IFS 213 test -z "$as_dir" && as_dir=. 214 as_found=: 215 case $as_dir in #( 216 /*) 217 for as_base in sh bash ksh sh5; do 218 # Try only shells that exist, to save several forks. 219 as_shell=$as_dir/$as_base 220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 222 CONFIG_SHELL=$as_shell as_have_required=yes 223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 break 2 225fi 226fi 227 done;; 228 esac 229 as_found=false 230done 231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 233 CONFIG_SHELL=$SHELL as_have_required=yes 234fi; } 235IFS=$as_save_IFS 236 237 238 if test "x$CONFIG_SHELL" != x; then : 239 export CONFIG_SHELL 240 # We cannot yet assume a decent shell, so we have to provide a 241# neutralization value for shells without unset; and this also 242# works around shells that cannot unset nonexistent variables. 243# Preserve -v and -x to the replacement shell. 244BASH_ENV=/dev/null 245ENV=/dev/null 246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 247case $- in # (((( 248 *v*x* | *x*v* ) as_opts=-vx ;; 249 *v* ) as_opts=-v ;; 250 *x* ) as_opts=-x ;; 251 * ) as_opts= ;; 252esac 253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 254# Admittedly, this is quite paranoid, since all the known shells bail 255# out after a failed `exec'. 256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 257exit 255 258fi 259 260 if test x$as_have_required = xno; then : 261 $as_echo "$0: This script requires a shell more modern than all" 262 $as_echo "$0: the shells that I found on your system." 263 if test x${ZSH_VERSION+set} = xset ; then 264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 265 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 266 else 267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 268$0: including any error possibly output before this 269$0: message. Then install a modern shell, or manually run 270$0: the script under such a shell if you do have one." 271 fi 272 exit 1 273fi 274fi 275fi 276SHELL=${CONFIG_SHELL-/bin/sh} 277export SHELL 278# Unset more variables known to interfere with behavior of common tools. 279CLICOLOR_FORCE= GREP_OPTIONS= 280unset CLICOLOR_FORCE GREP_OPTIONS 281 282## --------------------- ## 283## M4sh Shell Functions. ## 284## --------------------- ## 285# as_fn_unset VAR 286# --------------- 287# Portably unset VAR. 288as_fn_unset () 289{ 290 { eval $1=; unset $1;} 291} 292as_unset=as_fn_unset 293 294# as_fn_set_status STATUS 295# ----------------------- 296# Set $? to STATUS, without forking. 297as_fn_set_status () 298{ 299 return $1 300} # as_fn_set_status 301 302# as_fn_exit STATUS 303# ----------------- 304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 305as_fn_exit () 306{ 307 set +e 308 as_fn_set_status $1 309 exit $1 310} # as_fn_exit 311 312# as_fn_mkdir_p 313# ------------- 314# Create "$as_dir" as a directory, including parents if necessary. 315as_fn_mkdir_p () 316{ 317 318 case $as_dir in #( 319 -*) as_dir=./$as_dir;; 320 esac 321 test -d "$as_dir" || eval $as_mkdir_p || { 322 as_dirs= 323 while :; do 324 case $as_dir in #( 325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 326 *) as_qdir=$as_dir;; 327 esac 328 as_dirs="'$as_qdir' $as_dirs" 329 as_dir=`$as_dirname -- "$as_dir" || 330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 331 X"$as_dir" : 'X\(//\)[^/]' \| \ 332 X"$as_dir" : 'X\(//\)$' \| \ 333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 334$as_echo X"$as_dir" | 335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 336 s//\1/ 337 q 338 } 339 /^X\(\/\/\)[^/].*/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\).*/{ 348 s//\1/ 349 q 350 } 351 s/.*/./; q'` 352 test -d "$as_dir" && break 353 done 354 test -z "$as_dirs" || eval "mkdir $as_dirs" 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 356 357 358} # as_fn_mkdir_p 359 360# as_fn_executable_p FILE 361# ----------------------- 362# Test if FILE is an executable regular file. 363as_fn_executable_p () 364{ 365 test -f "$1" && test -x "$1" 366} # as_fn_executable_p 367# as_fn_append VAR VALUE 368# ---------------------- 369# Append the text in VALUE to the end of the definition contained in VAR. Take 370# advantage of any shell optimizations that allow amortized linear growth over 371# repeated appends, instead of the typical quadratic growth present in naive 372# implementations. 373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 374 eval 'as_fn_append () 375 { 376 eval $1+=\$2 377 }' 378else 379 as_fn_append () 380 { 381 eval $1=\$$1\$2 382 } 383fi # as_fn_append 384 385# as_fn_arith ARG... 386# ------------------ 387# Perform arithmetic evaluation on the ARGs, and store the result in the 388# global $as_val. Take advantage of shells that can avoid forks. The arguments 389# must be portable across $(()) and expr. 390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 391 eval 'as_fn_arith () 392 { 393 as_val=$(( $* )) 394 }' 395else 396 as_fn_arith () 397 { 398 as_val=`expr "$@" || test $? -eq 1` 399 } 400fi # as_fn_arith 401 402 403# as_fn_error STATUS ERROR [LINENO LOG_FD] 404# ---------------------------------------- 405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 407# script with STATUS, using 1 if that was 0. 408as_fn_error () 409{ 410 as_status=$1; test $as_status -eq 0 && as_status=1 411 if test "$4"; then 412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 414 fi 415 $as_echo "$as_me: error: $2" >&2 416 as_fn_exit $as_status 417} # as_fn_error 418 419if expr a : '\(a\)' >/dev/null 2>&1 && 420 test "X`expr 00001 : '.*\(...\)'`" = X001; then 421 as_expr=expr 422else 423 as_expr=false 424fi 425 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 427 as_basename=basename 428else 429 as_basename=false 430fi 431 432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 433 as_dirname=dirname 434else 435 as_dirname=false 436fi 437 438as_me=`$as_basename -- "$0" || 439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 440 X"$0" : 'X\(//\)$' \| \ 441 X"$0" : 'X\(/\)' \| . 2>/dev/null || 442$as_echo X/"$0" | 443 sed '/^.*\/\([^/][^/]*\)\/*$/{ 444 s//\1/ 445 q 446 } 447 /^X\/\(\/\/\)$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\).*/{ 452 s//\1/ 453 q 454 } 455 s/.*/./; q'` 456 457# Avoid depending upon Character Ranges. 458as_cr_letters='abcdefghijklmnopqrstuvwxyz' 459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 460as_cr_Letters=$as_cr_letters$as_cr_LETTERS 461as_cr_digits='0123456789' 462as_cr_alnum=$as_cr_Letters$as_cr_digits 463 464 465 as_lineno_1=$LINENO as_lineno_1a=$LINENO 466 as_lineno_2=$LINENO as_lineno_2a=$LINENO 467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 470 sed -n ' 471 p 472 /[$]LINENO/= 473 ' <$as_myself | 474 sed ' 475 s/[$]LINENO.*/&-/ 476 t lineno 477 b 478 :lineno 479 N 480 :loop 481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 482 t loop 483 s/-\n.*// 484 ' >$as_me.lineno && 485 chmod +x "$as_me.lineno" || 486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 487 488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 489 # already done that, so ensure we don't try to do so again and fall 490 # in an infinite loop. This has already happened in practice. 491 _as_can_reexec=no; export _as_can_reexec 492 # Don't try to exec as it changes $[0], causing all sort of problems 493 # (the dirname of $[0] is not the place where we might find the 494 # original and so on. Autoconf is especially sensitive to this). 495 . "./$as_me.lineno" 496 # Exit status is that of the last command. 497 exit 498} 499 500ECHO_C= ECHO_N= ECHO_T= 501case `echo -n x` in #((((( 502-n*) 503 case `echo 'xy\c'` in 504 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 505 xy) ECHO_C='\c';; 506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 507 ECHO_T=' ';; 508 esac;; 509*) 510 ECHO_N='-n';; 511esac 512 513rm -f conf$$ conf$$.exe conf$$.file 514if test -d conf$$.dir; then 515 rm -f conf$$.dir/conf$$.file 516else 517 rm -f conf$$.dir 518 mkdir conf$$.dir 2>/dev/null 519fi 520if (echo >conf$$.file) 2>/dev/null; then 521 if ln -s conf$$.file conf$$ 2>/dev/null; then 522 as_ln_s='ln -s' 523 # ... but there are two gotchas: 524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 526 # In both cases, we have to default to `cp -pR'. 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 528 as_ln_s='cp -pR' 529 elif ln conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s=ln 531 else 532 as_ln_s='cp -pR' 533 fi 534else 535 as_ln_s='cp -pR' 536fi 537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 538rmdir conf$$.dir 2>/dev/null 539 540if mkdir -p . 2>/dev/null; then 541 as_mkdir_p='mkdir -p "$as_dir"' 542else 543 test -d ./-p && rmdir ./-p 544 as_mkdir_p=false 545fi 546 547as_test_x='test -x' 548as_executable_p=as_fn_executable_p 549 550# Sed expression to map a string onto a valid CPP name. 551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 552 553# Sed expression to map a string onto a valid variable name. 554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 555 556 557test -n "$DJDIR" || exec 7<&0 </dev/null 558exec 6>&1 559 560# Name of the host. 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 562# so uname gets run too. 563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 564 565# 566# Initializations. 567# 568ac_default_prefix=/usr/local 569ac_clean_files= 570ac_config_libobj_dir=. 571LIBOBJS= 572cross_compiling=no 573subdirs= 574MFLAGS= 575MAKEFLAGS= 576 577# Identity of this package. 578PACKAGE_NAME='pcap' 579PACKAGE_TARNAME='pcap' 580PACKAGE_VERSION='1.10.0' 581PACKAGE_STRING='pcap 1.10.0' 582PACKAGE_BUGREPORT='' 583PACKAGE_URL='' 584 585ac_unique_file="pcap.c" 586# Factoring default headers for most tests. 587ac_includes_default="\ 588#include <stdio.h> 589#ifdef HAVE_SYS_TYPES_H 590# include <sys/types.h> 591#endif 592#ifdef HAVE_SYS_STAT_H 593# include <sys/stat.h> 594#endif 595#ifdef STDC_HEADERS 596# include <stdlib.h> 597# include <stddef.h> 598#else 599# ifdef HAVE_STDLIB_H 600# include <stdlib.h> 601# endif 602#endif 603#ifdef HAVE_STRING_H 604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 605# include <memory.h> 606# endif 607# include <string.h> 608#endif 609#ifdef HAVE_STRINGS_H 610# include <strings.h> 611#endif 612#ifdef HAVE_INTTYPES_H 613# include <inttypes.h> 614#endif 615#ifdef HAVE_STDINT_H 616# include <stdint.h> 617#endif 618#ifdef HAVE_UNISTD_H 619# include <unistd.h> 620#endif" 621 622ac_subst_vars='LTLIBOBJS 623INSTALL_DATA 624INSTALL_SCRIPT 625INSTALL_PROGRAM 626PCAP_SUPPORT_RDMASNIFF 627PCAP_SUPPORT_DBUS 628PCAP_SUPPORT_BT 629PCAP_SUPPORT_DPDK 630PCAP_SUPPORT_NETMAP 631PCAP_SUPPORT_NETFILTER 632PCAP_SUPPORT_LINUX_USBMON 633EXTRA_NETWORK_LIBS 634RPCAPD_LIBS 635INSTALL_RPCAPD 636BUILD_RPCAPD 637PTHREAD_LIBS 638MAN_ADMIN_COMMANDS 639MAN_MISC_INFO 640MAN_FILE_FORMATS 641MAN_DEVICES 642DYEXT 643REMOTE_C_SRC 644MODULE_C_SRC 645PLATFORM_CXX_SRC 646PLATFORM_C_SRC 647ADDLARCHIVEOBJS 648ADDLOBJS 649V_YACC 650V_RPATH_OPT 651V_SONAME_OPT 652V_SHLIB_OPT 653V_SHLIB_CMD 654V_SHLIB_CCOPT 655V_LEX 656V_INCLS 657V_DEFS 658V_PROG_LDFLAGS_FAT 659V_PROG_CCOPT_FAT 660V_LIB_LDFLAGS_FAT 661V_LIB_CCOPT_FAT 662V_CCOPT 663MKDEP 664DEPENDENCY_CFLAG 665LN_S 666AR 667RANLIB 668REENTRANT_PARSER 669YFLAGS 670YACC 671LEXLIB 672LEX_OUTPUT_ROOT 673LEX 674PKGCONFIG 675VALGRINDTEST_SRC 676LIBOBJS 677EGREP 678GREP 679CPP 680ac_ct_CXX 681CXXFLAGS 682CXX 683OBJEXT 684EXEEXT 685ac_ct_CC 686CPPFLAGS 687LDFLAGS 688CFLAGS 689CC 690SHLICC2 691target_os 692target_vendor 693target_cpu 694target 695host_os 696host_vendor 697host_cpu 698host 699build_os 700build_vendor 701build_cpu 702build 703target_alias 704host_alias 705build_alias 706LIBS 707ECHO_T 708ECHO_N 709ECHO_C 710DEFS 711mandir 712localedir 713libdir 714psdir 715pdfdir 716dvidir 717htmldir 718infodir 719docdir 720oldincludedir 721includedir 722runstatedir 723localstatedir 724sharedstatedir 725sysconfdir 726datadir 727datarootdir 728libexecdir 729sbindir 730bindir 731program_transform_name 732prefix 733exec_prefix 734PACKAGE_URL 735PACKAGE_BUGREPORT 736PACKAGE_STRING 737PACKAGE_VERSION 738PACKAGE_TARNAME 739PACKAGE_NAME 740PATH_SEPARATOR 741SHELL' 742ac_subst_files='' 743ac_user_opts=' 744enable_option_checking 745with_gcc 746enable_largefile 747enable_protochain 748with_pcap 749with_libnl 750enable_ipv6 751with_dag 752with_dag_includes 753with_dag_libraries 754with_septel 755with_snf 756with_snf_includes 757with_snf_libraries 758with_turbocap 759enable_remote 760enable_optimizer_dbg 761enable_yydebug 762enable_universal 763enable_shared 764enable_usb 765enable_netmap 766with_dpdk 767enable_bluetooth 768enable_dbus 769enable_rdma 770' 771 ac_precious_vars='build_alias 772host_alias 773target_alias 774CC 775CFLAGS 776LDFLAGS 777LIBS 778CPPFLAGS 779CXX 780CXXFLAGS 781CCC 782CPP 783YACC 784YFLAGS' 785 786 787# Initialize some variables set by options. 788ac_init_help= 789ac_init_version=false 790ac_unrecognized_opts= 791ac_unrecognized_sep= 792# The variables have the same names as the options, with 793# dashes changed to underlines. 794cache_file=/dev/null 795exec_prefix=NONE 796no_create= 797no_recursion= 798prefix=NONE 799program_prefix=NONE 800program_suffix=NONE 801program_transform_name=s,x,x, 802silent= 803site= 804srcdir= 805verbose= 806x_includes=NONE 807x_libraries=NONE 808 809# Installation directory options. 810# These are left unexpanded so users can "make install exec_prefix=/foo" 811# and all the variables that are supposed to be based on exec_prefix 812# by default will actually change. 813# Use braces instead of parens because sh, perl, etc. also accept them. 814# (The list follows the same order as the GNU Coding Standards.) 815bindir='${exec_prefix}/bin' 816sbindir='${exec_prefix}/sbin' 817libexecdir='${exec_prefix}/libexec' 818datarootdir='${prefix}/share' 819datadir='${datarootdir}' 820sysconfdir='${prefix}/etc' 821sharedstatedir='${prefix}/com' 822localstatedir='${prefix}/var' 823runstatedir='${localstatedir}/run' 824includedir='${prefix}/include' 825oldincludedir='/usr/include' 826docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 827infodir='${datarootdir}/info' 828htmldir='${docdir}' 829dvidir='${docdir}' 830pdfdir='${docdir}' 831psdir='${docdir}' 832libdir='${exec_prefix}/lib' 833localedir='${datarootdir}/locale' 834mandir='${datarootdir}/man' 835 836ac_prev= 837ac_dashdash= 838for ac_option 839do 840 # If the previous option needs an argument, assign it. 841 if test -n "$ac_prev"; then 842 eval $ac_prev=\$ac_option 843 ac_prev= 844 continue 845 fi 846 847 case $ac_option in 848 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 849 *=) ac_optarg= ;; 850 *) ac_optarg=yes ;; 851 esac 852 853 # Accept the important Cygnus configure options, so we can diagnose typos. 854 855 case $ac_dashdash$ac_option in 856 --) 857 ac_dashdash=yes ;; 858 859 -bindir | --bindir | --bindi | --bind | --bin | --bi) 860 ac_prev=bindir ;; 861 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 862 bindir=$ac_optarg ;; 863 864 -build | --build | --buil | --bui | --bu) 865 ac_prev=build_alias ;; 866 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 867 build_alias=$ac_optarg ;; 868 869 -cache-file | --cache-file | --cache-fil | --cache-fi \ 870 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 871 ac_prev=cache_file ;; 872 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 873 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 874 cache_file=$ac_optarg ;; 875 876 --config-cache | -C) 877 cache_file=config.cache ;; 878 879 -datadir | --datadir | --datadi | --datad) 880 ac_prev=datadir ;; 881 -datadir=* | --datadir=* | --datadi=* | --datad=*) 882 datadir=$ac_optarg ;; 883 884 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 885 | --dataroo | --dataro | --datar) 886 ac_prev=datarootdir ;; 887 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 888 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 889 datarootdir=$ac_optarg ;; 890 891 -disable-* | --disable-*) 892 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 893 # Reject names that are not valid shell variable names. 894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 895 as_fn_error $? "invalid feature name: $ac_useropt" 896 ac_useropt_orig=$ac_useropt 897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 898 case $ac_user_opts in 899 *" 900"enable_$ac_useropt" 901"*) ;; 902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 903 ac_unrecognized_sep=', ';; 904 esac 905 eval enable_$ac_useropt=no ;; 906 907 -docdir | --docdir | --docdi | --doc | --do) 908 ac_prev=docdir ;; 909 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 910 docdir=$ac_optarg ;; 911 912 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 913 ac_prev=dvidir ;; 914 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 915 dvidir=$ac_optarg ;; 916 917 -enable-* | --enable-*) 918 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 919 # Reject names that are not valid shell variable names. 920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 921 as_fn_error $? "invalid feature name: $ac_useropt" 922 ac_useropt_orig=$ac_useropt 923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 924 case $ac_user_opts in 925 *" 926"enable_$ac_useropt" 927"*) ;; 928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 929 ac_unrecognized_sep=', ';; 930 esac 931 eval enable_$ac_useropt=\$ac_optarg ;; 932 933 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 934 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 935 | --exec | --exe | --ex) 936 ac_prev=exec_prefix ;; 937 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 938 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 939 | --exec=* | --exe=* | --ex=*) 940 exec_prefix=$ac_optarg ;; 941 942 -gas | --gas | --ga | --g) 943 # Obsolete; use --with-gas. 944 with_gas=yes ;; 945 946 -help | --help | --hel | --he | -h) 947 ac_init_help=long ;; 948 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 949 ac_init_help=recursive ;; 950 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 951 ac_init_help=short ;; 952 953 -host | --host | --hos | --ho) 954 ac_prev=host_alias ;; 955 -host=* | --host=* | --hos=* | --ho=*) 956 host_alias=$ac_optarg ;; 957 958 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 959 ac_prev=htmldir ;; 960 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 961 | --ht=*) 962 htmldir=$ac_optarg ;; 963 964 -includedir | --includedir | --includedi | --included | --include \ 965 | --includ | --inclu | --incl | --inc) 966 ac_prev=includedir ;; 967 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 968 | --includ=* | --inclu=* | --incl=* | --inc=*) 969 includedir=$ac_optarg ;; 970 971 -infodir | --infodir | --infodi | --infod | --info | --inf) 972 ac_prev=infodir ;; 973 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 974 infodir=$ac_optarg ;; 975 976 -libdir | --libdir | --libdi | --libd) 977 ac_prev=libdir ;; 978 -libdir=* | --libdir=* | --libdi=* | --libd=*) 979 libdir=$ac_optarg ;; 980 981 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 982 | --libexe | --libex | --libe) 983 ac_prev=libexecdir ;; 984 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 985 | --libexe=* | --libex=* | --libe=*) 986 libexecdir=$ac_optarg ;; 987 988 -localedir | --localedir | --localedi | --localed | --locale) 989 ac_prev=localedir ;; 990 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 991 localedir=$ac_optarg ;; 992 993 -localstatedir | --localstatedir | --localstatedi | --localstated \ 994 | --localstate | --localstat | --localsta | --localst | --locals) 995 ac_prev=localstatedir ;; 996 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 997 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 998 localstatedir=$ac_optarg ;; 999 1000 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1001 ac_prev=mandir ;; 1002 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1003 mandir=$ac_optarg ;; 1004 1005 -nfp | --nfp | --nf) 1006 # Obsolete; use --without-fp. 1007 with_fp=no ;; 1008 1009 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1010 | --no-cr | --no-c | -n) 1011 no_create=yes ;; 1012 1013 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1014 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1015 no_recursion=yes ;; 1016 1017 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1018 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1019 | --oldin | --oldi | --old | --ol | --o) 1020 ac_prev=oldincludedir ;; 1021 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1022 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1023 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1024 oldincludedir=$ac_optarg ;; 1025 1026 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1027 ac_prev=prefix ;; 1028 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1029 prefix=$ac_optarg ;; 1030 1031 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1032 | --program-pre | --program-pr | --program-p) 1033 ac_prev=program_prefix ;; 1034 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1035 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1036 program_prefix=$ac_optarg ;; 1037 1038 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1039 | --program-suf | --program-su | --program-s) 1040 ac_prev=program_suffix ;; 1041 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1042 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1043 program_suffix=$ac_optarg ;; 1044 1045 -program-transform-name | --program-transform-name \ 1046 | --program-transform-nam | --program-transform-na \ 1047 | --program-transform-n | --program-transform- \ 1048 | --program-transform | --program-transfor \ 1049 | --program-transfo | --program-transf \ 1050 | --program-trans | --program-tran \ 1051 | --progr-tra | --program-tr | --program-t) 1052 ac_prev=program_transform_name ;; 1053 -program-transform-name=* | --program-transform-name=* \ 1054 | --program-transform-nam=* | --program-transform-na=* \ 1055 | --program-transform-n=* | --program-transform-=* \ 1056 | --program-transform=* | --program-transfor=* \ 1057 | --program-transfo=* | --program-transf=* \ 1058 | --program-trans=* | --program-tran=* \ 1059 | --progr-tra=* | --program-tr=* | --program-t=*) 1060 program_transform_name=$ac_optarg ;; 1061 1062 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1063 ac_prev=pdfdir ;; 1064 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1065 pdfdir=$ac_optarg ;; 1066 1067 -psdir | --psdir | --psdi | --psd | --ps) 1068 ac_prev=psdir ;; 1069 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1070 psdir=$ac_optarg ;; 1071 1072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1073 | -silent | --silent | --silen | --sile | --sil) 1074 silent=yes ;; 1075 1076 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1077 | --runstate | --runstat | --runsta | --runst | --runs \ 1078 | --run | --ru | --r) 1079 ac_prev=runstatedir ;; 1080 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1081 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1082 | --run=* | --ru=* | --r=*) 1083 runstatedir=$ac_optarg ;; 1084 1085 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1086 ac_prev=sbindir ;; 1087 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1088 | --sbi=* | --sb=*) 1089 sbindir=$ac_optarg ;; 1090 1091 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1092 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1093 | --sharedst | --shareds | --shared | --share | --shar \ 1094 | --sha | --sh) 1095 ac_prev=sharedstatedir ;; 1096 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1097 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1098 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1099 | --sha=* | --sh=*) 1100 sharedstatedir=$ac_optarg ;; 1101 1102 -site | --site | --sit) 1103 ac_prev=site ;; 1104 -site=* | --site=* | --sit=*) 1105 site=$ac_optarg ;; 1106 1107 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1108 ac_prev=srcdir ;; 1109 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1110 srcdir=$ac_optarg ;; 1111 1112 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1113 | --syscon | --sysco | --sysc | --sys | --sy) 1114 ac_prev=sysconfdir ;; 1115 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1116 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1117 sysconfdir=$ac_optarg ;; 1118 1119 -target | --target | --targe | --targ | --tar | --ta | --t) 1120 ac_prev=target_alias ;; 1121 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1122 target_alias=$ac_optarg ;; 1123 1124 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1125 verbose=yes ;; 1126 1127 -version | --version | --versio | --versi | --vers | -V) 1128 ac_init_version=: ;; 1129 1130 -with-* | --with-*) 1131 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1132 # Reject names that are not valid shell variable names. 1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1134 as_fn_error $? "invalid package name: $ac_useropt" 1135 ac_useropt_orig=$ac_useropt 1136 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1137 case $ac_user_opts in 1138 *" 1139"with_$ac_useropt" 1140"*) ;; 1141 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1142 ac_unrecognized_sep=', ';; 1143 esac 1144 eval with_$ac_useropt=\$ac_optarg ;; 1145 1146 -without-* | --without-*) 1147 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1148 # Reject names that are not valid shell variable names. 1149 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1150 as_fn_error $? "invalid package name: $ac_useropt" 1151 ac_useropt_orig=$ac_useropt 1152 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1153 case $ac_user_opts in 1154 *" 1155"with_$ac_useropt" 1156"*) ;; 1157 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1158 ac_unrecognized_sep=', ';; 1159 esac 1160 eval with_$ac_useropt=no ;; 1161 1162 --x) 1163 # Obsolete; use --with-x. 1164 with_x=yes ;; 1165 1166 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1167 | --x-incl | --x-inc | --x-in | --x-i) 1168 ac_prev=x_includes ;; 1169 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1170 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1171 x_includes=$ac_optarg ;; 1172 1173 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1174 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1175 ac_prev=x_libraries ;; 1176 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1177 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1178 x_libraries=$ac_optarg ;; 1179 1180 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1181Try \`$0 --help' for more information" 1182 ;; 1183 1184 *=*) 1185 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1186 # Reject names that are not valid shell variable names. 1187 case $ac_envvar in #( 1188 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1189 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1190 esac 1191 eval $ac_envvar=\$ac_optarg 1192 export $ac_envvar ;; 1193 1194 *) 1195 # FIXME: should be removed in autoconf 3.0. 1196 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1197 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1198 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1199 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1200 ;; 1201 1202 esac 1203done 1204 1205if test -n "$ac_prev"; then 1206 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1207 as_fn_error $? "missing argument to $ac_option" 1208fi 1209 1210if test -n "$ac_unrecognized_opts"; then 1211 case $enable_option_checking in 1212 no) ;; 1213 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1214 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1215 esac 1216fi 1217 1218# Check all directory arguments for consistency. 1219for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1220 datadir sysconfdir sharedstatedir localstatedir includedir \ 1221 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1222 libdir localedir mandir runstatedir 1223do 1224 eval ac_val=\$$ac_var 1225 # Remove trailing slashes. 1226 case $ac_val in 1227 */ ) 1228 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1229 eval $ac_var=\$ac_val;; 1230 esac 1231 # Be sure to have absolute directory names. 1232 case $ac_val in 1233 [\\/$]* | ?:[\\/]* ) continue;; 1234 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1235 esac 1236 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1237done 1238 1239# There might be people who depend on the old broken behavior: `$host' 1240# used to hold the argument of --host etc. 1241# FIXME: To remove some day. 1242build=$build_alias 1243host=$host_alias 1244target=$target_alias 1245 1246# FIXME: To remove some day. 1247if test "x$host_alias" != x; then 1248 if test "x$build_alias" = x; then 1249 cross_compiling=maybe 1250 elif test "x$build_alias" != "x$host_alias"; then 1251 cross_compiling=yes 1252 fi 1253fi 1254 1255ac_tool_prefix= 1256test -n "$host_alias" && ac_tool_prefix=$host_alias- 1257 1258test "$silent" = yes && exec 6>/dev/null 1259 1260 1261ac_pwd=`pwd` && test -n "$ac_pwd" && 1262ac_ls_di=`ls -di .` && 1263ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1264 as_fn_error $? "working directory cannot be determined" 1265test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1266 as_fn_error $? "pwd does not report name of working directory" 1267 1268 1269# Find the source files, if location was not specified. 1270if test -z "$srcdir"; then 1271 ac_srcdir_defaulted=yes 1272 # Try the directory containing this script, then the parent directory. 1273 ac_confdir=`$as_dirname -- "$as_myself" || 1274$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1275 X"$as_myself" : 'X\(//\)[^/]' \| \ 1276 X"$as_myself" : 'X\(//\)$' \| \ 1277 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1278$as_echo X"$as_myself" | 1279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1280 s//\1/ 1281 q 1282 } 1283 /^X\(\/\/\)[^/].*/{ 1284 s//\1/ 1285 q 1286 } 1287 /^X\(\/\/\)$/{ 1288 s//\1/ 1289 q 1290 } 1291 /^X\(\/\).*/{ 1292 s//\1/ 1293 q 1294 } 1295 s/.*/./; q'` 1296 srcdir=$ac_confdir 1297 if test ! -r "$srcdir/$ac_unique_file"; then 1298 srcdir=.. 1299 fi 1300else 1301 ac_srcdir_defaulted=no 1302fi 1303if test ! -r "$srcdir/$ac_unique_file"; then 1304 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1305 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1306fi 1307ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1308ac_abs_confdir=`( 1309 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1310 pwd)` 1311# When building in place, set srcdir=. 1312if test "$ac_abs_confdir" = "$ac_pwd"; then 1313 srcdir=. 1314fi 1315# Remove unnecessary trailing slashes from srcdir. 1316# Double slashes in file names in object file debugging info 1317# mess up M-x gdb in Emacs. 1318case $srcdir in 1319*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1320esac 1321for ac_var in $ac_precious_vars; do 1322 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1323 eval ac_env_${ac_var}_value=\$${ac_var} 1324 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1325 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1326done 1327 1328# 1329# Report the --help message. 1330# 1331if test "$ac_init_help" = "long"; then 1332 # Omit some internal or obsolete options to make the list less imposing. 1333 # This message is too long to be a string in the A/UX 3.1 sh. 1334 cat <<_ACEOF 1335\`configure' configures pcap 1.10.0 to adapt to many kinds of systems. 1336 1337Usage: $0 [OPTION]... [VAR=VALUE]... 1338 1339To assign environment variables (e.g., CC, CFLAGS...), specify them as 1340VAR=VALUE. See below for descriptions of some of the useful variables. 1341 1342Defaults for the options are specified in brackets. 1343 1344Configuration: 1345 -h, --help display this help and exit 1346 --help=short display options specific to this package 1347 --help=recursive display the short help of all the included packages 1348 -V, --version display version information and exit 1349 -q, --quiet, --silent do not print \`checking ...' messages 1350 --cache-file=FILE cache test results in FILE [disabled] 1351 -C, --config-cache alias for \`--cache-file=config.cache' 1352 -n, --no-create do not create output files 1353 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1354 1355Installation directories: 1356 --prefix=PREFIX install architecture-independent files in PREFIX 1357 [$ac_default_prefix] 1358 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1359 [PREFIX] 1360 1361By default, \`make install' will install all the files in 1362\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1363an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1364for instance \`--prefix=\$HOME'. 1365 1366For better control, use the options below. 1367 1368Fine tuning of the installation directories: 1369 --bindir=DIR user executables [EPREFIX/bin] 1370 --sbindir=DIR system admin executables [EPREFIX/sbin] 1371 --libexecdir=DIR program executables [EPREFIX/libexec] 1372 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1373 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1374 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1375 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1376 --libdir=DIR object code libraries [EPREFIX/lib] 1377 --includedir=DIR C header files [PREFIX/include] 1378 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1379 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1380 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1381 --infodir=DIR info documentation [DATAROOTDIR/info] 1382 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1383 --mandir=DIR man documentation [DATAROOTDIR/man] 1384 --docdir=DIR documentation root [DATAROOTDIR/doc/pcap] 1385 --htmldir=DIR html documentation [DOCDIR] 1386 --dvidir=DIR dvi documentation [DOCDIR] 1387 --pdfdir=DIR pdf documentation [DOCDIR] 1388 --psdir=DIR ps documentation [DOCDIR] 1389_ACEOF 1390 1391 cat <<\_ACEOF 1392 1393System types: 1394 --build=BUILD configure for building on BUILD [guessed] 1395 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1396 --target=TARGET configure for building compilers for TARGET [HOST] 1397_ACEOF 1398fi 1399 1400if test -n "$ac_init_help"; then 1401 case $ac_init_help in 1402 short | recursive ) echo "Configuration of pcap 1.10.0:";; 1403 esac 1404 cat <<\_ACEOF 1405 1406Optional Features: 1407 --disable-option-checking ignore unrecognized --enable/--with options 1408 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1409 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1410 --disable-largefile omit support for large files 1411 --disable-protochain disable \"protochain\" insn 1412 --enable-ipv6 build IPv6-capable version [default=yes] 1413 --enable-remote enable remote packet capture [default=no] 1414 --disable-remote disable remote packet capture 1415 --enable-optimizer-dbg build optimizer debugging code 1416 --enable-yydebug build parser debugging code 1417 --disable-universal don't build universal on macOS 1418 --enable-shared build shared libraries [default=yes, if support 1419 available] 1420 --enable-usb enable Linux usbmon USB capture support 1421 [default=yes, if support available] 1422 --enable-netmap enable netmap support [default=yes, if support 1423 available] 1424 --enable-bluetooth enable Bluetooth support [default=yes, if support 1425 available] 1426 --enable-dbus enable D-Bus capture support [default=yes, if 1427 support available] 1428 --enable-rdma enable RDMA capture support [default=yes, if support 1429 available] 1430 1431Optional Packages: 1432 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1433 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1434 --without-gcc don't use gcc 1435 --with-pcap=TYPE use packet capture TYPE 1436 --without-libnl disable libnl support [default=yes, on Linux, if 1437 present] 1438 --with-dag[=DIR] include Endace DAG support (located in directory 1439 DIR, if supplied). [default=yes, if present] 1440 --with-dag-includes=IDIR 1441 Endace DAG include directory, if not DIR/include 1442 --with-dag-libraries=LDIR 1443 Endace DAG library directory, if not DIR/lib 1444 --with-septel[=DIR] include Septel support (located in directory DIR, if 1445 supplied). [default=yes, if present] 1446 --with-snf[=DIR] include Myricom SNF support (located in directory 1447 DIR, if supplied). [default=yes, if present] 1448 --with-snf-includes=IDIR 1449 Myricom SNF include directory, if not DIR/include 1450 --with-snf-libraries=LDIR 1451 Myricom SNF library directory, if not DIR/lib 1452 --with-turbocap[=DIR] include Riverbed TurboCap support (located in 1453 directory DIR, if supplied). [default=yes, if 1454 present] 1455 --with-dpdk[=DIR] include DPDK support (located in directory DIR, if 1456 supplied). [default=yes, if present] 1457 1458Some influential environment variables: 1459 CC C compiler command 1460 CFLAGS C compiler flags 1461 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1462 nonstandard directory <lib dir> 1463 LIBS libraries to pass to the linker, e.g. -l<library> 1464 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1465 you have headers in a nonstandard directory <include dir> 1466 CXX C++ compiler command 1467 CXXFLAGS C++ compiler flags 1468 CPP C preprocessor 1469 YACC The `Yet Another Compiler Compiler' implementation to use. 1470 Defaults to the first program found out of: `bison -y', `byacc', 1471 `yacc'. 1472 YFLAGS The list of arguments that will be passed by default to $YACC. 1473 This script will default YFLAGS to the empty string to avoid a 1474 default value of `-d' given by some make applications. 1475 1476Use these variables to override the choices made by `configure' or to help 1477it to find libraries and programs with nonstandard names/locations. 1478 1479Report bugs to the package provider. 1480_ACEOF 1481ac_status=$? 1482fi 1483 1484if test "$ac_init_help" = "recursive"; then 1485 # If there are subdirs, report their specific --help. 1486 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1487 test -d "$ac_dir" || 1488 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1489 continue 1490 ac_builddir=. 1491 1492case "$ac_dir" in 1493.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1494*) 1495 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1496 # A ".." for each directory in $ac_dir_suffix. 1497 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1498 case $ac_top_builddir_sub in 1499 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1500 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1501 esac ;; 1502esac 1503ac_abs_top_builddir=$ac_pwd 1504ac_abs_builddir=$ac_pwd$ac_dir_suffix 1505# for backward compatibility: 1506ac_top_builddir=$ac_top_build_prefix 1507 1508case $srcdir in 1509 .) # We are building in place. 1510 ac_srcdir=. 1511 ac_top_srcdir=$ac_top_builddir_sub 1512 ac_abs_top_srcdir=$ac_pwd ;; 1513 [\\/]* | ?:[\\/]* ) # Absolute name. 1514 ac_srcdir=$srcdir$ac_dir_suffix; 1515 ac_top_srcdir=$srcdir 1516 ac_abs_top_srcdir=$srcdir ;; 1517 *) # Relative name. 1518 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1519 ac_top_srcdir=$ac_top_build_prefix$srcdir 1520 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1521esac 1522ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1523 1524 cd "$ac_dir" || { ac_status=$?; continue; } 1525 # Check for guested configure. 1526 if test -f "$ac_srcdir/configure.gnu"; then 1527 echo && 1528 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1529 elif test -f "$ac_srcdir/configure"; then 1530 echo && 1531 $SHELL "$ac_srcdir/configure" --help=recursive 1532 else 1533 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1534 fi || ac_status=$? 1535 cd "$ac_pwd" || { ac_status=$?; break; } 1536 done 1537fi 1538 1539test -n "$ac_init_help" && exit $ac_status 1540if $ac_init_version; then 1541 cat <<\_ACEOF 1542pcap configure 1.10.0 1543generated by GNU Autoconf 2.69 1544 1545Copyright (C) 2012 Free Software Foundation, Inc. 1546This configure script is free software; the Free Software Foundation 1547gives unlimited permission to copy, distribute and modify it. 1548_ACEOF 1549 exit 1550fi 1551 1552## ------------------------ ## 1553## Autoconf initialization. ## 1554## ------------------------ ## 1555 1556# ac_fn_c_try_compile LINENO 1557# -------------------------- 1558# Try to compile conftest.$ac_ext, and return whether this succeeded. 1559ac_fn_c_try_compile () 1560{ 1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1562 rm -f conftest.$ac_objext 1563 if { { ac_try="$ac_compile" 1564case "(($ac_try" in 1565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1566 *) ac_try_echo=$ac_try;; 1567esac 1568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1569$as_echo "$ac_try_echo"; } >&5 1570 (eval "$ac_compile") 2>conftest.err 1571 ac_status=$? 1572 if test -s conftest.err; then 1573 grep -v '^ *+' conftest.err >conftest.er1 1574 cat conftest.er1 >&5 1575 mv -f conftest.er1 conftest.err 1576 fi 1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1578 test $ac_status = 0; } && { 1579 test -z "$ac_c_werror_flag" || 1580 test ! -s conftest.err 1581 } && test -s conftest.$ac_objext; then : 1582 ac_retval=0 1583else 1584 $as_echo "$as_me: failed program was:" >&5 1585sed 's/^/| /' conftest.$ac_ext >&5 1586 1587 ac_retval=1 1588fi 1589 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1590 as_fn_set_status $ac_retval 1591 1592} # ac_fn_c_try_compile 1593 1594# ac_fn_cxx_try_compile LINENO 1595# ---------------------------- 1596# Try to compile conftest.$ac_ext, and return whether this succeeded. 1597ac_fn_cxx_try_compile () 1598{ 1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1600 rm -f conftest.$ac_objext 1601 if { { ac_try="$ac_compile" 1602case "(($ac_try" in 1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1604 *) ac_try_echo=$ac_try;; 1605esac 1606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1607$as_echo "$ac_try_echo"; } >&5 1608 (eval "$ac_compile") 2>conftest.err 1609 ac_status=$? 1610 if test -s conftest.err; then 1611 grep -v '^ *+' conftest.err >conftest.er1 1612 cat conftest.er1 >&5 1613 mv -f conftest.er1 conftest.err 1614 fi 1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1616 test $ac_status = 0; } && { 1617 test -z "$ac_cxx_werror_flag" || 1618 test ! -s conftest.err 1619 } && test -s conftest.$ac_objext; then : 1620 ac_retval=0 1621else 1622 $as_echo "$as_me: failed program was:" >&5 1623sed 's/^/| /' conftest.$ac_ext >&5 1624 1625 ac_retval=1 1626fi 1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1628 as_fn_set_status $ac_retval 1629 1630} # ac_fn_cxx_try_compile 1631 1632# ac_fn_c_try_link LINENO 1633# ----------------------- 1634# Try to link conftest.$ac_ext, and return whether this succeeded. 1635ac_fn_c_try_link () 1636{ 1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1638 rm -f conftest.$ac_objext conftest$ac_exeext 1639 if { { ac_try="$ac_link" 1640case "(($ac_try" in 1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1642 *) ac_try_echo=$ac_try;; 1643esac 1644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1645$as_echo "$ac_try_echo"; } >&5 1646 (eval "$ac_link") 2>conftest.err 1647 ac_status=$? 1648 if test -s conftest.err; then 1649 grep -v '^ *+' conftest.err >conftest.er1 1650 cat conftest.er1 >&5 1651 mv -f conftest.er1 conftest.err 1652 fi 1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1654 test $ac_status = 0; } && { 1655 test -z "$ac_c_werror_flag" || 1656 test ! -s conftest.err 1657 } && test -s conftest$ac_exeext && { 1658 test "$cross_compiling" = yes || 1659 test -x conftest$ac_exeext 1660 }; then : 1661 ac_retval=0 1662else 1663 $as_echo "$as_me: failed program was:" >&5 1664sed 's/^/| /' conftest.$ac_ext >&5 1665 1666 ac_retval=1 1667fi 1668 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1669 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1670 # interfere with the next link command; also delete a directory that is 1671 # left behind by Apple's compiler. We do this before executing the actions. 1672 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1674 as_fn_set_status $ac_retval 1675 1676} # ac_fn_c_try_link 1677 1678# ac_fn_c_try_cpp LINENO 1679# ---------------------- 1680# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1681ac_fn_c_try_cpp () 1682{ 1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1684 if { { ac_try="$ac_cpp conftest.$ac_ext" 1685case "(($ac_try" in 1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1687 *) ac_try_echo=$ac_try;; 1688esac 1689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1690$as_echo "$ac_try_echo"; } >&5 1691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1692 ac_status=$? 1693 if test -s conftest.err; then 1694 grep -v '^ *+' conftest.err >conftest.er1 1695 cat conftest.er1 >&5 1696 mv -f conftest.er1 conftest.err 1697 fi 1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1699 test $ac_status = 0; } > conftest.i && { 1700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1701 test ! -s conftest.err 1702 }; then : 1703 ac_retval=0 1704else 1705 $as_echo "$as_me: failed program was:" >&5 1706sed 's/^/| /' conftest.$ac_ext >&5 1707 1708 ac_retval=1 1709fi 1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1711 as_fn_set_status $ac_retval 1712 1713} # ac_fn_c_try_cpp 1714 1715# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1716# ------------------------------------------------------- 1717# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1718# the include files in INCLUDES and setting the cache variable VAR 1719# accordingly. 1720ac_fn_c_check_header_mongrel () 1721{ 1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1723 if eval \${$3+:} false; then : 1724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1725$as_echo_n "checking for $2... " >&6; } 1726if eval \${$3+:} false; then : 1727 $as_echo_n "(cached) " >&6 1728fi 1729eval ac_res=\$$3 1730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1731$as_echo "$ac_res" >&6; } 1732else 1733 # Is the header compilable? 1734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1735$as_echo_n "checking $2 usability... " >&6; } 1736cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1737/* end confdefs.h. */ 1738$4 1739#include <$2> 1740_ACEOF 1741if ac_fn_c_try_compile "$LINENO"; then : 1742 ac_header_compiler=yes 1743else 1744 ac_header_compiler=no 1745fi 1746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1748$as_echo "$ac_header_compiler" >&6; } 1749 1750# Is the header present? 1751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1752$as_echo_n "checking $2 presence... " >&6; } 1753cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1754/* end confdefs.h. */ 1755#include <$2> 1756_ACEOF 1757if ac_fn_c_try_cpp "$LINENO"; then : 1758 ac_header_preproc=yes 1759else 1760 ac_header_preproc=no 1761fi 1762rm -f conftest.err conftest.i conftest.$ac_ext 1763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1764$as_echo "$ac_header_preproc" >&6; } 1765 1766# So? What about this header? 1767case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1768 yes:no: ) 1769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1770$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1772$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1773 ;; 1774 no:yes:* ) 1775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1776$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1778$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1780$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1782$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1784$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1785 ;; 1786esac 1787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1788$as_echo_n "checking for $2... " >&6; } 1789if eval \${$3+:} false; then : 1790 $as_echo_n "(cached) " >&6 1791else 1792 eval "$3=\$ac_header_compiler" 1793fi 1794eval ac_res=\$$3 1795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1796$as_echo "$ac_res" >&6; } 1797fi 1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1799 1800} # ac_fn_c_check_header_mongrel 1801 1802# ac_fn_c_try_run LINENO 1803# ---------------------- 1804# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1805# that executables *can* be run. 1806ac_fn_c_try_run () 1807{ 1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1809 if { { ac_try="$ac_link" 1810case "(($ac_try" in 1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1812 *) ac_try_echo=$ac_try;; 1813esac 1814eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1815$as_echo "$ac_try_echo"; } >&5 1816 (eval "$ac_link") 2>&5 1817 ac_status=$? 1818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1819 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1820 { { case "(($ac_try" in 1821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1822 *) ac_try_echo=$ac_try;; 1823esac 1824eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1825$as_echo "$ac_try_echo"; } >&5 1826 (eval "$ac_try") 2>&5 1827 ac_status=$? 1828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1829 test $ac_status = 0; }; }; then : 1830 ac_retval=0 1831else 1832 $as_echo "$as_me: program exited with status $ac_status" >&5 1833 $as_echo "$as_me: failed program was:" >&5 1834sed 's/^/| /' conftest.$ac_ext >&5 1835 1836 ac_retval=$ac_status 1837fi 1838 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1840 as_fn_set_status $ac_retval 1841 1842} # ac_fn_c_try_run 1843 1844# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1845# ------------------------------------------------------- 1846# Tests whether HEADER exists and can be compiled using the include files in 1847# INCLUDES, setting the cache variable VAR accordingly. 1848ac_fn_c_check_header_compile () 1849{ 1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1852$as_echo_n "checking for $2... " >&6; } 1853if eval \${$3+:} false; then : 1854 $as_echo_n "(cached) " >&6 1855else 1856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1857/* end confdefs.h. */ 1858$4 1859#include <$2> 1860_ACEOF 1861if ac_fn_c_try_compile "$LINENO"; then : 1862 eval "$3=yes" 1863else 1864 eval "$3=no" 1865fi 1866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1867fi 1868eval ac_res=\$$3 1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1870$as_echo "$ac_res" >&6; } 1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1872 1873} # ac_fn_c_check_header_compile 1874 1875# ac_fn_c_check_func LINENO FUNC VAR 1876# ---------------------------------- 1877# Tests whether FUNC exists, setting the cache variable VAR accordingly 1878ac_fn_c_check_func () 1879{ 1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1882$as_echo_n "checking for $2... " >&6; } 1883if eval \${$3+:} false; then : 1884 $as_echo_n "(cached) " >&6 1885else 1886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1887/* end confdefs.h. */ 1888/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1889 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1890#define $2 innocuous_$2 1891 1892/* System header to define __stub macros and hopefully few prototypes, 1893 which can conflict with char $2 (); below. 1894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1895 <limits.h> exists even on freestanding compilers. */ 1896 1897#ifdef __STDC__ 1898# include <limits.h> 1899#else 1900# include <assert.h> 1901#endif 1902 1903#undef $2 1904 1905/* Override any GCC internal prototype to avoid an error. 1906 Use char because int might match the return type of a GCC 1907 builtin and then its argument prototype would still apply. */ 1908#ifdef __cplusplus 1909extern "C" 1910#endif 1911char $2 (); 1912/* The GNU C library defines this for functions which it implements 1913 to always fail with ENOSYS. Some functions are actually named 1914 something starting with __ and the normal name is an alias. */ 1915#if defined __stub_$2 || defined __stub___$2 1916choke me 1917#endif 1918 1919int 1920main () 1921{ 1922return $2 (); 1923 ; 1924 return 0; 1925} 1926_ACEOF 1927if ac_fn_c_try_link "$LINENO"; then : 1928 eval "$3=yes" 1929else 1930 eval "$3=no" 1931fi 1932rm -f core conftest.err conftest.$ac_objext \ 1933 conftest$ac_exeext conftest.$ac_ext 1934fi 1935eval ac_res=\$$3 1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1937$as_echo "$ac_res" >&6; } 1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1939 1940} # ac_fn_c_check_func 1941 1942# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1943# --------------------------------------------- 1944# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1945# accordingly. 1946ac_fn_c_check_decl () 1947{ 1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1949 as_decl_name=`echo $2|sed 's/ *(.*//'` 1950 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1952$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1953if eval \${$3+:} false; then : 1954 $as_echo_n "(cached) " >&6 1955else 1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1957/* end confdefs.h. */ 1958$4 1959int 1960main () 1961{ 1962#ifndef $as_decl_name 1963#ifdef __cplusplus 1964 (void) $as_decl_use; 1965#else 1966 (void) $as_decl_name; 1967#endif 1968#endif 1969 1970 ; 1971 return 0; 1972} 1973_ACEOF 1974if ac_fn_c_try_compile "$LINENO"; then : 1975 eval "$3=yes" 1976else 1977 eval "$3=no" 1978fi 1979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1980fi 1981eval ac_res=\$$3 1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1983$as_echo "$ac_res" >&6; } 1984 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1985 1986} # ac_fn_c_check_decl 1987 1988# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1989# ------------------------------------------- 1990# Tests whether TYPE exists after having included INCLUDES, setting cache 1991# variable VAR accordingly. 1992ac_fn_c_check_type () 1993{ 1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1996$as_echo_n "checking for $2... " >&6; } 1997if eval \${$3+:} false; then : 1998 $as_echo_n "(cached) " >&6 1999else 2000 eval "$3=no" 2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2002/* end confdefs.h. */ 2003$4 2004int 2005main () 2006{ 2007if (sizeof ($2)) 2008 return 0; 2009 ; 2010 return 0; 2011} 2012_ACEOF 2013if ac_fn_c_try_compile "$LINENO"; then : 2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2015/* end confdefs.h. */ 2016$4 2017int 2018main () 2019{ 2020if (sizeof (($2))) 2021 return 0; 2022 ; 2023 return 0; 2024} 2025_ACEOF 2026if ac_fn_c_try_compile "$LINENO"; then : 2027 2028else 2029 eval "$3=yes" 2030fi 2031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2032fi 2033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2034fi 2035eval ac_res=\$$3 2036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2037$as_echo "$ac_res" >&6; } 2038 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2039 2040} # ac_fn_c_check_type 2041 2042# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2043# ---------------------------------------------------- 2044# Tries to find if the field MEMBER exists in type AGGR, after including 2045# INCLUDES, setting cache variable VAR accordingly. 2046ac_fn_c_check_member () 2047{ 2048 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2050$as_echo_n "checking for $2.$3... " >&6; } 2051if eval \${$4+:} false; then : 2052 $as_echo_n "(cached) " >&6 2053else 2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2055/* end confdefs.h. */ 2056$5 2057int 2058main () 2059{ 2060static $2 ac_aggr; 2061if (ac_aggr.$3) 2062return 0; 2063 ; 2064 return 0; 2065} 2066_ACEOF 2067if ac_fn_c_try_compile "$LINENO"; then : 2068 eval "$4=yes" 2069else 2070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2071/* end confdefs.h. */ 2072$5 2073int 2074main () 2075{ 2076static $2 ac_aggr; 2077if (sizeof ac_aggr.$3) 2078return 0; 2079 ; 2080 return 0; 2081} 2082_ACEOF 2083if ac_fn_c_try_compile "$LINENO"; then : 2084 eval "$4=yes" 2085else 2086 eval "$4=no" 2087fi 2088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2089fi 2090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2091fi 2092eval ac_res=\$$4 2093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2094$as_echo "$ac_res" >&6; } 2095 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2096 2097} # ac_fn_c_check_member 2098cat >config.log <<_ACEOF 2099This file contains any messages produced by compilers while 2100running configure, to aid debugging if configure makes a mistake. 2101 2102It was created by pcap $as_me 1.10.0, which was 2103generated by GNU Autoconf 2.69. Invocation command line was 2104 2105 $ $0 $@ 2106 2107_ACEOF 2108exec 5>>config.log 2109{ 2110cat <<_ASUNAME 2111## --------- ## 2112## Platform. ## 2113## --------- ## 2114 2115hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2116uname -m = `(uname -m) 2>/dev/null || echo unknown` 2117uname -r = `(uname -r) 2>/dev/null || echo unknown` 2118uname -s = `(uname -s) 2>/dev/null || echo unknown` 2119uname -v = `(uname -v) 2>/dev/null || echo unknown` 2120 2121/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2122/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2123 2124/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2125/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2126/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2127/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2128/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2129/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2130/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2131 2132_ASUNAME 2133 2134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2135for as_dir in $PATH 2136do 2137 IFS=$as_save_IFS 2138 test -z "$as_dir" && as_dir=. 2139 $as_echo "PATH: $as_dir" 2140 done 2141IFS=$as_save_IFS 2142 2143} >&5 2144 2145cat >&5 <<_ACEOF 2146 2147 2148## ----------- ## 2149## Core tests. ## 2150## ----------- ## 2151 2152_ACEOF 2153 2154 2155# Keep a trace of the command line. 2156# Strip out --no-create and --no-recursion so they do not pile up. 2157# Strip out --silent because we don't want to record it for future runs. 2158# Also quote any args containing shell meta-characters. 2159# Make two passes to allow for proper duplicate-argument suppression. 2160ac_configure_args= 2161ac_configure_args0= 2162ac_configure_args1= 2163ac_must_keep_next=false 2164for ac_pass in 1 2 2165do 2166 for ac_arg 2167 do 2168 case $ac_arg in 2169 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2170 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2171 | -silent | --silent | --silen | --sile | --sil) 2172 continue ;; 2173 *\'*) 2174 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2175 esac 2176 case $ac_pass in 2177 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2178 2) 2179 as_fn_append ac_configure_args1 " '$ac_arg'" 2180 if test $ac_must_keep_next = true; then 2181 ac_must_keep_next=false # Got value, back to normal. 2182 else 2183 case $ac_arg in 2184 *=* | --config-cache | -C | -disable-* | --disable-* \ 2185 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2186 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2187 | -with-* | --with-* | -without-* | --without-* | --x) 2188 case "$ac_configure_args0 " in 2189 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2190 esac 2191 ;; 2192 -* ) ac_must_keep_next=true ;; 2193 esac 2194 fi 2195 as_fn_append ac_configure_args " '$ac_arg'" 2196 ;; 2197 esac 2198 done 2199done 2200{ ac_configure_args0=; unset ac_configure_args0;} 2201{ ac_configure_args1=; unset ac_configure_args1;} 2202 2203# When interrupted or exit'd, cleanup temporary files, and complete 2204# config.log. We remove comments because anyway the quotes in there 2205# would cause problems or look ugly. 2206# WARNING: Use '\'' to represent an apostrophe within the trap. 2207# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2208trap 'exit_status=$? 2209 # Save into config.log some information that might help in debugging. 2210 { 2211 echo 2212 2213 $as_echo "## ---------------- ## 2214## Cache variables. ## 2215## ---------------- ##" 2216 echo 2217 # The following way of writing the cache mishandles newlines in values, 2218( 2219 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2220 eval ac_val=\$$ac_var 2221 case $ac_val in #( 2222 *${as_nl}*) 2223 case $ac_var in #( 2224 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2225$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2226 esac 2227 case $ac_var in #( 2228 _ | IFS | as_nl) ;; #( 2229 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2230 *) { eval $ac_var=; unset $ac_var;} ;; 2231 esac ;; 2232 esac 2233 done 2234 (set) 2>&1 | 2235 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2236 *${as_nl}ac_space=\ *) 2237 sed -n \ 2238 "s/'\''/'\''\\\\'\'''\''/g; 2239 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2240 ;; #( 2241 *) 2242 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2243 ;; 2244 esac | 2245 sort 2246) 2247 echo 2248 2249 $as_echo "## ----------------- ## 2250## Output variables. ## 2251## ----------------- ##" 2252 echo 2253 for ac_var in $ac_subst_vars 2254 do 2255 eval ac_val=\$$ac_var 2256 case $ac_val in 2257 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2258 esac 2259 $as_echo "$ac_var='\''$ac_val'\''" 2260 done | sort 2261 echo 2262 2263 if test -n "$ac_subst_files"; then 2264 $as_echo "## ------------------- ## 2265## File substitutions. ## 2266## ------------------- ##" 2267 echo 2268 for ac_var in $ac_subst_files 2269 do 2270 eval ac_val=\$$ac_var 2271 case $ac_val in 2272 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2273 esac 2274 $as_echo "$ac_var='\''$ac_val'\''" 2275 done | sort 2276 echo 2277 fi 2278 2279 if test -s confdefs.h; then 2280 $as_echo "## ----------- ## 2281## confdefs.h. ## 2282## ----------- ##" 2283 echo 2284 cat confdefs.h 2285 echo 2286 fi 2287 test "$ac_signal" != 0 && 2288 $as_echo "$as_me: caught signal $ac_signal" 2289 $as_echo "$as_me: exit $exit_status" 2290 } >&5 2291 rm -f core *.core core.conftest.* && 2292 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2293 exit $exit_status 2294' 0 2295for ac_signal in 1 2 13 15; do 2296 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2297done 2298ac_signal=0 2299 2300# confdefs.h avoids OS command line length limits that DEFS can exceed. 2301rm -f -r conftest* confdefs.h 2302 2303$as_echo "/* confdefs.h */" > confdefs.h 2304 2305# Predefined preprocessor variables. 2306 2307cat >>confdefs.h <<_ACEOF 2308#define PACKAGE_NAME "$PACKAGE_NAME" 2309_ACEOF 2310 2311cat >>confdefs.h <<_ACEOF 2312#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2313_ACEOF 2314 2315cat >>confdefs.h <<_ACEOF 2316#define PACKAGE_VERSION "$PACKAGE_VERSION" 2317_ACEOF 2318 2319cat >>confdefs.h <<_ACEOF 2320#define PACKAGE_STRING "$PACKAGE_STRING" 2321_ACEOF 2322 2323cat >>confdefs.h <<_ACEOF 2324#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2325_ACEOF 2326 2327cat >>confdefs.h <<_ACEOF 2328#define PACKAGE_URL "$PACKAGE_URL" 2329_ACEOF 2330 2331 2332# Let the site file select an alternate cache file if it wants to. 2333# Prefer an explicitly selected file to automatically selected ones. 2334ac_site_file1=NONE 2335ac_site_file2=NONE 2336if test -n "$CONFIG_SITE"; then 2337 # We do not want a PATH search for config.site. 2338 case $CONFIG_SITE in #(( 2339 -*) ac_site_file1=./$CONFIG_SITE;; 2340 */*) ac_site_file1=$CONFIG_SITE;; 2341 *) ac_site_file1=./$CONFIG_SITE;; 2342 esac 2343elif test "x$prefix" != xNONE; then 2344 ac_site_file1=$prefix/share/config.site 2345 ac_site_file2=$prefix/etc/config.site 2346else 2347 ac_site_file1=$ac_default_prefix/share/config.site 2348 ac_site_file2=$ac_default_prefix/etc/config.site 2349fi 2350for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2351do 2352 test "x$ac_site_file" = xNONE && continue 2353 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2354 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2355$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2356 sed 's/^/| /' "$ac_site_file" >&5 2357 . "$ac_site_file" \ 2358 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2359$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2360as_fn_error $? "failed to load site script $ac_site_file 2361See \`config.log' for more details" "$LINENO" 5; } 2362 fi 2363done 2364 2365if test -r "$cache_file"; then 2366 # Some versions of bash will fail to source /dev/null (special files 2367 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2368 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2369 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2370$as_echo "$as_me: loading cache $cache_file" >&6;} 2371 case $cache_file in 2372 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2373 *) . "./$cache_file";; 2374 esac 2375 fi 2376else 2377 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2378$as_echo "$as_me: creating cache $cache_file" >&6;} 2379 >$cache_file 2380fi 2381 2382# Check that the precious variables saved in the cache have kept the same 2383# value. 2384ac_cache_corrupted=false 2385for ac_var in $ac_precious_vars; do 2386 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2387 eval ac_new_set=\$ac_env_${ac_var}_set 2388 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2389 eval ac_new_val=\$ac_env_${ac_var}_value 2390 case $ac_old_set,$ac_new_set in 2391 set,) 2392 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2393$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2394 ac_cache_corrupted=: ;; 2395 ,set) 2396 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2397$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2398 ac_cache_corrupted=: ;; 2399 ,);; 2400 *) 2401 if test "x$ac_old_val" != "x$ac_new_val"; then 2402 # differences in whitespace do not lead to failure. 2403 ac_old_val_w=`echo x $ac_old_val` 2404 ac_new_val_w=`echo x $ac_new_val` 2405 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2406 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2407$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2408 ac_cache_corrupted=: 2409 else 2410 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2411$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2412 eval $ac_var=\$ac_old_val 2413 fi 2414 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2415$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2416 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2417$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2418 fi;; 2419 esac 2420 # Pass precious variables to config.status. 2421 if test "$ac_new_set" = set; then 2422 case $ac_new_val in 2423 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2424 *) ac_arg=$ac_var=$ac_new_val ;; 2425 esac 2426 case " $ac_configure_args " in 2427 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2428 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2429 esac 2430 fi 2431done 2432if $ac_cache_corrupted; then 2433 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2434$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2435 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2436$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2437 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2438fi 2439## -------------------- ## 2440## Main body of script. ## 2441## -------------------- ## 2442 2443ac_ext=c 2444ac_cpp='$CPP $CPPFLAGS' 2445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2447ac_compiler_gnu=$ac_cv_c_compiler_gnu 2448 2449 2450 2451 2452 2453ac_aux_dir= 2454for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2455 if test -f "$ac_dir/install-sh"; then 2456 ac_aux_dir=$ac_dir 2457 ac_install_sh="$ac_aux_dir/install-sh -c" 2458 break 2459 elif test -f "$ac_dir/install.sh"; then 2460 ac_aux_dir=$ac_dir 2461 ac_install_sh="$ac_aux_dir/install.sh -c" 2462 break 2463 elif test -f "$ac_dir/shtool"; then 2464 ac_aux_dir=$ac_dir 2465 ac_install_sh="$ac_aux_dir/shtool install -c" 2466 break 2467 fi 2468done 2469if test -z "$ac_aux_dir"; then 2470 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2471fi 2472 2473# These three variables are undocumented and unsupported, 2474# and are intended to be withdrawn in a future Autoconf release. 2475# They can cause serious problems if a builder's source tree is in a directory 2476# whose full name contains unusual characters. 2477ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2478ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2479ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2480 2481 2482# Make sure we can run config.sub. 2483$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2484 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2485 2486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2487$as_echo_n "checking build system type... " >&6; } 2488if ${ac_cv_build+:} false; then : 2489 $as_echo_n "(cached) " >&6 2490else 2491 ac_build_alias=$build_alias 2492test "x$ac_build_alias" = x && 2493 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2494test "x$ac_build_alias" = x && 2495 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2496ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2497 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2498 2499fi 2500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2501$as_echo "$ac_cv_build" >&6; } 2502case $ac_cv_build in 2503*-*-*) ;; 2504*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2505esac 2506build=$ac_cv_build 2507ac_save_IFS=$IFS; IFS='-' 2508set x $ac_cv_build 2509shift 2510build_cpu=$1 2511build_vendor=$2 2512shift; shift 2513# Remember, the first character of IFS is used to create $*, 2514# except with old shells: 2515build_os=$* 2516IFS=$ac_save_IFS 2517case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2518 2519 2520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2521$as_echo_n "checking host system type... " >&6; } 2522if ${ac_cv_host+:} false; then : 2523 $as_echo_n "(cached) " >&6 2524else 2525 if test "x$host_alias" = x; then 2526 ac_cv_host=$ac_cv_build 2527else 2528 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2529 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2530fi 2531 2532fi 2533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2534$as_echo "$ac_cv_host" >&6; } 2535case $ac_cv_host in 2536*-*-*) ;; 2537*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2538esac 2539host=$ac_cv_host 2540ac_save_IFS=$IFS; IFS='-' 2541set x $ac_cv_host 2542shift 2543host_cpu=$1 2544host_vendor=$2 2545shift; shift 2546# Remember, the first character of IFS is used to create $*, 2547# except with old shells: 2548host_os=$* 2549IFS=$ac_save_IFS 2550case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2551 2552 2553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2554$as_echo_n "checking target system type... " >&6; } 2555if ${ac_cv_target+:} false; then : 2556 $as_echo_n "(cached) " >&6 2557else 2558 if test "x$target_alias" = x; then 2559 ac_cv_target=$ac_cv_host 2560else 2561 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2562 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2563fi 2564 2565fi 2566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2567$as_echo "$ac_cv_target" >&6; } 2568case $ac_cv_target in 2569*-*-*) ;; 2570*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2571esac 2572target=$ac_cv_target 2573ac_save_IFS=$IFS; IFS='-' 2574set x $ac_cv_target 2575shift 2576target_cpu=$1 2577target_vendor=$2 2578shift; shift 2579# Remember, the first character of IFS is used to create $*, 2580# except with old shells: 2581target_os=$* 2582IFS=$ac_save_IFS 2583case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2584 2585 2586# The aliases save the names the user supplied, while $host etc. 2587# will get canonicalized. 2588test -n "$target_alias" && 2589 test "$program_prefix$program_suffix$program_transform_name" = \ 2590 NONENONEs,x,x, && 2591 program_prefix=${target_alias}- 2592 2593 2594 2595 2596 2597 2598 2599 2600# Check whether --with-gcc was given. 2601if test "${with_gcc+set}" = set; then : 2602 withval=$with_gcc; 2603fi 2604 2605 V_CCOPT="" 2606 if test "${srcdir}" != "." ; then 2607 V_CCOPT="-I\$(srcdir)" 2608 fi 2609 if test "${CFLAGS+set}" = set; then 2610 LBL_CFLAGS="$CFLAGS" 2611 fi 2612 if test -z "$CC" ; then 2613 case "$host_os" in 2614 2615 bsdi*) 2616 # Extract the first word of "shlicc2", so it can be a program name with args. 2617set dummy shlicc2; ac_word=$2 2618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2619$as_echo_n "checking for $ac_word... " >&6; } 2620if ${ac_cv_prog_SHLICC2+:} false; then : 2621 $as_echo_n "(cached) " >&6 2622else 2623 if test -n "$SHLICC2"; then 2624 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test. 2625else 2626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2627for as_dir in $PATH 2628do 2629 IFS=$as_save_IFS 2630 test -z "$as_dir" && as_dir=. 2631 for ac_exec_ext in '' $ac_executable_extensions; do 2632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2633 ac_cv_prog_SHLICC2="yes" 2634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2635 break 2 2636 fi 2637done 2638 done 2639IFS=$as_save_IFS 2640 2641 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no" 2642fi 2643fi 2644SHLICC2=$ac_cv_prog_SHLICC2 2645if test -n "$SHLICC2"; then 2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLICC2" >&5 2647$as_echo "$SHLICC2" >&6; } 2648else 2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2650$as_echo "no" >&6; } 2651fi 2652 2653 2654 if test $SHLICC2 = yes ; then 2655 CC=shlicc2 2656 export CC 2657 fi 2658 ;; 2659 esac 2660 fi 2661 if test -z "$CC" -a "$with_gcc" = no ; then 2662 CC=cc 2663 export CC 2664 fi 2665 2666# 2667# We require C99 or later. 2668# Try to get it, which may involve adding compiler flags; 2669# if that fails, give up. 2670# 2671ac_ext=c 2672ac_cpp='$CPP $CPPFLAGS' 2673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2675ac_compiler_gnu=$ac_cv_c_compiler_gnu 2676if test -n "$ac_tool_prefix"; then 2677 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2678set dummy ${ac_tool_prefix}gcc; ac_word=$2 2679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2680$as_echo_n "checking for $ac_word... " >&6; } 2681if ${ac_cv_prog_CC+:} false; then : 2682 $as_echo_n "(cached) " >&6 2683else 2684 if test -n "$CC"; then 2685 ac_cv_prog_CC="$CC" # Let the user override the test. 2686else 2687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2688for as_dir in $PATH 2689do 2690 IFS=$as_save_IFS 2691 test -z "$as_dir" && as_dir=. 2692 for ac_exec_ext in '' $ac_executable_extensions; do 2693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2694 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2696 break 2 2697 fi 2698done 2699 done 2700IFS=$as_save_IFS 2701 2702fi 2703fi 2704CC=$ac_cv_prog_CC 2705if test -n "$CC"; then 2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2707$as_echo "$CC" >&6; } 2708else 2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2710$as_echo "no" >&6; } 2711fi 2712 2713 2714fi 2715if test -z "$ac_cv_prog_CC"; then 2716 ac_ct_CC=$CC 2717 # Extract the first word of "gcc", so it can be a program name with args. 2718set dummy gcc; ac_word=$2 2719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2720$as_echo_n "checking for $ac_word... " >&6; } 2721if ${ac_cv_prog_ac_ct_CC+:} false; then : 2722 $as_echo_n "(cached) " >&6 2723else 2724 if test -n "$ac_ct_CC"; then 2725 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2726else 2727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2728for as_dir in $PATH 2729do 2730 IFS=$as_save_IFS 2731 test -z "$as_dir" && as_dir=. 2732 for ac_exec_ext in '' $ac_executable_extensions; do 2733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2734 ac_cv_prog_ac_ct_CC="gcc" 2735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2736 break 2 2737 fi 2738done 2739 done 2740IFS=$as_save_IFS 2741 2742fi 2743fi 2744ac_ct_CC=$ac_cv_prog_ac_ct_CC 2745if test -n "$ac_ct_CC"; then 2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2747$as_echo "$ac_ct_CC" >&6; } 2748else 2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2750$as_echo "no" >&6; } 2751fi 2752 2753 if test "x$ac_ct_CC" = x; then 2754 CC="" 2755 else 2756 case $cross_compiling:$ac_tool_warned in 2757yes:) 2758{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2759$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2760ac_tool_warned=yes ;; 2761esac 2762 CC=$ac_ct_CC 2763 fi 2764else 2765 CC="$ac_cv_prog_CC" 2766fi 2767 2768if test -z "$CC"; then 2769 if test -n "$ac_tool_prefix"; then 2770 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2771set dummy ${ac_tool_prefix}cc; ac_word=$2 2772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2773$as_echo_n "checking for $ac_word... " >&6; } 2774if ${ac_cv_prog_CC+:} false; then : 2775 $as_echo_n "(cached) " >&6 2776else 2777 if test -n "$CC"; then 2778 ac_cv_prog_CC="$CC" # Let the user override the test. 2779else 2780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2781for as_dir in $PATH 2782do 2783 IFS=$as_save_IFS 2784 test -z "$as_dir" && as_dir=. 2785 for ac_exec_ext in '' $ac_executable_extensions; do 2786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2787 ac_cv_prog_CC="${ac_tool_prefix}cc" 2788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2789 break 2 2790 fi 2791done 2792 done 2793IFS=$as_save_IFS 2794 2795fi 2796fi 2797CC=$ac_cv_prog_CC 2798if test -n "$CC"; then 2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2800$as_echo "$CC" >&6; } 2801else 2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2803$as_echo "no" >&6; } 2804fi 2805 2806 2807 fi 2808fi 2809if test -z "$CC"; then 2810 # Extract the first word of "cc", so it can be a program name with args. 2811set dummy cc; ac_word=$2 2812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2813$as_echo_n "checking for $ac_word... " >&6; } 2814if ${ac_cv_prog_CC+:} false; then : 2815 $as_echo_n "(cached) " >&6 2816else 2817 if test -n "$CC"; then 2818 ac_cv_prog_CC="$CC" # Let the user override the test. 2819else 2820 ac_prog_rejected=no 2821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2822for as_dir in $PATH 2823do 2824 IFS=$as_save_IFS 2825 test -z "$as_dir" && as_dir=. 2826 for ac_exec_ext in '' $ac_executable_extensions; do 2827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2828 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2829 ac_prog_rejected=yes 2830 continue 2831 fi 2832 ac_cv_prog_CC="cc" 2833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2834 break 2 2835 fi 2836done 2837 done 2838IFS=$as_save_IFS 2839 2840if test $ac_prog_rejected = yes; then 2841 # We found a bogon in the path, so make sure we never use it. 2842 set dummy $ac_cv_prog_CC 2843 shift 2844 if test $# != 0; then 2845 # We chose a different compiler from the bogus one. 2846 # However, it has the same basename, so the bogon will be chosen 2847 # first if we set CC to just the basename; use the full file name. 2848 shift 2849 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2850 fi 2851fi 2852fi 2853fi 2854CC=$ac_cv_prog_CC 2855if test -n "$CC"; then 2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2857$as_echo "$CC" >&6; } 2858else 2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2860$as_echo "no" >&6; } 2861fi 2862 2863 2864fi 2865if test -z "$CC"; then 2866 if test -n "$ac_tool_prefix"; then 2867 for ac_prog in cl.exe 2868 do 2869 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2870set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2872$as_echo_n "checking for $ac_word... " >&6; } 2873if ${ac_cv_prog_CC+:} false; then : 2874 $as_echo_n "(cached) " >&6 2875else 2876 if test -n "$CC"; then 2877 ac_cv_prog_CC="$CC" # Let the user override the test. 2878else 2879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2880for as_dir in $PATH 2881do 2882 IFS=$as_save_IFS 2883 test -z "$as_dir" && as_dir=. 2884 for ac_exec_ext in '' $ac_executable_extensions; do 2885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2886 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2888 break 2 2889 fi 2890done 2891 done 2892IFS=$as_save_IFS 2893 2894fi 2895fi 2896CC=$ac_cv_prog_CC 2897if test -n "$CC"; then 2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2899$as_echo "$CC" >&6; } 2900else 2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2902$as_echo "no" >&6; } 2903fi 2904 2905 2906 test -n "$CC" && break 2907 done 2908fi 2909if test -z "$CC"; then 2910 ac_ct_CC=$CC 2911 for ac_prog in cl.exe 2912do 2913 # Extract the first word of "$ac_prog", so it can be a program name with args. 2914set dummy $ac_prog; ac_word=$2 2915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2916$as_echo_n "checking for $ac_word... " >&6; } 2917if ${ac_cv_prog_ac_ct_CC+:} false; then : 2918 $as_echo_n "(cached) " >&6 2919else 2920 if test -n "$ac_ct_CC"; then 2921 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2922else 2923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2924for as_dir in $PATH 2925do 2926 IFS=$as_save_IFS 2927 test -z "$as_dir" && as_dir=. 2928 for ac_exec_ext in '' $ac_executable_extensions; do 2929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2930 ac_cv_prog_ac_ct_CC="$ac_prog" 2931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2932 break 2 2933 fi 2934done 2935 done 2936IFS=$as_save_IFS 2937 2938fi 2939fi 2940ac_ct_CC=$ac_cv_prog_ac_ct_CC 2941if test -n "$ac_ct_CC"; then 2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2943$as_echo "$ac_ct_CC" >&6; } 2944else 2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2946$as_echo "no" >&6; } 2947fi 2948 2949 2950 test -n "$ac_ct_CC" && break 2951done 2952 2953 if test "x$ac_ct_CC" = x; then 2954 CC="" 2955 else 2956 case $cross_compiling:$ac_tool_warned in 2957yes:) 2958{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2959$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2960ac_tool_warned=yes ;; 2961esac 2962 CC=$ac_ct_CC 2963 fi 2964fi 2965 2966fi 2967 2968 2969test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2970$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2971as_fn_error $? "no acceptable C compiler found in \$PATH 2972See \`config.log' for more details" "$LINENO" 5; } 2973 2974# Provide some information about the compiler. 2975$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2976set X $ac_compile 2977ac_compiler=$2 2978for ac_option in --version -v -V -qversion; do 2979 { { ac_try="$ac_compiler $ac_option >&5" 2980case "(($ac_try" in 2981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2982 *) ac_try_echo=$ac_try;; 2983esac 2984eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2985$as_echo "$ac_try_echo"; } >&5 2986 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2987 ac_status=$? 2988 if test -s conftest.err; then 2989 sed '10a\ 2990... rest of stderr output deleted ... 2991 10q' conftest.err >conftest.er1 2992 cat conftest.er1 >&5 2993 fi 2994 rm -f conftest.er1 conftest.err 2995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2996 test $ac_status = 0; } 2997done 2998 2999cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3000/* end confdefs.h. */ 3001 3002int 3003main () 3004{ 3005 3006 ; 3007 return 0; 3008} 3009_ACEOF 3010ac_clean_files_save=$ac_clean_files 3011ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3012# Try to create an executable without -o first, disregard a.out. 3013# It will help us diagnose broken compilers, and finding out an intuition 3014# of exeext. 3015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3016$as_echo_n "checking whether the C compiler works... " >&6; } 3017ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3018 3019# The possible output files: 3020ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3021 3022ac_rmfiles= 3023for ac_file in $ac_files 3024do 3025 case $ac_file in 3026 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3027 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3028 esac 3029done 3030rm -f $ac_rmfiles 3031 3032if { { ac_try="$ac_link_default" 3033case "(($ac_try" in 3034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3035 *) ac_try_echo=$ac_try;; 3036esac 3037eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3038$as_echo "$ac_try_echo"; } >&5 3039 (eval "$ac_link_default") 2>&5 3040 ac_status=$? 3041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3042 test $ac_status = 0; }; then : 3043 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3044# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3045# in a Makefile. We should not override ac_cv_exeext if it was cached, 3046# so that the user can short-circuit this test for compilers unknown to 3047# Autoconf. 3048for ac_file in $ac_files '' 3049do 3050 test -f "$ac_file" || continue 3051 case $ac_file in 3052 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3053 ;; 3054 [ab].out ) 3055 # We found the default executable, but exeext='' is most 3056 # certainly right. 3057 break;; 3058 *.* ) 3059 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3060 then :; else 3061 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3062 fi 3063 # We set ac_cv_exeext here because the later test for it is not 3064 # safe: cross compilers may not add the suffix if given an `-o' 3065 # argument, so we may need to know it at that point already. 3066 # Even if this section looks crufty: it has the advantage of 3067 # actually working. 3068 break;; 3069 * ) 3070 break;; 3071 esac 3072done 3073test "$ac_cv_exeext" = no && ac_cv_exeext= 3074 3075else 3076 ac_file='' 3077fi 3078if test -z "$ac_file"; then : 3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3080$as_echo "no" >&6; } 3081$as_echo "$as_me: failed program was:" >&5 3082sed 's/^/| /' conftest.$ac_ext >&5 3083 3084{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3085$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3086as_fn_error 77 "C compiler cannot create executables 3087See \`config.log' for more details" "$LINENO" 5; } 3088else 3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3090$as_echo "yes" >&6; } 3091fi 3092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3093$as_echo_n "checking for C compiler default output file name... " >&6; } 3094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3095$as_echo "$ac_file" >&6; } 3096ac_exeext=$ac_cv_exeext 3097 3098rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3099ac_clean_files=$ac_clean_files_save 3100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3101$as_echo_n "checking for suffix of executables... " >&6; } 3102if { { ac_try="$ac_link" 3103case "(($ac_try" in 3104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3105 *) ac_try_echo=$ac_try;; 3106esac 3107eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3108$as_echo "$ac_try_echo"; } >&5 3109 (eval "$ac_link") 2>&5 3110 ac_status=$? 3111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3112 test $ac_status = 0; }; then : 3113 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3114# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3115# work properly (i.e., refer to `conftest.exe'), while it won't with 3116# `rm'. 3117for ac_file in conftest.exe conftest conftest.*; do 3118 test -f "$ac_file" || continue 3119 case $ac_file in 3120 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3121 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3122 break;; 3123 * ) break;; 3124 esac 3125done 3126else 3127 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3128$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3129as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3130See \`config.log' for more details" "$LINENO" 5; } 3131fi 3132rm -f conftest conftest$ac_cv_exeext 3133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3134$as_echo "$ac_cv_exeext" >&6; } 3135 3136rm -f conftest.$ac_ext 3137EXEEXT=$ac_cv_exeext 3138ac_exeext=$EXEEXT 3139cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3140/* end confdefs.h. */ 3141#include <stdio.h> 3142int 3143main () 3144{ 3145FILE *f = fopen ("conftest.out", "w"); 3146 return ferror (f) || fclose (f) != 0; 3147 3148 ; 3149 return 0; 3150} 3151_ACEOF 3152ac_clean_files="$ac_clean_files conftest.out" 3153# Check that the compiler produces executables we can run. If not, either 3154# the compiler is broken, or we cross compile. 3155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3156$as_echo_n "checking whether we are cross compiling... " >&6; } 3157if test "$cross_compiling" != yes; then 3158 { { ac_try="$ac_link" 3159case "(($ac_try" in 3160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3161 *) ac_try_echo=$ac_try;; 3162esac 3163eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3164$as_echo "$ac_try_echo"; } >&5 3165 (eval "$ac_link") 2>&5 3166 ac_status=$? 3167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3168 test $ac_status = 0; } 3169 if { ac_try='./conftest$ac_cv_exeext' 3170 { { case "(($ac_try" in 3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3172 *) ac_try_echo=$ac_try;; 3173esac 3174eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3175$as_echo "$ac_try_echo"; } >&5 3176 (eval "$ac_try") 2>&5 3177 ac_status=$? 3178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3179 test $ac_status = 0; }; }; then 3180 cross_compiling=no 3181 else 3182 if test "$cross_compiling" = maybe; then 3183 cross_compiling=yes 3184 else 3185 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3186$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3187as_fn_error $? "cannot run C compiled programs. 3188If you meant to cross compile, use \`--host'. 3189See \`config.log' for more details" "$LINENO" 5; } 3190 fi 3191 fi 3192fi 3193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3194$as_echo "$cross_compiling" >&6; } 3195 3196rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3197ac_clean_files=$ac_clean_files_save 3198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3199$as_echo_n "checking for suffix of object files... " >&6; } 3200if ${ac_cv_objext+:} false; then : 3201 $as_echo_n "(cached) " >&6 3202else 3203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3204/* end confdefs.h. */ 3205 3206int 3207main () 3208{ 3209 3210 ; 3211 return 0; 3212} 3213_ACEOF 3214rm -f conftest.o conftest.obj 3215if { { ac_try="$ac_compile" 3216case "(($ac_try" in 3217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3218 *) ac_try_echo=$ac_try;; 3219esac 3220eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3221$as_echo "$ac_try_echo"; } >&5 3222 (eval "$ac_compile") 2>&5 3223 ac_status=$? 3224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3225 test $ac_status = 0; }; then : 3226 for ac_file in conftest.o conftest.obj conftest.*; do 3227 test -f "$ac_file" || continue; 3228 case $ac_file in 3229 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3230 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3231 break;; 3232 esac 3233done 3234else 3235 $as_echo "$as_me: failed program was:" >&5 3236sed 's/^/| /' conftest.$ac_ext >&5 3237 3238{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3239$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3240as_fn_error $? "cannot compute suffix of object files: cannot compile 3241See \`config.log' for more details" "$LINENO" 5; } 3242fi 3243rm -f conftest.$ac_cv_objext conftest.$ac_ext 3244fi 3245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3246$as_echo "$ac_cv_objext" >&6; } 3247OBJEXT=$ac_cv_objext 3248ac_objext=$OBJEXT 3249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3250$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3251if ${ac_cv_c_compiler_gnu+:} false; then : 3252 $as_echo_n "(cached) " >&6 3253else 3254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3255/* end confdefs.h. */ 3256 3257int 3258main () 3259{ 3260#ifndef __GNUC__ 3261 choke me 3262#endif 3263 3264 ; 3265 return 0; 3266} 3267_ACEOF 3268if ac_fn_c_try_compile "$LINENO"; then : 3269 ac_compiler_gnu=yes 3270else 3271 ac_compiler_gnu=no 3272fi 3273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3274ac_cv_c_compiler_gnu=$ac_compiler_gnu 3275 3276fi 3277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3278$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3279if test $ac_compiler_gnu = yes; then 3280 GCC=yes 3281else 3282 GCC= 3283fi 3284ac_test_CFLAGS=${CFLAGS+set} 3285ac_save_CFLAGS=$CFLAGS 3286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3287$as_echo_n "checking whether $CC accepts -g... " >&6; } 3288if ${ac_cv_prog_cc_g+:} false; then : 3289 $as_echo_n "(cached) " >&6 3290else 3291 ac_save_c_werror_flag=$ac_c_werror_flag 3292 ac_c_werror_flag=yes 3293 ac_cv_prog_cc_g=no 3294 CFLAGS="-g" 3295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3296/* end confdefs.h. */ 3297 3298int 3299main () 3300{ 3301 3302 ; 3303 return 0; 3304} 3305_ACEOF 3306if ac_fn_c_try_compile "$LINENO"; then : 3307 ac_cv_prog_cc_g=yes 3308else 3309 CFLAGS="" 3310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3311/* end confdefs.h. */ 3312 3313int 3314main () 3315{ 3316 3317 ; 3318 return 0; 3319} 3320_ACEOF 3321if ac_fn_c_try_compile "$LINENO"; then : 3322 3323else 3324 ac_c_werror_flag=$ac_save_c_werror_flag 3325 CFLAGS="-g" 3326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3327/* end confdefs.h. */ 3328 3329int 3330main () 3331{ 3332 3333 ; 3334 return 0; 3335} 3336_ACEOF 3337if ac_fn_c_try_compile "$LINENO"; then : 3338 ac_cv_prog_cc_g=yes 3339fi 3340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3341fi 3342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3343fi 3344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3345 ac_c_werror_flag=$ac_save_c_werror_flag 3346fi 3347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3348$as_echo "$ac_cv_prog_cc_g" >&6; } 3349if test "$ac_test_CFLAGS" = set; then 3350 CFLAGS=$ac_save_CFLAGS 3351elif test $ac_cv_prog_cc_g = yes; then 3352 if test "$GCC" = yes; then 3353 CFLAGS="-g -O2" 3354 else 3355 CFLAGS="-g" 3356 fi 3357else 3358 if test "$GCC" = yes; then 3359 CFLAGS="-O2" 3360 else 3361 CFLAGS= 3362 fi 3363fi 3364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3365$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3366if ${ac_cv_prog_cc_c89+:} false; then : 3367 $as_echo_n "(cached) " >&6 3368else 3369 ac_cv_prog_cc_c89=no 3370ac_save_CC=$CC 3371cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3372/* end confdefs.h. */ 3373#include <stdarg.h> 3374#include <stdio.h> 3375struct stat; 3376/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3377struct buf { int x; }; 3378FILE * (*rcsopen) (struct buf *, struct stat *, int); 3379static char *e (p, i) 3380 char **p; 3381 int i; 3382{ 3383 return p[i]; 3384} 3385static char *f (char * (*g) (char **, int), char **p, ...) 3386{ 3387 char *s; 3388 va_list v; 3389 va_start (v,p); 3390 s = g (p, va_arg (v,int)); 3391 va_end (v); 3392 return s; 3393} 3394 3395/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3396 function prototypes and stuff, but not '\xHH' hex character constants. 3397 These don't provoke an error unfortunately, instead are silently treated 3398 as 'x'. The following induces an error, until -std is added to get 3399 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3400 array size at least. It's necessary to write '\x00'==0 to get something 3401 that's true only with -std. */ 3402int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3403 3404/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3405 inside strings and character constants. */ 3406#define FOO(x) 'x' 3407int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3408 3409int test (int i, double x); 3410struct s1 {int (*f) (int a);}; 3411struct s2 {int (*f) (double a);}; 3412int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3413int argc; 3414char **argv; 3415int 3416main () 3417{ 3418return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3419 ; 3420 return 0; 3421} 3422_ACEOF 3423for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3424 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3425do 3426 CC="$ac_save_CC $ac_arg" 3427 if ac_fn_c_try_compile "$LINENO"; then : 3428 ac_cv_prog_cc_c89=$ac_arg 3429fi 3430rm -f core conftest.err conftest.$ac_objext 3431 test "x$ac_cv_prog_cc_c89" != "xno" && break 3432done 3433rm -f conftest.$ac_ext 3434CC=$ac_save_CC 3435 3436fi 3437# AC_CACHE_VAL 3438case "x$ac_cv_prog_cc_c89" in 3439 x) 3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3441$as_echo "none needed" >&6; } ;; 3442 xno) 3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3444$as_echo "unsupported" >&6; } ;; 3445 *) 3446 CC="$CC $ac_cv_prog_cc_c89" 3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3448$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3449esac 3450if test "x$ac_cv_prog_cc_c89" != xno; then : 3451 3452fi 3453 3454ac_ext=c 3455ac_cpp='$CPP $CPPFLAGS' 3456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3458ac_compiler_gnu=$ac_cv_c_compiler_gnu 3459 3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3461$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3462if ${ac_cv_prog_cc_c99+:} false; then : 3463 $as_echo_n "(cached) " >&6 3464else 3465 ac_cv_prog_cc_c99=no 3466ac_save_CC=$CC 3467cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3468/* end confdefs.h. */ 3469#include <stdarg.h> 3470#include <stdbool.h> 3471#include <stdlib.h> 3472#include <wchar.h> 3473#include <stdio.h> 3474 3475// Check varargs macros. These examples are taken from C99 6.10.3.5. 3476#define debug(...) fprintf (stderr, __VA_ARGS__) 3477#define showlist(...) puts (#__VA_ARGS__) 3478#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3479static void 3480test_varargs_macros (void) 3481{ 3482 int x = 1234; 3483 int y = 5678; 3484 debug ("Flag"); 3485 debug ("X = %d\n", x); 3486 showlist (The first, second, and third items.); 3487 report (x>y, "x is %d but y is %d", x, y); 3488} 3489 3490// Check long long types. 3491#define BIG64 18446744073709551615ull 3492#define BIG32 4294967295ul 3493#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3494#if !BIG_OK 3495 your preprocessor is broken; 3496#endif 3497#if BIG_OK 3498#else 3499 your preprocessor is broken; 3500#endif 3501static long long int bignum = -9223372036854775807LL; 3502static unsigned long long int ubignum = BIG64; 3503 3504struct incomplete_array 3505{ 3506 int datasize; 3507 double data[]; 3508}; 3509 3510struct named_init { 3511 int number; 3512 const wchar_t *name; 3513 double average; 3514}; 3515 3516typedef const char *ccp; 3517 3518static inline int 3519test_restrict (ccp restrict text) 3520{ 3521 // See if C++-style comments work. 3522 // Iterate through items via the restricted pointer. 3523 // Also check for declarations in for loops. 3524 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3525 continue; 3526 return 0; 3527} 3528 3529// Check varargs and va_copy. 3530static void 3531test_varargs (const char *format, ...) 3532{ 3533 va_list args; 3534 va_start (args, format); 3535 va_list args_copy; 3536 va_copy (args_copy, args); 3537 3538 const char *str; 3539 int number; 3540 float fnumber; 3541 3542 while (*format) 3543 { 3544 switch (*format++) 3545 { 3546 case 's': // string 3547 str = va_arg (args_copy, const char *); 3548 break; 3549 case 'd': // int 3550 number = va_arg (args_copy, int); 3551 break; 3552 case 'f': // float 3553 fnumber = va_arg (args_copy, double); 3554 break; 3555 default: 3556 break; 3557 } 3558 } 3559 va_end (args_copy); 3560 va_end (args); 3561} 3562 3563int 3564main () 3565{ 3566 3567 // Check bool. 3568 _Bool success = false; 3569 3570 // Check restrict. 3571 if (test_restrict ("String literal") == 0) 3572 success = true; 3573 char *restrict newvar = "Another string"; 3574 3575 // Check varargs. 3576 test_varargs ("s, d' f .", "string", 65, 34.234); 3577 test_varargs_macros (); 3578 3579 // Check flexible array members. 3580 struct incomplete_array *ia = 3581 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3582 ia->datasize = 10; 3583 for (int i = 0; i < ia->datasize; ++i) 3584 ia->data[i] = i * 1.234; 3585 3586 // Check named initializers. 3587 struct named_init ni = { 3588 .number = 34, 3589 .name = L"Test wide string", 3590 .average = 543.34343, 3591 }; 3592 3593 ni.number = 58; 3594 3595 int dynamic_array[ni.number]; 3596 dynamic_array[ni.number - 1] = 543; 3597 3598 // work around unused variable warnings 3599 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3600 || dynamic_array[ni.number - 1] != 543); 3601 3602 ; 3603 return 0; 3604} 3605_ACEOF 3606for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 3607do 3608 CC="$ac_save_CC $ac_arg" 3609 if ac_fn_c_try_compile "$LINENO"; then : 3610 ac_cv_prog_cc_c99=$ac_arg 3611fi 3612rm -f core conftest.err conftest.$ac_objext 3613 test "x$ac_cv_prog_cc_c99" != "xno" && break 3614done 3615rm -f conftest.$ac_ext 3616CC=$ac_save_CC 3617 3618fi 3619# AC_CACHE_VAL 3620case "x$ac_cv_prog_cc_c99" in 3621 x) 3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3623$as_echo "none needed" >&6; } ;; 3624 xno) 3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3626$as_echo "unsupported" >&6; } ;; 3627 *) 3628 CC="$CC $ac_cv_prog_cc_c99" 3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3630$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3631esac 3632if test "x$ac_cv_prog_cc_c99" != xno; then : 3633 3634fi 3635 3636 3637if test "$ac_cv_prog_cc_c99" = "no"; then 3638 as_fn_error $? "The C compiler does not support C99" "$LINENO" 5 3639fi 3640case "$host_os" in 3641haiku*) 3642 # 3643 # Haiku's platform file is in C++. 3644 # 3645 ac_ext=cpp 3646ac_cpp='$CXXCPP $CPPFLAGS' 3647ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3648ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3649ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3650if test -z "$CXX"; then 3651 if test -n "$CCC"; then 3652 CXX=$CCC 3653 else 3654 if test -n "$ac_tool_prefix"; then 3655 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3656 do 3657 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3658set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3660$as_echo_n "checking for $ac_word... " >&6; } 3661if ${ac_cv_prog_CXX+:} false; then : 3662 $as_echo_n "(cached) " >&6 3663else 3664 if test -n "$CXX"; then 3665 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3666else 3667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3668for as_dir in $PATH 3669do 3670 IFS=$as_save_IFS 3671 test -z "$as_dir" && as_dir=. 3672 for ac_exec_ext in '' $ac_executable_extensions; do 3673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3674 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3676 break 2 3677 fi 3678done 3679 done 3680IFS=$as_save_IFS 3681 3682fi 3683fi 3684CXX=$ac_cv_prog_CXX 3685if test -n "$CXX"; then 3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 3687$as_echo "$CXX" >&6; } 3688else 3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3690$as_echo "no" >&6; } 3691fi 3692 3693 3694 test -n "$CXX" && break 3695 done 3696fi 3697if test -z "$CXX"; then 3698 ac_ct_CXX=$CXX 3699 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3700do 3701 # Extract the first word of "$ac_prog", so it can be a program name with args. 3702set dummy $ac_prog; ac_word=$2 3703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3704$as_echo_n "checking for $ac_word... " >&6; } 3705if ${ac_cv_prog_ac_ct_CXX+:} false; then : 3706 $as_echo_n "(cached) " >&6 3707else 3708 if test -n "$ac_ct_CXX"; then 3709 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3710else 3711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3712for as_dir in $PATH 3713do 3714 IFS=$as_save_IFS 3715 test -z "$as_dir" && as_dir=. 3716 for ac_exec_ext in '' $ac_executable_extensions; do 3717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3718 ac_cv_prog_ac_ct_CXX="$ac_prog" 3719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3720 break 2 3721 fi 3722done 3723 done 3724IFS=$as_save_IFS 3725 3726fi 3727fi 3728ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3729if test -n "$ac_ct_CXX"; then 3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 3731$as_echo "$ac_ct_CXX" >&6; } 3732else 3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3734$as_echo "no" >&6; } 3735fi 3736 3737 3738 test -n "$ac_ct_CXX" && break 3739done 3740 3741 if test "x$ac_ct_CXX" = x; then 3742 CXX="g++" 3743 else 3744 case $cross_compiling:$ac_tool_warned in 3745yes:) 3746{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3747$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3748ac_tool_warned=yes ;; 3749esac 3750 CXX=$ac_ct_CXX 3751 fi 3752fi 3753 3754 fi 3755fi 3756# Provide some information about the compiler. 3757$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 3758set X $ac_compile 3759ac_compiler=$2 3760for ac_option in --version -v -V -qversion; do 3761 { { ac_try="$ac_compiler $ac_option >&5" 3762case "(($ac_try" in 3763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3764 *) ac_try_echo=$ac_try;; 3765esac 3766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3767$as_echo "$ac_try_echo"; } >&5 3768 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3769 ac_status=$? 3770 if test -s conftest.err; then 3771 sed '10a\ 3772... rest of stderr output deleted ... 3773 10q' conftest.err >conftest.er1 3774 cat conftest.er1 >&5 3775 fi 3776 rm -f conftest.er1 conftest.err 3777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3778 test $ac_status = 0; } 3779done 3780 3781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 3782$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 3783if ${ac_cv_cxx_compiler_gnu+:} false; then : 3784 $as_echo_n "(cached) " >&6 3785else 3786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3787/* end confdefs.h. */ 3788 3789int 3790main () 3791{ 3792#ifndef __GNUC__ 3793 choke me 3794#endif 3795 3796 ; 3797 return 0; 3798} 3799_ACEOF 3800if ac_fn_cxx_try_compile "$LINENO"; then : 3801 ac_compiler_gnu=yes 3802else 3803 ac_compiler_gnu=no 3804fi 3805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3806ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3807 3808fi 3809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 3810$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 3811if test $ac_compiler_gnu = yes; then 3812 GXX=yes 3813else 3814 GXX= 3815fi 3816ac_test_CXXFLAGS=${CXXFLAGS+set} 3817ac_save_CXXFLAGS=$CXXFLAGS 3818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 3819$as_echo_n "checking whether $CXX accepts -g... " >&6; } 3820if ${ac_cv_prog_cxx_g+:} false; then : 3821 $as_echo_n "(cached) " >&6 3822else 3823 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3824 ac_cxx_werror_flag=yes 3825 ac_cv_prog_cxx_g=no 3826 CXXFLAGS="-g" 3827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3828/* end confdefs.h. */ 3829 3830int 3831main () 3832{ 3833 3834 ; 3835 return 0; 3836} 3837_ACEOF 3838if ac_fn_cxx_try_compile "$LINENO"; then : 3839 ac_cv_prog_cxx_g=yes 3840else 3841 CXXFLAGS="" 3842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3843/* end confdefs.h. */ 3844 3845int 3846main () 3847{ 3848 3849 ; 3850 return 0; 3851} 3852_ACEOF 3853if ac_fn_cxx_try_compile "$LINENO"; then : 3854 3855else 3856 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3857 CXXFLAGS="-g" 3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3859/* end confdefs.h. */ 3860 3861int 3862main () 3863{ 3864 3865 ; 3866 return 0; 3867} 3868_ACEOF 3869if ac_fn_cxx_try_compile "$LINENO"; then : 3870 ac_cv_prog_cxx_g=yes 3871fi 3872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3873fi 3874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3875fi 3876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3877 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3878fi 3879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 3880$as_echo "$ac_cv_prog_cxx_g" >&6; } 3881if test "$ac_test_CXXFLAGS" = set; then 3882 CXXFLAGS=$ac_save_CXXFLAGS 3883elif test $ac_cv_prog_cxx_g = yes; then 3884 if test "$GXX" = yes; then 3885 CXXFLAGS="-g -O2" 3886 else 3887 CXXFLAGS="-g" 3888 fi 3889else 3890 if test "$GXX" = yes; then 3891 CXXFLAGS="-O2" 3892 else 3893 CXXFLAGS= 3894 fi 3895fi 3896ac_ext=c 3897ac_cpp='$CPP $CPPFLAGS' 3898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3900ac_compiler_gnu=$ac_cv_c_compiler_gnu 3901 3902 ;; 3903esac 3904 3905 3906 3907 3908 3909 3910 if test "$GCC" = yes ; then 3911 # 3912 # -Werror forces warnings to be errors. 3913 # 3914 ac_lbl_cc_force_warning_errors=-Werror 3915 3916 # 3917 # Try to have the compiler default to hiding symbols, 3918 # so that only symbols explicitly exported with 3919 # PCAP_API will be visible outside (shared) libraries. 3920 # 3921 3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -fvisibility=hidden option" >&5 3923$as_echo_n "checking whether the compiler supports the -fvisibility=hidden option... " >&6; } 3924 save_CFLAGS="$CFLAGS" 3925 if expr "x-fvisibility=hidden" : "x-W.*" >/dev/null 3926 then 3927 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -fvisibility=hidden" 3928 elif expr "x-fvisibility=hidden" : "x-f.*" >/dev/null 3929 then 3930 CFLAGS="$CFLAGS -Werror -fvisibility=hidden" 3931 elif expr "x-fvisibility=hidden" : "x-m.*" >/dev/null 3932 then 3933 CFLAGS="$CFLAGS -Werror -fvisibility=hidden" 3934 else 3935 CFLAGS="$CFLAGS -fvisibility=hidden" 3936 fi 3937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3938/* end confdefs.h. */ 3939 3940int 3941main () 3942{ 3943return 0 3944 ; 3945 return 0; 3946} 3947_ACEOF 3948if ac_fn_c_try_compile "$LINENO"; then : 3949 3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3951$as_echo "yes" >&6; } 3952 can_add_to_cflags=yes 3953 # 3954 # The compile supports this; do we have some C code for 3955 # which the warning should *not* appear? 3956 # We test the fourth argument because the third argument 3957 # could contain quotes, breaking the test. 3958 # 3959 if test "x" != "x" 3960 then 3961 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors" 3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fvisibility=hidden " >&5 3963$as_echo_n "checking whether -fvisibility=hidden ... " >&6; } 3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3965/* end confdefs.h. */ 3966 3967_ACEOF 3968if ac_fn_c_try_compile "$LINENO"; then : 3969 3970 # 3971 # Not a problem. 3972 # 3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3974$as_echo "no" >&6; } 3975 3976else 3977 3978 # 3979 # A problem. 3980 # 3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3982$as_echo "yes" >&6; } 3983 can_add_to_cflags=no 3984 3985fi 3986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3987 fi 3988 CFLAGS="$save_CFLAGS" 3989 if test x"$can_add_to_cflags" = "xyes" 3990 then 3991 V_CCOPT="$V_CCOPT -fvisibility=hidden" 3992 fi 3993 3994else 3995 3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3997$as_echo "no" >&6; } 3998 CFLAGS="$save_CFLAGS" 3999 4000fi 4001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4002 4003 else 4004 V_INCLS="$V_INCLS -I/usr/local/include" 4005 LDFLAGS="$LDFLAGS -L/usr/local/lib" 4006 4007 case "$host_os" in 4008 4009 darwin*) 4010 # 4011 # This is assumed either to be GCC or clang, both 4012 # of which use -Werror to force warnings to be errors. 4013 # 4014 ac_lbl_cc_force_warning_errors=-Werror 4015 4016 # 4017 # Try to have the compiler default to hiding symbols, 4018 # so that only symbols explicitly exported with 4019 # PCAP_API will be visible outside (shared) libraries. 4020 # 4021 4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -fvisibility=hidden option" >&5 4023$as_echo_n "checking whether the compiler supports the -fvisibility=hidden option... " >&6; } 4024 save_CFLAGS="$CFLAGS" 4025 if expr "x-fvisibility=hidden" : "x-W.*" >/dev/null 4026 then 4027 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -fvisibility=hidden" 4028 elif expr "x-fvisibility=hidden" : "x-f.*" >/dev/null 4029 then 4030 CFLAGS="$CFLAGS -Werror -fvisibility=hidden" 4031 elif expr "x-fvisibility=hidden" : "x-m.*" >/dev/null 4032 then 4033 CFLAGS="$CFLAGS -Werror -fvisibility=hidden" 4034 else 4035 CFLAGS="$CFLAGS -fvisibility=hidden" 4036 fi 4037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4038/* end confdefs.h. */ 4039 4040int 4041main () 4042{ 4043return 0 4044 ; 4045 return 0; 4046} 4047_ACEOF 4048if ac_fn_c_try_compile "$LINENO"; then : 4049 4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4051$as_echo "yes" >&6; } 4052 can_add_to_cflags=yes 4053 # 4054 # The compile supports this; do we have some C code for 4055 # which the warning should *not* appear? 4056 # We test the fourth argument because the third argument 4057 # could contain quotes, breaking the test. 4058 # 4059 if test "x" != "x" 4060 then 4061 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors" 4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fvisibility=hidden " >&5 4063$as_echo_n "checking whether -fvisibility=hidden ... " >&6; } 4064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4065/* end confdefs.h. */ 4066 4067_ACEOF 4068if ac_fn_c_try_compile "$LINENO"; then : 4069 4070 # 4071 # Not a problem. 4072 # 4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4074$as_echo "no" >&6; } 4075 4076else 4077 4078 # 4079 # A problem. 4080 # 4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4082$as_echo "yes" >&6; } 4083 can_add_to_cflags=no 4084 4085fi 4086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4087 fi 4088 CFLAGS="$save_CFLAGS" 4089 if test x"$can_add_to_cflags" = "xyes" 4090 then 4091 V_CCOPT="$V_CCOPT -fvisibility=hidden" 4092 fi 4093 4094else 4095 4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4097$as_echo "no" >&6; } 4098 CFLAGS="$save_CFLAGS" 4099 4100fi 4101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4102 4103 ;; 4104 4105 hpux*) 4106 # 4107 # HP C, which is what we presume we're using, doesn't 4108 # exit with a non-zero exit status if we hand it an 4109 # invalid -W flag, can't be forced to do so even with 4110 # +We, and doesn't handle GCC-style -W flags, so we 4111 # don't want to try using GCC-style -W flags. 4112 # 4113 ac_lbl_cc_dont_try_gcc_dashW=yes 4114 ;; 4115 4116 irix*) 4117 # 4118 # MIPS C, which is what we presume we're using, doesn't 4119 # necessarily exit with a non-zero exit status if we 4120 # hand it an invalid -W flag, can't be forced to do 4121 # so, and doesn't handle GCC-style -W flags, so we 4122 # don't want to try using GCC-style -W flags. 4123 # 4124 ac_lbl_cc_dont_try_gcc_dashW=yes 4125 # 4126 # It also, apparently, defaults to "char" being 4127 # unsigned, unlike most other C implementations; 4128 # I suppose we could say "signed char" whenever 4129 # we want to guarantee a signed "char", but let's 4130 # just force signed chars. 4131 # 4132 # -xansi is normally the default, but the 4133 # configure script was setting it; perhaps -cckr 4134 # was the default in the Old Days. (Then again, 4135 # that would probably be for backwards compatibility 4136 # in the days when ANSI C was Shiny and New, i.e. 4137 # 1989 and the early '90's, so maybe we can just 4138 # drop support for those compilers.) 4139 # 4140 # -g is equivalent to -g2, which turns off 4141 # optimization; we choose -g3, which generates 4142 # debugging information but doesn't turn off 4143 # optimization (even if the optimization would 4144 # cause inaccuracies in debugging). 4145 # 4146 V_CCOPT="$V_CCOPT -xansi -signed -g3" 4147 ;; 4148 4149 osf*) 4150 # 4151 # Presumed to be DEC OSF/1, Digital UNIX, or 4152 # Tru64 UNIX. 4153 # 4154 # The DEC C compiler, which is what we presume we're 4155 # using, doesn't exit with a non-zero exit status if we 4156 # hand it an invalid -W flag, can't be forced to do 4157 # so, and doesn't handle GCC-style -W flags, so we 4158 # don't want to try using GCC-style -W flags. 4159 # 4160 ac_lbl_cc_dont_try_gcc_dashW=yes 4161 # 4162 # -g is equivalent to -g2, which turns off 4163 # optimization; we choose -g3, which generates 4164 # debugging information but doesn't turn off 4165 # optimization (even if the optimization would 4166 # cause inaccuracies in debugging). 4167 # 4168 V_CCOPT="$V_CCOPT -g3" 4169 ;; 4170 4171 solaris*) 4172 # 4173 # Assumed to be Sun C, which requires -errwarn to force 4174 # warnings to be treated as errors. 4175 # 4176 ac_lbl_cc_force_warning_errors=-errwarn 4177 4178 # 4179 # Try to have the compiler default to hiding symbols, 4180 # so that only symbols explicitly exported with 4181 # PCAP_API will be visible outside (shared) libraries. 4182 # 4183 4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -xldscope=hidden option" >&5 4185$as_echo_n "checking whether the compiler supports the -xldscope=hidden option... " >&6; } 4186 save_CFLAGS="$CFLAGS" 4187 if expr "x-xldscope=hidden" : "x-W.*" >/dev/null 4188 then 4189 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -xldscope=hidden" 4190 elif expr "x-xldscope=hidden" : "x-f.*" >/dev/null 4191 then 4192 CFLAGS="$CFLAGS -Werror -xldscope=hidden" 4193 elif expr "x-xldscope=hidden" : "x-m.*" >/dev/null 4194 then 4195 CFLAGS="$CFLAGS -Werror -xldscope=hidden" 4196 else 4197 CFLAGS="$CFLAGS -xldscope=hidden" 4198 fi 4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4200/* end confdefs.h. */ 4201 4202int 4203main () 4204{ 4205return 0 4206 ; 4207 return 0; 4208} 4209_ACEOF 4210if ac_fn_c_try_compile "$LINENO"; then : 4211 4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4213$as_echo "yes" >&6; } 4214 can_add_to_cflags=yes 4215 # 4216 # The compile supports this; do we have some C code for 4217 # which the warning should *not* appear? 4218 # We test the fourth argument because the third argument 4219 # could contain quotes, breaking the test. 4220 # 4221 if test "x" != "x" 4222 then 4223 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors" 4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -xldscope=hidden " >&5 4225$as_echo_n "checking whether -xldscope=hidden ... " >&6; } 4226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4227/* end confdefs.h. */ 4228 4229_ACEOF 4230if ac_fn_c_try_compile "$LINENO"; then : 4231 4232 # 4233 # Not a problem. 4234 # 4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4236$as_echo "no" >&6; } 4237 4238else 4239 4240 # 4241 # A problem. 4242 # 4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4244$as_echo "yes" >&6; } 4245 can_add_to_cflags=no 4246 4247fi 4248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4249 fi 4250 CFLAGS="$save_CFLAGS" 4251 if test x"$can_add_to_cflags" = "xyes" 4252 then 4253 V_CCOPT="$V_CCOPT -xldscope=hidden" 4254 fi 4255 4256else 4257 4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4259$as_echo "no" >&6; } 4260 CFLAGS="$save_CFLAGS" 4261 4262fi 4263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4264 4265 ;; 4266 4267 ultrix*) 4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that Ultrix $CC hacks const in prototypes" >&5 4269$as_echo_n "checking that Ultrix $CC hacks const in prototypes... " >&6; } 4270 if ${ac_cv_lbl_cc_const_proto+:} false; then : 4271 $as_echo_n "(cached) " >&6 4272else 4273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4274/* end confdefs.h. */ 4275#include <sys/types.h> 4276int 4277main () 4278{ 4279struct a { int b; }; 4280 void c(const struct a *) 4281 ; 4282 return 0; 4283} 4284_ACEOF 4285if ac_fn_c_try_compile "$LINENO"; then : 4286 ac_cv_lbl_cc_const_proto=yes 4287else 4288 ac_cv_lbl_cc_const_proto=no 4289fi 4290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4291fi 4292 4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_const_proto" >&5 4294$as_echo "$ac_cv_lbl_cc_const_proto" >&6; } 4295 if test $ac_cv_lbl_cc_const_proto = no ; then 4296 4297$as_echo "#define const /**/" >>confdefs.h 4298 4299 fi 4300 ;; 4301 esac 4302 V_CCOPT="$V_CCOPT -O" 4303 fi 4304 4305 4306 if test "$GCC" = yes ; then 4307 # 4308 # On platforms where we build a shared library: 4309 # 4310 # add options to generate position-independent code, 4311 # if necessary (it's the default in AIX and Darwin/macOS); 4312 # 4313 # define option to set the soname of the shared library, 4314 # if the OS supports that; 4315 # 4316 # add options to specify, at link time, a directory to 4317 # add to the run-time search path, if that's necessary. 4318 # 4319 V_SHLIB_CMD="\$(CC)" 4320 V_SHLIB_OPT="-shared" 4321 case "$host_os" in 4322 4323 aix*) 4324 ;; 4325 4326 freebsd*|netbsd*|openbsd*|dragonfly*|linux*|osf*|haiku*|midipix*) 4327 # 4328 # Platforms where the linker is the GNU linker 4329 # or accepts command-line arguments like 4330 # those the GNU linker accepts. 4331 # 4332 # Some instruction sets require -fPIC on some 4333 # operating systems. Check for them. If you 4334 # have a combination that requires it, add it 4335 # here. 4336 # 4337 PIC_OPT=-fpic 4338 case "$host_cpu" in 4339 4340 sparc64*) 4341 case "$host_os" in 4342 4343 freebsd*|openbsd*|linux*) 4344 PIC_OPT=-fPIC 4345 ;; 4346 esac 4347 ;; 4348 esac 4349 V_SHLIB_CCOPT="$V_SHLIB_CCOPT $PIC_OPT" 4350 V_SONAME_OPT="-Wl,-soname," 4351 V_RPATH_OPT="-Wl,-rpath," 4352 ;; 4353 4354 hpux*) 4355 V_SHLIB_CCOPT="$V_SHLIB_CCOPT -fpic" 4356 # 4357 # XXX - this assumes GCC is using the HP linker, 4358 # rather than the GNU linker, and that the "+h" 4359 # option is used on all HP-UX platforms, both .sl 4360 # and .so. 4361 # 4362 V_SONAME_OPT="-Wl,+h," 4363 # 4364 # By default, directories specified with -L 4365 # are added to the run-time search path, so 4366 # we don't add them in pcap-config. 4367 # 4368 ;; 4369 4370 solaris*) 4371 V_SHLIB_CCOPT="$V_SHLIB_CCOPT -fpic" 4372 # 4373 # XXX - this assumes GCC is using the Sun linker, 4374 # rather than the GNU linker. 4375 # 4376 V_SONAME_OPT="-Wl,-h," 4377 V_RPATH_OPT="-Wl,-R," 4378 ;; 4379 esac 4380 else 4381 # 4382 # Set the appropriate compiler flags and, on platforms 4383 # where we build a shared library: 4384 # 4385 # add options to generate position-independent code, 4386 # if necessary (it's the default in Darwin/macOS); 4387 # 4388 # if we generate ".so" shared libraries, define the 4389 # appropriate options for building the shared library; 4390 # 4391 # add options to specify, at link time, a directory to 4392 # add to the run-time search path, if that's necessary. 4393 # 4394 # Note: spaces after V_SONAME_OPT are significant; on 4395 # some platforms the soname is passed with a GCC-like 4396 # "-Wl,-soname,{soname}" option, with the soname part 4397 # of the option, while on other platforms the C compiler 4398 # driver takes it as a regular option with the soname 4399 # following the option. The same applies to V_RPATH_OPT. 4400 # 4401 case "$host_os" in 4402 4403 aix*) 4404 V_SHLIB_CMD="\$(CC)" 4405 V_SHLIB_OPT="-G -bnoentry -bexpall" 4406 ;; 4407 4408 freebsd*|netbsd*|openbsd*|dragonfly*|linux*) 4409 # 4410 # "cc" is GCC. 4411 # 4412 V_SHLIB_CCOPT="$V_SHLIB_CCOPT -fpic" 4413 V_SHLIB_CMD="\$(CC)" 4414 V_SHLIB_OPT="-shared" 4415 V_SONAME_OPT="-Wl,-soname," 4416 V_RPATH_OPT="-Wl,-rpath," 4417 ;; 4418 4419 hpux*) 4420 V_SHLIB_CCOPT="$V_SHLIB_CCOPT +z" 4421 V_SHLIB_CMD="\$(LD)" 4422 V_SHLIB_OPT="-b" 4423 V_SONAME_OPT="+h " 4424 # 4425 # By default, directories specified with -L 4426 # are added to the run-time search path, so 4427 # we don't add them in pcap-config. 4428 # 4429 ;; 4430 4431 osf*) 4432 # 4433 # Presumed to be DEC OSF/1, Digital UNIX, or 4434 # Tru64 UNIX. 4435 # 4436 V_SHLIB_CMD="\$(CC)" 4437 V_SHLIB_OPT="-shared" 4438 V_SONAME_OPT="-soname " 4439 V_RPATH_OPT="-rpath " 4440 ;; 4441 4442 solaris*) 4443 V_SHLIB_CCOPT="$V_SHLIB_CCOPT -Kpic" 4444 V_SHLIB_CMD="\$(CC)" 4445 V_SHLIB_OPT="-G" 4446 V_SONAME_OPT="-h " 4447 V_RPATH_OPT="-R" 4448 ;; 4449 esac 4450 fi 4451 4452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 4453$as_echo_n "checking for inline... " >&6; } 4454 save_CFLAGS="$CFLAGS" 4455 CFLAGS="$V_CCOPT" 4456 if ${ac_cv_lbl_inline+:} false; then : 4457 $as_echo_n "(cached) " >&6 4458else 4459 4460 ac_cv_lbl_inline="" 4461 ac_lbl_cc_inline=no 4462 for ac_lbl_inline in inline __inline__ __inline 4463 do 4464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4465/* end confdefs.h. */ 4466#define inline $ac_lbl_inline 4467 static inline struct iltest *foo(void); 4468 struct iltest { 4469 int iltest1; 4470 int iltest2; 4471 }; 4472 4473 static inline struct iltest * 4474 foo() 4475 { 4476 static struct iltest xxx; 4477 4478 return &xxx; 4479 } 4480int 4481main () 4482{ 4483 4484 ; 4485 return 0; 4486} 4487_ACEOF 4488if ac_fn_c_try_compile "$LINENO"; then : 4489 ac_lbl_cc_inline=yes 4490fi 4491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4492 if test "$ac_lbl_cc_inline" = yes ; then 4493 break; 4494 fi 4495 done 4496 if test "$ac_lbl_cc_inline" = yes ; then 4497 ac_cv_lbl_inline=$ac_lbl_inline 4498 fi 4499fi 4500 4501 CFLAGS="$save_CFLAGS" 4502 if test ! -z "$ac_cv_lbl_inline" ; then 4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_inline" >&5 4504$as_echo "$ac_cv_lbl_inline" >&6; } 4505 else 4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4507$as_echo "no" >&6; } 4508 fi 4509 4510cat >>confdefs.h <<_ACEOF 4511#define inline $ac_cv_lbl_inline 4512_ACEOF 4513 4514 4515# 4516# Try to arrange for large file support. 4517# 4518# Check whether --enable-largefile was given. 4519if test "${enable_largefile+set}" = set; then : 4520 enableval=$enable_largefile; 4521fi 4522 4523if test "$enable_largefile" != no; then 4524 4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 4526$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 4527if ${ac_cv_sys_largefile_CC+:} false; then : 4528 $as_echo_n "(cached) " >&6 4529else 4530 ac_cv_sys_largefile_CC=no 4531 if test "$GCC" != yes; then 4532 ac_save_CC=$CC 4533 while :; do 4534 # IRIX 6.2 and later do not support large files by default, 4535 # so use the C compiler's -n32 option if that helps. 4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4537/* end confdefs.h. */ 4538#include <sys/types.h> 4539 /* Check that off_t can represent 2**63 - 1 correctly. 4540 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4541 since some C++ compilers masquerading as C compilers 4542 incorrectly reject 9223372036854775807. */ 4543#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 4544 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4545 && LARGE_OFF_T % 2147483647 == 1) 4546 ? 1 : -1]; 4547int 4548main () 4549{ 4550 4551 ; 4552 return 0; 4553} 4554_ACEOF 4555 if ac_fn_c_try_compile "$LINENO"; then : 4556 break 4557fi 4558rm -f core conftest.err conftest.$ac_objext 4559 CC="$CC -n32" 4560 if ac_fn_c_try_compile "$LINENO"; then : 4561 ac_cv_sys_largefile_CC=' -n32'; break 4562fi 4563rm -f core conftest.err conftest.$ac_objext 4564 break 4565 done 4566 CC=$ac_save_CC 4567 rm -f conftest.$ac_ext 4568 fi 4569fi 4570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 4571$as_echo "$ac_cv_sys_largefile_CC" >&6; } 4572 if test "$ac_cv_sys_largefile_CC" != no; then 4573 CC=$CC$ac_cv_sys_largefile_CC 4574 fi 4575 4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 4577$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 4578if ${ac_cv_sys_file_offset_bits+:} false; then : 4579 $as_echo_n "(cached) " >&6 4580else 4581 while :; do 4582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4583/* end confdefs.h. */ 4584#include <sys/types.h> 4585 /* Check that off_t can represent 2**63 - 1 correctly. 4586 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4587 since some C++ compilers masquerading as C compilers 4588 incorrectly reject 9223372036854775807. */ 4589#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 4590 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4591 && LARGE_OFF_T % 2147483647 == 1) 4592 ? 1 : -1]; 4593int 4594main () 4595{ 4596 4597 ; 4598 return 0; 4599} 4600_ACEOF 4601if ac_fn_c_try_compile "$LINENO"; then : 4602 ac_cv_sys_file_offset_bits=no; break 4603fi 4604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4606/* end confdefs.h. */ 4607#define _FILE_OFFSET_BITS 64 4608#include <sys/types.h> 4609 /* Check that off_t can represent 2**63 - 1 correctly. 4610 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4611 since some C++ compilers masquerading as C compilers 4612 incorrectly reject 9223372036854775807. */ 4613#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 4614 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4615 && LARGE_OFF_T % 2147483647 == 1) 4616 ? 1 : -1]; 4617int 4618main () 4619{ 4620 4621 ; 4622 return 0; 4623} 4624_ACEOF 4625if ac_fn_c_try_compile "$LINENO"; then : 4626 ac_cv_sys_file_offset_bits=64; break 4627fi 4628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4629 ac_cv_sys_file_offset_bits=unknown 4630 break 4631done 4632fi 4633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 4634$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 4635case $ac_cv_sys_file_offset_bits in #( 4636 no | unknown) ;; 4637 *) 4638cat >>confdefs.h <<_ACEOF 4639#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 4640_ACEOF 4641;; 4642esac 4643rm -rf conftest* 4644 if test $ac_cv_sys_file_offset_bits = unknown; then 4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 4646$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 4647if ${ac_cv_sys_large_files+:} false; then : 4648 $as_echo_n "(cached) " >&6 4649else 4650 while :; do 4651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4652/* end confdefs.h. */ 4653#include <sys/types.h> 4654 /* Check that off_t can represent 2**63 - 1 correctly. 4655 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4656 since some C++ compilers masquerading as C compilers 4657 incorrectly reject 9223372036854775807. */ 4658#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 4659 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4660 && LARGE_OFF_T % 2147483647 == 1) 4661 ? 1 : -1]; 4662int 4663main () 4664{ 4665 4666 ; 4667 return 0; 4668} 4669_ACEOF 4670if ac_fn_c_try_compile "$LINENO"; then : 4671 ac_cv_sys_large_files=no; break 4672fi 4673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4675/* end confdefs.h. */ 4676#define _LARGE_FILES 1 4677#include <sys/types.h> 4678 /* Check that off_t can represent 2**63 - 1 correctly. 4679 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4680 since some C++ compilers masquerading as C compilers 4681 incorrectly reject 9223372036854775807. */ 4682#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 4683 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4684 && LARGE_OFF_T % 2147483647 == 1) 4685 ? 1 : -1]; 4686int 4687main () 4688{ 4689 4690 ; 4691 return 0; 4692} 4693_ACEOF 4694if ac_fn_c_try_compile "$LINENO"; then : 4695 ac_cv_sys_large_files=1; break 4696fi 4697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4698 ac_cv_sys_large_files=unknown 4699 break 4700done 4701fi 4702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 4703$as_echo "$ac_cv_sys_large_files" >&6; } 4704case $ac_cv_sys_large_files in #( 4705 no | unknown) ;; 4706 *) 4707cat >>confdefs.h <<_ACEOF 4708#define _LARGE_FILES $ac_cv_sys_large_files 4709_ACEOF 4710;; 4711esac 4712rm -rf conftest* 4713 fi 4714 4715 4716fi 4717 4718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 4719$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 4720if ${ac_cv_sys_largefile_source+:} false; then : 4721 $as_echo_n "(cached) " >&6 4722else 4723 while :; do 4724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4725/* end confdefs.h. */ 4726#include <sys/types.h> /* for off_t */ 4727 #include <stdio.h> 4728int 4729main () 4730{ 4731int (*fp) (FILE *, off_t, int) = fseeko; 4732 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 4733 ; 4734 return 0; 4735} 4736_ACEOF 4737if ac_fn_c_try_link "$LINENO"; then : 4738 ac_cv_sys_largefile_source=no; break 4739fi 4740rm -f core conftest.err conftest.$ac_objext \ 4741 conftest$ac_exeext conftest.$ac_ext 4742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4743/* end confdefs.h. */ 4744#define _LARGEFILE_SOURCE 1 4745#include <sys/types.h> /* for off_t */ 4746 #include <stdio.h> 4747int 4748main () 4749{ 4750int (*fp) (FILE *, off_t, int) = fseeko; 4751 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 4752 ; 4753 return 0; 4754} 4755_ACEOF 4756if ac_fn_c_try_link "$LINENO"; then : 4757 ac_cv_sys_largefile_source=1; break 4758fi 4759rm -f core conftest.err conftest.$ac_objext \ 4760 conftest$ac_exeext conftest.$ac_ext 4761 ac_cv_sys_largefile_source=unknown 4762 break 4763done 4764fi 4765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 4766$as_echo "$ac_cv_sys_largefile_source" >&6; } 4767case $ac_cv_sys_largefile_source in #( 4768 no | unknown) ;; 4769 *) 4770cat >>confdefs.h <<_ACEOF 4771#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 4772_ACEOF 4773;; 4774esac 4775rm -rf conftest* 4776 4777# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 4778# in glibc 2.1.3, but that breaks too many other things. 4779# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 4780if test $ac_cv_sys_largefile_source != unknown; then 4781 4782$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 4783 4784fi 4785 4786 4787ac_ext=c 4788ac_cpp='$CPP $CPPFLAGS' 4789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4791ac_compiler_gnu=$ac_cv_c_compiler_gnu 4792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4793$as_echo_n "checking how to run the C preprocessor... " >&6; } 4794# On Suns, sometimes $CPP names a directory. 4795if test -n "$CPP" && test -d "$CPP"; then 4796 CPP= 4797fi 4798if test -z "$CPP"; then 4799 if ${ac_cv_prog_CPP+:} false; then : 4800 $as_echo_n "(cached) " >&6 4801else 4802 # Double quotes because CPP needs to be expanded 4803 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4804 do 4805 ac_preproc_ok=false 4806for ac_c_preproc_warn_flag in '' yes 4807do 4808 # Use a header file that comes with gcc, so configuring glibc 4809 # with a fresh cross-compiler works. 4810 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4811 # <limits.h> exists even on freestanding compilers. 4812 # On the NeXT, cc -E runs the code through the compiler's parser, 4813 # not just through cpp. "Syntax error" is here to catch this case. 4814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4815/* end confdefs.h. */ 4816#ifdef __STDC__ 4817# include <limits.h> 4818#else 4819# include <assert.h> 4820#endif 4821 Syntax error 4822_ACEOF 4823if ac_fn_c_try_cpp "$LINENO"; then : 4824 4825else 4826 # Broken: fails on valid input. 4827continue 4828fi 4829rm -f conftest.err conftest.i conftest.$ac_ext 4830 4831 # OK, works on sane cases. Now check whether nonexistent headers 4832 # can be detected and how. 4833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4834/* end confdefs.h. */ 4835#include <ac_nonexistent.h> 4836_ACEOF 4837if ac_fn_c_try_cpp "$LINENO"; then : 4838 # Broken: success on invalid input. 4839continue 4840else 4841 # Passes both tests. 4842ac_preproc_ok=: 4843break 4844fi 4845rm -f conftest.err conftest.i conftest.$ac_ext 4846 4847done 4848# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4849rm -f conftest.i conftest.err conftest.$ac_ext 4850if $ac_preproc_ok; then : 4851 break 4852fi 4853 4854 done 4855 ac_cv_prog_CPP=$CPP 4856 4857fi 4858 CPP=$ac_cv_prog_CPP 4859else 4860 ac_cv_prog_CPP=$CPP 4861fi 4862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4863$as_echo "$CPP" >&6; } 4864ac_preproc_ok=false 4865for ac_c_preproc_warn_flag in '' yes 4866do 4867 # Use a header file that comes with gcc, so configuring glibc 4868 # with a fresh cross-compiler works. 4869 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4870 # <limits.h> exists even on freestanding compilers. 4871 # On the NeXT, cc -E runs the code through the compiler's parser, 4872 # not just through cpp. "Syntax error" is here to catch this case. 4873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4874/* end confdefs.h. */ 4875#ifdef __STDC__ 4876# include <limits.h> 4877#else 4878# include <assert.h> 4879#endif 4880 Syntax error 4881_ACEOF 4882if ac_fn_c_try_cpp "$LINENO"; then : 4883 4884else 4885 # Broken: fails on valid input. 4886continue 4887fi 4888rm -f conftest.err conftest.i conftest.$ac_ext 4889 4890 # OK, works on sane cases. Now check whether nonexistent headers 4891 # can be detected and how. 4892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4893/* end confdefs.h. */ 4894#include <ac_nonexistent.h> 4895_ACEOF 4896if ac_fn_c_try_cpp "$LINENO"; then : 4897 # Broken: success on invalid input. 4898continue 4899else 4900 # Passes both tests. 4901ac_preproc_ok=: 4902break 4903fi 4904rm -f conftest.err conftest.i conftest.$ac_ext 4905 4906done 4907# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4908rm -f conftest.i conftest.err conftest.$ac_ext 4909if $ac_preproc_ok; then : 4910 4911else 4912 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4913$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4914as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4915See \`config.log' for more details" "$LINENO" 5; } 4916fi 4917 4918ac_ext=c 4919ac_cpp='$CPP $CPPFLAGS' 4920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4922ac_compiler_gnu=$ac_cv_c_compiler_gnu 4923 4924 4925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4926$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4927if ${ac_cv_path_GREP+:} false; then : 4928 $as_echo_n "(cached) " >&6 4929else 4930 if test -z "$GREP"; then 4931 ac_path_GREP_found=false 4932 # Loop through the user's path and test for each of PROGNAME-LIST 4933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4934for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4935do 4936 IFS=$as_save_IFS 4937 test -z "$as_dir" && as_dir=. 4938 for ac_prog in grep ggrep; do 4939 for ac_exec_ext in '' $ac_executable_extensions; do 4940 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4941 as_fn_executable_p "$ac_path_GREP" || continue 4942# Check for GNU ac_path_GREP and select it if it is found. 4943 # Check for GNU $ac_path_GREP 4944case `"$ac_path_GREP" --version 2>&1` in 4945*GNU*) 4946 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4947*) 4948 ac_count=0 4949 $as_echo_n 0123456789 >"conftest.in" 4950 while : 4951 do 4952 cat "conftest.in" "conftest.in" >"conftest.tmp" 4953 mv "conftest.tmp" "conftest.in" 4954 cp "conftest.in" "conftest.nl" 4955 $as_echo 'GREP' >> "conftest.nl" 4956 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4957 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4958 as_fn_arith $ac_count + 1 && ac_count=$as_val 4959 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4960 # Best one so far, save it but keep looking for a better one 4961 ac_cv_path_GREP="$ac_path_GREP" 4962 ac_path_GREP_max=$ac_count 4963 fi 4964 # 10*(2^10) chars as input seems more than enough 4965 test $ac_count -gt 10 && break 4966 done 4967 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4968esac 4969 4970 $ac_path_GREP_found && break 3 4971 done 4972 done 4973 done 4974IFS=$as_save_IFS 4975 if test -z "$ac_cv_path_GREP"; then 4976 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4977 fi 4978else 4979 ac_cv_path_GREP=$GREP 4980fi 4981 4982fi 4983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4984$as_echo "$ac_cv_path_GREP" >&6; } 4985 GREP="$ac_cv_path_GREP" 4986 4987 4988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4989$as_echo_n "checking for egrep... " >&6; } 4990if ${ac_cv_path_EGREP+:} false; then : 4991 $as_echo_n "(cached) " >&6 4992else 4993 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4994 then ac_cv_path_EGREP="$GREP -E" 4995 else 4996 if test -z "$EGREP"; then 4997 ac_path_EGREP_found=false 4998 # Loop through the user's path and test for each of PROGNAME-LIST 4999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5000for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5001do 5002 IFS=$as_save_IFS 5003 test -z "$as_dir" && as_dir=. 5004 for ac_prog in egrep; do 5005 for ac_exec_ext in '' $ac_executable_extensions; do 5006 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5007 as_fn_executable_p "$ac_path_EGREP" || continue 5008# Check for GNU ac_path_EGREP and select it if it is found. 5009 # Check for GNU $ac_path_EGREP 5010case `"$ac_path_EGREP" --version 2>&1` in 5011*GNU*) 5012 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5013*) 5014 ac_count=0 5015 $as_echo_n 0123456789 >"conftest.in" 5016 while : 5017 do 5018 cat "conftest.in" "conftest.in" >"conftest.tmp" 5019 mv "conftest.tmp" "conftest.in" 5020 cp "conftest.in" "conftest.nl" 5021 $as_echo 'EGREP' >> "conftest.nl" 5022 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5023 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5024 as_fn_arith $ac_count + 1 && ac_count=$as_val 5025 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5026 # Best one so far, save it but keep looking for a better one 5027 ac_cv_path_EGREP="$ac_path_EGREP" 5028 ac_path_EGREP_max=$ac_count 5029 fi 5030 # 10*(2^10) chars as input seems more than enough 5031 test $ac_count -gt 10 && break 5032 done 5033 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5034esac 5035 5036 $ac_path_EGREP_found && break 3 5037 done 5038 done 5039 done 5040IFS=$as_save_IFS 5041 if test -z "$ac_cv_path_EGREP"; then 5042 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5043 fi 5044else 5045 ac_cv_path_EGREP=$EGREP 5046fi 5047 5048 fi 5049fi 5050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5051$as_echo "$ac_cv_path_EGREP" >&6; } 5052 EGREP="$ac_cv_path_EGREP" 5053 5054 5055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5056$as_echo_n "checking for ANSI C header files... " >&6; } 5057if ${ac_cv_header_stdc+:} false; then : 5058 $as_echo_n "(cached) " >&6 5059else 5060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5061/* end confdefs.h. */ 5062#include <stdlib.h> 5063#include <stdarg.h> 5064#include <string.h> 5065#include <float.h> 5066 5067int 5068main () 5069{ 5070 5071 ; 5072 return 0; 5073} 5074_ACEOF 5075if ac_fn_c_try_compile "$LINENO"; then : 5076 ac_cv_header_stdc=yes 5077else 5078 ac_cv_header_stdc=no 5079fi 5080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5081 5082if test $ac_cv_header_stdc = yes; then 5083 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5085/* end confdefs.h. */ 5086#include <string.h> 5087 5088_ACEOF 5089if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5090 $EGREP "memchr" >/dev/null 2>&1; then : 5091 5092else 5093 ac_cv_header_stdc=no 5094fi 5095rm -f conftest* 5096 5097fi 5098 5099if test $ac_cv_header_stdc = yes; then 5100 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5102/* end confdefs.h. */ 5103#include <stdlib.h> 5104 5105_ACEOF 5106if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5107 $EGREP "free" >/dev/null 2>&1; then : 5108 5109else 5110 ac_cv_header_stdc=no 5111fi 5112rm -f conftest* 5113 5114fi 5115 5116if test $ac_cv_header_stdc = yes; then 5117 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5118 if test "$cross_compiling" = yes; then : 5119 : 5120else 5121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5122/* end confdefs.h. */ 5123#include <ctype.h> 5124#include <stdlib.h> 5125#if ((' ' & 0x0FF) == 0x020) 5126# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5127# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5128#else 5129# define ISLOWER(c) \ 5130 (('a' <= (c) && (c) <= 'i') \ 5131 || ('j' <= (c) && (c) <= 'r') \ 5132 || ('s' <= (c) && (c) <= 'z')) 5133# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5134#endif 5135 5136#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5137int 5138main () 5139{ 5140 int i; 5141 for (i = 0; i < 256; i++) 5142 if (XOR (islower (i), ISLOWER (i)) 5143 || toupper (i) != TOUPPER (i)) 5144 return 2; 5145 return 0; 5146} 5147_ACEOF 5148if ac_fn_c_try_run "$LINENO"; then : 5149 5150else 5151 ac_cv_header_stdc=no 5152fi 5153rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5154 conftest.$ac_objext conftest.beam conftest.$ac_ext 5155fi 5156 5157fi 5158fi 5159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5160$as_echo "$ac_cv_header_stdc" >&6; } 5161if test $ac_cv_header_stdc = yes; then 5162 5163$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5164 5165fi 5166 5167# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5168for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5169 inttypes.h stdint.h unistd.h 5170do : 5171 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5172ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5173" 5174if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5175 cat >>confdefs.h <<_ACEOF 5176#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5177_ACEOF 5178 5179fi 5180 5181done 5182 5183 5184for ac_header in sys/ioccom.h sys/sockio.h 5185do : 5186 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5187ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 5188if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5189 cat >>confdefs.h <<_ACEOF 5190#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5191_ACEOF 5192 5193fi 5194 5195done 5196 5197for ac_header in netpacket/packet.h 5198do : 5199 ac_fn_c_check_header_mongrel "$LINENO" "netpacket/packet.h" "ac_cv_header_netpacket_packet_h" "$ac_includes_default" 5200if test "x$ac_cv_header_netpacket_packet_h" = xyes; then : 5201 cat >>confdefs.h <<_ACEOF 5202#define HAVE_NETPACKET_PACKET_H 1 5203_ACEOF 5204 5205fi 5206 5207done 5208 5209for ac_header in net/pfvar.h 5210do : 5211 ac_fn_c_check_header_compile "$LINENO" "net/pfvar.h" "ac_cv_header_net_pfvar_h" "#include <sys/types.h> 5212#include <sys/socket.h> 5213#include <net/if.h> 5214" 5215if test "x$ac_cv_header_net_pfvar_h" = xyes; then : 5216 cat >>confdefs.h <<_ACEOF 5217#define HAVE_NET_PFVAR_H 1 5218_ACEOF 5219 5220fi 5221 5222done 5223 5224if test "$ac_cv_header_net_pfvar_h" = yes; then 5225 # 5226 # Check for various PF actions. 5227 # 5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5 5229$as_echo_n "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... " >&6; } 5230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5231/* end confdefs.h. */ 5232#include <sys/types.h> 5233 #include <sys/socket.h> 5234 #include <net/if.h> 5235 #include <net/pfvar.h> 5236int 5237main () 5238{ 5239return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR; 5240 ; 5241 return 0; 5242} 5243_ACEOF 5244if ac_fn_c_try_compile "$LINENO"; then : 5245 5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5247$as_echo "yes" >&6; } 5248 5249$as_echo "#define HAVE_PF_NAT_THROUGH_PF_NORDR 1" >>confdefs.h 5250 5251 5252else 5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5254$as_echo "no" >&6; } 5255fi 5256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5257fi 5258 5259case "$host_os" in 5260haiku*) 5261 # 5262 # Haiku needs _BSD_SOURCE for the _IO* macros because it doesn't use them. 5263 # 5264 CFLAGS="$CFLAGS -D_BSD_SOURCE" 5265 ;; 5266esac 5267 5268if test "$GCC" = yes ; then 5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI ioctl definitions" >&5 5270$as_echo_n "checking for ANSI ioctl definitions... " >&6; } 5271 if ${ac_cv_lbl_gcc_fixincludes+:} false; then : 5272 $as_echo_n "(cached) " >&6 5273else 5274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5275/* end confdefs.h. */ 5276/* 5277 * This generates a "duplicate case value" when fixincludes 5278 * has not be run. 5279 */ 5280# include <sys/types.h> 5281# include <sys/time.h> 5282# include <sys/ioctl.h> 5283# ifdef HAVE_SYS_IOCCOM_H 5284# include <sys/ioccom.h> 5285# endif 5286int 5287main () 5288{ 5289switch (0) { 5290 case _IO('A', 1):; 5291 case _IO('B', 1):; 5292 } 5293 ; 5294 return 0; 5295} 5296_ACEOF 5297if ac_fn_c_try_compile "$LINENO"; then : 5298 ac_cv_lbl_gcc_fixincludes=yes 5299else 5300 ac_cv_lbl_gcc_fixincludes=no 5301fi 5302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5303fi 5304 5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_gcc_fixincludes" >&5 5306$as_echo "$ac_cv_lbl_gcc_fixincludes" >&6; } 5307 if test $ac_cv_lbl_gcc_fixincludes = no ; then 5308 # Don't cache failure 5309 unset ac_cv_lbl_gcc_fixincludes 5310 as_fn_error $? "see the INSTALL for more info" "$LINENO" 5 5311 fi 5312 fi 5313 5314for ac_func in strerror 5315do : 5316 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror" 5317if test "x$ac_cv_func_strerror" = xyes; then : 5318 cat >>confdefs.h <<_ACEOF 5319#define HAVE_STRERROR 1 5320_ACEOF 5321 5322fi 5323done 5324 5325ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" 5326if test "x$ac_cv_func_strerror_r" = xyes; then : 5327 5328 # 5329 # We have strerror_r; if we define _GNU_SOURCE, is it a 5330 # POSIX-compliant strerror_r() or a GNU strerror_r()? 5331 # 5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r is GNU-style" >&5 5333$as_echo_n "checking whether strerror_r is GNU-style... " >&6; } 5334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5335/* end confdefs.h. */ 5336 5337 #define _GNU_SOURCE 5338#include <string.h> 5339 5340/* Define it GNU-style; that will cause an error if it's not GNU-style */ 5341extern char *strerror_r(int, char *, size_t); 5342 5343int 5344main(void) 5345{ 5346 return 0; 5347} 5348 5349 5350_ACEOF 5351if ac_fn_c_try_compile "$LINENO"; then : 5352 5353 # GNU-style 5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5355$as_echo "yes" >&6; } 5356 5357$as_echo "#define HAVE_GNU_STRERROR_R /**/" >>confdefs.h 5358 5359 5360else 5361 5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5363$as_echo "no" >&6; } 5364 5365$as_echo "#define HAVE_POSIX_STRERROR_R /**/" >>confdefs.h 5366 5367 5368fi 5369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5370 5371else 5372 5373 # 5374 # We don't have strerror_r; do we have _wcserror_s? 5375 # 5376 for ac_func in _wcserror_s 5377do : 5378 ac_fn_c_check_func "$LINENO" "_wcserror_s" "ac_cv_func__wcserror_s" 5379if test "x$ac_cv_func__wcserror_s" = xyes; then : 5380 cat >>confdefs.h <<_ACEOF 5381#define HAVE__WCSERROR_S 1 5382_ACEOF 5383 5384fi 5385done 5386 5387 5388fi 5389 5390 5391# 5392# Thanks, IBM, for not providing vsyslog() in AIX! 5393# 5394for ac_func in vsyslog 5395do : 5396 ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog" 5397if test "x$ac_cv_func_vsyslog" = xyes; then : 5398 cat >>confdefs.h <<_ACEOF 5399#define HAVE_VSYSLOG 1 5400_ACEOF 5401 5402fi 5403done 5404 5405 5406# 5407# Make sure we have vsnprintf() and snprintf(); we require them. 5408# 5409ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf" 5410if test "x$ac_cv_func_vsnprintf" = xyes; then : 5411 5412else 5413 as_fn_error $? "vsnprintf() is required but wasn't found" "$LINENO" 5 5414fi 5415 5416ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 5417if test "x$ac_cv_func_snprintf" = xyes; then : 5418 5419else 5420 as_fn_error $? "snprintf() is required but wasn't found" "$LINENO" 5 5421fi 5422 5423 5424needasprintf=no 5425for ac_func in vasprintf asprintf 5426do : 5427 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 5428ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 5429if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 5430 cat >>confdefs.h <<_ACEOF 5431#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 5432_ACEOF 5433 5434else 5435 needasprintf=yes 5436fi 5437done 5438 5439if test $needasprintf = yes; then 5440 case " $LIBOBJS " in 5441 *" asprintf.$ac_objext "* ) ;; 5442 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" 5443 ;; 5444esac 5445 5446fi 5447 5448needstrlcat=no 5449for ac_func in strlcat 5450do : 5451 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 5452if test "x$ac_cv_func_strlcat" = xyes; then : 5453 cat >>confdefs.h <<_ACEOF 5454#define HAVE_STRLCAT 1 5455_ACEOF 5456 5457else 5458 needstrlcat=yes 5459fi 5460done 5461 5462if test $needstrlcat = yes; then 5463 case " $LIBOBJS " in 5464 *" strlcat.$ac_objext "* ) ;; 5465 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 5466 ;; 5467esac 5468 5469fi 5470 5471needstrlcpy=no 5472for ac_func in strlcpy 5473do : 5474 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 5475if test "x$ac_cv_func_strlcpy" = xyes; then : 5476 cat >>confdefs.h <<_ACEOF 5477#define HAVE_STRLCPY 1 5478_ACEOF 5479 5480else 5481 needstrlcpy=yes 5482fi 5483done 5484 5485if test $needstrlcpy = yes; then 5486 case " $LIBOBJS " in 5487 *" strlcpy.$ac_objext "* ) ;; 5488 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 5489 ;; 5490esac 5491 5492fi 5493 5494needstrtok_r=no 5495for ac_func in strtok_r 5496do : 5497 ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r" 5498if test "x$ac_cv_func_strtok_r" = xyes; then : 5499 cat >>confdefs.h <<_ACEOF 5500#define HAVE_STRTOK_R 1 5501_ACEOF 5502 5503else 5504 needstrtok_r=yes 5505fi 5506done 5507 5508if test $needstrtok_r = yes; then 5509 case " $LIBOBJS " in 5510 *" strtok_r.$ac_objext "* ) ;; 5511 *) LIBOBJS="$LIBOBJS strtok_r.$ac_objext" 5512 ;; 5513esac 5514 5515fi 5516 5517# 5518# Do we have ffs(), and is it declared in <strings.h>? 5519# 5520for ac_func in ffs 5521do : 5522 ac_fn_c_check_func "$LINENO" "ffs" "ac_cv_func_ffs" 5523if test "x$ac_cv_func_ffs" = xyes; then : 5524 cat >>confdefs.h <<_ACEOF 5525#define HAVE_FFS 1 5526_ACEOF 5527 5528fi 5529done 5530 5531if test "$ac_cv_func_ffs" = yes; then 5532 # 5533 # We have ffs(); is it declared in <strings.h>? 5534 # 5535 # This test fails if we don't have <strings.h> or if we do 5536 # but it doesn't declare ffs(). 5537 # 5538 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" " 5539#include <strings.h> 5540 5541" 5542if test "x$ac_cv_have_decl_ffs" = xyes; then : 5543 5544 5545$as_echo "#define STRINGS_H_DECLARES_FFS /**/" >>confdefs.h 5546 5547 5548fi 5549 5550fi 5551 5552# 5553# Do this before checking for ether_hostton(), as it's a 5554# "getaddrinfo()-ish function". 5555# 5556 5557 # 5558 # Most operating systems have getaddrinfo() in the default searched 5559 # libraries (i.e. libc). Check there first. 5560 # 5561 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 5562if test "x$ac_cv_func_getaddrinfo" = xyes; then : 5563 5564else 5565 5566 # 5567 # Not found in the standard system libraries. 5568 # Try libsocket, which requires libnsl. 5569 # 5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lsocket" >&5 5571$as_echo_n "checking for getaddrinfo in -lsocket... " >&6; } 5572if ${ac_cv_lib_socket_getaddrinfo+:} false; then : 5573 $as_echo_n "(cached) " >&6 5574else 5575 ac_check_lib_save_LIBS=$LIBS 5576LIBS="-lsocket -lnsl $LIBS" 5577cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5578/* end confdefs.h. */ 5579 5580/* Override any GCC internal prototype to avoid an error. 5581 Use char because int might match the return type of a GCC 5582 builtin and then its argument prototype would still apply. */ 5583#ifdef __cplusplus 5584extern "C" 5585#endif 5586char getaddrinfo (); 5587int 5588main () 5589{ 5590return getaddrinfo (); 5591 ; 5592 return 0; 5593} 5594_ACEOF 5595if ac_fn_c_try_link "$LINENO"; then : 5596 ac_cv_lib_socket_getaddrinfo=yes 5597else 5598 ac_cv_lib_socket_getaddrinfo=no 5599fi 5600rm -f core conftest.err conftest.$ac_objext \ 5601 conftest$ac_exeext conftest.$ac_ext 5602LIBS=$ac_check_lib_save_LIBS 5603fi 5604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getaddrinfo" >&5 5605$as_echo "$ac_cv_lib_socket_getaddrinfo" >&6; } 5606if test "x$ac_cv_lib_socket_getaddrinfo" = xyes; then : 5607 5608 # 5609 # OK, we found it in libsocket. 5610 # 5611 LIBS="-lsocket -lnsl $LIBS" 5612 5613else 5614 5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lnetwork" >&5 5616$as_echo_n "checking for getaddrinfo in -lnetwork... " >&6; } 5617if ${ac_cv_lib_network_getaddrinfo+:} false; then : 5618 $as_echo_n "(cached) " >&6 5619else 5620 ac_check_lib_save_LIBS=$LIBS 5621LIBS="-lnetwork $LIBS" 5622cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5623/* end confdefs.h. */ 5624 5625/* Override any GCC internal prototype to avoid an error. 5626 Use char because int might match the return type of a GCC 5627 builtin and then its argument prototype would still apply. */ 5628#ifdef __cplusplus 5629extern "C" 5630#endif 5631char getaddrinfo (); 5632int 5633main () 5634{ 5635return getaddrinfo (); 5636 ; 5637 return 0; 5638} 5639_ACEOF 5640if ac_fn_c_try_link "$LINENO"; then : 5641 ac_cv_lib_network_getaddrinfo=yes 5642else 5643 ac_cv_lib_network_getaddrinfo=no 5644fi 5645rm -f core conftest.err conftest.$ac_objext \ 5646 conftest$ac_exeext conftest.$ac_ext 5647LIBS=$ac_check_lib_save_LIBS 5648fi 5649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_getaddrinfo" >&5 5650$as_echo "$ac_cv_lib_network_getaddrinfo" >&6; } 5651if test "x$ac_cv_lib_network_getaddrinfo" = xyes; then : 5652 5653 # 5654 # OK, we found it in libnetwork on Haiku. 5655 # 5656 LIBS="-lnetwork $LIBS" 5657 5658else 5659 5660 # 5661 # We didn't find it. 5662 # 5663 as_fn_error $? "getaddrinfo is required, but wasn't found" "$LINENO" 5 5664 5665fi 5666 5667 5668fi 5669 5670 5671 # 5672 # OK, do we have recvmsg() in libxnet? 5673 # We also link with libsocket and libnsl. 5674 # 5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recvmsg in -lxnet" >&5 5676$as_echo_n "checking for recvmsg in -lxnet... " >&6; } 5677if ${ac_cv_lib_xnet_recvmsg+:} false; then : 5678 $as_echo_n "(cached) " >&6 5679else 5680 ac_check_lib_save_LIBS=$LIBS 5681LIBS="-lxnet -lsocket -lnsl $LIBS" 5682cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5683/* end confdefs.h. */ 5684 5685/* Override any GCC internal prototype to avoid an error. 5686 Use char because int might match the return type of a GCC 5687 builtin and then its argument prototype would still apply. */ 5688#ifdef __cplusplus 5689extern "C" 5690#endif 5691char recvmsg (); 5692int 5693main () 5694{ 5695return recvmsg (); 5696 ; 5697 return 0; 5698} 5699_ACEOF 5700if ac_fn_c_try_link "$LINENO"; then : 5701 ac_cv_lib_xnet_recvmsg=yes 5702else 5703 ac_cv_lib_xnet_recvmsg=no 5704fi 5705rm -f core conftest.err conftest.$ac_objext \ 5706 conftest$ac_exeext conftest.$ac_ext 5707LIBS=$ac_check_lib_save_LIBS 5708fi 5709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_recvmsg" >&5 5710$as_echo "$ac_cv_lib_xnet_recvmsg" >&6; } 5711if test "x$ac_cv_lib_xnet_recvmsg" = xyes; then : 5712 5713 # 5714 # Yes - link with it as well. 5715 # 5716 LIBS="-lxnet $LIBS" 5717 5718fi 5719 5720 5721fi 5722 5723 # DLPI needs putmsg under HPUX so test for -lstr while we're at it 5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing putmsg" >&5 5725$as_echo_n "checking for library containing putmsg... " >&6; } 5726if ${ac_cv_search_putmsg+:} false; then : 5727 $as_echo_n "(cached) " >&6 5728else 5729 ac_func_search_save_LIBS=$LIBS 5730cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5731/* end confdefs.h. */ 5732 5733/* Override any GCC internal prototype to avoid an error. 5734 Use char because int might match the return type of a GCC 5735 builtin and then its argument prototype would still apply. */ 5736#ifdef __cplusplus 5737extern "C" 5738#endif 5739char putmsg (); 5740int 5741main () 5742{ 5743return putmsg (); 5744 ; 5745 return 0; 5746} 5747_ACEOF 5748for ac_lib in '' str; do 5749 if test -z "$ac_lib"; then 5750 ac_res="none required" 5751 else 5752 ac_res=-l$ac_lib 5753 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5754 fi 5755 if ac_fn_c_try_link "$LINENO"; then : 5756 ac_cv_search_putmsg=$ac_res 5757fi 5758rm -f core conftest.err conftest.$ac_objext \ 5759 conftest$ac_exeext 5760 if ${ac_cv_search_putmsg+:} false; then : 5761 break 5762fi 5763done 5764if ${ac_cv_search_putmsg+:} false; then : 5765 5766else 5767 ac_cv_search_putmsg=no 5768fi 5769rm conftest.$ac_ext 5770LIBS=$ac_func_search_save_LIBS 5771fi 5772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_putmsg" >&5 5773$as_echo "$ac_cv_search_putmsg" >&6; } 5774ac_res=$ac_cv_search_putmsg 5775if test "$ac_res" != no; then : 5776 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5777 5778fi 5779 5780 5781 5782# 5783# Check for reentrant versions of getnetbyname_r(), as provided by 5784# Linux (glibc), Solaris/IRIX, and AIX (with three different APIs!). 5785# If we don't find one, we just use getnetbyname(), which uses 5786# thread-specific data on many platforms, but doesn't use it on 5787# NetBSD or OpenBSD, and may not use it on older versions of other 5788# platforms. 5789# 5790# Only do the check if we have a declaration of getnetbyname_r(); 5791# without it, we can't check which API it has. (We assume that 5792# if there's a declaration, it has a prototype, so that the API 5793# can be checked.) 5794# 5795ac_fn_c_check_decl "$LINENO" "getnetbyname_r" "ac_cv_have_decl_getnetbyname_r" "#include <netdb.h> 5796" 5797if test "x$ac_cv_have_decl_getnetbyname_r" = xyes; then : 5798 5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getnetbyname_r()" >&5 5800$as_echo_n "checking for the Linux getnetbyname_r()... " >&6; } 5801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5802/* end confdefs.h. */ 5803#include <netdb.h> 5804int 5805main () 5806{ 5807 5808 struct netent netent_buf; 5809 char buf[1024]; 5810 struct netent *resultp; 5811 int h_errnoval; 5812 5813 return getnetbyname_r((const char *)0, &netent_buf, buf, sizeof buf, &resultp, &h_errnoval); 5814 5815 ; 5816 return 0; 5817} 5818_ACEOF 5819if ac_fn_c_try_link "$LINENO"; then : 5820 5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5822$as_echo "yes" >&6; } 5823 5824$as_echo "#define HAVE_LINUX_GETNETBYNAME_R 1" >>confdefs.h 5825 5826 5827else 5828 5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5830$as_echo "no" >&6; } 5831 5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris/IRIX getnetbyname_r()" >&5 5833$as_echo_n "checking for Solaris/IRIX getnetbyname_r()... " >&6; } 5834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5835/* end confdefs.h. */ 5836#include <netdb.h> 5837int 5838main () 5839{ 5840 5841 struct netent netent_buf; 5842 char buf[1024]; 5843 5844 return getnetbyname_r((const char *)0, &netent_buf, buf, (int)sizeof buf) != NULL; 5845 5846 ; 5847 return 0; 5848} 5849_ACEOF 5850if ac_fn_c_try_link "$LINENO"; then : 5851 5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5853$as_echo "yes" >&6; } 5854 5855$as_echo "#define HAVE_SOLARIS_IRIX_GETNETBYNAME_R 1" >>confdefs.h 5856 5857 5858else 5859 5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5861$as_echo "no" >&6; } 5862 5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX getnetbyname_r()" >&5 5864$as_echo_n "checking for AIX getnetbyname_r()... " >&6; } 5865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5866/* end confdefs.h. */ 5867#include <netdb.h> 5868int 5869main () 5870{ 5871 5872 struct netent netent_buf; 5873 struct netent_data net_data; 5874 5875 return getnetbyname_r((const char *)0, &netent_buf, &net_data); 5876 5877 ; 5878 return 0; 5879} 5880_ACEOF 5881if ac_fn_c_try_link "$LINENO"; then : 5882 5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5884$as_echo "yes" >&6; } 5885 5886$as_echo "#define HAVE_AIX_GETNETBYNAME_R 1" >>confdefs.h 5887 5888 5889else 5890 5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5892$as_echo "no" >&6; } 5893 5894fi 5895rm -f core conftest.err conftest.$ac_objext \ 5896 conftest$ac_exeext conftest.$ac_ext 5897 5898fi 5899rm -f core conftest.err conftest.$ac_objext \ 5900 conftest$ac_exeext conftest.$ac_ext 5901 5902fi 5903rm -f core conftest.err conftest.$ac_objext \ 5904 conftest$ac_exeext conftest.$ac_ext 5905 5906fi 5907 5908 5909# 5910# Check for reentrant versions of getprotobyname_r(), as provided by 5911# Linux (glibc), Solaris/IRIX, and AIX (with three different APIs!). 5912# If we don't find one, we just use getprotobyname(), which uses 5913# thread-specific data on many platforms, but doesn't use it on 5914# NetBSD or OpenBSD, and may not use it on older versions of other 5915# platforms. 5916# 5917# Only do the check if we have a declaration of getprotobyname_r(); 5918# without it, we can't check which API it has. (We assume that 5919# if there's a declaration, it has a prototype, so that the API 5920# can be checked.) 5921# 5922ac_fn_c_check_decl "$LINENO" "getprotobyname_r" "ac_cv_have_decl_getprotobyname_r" "#include <netdb.h> 5923" 5924if test "x$ac_cv_have_decl_getprotobyname_r" = xyes; then : 5925 5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getprotobyname_r()" >&5 5927$as_echo_n "checking for the Linux getprotobyname_r()... " >&6; } 5928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5929/* end confdefs.h. */ 5930#include <netdb.h> 5931int 5932main () 5933{ 5934 5935 struct protoent protoent_buf; 5936 char buf[1024]; 5937 struct protoent *resultp; 5938 5939 return getprotobyname_r((const char *)0, &protoent_buf, buf, sizeof buf, &resultp); 5940 5941 ; 5942 return 0; 5943} 5944_ACEOF 5945if ac_fn_c_try_link "$LINENO"; then : 5946 5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5948$as_echo "yes" >&6; } 5949 5950$as_echo "#define HAVE_LINUX_GETPROTOBYNAME_R 1" >>confdefs.h 5951 5952 5953else 5954 5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5956$as_echo "no" >&6; } 5957 5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris/IRIX getprotobyname_r()" >&5 5959$as_echo_n "checking for Solaris/IRIX getprotobyname_r()... " >&6; } 5960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5961/* end confdefs.h. */ 5962#include <netdb.h> 5963int 5964main () 5965{ 5966 5967 struct protoent protoent_buf; 5968 char buf[1024]; 5969 5970 return getprotobyname_r((const char *)0, &protoent_buf, buf, (int)sizeof buf) != NULL; 5971 5972 ; 5973 return 0; 5974} 5975_ACEOF 5976if ac_fn_c_try_link "$LINENO"; then : 5977 5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5979$as_echo "yes" >&6; } 5980 5981$as_echo "#define HAVE_SOLARIS_IRIX_GETPROTOBYNAME_R 1" >>confdefs.h 5982 5983 5984else 5985 5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5987$as_echo "no" >&6; } 5988 5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX getprotobyname_r()" >&5 5990$as_echo_n "checking for AIX getprotobyname_r()... " >&6; } 5991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5992/* end confdefs.h. */ 5993#include <netdb.h> 5994int 5995main () 5996{ 5997 5998 struct protoent protoent_buf; 5999 struct protoent_data proto_data; 6000 6001 return getprotobyname_r((const char *)0, &protoent_buf, &proto_data); 6002 6003 ; 6004 return 0; 6005} 6006_ACEOF 6007if ac_fn_c_try_link "$LINENO"; then : 6008 6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6010$as_echo "yes" >&6; } 6011 6012$as_echo "#define HAVE_AIX_GETPROTOBYNAME_R 1" >>confdefs.h 6013 6014 6015else 6016 6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6018$as_echo "no" >&6; } 6019 6020fi 6021rm -f core conftest.err conftest.$ac_objext \ 6022 conftest$ac_exeext conftest.$ac_ext 6023 6024fi 6025rm -f core conftest.err conftest.$ac_objext \ 6026 conftest$ac_exeext conftest.$ac_ext 6027 6028fi 6029rm -f core conftest.err conftest.$ac_objext \ 6030 conftest$ac_exeext conftest.$ac_ext 6031 6032fi 6033 6034 6035# 6036# You are in a twisty little maze of UN*Xes, all different. 6037# Some might not have ether_hostton(). 6038# Some might have it and declare it in <net/ethernet.h>. 6039# Some might have it and declare it in <netinet/ether.h> 6040# Some might have it and declare it in <sys/ethernet.h>. 6041# Some might have it and declare it in <arpa/inet.h>. 6042# Some might have it and declare it in <netinet/if_ether.h>. 6043# Some might have it and not declare it in any header file. 6044# 6045# Before you is a C compiler. 6046# 6047for ac_func in ether_hostton 6048do : 6049 ac_fn_c_check_func "$LINENO" "ether_hostton" "ac_cv_func_ether_hostton" 6050if test "x$ac_cv_func_ether_hostton" = xyes; then : 6051 cat >>confdefs.h <<_ACEOF 6052#define HAVE_ETHER_HOSTTON 1 6053_ACEOF 6054 6055fi 6056done 6057 6058if test "$ac_cv_func_ether_hostton" = yes; then 6059 # 6060 # OK, we have ether_hostton(). Is it declared in <net/ethernet.h>? 6061 # 6062 # This test fails if we don't have <net/ethernet.h> or if we do 6063 # but it doesn't declare ether_hostton(). 6064 # 6065 ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" " 6066#include <net/ethernet.h> 6067 6068" 6069if test "x$ac_cv_have_decl_ether_hostton" = xyes; then : 6070 6071 6072$as_echo "#define NET_ETHERNET_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h 6073 6074 6075fi 6076 6077 # 6078 # Did that succeed? 6079 # 6080 if test "$ac_cv_have_decl_ether_hostton" != yes; then 6081 # 6082 # No, how about <netinet/ether.h>, as on Linux? 6083 # 6084 # This test fails if we don't have <netinet/ether.h> 6085 # or if we do but it doesn't declare ether_hostton(). 6086 # 6087 # Unset ac_cv_have_decl_ether_hostton so we don't 6088 # treat the previous failure as a cached value and 6089 # suppress the next test. 6090 # 6091 unset ac_cv_have_decl_ether_hostton 6092 ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" " 6093#include <netinet/ether.h> 6094 6095" 6096if test "x$ac_cv_have_decl_ether_hostton" = xyes; then : 6097 6098 6099$as_echo "#define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h 6100 6101 6102fi 6103 6104 fi 6105 # 6106 # Did that succeed? 6107 # 6108 if test "$ac_cv_have_decl_ether_hostton" != yes; then 6109 # 6110 # No, how about <sys/ethernet.h>, as on Solaris 10 6111 # and later? 6112 # 6113 # This test fails if we don't have <sys/ethernet.h> 6114 # or if we do but it doesn't declare ether_hostton(). 6115 # 6116 # Unset ac_cv_have_decl_ether_hostton so we don't 6117 # treat the previous failure as a cached value and 6118 # suppress the next test. 6119 # 6120 unset ac_cv_have_decl_ether_hostton 6121 ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" " 6122#include <sys/ethernet.h> 6123 6124" 6125if test "x$ac_cv_have_decl_ether_hostton" = xyes; then : 6126 6127 6128$as_echo "#define SYS_ETHERNET_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h 6129 6130 6131fi 6132 6133 fi 6134 # 6135 # Did that succeed? 6136 # 6137 if test "$ac_cv_have_decl_ether_hostton" != yes; then 6138 # 6139 # No, how about <arpa/inet.h>, as in AIX? 6140 # 6141 # This test fails if we don't have <arpa/inet.h> 6142 # (if we have ether_hostton(), we should have 6143 # networking, and if we have networking, we should 6144 # have <arapa/inet.h>) or if we do but it doesn't 6145 # declare ether_hostton(). 6146 # 6147 # Unset ac_cv_have_decl_ether_hostton so we don't 6148 # treat the previous failure as a cached value and 6149 # suppress the next test. 6150 # 6151 unset ac_cv_have_decl_ether_hostton 6152 ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" " 6153#include <arpa/inet.h> 6154 6155" 6156if test "x$ac_cv_have_decl_ether_hostton" = xyes; then : 6157 6158 6159$as_echo "#define ARPA_INET_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h 6160 6161 6162fi 6163 6164 fi 6165 # 6166 # Did that succeed? 6167 # 6168 if test "$ac_cv_have_decl_ether_hostton" != yes; then 6169 # 6170 # No, how about <netinet/if_ether.h>? 6171 # On some platforms, it requires <net/if.h> and 6172 # <netinet/in.h>, and we always include it with 6173 # both of them, so test it with both of them. 6174 # 6175 # This test fails if we don't have <netinet/if_ether.h> 6176 # and the headers we include before it, or if we do but 6177 # <netinet/if_ether.h> doesn't declare ether_hostton(). 6178 # 6179 # Unset ac_cv_have_decl_ether_hostton so we don't 6180 # treat the previous failure as a cached value and 6181 # suppress the next test. 6182 # 6183 unset ac_cv_have_decl_ether_hostton 6184 ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" " 6185#include <sys/types.h> 6186#include <sys/socket.h> 6187#include <net/if.h> 6188#include <netinet/in.h> 6189#include <netinet/if_ether.h> 6190 6191" 6192if test "x$ac_cv_have_decl_ether_hostton" = xyes; then : 6193 6194 6195$as_echo "#define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h 6196 6197 6198fi 6199 6200 fi 6201 # 6202 # After all that, is ether_hostton() declared? 6203 # 6204 if test "$ac_cv_have_decl_ether_hostton" = yes; then 6205 # 6206 # Yes. 6207 # 6208 6209$as_echo "#define HAVE_DECL_ETHER_HOSTTON 1" >>confdefs.h 6210 6211 else 6212 # 6213 # No, we'll have to declare it ourselves. 6214 # Do we have "struct ether_addr" if we include 6215 # <netinet/if_ether.h>? 6216 # 6217 ac_fn_c_check_type "$LINENO" "struct ether_addr" "ac_cv_type_struct_ether_addr" " 6218 #include <sys/types.h> 6219 #include <sys/socket.h> 6220 #include <net/if.h> 6221 #include <netinet/in.h> 6222 #include <netinet/if_ether.h> 6223 6224" 6225if test "x$ac_cv_type_struct_ether_addr" = xyes; then : 6226 6227cat >>confdefs.h <<_ACEOF 6228#define HAVE_STRUCT_ETHER_ADDR 1 6229_ACEOF 6230 6231 6232fi 6233 6234 fi 6235fi 6236 6237# 6238# For various things that might use pthreads. 6239# 6240ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 6241if test "x$ac_cv_header_pthread_h" = xyes; then : 6242 6243 # 6244 # OK, we have pthread.h. Do we have pthread_create in the 6245 # system libraries? 6246 # 6247 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create" 6248if test "x$ac_cv_func_pthread_create" = xyes; then : 6249 6250 # 6251 # Yes. 6252 # 6253 ac_lbl_have_pthreads="found" 6254 6255else 6256 6257 # 6258 # No - do we have it in -lpthreads? 6259 # 6260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 6261$as_echo_n "checking for pthread_create in -lpthreads... " >&6; } 6262if ${ac_cv_lib_pthreads_pthread_create+:} false; then : 6263 $as_echo_n "(cached) " >&6 6264else 6265 ac_check_lib_save_LIBS=$LIBS 6266LIBS="-lpthreads $LIBS" 6267cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6268/* end confdefs.h. */ 6269 6270/* Override any GCC internal prototype to avoid an error. 6271 Use char because int might match the return type of a GCC 6272 builtin and then its argument prototype would still apply. */ 6273#ifdef __cplusplus 6274extern "C" 6275#endif 6276char pthread_create (); 6277int 6278main () 6279{ 6280return pthread_create (); 6281 ; 6282 return 0; 6283} 6284_ACEOF 6285if ac_fn_c_try_link "$LINENO"; then : 6286 ac_cv_lib_pthreads_pthread_create=yes 6287else 6288 ac_cv_lib_pthreads_pthread_create=no 6289fi 6290rm -f core conftest.err conftest.$ac_objext \ 6291 conftest$ac_exeext conftest.$ac_ext 6292LIBS=$ac_check_lib_save_LIBS 6293fi 6294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 6295$as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } 6296if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then : 6297 6298 # 6299 # Yes - add -lpthreads. 6300 # 6301 ac_lbl_have_pthreads="found" 6302 PTHREAD_LIBS="$PTHREAD_LIBS -lpthreads" 6303 6304else 6305 6306 # 6307 # No - do we have it in -lpthread? 6308 # 6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 6310$as_echo_n "checking for pthread_create in -lpthread... " >&6; } 6311if ${ac_cv_lib_pthread_pthread_create+:} false; then : 6312 $as_echo_n "(cached) " >&6 6313else 6314 ac_check_lib_save_LIBS=$LIBS 6315LIBS="-lpthread $LIBS" 6316cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6317/* end confdefs.h. */ 6318 6319/* Override any GCC internal prototype to avoid an error. 6320 Use char because int might match the return type of a GCC 6321 builtin and then its argument prototype would still apply. */ 6322#ifdef __cplusplus 6323extern "C" 6324#endif 6325char pthread_create (); 6326int 6327main () 6328{ 6329return pthread_create (); 6330 ; 6331 return 0; 6332} 6333_ACEOF 6334if ac_fn_c_try_link "$LINENO"; then : 6335 ac_cv_lib_pthread_pthread_create=yes 6336else 6337 ac_cv_lib_pthread_pthread_create=no 6338fi 6339rm -f core conftest.err conftest.$ac_objext \ 6340 conftest$ac_exeext conftest.$ac_ext 6341LIBS=$ac_check_lib_save_LIBS 6342fi 6343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 6344$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } 6345if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : 6346 6347 # 6348 # Yes - add -lpthread. 6349 # 6350 ac_lbl_have_pthreads="found" 6351 PTHREAD_LIBS="$PTHREAD_LIBS -lpthread" 6352 6353else 6354 6355 # 6356 # No. 6357 # 6358 ac_lbl_have_pthreads="not found" 6359 6360fi 6361 6362 6363fi 6364 6365 6366fi 6367 6368 6369else 6370 6371 # 6372 # We didn't find pthread.h. 6373 # 6374 ac_lbl_have_pthreads="not found" 6375 6376 6377fi 6378 6379 6380 6381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-protochain option is specified" >&5 6382$as_echo_n "checking if --disable-protochain option is specified... " >&6; } 6383# Check whether --enable-protochain was given. 6384if test "${enable_protochain+set}" = set; then : 6385 enableval=$enable_protochain; 6386fi 6387 6388case "x$enable_protochain" in 6389xyes) enable_protochain=enabled ;; 6390xno) enable_protochain=disabled ;; 6391x) enable_protochain=enabled ;; 6392esac 6393 6394if test "$enable_protochain" = "disabled"; then 6395 6396$as_echo "#define NO_PROTOCHAIN 1" >>confdefs.h 6397 6398fi 6399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_protochain}" >&5 6400$as_echo "${enable_protochain}" >&6; } 6401 6402# 6403# valgrindtest directly uses the native capture mechanism, but 6404# only tests with BPF and PF_PACKET sockets; only enable it if 6405# we have BPF or PF_PACKET sockets. 6406# 6407VALGRINDTEST_SRC= 6408 6409 6410# Check whether --with-pcap was given. 6411if test "${with_pcap+set}" = set; then : 6412 withval=$with_pcap; 6413fi 6414 6415if test ! -z "$with_pcap" ; then 6416 V_PCAP="$withval" 6417else 6418 # 6419 # Check for a bunch of headers for various packet 6420 # capture mechanisms. 6421 # 6422 for ac_header in net/bpf.h 6423do : 6424 ac_fn_c_check_header_mongrel "$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default" 6425if test "x$ac_cv_header_net_bpf_h" = xyes; then : 6426 cat >>confdefs.h <<_ACEOF 6427#define HAVE_NET_BPF_H 1 6428_ACEOF 6429 6430fi 6431 6432done 6433 6434 if test "$ac_cv_header_net_bpf_h" = yes; then 6435 # 6436 # Does it define BIOCSETIF? 6437 # I.e., is it a header for an LBL/BSD-style capture 6438 # mechanism, or is it just a header for a BPF filter 6439 # engine? Some versions of Arch Linux, for example, 6440 # have a net/bpf.h that doesn't define BIOCSETIF; 6441 # as it's a Linux, it should use packet sockets, 6442 # instead. 6443 # 6444 # We need: 6445 # 6446 # sys/types.h, because FreeBSD 10's net/bpf.h 6447 # requires that various BSD-style integer types 6448 # be defined; 6449 # 6450 # sys/time.h, because AIX 5.2 and 5.3's net/bpf.h 6451 # doesn't include it but does use struct timeval 6452 # in ioctl definitions; 6453 # 6454 # sys/ioctl.h and, if we have it, sys/ioccom.h, 6455 # because net/bpf.h defines ioctls; 6456 # 6457 # net/if.h, because it defines some structures 6458 # used in ioctls defined by net/bpf.h; 6459 # 6460 # sys/socket.h, because OpenBSD 5.9's net/bpf.h 6461 # defines some structure fields as being 6462 # struct sockaddrs; 6463 # 6464 # and net/bpf.h doesn't necessarily include all 6465 # of those headers itself. 6466 # 6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/bpf.h defines BIOCSETIF" >&5 6468$as_echo_n "checking if net/bpf.h defines BIOCSETIF... " >&6; } 6469 if ${ac_cv_lbl_bpf_h_defines_biocsetif+:} false; then : 6470 $as_echo_n "(cached) " >&6 6471else 6472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6473/* end confdefs.h. */ 6474 6475#include <sys/types.h> 6476#include <sys/time.h> 6477#include <sys/ioctl.h> 6478#include <sys/socket.h> 6479#ifdef HAVE_SYS_IOCCOM_H 6480#include <sys/ioccom.h> 6481#endif 6482#include <net/bpf.h> 6483#include <net/if.h> 6484 6485int 6486main () 6487{ 6488u_int i = BIOCSETIF; 6489 ; 6490 return 0; 6491} 6492_ACEOF 6493if ac_fn_c_try_compile "$LINENO"; then : 6494 ac_cv_lbl_bpf_h_defines_biocsetif=yes 6495else 6496 ac_cv_lbl_bpf_h_defines_biocsetif=no 6497fi 6498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6499fi 6500 6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_bpf_h_defines_biocsetif" >&5 6502$as_echo "$ac_cv_lbl_bpf_h_defines_biocsetif" >&6; } 6503 fi 6504 for ac_header in net/pfilt.h net/enet.h 6505do : 6506 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6507ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6508if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6509 cat >>confdefs.h <<_ACEOF 6510#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6511_ACEOF 6512 6513fi 6514 6515done 6516 6517 for ac_header in net/nit.h sys/net/nit.h 6518do : 6519 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6520ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6521if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6522 cat >>confdefs.h <<_ACEOF 6523#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6524_ACEOF 6525 6526fi 6527 6528done 6529 6530 for ac_header in linux/socket.h net/raw.h sys/dlpi.h 6531do : 6532 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6533ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6534if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6535 cat >>confdefs.h <<_ACEOF 6536#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6537_ACEOF 6538 6539fi 6540 6541done 6542 6543 for ac_header in config/HaikuConfig.h 6544do : 6545 ac_fn_c_check_header_mongrel "$LINENO" "config/HaikuConfig.h" "ac_cv_header_config_HaikuConfig_h" "$ac_includes_default" 6546if test "x$ac_cv_header_config_HaikuConfig_h" = xyes; then : 6547 cat >>confdefs.h <<_ACEOF 6548#define HAVE_CONFIG_HAIKUCONFIG_H 1 6549_ACEOF 6550 6551fi 6552 6553done 6554 6555 6556 if test "$ac_cv_lbl_bpf_h_defines_biocsetif" = yes; then 6557 # 6558 # BPF. 6559 # Check this before DLPI, so that we pick BPF on 6560 # Solaris 11 and later. 6561 # 6562 V_PCAP=bpf 6563 6564 # 6565 # We have BPF, so build valgrindtest with "make test" 6566 # on macOS and FreeBSD (add your OS once there's a 6567 # valgrind for it). 6568 # 6569 case "$host_os" in 6570 6571 freebsd*|darwin*|linux*) 6572 VALGRINDTEST_SRC=valgrindtest.c 6573 ;; 6574 esac 6575 elif test "$ac_cv_header_linux_socket_h" = yes; then 6576 # 6577 # No prizes for guessing this one. 6578 # 6579 V_PCAP=linux 6580 VALGRINDTEST_SRC=valgrindtest.c 6581 elif test "$ac_cv_header_net_pfilt_h" = yes; then 6582 # 6583 # DEC OSF/1, Digital UNIX, Tru64 UNIX 6584 # 6585 V_PCAP=pf 6586 elif test "$ac_cv_header_net_enet_h" = yes; then 6587 # 6588 # Stanford Enetfilter. 6589 # 6590 V_PCAP=enet 6591 elif test "$ac_cv_header_net_nit_h" = yes; then 6592 # 6593 # SunOS 4.x STREAMS NIT. 6594 # 6595 V_PCAP=snit 6596 elif test "$ac_cv_header_sys_net_nit_h" = yes; then 6597 # 6598 # Pre-SunOS 4.x non-STREAMS NIT. 6599 # 6600 V_PCAP=nit 6601 elif test "$ac_cv_header_net_raw_h" = yes; then 6602 # 6603 # IRIX snoop. 6604 # 6605 V_PCAP=snoop 6606 elif test "$ac_cv_header_sys_dlpi_h" = yes; then 6607 # 6608 # DLPI on pre-Solaris 11 SunOS 5, HP-UX, possibly others. 6609 # 6610 V_PCAP=dlpi 6611 elif test "$ac_cv_header_config_HaikuConfig_h" = yes; then 6612 # 6613 # Haiku. 6614 # 6615 V_PCAP=haiku 6616 else 6617 # 6618 # Nothing we support. 6619 # 6620 V_PCAP=null 6621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine packet capture interface" >&5 6622$as_echo "$as_me: WARNING: cannot determine packet capture interface" >&2;} 6623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: (see the INSTALL doc for more info)" >&5 6624$as_echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;} 6625 fi 6626fi 6627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking packet capture type" >&5 6628$as_echo_n "checking packet capture type... " >&6; } 6629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $V_PCAP" >&5 6630$as_echo "$V_PCAP" >&6; } 6631 6632 6633# 6634# Do we have pkg-config? 6635# 6636# Extract the first word of "pkg-config", so it can be a program name with args. 6637set dummy pkg-config; ac_word=$2 6638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6639$as_echo_n "checking for $ac_word... " >&6; } 6640if ${ac_cv_prog_PKGCONFIG+:} false; then : 6641 $as_echo_n "(cached) " >&6 6642else 6643 if test -n "$PKGCONFIG"; then 6644 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test. 6645else 6646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6647for as_dir in $PATH 6648do 6649 IFS=$as_save_IFS 6650 test -z "$as_dir" && as_dir=. 6651 for ac_exec_ext in '' $ac_executable_extensions; do 6652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6653 ac_cv_prog_PKGCONFIG="pkg-config" 6654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6655 break 2 6656 fi 6657done 6658 done 6659IFS=$as_save_IFS 6660 6661 test -z "$ac_cv_prog_PKGCONFIG" && ac_cv_prog_PKGCONFIG="no" 6662fi 6663fi 6664PKGCONFIG=$ac_cv_prog_PKGCONFIG 6665if test -n "$PKGCONFIG"; then 6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 6667$as_echo "$PKGCONFIG" >&6; } 6668else 6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6670$as_echo "no" >&6; } 6671fi 6672 6673 6674 6675# 6676# Handle each capture type. 6677# 6678case "$V_PCAP" in 6679dlpi) 6680 # 6681 # Checks for some header files. 6682 # 6683 for ac_header in sys/bufmod.h sys/dlpi_ext.h 6684do : 6685 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6686ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6687if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6688 cat >>confdefs.h <<_ACEOF 6689#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6690_ACEOF 6691 6692fi 6693 6694done 6695 6696 6697 # 6698 # Checks to see if Solaris has the public libdlpi(3LIB) library. 6699 # Note: The existence of /usr/include/libdlpi.h does not mean it is the 6700 # public libdlpi(3LIB) version. Before libdlpi was made public, a 6701 # private version also existed, which did not have the same APIs. 6702 # Due to a gcc bug, the default search path for 32-bit libraries does 6703 # not include /lib, we add it explicitly here. 6704 # [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485]. 6705 # Also, due to the bug above applications that link to libpcap with 6706 # libdlpi will have to add "-L/lib" option to "configure". 6707 # 6708 save_LDFLAGS="$LDFLAGS" 6709 LDFLAGS="$LIBS -L/lib" 6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlpi_walk in -ldlpi" >&5 6711$as_echo_n "checking for dlpi_walk in -ldlpi... " >&6; } 6712if ${ac_cv_lib_dlpi_dlpi_walk+:} false; then : 6713 $as_echo_n "(cached) " >&6 6714else 6715 ac_check_lib_save_LIBS=$LIBS 6716LIBS="-ldlpi $LIBS" 6717cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6718/* end confdefs.h. */ 6719 6720/* Override any GCC internal prototype to avoid an error. 6721 Use char because int might match the return type of a GCC 6722 builtin and then its argument prototype would still apply. */ 6723#ifdef __cplusplus 6724extern "C" 6725#endif 6726char dlpi_walk (); 6727int 6728main () 6729{ 6730return dlpi_walk (); 6731 ; 6732 return 0; 6733} 6734_ACEOF 6735if ac_fn_c_try_link "$LINENO"; then : 6736 ac_cv_lib_dlpi_dlpi_walk=yes 6737else 6738 ac_cv_lib_dlpi_dlpi_walk=no 6739fi 6740rm -f core conftest.err conftest.$ac_objext \ 6741 conftest$ac_exeext conftest.$ac_ext 6742LIBS=$ac_check_lib_save_LIBS 6743fi 6744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dlpi_dlpi_walk" >&5 6745$as_echo "$ac_cv_lib_dlpi_dlpi_walk" >&6; } 6746if test "x$ac_cv_lib_dlpi_dlpi_walk" = xyes; then : 6747 6748 LIBS="-ldlpi $LIBS" 6749 V_PCAP=libdlpi 6750 6751 # 6752 # Capture module plus common code needed for 6753 # common functions used by pcap-[dlpi,libdlpi].c 6754 # 6755 PLATFORM_C_SRC="pcap-libdlpi.c dlpisubs.c" 6756 6757$as_echo "#define HAVE_LIBDLPI 1" >>confdefs.h 6758 6759 6760else 6761 6762 V_PCAP=dlpi 6763 6764 # 6765 # Capture module plus common code needed for 6766 # common functions used by pcap-[dlpi,libdlpi].c 6767 # 6768 PLATFORM_C_SRC="pcap-dlpi.c dlpisubs.c" 6769 6770fi 6771 6772 LDFLAGS="$save_LDFLAGS" 6773 6774 # 6775 # Checks whether <sys/dlpi.h> is usable, to catch weird SCO 6776 # versions of DLPI. 6777 # 6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/dlpi.h> is usable" >&5 6779$as_echo_n "checking whether <sys/dlpi.h> is usable... " >&6; } 6780 if ${ac_cv_sys_dlpi_usable+:} false; then : 6781 $as_echo_n "(cached) " >&6 6782else 6783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6784/* end confdefs.h. */ 6785 6786 #include <sys/types.h> 6787 #include <sys/time.h> 6788 #include <sys/dlpi.h> 6789 6790int 6791main () 6792{ 6793int i = DL_PROMISC_PHYS; 6794 ; 6795 return 0; 6796} 6797_ACEOF 6798if ac_fn_c_try_compile "$LINENO"; then : 6799 ac_cv_sys_dlpi_usable=yes 6800else 6801 ac_cv_sys_dlpi_usable=no 6802fi 6803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6804fi 6805 6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_dlpi_usable" >&5 6807$as_echo "$ac_cv_sys_dlpi_usable" >&6; } 6808 if test $ac_cv_sys_dlpi_usable = no ; then 6809 as_fn_error $? "<sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" "$LINENO" 5 6810 fi 6811 6812 # 6813 # Check to see if Solaris has the dl_passive_req_t struct defined 6814 # in <sys/dlpi.h>. 6815 # This check is for DLPI support for passive modes. 6816 # See dlpi(7P) for more details. 6817 # 6818 ac_fn_c_check_type "$LINENO" "dl_passive_req_t" "ac_cv_type_dl_passive_req_t" " 6819 #include <sys/types.h> 6820 #include <sys/dlpi.h> 6821 6822" 6823if test "x$ac_cv_type_dl_passive_req_t" = xyes; then : 6824 6825cat >>confdefs.h <<_ACEOF 6826#define HAVE_DL_PASSIVE_REQ_T 1 6827_ACEOF 6828 6829 6830fi 6831 6832 ;; 6833 6834enet) 6835 # 6836 # Capture module 6837 # 6838 PLATFORM_C_SRC="pcap-enet.c" 6839 ;; 6840 6841haiku) 6842 # 6843 # Capture module 6844 # 6845 PLATFORM_CXX_SRC="pcap-haiku.cpp" 6846 6847 # 6848 # Just for the sake of it. 6849 # 6850 for ac_header in net/if.h net/if_dl.h net/if_types.h 6851do : 6852 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6853ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6854if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6855 cat >>confdefs.h <<_ACEOF 6856#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6857_ACEOF 6858 6859fi 6860 6861done 6862 6863 ;; 6864 6865linux) 6866 # 6867 # Capture module 6868 # 6869 PLATFORM_C_SRC="pcap-linux.c" 6870 6871 # 6872 # Do we have the wireless extensions? 6873 # 6874 for ac_header in linux/wireless.h 6875do : 6876 ac_fn_c_check_header_compile "$LINENO" "linux/wireless.h" "ac_cv_header_linux_wireless_h" " 6877#include <sys/socket.h> 6878#include <linux/if.h> 6879#include <linux/types.h> 6880 6881" 6882if test "x$ac_cv_header_linux_wireless_h" = xyes; then : 6883 cat >>confdefs.h <<_ACEOF 6884#define HAVE_LINUX_WIRELESS_H 1 6885_ACEOF 6886 6887fi 6888 6889done 6890 6891 6892 # 6893 # Do we have libnl? 6894 # We only want version 3. Version 2 was, apparently, 6895 # short-lived, and version 1 is source and binary 6896 # incompatible with version 3, and it appears that, 6897 # these days, everybody's using version 3. We're 6898 # not supporting older versions of the Linux kernel; 6899 # let's drop support for older versions of libnl, too. 6900 # 6901 6902# Check whether --with-libnl was given. 6903if test "${with_libnl+set}" = set; then : 6904 withval=$with_libnl; with_libnl=$withval 6905else 6906 with_libnl=if_available 6907fi 6908 6909 6910 if test x$with_libnl != xno ; then 6911 if test "x$PKGCONFIG" != "xno"; then 6912 # 6913 # We have pkg-config; see if we have libnl-genl-3.0 6914 # as a package. 6915 # 6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnl-genl-3.0 with pkg-config" >&5 6917$as_echo_n "checking for libnl-genl-3.0 with pkg-config... " >&6; } 6918 if "$PKGCONFIG" libnl-genl-3.0; then 6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 6920$as_echo "found" >&6; } 6921 pkg_config_found_libnl=yes 6922 libnl_genl_cflags=`"$PKGCONFIG" --cflags libnl-genl-3.0` 6923 V_INCLS="$V_INCLS ${libnl_genl_cflags}" 6924 libnl_genl_libs=`"$PKGCONFIG" --libs libnl-genl-3.0` 6925 LIBS="${libnl_genl_libs} $LIBS" 6926 6927$as_echo "#define HAVE_LIBNL 1" >>confdefs.h 6928 6929 else 6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6931$as_echo "not found" >&6; } 6932 fi 6933 fi 6934 6935 if test x$pkg_config_found_libnl != xyes; then 6936 # 6937 # OK, either we don't have pkg-config or there 6938 # wasn't a .pc file for it; Check for it directly. 6939 # 6940 case "$with_libnl" in 6941 6942 yes|if_available) 6943 incdir=-I/usr/include/libnl3 6944 libnldir= 6945 ;; 6946 6947 *) 6948 if test -d $withval; then 6949 libnldir=-L${withval}/lib 6950 incdir=-I${withval}/include 6951 fi 6952 ;; 6953 esac 6954 6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_alloc in -lnl-3" >&5 6956$as_echo_n "checking for nl_socket_alloc in -lnl-3... " >&6; } 6957if ${ac_cv_lib_nl_3_nl_socket_alloc+:} false; then : 6958 $as_echo_n "(cached) " >&6 6959else 6960 ac_check_lib_save_LIBS=$LIBS 6961LIBS="-lnl-3 ${incdir} ${libnldir} -lnl-genl-3 -lnl-3 $LIBS" 6962cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6963/* end confdefs.h. */ 6964 6965/* Override any GCC internal prototype to avoid an error. 6966 Use char because int might match the return type of a GCC 6967 builtin and then its argument prototype would still apply. */ 6968#ifdef __cplusplus 6969extern "C" 6970#endif 6971char nl_socket_alloc (); 6972int 6973main () 6974{ 6975return nl_socket_alloc (); 6976 ; 6977 return 0; 6978} 6979_ACEOF 6980if ac_fn_c_try_link "$LINENO"; then : 6981 ac_cv_lib_nl_3_nl_socket_alloc=yes 6982else 6983 ac_cv_lib_nl_3_nl_socket_alloc=no 6984fi 6985rm -f core conftest.err conftest.$ac_objext \ 6986 conftest$ac_exeext conftest.$ac_ext 6987LIBS=$ac_check_lib_save_LIBS 6988fi 6989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_3_nl_socket_alloc" >&5 6990$as_echo "$ac_cv_lib_nl_3_nl_socket_alloc" >&6; } 6991if test "x$ac_cv_lib_nl_3_nl_socket_alloc" = xyes; then : 6992 6993 # 6994 # Yes, we have libnl 3.x. 6995 # 6996 LIBS="${libnldir} -lnl-genl-3 -lnl-3 $LIBS" 6997 6998$as_echo "#define HAVE_LIBNL 1" >>confdefs.h 6999 7000 V_INCLS="$V_INCLS ${incdir}" 7001 7002else 7003 7004 # 7005 # No, we don't have libnl at all. 7006 # Fail if the user explicitly requested 7007 # it. 7008 # 7009 if test x$with_libnl = xyes ; then 7010 as_fn_error $? "libnl support requested but libnl not found" "$LINENO" 5 7011 fi 7012 7013fi 7014 7015 fi 7016 fi 7017 7018 # 7019 # Check to see if the tpacket_auxdata struct has a tp_vlan_tci member. 7020 # 7021 # NOTE: any failure means we conclude that it doesn't have that 7022 # member, so if we don't have tpacket_auxdata, we conclude it 7023 # doesn't have that member (which is OK, as either we won't be 7024 # using code that would use that member, or we wouldn't compile 7025 # in any case). 7026 ac_fn_c_check_member "$LINENO" "struct tpacket_auxdata" "tp_vlan_tci" "ac_cv_member_struct_tpacket_auxdata_tp_vlan_tci" " 7027 #include <sys/types.h> 7028 #include <linux/if_packet.h> 7029 7030" 7031if test "x$ac_cv_member_struct_tpacket_auxdata_tp_vlan_tci" = xyes; then : 7032 7033cat >>confdefs.h <<_ACEOF 7034#define HAVE_STRUCT_TPACKET_AUXDATA_TP_VLAN_TCI 1 7035_ACEOF 7036 7037 7038fi 7039 7040 ;; 7041 7042bpf) 7043 # 7044 # Capture module 7045 # 7046 PLATFORM_C_SRC="pcap-bpf.c" 7047 7048 # 7049 # Check whether we have the *BSD-style ioctls. 7050 # 7051 for ac_header in net/if_media.h 7052do : 7053 ac_fn_c_check_header_mongrel "$LINENO" "net/if_media.h" "ac_cv_header_net_if_media_h" "$ac_includes_default" 7054if test "x$ac_cv_header_net_if_media_h" = xyes; then : 7055 cat >>confdefs.h <<_ACEOF 7056#define HAVE_NET_IF_MEDIA_H 1 7057_ACEOF 7058 7059fi 7060 7061done 7062 7063 7064 # 7065 # Check whether we have struct BPF_TIMEVAL. 7066 # 7067 ac_fn_c_check_type "$LINENO" "struct BPF_TIMEVAL" "ac_cv_type_struct_BPF_TIMEVAL" " 7068 #include <sys/types.h> 7069 #include <sys/ioctl.h> 7070 #ifdef HAVE_SYS_IOCCOM_H 7071 #include <sys/ioccom.h> 7072 #endif 7073 #include <net/bpf.h> 7074 7075" 7076if test "x$ac_cv_type_struct_BPF_TIMEVAL" = xyes; then : 7077 7078cat >>confdefs.h <<_ACEOF 7079#define HAVE_STRUCT_BPF_TIMEVAL 1 7080_ACEOF 7081 7082 7083fi 7084 7085 ;; 7086 7087pf) 7088 # 7089 # Capture module 7090 # 7091 PLATFORM_C_SRC="pcap-pf.c" 7092 ;; 7093 7094snit) 7095 # 7096 # Capture module 7097 # 7098 PLATFORM_C_SRC="pcap-snit.c" 7099 ;; 7100 7101snoop) 7102 # 7103 # Capture module 7104 # 7105 PLATFORM_C_SRC="pcap-snoop.c" 7106 ;; 7107 7108dag) 7109 # 7110 # --with-pcap=dag is the only way to get here, and it means 7111 # "DAG support but nothing else" 7112 # 7113 V_DEFS="$V_DEFS -DDAG_ONLY" 7114 PLATFORM_C_SRC="pcap-dag.c" 7115 xxx_only=yes 7116 ;; 7117 7118dpdk) 7119 # 7120 # --with-pcap=dpdk is the only way to get here, and it means 7121 # "DPDK support but nothing else" 7122 # 7123 V_DEFS="$V_DEFS -DDPDK_ONLY" 7124 PLATFORM_C_SRC="pcap-dpdk.c" 7125 xxx_only=yes 7126 ;; 7127 7128septel) 7129 # 7130 # --with-pcap=septel is the only way to get here, and it means 7131 # "Septel support but nothing else" 7132 # 7133 V_DEFS="$V_DEFS -DSEPTEL_ONLY" 7134 PLATFORM_C_SRC="pcap-septel.c" 7135 xxx_only=yes 7136 ;; 7137 7138snf) 7139 # 7140 # --with-pcap=snf is the only way to get here, and it means 7141 # "SNF support but nothing else" 7142 # 7143 V_DEFS="$V_DEFS -DSNF_ONLY" 7144 PLATFORM_C_SRC="pcap-snf.c" 7145 xxx_only=yes 7146 ;; 7147 7148null) 7149 # 7150 # Capture module 7151 # 7152 PLATFORM_C_SRC="pcap-null.c" 7153 ;; 7154 7155*) 7156 as_fn_error $? "$V_PCAP is not a valid pcap type" "$LINENO" 5 7157 ;; 7158esac 7159 7160if test "$V_PCAP" != null 7161then 7162 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 7163if test "x$ac_cv_func_getifaddrs" = xyes; then : 7164 7165 # 7166 # We have "getifaddrs()"; make sure we have <ifaddrs.h> 7167 # as well, just in case some platform is really weird. 7168 # 7169 ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default" 7170if test "x$ac_cv_header_ifaddrs_h" = xyes; then : 7171 7172 # 7173 # We have the header, so we use "getifaddrs()" to 7174 # get the list of interfaces. 7175 # 7176 PLATFORM_C_SRC="$PLATFORM_C_SRC fad-getad.c" 7177 7178else 7179 7180 # 7181 # We don't have the header - give up. 7182 # XXX - we could also fall back on some other 7183 # mechanism, but, for now, this'll catch this 7184 # problem so that we can at least try to figure 7185 # out something to do on systems with "getifaddrs()" 7186 # but without "ifaddrs.h", if there is something 7187 # we can do on those systems. 7188 # 7189 as_fn_error $? "Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." "$LINENO" 5 7190 7191fi 7192 7193 7194 7195else 7196 7197 # 7198 # Well, we don't have "getifaddrs()", at least not with the 7199 # libraries with which we've decided we need to link 7200 # libpcap with, so we have to use some other mechanism. 7201 # 7202 # Note that this may happen on Solaris, which has 7203 # getifaddrs(), but in -lsocket, not in -lxnet, so we 7204 # won't find it if we link with -lxnet, which we want 7205 # to do for other reasons. 7206 # 7207 # For now, we use either the SIOCGIFCONF ioctl or the 7208 # SIOCGLIFCONF ioctl, preferring the latter if we have 7209 # it; the latter is a Solarisism that first appeared 7210 # in Solaris 8. (Solaris's getifaddrs() appears to 7211 # be built atop SIOCGLIFCONF; using it directly 7212 # avoids a not-all-that-useful middleman.) 7213 # 7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have SIOCGLIFCONF" >&5 7215$as_echo_n "checking whether we have SIOCGLIFCONF... " >&6; } 7216 if ${ac_cv_lbl_have_siocglifconf+:} false; then : 7217 $as_echo_n "(cached) " >&6 7218else 7219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7220/* end confdefs.h. */ 7221#include <sys/param.h> 7222 #include <sys/file.h> 7223 #include <sys/ioctl.h> 7224 #include <sys/socket.h> 7225 #include <sys/sockio.h> 7226int 7227main () 7228{ 7229ioctl(0, SIOCGLIFCONF, (char *)0); 7230 ; 7231 return 0; 7232} 7233_ACEOF 7234if ac_fn_c_try_compile "$LINENO"; then : 7235 ac_cv_lbl_have_siocglifconf=yes 7236else 7237 ac_cv_lbl_have_siocglifconf=no 7238fi 7239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7240fi 7241 7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_have_siocglifconf" >&5 7243$as_echo "$ac_cv_lbl_have_siocglifconf" >&6; } 7244 if test $ac_cv_lbl_have_siocglifconf = yes ; then 7245 PLATFORM_C_SRC="$PLATFORM_C_SRC fad-glifc.c" 7246 else 7247 PLATFORM_C_SRC="$PLATFORM_C_SRC fad-gifc.c" 7248 fi 7249 7250fi 7251 7252fi 7253 7254case "$host_os" in 7255linux*) 7256 for ac_header in linux/net_tstamp.h 7257do : 7258 ac_fn_c_check_header_mongrel "$LINENO" "linux/net_tstamp.h" "ac_cv_header_linux_net_tstamp_h" "$ac_includes_default" 7259if test "x$ac_cv_header_linux_net_tstamp_h" = xyes; then : 7260 cat >>confdefs.h <<_ACEOF 7261#define HAVE_LINUX_NET_TSTAMP_H 1 7262_ACEOF 7263 7264fi 7265 7266done 7267 7268 ;; 7269*) 7270 { $as_echo "$as_me:${as_lineno-$LINENO}: no hardware timestamp support implemented for $host_os" >&5 7271$as_echo "$as_me: no hardware timestamp support implemented for $host_os" >&6;} 7272 ;; 7273esac 7274 7275# 7276# Check for socklen_t. 7277# 7278ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 7279 #include <sys/types.h> 7280 #include <sys/socket.h> 7281 7282" 7283if test "x$ac_cv_type_socklen_t" = xyes; then : 7284 7285cat >>confdefs.h <<_ACEOF 7286#define HAVE_SOCKLEN_T 1 7287_ACEOF 7288 7289 7290fi 7291 7292 7293# Check whether --enable-ipv6 was given. 7294if test "${enable_ipv6+set}" = set; then : 7295 enableval=$enable_ipv6; 7296else 7297 enable_ipv6=yes 7298fi 7299 7300if test "$enable_ipv6" != "no"; then 7301 # 7302 # We've already made sure we have getaddrinfo above in 7303 # AC_LBL_LIBRARY_NET. 7304 # 7305 7306$as_echo "#define INET6 1" >>confdefs.h 7307 7308fi 7309 7310# Check for Endace DAG card support. 7311 7312# Check whether --with-dag was given. 7313if test "${with_dag+set}" = set; then : 7314 withval=$with_dag; 7315 if test "$withval" = no 7316 then 7317 # User doesn't want DAG support. 7318 want_dag=no 7319 elif test "$withval" = yes 7320 then 7321 # User wants DAG support but hasn't specified a directory. 7322 want_dag=yes 7323 else 7324 # User wants DAG support and has specified a directory, so use the provided value. 7325 want_dag=yes 7326 dag_root=$withval 7327 fi 7328 7329else 7330 7331 if test "$V_PCAP" = dag; then 7332 # User requested DAG-only libpcap, so we'd better have 7333 # the DAG API. 7334 want_dag=yes 7335 elif test "xxx_only" = yes; then 7336 # User requested something-else-only pcap, so they don't 7337 # want DAG support. 7338 want_dag=no 7339 else 7340 # 7341 # Use DAG API if present, otherwise don't 7342 # 7343 want_dag=ifpresent 7344 fi 7345 7346fi 7347 7348 7349 7350# Check whether --with-dag-includes was given. 7351if test "${with_dag_includes+set}" = set; then : 7352 withval=$with_dag_includes; 7353 # User wants DAG support and has specified a header directory, so use the provided value. 7354 want_dag=yes 7355 dag_include_dir=$withval 7356 7357fi 7358 7359 7360 7361# Check whether --with-dag-libraries was given. 7362if test "${with_dag_libraries+set}" = set; then : 7363 withval=$with_dag_libraries; 7364 # User wants DAG support and has specified a library directory, so use the provided value. 7365 want_dag=yes 7366 dag_lib_dir=$withval 7367 7368fi 7369 7370 7371if test "$want_dag" != no; then 7372 7373 # If necessary, set default paths for DAG API headers and libraries. 7374 if test -z "$dag_root"; then 7375 dag_root=/usr/local 7376 fi 7377 7378 if test -z "$dag_include_dir"; then 7379 dag_include_dir="$dag_root/include" 7380 fi 7381 7382 if test -z "$dag_lib_dir"; then 7383 dag_lib_dir="$dag_root/lib" 7384 # 7385 # Handle multiarch systems. 7386 # 7387 if test -d "$dag_lib_dir/$host" 7388 then 7389 dag_lib_dir="$dag_lib_dir/$host" 7390 fi 7391 fi 7392 7393 save_CFLAGS="$CFLAGS" 7394 CFLAGS="$CFLAGS -I$dag_include_dir" 7395 for ac_header in dagapi.h 7396do : 7397 ac_fn_c_check_header_mongrel "$LINENO" "dagapi.h" "ac_cv_header_dagapi_h" "$ac_includes_default" 7398if test "x$ac_cv_header_dagapi_h" = xyes; then : 7399 cat >>confdefs.h <<_ACEOF 7400#define HAVE_DAGAPI_H 1 7401_ACEOF 7402 7403fi 7404 7405done 7406 7407 7408 if test "$ac_cv_header_dagapi_h" = yes; then 7409 7410 V_INCLS="$V_INCLS -I$dag_include_dir" 7411 7412 if test $V_PCAP != dag ; then 7413 MODULE_C_SRC="$MODULE_C_SRC pcap-dag.c" 7414 fi 7415 7416 # Check for various DAG API functions. 7417 # Don't need to save and restore LIBS to prevent -ldag being 7418 # included if there's a found-action (arg 3). 7419 save_LDFLAGS="$LDFLAGS" 7420 LDFLAGS="-L$dag_lib_dir" 7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_attach_stream in -ldag" >&5 7422$as_echo_n "checking for dag_attach_stream in -ldag... " >&6; } 7423if ${ac_cv_lib_dag_dag_attach_stream+:} false; then : 7424 $as_echo_n "(cached) " >&6 7425else 7426 ac_check_lib_save_LIBS=$LIBS 7427LIBS="-ldag $LIBS" 7428cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7429/* end confdefs.h. */ 7430 7431/* Override any GCC internal prototype to avoid an error. 7432 Use char because int might match the return type of a GCC 7433 builtin and then its argument prototype would still apply. */ 7434#ifdef __cplusplus 7435extern "C" 7436#endif 7437char dag_attach_stream (); 7438int 7439main () 7440{ 7441return dag_attach_stream (); 7442 ; 7443 return 0; 7444} 7445_ACEOF 7446if ac_fn_c_try_link "$LINENO"; then : 7447 ac_cv_lib_dag_dag_attach_stream=yes 7448else 7449 ac_cv_lib_dag_dag_attach_stream=no 7450fi 7451rm -f core conftest.err conftest.$ac_objext \ 7452 conftest$ac_exeext conftest.$ac_ext 7453LIBS=$ac_check_lib_save_LIBS 7454fi 7455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_attach_stream" >&5 7456$as_echo "$ac_cv_lib_dag_dag_attach_stream" >&6; } 7457if test "x$ac_cv_lib_dag_dag_attach_stream" = xyes; then : 7458 cat >>confdefs.h <<_ACEOF 7459#define HAVE_LIBDAG 1 7460_ACEOF 7461 7462 LIBS="-ldag $LIBS" 7463 7464else 7465 as_fn_error $? "DAG library lacks streams support" "$LINENO" 5 7466fi 7467 7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_attach_stream64 in -ldag" >&5 7469$as_echo_n "checking for dag_attach_stream64 in -ldag... " >&6; } 7470if ${ac_cv_lib_dag_dag_attach_stream64+:} false; then : 7471 $as_echo_n "(cached) " >&6 7472else 7473 ac_check_lib_save_LIBS=$LIBS 7474LIBS="-ldag $LIBS" 7475cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7476/* end confdefs.h. */ 7477 7478/* Override any GCC internal prototype to avoid an error. 7479 Use char because int might match the return type of a GCC 7480 builtin and then its argument prototype would still apply. */ 7481#ifdef __cplusplus 7482extern "C" 7483#endif 7484char dag_attach_stream64 (); 7485int 7486main () 7487{ 7488return dag_attach_stream64 (); 7489 ; 7490 return 0; 7491} 7492_ACEOF 7493if ac_fn_c_try_link "$LINENO"; then : 7494 ac_cv_lib_dag_dag_attach_stream64=yes 7495else 7496 ac_cv_lib_dag_dag_attach_stream64=no 7497fi 7498rm -f core conftest.err conftest.$ac_objext \ 7499 conftest$ac_exeext conftest.$ac_ext 7500LIBS=$ac_check_lib_save_LIBS 7501fi 7502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_attach_stream64" >&5 7503$as_echo "$ac_cv_lib_dag_dag_attach_stream64" >&6; } 7504if test "x$ac_cv_lib_dag_dag_attach_stream64" = xyes; then : 7505 dag_large_streams="1" 7506else 7507 dag_large_streams="0" 7508fi 7509 7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_erf_types in -ldag" >&5 7511$as_echo_n "checking for dag_get_erf_types in -ldag... " >&6; } 7512if ${ac_cv_lib_dag_dag_get_erf_types+:} false; then : 7513 $as_echo_n "(cached) " >&6 7514else 7515 ac_check_lib_save_LIBS=$LIBS 7516LIBS="-ldag $LIBS" 7517cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7518/* end confdefs.h. */ 7519 7520/* Override any GCC internal prototype to avoid an error. 7521 Use char because int might match the return type of a GCC 7522 builtin and then its argument prototype would still apply. */ 7523#ifdef __cplusplus 7524extern "C" 7525#endif 7526char dag_get_erf_types (); 7527int 7528main () 7529{ 7530return dag_get_erf_types (); 7531 ; 7532 return 0; 7533} 7534_ACEOF 7535if ac_fn_c_try_link "$LINENO"; then : 7536 ac_cv_lib_dag_dag_get_erf_types=yes 7537else 7538 ac_cv_lib_dag_dag_get_erf_types=no 7539fi 7540rm -f core conftest.err conftest.$ac_objext \ 7541 conftest$ac_exeext conftest.$ac_ext 7542LIBS=$ac_check_lib_save_LIBS 7543fi 7544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_erf_types" >&5 7545$as_echo "$ac_cv_lib_dag_dag_get_erf_types" >&6; } 7546if test "x$ac_cv_lib_dag_dag_get_erf_types" = xyes; then : 7547 7548 7549$as_echo "#define HAVE_DAG_GET_ERF_TYPES 1" >>confdefs.h 7550 7551fi 7552 7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_stream_erf_types in -ldag" >&5 7554$as_echo_n "checking for dag_get_stream_erf_types in -ldag... " >&6; } 7555if ${ac_cv_lib_dag_dag_get_stream_erf_types+:} false; then : 7556 $as_echo_n "(cached) " >&6 7557else 7558 ac_check_lib_save_LIBS=$LIBS 7559LIBS="-ldag $LIBS" 7560cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7561/* end confdefs.h. */ 7562 7563/* Override any GCC internal prototype to avoid an error. 7564 Use char because int might match the return type of a GCC 7565 builtin and then its argument prototype would still apply. */ 7566#ifdef __cplusplus 7567extern "C" 7568#endif 7569char dag_get_stream_erf_types (); 7570int 7571main () 7572{ 7573return dag_get_stream_erf_types (); 7574 ; 7575 return 0; 7576} 7577_ACEOF 7578if ac_fn_c_try_link "$LINENO"; then : 7579 ac_cv_lib_dag_dag_get_stream_erf_types=yes 7580else 7581 ac_cv_lib_dag_dag_get_stream_erf_types=no 7582fi 7583rm -f core conftest.err conftest.$ac_objext \ 7584 conftest$ac_exeext conftest.$ac_ext 7585LIBS=$ac_check_lib_save_LIBS 7586fi 7587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5 7588$as_echo "$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; } 7589if test "x$ac_cv_lib_dag_dag_get_stream_erf_types" = xyes; then : 7590 7591 7592$as_echo "#define HAVE_DAG_GET_STREAM_ERF_TYPES 1" >>confdefs.h 7593 7594fi 7595 7596 7597 LDFLAGS="$save_LDFLAGS" 7598 7599 # 7600 # We assume that if we have libdag we have libdagconf, 7601 # as they're installed at the same time from the same 7602 # package. 7603 # 7604 LIBS="$LIBS -ldag -ldagconf" 7605 LDFLAGS="$LDFLAGS -L$dag_lib_dir" 7606 7607 if test "$dag_large_streams" = 1; then 7608 7609$as_echo "#define HAVE_DAG_LARGE_STREAMS_API 1" >>confdefs.h 7610 7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vdag_set_device_info in -lvdag" >&5 7612$as_echo_n "checking for vdag_set_device_info in -lvdag... " >&6; } 7613if ${ac_cv_lib_vdag_vdag_set_device_info+:} false; then : 7614 $as_echo_n "(cached) " >&6 7615else 7616 ac_check_lib_save_LIBS=$LIBS 7617LIBS="-lvdag $LIBS" 7618cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7619/* end confdefs.h. */ 7620 7621/* Override any GCC internal prototype to avoid an error. 7622 Use char because int might match the return type of a GCC 7623 builtin and then its argument prototype would still apply. */ 7624#ifdef __cplusplus 7625extern "C" 7626#endif 7627char vdag_set_device_info (); 7628int 7629main () 7630{ 7631return vdag_set_device_info (); 7632 ; 7633 return 0; 7634} 7635_ACEOF 7636if ac_fn_c_try_link "$LINENO"; then : 7637 ac_cv_lib_vdag_vdag_set_device_info=yes 7638else 7639 ac_cv_lib_vdag_vdag_set_device_info=no 7640fi 7641rm -f core conftest.err conftest.$ac_objext \ 7642 conftest$ac_exeext conftest.$ac_ext 7643LIBS=$ac_check_lib_save_LIBS 7644fi 7645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vdag_vdag_set_device_info" >&5 7646$as_echo "$ac_cv_lib_vdag_vdag_set_device_info" >&6; } 7647if test "x$ac_cv_lib_vdag_vdag_set_device_info" = xyes; then : 7648 ac_dag_have_vdag="1" 7649else 7650 ac_dag_have_vdag="0" 7651fi 7652 7653 if test "$ac_dag_have_vdag" = 1; then 7654 7655$as_echo "#define HAVE_DAG_VDAG 1" >>confdefs.h 7656 7657 if test "$ac_lbl_have_pthreads" != "found"; then 7658 as_fn_error $? "DAG requires pthreads, but we didn't find them" "$LINENO" 5 7659 fi 7660 LIBS="$LIBS $PTHREAD_LIBS" 7661 fi 7662 fi 7663 7664 7665$as_echo "#define HAVE_DAG_API 1" >>confdefs.h 7666 7667 else 7668 7669 if test "$V_PCAP" = dag; then 7670 # User requested "dag" capture type but we couldn't 7671 # find the DAG API support. 7672 as_fn_error $? "DAG support requested with --with-pcap=dag, but the DAG headers weren't found at $dag_include_dir: make sure the DAG support is installed, specify a different path or paths if necessary, or don't request DAG support" "$LINENO" 5 7673 fi 7674 7675 if test "$want_dag" = yes; then 7676 # User wanted DAG support but we couldn't find it. 7677 as_fn_error $? "DAG support requested with --with-dag, but the DAG headers weren't found at $dag_include_dir: make sure the DAG support is installed, specify a different path or paths if necessary, or don't request DAG support" "$LINENO" 5 7678 fi 7679 fi 7680 CFLAGS="$save_CFLAGS" 7681fi 7682 7683 7684# Check whether --with-septel was given. 7685if test "${with_septel+set}" = set; then : 7686 withval=$with_septel; 7687 if test "$withval" = no 7688 then 7689 want_septel=no 7690 elif test "$withval" = yes 7691 then 7692 want_septel=yes 7693 septel_root= 7694 else 7695 want_septel=yes 7696 septel_root=$withval 7697 fi 7698 7699else 7700 7701 if test "$V_PCAP" = septel; then 7702 # User requested Septel-only libpcap, so we'd better have 7703 # the Septel API. 7704 want_septel=yes 7705 elif test "xxx_only" = yes; then 7706 # User requested something-else-only pcap, so they don't 7707 # want Septel support. 7708 want_septel=no 7709 else 7710 # 7711 # Use Septel API if present, otherwise don't 7712 # 7713 want_septel=ifpresent 7714 fi 7715 7716fi 7717 7718 7719ac_cv_lbl_septel_api=no 7720if test "$with_septel" != no; then 7721 7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Septel API headers" >&5 7723$as_echo_n "checking whether we have Septel API headers... " >&6; } 7724 7725 # If necessary, set default paths for Septel API headers and libraries. 7726 if test -z "$septel_root"; then 7727 septel_root=$srcdir/../septel 7728 fi 7729 7730 septel_tools_dir="$septel_root" 7731 septel_include_dir="$septel_root/INC" 7732 7733 if test -r "$septel_include_dir/msg.h"; then 7734 ac_cv_lbl_septel_api=yes 7735 fi 7736 7737 if test "$ac_cv_lbl_septel_api" = yes; then 7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($septel_include_dir)" >&5 7739$as_echo "yes ($septel_include_dir)" >&6; } 7740 7741 V_INCLS="$V_INCLS -I$septel_include_dir" 7742 ADDLOBJS="$ADDLOBJS $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" 7743 ADDLARCHIVEOBJS="$ADDLARCHIVEOBJS $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" 7744 7745 if test "$V_PCAP" != septel ; then 7746 MODULE_C_SRC="$MODULE_C_SRC pcap-septel.c" 7747 fi 7748 7749 7750$as_echo "#define HAVE_SEPTEL_API 1" >>confdefs.h 7751 7752 else 7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7754$as_echo "no" >&6; } 7755 7756 if test "$V_PCAP" = septel; then 7757 # User requested "septel" capture type but 7758 # we couldn't find the Septel API support. 7759 as_fn_error $? "Septel support requested with --with-pcap=septel, but the Septel headers weren't found at $septel_include_dir: make sure the Septel support is installed, specify a different path or paths if necessary, or don't request Septel support" "$LINENO" 5 7760 fi 7761 7762 if test "$want_septel" = yes; then 7763 # User wanted Septel support but we couldn't find it. 7764 as_fn_error $? "Septel support requested with --with-septel, but the Septel headers weren't found at $septel_include_dir: make sure the Septel support is installed, specify a different path or paths if necessary, or don't request Septel support" "$LINENO" 5 7765 fi 7766 fi 7767fi 7768 7769# Check for Myricom SNF support. 7770 7771# Check whether --with-snf was given. 7772if test "${with_snf+set}" = set; then : 7773 withval=$with_snf; 7774 if test "$withval" = no 7775 then 7776 # User explicitly doesn't want SNF 7777 want_snf=no 7778 elif test "$withval" = yes 7779 then 7780 # User wants SNF support but hasn't specified a directory. 7781 want_snf=yes 7782 else 7783 # User wants SNF support with a specified directory. 7784 want_snf=yes 7785 snf_root=$withval 7786 fi 7787 7788else 7789 7790 if test "$V_PCAP" = snf; then 7791 # User requested Sniffer-only libpcap, so we'd better have 7792 # the Sniffer API. 7793 want_snf=yes 7794 elif test "xxx_only" = yes; then 7795 # User requested something-else-only pcap, so they don't 7796 # want SNF support. 7797 want_snf=no 7798 else 7799 # 7800 # Use Sniffer API if present, otherwise don't 7801 # 7802 want_snf=ifpresent 7803 fi 7804 7805fi 7806 7807 7808 7809# Check whether --with-snf-includes was given. 7810if test "${with_snf_includes+set}" = set; then : 7811 withval=$with_snf_includes; 7812 # User wants SNF with specific header directory 7813 want_snf=yes 7814 snf_include_dir=$withval 7815 7816fi 7817 7818 7819 7820# Check whether --with-snf-libraries was given. 7821if test "${with_snf_libraries+set}" = set; then : 7822 withval=$with_snf_libraries; 7823 # User wants SNF with specific lib directory 7824 want_snf=yes 7825 snf_lib_dir=$withval 7826 7827fi 7828 7829 7830ac_cv_lbl_snf_api=no 7831if test "$with_snf" != no; then 7832 7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Myricom Sniffer API" >&5 7834$as_echo_n "checking whether we have Myricom Sniffer API... " >&6; } 7835 7836 # If necessary, set default paths for Sniffer headers and libraries. 7837 if test -z "$snf_root"; then 7838 snf_root=/opt/snf 7839 fi 7840 7841 if test -z "$snf_include_dir"; then 7842 snf_include_dir="$snf_root/include" 7843 fi 7844 7845 if test -z "$snf_lib_dir"; then 7846 snf_lib_dir="$snf_root/lib" 7847 # 7848 # Handle multiarch systems. 7849 # 7850 if test -d "$snf_lib_dir/$host" 7851 then 7852 snf_lib_dir="$snf_lib_dir/$host" 7853 fi 7854 fi 7855 7856 if test -f "$snf_include_dir/snf.h"; then 7857 # We found a header; make sure we can link with the library 7858 save_LDFLAGS="$LDFLAGS" 7859 LDFLAGS="$LDFLAGS -L$snf_lib_dir" 7860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snf_init in -lsnf" >&5 7861$as_echo_n "checking for snf_init in -lsnf... " >&6; } 7862if ${ac_cv_lib_snf_snf_init+:} false; then : 7863 $as_echo_n "(cached) " >&6 7864else 7865 ac_check_lib_save_LIBS=$LIBS 7866LIBS="-lsnf $LIBS" 7867cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7868/* end confdefs.h. */ 7869 7870/* Override any GCC internal prototype to avoid an error. 7871 Use char because int might match the return type of a GCC 7872 builtin and then its argument prototype would still apply. */ 7873#ifdef __cplusplus 7874extern "C" 7875#endif 7876char snf_init (); 7877int 7878main () 7879{ 7880return snf_init (); 7881 ; 7882 return 0; 7883} 7884_ACEOF 7885if ac_fn_c_try_link "$LINENO"; then : 7886 ac_cv_lib_snf_snf_init=yes 7887else 7888 ac_cv_lib_snf_snf_init=no 7889fi 7890rm -f core conftest.err conftest.$ac_objext \ 7891 conftest$ac_exeext conftest.$ac_ext 7892LIBS=$ac_check_lib_save_LIBS 7893fi 7894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_snf_snf_init" >&5 7895$as_echo "$ac_cv_lib_snf_snf_init" >&6; } 7896if test "x$ac_cv_lib_snf_snf_init" = xyes; then : 7897 ac_cv_lbl_snf_api="yes" 7898fi 7899 7900 LDFLAGS="$save_LDFLAGS" 7901 if test "$ac_cv_lbl_snf_api" = no; then 7902 as_fn_error $? "SNF API cannot correctly be linked; check config.log" "$LINENO" 5 7903 fi 7904 fi 7905 7906 if test "$ac_cv_lbl_snf_api" = yes; then 7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($snf_root)" >&5 7908$as_echo "yes ($snf_root)" >&6; } 7909 7910 V_INCLS="$V_INCLS -I$snf_include_dir" 7911 LIBS="$LIBS -lsnf" 7912 LDFLAGS="$LDFLAGS -L$snf_lib_dir" 7913 7914 if test "$V_PCAP" != snf ; then 7915 MODULE_C_SRC="$MODULE_C_SRC pcap-snf.c" 7916 fi 7917 7918 7919$as_echo "#define HAVE_SNF_API 1" >>confdefs.h 7920 7921 else 7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7923$as_echo "no" >&6; } 7924 7925 if test "$want_snf" = yes; then 7926 # User requested "snf" capture type but 7927 # we couldn't find the Sniffer API support. 7928 as_fn_error $? "Myricom Sniffer support requested with --with-pcap=snf, but the Sniffer headers weren't found at $snf_include_dir: make sure the Sniffer support is installed, specify a different path or paths if necessary, or don't request Sniffer support" "$LINENO" 5 7929 fi 7930 7931 if test "$want_snf" = yes; then 7932 as_fn_error $? "Myricom Sniffer support requested with --with-snf, but the Sniffer headers weren't found at $snf_include_dir: make sure the Sniffer support is installed, specify a different path or paths if necessary, or don't request Sniffer support" "$LINENO" 5 7933 fi 7934 fi 7935fi 7936 7937# Check for Riverbed TurboCap support. 7938 7939# Check whether --with-turbocap was given. 7940if test "${with_turbocap+set}" = set; then : 7941 withval=$with_turbocap; 7942 if test "$withval" = no 7943 then 7944 # User explicitly doesn't want TurboCap 7945 want_turbocap=no 7946 elif test "$withval" = yes 7947 then 7948 # User wants TurboCap support but hasn't specified a directory. 7949 want_turbocap=yes 7950 else 7951 # User wants TurboCap support with a specified directory. 7952 want_turbocap=yes 7953 turbocap_root=$withval 7954 fi 7955 7956else 7957 7958 if test "xxx_only" = yes; then 7959 # User requested something-else-only pcap, so they don't 7960 # want TurboCap support. 7961 want_turbocap=no 7962 else 7963 # 7964 # Use TurboCap API if present, otherwise don't 7965 # 7966 want_turbocap=ifpresent 7967 fi 7968 7969fi 7970 7971 7972ac_cv_lbl_turbocap_api=no 7973if test "$want_turbocap" != no; then 7974 7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TurboCap is supported" >&5 7976$as_echo_n "checking whether TurboCap is supported... " >&6; } 7977 7978 save_CFLAGS="$CFLAGS" 7979 save_LIBS="$LIBS" 7980 if test ! -z "$turbocap_root"; then 7981 TURBOCAP_CFLAGS="-I$turbocap_root/include" 7982 TURBOCAP_LIBS="-L$turbocap_root/lib" 7983 CFLAGS="$CFLAGS $TURBOCAP_CFLAGS" 7984 fi 7985 7986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7987/* end confdefs.h. */ 7988 7989 #include <TcApi.h> 7990 7991int 7992main () 7993{ 7994 7995 TC_INSTANCE a; TC_PORT b; TC_BOARD c; 7996 TC_INSTANCE i; 7997 (void)TcInstanceCreateByName("foo", &i); 7998 7999 ; 8000 return 0; 8001} 8002_ACEOF 8003if ac_fn_c_try_compile "$LINENO"; then : 8004 ac_cv_lbl_turbocap_api=yes 8005fi 8006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8007 8008 CFLAGS="$save_CFLAGS" 8009 if test $ac_cv_lbl_turbocap_api = yes; then 8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8011$as_echo "yes" >&6; } 8012 8013 MODULE_C_SRC="$MODULE_C_SRC pcap-tc.c" 8014 V_INCLS="$V_INCLS $TURBOCAP_CFLAGS" 8015 LIBS="$LIBS $TURBOCAP_LIBS -lTcApi -lpthread -lstdc++" 8016 8017 8018$as_echo "#define HAVE_TC_API 1" >>confdefs.h 8019 8020 else 8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8022$as_echo "no" >&6; } 8023 8024 if test "$want_turbocap" = yes; then 8025 # User wanted Turbo support but we couldn't find it. 8026 as_fn_error $? "TurboCap support requested with --with-turbocap, but the TurboCap headers weren't found: make sure the TurboCap support is installed or don't request TurboCap support" "$LINENO" 5 8027 fi 8028 fi 8029fi 8030 8031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable remote packet capture" >&5 8032$as_echo_n "checking whether to enable remote packet capture... " >&6; } 8033# Check whether --enable-remote was given. 8034if test "${enable_remote+set}" = set; then : 8035 enableval=$enable_remote; 8036else 8037 enableval=no 8038fi 8039 8040case "$enableval" in 8041yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8042$as_echo "yes" >&6; } 8043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Remote packet capture may expose libpcap-based applications" >&5 8044$as_echo "$as_me: WARNING: Remote packet capture may expose libpcap-based applications" >&2;} 8045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to attacks by malicious remote capture servers!" >&5 8046$as_echo "$as_me: WARNING: to attacks by malicious remote capture servers!" >&2;} 8047 # 8048 # rpcapd requires pthreads on UN*X. 8049 # 8050 if test "$ac_lbl_have_pthreads" != "found"; then 8051 as_fn_error $? "rpcapd requires pthreads, but we didn't find them" "$LINENO" 5 8052 fi 8053 # 8054 # It also requires crypt(). 8055 # Do we have it in the system libraries? 8056 # 8057 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt" 8058if test "x$ac_cv_func_crypt" = xyes; then : 8059 8060else 8061 8062 # 8063 # No. Do we have it in -lcrypt? 8064 # 8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 8066$as_echo_n "checking for crypt in -lcrypt... " >&6; } 8067if ${ac_cv_lib_crypt_crypt+:} false; then : 8068 $as_echo_n "(cached) " >&6 8069else 8070 ac_check_lib_save_LIBS=$LIBS 8071LIBS="-lcrypt $LIBS" 8072cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8073/* end confdefs.h. */ 8074 8075/* Override any GCC internal prototype to avoid an error. 8076 Use char because int might match the return type of a GCC 8077 builtin and then its argument prototype would still apply. */ 8078#ifdef __cplusplus 8079extern "C" 8080#endif 8081char crypt (); 8082int 8083main () 8084{ 8085return crypt (); 8086 ; 8087 return 0; 8088} 8089_ACEOF 8090if ac_fn_c_try_link "$LINENO"; then : 8091 ac_cv_lib_crypt_crypt=yes 8092else 8093 ac_cv_lib_crypt_crypt=no 8094fi 8095rm -f core conftest.err conftest.$ac_objext \ 8096 conftest$ac_exeext conftest.$ac_ext 8097LIBS=$ac_check_lib_save_LIBS 8098fi 8099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 8100$as_echo "$ac_cv_lib_crypt_crypt" >&6; } 8101if test "x$ac_cv_lib_crypt_crypt" = xyes; then : 8102 8103 # 8104 # Yes; add -lcrypt to the libraries for rpcapd. 8105 # 8106 RPCAPD_LIBS="$RPCAPD_LIBS -lcrypt" 8107 8108else 8109 8110 as_fn_error $? "rpcapd requires crypt(), but we didn't find it" "$LINENO" 5 8111 8112fi 8113 8114 8115fi 8116 8117 8118 # 8119 # OK, we have crypt(). Do we have getspnam()? 8120 # 8121 for ac_func in getspnam 8122do : 8123 ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam" 8124if test "x$ac_cv_func_getspnam" = xyes; then : 8125 cat >>confdefs.h <<_ACEOF 8126#define HAVE_GETSPNAM 1 8127_ACEOF 8128 8129fi 8130done 8131 8132 8133 # 8134 # Check for various members of struct msghdr. 8135 # 8136 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 8137 #include \"ftmacros.h\" 8138 #include <sys/socket.h> 8139 8140" 8141if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 8142 8143cat >>confdefs.h <<_ACEOF 8144#define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1 8145_ACEOF 8146 8147 8148fi 8149 8150 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_flags" "ac_cv_member_struct_msghdr_msg_flags" " 8151 #include \"ftmacros.h\" 8152 #include <sys/socket.h> 8153 8154" 8155if test "x$ac_cv_member_struct_msghdr_msg_flags" = xyes; then : 8156 8157cat >>confdefs.h <<_ACEOF 8158#define HAVE_STRUCT_MSGHDR_MSG_FLAGS 1 8159_ACEOF 8160 8161 8162fi 8163 8164 8165 # 8166 # Optionally, we may want to support SSL. 8167 # Check for OpenSSL/libressl. 8168 # 8169 # First, try looking for it as a regular system library. 8170 # Make sure we can find SSL_library_init() using the 8171 # standard headers, just in case we're running a version 8172 # of macOS that ships with the OpenSSL library but not 8173 # the OpenSSL headers, and have also installed another 8174 # version of OpenSSL with headers. 8175 # 8176 save_LIBS="$LIBS" 8177 LIBS="-lssl -lcrypto" 8178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a system OpenSSL/libressl that we can use" >&5 8179$as_echo_n "checking whether we have a system OpenSSL/libressl that we can use... " >&6; } 8180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8181/* end confdefs.h. */ 8182 8183#include <openssl/ssl.h> 8184 8185int 8186main () 8187{ 8188 8189SSL_library_init(); 8190return 0; 8191 8192 ; 8193 return 0; 8194} 8195_ACEOF 8196if ac_fn_c_try_link "$LINENO"; then : 8197 8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8199$as_echo "yes" >&6; } 8200 HAVE_OPENSSL=yes 8201 OPENSSL_LIBS="-lssl -lcrypto" 8202 8203else 8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8205$as_echo "no" >&6; } 8206fi 8207rm -f core conftest.err conftest.$ac_objext \ 8208 conftest$ac_exeext conftest.$ac_ext 8209 LIBS="$save_LIBS" 8210 8211 # 8212 # If we didn't find it, check for it with pkg-config. 8213 # 8214 if test "x$HAVE_OPENSSL" != "xyes"; then 8215 if test "x$PKGCONFIG" != "xno"; then 8216 # 8217 # We have pkg-config; see if we have OpenSSL/ 8218 # libressl installed as a package. 8219 # 8220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL/libressl with pkg-config" >&5 8221$as_echo_n "checking for OpenSSL/libressl with pkg-config... " >&6; } 8222 if "$PKGCONFIG" openssl; then 8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 8224$as_echo "found" >&6; } 8225 HAVE_OPENSSL=yes 8226 OPENSSL_CFLAGS=`"$PKGCONFIG" --cflags openssl` 8227 OPENSSL_LIBS=`"$PKGCONFIG" --libs openssl` 8228 else 8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8230$as_echo "not found" >&6; } 8231 fi 8232 fi 8233 fi 8234 8235 # 8236 # If we didn't find it, check for it under /usr/local/opt/openssl; 8237 # that's where Homebrew puts it on macOS. Feel free to add other 8238 # -L directories as necessary; the "system library" check should 8239 # also handle "add-on library under /usr/local", so that shouldn't 8240 # be necessary here. 8241 # 8242 if test "x$HAVE_OPENSSL" != "xyes"; then 8243 save_CFLAGS="$CFLAGS" 8244 save_LIBS="$LIBS" 8245 CFLAGS="$CFLAGS -L/usr/local/opt/openssl/include" 8246 LIBS="$LIBS -L/usr/local/opt/openssl/lib -lssl -lcrypto" 8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have OpenSSL/libressl in /usr/local/opt that we can use" >&5 8248$as_echo_n "checking whether we have OpenSSL/libressl in /usr/local/opt that we can use... " >&6; } 8249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8250/* end confdefs.h. */ 8251 8252#include <openssl/ssl.h> 8253 8254int 8255main () 8256{ 8257 8258SSL_library_init(); 8259return 0; 8260 8261 ; 8262 return 0; 8263} 8264_ACEOF 8265if ac_fn_c_try_link "$LINENO"; then : 8266 8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8268$as_echo "yes" >&6; } 8269 HAVE_OPENSSL=yes 8270 OPENSSL_CFLAGS="-I/usr/local/opt/openssl/include" 8271 OPENSSL_LIBS="-L/usr/local/opt/openssl/lib -lssl -lcrypto" 8272 8273else 8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8275$as_echo "no" >&6; } 8276fi 8277rm -f core conftest.err conftest.$ac_objext \ 8278 conftest$ac_exeext conftest.$ac_ext 8279 CFLAGS="$save_CFLAGS" 8280 LIBS="$save_LIBS" 8281 fi 8282 8283 # 8284 # OK, did we find it? 8285 # 8286 if test "x$HAVE_OPENSSL" = "xyes"; then 8287 8288$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h 8289 8290 CFLAGS="$CFLAGS $OPENSSL_CFLAGS" 8291 LIBS="$LIBS $OPENSSL_LIBS" 8292 else 8293 { $as_echo "$as_me:${as_lineno-$LINENO}: OpenSSL not found" >&5 8294$as_echo "$as_me: OpenSSL not found" >&6;} 8295 fi 8296 8297 8298$as_echo "#define ENABLE_REMOTE /**/" >>confdefs.h 8299 8300 REMOTE_C_SRC="$REMOTE_C_SRC pcap-new.c pcap-rpcap.c rpcap-protocol.c sockutils.c sslutils.c" 8301 BUILD_RPCAPD=build-rpcapd 8302 INSTALL_RPCAPD=install-rpcapd 8303 ;; 8304*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8305$as_echo "no" >&6; } 8306 ;; 8307esac 8308 8309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build optimizer debugging code" >&5 8310$as_echo_n "checking whether to build optimizer debugging code... " >&6; } 8311# Check whether --enable-optimizer-dbg was given. 8312if test "${enable_optimizer_dbg+set}" = set; then : 8313 enableval=$enable_optimizer_dbg; 8314fi 8315 8316if test "$enable_optimizer_dbg" = "yes"; then 8317 8318$as_echo "#define BDEBUG 1" >>confdefs.h 8319 8320fi 8321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_optimizer_dbg-no}" >&5 8322$as_echo "${enable_optimizer_dbg-no}" >&6; } 8323 8324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build parser debugging code" >&5 8325$as_echo_n "checking whether to build parser debugging code... " >&6; } 8326# Check whether --enable-yydebug was given. 8327if test "${enable_yydebug+set}" = set; then : 8328 enableval=$enable_yydebug; 8329fi 8330 8331if test "$enable_yydebug" = "yes"; then 8332 8333$as_echo "#define YYDEBUG 1" >>confdefs.h 8334 8335fi 8336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_yydebug-no}" >&5 8337$as_echo "${enable_yydebug-no}" >&6; } 8338 8339# 8340# Look for {f}lex. 8341# 8342for ac_prog in flex lex 8343do 8344 # Extract the first word of "$ac_prog", so it can be a program name with args. 8345set dummy $ac_prog; ac_word=$2 8346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8347$as_echo_n "checking for $ac_word... " >&6; } 8348if ${ac_cv_prog_LEX+:} false; then : 8349 $as_echo_n "(cached) " >&6 8350else 8351 if test -n "$LEX"; then 8352 ac_cv_prog_LEX="$LEX" # Let the user override the test. 8353else 8354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8355for as_dir in $PATH 8356do 8357 IFS=$as_save_IFS 8358 test -z "$as_dir" && as_dir=. 8359 for ac_exec_ext in '' $ac_executable_extensions; do 8360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8361 ac_cv_prog_LEX="$ac_prog" 8362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8363 break 2 8364 fi 8365done 8366 done 8367IFS=$as_save_IFS 8368 8369fi 8370fi 8371LEX=$ac_cv_prog_LEX 8372if test -n "$LEX"; then 8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 8374$as_echo "$LEX" >&6; } 8375else 8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8377$as_echo "no" >&6; } 8378fi 8379 8380 8381 test -n "$LEX" && break 8382done 8383test -n "$LEX" || LEX=":" 8384 8385if test "x$LEX" != "x:"; then 8386 cat >conftest.l <<_ACEOF 8387%% 8388a { ECHO; } 8389b { REJECT; } 8390c { yymore (); } 8391d { yyless (1); } 8392e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 8393 yyless ((input () != 0)); } 8394f { unput (yytext[0]); } 8395. { BEGIN INITIAL; } 8396%% 8397#ifdef YYTEXT_POINTER 8398extern char *yytext; 8399#endif 8400int 8401main (void) 8402{ 8403 return ! yylex () + ! yywrap (); 8404} 8405_ACEOF 8406{ { ac_try="$LEX conftest.l" 8407case "(($ac_try" in 8408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8409 *) ac_try_echo=$ac_try;; 8410esac 8411eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 8412$as_echo "$ac_try_echo"; } >&5 8413 (eval "$LEX conftest.l") 2>&5 8414 ac_status=$? 8415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8416 test $ac_status = 0; } 8417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 8418$as_echo_n "checking lex output file root... " >&6; } 8419if ${ac_cv_prog_lex_root+:} false; then : 8420 $as_echo_n "(cached) " >&6 8421else 8422 8423if test -f lex.yy.c; then 8424 ac_cv_prog_lex_root=lex.yy 8425elif test -f lexyy.c; then 8426 ac_cv_prog_lex_root=lexyy 8427else 8428 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 8429fi 8430fi 8431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 8432$as_echo "$ac_cv_prog_lex_root" >&6; } 8433LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 8434 8435if test -z "${LEXLIB+set}"; then 8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 8437$as_echo_n "checking lex library... " >&6; } 8438if ${ac_cv_lib_lex+:} false; then : 8439 $as_echo_n "(cached) " >&6 8440else 8441 8442 ac_save_LIBS=$LIBS 8443 ac_cv_lib_lex='none needed' 8444 for ac_lib in '' -lfl -ll; do 8445 LIBS="$ac_lib $ac_save_LIBS" 8446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8447/* end confdefs.h. */ 8448`cat $LEX_OUTPUT_ROOT.c` 8449_ACEOF 8450if ac_fn_c_try_link "$LINENO"; then : 8451 ac_cv_lib_lex=$ac_lib 8452fi 8453rm -f core conftest.err conftest.$ac_objext \ 8454 conftest$ac_exeext conftest.$ac_ext 8455 test "$ac_cv_lib_lex" != 'none needed' && break 8456 done 8457 LIBS=$ac_save_LIBS 8458 8459fi 8460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 8461$as_echo "$ac_cv_lib_lex" >&6; } 8462 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 8463fi 8464 8465 8466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 8467$as_echo_n "checking whether yytext is a pointer... " >&6; } 8468if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 8469 $as_echo_n "(cached) " >&6 8470else 8471 # POSIX says lex can declare yytext either as a pointer or an array; the 8472# default is implementation-dependent. Figure out which it is, since 8473# not all implementations provide the %pointer and %array declarations. 8474ac_cv_prog_lex_yytext_pointer=no 8475ac_save_LIBS=$LIBS 8476LIBS="$LEXLIB $ac_save_LIBS" 8477cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8478/* end confdefs.h. */ 8479 8480 #define YYTEXT_POINTER 1 8481`cat $LEX_OUTPUT_ROOT.c` 8482_ACEOF 8483if ac_fn_c_try_link "$LINENO"; then : 8484 ac_cv_prog_lex_yytext_pointer=yes 8485fi 8486rm -f core conftest.err conftest.$ac_objext \ 8487 conftest$ac_exeext conftest.$ac_ext 8488LIBS=$ac_save_LIBS 8489 8490fi 8491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 8492$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 8493if test $ac_cv_prog_lex_yytext_pointer = yes; then 8494 8495$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 8496 8497fi 8498rm -f conftest.l $LEX_OUTPUT_ROOT.c 8499 8500fi 8501if test "$LEX" = ":"; then 8502 as_fn_error $? "Neither flex nor lex was found." "$LINENO" 5 8503fi 8504 8505# 8506# Make sure {f}lex supports the -P, --header-file, and --nounput flags 8507# and supports processing our scanner.l. 8508# 8509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for capable lex" >&5 8510$as_echo_n "checking for capable lex... " >&6; } 8511if ${tcpdump_cv_capable_lex+:} false; then : 8512 $as_echo_n "(cached) " >&6 8513else 8514 if $LEX -P pcap_ --header-file=/dev/null --nounput -t $srcdir/scanner.l > /dev/null 2>&1; then 8515 tcpdump_cv_capable_lex=yes 8516 else 8517 tcpdump_cv_capable_lex=insufficient 8518 fi 8519fi 8520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_cv_capable_lex" >&5 8521$as_echo "$tcpdump_cv_capable_lex" >&6; } 8522if test $tcpdump_cv_capable_lex = insufficient ; then 8523 as_fn_error $? "$LEX is insufficient to compile libpcap. 8524 libpcap requires Flex 2.5.31 or later, or a compatible version of lex." "$LINENO" 5 8525fi 8526 8527# 8528# Look for yacc/bison/byacc. 8529# 8530for ac_prog in 'bison -y' byacc 8531do 8532 # Extract the first word of "$ac_prog", so it can be a program name with args. 8533set dummy $ac_prog; ac_word=$2 8534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8535$as_echo_n "checking for $ac_word... " >&6; } 8536if ${ac_cv_prog_YACC+:} false; then : 8537 $as_echo_n "(cached) " >&6 8538else 8539 if test -n "$YACC"; then 8540 ac_cv_prog_YACC="$YACC" # Let the user override the test. 8541else 8542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8543for as_dir in $PATH 8544do 8545 IFS=$as_save_IFS 8546 test -z "$as_dir" && as_dir=. 8547 for ac_exec_ext in '' $ac_executable_extensions; do 8548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8549 ac_cv_prog_YACC="$ac_prog" 8550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8551 break 2 8552 fi 8553done 8554 done 8555IFS=$as_save_IFS 8556 8557fi 8558fi 8559YACC=$ac_cv_prog_YACC 8560if test -n "$YACC"; then 8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 8562$as_echo "$YACC" >&6; } 8563else 8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8565$as_echo "no" >&6; } 8566fi 8567 8568 8569 test -n "$YACC" && break 8570done 8571test -n "$YACC" || YACC="yacc" 8572 8573 8574case "$YACC" in 8575 8576*yacc) 8577 # 8578 # Make sure this is Berkeley YACC, not AT&T YACC; the latter 8579 # doesn't support reentrant parsers. Run it with "-V"; 8580 # that succeeds and reports the version number with 8581 # Berkeley YACC, but will (probably) fail with various 8582 # vendor flavors of AT&T YACC. 8583 # 8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capable yacc" >&5 8585$as_echo_n "checking for capable yacc... " >&6; } 8586if ${tcpdump_cv_capable_yacc+:} false; then : 8587 $as_echo_n "(cached) " >&6 8588else 8589 if $YACC -V >/dev/null 2>&1; then 8590 tcpdump_cv_capable_yacc=yes 8591 else 8592 tcpdump_cv_capable_yacc=insufficient 8593 fi 8594fi 8595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_cv_capable_yacc" >&5 8596$as_echo "$tcpdump_cv_capable_yacc" >&6; } 8597 if test $tcpdump_cv_capable_yacc = insufficient ; then 8598 as_fn_error $? "$YACC is insufficient to compile libpcap. 8599 libpcap requires Bison, a newer version of Berkeley YACC with support 8600 for reentrant parsers, or another YACC compatible with them." "$LINENO" 5 8601 fi 8602 8603 # 8604 # Berkeley YACC doesn't support "%define api.pure", so use 8605 # "%pure-parser". 8606 # 8607 REENTRANT_PARSER="%pure-parser" 8608 ;; 8609 8610*) 8611 # 8612 # Bison prior to 2.4(.1) doesn't support "%define api.pure", so use 8613 # "%pure-parser". 8614 # 8615 bison_major_version=`$YACC -V | sed -n 's/.* \([1-9][0-9]*\)\.[1-9][0-9.]*/\1/p'` 8616 bison_minor_version=`$YACC -V | sed -n 's/.* [1-9][0-9]*\.\([1-9][0-9]*\).*/\1/p'` 8617 if test "$bison_major_version" -lt 2 -o \ 8618 \( "$bison_major_version" -eq 2 -a "$bison_major_version" -lt 4 \) 8619 then 8620 REENTRANT_PARSER="%pure-parser" 8621 else 8622 REENTRANT_PARSER="%define api.pure" 8623 fi 8624 ;; 8625esac 8626 8627 8628# 8629# Do various checks for various OSes and versions of those OSes. 8630# 8631# Assume, by default, no support for shared libraries and V7/BSD 8632# convention for man pages (devices in section 4, file formats in 8633# section 5, miscellaneous info in section 7, administrative commands 8634# and daemons in section 8). Individual cases can override this. 8635# 8636DYEXT="none" 8637MAN_DEVICES=4 8638MAN_FILE_FORMATS=5 8639MAN_MISC_INFO=7 8640MAN_ADMIN_COMMANDS=8 8641case "$host_os" in 8642 8643aix*) 8644 8645$as_echo "#define _SUN 1" >>confdefs.h 8646 8647 8648 # 8649 # AIX makes it fun to build shared and static libraries, 8650 # because they're *both* ".a" archive libraries. We 8651 # build the static library for the benefit of the traditional 8652 # scheme of building libpcap and tcpdump in subdirectories of 8653 # the same directory, with tcpdump statically linked with the 8654 # libpcap in question, but we also build a shared library as 8655 # "libpcap.shareda" and install *it*, rather than the static 8656 # library, as "libpcap.a". 8657 # 8658 DYEXT="shareda" 8659 8660 case "$V_PCAP" in 8661 8662 dlpi) 8663 # 8664 # If we're using DLPI, applications will need to 8665 # use /lib/pse.exp if present, as we use the 8666 # STREAMS routines. 8667 # 8668 pseexe="/lib/pse.exp" 8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pseexe" >&5 8670$as_echo_n "checking for $pseexe... " >&6; } 8671 if test -f $pseexe ; then 8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8673$as_echo "yes" >&6; } 8674 LIBS="-I:$pseexe" 8675 fi 8676 ;; 8677 8678 bpf) 8679 # 8680 # If we're using BPF, we need "-lodm" and "-lcfg", as 8681 # we use them to load the BPF module. 8682 # 8683 LIBS="-lodm -lcfg" 8684 ;; 8685 esac 8686 ;; 8687 8688darwin*) 8689 DYEXT="dylib" 8690 V_CCOPT="$V_CCOPT -fno-common" 8691 # Check whether --enable-universal was given. 8692if test "${enable_universal+set}" = set; then : 8693 enableval=$enable_universal; 8694fi 8695 8696 if test "$enable_universal" != "no"; then 8697 case "$host_os" in 8698 8699 darwin[0-7].*) 8700 # 8701 # Pre-Tiger. Build only for 32-bit PowerPC; no 8702 # need for any special compiler or linker flags. 8703 # 8704 ;; 8705 8706 darwin8.[0123]|darwin8.[0123].*) 8707 # 8708 # Tiger, prior to Intel support. Build 8709 # libraries and executables for 32-bit PowerPC 8710 # and 64-bit PowerPC, with 32-bit PowerPC first. 8711 # (I'm guessing that's what Apple does.) 8712 # 8713 # (The double brackets are needed because 8714 # autotools/m4 use brackets as a quoting 8715 # character; the double brackets turn into 8716 # single brackets in the generated configure 8717 # file.) 8718 # 8719 V_LIB_CCOPT_FAT="-arch ppc -arch ppc64" 8720 V_LIB_LDFLAGS_FAT="-arch ppc -arch ppc64" 8721 V_PROG_CCOPT_FAT="-arch ppc -arch ppc64" 8722 V_PROG_LDFLAGS_FAT="-arch ppc -arch ppc64" 8723 ;; 8724 8725 darwin8.[456]|darwin.[456].*) 8726 # 8727 # Tiger, subsequent to Intel support but prior 8728 # to x86-64 support. Build libraries and 8729 # executables for 32-bit PowerPC, 64-bit 8730 # PowerPC, and 32-bit x86, with 32-bit PowerPC 8731 # first. (I'm guessing that's what Apple does.) 8732 # 8733 # (The double brackets are needed because 8734 # autotools/m4 use brackets as a quoting 8735 # character; the double brackets turn into 8736 # single brackets in the generated configure 8737 # file.) 8738 # 8739 V_LIB_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386" 8740 V_LIB_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386" 8741 V_PROG_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386" 8742 V_PROG_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386" 8743 ;; 8744 8745 darwin8.*) 8746 # 8747 # All other Tiger, so subsequent to x86-64 8748 # support. Build libraries and executables for 8749 # 32-bit PowerPC, 64-bit PowerPC, 32-bit x86, 8750 # and x86-64, with 32-bit PowerPC first. (I'm 8751 # guessing that's what Apple does.) 8752 # 8753 V_LIB_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64" 8754 V_LIB_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64" 8755 V_PROG_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64" 8756 V_PROG_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64" 8757 ;; 8758 8759 darwin9.*) 8760 # 8761 # Leopard. Build libraries for 32-bit PowerPC, 8762 # 64-bit PowerPC, 32-bit x86, and x86-64, with 8763 # 32-bit PowerPC first, and build executables 8764 # for 32-bit x86 and 32-bit PowerPC, with 32-bit 8765 # x86 first. (That's what Apple does.) 8766 # 8767 V_LIB_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64" 8768 V_LIB_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64" 8769 V_PROG_CCOPT_FAT="-arch i386 -arch ppc" 8770 V_PROG_LDFLAGS_FAT="-arch i386 -arch ppc" 8771 ;; 8772 8773 darwin10.*) 8774 # 8775 # Snow Leopard. Build libraries for x86-64, 8776 # 32-bit x86, and 32-bit PowerPC, with x86-64 8777 # first, and build executables for x86-64 and 8778 # 32-bit x86, with x86-64 first. (That's what 8779 # Apple does, even though Snow Leopard doesn't 8780 # run on PPC, so PPC libpcap runs under Rosetta, 8781 # and Rosetta doesn't support BPF ioctls, so PPC 8782 # programs can't do live captures.) 8783 # 8784 V_LIB_CCOPT_FAT="-arch x86_64 -arch i386 -arch ppc" 8785 V_LIB_LDFLAGS_FAT="-arch x86_64 -arch i386 -arch ppc" 8786 V_PROG_CCOPT_FAT="-arch x86_64 -arch i386" 8787 V_PROG_LDFLAGS_FAT="-arch x86_64 -arch i386" 8788 ;; 8789 8790 darwin*) 8791 # 8792 # Post-Snow Leopard. Build libraries for x86-64 8793 # and 32-bit x86, with x86-64 first, and build 8794 # executables only for x86-64. (That's what 8795 # Apple does.) This requires no special flags 8796 # for programs. 8797 # XXX - update if and when Apple drops support 8798 # for 32-bit x86 code and if and when Apple adds 8799 # ARM-based Macs. (You're on your own for iOS 8800 # etc.) 8801 # 8802 # XXX - check whether we *can* build for 8803 # i386 and, if not, suggest that the user 8804 # install the /usr/include headers if they 8805 # want to build fat. 8806 # 8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building for 32-bit x86 is supported" >&5 8808$as_echo_n "checking whether building for 32-bit x86 is supported... " >&6; } 8809 save_CFLAGS="$CFLAGS" 8810 CFLAGS="$CFLAGS -arch i386" 8811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8812/* end confdefs.h. */ 8813 8814int 8815main () 8816{ 8817return 0; 8818 ; 8819 return 0; 8820} 8821_ACEOF 8822if ac_fn_c_try_link "$LINENO"; then : 8823 8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8825$as_echo "yes" >&6; } 8826 V_LIB_CCOPT_FAT="-arch x86_64" 8827 V_LIB_LDFLAGS_FAT="-arch x86_64" 8828 8829 # 8830 # OpenSSL installation on macOS seems 8831 # to install only the libs for 64-bit 8832 # x86 - at least that's what Brew does: 8833 # only configure 32-bit builds if we 8834 # don't have OpenSSL. 8835 # 8836 if test "$HAVE_OPENSSL" != yes; then 8837 V_LIB_CCOPT_FAT="$V_LIB_CCOPT_FAT -arch i386" 8838 V_LIB_LDFLAGS_FAT="$V_LIB_LDFLAGS_FAT -arch i386" 8839 fi 8840 8841else 8842 8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8844$as_echo "no" >&6; } 8845 V_LIB_CCOPT_FAT="-arch x86_64" 8846 V_LIB_LDFLAGS_FAT="-arch x86_64" 8847 case "$host_os" in 8848 8849 darwin18.*) 8850 # 8851 # Mojave; you need to install the 8852 # /usr/include headers to get 8853 # 32-bit x86 builds to work. 8854 # 8855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiling for 32-bit x86 gives an error; try installing the command-line tools and, after that, installing the /usr/include headers from the /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg package" >&5 8856$as_echo "$as_me: WARNING: Compiling for 32-bit x86 gives an error; try installing the command-line tools and, after that, installing the /usr/include headers from the /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg package" >&2;} 8857 ;; 8858 8859 *) 8860 # 8861 # Pre-Mojave; the command-line 8862 # tools should be sufficient to 8863 # enable 32-bit x86 builds. 8864 # 8865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiling for 32-bit x86 gives an error; try installing the command-line tools" >&5 8866$as_echo "$as_me: WARNING: Compiling for 32-bit x86 gives an error; try installing the command-line tools" >&2;} 8867 ;; 8868 esac 8869 8870fi 8871rm -f core conftest.err conftest.$ac_objext \ 8872 conftest$ac_exeext conftest.$ac_ext 8873 CFLAGS="$save_CFLAGS" 8874 ;; 8875 esac 8876 fi 8877 ;; 8878 8879hpux9*) 8880 8881$as_echo "#define HAVE_HPUX9 1" >>confdefs.h 8882 8883 8884 # 8885 # Use System V conventions for man pages. 8886 # 8887 MAN_ADMIN_COMMANDS=1m 8888 MAN_FILE_FORMATS=4 8889 MAN_MISC_INFO=5 8890 ;; 8891 8892hpux10.0*) 8893 8894 # 8895 # Use System V conventions for man pages. 8896 # 8897 MAN_ADMIN_COMMANDS=1m 8898 MAN_FILE_FORMATS=4 8899 MAN_MISC_INFO=5 8900 ;; 8901 8902hpux10.1*) 8903 8904 # 8905 # Use System V conventions for man pages. 8906 # 8907 MAN_ADMIN_COMMANDS=1m 8908 MAN_FILE_FORMATS=4 8909 MAN_MISC_INFO=5 8910 ;; 8911 8912hpux*) 8913 8914$as_echo "#define HAVE_HPUX10_20_OR_LATER 1" >>confdefs.h 8915 8916 if test "`uname -m`" = "ia64"; then 8917 DYEXT="so" 8918 else 8919 DYEXT="sl" 8920 fi 8921 8922 # 8923 # "-b" builds a shared library; "+h" sets the soname. 8924 # 8925 SHLIB_OPT="-b" 8926 SONAME_OPT="+h" 8927 8928 # 8929 # Use System V conventions for man pages. 8930 # 8931 MAN_FILE_FORMATS=4 8932 MAN_MISC_INFO=5 8933 ;; 8934 8935irix*) 8936 # 8937 # Use IRIX conventions for man pages; they're the same as the 8938 # System V conventions, except that they use section 8 for 8939 # administrative commands and daemons. 8940 # 8941 MAN_FILE_FORMATS=4 8942 MAN_MISC_INFO=5 8943 ;; 8944 8945linux*|freebsd*|netbsd*|openbsd*|dragonfly*|kfreebsd*|gnu*|haiku*|midipix*) 8946 DYEXT="so" 8947 8948 # 8949 # Compiler assumed to be GCC; run-time linker may require a -R 8950 # flag. 8951 # 8952 if test "$libdir" != "/usr/lib"; then 8953 V_RFLAGS=-Wl,-R$libdir 8954 fi 8955 ;; 8956 8957osf*) 8958 DYEXT="so" 8959 8960 # 8961 # DEC OSF/1, a/k/a Digial UNIX, a/k/a Tru64 UNIX. 8962 # Use Tru64 UNIX conventions for man pages; they're the same as 8963 # the System V conventions except that they use section 8 for 8964 # administrative commands and daemons. 8965 # 8966 MAN_FILE_FORMATS=4 8967 MAN_MISC_INFO=5 8968 MAN_DEVICES=7 8969 ;; 8970 8971sinix*) 8972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SINIX compiler defines sinix" >&5 8973$as_echo_n "checking if SINIX compiler defines sinix... " >&6; } 8974 if ${ac_cv_cc_sinix_defined+:} false; then : 8975 $as_echo_n "(cached) " >&6 8976else 8977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8978/* end confdefs.h. */ 8979 8980int 8981main () 8982{ 8983int i = sinix; 8984 ; 8985 return 0; 8986} 8987_ACEOF 8988if ac_fn_c_try_compile "$LINENO"; then : 8989 ac_cv_cc_sinix_defined=yes 8990else 8991 ac_cv_cc_sinix_defined=no 8992fi 8993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8994fi 8995 8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_sinix_defined" >&5 8997$as_echo "$ac_cv_cc_sinix_defined" >&6; } 8998 if test $ac_cv_cc_sinix_defined = no ; then 8999 9000$as_echo "#define sinix 1" >>confdefs.h 9001 9002 fi 9003 ;; 9004 9005solaris*) 9006 9007$as_echo "#define HAVE_SOLARIS 1" >>confdefs.h 9008 9009 9010 DYEXT="so" 9011 9012 # 9013 # Make sure errno is thread-safe, in case we're called in 9014 # a multithreaded program. We don't guarantee that two 9015 # threads can use the *same* pcap_t safely, but the 9016 # current version does guarantee that you can use different 9017 # pcap_t's in different threads, and even that pcap_compile() 9018 # is thread-safe (it wasn't thread-safe in some older versions). 9019 # 9020 V_CCOPT="$V_CCOPT -D_TS_ERRNO" 9021 9022 case "`uname -r`" in 9023 9024 5.12) 9025 ;; 9026 9027 *) 9028 # 9029 # Use System V conventions for man pages. 9030 # 9031 MAN_ADMIN_COMMANDS=1m 9032 MAN_FILE_FORMATS=4 9033 MAN_MISC_INFO=5 9034 MAN_DEVICES=7D 9035 esac 9036 ;; 9037esac 9038 9039# Check whether --enable-shared was given. 9040if test "${enable_shared+set}" = set; then : 9041 enableval=$enable_shared; 9042fi 9043 9044test "x$enable_shared" = "xno" && DYEXT="none" 9045 9046if test -n "$ac_tool_prefix"; then 9047 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 9048set dummy ${ac_tool_prefix}ranlib; ac_word=$2 9049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9050$as_echo_n "checking for $ac_word... " >&6; } 9051if ${ac_cv_prog_RANLIB+:} false; then : 9052 $as_echo_n "(cached) " >&6 9053else 9054 if test -n "$RANLIB"; then 9055 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 9056else 9057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9058for as_dir in $PATH 9059do 9060 IFS=$as_save_IFS 9061 test -z "$as_dir" && as_dir=. 9062 for ac_exec_ext in '' $ac_executable_extensions; do 9063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9064 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 9065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9066 break 2 9067 fi 9068done 9069 done 9070IFS=$as_save_IFS 9071 9072fi 9073fi 9074RANLIB=$ac_cv_prog_RANLIB 9075if test -n "$RANLIB"; then 9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 9077$as_echo "$RANLIB" >&6; } 9078else 9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9080$as_echo "no" >&6; } 9081fi 9082 9083 9084fi 9085if test -z "$ac_cv_prog_RANLIB"; then 9086 ac_ct_RANLIB=$RANLIB 9087 # Extract the first word of "ranlib", so it can be a program name with args. 9088set dummy ranlib; ac_word=$2 9089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9090$as_echo_n "checking for $ac_word... " >&6; } 9091if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 9092 $as_echo_n "(cached) " >&6 9093else 9094 if test -n "$ac_ct_RANLIB"; then 9095 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 9096else 9097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9098for as_dir in $PATH 9099do 9100 IFS=$as_save_IFS 9101 test -z "$as_dir" && as_dir=. 9102 for ac_exec_ext in '' $ac_executable_extensions; do 9103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9104 ac_cv_prog_ac_ct_RANLIB="ranlib" 9105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9106 break 2 9107 fi 9108done 9109 done 9110IFS=$as_save_IFS 9111 9112fi 9113fi 9114ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 9115if test -n "$ac_ct_RANLIB"; then 9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 9117$as_echo "$ac_ct_RANLIB" >&6; } 9118else 9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9120$as_echo "no" >&6; } 9121fi 9122 9123 if test "x$ac_ct_RANLIB" = x; then 9124 RANLIB=":" 9125 else 9126 case $cross_compiling:$ac_tool_warned in 9127yes:) 9128{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9129$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9130ac_tool_warned=yes ;; 9131esac 9132 RANLIB=$ac_ct_RANLIB 9133 fi 9134else 9135 RANLIB="$ac_cv_prog_RANLIB" 9136fi 9137 9138if test -n "$ac_tool_prefix"; then 9139 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 9140set dummy ${ac_tool_prefix}ar; ac_word=$2 9141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9142$as_echo_n "checking for $ac_word... " >&6; } 9143if ${ac_cv_prog_AR+:} false; then : 9144 $as_echo_n "(cached) " >&6 9145else 9146 if test -n "$AR"; then 9147 ac_cv_prog_AR="$AR" # Let the user override the test. 9148else 9149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9150for as_dir in $PATH 9151do 9152 IFS=$as_save_IFS 9153 test -z "$as_dir" && as_dir=. 9154 for ac_exec_ext in '' $ac_executable_extensions; do 9155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9156 ac_cv_prog_AR="${ac_tool_prefix}ar" 9157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9158 break 2 9159 fi 9160done 9161 done 9162IFS=$as_save_IFS 9163 9164fi 9165fi 9166AR=$ac_cv_prog_AR 9167if test -n "$AR"; then 9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 9169$as_echo "$AR" >&6; } 9170else 9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9172$as_echo "no" >&6; } 9173fi 9174 9175 9176fi 9177if test -z "$ac_cv_prog_AR"; then 9178 ac_ct_AR=$AR 9179 # Extract the first word of "ar", so it can be a program name with args. 9180set dummy ar; ac_word=$2 9181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9182$as_echo_n "checking for $ac_word... " >&6; } 9183if ${ac_cv_prog_ac_ct_AR+:} false; then : 9184 $as_echo_n "(cached) " >&6 9185else 9186 if test -n "$ac_ct_AR"; then 9187 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 9188else 9189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9190for as_dir in $PATH 9191do 9192 IFS=$as_save_IFS 9193 test -z "$as_dir" && as_dir=. 9194 for ac_exec_ext in '' $ac_executable_extensions; do 9195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9196 ac_cv_prog_ac_ct_AR="ar" 9197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9198 break 2 9199 fi 9200done 9201 done 9202IFS=$as_save_IFS 9203 9204fi 9205fi 9206ac_ct_AR=$ac_cv_prog_ac_ct_AR 9207if test -n "$ac_ct_AR"; then 9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 9209$as_echo "$ac_ct_AR" >&6; } 9210else 9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9212$as_echo "no" >&6; } 9213fi 9214 9215 if test "x$ac_ct_AR" = x; then 9216 AR="" 9217 else 9218 case $cross_compiling:$ac_tool_warned in 9219yes:) 9220{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9221$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9222ac_tool_warned=yes ;; 9223esac 9224 AR=$ac_ct_AR 9225 fi 9226else 9227 AR="$ac_cv_prog_AR" 9228fi 9229 9230 9231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 9232$as_echo_n "checking whether ln -s works... " >&6; } 9233LN_S=$as_ln_s 9234if test "$LN_S" = "ln -s"; then 9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9236$as_echo "yes" >&6; } 9237else 9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 9239$as_echo "no, using $LN_S" >&6; } 9240fi 9241 9242 9243 9244rm -f os-proto.h 9245 if test "${LBL_CFLAGS+set}" = set; then 9246 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}" 9247 fi 9248 if test -f .devel ; then 9249 # 9250 # Skip all the warning option stuff on some compilers. 9251 # 9252 if test "$ac_lbl_cc_dont_try_gcc_dashW" != yes; then 9253 9254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler fails when given an unknown warning option" >&5 9255$as_echo_n "checking whether the compiler fails when given an unknown warning option... " >&6; } 9256 save_CFLAGS="$CFLAGS" 9257 CFLAGS="$CFLAGS -Wxyzzy-this-will-never-succeed-xyzzy" 9258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9259/* end confdefs.h. */ 9260 9261int 9262main () 9263{ 9264return 0 9265 ; 9266 return 0; 9267} 9268_ACEOF 9269if ac_fn_c_try_compile "$LINENO"; then : 9270 9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9272$as_echo "no" >&6; } 9273 # 9274 # We're assuming this is clang, where 9275 # -Werror=unknown-warning-option is the appropriate 9276 # option to force the compiler to fail. 9277 # 9278 ac_lbl_unknown_warning_option_error="-Werror=unknown-warning-option" 9279 9280else 9281 9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9283$as_echo "yes" >&6; } 9284 9285fi 9286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9287 CFLAGS="$save_CFLAGS" 9288 9289 9290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -W option" >&5 9291$as_echo_n "checking whether the compiler supports the -W option... " >&6; } 9292 save_CFLAGS="$CFLAGS" 9293 if expr "x-W" : "x-W.*" >/dev/null 9294 then 9295 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -W" 9296 elif expr "x-W" : "x-f.*" >/dev/null 9297 then 9298 CFLAGS="$CFLAGS -Werror -W" 9299 elif expr "x-W" : "x-m.*" >/dev/null 9300 then 9301 CFLAGS="$CFLAGS -Werror -W" 9302 else 9303 CFLAGS="$CFLAGS -W" 9304 fi 9305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9306/* end confdefs.h. */ 9307 9308int 9309main () 9310{ 9311return 0 9312 ; 9313 return 0; 9314} 9315_ACEOF 9316if ac_fn_c_try_compile "$LINENO"; then : 9317 9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9319$as_echo "yes" >&6; } 9320 can_add_to_cflags=yes 9321 # 9322 # The compile supports this; do we have some C code for 9323 # which the warning should *not* appear? 9324 # We test the fourth argument because the third argument 9325 # could contain quotes, breaking the test. 9326 # 9327 if test "x" != "x" 9328 then 9329 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors" 9330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -W " >&5 9331$as_echo_n "checking whether -W ... " >&6; } 9332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9333/* end confdefs.h. */ 9334 9335_ACEOF 9336if ac_fn_c_try_compile "$LINENO"; then : 9337 9338 # 9339 # Not a problem. 9340 # 9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9342$as_echo "no" >&6; } 9343 9344else 9345 9346 # 9347 # A problem. 9348 # 9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9350$as_echo "yes" >&6; } 9351 can_add_to_cflags=no 9352 9353fi 9354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9355 fi 9356 CFLAGS="$save_CFLAGS" 9357 if test x"$can_add_to_cflags" = "xyes" 9358 then 9359 V_CCOPT="$V_CCOPT -W" 9360 fi 9361 9362else 9363 9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9365$as_echo "no" >&6; } 9366 CFLAGS="$save_CFLAGS" 9367 9368fi 9369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9370 9371 9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wall option" >&5 9373$as_echo_n "checking whether the compiler supports the -Wall option... " >&6; } 9374 save_CFLAGS="$CFLAGS" 9375 if expr "x-Wall" : "x-W.*" >/dev/null 9376 then 9377 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wall" 9378 elif expr "x-Wall" : "x-f.*" >/dev/null 9379 then 9380 CFLAGS="$CFLAGS -Werror -Wall" 9381 elif expr "x-Wall" : "x-m.*" >/dev/null 9382 then 9383 CFLAGS="$CFLAGS -Werror -Wall" 9384 else 9385 CFLAGS="$CFLAGS -Wall" 9386 fi 9387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9388/* end confdefs.h. */ 9389 9390int 9391main () 9392{ 9393return 0 9394 ; 9395 return 0; 9396} 9397_ACEOF 9398if ac_fn_c_try_compile "$LINENO"; then : 9399 9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9401$as_echo "yes" >&6; } 9402 can_add_to_cflags=yes 9403 # 9404 # The compile supports this; do we have some C code for 9405 # which the warning should *not* appear? 9406 # We test the fourth argument because the third argument 9407 # could contain quotes, breaking the test. 9408 # 9409 if test "x" != "x" 9410 then 9411 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors" 9412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wall " >&5 9413$as_echo_n "checking whether -Wall ... " >&6; } 9414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9415/* end confdefs.h. */ 9416 9417_ACEOF 9418if ac_fn_c_try_compile "$LINENO"; then : 9419 9420 # 9421 # Not a problem. 9422 # 9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9424$as_echo "no" >&6; } 9425 9426else 9427 9428 # 9429 # A problem. 9430 # 9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9432$as_echo "yes" >&6; } 9433 can_add_to_cflags=no 9434 9435fi 9436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9437 fi 9438 CFLAGS="$save_CFLAGS" 9439 if test x"$can_add_to_cflags" = "xyes" 9440 then 9441 V_CCOPT="$V_CCOPT -Wall" 9442 fi 9443 9444else 9445 9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9447$as_echo "no" >&6; } 9448 CFLAGS="$save_CFLAGS" 9449 9450fi 9451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9452 9453 9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wcomma option" >&5 9455$as_echo_n "checking whether the compiler supports the -Wcomma option... " >&6; } 9456 save_CFLAGS="$CFLAGS" 9457 if expr "x-Wcomma" : "x-W.*" >/dev/null 9458 then 9459 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wcomma" 9460 elif expr "x-Wcomma" : "x-f.*" >/dev/null 9461 then 9462 CFLAGS="$CFLAGS -Werror -Wcomma" 9463 elif expr "x-Wcomma" : "x-m.*" >/dev/null 9464 then 9465 CFLAGS="$CFLAGS -Werror -Wcomma" 9466 else 9467 CFLAGS="$CFLAGS -Wcomma" 9468 fi 9469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9470/* end confdefs.h. */ 9471 9472int 9473main () 9474{ 9475return 0 9476 ; 9477 return 0; 9478} 9479_ACEOF 9480if ac_fn_c_try_compile "$LINENO"; then : 9481 9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9483$as_echo "yes" >&6; } 9484 can_add_to_cflags=yes 9485 # 9486 # The compile supports this; do we have some C code for 9487 # which the warning should *not* appear? 9488 # We test the fourth argument because the third argument 9489 # could contain quotes, breaking the test. 9490 # 9491 if test "x" != "x" 9492 then 9493 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors" 9494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wcomma " >&5 9495$as_echo_n "checking whether -Wcomma ... " >&6; } 9496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9497/* end confdefs.h. */ 9498 9499_ACEOF 9500if ac_fn_c_try_compile "$LINENO"; then : 9501 9502 # 9503 # Not a problem. 9504 # 9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9506$as_echo "no" >&6; } 9507 9508else 9509 9510 # 9511 # A problem. 9512 # 9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9514$as_echo "yes" >&6; } 9515 can_add_to_cflags=no 9516 9517fi 9518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9519 fi 9520 CFLAGS="$save_CFLAGS" 9521 if test x"$can_add_to_cflags" = "xyes" 9522 then 9523 V_CCOPT="$V_CCOPT -Wcomma" 9524 fi 9525 9526else 9527 9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9529$as_echo "no" >&6; } 9530 CFLAGS="$save_CFLAGS" 9531 9532fi 9533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9534 9535 9536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wdocumentation option" >&5 9537$as_echo_n "checking whether the compiler supports the -Wdocumentation option... " >&6; } 9538 save_CFLAGS="$CFLAGS" 9539 if expr "x-Wdocumentation" : "x-W.*" >/dev/null 9540 then 9541 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wdocumentation" 9542 elif expr "x-Wdocumentation" : "x-f.*" >/dev/null 9543 then 9544 CFLAGS="$CFLAGS -Werror -Wdocumentation" 9545 elif expr "x-Wdocumentation" : "x-m.*" >/dev/null 9546 then 9547 CFLAGS="$CFLAGS -Werror -Wdocumentation" 9548 else 9549 CFLAGS="$CFLAGS -Wdocumentation" 9550 fi 9551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9552/* end confdefs.h. */ 9553 9554int 9555main () 9556{ 9557return 0 9558 ; 9559 return 0; 9560} 9561_ACEOF 9562if ac_fn_c_try_compile "$LINENO"; then : 9563 9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9565$as_echo "yes" >&6; } 9566 can_add_to_cflags=yes 9567 # 9568 # The compile supports this; do we have some C code for 9569 # which the warning should *not* appear? 9570 # We test the fourth argument because the third argument 9571 # could contain quotes, breaking the test. 9572 # 9573 if test "x" != "x" 9574 then 9575 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors" 9576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wdocumentation " >&5 9577$as_echo_n "checking whether -Wdocumentation ... " >&6; } 9578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9579/* end confdefs.h. */ 9580 9581_ACEOF 9582if ac_fn_c_try_compile "$LINENO"; then : 9583 9584 # 9585 # Not a problem. 9586 # 9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9588$as_echo "no" >&6; } 9589 9590else 9591 9592 # 9593 # A problem. 9594 # 9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9596$as_echo "yes" >&6; } 9597 can_add_to_cflags=no 9598 9599fi 9600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9601 fi 9602 CFLAGS="$save_CFLAGS" 9603 if test x"$can_add_to_cflags" = "xyes" 9604 then 9605 V_CCOPT="$V_CCOPT -Wdocumentation" 9606 fi 9607 9608else 9609 9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9611$as_echo "no" >&6; } 9612 CFLAGS="$save_CFLAGS" 9613 9614fi 9615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9616 9617 9618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wformat-nonliteral option" >&5 9619$as_echo_n "checking whether the compiler supports the -Wformat-nonliteral option... " >&6; } 9620 save_CFLAGS="$CFLAGS" 9621 if expr "x-Wformat-nonliteral" : "x-W.*" >/dev/null 9622 then 9623 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wformat-nonliteral" 9624 elif expr "x-Wformat-nonliteral" : "x-f.*" >/dev/null 9625 then 9626 CFLAGS="$CFLAGS -Werror -Wformat-nonliteral" 9627 elif expr "x-Wformat-nonliteral" : "x-m.*" >/dev/null 9628 then 9629 CFLAGS="$CFLAGS -Werror -Wformat-nonliteral" 9630 else 9631 CFLAGS="$CFLAGS -Wformat-nonliteral" 9632 fi 9633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9634/* end confdefs.h. */ 9635 9636int 9637main () 9638{ 9639return 0 9640 ; 9641 return 0; 9642} 9643_ACEOF 9644if ac_fn_c_try_compile "$LINENO"; then : 9645 9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9647$as_echo "yes" >&6; } 9648 can_add_to_cflags=yes 9649 # 9650 # The compile supports this; do we have some C code for 9651 # which the warning should *not* appear? 9652 # We test the fourth argument because the third argument 9653 # could contain quotes, breaking the test. 9654 # 9655 if test "x" != "x" 9656 then 9657 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors" 9658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wformat-nonliteral " >&5 9659$as_echo_n "checking whether -Wformat-nonliteral ... " >&6; } 9660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9661/* end confdefs.h. */ 9662 9663_ACEOF 9664if ac_fn_c_try_compile "$LINENO"; then : 9665 9666 # 9667 # Not a problem. 9668 # 9669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9670$as_echo "no" >&6; } 9671 9672else 9673 9674 # 9675 # A problem. 9676 # 9677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9678$as_echo "yes" >&6; } 9679 can_add_to_cflags=no 9680 9681fi 9682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9683 fi 9684 CFLAGS="$save_CFLAGS" 9685 if test x"$can_add_to_cflags" = "xyes" 9686 then 9687 V_CCOPT="$V_CCOPT -Wformat-nonliteral" 9688 fi 9689 9690else 9691 9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9693$as_echo "no" >&6; } 9694 CFLAGS="$save_CFLAGS" 9695 9696fi 9697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9698 9699 9700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-noreturn option" >&5 9701$as_echo_n "checking whether the compiler supports the -Wmissing-noreturn option... " >&6; } 9702 save_CFLAGS="$CFLAGS" 9703 if expr "x-Wmissing-noreturn" : "x-W.*" >/dev/null 9704 then 9705 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-noreturn" 9706 elif expr "x-Wmissing-noreturn" : "x-f.*" >/dev/null 9707 then 9708 CFLAGS="$CFLAGS -Werror -Wmissing-noreturn" 9709 elif expr "x-Wmissing-noreturn" : "x-m.*" >/dev/null 9710 then 9711 CFLAGS="$CFLAGS -Werror -Wmissing-noreturn" 9712 else 9713 CFLAGS="$CFLAGS -Wmissing-noreturn" 9714 fi 9715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9716/* end confdefs.h. */ 9717 9718int 9719main () 9720{ 9721return 0 9722 ; 9723 return 0; 9724} 9725_ACEOF 9726if ac_fn_c_try_compile "$LINENO"; then : 9727 9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9729$as_echo "yes" >&6; } 9730 can_add_to_cflags=yes 9731 # 9732 # The compile supports this; do we have some C code for 9733 # which the warning should *not* appear? 9734 # We test the fourth argument because the third argument 9735 # could contain quotes, breaking the test. 9736 # 9737 if test "x" != "x" 9738 then 9739 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors" 9740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wmissing-noreturn " >&5 9741$as_echo_n "checking whether -Wmissing-noreturn ... " >&6; } 9742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9743/* end confdefs.h. */ 9744 9745_ACEOF 9746if ac_fn_c_try_compile "$LINENO"; then : 9747 9748 # 9749 # Not a problem. 9750 # 9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9752$as_echo "no" >&6; } 9753 9754else 9755 9756 # 9757 # A problem. 9758 # 9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9760$as_echo "yes" >&6; } 9761 can_add_to_cflags=no 9762 9763fi 9764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9765 fi 9766 CFLAGS="$save_CFLAGS" 9767 if test x"$can_add_to_cflags" = "xyes" 9768 then 9769 V_CCOPT="$V_CCOPT -Wmissing-noreturn" 9770 fi 9771 9772else 9773 9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9775$as_echo "no" >&6; } 9776 CFLAGS="$save_CFLAGS" 9777 9778fi 9779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9780 9781 9782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-prototypes option" >&5 9783$as_echo_n "checking whether the compiler supports the -Wmissing-prototypes option... " >&6; } 9784 save_CFLAGS="$CFLAGS" 9785 if expr "x-Wmissing-prototypes" : "x-W.*" >/dev/null 9786 then 9787 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-prototypes" 9788 elif expr "x-Wmissing-prototypes" : "x-f.*" >/dev/null 9789 then 9790 CFLAGS="$CFLAGS -Werror -Wmissing-prototypes" 9791 elif expr "x-Wmissing-prototypes" : "x-m.*" >/dev/null 9792 then 9793 CFLAGS="$CFLAGS -Werror -Wmissing-prototypes" 9794 else 9795 CFLAGS="$CFLAGS -Wmissing-prototypes" 9796 fi 9797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9798/* end confdefs.h. */ 9799 9800int 9801main () 9802{ 9803return 0 9804 ; 9805 return 0; 9806} 9807_ACEOF 9808if ac_fn_c_try_compile "$LINENO"; then : 9809 9810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9811$as_echo "yes" >&6; } 9812 can_add_to_cflags=yes 9813 # 9814 # The compile supports this; do we have some C code for 9815 # which the warning should *not* appear? 9816 # We test the fourth argument because the third argument 9817 # could contain quotes, breaking the test. 9818 # 9819 if test "x" != "x" 9820 then 9821 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors" 9822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wmissing-prototypes " >&5 9823$as_echo_n "checking whether -Wmissing-prototypes ... " >&6; } 9824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9825/* end confdefs.h. */ 9826 9827_ACEOF 9828if ac_fn_c_try_compile "$LINENO"; then : 9829 9830 # 9831 # Not a problem. 9832 # 9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9834$as_echo "no" >&6; } 9835 9836else 9837 9838 # 9839 # A problem. 9840 # 9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9842$as_echo "yes" >&6; } 9843 can_add_to_cflags=no 9844 9845fi 9846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9847 fi 9848 CFLAGS="$save_CFLAGS" 9849 if test x"$can_add_to_cflags" = "xyes" 9850 then 9851 V_CCOPT="$V_CCOPT -Wmissing-prototypes" 9852 fi 9853 9854else 9855 9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9857$as_echo "no" >&6; } 9858 CFLAGS="$save_CFLAGS" 9859 9860fi 9861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9862 9863 9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-variable-declarations option" >&5 9865$as_echo_n "checking whether the compiler supports the -Wmissing-variable-declarations option... " >&6; } 9866 save_CFLAGS="$CFLAGS" 9867 if expr "x-Wmissing-variable-declarations" : "x-W.*" >/dev/null 9868 then 9869 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-variable-declarations" 9870 elif expr "x-Wmissing-variable-declarations" : "x-f.*" >/dev/null 9871 then 9872 CFLAGS="$CFLAGS -Werror -Wmissing-variable-declarations" 9873 elif expr "x-Wmissing-variable-declarations" : "x-m.*" >/dev/null 9874 then 9875 CFLAGS="$CFLAGS -Werror -Wmissing-variable-declarations" 9876 else 9877 CFLAGS="$CFLAGS -Wmissing-variable-declarations" 9878 fi 9879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9880/* end confdefs.h. */ 9881 9882int 9883main () 9884{ 9885return 0 9886 ; 9887 return 0; 9888} 9889_ACEOF 9890if ac_fn_c_try_compile "$LINENO"; then : 9891 9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9893$as_echo "yes" >&6; } 9894 can_add_to_cflags=yes 9895 # 9896 # The compile supports this; do we have some C code for 9897 # which the warning should *not* appear? 9898 # We test the fourth argument because the third argument 9899 # could contain quotes, breaking the test. 9900 # 9901 if test "x" != "x" 9902 then 9903 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors" 9904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wmissing-variable-declarations " >&5 9905$as_echo_n "checking whether -Wmissing-variable-declarations ... " >&6; } 9906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9907/* end confdefs.h. */ 9908 9909_ACEOF 9910if ac_fn_c_try_compile "$LINENO"; then : 9911 9912 # 9913 # Not a problem. 9914 # 9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9916$as_echo "no" >&6; } 9917 9918else 9919 9920 # 9921 # A problem. 9922 # 9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9924$as_echo "yes" >&6; } 9925 can_add_to_cflags=no 9926 9927fi 9928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9929 fi 9930 CFLAGS="$save_CFLAGS" 9931 if test x"$can_add_to_cflags" = "xyes" 9932 then 9933 V_CCOPT="$V_CCOPT -Wmissing-variable-declarations" 9934 fi 9935 9936else 9937 9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9939$as_echo "no" >&6; } 9940 CFLAGS="$save_CFLAGS" 9941 9942fi 9943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9944 9945 9946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wpointer-arith option" >&5 9947$as_echo_n "checking whether the compiler supports the -Wpointer-arith option... " >&6; } 9948 save_CFLAGS="$CFLAGS" 9949 if expr "x-Wpointer-arith" : "x-W.*" >/dev/null 9950 then 9951 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wpointer-arith" 9952 elif expr "x-Wpointer-arith" : "x-f.*" >/dev/null 9953 then 9954 CFLAGS="$CFLAGS -Werror -Wpointer-arith" 9955 elif expr "x-Wpointer-arith" : "x-m.*" >/dev/null 9956 then 9957 CFLAGS="$CFLAGS -Werror -Wpointer-arith" 9958 else 9959 CFLAGS="$CFLAGS -Wpointer-arith" 9960 fi 9961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9962/* end confdefs.h. */ 9963 9964int 9965main () 9966{ 9967return 0 9968 ; 9969 return 0; 9970} 9971_ACEOF 9972if ac_fn_c_try_compile "$LINENO"; then : 9973 9974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9975$as_echo "yes" >&6; } 9976 can_add_to_cflags=yes 9977 # 9978 # The compile supports this; do we have some C code for 9979 # which the warning should *not* appear? 9980 # We test the fourth argument because the third argument 9981 # could contain quotes, breaking the test. 9982 # 9983 if test "x" != "x" 9984 then 9985 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors" 9986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wpointer-arith " >&5 9987$as_echo_n "checking whether -Wpointer-arith ... " >&6; } 9988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9989/* end confdefs.h. */ 9990 9991_ACEOF 9992if ac_fn_c_try_compile "$LINENO"; then : 9993 9994 # 9995 # Not a problem. 9996 # 9997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9998$as_echo "no" >&6; } 9999 10000else 10001 10002 # 10003 # A problem. 10004 # 10005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10006$as_echo "yes" >&6; } 10007 can_add_to_cflags=no 10008 10009fi 10010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10011 fi 10012 CFLAGS="$save_CFLAGS" 10013 if test x"$can_add_to_cflags" = "xyes" 10014 then 10015 V_CCOPT="$V_CCOPT -Wpointer-arith" 10016 fi 10017 10018else 10019 10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10021$as_echo "no" >&6; } 10022 CFLAGS="$save_CFLAGS" 10023 10024fi 10025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10026 10027 10028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wpointer-sign option" >&5 10029$as_echo_n "checking whether the compiler supports the -Wpointer-sign option... " >&6; } 10030 save_CFLAGS="$CFLAGS" 10031 if expr "x-Wpointer-sign" : "x-W.*" >/dev/null 10032 then 10033 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wpointer-sign" 10034 elif expr "x-Wpointer-sign" : "x-f.*" >/dev/null 10035 then 10036 CFLAGS="$CFLAGS -Werror -Wpointer-sign" 10037 elif expr "x-Wpointer-sign" : "x-m.*" >/dev/null 10038 then 10039 CFLAGS="$CFLAGS -Werror -Wpointer-sign" 10040 else 10041 CFLAGS="$CFLAGS -Wpointer-sign" 10042 fi 10043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10044/* end confdefs.h. */ 10045 10046int 10047main () 10048{ 10049return 0 10050 ; 10051 return 0; 10052} 10053_ACEOF 10054if ac_fn_c_try_compile "$LINENO"; then : 10055 10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10057$as_echo "yes" >&6; } 10058 can_add_to_cflags=yes 10059 # 10060 # The compile supports this; do we have some C code for 10061 # which the warning should *not* appear? 10062 # We test the fourth argument because the third argument 10063 # could contain quotes, breaking the test. 10064 # 10065 if test "x" != "x" 10066 then 10067 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors" 10068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wpointer-sign " >&5 10069$as_echo_n "checking whether -Wpointer-sign ... " >&6; } 10070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10071/* end confdefs.h. */ 10072 10073_ACEOF 10074if ac_fn_c_try_compile "$LINENO"; then : 10075 10076 # 10077 # Not a problem. 10078 # 10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10080$as_echo "no" >&6; } 10081 10082else 10083 10084 # 10085 # A problem. 10086 # 10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10088$as_echo "yes" >&6; } 10089 can_add_to_cflags=no 10090 10091fi 10092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10093 fi 10094 CFLAGS="$save_CFLAGS" 10095 if test x"$can_add_to_cflags" = "xyes" 10096 then 10097 V_CCOPT="$V_CCOPT -Wpointer-sign" 10098 fi 10099 10100else 10101 10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10103$as_echo "no" >&6; } 10104 CFLAGS="$save_CFLAGS" 10105 10106fi 10107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10108 10109 10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wshadow option" >&5 10111$as_echo_n "checking whether the compiler supports the -Wshadow option... " >&6; } 10112 save_CFLAGS="$CFLAGS" 10113 if expr "x-Wshadow" : "x-W.*" >/dev/null 10114 then 10115 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wshadow" 10116 elif expr "x-Wshadow" : "x-f.*" >/dev/null 10117 then 10118 CFLAGS="$CFLAGS -Werror -Wshadow" 10119 elif expr "x-Wshadow" : "x-m.*" >/dev/null 10120 then 10121 CFLAGS="$CFLAGS -Werror -Wshadow" 10122 else 10123 CFLAGS="$CFLAGS -Wshadow" 10124 fi 10125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10126/* end confdefs.h. */ 10127 10128int 10129main () 10130{ 10131return 0 10132 ; 10133 return 0; 10134} 10135_ACEOF 10136if ac_fn_c_try_compile "$LINENO"; then : 10137 10138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10139$as_echo "yes" >&6; } 10140 can_add_to_cflags=yes 10141 # 10142 # The compile supports this; do we have some C code for 10143 # which the warning should *not* appear? 10144 # We test the fourth argument because the third argument 10145 # could contain quotes, breaking the test. 10146 # 10147 if test "x" != "x" 10148 then 10149 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors" 10150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wshadow " >&5 10151$as_echo_n "checking whether -Wshadow ... " >&6; } 10152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10153/* end confdefs.h. */ 10154 10155_ACEOF 10156if ac_fn_c_try_compile "$LINENO"; then : 10157 10158 # 10159 # Not a problem. 10160 # 10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10162$as_echo "no" >&6; } 10163 10164else 10165 10166 # 10167 # A problem. 10168 # 10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10170$as_echo "yes" >&6; } 10171 can_add_to_cflags=no 10172 10173fi 10174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10175 fi 10176 CFLAGS="$save_CFLAGS" 10177 if test x"$can_add_to_cflags" = "xyes" 10178 then 10179 V_CCOPT="$V_CCOPT -Wshadow" 10180 fi 10181 10182else 10183 10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10185$as_echo "no" >&6; } 10186 CFLAGS="$save_CFLAGS" 10187 10188fi 10189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10190 10191 10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wsign-compare option" >&5 10193$as_echo_n "checking whether the compiler supports the -Wsign-compare option... " >&6; } 10194 save_CFLAGS="$CFLAGS" 10195 if expr "x-Wsign-compare" : "x-W.*" >/dev/null 10196 then 10197 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wsign-compare" 10198 elif expr "x-Wsign-compare" : "x-f.*" >/dev/null 10199 then 10200 CFLAGS="$CFLAGS -Werror -Wsign-compare" 10201 elif expr "x-Wsign-compare" : "x-m.*" >/dev/null 10202 then 10203 CFLAGS="$CFLAGS -Werror -Wsign-compare" 10204 else 10205 CFLAGS="$CFLAGS -Wsign-compare" 10206 fi 10207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10208/* end confdefs.h. */ 10209 10210int 10211main () 10212{ 10213return 0 10214 ; 10215 return 0; 10216} 10217_ACEOF 10218if ac_fn_c_try_compile "$LINENO"; then : 10219 10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10221$as_echo "yes" >&6; } 10222 can_add_to_cflags=yes 10223 # 10224 # The compile supports this; do we have some C code for 10225 # which the warning should *not* appear? 10226 # We test the fourth argument because the third argument 10227 # could contain quotes, breaking the test. 10228 # 10229 if test "x" != "x" 10230 then 10231 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors" 10232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wsign-compare " >&5 10233$as_echo_n "checking whether -Wsign-compare ... " >&6; } 10234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10235/* end confdefs.h. */ 10236 10237_ACEOF 10238if ac_fn_c_try_compile "$LINENO"; then : 10239 10240 # 10241 # Not a problem. 10242 # 10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10244$as_echo "no" >&6; } 10245 10246else 10247 10248 # 10249 # A problem. 10250 # 10251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10252$as_echo "yes" >&6; } 10253 can_add_to_cflags=no 10254 10255fi 10256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10257 fi 10258 CFLAGS="$save_CFLAGS" 10259 if test x"$can_add_to_cflags" = "xyes" 10260 then 10261 V_CCOPT="$V_CCOPT -Wsign-compare" 10262 fi 10263 10264else 10265 10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10267$as_echo "no" >&6; } 10268 CFLAGS="$save_CFLAGS" 10269 10270fi 10271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10272 10273 10274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wstrict-prototypes option" >&5 10275$as_echo_n "checking whether the compiler supports the -Wstrict-prototypes option... " >&6; } 10276 save_CFLAGS="$CFLAGS" 10277 if expr "x-Wstrict-prototypes" : "x-W.*" >/dev/null 10278 then 10279 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wstrict-prototypes" 10280 elif expr "x-Wstrict-prototypes" : "x-f.*" >/dev/null 10281 then 10282 CFLAGS="$CFLAGS -Werror -Wstrict-prototypes" 10283 elif expr "x-Wstrict-prototypes" : "x-m.*" >/dev/null 10284 then 10285 CFLAGS="$CFLAGS -Werror -Wstrict-prototypes" 10286 else 10287 CFLAGS="$CFLAGS -Wstrict-prototypes" 10288 fi 10289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10290/* end confdefs.h. */ 10291 10292int 10293main () 10294{ 10295return 0 10296 ; 10297 return 0; 10298} 10299_ACEOF 10300if ac_fn_c_try_compile "$LINENO"; then : 10301 10302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10303$as_echo "yes" >&6; } 10304 can_add_to_cflags=yes 10305 # 10306 # The compile supports this; do we have some C code for 10307 # which the warning should *not* appear? 10308 # We test the fourth argument because the third argument 10309 # could contain quotes, breaking the test. 10310 # 10311 if test "x" != "x" 10312 then 10313 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors" 10314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wstrict-prototypes " >&5 10315$as_echo_n "checking whether -Wstrict-prototypes ... " >&6; } 10316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10317/* end confdefs.h. */ 10318 10319_ACEOF 10320if ac_fn_c_try_compile "$LINENO"; then : 10321 10322 # 10323 # Not a problem. 10324 # 10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10326$as_echo "no" >&6; } 10327 10328else 10329 10330 # 10331 # A problem. 10332 # 10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10334$as_echo "yes" >&6; } 10335 can_add_to_cflags=no 10336 10337fi 10338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10339 fi 10340 CFLAGS="$save_CFLAGS" 10341 if test x"$can_add_to_cflags" = "xyes" 10342 then 10343 V_CCOPT="$V_CCOPT -Wstrict-prototypes" 10344 fi 10345 10346else 10347 10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10349$as_echo "no" >&6; } 10350 CFLAGS="$save_CFLAGS" 10351 10352fi 10353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10354 10355 10356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wunused-parameter option" >&5 10357$as_echo_n "checking whether the compiler supports the -Wunused-parameter option... " >&6; } 10358 save_CFLAGS="$CFLAGS" 10359 if expr "x-Wunused-parameter" : "x-W.*" >/dev/null 10360 then 10361 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wunused-parameter" 10362 elif expr "x-Wunused-parameter" : "x-f.*" >/dev/null 10363 then 10364 CFLAGS="$CFLAGS -Werror -Wunused-parameter" 10365 elif expr "x-Wunused-parameter" : "x-m.*" >/dev/null 10366 then 10367 CFLAGS="$CFLAGS -Werror -Wunused-parameter" 10368 else 10369 CFLAGS="$CFLAGS -Wunused-parameter" 10370 fi 10371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10372/* end confdefs.h. */ 10373 10374int 10375main () 10376{ 10377return 0 10378 ; 10379 return 0; 10380} 10381_ACEOF 10382if ac_fn_c_try_compile "$LINENO"; then : 10383 10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10385$as_echo "yes" >&6; } 10386 can_add_to_cflags=yes 10387 # 10388 # The compile supports this; do we have some C code for 10389 # which the warning should *not* appear? 10390 # We test the fourth argument because the third argument 10391 # could contain quotes, breaking the test. 10392 # 10393 if test "x" != "x" 10394 then 10395 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors" 10396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wunused-parameter " >&5 10397$as_echo_n "checking whether -Wunused-parameter ... " >&6; } 10398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10399/* end confdefs.h. */ 10400 10401_ACEOF 10402if ac_fn_c_try_compile "$LINENO"; then : 10403 10404 # 10405 # Not a problem. 10406 # 10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10408$as_echo "no" >&6; } 10409 10410else 10411 10412 # 10413 # A problem. 10414 # 10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10416$as_echo "yes" >&6; } 10417 can_add_to_cflags=no 10418 10419fi 10420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10421 fi 10422 CFLAGS="$save_CFLAGS" 10423 if test x"$can_add_to_cflags" = "xyes" 10424 then 10425 V_CCOPT="$V_CCOPT -Wunused-parameter" 10426 fi 10427 10428else 10429 10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10431$as_echo "no" >&6; } 10432 CFLAGS="$save_CFLAGS" 10433 10434fi 10435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10436 10437 10438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wused-but-marked-unused option" >&5 10439$as_echo_n "checking whether the compiler supports the -Wused-but-marked-unused option... " >&6; } 10440 save_CFLAGS="$CFLAGS" 10441 if expr "x-Wused-but-marked-unused" : "x-W.*" >/dev/null 10442 then 10443 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wused-but-marked-unused" 10444 elif expr "x-Wused-but-marked-unused" : "x-f.*" >/dev/null 10445 then 10446 CFLAGS="$CFLAGS -Werror -Wused-but-marked-unused" 10447 elif expr "x-Wused-but-marked-unused" : "x-m.*" >/dev/null 10448 then 10449 CFLAGS="$CFLAGS -Werror -Wused-but-marked-unused" 10450 else 10451 CFLAGS="$CFLAGS -Wused-but-marked-unused" 10452 fi 10453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10454/* end confdefs.h. */ 10455 10456int 10457main () 10458{ 10459return 0 10460 ; 10461 return 0; 10462} 10463_ACEOF 10464if ac_fn_c_try_compile "$LINENO"; then : 10465 10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10467$as_echo "yes" >&6; } 10468 can_add_to_cflags=yes 10469 # 10470 # The compile supports this; do we have some C code for 10471 # which the warning should *not* appear? 10472 # We test the fourth argument because the third argument 10473 # could contain quotes, breaking the test. 10474 # 10475 if test "x" != "x" 10476 then 10477 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors" 10478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wused-but-marked-unused " >&5 10479$as_echo_n "checking whether -Wused-but-marked-unused ... " >&6; } 10480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10481/* end confdefs.h. */ 10482 10483_ACEOF 10484if ac_fn_c_try_compile "$LINENO"; then : 10485 10486 # 10487 # Not a problem. 10488 # 10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10490$as_echo "no" >&6; } 10491 10492else 10493 10494 # 10495 # A problem. 10496 # 10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10498$as_echo "yes" >&6; } 10499 can_add_to_cflags=no 10500 10501fi 10502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10503 fi 10504 CFLAGS="$save_CFLAGS" 10505 if test x"$can_add_to_cflags" = "xyes" 10506 then 10507 V_CCOPT="$V_CCOPT -Wused-but-marked-unused" 10508 fi 10509 10510else 10511 10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10513$as_echo "no" >&6; } 10514 CFLAGS="$save_CFLAGS" 10515 10516fi 10517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10518 10519 # Warns about safeguards added in case the enums are 10520 # extended 10521 # AC_LBL_CHECK_COMPILER_OPT(V_CCOPT, -Wcovered-switch-default) 10522 # 10523 # This can cause problems with ntohs(), ntohl(), 10524 # htons(), and htonl() on some platforms, such 10525 # as OpenBSD 6.3 with Clang 5.0.1. I guess the 10526 # problem is that the macro that ultimately does 10527 # the byte-swapping involves a conditional 10528 # expression that tests whether the value being 10529 # swapped is a compile-time constant or not, 10530 # using __builtin_constant_p(), and, depending 10531 # on whether it is, does a compile-time swap or 10532 # a run-time swap; perhaps the compiler always 10533 # considers one of the two results of the 10534 # conditional expressin is never evaluated, 10535 # because the conditional check is done at 10536 # compile time, and thus always says "that 10537 # expression is never executed". 10538 # 10539 # (Perhaps there should be a way of flagging 10540 # an expression that you *want* evaluated at 10541 # compile time, so that the compiler 1) warns 10542 # if it *can't* be evaluated at compile time 10543 # and 2) *doesn't* warn that the true or false 10544 # branch will never be reached.) 10545 # 10546 10547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wunreachable-code option" >&5 10548$as_echo_n "checking whether the compiler supports the -Wunreachable-code option... " >&6; } 10549 save_CFLAGS="$CFLAGS" 10550 if expr "x-Wunreachable-code" : "x-W.*" >/dev/null 10551 then 10552 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wunreachable-code" 10553 elif expr "x-Wunreachable-code" : "x-f.*" >/dev/null 10554 then 10555 CFLAGS="$CFLAGS -Werror -Wunreachable-code" 10556 elif expr "x-Wunreachable-code" : "x-m.*" >/dev/null 10557 then 10558 CFLAGS="$CFLAGS -Werror -Wunreachable-code" 10559 else 10560 CFLAGS="$CFLAGS -Wunreachable-code" 10561 fi 10562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10563/* end confdefs.h. */ 10564 10565int 10566main () 10567{ 10568return 0 10569 ; 10570 return 0; 10571} 10572_ACEOF 10573if ac_fn_c_try_compile "$LINENO"; then : 10574 10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10576$as_echo "yes" >&6; } 10577 can_add_to_cflags=yes 10578 # 10579 # The compile supports this; do we have some C code for 10580 # which the warning should *not* appear? 10581 # We test the fourth argument because the third argument 10582 # could contain quotes, breaking the test. 10583 # 10584 if test "xgenerates warnings from ntohs()" != "x" 10585 then 10586 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors" 10587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wunreachable-code generates warnings from ntohs()" >&5 10588$as_echo_n "checking whether -Wunreachable-code generates warnings from ntohs()... " >&6; } 10589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10590/* end confdefs.h. */ 10591#include <arpa/inet.h> 10592 10593unsigned short 10594testme(unsigned short a) 10595{ 10596 return ntohs(a); 10597} 10598 10599_ACEOF 10600if ac_fn_c_try_compile "$LINENO"; then : 10601 10602 # 10603 # Not a problem. 10604 # 10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10606$as_echo "no" >&6; } 10607 10608else 10609 10610 # 10611 # A problem. 10612 # 10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10614$as_echo "yes" >&6; } 10615 can_add_to_cflags=no 10616 10617fi 10618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10619 fi 10620 CFLAGS="$save_CFLAGS" 10621 if test x"$can_add_to_cflags" = "xyes" 10622 then 10623 V_CCOPT="$V_CCOPT -Wunreachable-code" 10624 fi 10625 10626else 10627 10628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10629$as_echo "no" >&6; } 10630 CFLAGS="$save_CFLAGS" 10631 10632fi 10633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10634 10635 10636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wshorten-64-to-32 option" >&5 10637$as_echo_n "checking whether the compiler supports the -Wshorten-64-to-32 option... " >&6; } 10638 save_CFLAGS="$CFLAGS" 10639 if expr "x-Wshorten-64-to-32" : "x-W.*" >/dev/null 10640 then 10641 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wshorten-64-to-32" 10642 elif expr "x-Wshorten-64-to-32" : "x-f.*" >/dev/null 10643 then 10644 CFLAGS="$CFLAGS -Werror -Wshorten-64-to-32" 10645 elif expr "x-Wshorten-64-to-32" : "x-m.*" >/dev/null 10646 then 10647 CFLAGS="$CFLAGS -Werror -Wshorten-64-to-32" 10648 else 10649 CFLAGS="$CFLAGS -Wshorten-64-to-32" 10650 fi 10651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10652/* end confdefs.h. */ 10653 10654int 10655main () 10656{ 10657return 0 10658 ; 10659 return 0; 10660} 10661_ACEOF 10662if ac_fn_c_try_compile "$LINENO"; then : 10663 10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10665$as_echo "yes" >&6; } 10666 can_add_to_cflags=yes 10667 # 10668 # The compile supports this; do we have some C code for 10669 # which the warning should *not* appear? 10670 # We test the fourth argument because the third argument 10671 # could contain quotes, breaking the test. 10672 # 10673 if test "x" != "x" 10674 then 10675 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors" 10676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wshorten-64-to-32 " >&5 10677$as_echo_n "checking whether -Wshorten-64-to-32 ... " >&6; } 10678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10679/* end confdefs.h. */ 10680 10681_ACEOF 10682if ac_fn_c_try_compile "$LINENO"; then : 10683 10684 # 10685 # Not a problem. 10686 # 10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10688$as_echo "no" >&6; } 10689 10690else 10691 10692 # 10693 # A problem. 10694 # 10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10696$as_echo "yes" >&6; } 10697 can_add_to_cflags=no 10698 10699fi 10700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10701 fi 10702 CFLAGS="$save_CFLAGS" 10703 if test x"$can_add_to_cflags" = "xyes" 10704 then 10705 V_CCOPT="$V_CCOPT -Wshorten-64-to-32" 10706 fi 10707 10708else 10709 10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10711$as_echo "no" >&6; } 10712 CFLAGS="$save_CFLAGS" 10713 10714fi 10715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10716 10717 fi 10718 10719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports generating dependencies" >&5 10720$as_echo_n "checking whether the compiler supports generating dependencies... " >&6; } 10721 if test "$GCC" = yes ; then 10722 # 10723 # GCC, or a compiler deemed to be GCC by AC_PROG_CC (even 10724 # though it's not); we assume that, in this case, the flag 10725 # would be -M. 10726 # 10727 ac_lbl_dependency_flag="-M" 10728 else 10729 # 10730 # Not GCC or a compiler deemed to be GCC; what platform is 10731 # this? (We're assuming that if the compiler isn't GCC 10732 # it's the compiler from the vendor of the OS; that won't 10733 # necessarily be true for x86 platforms, where it might be 10734 # the Intel C compiler.) 10735 # 10736 case "$host_os" in 10737 10738 irix*|osf*|darwin*) 10739 # 10740 # MIPS C for IRIX, DEC C, and clang all use -M. 10741 # 10742 ac_lbl_dependency_flag="-M" 10743 ;; 10744 10745 solaris*) 10746 # 10747 # Sun C uses -xM. 10748 # 10749 ac_lbl_dependency_flag="-xM" 10750 ;; 10751 10752 hpux*) 10753 # 10754 # HP's older C compilers don't support this. 10755 # HP's newer C compilers support this with 10756 # either +M or +Make; the older compilers 10757 # interpret +M as something completely 10758 # different, so we use +Make so we don't 10759 # think it works with the older compilers. 10760 # 10761 ac_lbl_dependency_flag="+Make" 10762 ;; 10763 10764 *) 10765 # 10766 # Not one of the above; assume no support for 10767 # generating dependencies. 10768 # 10769 ac_lbl_dependency_flag="" 10770 ;; 10771 esac 10772 fi 10773 10774 # 10775 # Is ac_lbl_dependency_flag defined and, if so, does the compiler 10776 # complain about it? 10777 # 10778 # Note: clang doesn't seem to exit with an error status when handed 10779 # an unknown non-warning error, even if you pass it 10780 # -Werror=unknown-warning-option. However, it always supports 10781 # -M, so the fact that this test always succeeds with clang 10782 # isn't an issue. 10783 # 10784 if test ! -z "$ac_lbl_dependency_flag"; then 10785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10786/* end confdefs.h. */ 10787int main(void) { return 0; } 10788_ACEOF 10789 if { { $as_echo "$as_me:${as_lineno-$LINENO}: eval \"\$CC \$ac_lbl_dependency_flag conftest.c >/dev/null 2>&1\""; } >&5 10790 (eval "$CC $ac_lbl_dependency_flag conftest.c >/dev/null 2>&1") 2>&5 10791 ac_status=$? 10792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10793 test $ac_status = 0; }; then 10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with $ac_lbl_dependency_flag" >&5 10795$as_echo "yes, with $ac_lbl_dependency_flag" >&6; } 10796 DEPENDENCY_CFLAG="$ac_lbl_dependency_flag" 10797 MKDEP='${top_srcdir}/mkdep' 10798 else 10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10800$as_echo "no" >&6; } 10801 # 10802 # We can't run mkdep, so have "make depend" do 10803 # nothing. 10804 # 10805 MKDEP='${top_srcdir}/nomkdep' 10806 fi 10807 rm -rf conftest* 10808 else 10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10810$as_echo "no" >&6; } 10811 # 10812 # We can't run mkdep, so have "make depend" do 10813 # nothing. 10814 # 10815 MKDEP='${top_srcdir}/nomkdep' 10816 fi 10817 10818 10819 10820 # 10821 # We used to set -n32 for IRIX 6 when not using GCC (presumed 10822 # to mean that we're using MIPS C or MIPSpro C); it specified 10823 # the "new" faster 32-bit ABI, introduced in IRIX 6.2. I'm 10824 # not sure why that would be something to do *only* with a 10825 # .devel file; why should the ABI for which we produce code 10826 # depend on .devel? 10827 # 10828 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'` 10829 name="lbl/os-$os.h" 10830 if test -f $name ; then 10831 ln -s $name os-proto.h 10832 10833$as_echo "#define HAVE_OS_PROTO_H 1" >>confdefs.h 10834 10835 else 10836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find $name" >&5 10837$as_echo "$as_me: WARNING: can't find $name" >&2;} 10838 fi 10839 fi 10840 10841# 10842# Check to see if the sockaddr struct has the 4.4 BSD sa_len member. 10843# 10844ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" " 10845 #include <sys/types.h> 10846 #include <sys/socket.h> 10847 10848" 10849if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then : 10850 10851cat >>confdefs.h <<_ACEOF 10852#define HAVE_STRUCT_SOCKADDR_SA_LEN 1 10853_ACEOF 10854 10855 10856fi 10857 10858 10859# 10860# Check to see if there's a sockaddr_storage structure. 10861# 10862ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" " 10863 #include <sys/types.h> 10864 #include <sys/socket.h> 10865 10866" 10867if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then : 10868 10869cat >>confdefs.h <<_ACEOF 10870#define HAVE_STRUCT_SOCKADDR_STORAGE 1 10871_ACEOF 10872 10873 10874fi 10875 10876 10877# 10878# Check to see if the dl_hp_ppa_info_t struct has the HP-UX 11.00 10879# dl_module_id_1 member. 10880# 10881# NOTE: any failure means we conclude that it doesn't have that member, 10882# so if we don't have DLPI, don't have a <sys/dlpi_ext.h> header, or 10883# have one that doesn't declare a dl_hp_ppa_info_t type, we conclude 10884# it doesn't have that member (which is OK, as either we won't be 10885# using code that would use that member, or we wouldn't compile in 10886# any case). 10887# 10888ac_fn_c_check_member "$LINENO" "dl_hp_ppa_info_t" "dl_module_id_1" "ac_cv_member_dl_hp_ppa_info_t_dl_module_id_1" " 10889 #include <sys/types.h> 10890 #include <sys/dlpi.h> 10891 #include <sys/dlpi_ext.h> 10892 10893" 10894if test "x$ac_cv_member_dl_hp_ppa_info_t_dl_module_id_1" = xyes; then : 10895 10896cat >>confdefs.h <<_ACEOF 10897#define HAVE_DL_HP_PPA_INFO_T_DL_MODULE_ID_1 1 10898_ACEOF 10899 10900 10901fi 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935# 10936# Various Linux-specific mechanisms. 10937# 10938# Check whether --enable-usb was given. 10939if test "${enable_usb+set}" = set; then : 10940 enableval=$enable_usb; 10941else 10942 enable_usb=yes 10943fi 10944 10945 10946# 10947# If somebody requested an XXX-only pcap, that doesn't include 10948# additional mechanisms. 10949# 10950if test "xxx_only" != yes; then 10951 case "$host_os" in 10952 linux*) 10953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux usbmon USB sniffing support" >&5 10954$as_echo_n "checking for Linux usbmon USB sniffing support... " >&6; } 10955 if test "x$enable_usb" != "xno" ; then 10956 10957$as_echo "#define PCAP_SUPPORT_LINUX_USBMON 1" >>confdefs.h 10958 10959 MODULE_C_SRC="$MODULE_C_SRC pcap-usb-linux.c" 10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10961$as_echo "yes" >&6; } 10962 ac_usb_dev_name=`udevinfo -q name -p /sys/class/usb_device/usbmon 2>/dev/null` 10963 if test $? -ne 0 ; then 10964 ac_usb_dev_name="usbmon" 10965 fi 10966 10967cat >>confdefs.h <<_ACEOF 10968#define LINUX_USB_MON_DEV "/dev/$ac_usb_dev_name" 10969_ACEOF 10970 10971 { $as_echo "$as_me:${as_lineno-$LINENO}: Device for USB sniffing is /dev/$ac_usb_dev_name" >&5 10972$as_echo "$as_me: Device for USB sniffing is /dev/$ac_usb_dev_name" >&6;} 10973 # 10974 # Do we have a version of <linux/compiler.h> available? 10975 # If so, we might need it for <linux/usbdevice_fs.h>. 10976 # 10977 for ac_header in linux/compiler.h 10978do : 10979 ac_fn_c_check_header_mongrel "$LINENO" "linux/compiler.h" "ac_cv_header_linux_compiler_h" "$ac_includes_default" 10980if test "x$ac_cv_header_linux_compiler_h" = xyes; then : 10981 cat >>confdefs.h <<_ACEOF 10982#define HAVE_LINUX_COMPILER_H 1 10983_ACEOF 10984 10985fi 10986 10987done 10988 10989 if test "$ac_cv_header_linux_compiler_h" = yes; then 10990 # 10991 # Yes - include it when testing for <linux/usbdevice_fs.h>. 10992 # 10993 for ac_header in linux/usbdevice_fs.h 10994do : 10995 ac_fn_c_check_header_compile "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "#include <linux/compiler.h> 10996" 10997if test "x$ac_cv_header_linux_usbdevice_fs_h" = xyes; then : 10998 cat >>confdefs.h <<_ACEOF 10999#define HAVE_LINUX_USBDEVICE_FS_H 1 11000_ACEOF 11001 11002fi 11003 11004done 11005 11006 else 11007 for ac_header in linux/usbdevice_fs.h 11008do : 11009 ac_fn_c_check_header_mongrel "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "$ac_includes_default" 11010if test "x$ac_cv_header_linux_usbdevice_fs_h" = xyes; then : 11011 cat >>confdefs.h <<_ACEOF 11012#define HAVE_LINUX_USBDEVICE_FS_H 1 11013_ACEOF 11014 11015fi 11016 11017done 11018 11019 fi 11020 if test "$ac_cv_header_linux_usbdevice_fs_h" = yes; then 11021 # 11022 # OK, does it define bRequestType? Older versions of the kernel 11023 # define fields with names like "requesttype, "request", and 11024 # "value", rather than "bRequestType", "bRequest", and 11025 # "wValue". 11026 # 11027 ac_fn_c_check_member "$LINENO" "struct usbdevfs_ctrltransfer" "bRequestType" "ac_cv_member_struct_usbdevfs_ctrltransfer_bRequestType" " 11028 $ac_includes_default 11029 #ifdef HAVE_LINUX_COMPILER_H 11030 #include <linux/compiler.h> 11031 #endif 11032 #include <linux/usbdevice_fs.h> 11033 11034" 11035if test "x$ac_cv_member_struct_usbdevfs_ctrltransfer_bRequestType" = xyes; then : 11036 11037cat >>confdefs.h <<_ACEOF 11038#define HAVE_STRUCT_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE 1 11039_ACEOF 11040 11041 11042fi 11043 11044 fi 11045 else 11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11047$as_echo "no" >&6; } 11048 fi 11049 11050 # 11051 # Life's too short to deal with trying to get this to compile 11052 # if you don't get the right types defined with 11053 # __KERNEL_STRICT_NAMES getting defined by some other include. 11054 # 11055 # Check whether the includes Just Work. If not, don't turn on 11056 # netfilter support. 11057 # 11058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the netfilter support" >&5 11059$as_echo_n "checking whether we can compile the netfilter support... " >&6; } 11060 if ${ac_cv_netfilter_can_compile+:} false; then : 11061 $as_echo_n "(cached) " >&6 11062else 11063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11064/* end confdefs.h. */ 11065 11066$ac_includes_default 11067#include <sys/socket.h> 11068#include <netinet/in.h> 11069#include <linux/types.h> 11070 11071#include <linux/netlink.h> 11072#include <linux/netfilter.h> 11073#include <linux/netfilter/nfnetlink.h> 11074#include <linux/netfilter/nfnetlink_log.h> 11075#include <linux/netfilter/nfnetlink_queue.h> 11076int 11077main () 11078{ 11079 11080 ; 11081 return 0; 11082} 11083_ACEOF 11084if ac_fn_c_try_compile "$LINENO"; then : 11085 ac_cv_netfilter_can_compile=yes 11086else 11087 ac_cv_netfilter_can_compile=no 11088fi 11089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11090fi 11091 11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_netfilter_can_compile" >&5 11093$as_echo "$ac_cv_netfilter_can_compile" >&6; } 11094 if test $ac_cv_netfilter_can_compile = yes ; then 11095 11096$as_echo "#define PCAP_SUPPORT_NETFILTER 1" >>confdefs.h 11097 11098 MODULE_C_SRC="$MODULE_C_SRC pcap-netfilter-linux.c" 11099 fi 11100 ;; 11101 esac 11102fi 11103 11104 11105 11106# Check whether --enable-netmap was given. 11107if test "${enable_netmap+set}" = set; then : 11108 enableval=$enable_netmap; 11109else 11110 enable_netmap=yes 11111fi 11112 11113 11114if test "x$enable_netmap" != "xno" ; then 11115 # 11116 # Check whether net/netmap_user.h is usable if NETMAP_WITH_LIBS is 11117 # defined; it's not usable on DragonFly BSD 4.6 if NETMAP_WITH_LIBS 11118 # is defined, for example, as it includes a non-existent malloc.h 11119 # header. 11120 # 11121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the netmap support" >&5 11122$as_echo_n "checking whether we can compile the netmap support... " >&6; } 11123 if ${ac_cv_net_netmap_user_can_compile+:} false; then : 11124 $as_echo_n "(cached) " >&6 11125else 11126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11127/* end confdefs.h. */ 11128 11129$ac_includes_default 11130#define NETMAP_WITH_LIBS 11131#include <net/netmap_user.h> 11132int 11133main () 11134{ 11135 11136 ; 11137 return 0; 11138} 11139_ACEOF 11140if ac_fn_c_try_compile "$LINENO"; then : 11141 ac_cv_net_netmap_user_can_compile=yes 11142else 11143 ac_cv_net_netmap_user_can_compile=no 11144fi 11145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11146fi 11147 11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_net_netmap_user_can_compile" >&5 11149$as_echo "$ac_cv_net_netmap_user_can_compile" >&6; } 11150 if test $ac_cv_net_netmap_user_can_compile = yes ; then 11151 11152$as_echo "#define PCAP_SUPPORT_NETMAP 1" >>confdefs.h 11153 11154 MODULE_C_SRC="$MODULE_C_SRC pcap-netmap.c" 11155 fi 11156 11157fi 11158 11159# Check for DPDK support. 11160 11161# Check whether --with-dpdk was given. 11162if test "${with_dpdk+set}" = set; then : 11163 withval=$with_dpdk; 11164 if test "$withval" = no 11165 then 11166 # User doesn't want DPDK support. 11167 want_dpdk=no 11168 elif test "$withval" = yes 11169 then 11170 # User wants DPDK support but hasn't specified a directory. 11171 want_dpdk=yes 11172 else 11173 # User wants DPDK support and has specified a directory, 11174 # so use the provided value. 11175 want_dpdk=yes 11176 dpdk_dir=$withval 11177 fi 11178 11179else 11180 11181 if test "$V_PCAP" = dpdk; then 11182 # User requested DPDK-only libpcap, so we'd better have 11183 # the DPDK API. 11184 want_dpdk=yes 11185 elif test "xxx_only" = yes; then 11186 # User requested something-else-only pcap, so they don't 11187 # want DPDK support. 11188 want_dpdk=no 11189 else 11190 # 11191 # Use DPDK API if present, otherwise don't 11192 # 11193 want_dpdk=ifpresent 11194 fi 11195 11196fi 11197 11198 11199if test "$want_dpdk" != no; then 11200 if test "x$PKGCONFIG" != "xno" 11201 then 11202 # 11203 # We have pkg-config; see if we have DPDK installed 11204 # as a package. 11205 # 11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPDK with pkg-config" >&5 11207$as_echo_n "checking for DPDK with pkg-config... " >&6; } 11208 if "$PKGCONFIG" libdpdk 11209 then 11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 11211$as_echo "found" >&6; } 11212 found_dpdk_with_pkg_config=yes 11213 DPDK_CFLAGS=`"$PKGCONFIG" --cflags libdpdk` 11214 DPDK_LDFLAGS=`"$PKGCONFIG" --libs libdpdk` 11215 else 11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11217$as_echo "not found" >&6; } 11218 fi 11219 fi 11220 11221 # 11222 # If we didn't find it with pkg-config, try checking for 11223 # it manually. 11224 # 11225 if test "x$found_dpdk_with_pkg_config" != "xyes" 11226 then 11227 if test -z "$dpdk_dir"; then 11228 # 11229 # The user didn't specify a directory containing 11230 # the DPDK headers and libraries. If we find 11231 # a /usr/local/include/dpdk directory, assume 11232 # it's /usr/local, otherwise assume it's /usr. 11233 # 11234 if test -d "/usr/local/include/dpdk"; then 11235 dpdk_dir="/usr/local" 11236 else 11237 dpdk_dir="/usr" 11238 fi 11239 fi 11240 # 11241 # The convention appears to be that 1) there's a "dpdk" 11242 # subdirectory of the include directory, containing DPDK 11243 # headers (at least in the installation on Ubuntu with 11244 # the system DPDK packages) and 2) includes of DPDK 11245 # headers don't use "dpdk/{header}" (at least from the 11246 # way the DPDK documentation is written). 11247 # 11248 # So we add "/dpdk" to the include directory, and always 11249 # add that to the list of include directories to search. 11250 # 11251 dpdk_inc_dir="$dpdk_dir/include/dpdk" 11252 dpdk_inc_flags="-I$dpdk_inc_dir" 11253 dpdk_lib_dir="$dpdk_dir/lib" 11254 # 11255 # Handle multiarch systems. 11256 # 11257 # Step 1: run the C compiler with the -dumpmachine option; 11258 # if it succeeds, the output would be the multiarch directory 11259 # name if your system has multiarch directories. 11260 # 11261 multiarch_dir=`$CC -dumpmachine 2>/dev/null` 11262 if test ! -z "$multiarch_dir" 11263 then 11264 # 11265 # OK, we have a multiarch directory. 11266 # 11267 # Now deal with includes. On Ubuntu 20.04, for 11268 # example, we have /usr/include/dpdk *and* 11269 # /usr/include/$multiarch_dir/dpdk, and must 11270 # search both. 11271 # 11272 if test -d "$dpdk_dir/include/$multiarch_dir/dpdk" 11273 then 11274 dpdk_inc_flags="-I$dpdk_dir/include/$multiarch_dir/dpdk $dpdk_inc_flags" 11275 fi 11276 11277 # 11278 # Now deal with libraries. 11279 # 11280 if test -d "$dpdk_lib_dir/$multiarch_dir" 11281 then 11282 dpdk_lib_dir="$dpdk_lib_dir/$multiarch_dir" 11283 fi 11284 fi 11285 DPDK_MACHINE_CFLAGS="-march=native" 11286 DPDK_CFLAGS="$DPDK_MACHINE_CFLAGS $dpdk_inc_flags" 11287 DPDK_LDFLAGS="-L$dpdk_lib_dir -ldpdk -lrt -lm -lnuma -ldl -pthread" 11288 fi 11289 11290 save_CFLAGS="$CFLAGS" 11291 save_LIBS="$LIBS" 11292 save_LDFLAGS="$LDFLAGS" 11293 CFLAGS="$CFLAGS $DPDK_CFLAGS" 11294 LIBS="$LIBS $DPDK_LDFLAGS" 11295 LDFLAGS="$LDFLAGS $DPDK_LDFLAGS" 11296 11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the DPDK support" >&5 11298$as_echo_n "checking whether we can compile the DPDK support... " >&6; } 11299 if ${ac_cv_dpdk_can_compile+:} false; then : 11300 $as_echo_n "(cached) " >&6 11301else 11302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11303/* end confdefs.h. */ 11304 11305$ac_includes_default 11306#include <rte_common.h> 11307int 11308main () 11309{ 11310 11311 ; 11312 return 0; 11313} 11314_ACEOF 11315if ac_fn_c_try_compile "$LINENO"; then : 11316 ac_cv_dpdk_can_compile=yes 11317else 11318 ac_cv_dpdk_can_compile=no 11319fi 11320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11321fi 11322 11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dpdk_can_compile" >&5 11324$as_echo "$ac_cv_dpdk_can_compile" >&6; } 11325 11326 # 11327 # We include rte_bus.h, and older versions of DPDK 11328 # didn't have it, so check for it. 11329 # 11330 if test "$ac_cv_dpdk_can_compile" = yes; then 11331 # 11332 # This runs the preprocessor, so make sure it 11333 # looks in the DPDK directories. Instead of 11334 # including dpdk/XXX.h, we include just XXX.h 11335 # and assume DPDK_CFLAGS is the directory 11336 # containing the DPDK headers (that's how 11337 # pkg-config sets it, at least on Ubuntu), 11338 # so just looking under /usr/include won't 11339 # find it. 11340 # 11341 save_CPPFLAGS="$CPPFLAGS" 11342 CPPFLAGS="$CPPFLAGS $DPDK_CFLAGS" 11343 ac_fn_c_check_header_mongrel "$LINENO" "rte_bus.h" "ac_cv_header_rte_bus_h" "$ac_includes_default" 11344if test "x$ac_cv_header_rte_bus_h" = xyes; then : 11345 11346fi 11347 11348 11349 CPPFLAGS="$save_CPPFLAGS" 11350 fi 11351 11352 # 11353 # We call rte_eth_dev_count_avail(), and older versions 11354 # of DPDK didn't have it, so check for it. 11355 # 11356 if test "$ac_cv_header_rte_bus_h" = yes; then 11357 ac_fn_c_check_func "$LINENO" "rte_eth_dev_count_avail" "ac_cv_func_rte_eth_dev_count_avail" 11358if test "x$ac_cv_func_rte_eth_dev_count_avail" = xyes; then : 11359 11360fi 11361 11362 fi 11363 11364 CFLAGS="$save_CFLAGS" 11365 LIBS="$save_LIBS" 11366 LDFLAGS="$save_LDFLAGS" 11367 11368 if test "$ac_cv_func_rte_eth_dev_count_avail" = yes; then 11369 CFLAGS="$CFLAGS $DPDK_CFLAGS" 11370 LIBS="$LIBS $DPDK_LDFLAGS" 11371 LDFLAGS="$LDFLAGS $DPDK_LDFLAGS" 11372 V_INCLS="$V_INCLS $DPDK_CFLAGS" 11373 11374$as_echo "#define PCAP_SUPPORT_DPDK 1" >>confdefs.h 11375 11376 if test $V_PCAP != dpdk ; then 11377 MODULE_C_SRC="$MODULE_C_SRC pcap-dpdk.c" 11378 fi 11379 11380 # 11381 # Check whether the rte_ether.h file defines 11382 # struct ether_addr or struct rte_ether_addr. 11383 # 11384 # ("API compatibility? That's for losers!") 11385 # 11386 ac_fn_c_check_type "$LINENO" "struct rte_ether_addr" "ac_cv_type_struct_rte_ether_addr" " 11387 #include <rte_ether.h> 11388 11389" 11390if test "x$ac_cv_type_struct_rte_ether_addr" = xyes; then : 11391 11392cat >>confdefs.h <<_ACEOF 11393#define HAVE_STRUCT_RTE_ETHER_ADDR 1 11394_ACEOF 11395 11396 11397fi 11398 11399 else 11400 if test "$V_PCAP" = dpdk; then 11401 # User requested DPDK-only capture support, but 11402 # we couldn't the DPDK API support at all, or we 11403 # found it but it wasn't a sufficiently recent 11404 # version. 11405 if test "$ac_cv_dpdk_can_compile" != yes; then 11406 # 11407 # Couldn't even find the headers. 11408 # 11409 as_fn_error $? "DPDK support requested with --with-pcap=dpdk, but the DPDK headers weren't found at $dpdk_inc_dir: make sure the DPDK support is installed, specify a different path or paths if necessary, or don't request DPDK support" "$LINENO" 5 11410 else 11411 # 11412 # Found the headers, but we couldn't find 11413 # rte_bus.h or rte_eth_dev_count_avail(), 11414 # we don't have a sufficiently recent 11415 # version of DPDK. 11416 # 11417 as_fn_error $? "DPDK support requested with --with-pcap=dpdk, but we require DPDK 18.x or later; install a newer version of DPDK, or don't request DPDK support" "$LINENO" 5 11418 fi 11419 fi 11420 11421 if test "$want_dpdk" = yes; then 11422 # User requested DPDK-only capture support, but 11423 # we couldn't the DPDK API support at all, or we 11424 # found it but it wasn't a sufficiently recent 11425 # version. 11426 if test "$ac_cv_dpdk_can_compile" != yes; then 11427 # 11428 # Couldn't even find the headers. 11429 # 11430 as_fn_error $? "DPDK support requested with --with-pcap=dpdk, but the DPDK headers weren't found at $dpdk_inc_dir: make sure the DPDK support is installed, specify a different path or paths if necessary, or don't request DPDK support" "$LINENO" 5 11431 else 11432 # 11433 # Found the headers, but we couldn't find 11434 # rte_bus.h or rte_eth_dev_count_avail(), 11435 # we don't have a sufficiently recent 11436 # version of DPDK. 11437 # 11438 as_fn_error $? "DPDK support requested with --with-pcap=dpdk, but we require DPDK 18.x or later: install a newer version of DPDK, or don't request DPDK support" "$LINENO" 5 11439 fi 11440 fi 11441 fi 11442fi 11443 11444 11445# Check whether --enable-bluetooth was given. 11446if test "${enable_bluetooth+set}" = set; then : 11447 enableval=$enable_bluetooth; 11448else 11449 enable_bluetooth=ifsupportavailable 11450fi 11451 11452 11453if test "xxx_only" = yes; then 11454 # User requested something-else-only pcap, so they don't 11455 # want Bluetooth support. 11456 enable_bluetooth=no 11457fi 11458 11459if test "x$enable_bluetooth" != "xno" ; then 11460 case "$host_os" in 11461 linux*) 11462 ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default" 11463if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then : 11464 11465 # 11466 # We have bluetooth.h, so we support Bluetooth 11467 # sniffing. 11468 # 11469 11470$as_echo "#define PCAP_SUPPORT_BT 1" >>confdefs.h 11471 11472 MODULE_C_SRC="$MODULE_C_SRC pcap-bt-linux.c" 11473 { $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is supported" >&5 11474$as_echo "$as_me: Bluetooth sniffing is supported" >&6;} 11475 ac_lbl_bluetooth_available=yes 11476 11477 # 11478 # OK, does struct sockaddr_hci have an hci_channel 11479 # member? 11480 # 11481 ac_fn_c_check_member "$LINENO" "struct sockaddr_hci" "hci_channel" "ac_cv_member_struct_sockaddr_hci_hci_channel" " 11482 #include <bluetooth/bluetooth.h> 11483 #include <bluetooth/hci.h> 11484 11485" 11486if test "x$ac_cv_member_struct_sockaddr_hci_hci_channel" = xyes; then : 11487 11488cat >>confdefs.h <<_ACEOF 11489#define HAVE_STRUCT_SOCKADDR_HCI_HCI_CHANNEL 1 11490_ACEOF 11491 11492 11493 # 11494 # Yes; is HCI_CHANNEL_MONITOR defined? 11495 # 11496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if HCI_CHANNEL_MONITOR is defined" >&5 11497$as_echo_n "checking if HCI_CHANNEL_MONITOR is defined... " >&6; } 11498 if ${ac_cv_lbl_hci_channel_monitor_is_defined+:} false; then : 11499 $as_echo_n "(cached) " >&6 11500else 11501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11502/* end confdefs.h. */ 11503 11504 #include <bluetooth/bluetooth.h> 11505 #include <bluetooth/hci.h> 11506 11507int 11508main () 11509{ 11510 11511 u_int i = HCI_CHANNEL_MONITOR; 11512 11513 ; 11514 return 0; 11515} 11516_ACEOF 11517if ac_fn_c_try_compile "$LINENO"; then : 11518 11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11520$as_echo "yes" >&6; } 11521 11522$as_echo "#define PCAP_SUPPORT_BT_MONITOR /**/" >>confdefs.h 11523 11524 MODULE_C_SRC="$MODULE_C_SRC pcap-bt-monitor-linux.c" 11525 11526else 11527 11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11529$as_echo "no" >&6; } 11530 11531fi 11532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11533fi 11534 11535 11536fi 11537 11538 11539else 11540 11541 # 11542 # We don't have bluetooth.h, so we don't support 11543 # Bluetooth sniffing. 11544 # 11545 if test "x$enable_bluetooth" = "xyes" ; then 11546 as_fn_error $? "Bluetooth sniffing is not supported; install bluez-lib devel to enable it" "$LINENO" 5 11547 else 11548 { $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5 11549$as_echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;} 11550 fi 11551 11552fi 11553 11554 11555 ;; 11556 *) 11557 if test "x$enable_bluetooth" = "xyes" ; then 11558 as_fn_error $? "no Bluetooth sniffing support implemented for $host_os" "$LINENO" 5 11559 else 11560 { $as_echo "$as_me:${as_lineno-$LINENO}: no Bluetooth sniffing support implemented for $host_os" >&5 11561$as_echo "$as_me: no Bluetooth sniffing support implemented for $host_os" >&6;} 11562 fi 11563 ;; 11564 esac 11565 11566fi 11567 11568# Check whether --enable-dbus was given. 11569if test "${enable_dbus+set}" = set; then : 11570 enableval=$enable_dbus; 11571else 11572 enable_dbus=ifavailable 11573fi 11574 11575 11576if test "xxx_only" = yes; then 11577 # User requested something-else-only pcap, so they don't 11578 # want D-Bus support. 11579 enable_dbus=no 11580fi 11581 11582if test "x$enable_dbus" != "xno"; then 11583 if test "x$enable_dbus" = "xyes"; then 11584 case "$host_os" in 11585 11586 darwin*) 11587 # 11588 # We don't support D-Bus sniffing on macOS; see 11589 # 11590 # https://bugs.freedesktop.org/show_bug.cgi?id=74029 11591 # 11592 # The user requested it, so fail. 11593 # 11594 as_fn_error $? "Due to freedesktop.org bug 74029, D-Bus capture support is not available on macOS" "$LINENO" 5 11595 esac 11596 else 11597 case "$host_os" in 11598 11599 darwin*) 11600 # 11601 # We don't support D-Bus sniffing on macOS; see 11602 # 11603 # https://bugs.freedesktop.org/show_bug.cgi?id=74029 11604 # 11605 # The user dind't explicitly request it, so just 11606 # silently refuse to enable it. 11607 # 11608 enable_dbus="no" 11609 ;; 11610 esac 11611 fi 11612fi 11613 11614if test "x$enable_dbus" != "xno"; then 11615 if test "x$PKGCONFIG" != "xno"; then 11616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus" >&5 11617$as_echo_n "checking for D-Bus... " >&6; } 11618 if "$PKGCONFIG" dbus-1; then 11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11620$as_echo "yes" >&6; } 11621 DBUS_CFLAGS=`"$PKGCONFIG" --cflags dbus-1` 11622 DBUS_LIBS=`"$PKGCONFIG" --libs dbus-1` 11623 save_CFLAGS="$CFLAGS" 11624 save_LIBS="$LIBS" 11625 CFLAGS="$CFLAGS $DBUS_CFLAGS" 11626 LIBS="$LIBS $DBUS_LIBS" 11627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D-Bus library defines dbus_connection_read_write" >&5 11628$as_echo_n "checking whether the D-Bus library defines dbus_connection_read_write... " >&6; } 11629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11630/* end confdefs.h. */ 11631#include <string.h> 11632 11633 #include <time.h> 11634 #include <sys/time.h> 11635 11636 #include <dbus/dbus.h> 11637int 11638main () 11639{ 11640return dbus_connection_read_write(NULL, 0); 11641 ; 11642 return 0; 11643} 11644_ACEOF 11645if ac_fn_c_try_link "$LINENO"; then : 11646 11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11648$as_echo "yes" >&6; } 11649 11650$as_echo "#define PCAP_SUPPORT_DBUS 1" >>confdefs.h 11651 11652 MODULE_C_SRC="$MODULE_C_SRC pcap-dbus.c" 11653 V_INCLS="$V_INCLS $DBUS_CFLAGS" 11654 11655else 11656 11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11658$as_echo "no" >&6; } 11659 if test "x$enable_dbus" = "xyes"; then 11660 as_fn_error $? "--enable-dbus was given, but the D-Bus library doesn't define dbus_connection_read_write()" "$LINENO" 5 11661 fi 11662 LIBS="$save_LIBS" 11663 11664fi 11665rm -f core conftest.err conftest.$ac_objext \ 11666 conftest$ac_exeext conftest.$ac_ext 11667 CFLAGS="$save_CFLAGS" 11668 else 11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11670$as_echo "no" >&6; } 11671 if test "x$enable_dbus" = "xyes"; then 11672 as_fn_error $? "--enable-dbus was given, but the dbus-1 package is not installed" "$LINENO" 5 11673 fi 11674 fi 11675 fi 11676 11677fi 11678 11679# Check whether --enable-rdma was given. 11680if test "${enable_rdma+set}" = set; then : 11681 enableval=$enable_rdma; 11682else 11683 enable_rdma=ifavailable 11684fi 11685 11686 11687if test "xxx_only" = yes; then 11688 # User requested something-else-only pcap, so they don't 11689 # want RDMA support. 11690 enable_rdma=no 11691fi 11692 11693if test "x$enable_rdma" != "xno"; then 11694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_get_device_list in -libverbs" >&5 11695$as_echo_n "checking for ibv_get_device_list in -libverbs... " >&6; } 11696if ${ac_cv_lib_ibverbs_ibv_get_device_list+:} false; then : 11697 $as_echo_n "(cached) " >&6 11698else 11699 ac_check_lib_save_LIBS=$LIBS 11700LIBS="-libverbs $LIBS" 11701cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11702/* end confdefs.h. */ 11703 11704/* Override any GCC internal prototype to avoid an error. 11705 Use char because int might match the return type of a GCC 11706 builtin and then its argument prototype would still apply. */ 11707#ifdef __cplusplus 11708extern "C" 11709#endif 11710char ibv_get_device_list (); 11711int 11712main () 11713{ 11714return ibv_get_device_list (); 11715 ; 11716 return 0; 11717} 11718_ACEOF 11719if ac_fn_c_try_link "$LINENO"; then : 11720 ac_cv_lib_ibverbs_ibv_get_device_list=yes 11721else 11722 ac_cv_lib_ibverbs_ibv_get_device_list=no 11723fi 11724rm -f core conftest.err conftest.$ac_objext \ 11725 conftest$ac_exeext conftest.$ac_ext 11726LIBS=$ac_check_lib_save_LIBS 11727fi 11728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_get_device_list" >&5 11729$as_echo "$ac_cv_lib_ibverbs_ibv_get_device_list" >&6; } 11730if test "x$ac_cv_lib_ibverbs_ibv_get_device_list" = xyes; then : 11731 11732 ac_fn_c_check_header_mongrel "$LINENO" "infiniband/verbs.h" "ac_cv_header_infiniband_verbs_h" "$ac_includes_default" 11733if test "x$ac_cv_header_infiniband_verbs_h" = xyes; then : 11734 11735 # 11736 # ibv_create_flow may be defined as a static inline 11737 # function in infiniband/verbs.h, so we can't 11738 # use AC_CHECK_LIB. 11739 # 11740 # Too bad autoconf has no AC_SYMBOL_EXISTS() 11741 # macro that works like CMake's check_symbol_exists() 11742 # function, to check do a compile check like 11743 # this (they do a clever trick to avoid having 11744 # to know the function's signature). 11745 # 11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libibverbs defines ibv_create_flow" >&5 11747$as_echo_n "checking whether libibverbs defines ibv_create_flow... " >&6; } 11748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11749/* end confdefs.h. */ 11750 11751 #include <infiniband/verbs.h> 11752 11753int 11754main () 11755{ 11756 11757 (void) ibv_create_flow((struct ibv_qp *) NULL, 11758 (struct ibv_flow_attr *) NULL); 11759 11760 ; 11761 return 0; 11762} 11763_ACEOF 11764if ac_fn_c_try_link "$LINENO"; then : 11765 11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11767$as_echo "yes" >&6; } 11768 11769$as_echo "#define PCAP_SUPPORT_RDMASNIFF /**/" >>confdefs.h 11770 11771 MODULE_C_SRC="$MODULE_C_SRC pcap-rdmasniff.c" 11772 LIBS="-libverbs $LIBS" 11773 11774else 11775 11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11777$as_echo "no" >&6; } 11778 11779 11780fi 11781rm -f core conftest.err conftest.$ac_objext \ 11782 conftest$ac_exeext conftest.$ac_ext 11783 11784fi 11785 11786 11787 11788fi 11789 11790 11791fi 11792 11793# Find a good install program. We prefer a C program (faster), 11794# so one script is as good as another. But avoid the broken or 11795# incompatible versions: 11796# SysV /etc/install, /usr/sbin/install 11797# SunOS /usr/etc/install 11798# IRIX /sbin/install 11799# AIX /bin/install 11800# AmigaOS /C/install, which installs bootblocks on floppy discs 11801# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 11802# AFS /usr/afsws/bin/install, which mishandles nonexistent args 11803# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 11804# OS/2's system install, which has a completely different semantic 11805# ./install, which can be erroneously created by make from ./install.sh. 11806# Reject install programs that cannot install multiple files. 11807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 11808$as_echo_n "checking for a BSD-compatible install... " >&6; } 11809if test -z "$INSTALL"; then 11810if ${ac_cv_path_install+:} false; then : 11811 $as_echo_n "(cached) " >&6 11812else 11813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11814for as_dir in $PATH 11815do 11816 IFS=$as_save_IFS 11817 test -z "$as_dir" && as_dir=. 11818 # Account for people who put trailing slashes in PATH elements. 11819case $as_dir/ in #(( 11820 ./ | .// | /[cC]/* | \ 11821 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 11822 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 11823 /usr/ucb/* ) ;; 11824 *) 11825 # OSF1 and SCO ODT 3.0 have their own names for install. 11826 # Don't use installbsd from OSF since it installs stuff as root 11827 # by default. 11828 for ac_prog in ginstall scoinst install; do 11829 for ac_exec_ext in '' $ac_executable_extensions; do 11830 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 11831 if test $ac_prog = install && 11832 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 11833 # AIX install. It has an incompatible calling convention. 11834 : 11835 elif test $ac_prog = install && 11836 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 11837 # program-specific install script used by HP pwplus--don't use. 11838 : 11839 else 11840 rm -rf conftest.one conftest.two conftest.dir 11841 echo one > conftest.one 11842 echo two > conftest.two 11843 mkdir conftest.dir 11844 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 11845 test -s conftest.one && test -s conftest.two && 11846 test -s conftest.dir/conftest.one && 11847 test -s conftest.dir/conftest.two 11848 then 11849 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 11850 break 3 11851 fi 11852 fi 11853 fi 11854 done 11855 done 11856 ;; 11857esac 11858 11859 done 11860IFS=$as_save_IFS 11861 11862rm -rf conftest.one conftest.two conftest.dir 11863 11864fi 11865 if test "${ac_cv_path_install+set}" = set; then 11866 INSTALL=$ac_cv_path_install 11867 else 11868 # As a last resort, use the slow shell script. Don't cache a 11869 # value for INSTALL within a source directory, because that will 11870 # break other packages using the cache if that directory is 11871 # removed, or if the value is a relative name. 11872 INSTALL=$ac_install_sh 11873 fi 11874fi 11875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 11876$as_echo "$INSTALL" >&6; } 11877 11878# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 11879# It thinks the first close brace ends the variable substitution. 11880test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 11881 11882test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 11883 11884test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 11885 11886 11887ac_config_headers="$ac_config_headers config.h" 11888 11889 11890ac_config_commands="$ac_config_commands default-1" 11891 11892ac_config_files="$ac_config_files Makefile grammar.y pcap-filter.manmisc pcap-linktype.manmisc pcap-tstamp.manmisc pcap-savefile.manfile pcap.3pcap pcap_compile.3pcap pcap_datalink.3pcap pcap_dump_open.3pcap pcap_get_tstamp_precision.3pcap pcap_list_datalinks.3pcap pcap_list_tstamp_types.3pcap pcap_open_dead.3pcap pcap_open_offline.3pcap pcap_set_immediate_mode.3pcap pcap_set_tstamp_precision.3pcap pcap_set_tstamp_type.3pcap rpcapd/Makefile rpcapd/rpcapd.manadmin rpcapd/rpcapd-config.manfile testprogs/Makefile" 11893 11894cat >confcache <<\_ACEOF 11895# This file is a shell script that caches the results of configure 11896# tests run on this system so they can be shared between configure 11897# scripts and configure runs, see configure's option --config-cache. 11898# It is not useful on other systems. If it contains results you don't 11899# want to keep, you may remove or edit it. 11900# 11901# config.status only pays attention to the cache file if you give it 11902# the --recheck option to rerun configure. 11903# 11904# `ac_cv_env_foo' variables (set or unset) will be overridden when 11905# loading this file, other *unset* `ac_cv_foo' will be assigned the 11906# following values. 11907 11908_ACEOF 11909 11910# The following way of writing the cache mishandles newlines in values, 11911# but we know of no workaround that is simple, portable, and efficient. 11912# So, we kill variables containing newlines. 11913# Ultrix sh set writes to stderr and can't be redirected directly, 11914# and sets the high bit in the cache file unless we assign to the vars. 11915( 11916 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11917 eval ac_val=\$$ac_var 11918 case $ac_val in #( 11919 *${as_nl}*) 11920 case $ac_var in #( 11921 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11922$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11923 esac 11924 case $ac_var in #( 11925 _ | IFS | as_nl) ;; #( 11926 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11927 *) { eval $ac_var=; unset $ac_var;} ;; 11928 esac ;; 11929 esac 11930 done 11931 11932 (set) 2>&1 | 11933 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11934 *${as_nl}ac_space=\ *) 11935 # `set' does not quote correctly, so add quotes: double-quote 11936 # substitution turns \\\\ into \\, and sed turns \\ into \. 11937 sed -n \ 11938 "s/'/'\\\\''/g; 11939 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11940 ;; #( 11941 *) 11942 # `set' quotes correctly as required by POSIX, so do not add quotes. 11943 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11944 ;; 11945 esac | 11946 sort 11947) | 11948 sed ' 11949 /^ac_cv_env_/b end 11950 t clear 11951 :clear 11952 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11953 t end 11954 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11955 :end' >>confcache 11956if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11957 if test -w "$cache_file"; then 11958 if test "x$cache_file" != "x/dev/null"; then 11959 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11960$as_echo "$as_me: updating cache $cache_file" >&6;} 11961 if test ! -f "$cache_file" || test -h "$cache_file"; then 11962 cat confcache >"$cache_file" 11963 else 11964 case $cache_file in #( 11965 */* | ?:*) 11966 mv -f confcache "$cache_file"$$ && 11967 mv -f "$cache_file"$$ "$cache_file" ;; #( 11968 *) 11969 mv -f confcache "$cache_file" ;; 11970 esac 11971 fi 11972 fi 11973 else 11974 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11975$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11976 fi 11977fi 11978rm -f confcache 11979 11980test "x$prefix" = xNONE && prefix=$ac_default_prefix 11981# Let make expand exec_prefix. 11982test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11983 11984DEFS=-DHAVE_CONFIG_H 11985 11986ac_libobjs= 11987ac_ltlibobjs= 11988U= 11989for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11990 # 1. Remove the extension, and $U if already installed. 11991 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11992 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11993 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11994 # will be set to the directory where LIBOBJS objects are built. 11995 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11996 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11997done 11998LIBOBJS=$ac_libobjs 11999 12000LTLIBOBJS=$ac_ltlibobjs 12001 12002 12003 12004: "${CONFIG_STATUS=./config.status}" 12005ac_write_fail=0 12006ac_clean_files_save=$ac_clean_files 12007ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12008{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12009$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 12010as_write_fail=0 12011cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12012#! $SHELL 12013# Generated by $as_me. 12014# Run this file to recreate the current configuration. 12015# Compiler output produced by configure, useful for debugging 12016# configure, is in config.log if it exists. 12017 12018debug=false 12019ac_cs_recheck=false 12020ac_cs_silent=false 12021 12022SHELL=\${CONFIG_SHELL-$SHELL} 12023export SHELL 12024_ASEOF 12025cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12026## -------------------- ## 12027## M4sh Initialization. ## 12028## -------------------- ## 12029 12030# Be more Bourne compatible 12031DUALCASE=1; export DUALCASE # for MKS sh 12032if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 12033 emulate sh 12034 NULLCMD=: 12035 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12036 # is contrary to our usage. Disable this feature. 12037 alias -g '${1+"$@"}'='"$@"' 12038 setopt NO_GLOB_SUBST 12039else 12040 case `(set -o) 2>/dev/null` in #( 12041 *posix*) : 12042 set -o posix ;; #( 12043 *) : 12044 ;; 12045esac 12046fi 12047 12048 12049as_nl=' 12050' 12051export as_nl 12052# Printing a long string crashes Solaris 7 /usr/bin/printf. 12053as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12054as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12055as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 12056# Prefer a ksh shell builtin over an external printf program on Solaris, 12057# but without wasting forks for bash or zsh. 12058if test -z "$BASH_VERSION$ZSH_VERSION" \ 12059 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 12060 as_echo='print -r --' 12061 as_echo_n='print -rn --' 12062elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 12063 as_echo='printf %s\n' 12064 as_echo_n='printf %s' 12065else 12066 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 12067 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 12068 as_echo_n='/usr/ucb/echo -n' 12069 else 12070 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 12071 as_echo_n_body='eval 12072 arg=$1; 12073 case $arg in #( 12074 *"$as_nl"*) 12075 expr "X$arg" : "X\\(.*\\)$as_nl"; 12076 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 12077 esac; 12078 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 12079 ' 12080 export as_echo_n_body 12081 as_echo_n='sh -c $as_echo_n_body as_echo' 12082 fi 12083 export as_echo_body 12084 as_echo='sh -c $as_echo_body as_echo' 12085fi 12086 12087# The user is always right. 12088if test "${PATH_SEPARATOR+set}" != set; then 12089 PATH_SEPARATOR=: 12090 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12091 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12092 PATH_SEPARATOR=';' 12093 } 12094fi 12095 12096 12097# IFS 12098# We need space, tab and new line, in precisely that order. Quoting is 12099# there to prevent editors from complaining about space-tab. 12100# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12101# splitting by setting IFS to empty value.) 12102IFS=" "" $as_nl" 12103 12104# Find who we are. Look in the path if we contain no directory separator. 12105as_myself= 12106case $0 in #(( 12107 *[\\/]* ) as_myself=$0 ;; 12108 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12109for as_dir in $PATH 12110do 12111 IFS=$as_save_IFS 12112 test -z "$as_dir" && as_dir=. 12113 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12114 done 12115IFS=$as_save_IFS 12116 12117 ;; 12118esac 12119# We did not find ourselves, most probably we were run as `sh COMMAND' 12120# in which case we are not to be found in the path. 12121if test "x$as_myself" = x; then 12122 as_myself=$0 12123fi 12124if test ! -f "$as_myself"; then 12125 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12126 exit 1 12127fi 12128 12129# Unset variables that we do not need and which cause bugs (e.g. in 12130# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 12131# suppresses any "Segmentation fault" message there. '((' could 12132# trigger a bug in pdksh 5.2.14. 12133for as_var in BASH_ENV ENV MAIL MAILPATH 12134do eval test x\${$as_var+set} = xset \ 12135 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12136done 12137PS1='$ ' 12138PS2='> ' 12139PS4='+ ' 12140 12141# NLS nuisances. 12142LC_ALL=C 12143export LC_ALL 12144LANGUAGE=C 12145export LANGUAGE 12146 12147# CDPATH. 12148(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12149 12150 12151# as_fn_error STATUS ERROR [LINENO LOG_FD] 12152# ---------------------------------------- 12153# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12154# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12155# script with STATUS, using 1 if that was 0. 12156as_fn_error () 12157{ 12158 as_status=$1; test $as_status -eq 0 && as_status=1 12159 if test "$4"; then 12160 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12161 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12162 fi 12163 $as_echo "$as_me: error: $2" >&2 12164 as_fn_exit $as_status 12165} # as_fn_error 12166 12167 12168# as_fn_set_status STATUS 12169# ----------------------- 12170# Set $? to STATUS, without forking. 12171as_fn_set_status () 12172{ 12173 return $1 12174} # as_fn_set_status 12175 12176# as_fn_exit STATUS 12177# ----------------- 12178# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12179as_fn_exit () 12180{ 12181 set +e 12182 as_fn_set_status $1 12183 exit $1 12184} # as_fn_exit 12185 12186# as_fn_unset VAR 12187# --------------- 12188# Portably unset VAR. 12189as_fn_unset () 12190{ 12191 { eval $1=; unset $1;} 12192} 12193as_unset=as_fn_unset 12194# as_fn_append VAR VALUE 12195# ---------------------- 12196# Append the text in VALUE to the end of the definition contained in VAR. Take 12197# advantage of any shell optimizations that allow amortized linear growth over 12198# repeated appends, instead of the typical quadratic growth present in naive 12199# implementations. 12200if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 12201 eval 'as_fn_append () 12202 { 12203 eval $1+=\$2 12204 }' 12205else 12206 as_fn_append () 12207 { 12208 eval $1=\$$1\$2 12209 } 12210fi # as_fn_append 12211 12212# as_fn_arith ARG... 12213# ------------------ 12214# Perform arithmetic evaluation on the ARGs, and store the result in the 12215# global $as_val. Take advantage of shells that can avoid forks. The arguments 12216# must be portable across $(()) and expr. 12217if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 12218 eval 'as_fn_arith () 12219 { 12220 as_val=$(( $* )) 12221 }' 12222else 12223 as_fn_arith () 12224 { 12225 as_val=`expr "$@" || test $? -eq 1` 12226 } 12227fi # as_fn_arith 12228 12229 12230if expr a : '\(a\)' >/dev/null 2>&1 && 12231 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12232 as_expr=expr 12233else 12234 as_expr=false 12235fi 12236 12237if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12238 as_basename=basename 12239else 12240 as_basename=false 12241fi 12242 12243if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12244 as_dirname=dirname 12245else 12246 as_dirname=false 12247fi 12248 12249as_me=`$as_basename -- "$0" || 12250$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12251 X"$0" : 'X\(//\)$' \| \ 12252 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12253$as_echo X/"$0" | 12254 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12255 s//\1/ 12256 q 12257 } 12258 /^X\/\(\/\/\)$/{ 12259 s//\1/ 12260 q 12261 } 12262 /^X\/\(\/\).*/{ 12263 s//\1/ 12264 q 12265 } 12266 s/.*/./; q'` 12267 12268# Avoid depending upon Character Ranges. 12269as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12270as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12271as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12272as_cr_digits='0123456789' 12273as_cr_alnum=$as_cr_Letters$as_cr_digits 12274 12275ECHO_C= ECHO_N= ECHO_T= 12276case `echo -n x` in #((((( 12277-n*) 12278 case `echo 'xy\c'` in 12279 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12280 xy) ECHO_C='\c';; 12281 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12282 ECHO_T=' ';; 12283 esac;; 12284*) 12285 ECHO_N='-n';; 12286esac 12287 12288rm -f conf$$ conf$$.exe conf$$.file 12289if test -d conf$$.dir; then 12290 rm -f conf$$.dir/conf$$.file 12291else 12292 rm -f conf$$.dir 12293 mkdir conf$$.dir 2>/dev/null 12294fi 12295if (echo >conf$$.file) 2>/dev/null; then 12296 if ln -s conf$$.file conf$$ 2>/dev/null; then 12297 as_ln_s='ln -s' 12298 # ... but there are two gotchas: 12299 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12300 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12301 # In both cases, we have to default to `cp -pR'. 12302 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12303 as_ln_s='cp -pR' 12304 elif ln conf$$.file conf$$ 2>/dev/null; then 12305 as_ln_s=ln 12306 else 12307 as_ln_s='cp -pR' 12308 fi 12309else 12310 as_ln_s='cp -pR' 12311fi 12312rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12313rmdir conf$$.dir 2>/dev/null 12314 12315 12316# as_fn_mkdir_p 12317# ------------- 12318# Create "$as_dir" as a directory, including parents if necessary. 12319as_fn_mkdir_p () 12320{ 12321 12322 case $as_dir in #( 12323 -*) as_dir=./$as_dir;; 12324 esac 12325 test -d "$as_dir" || eval $as_mkdir_p || { 12326 as_dirs= 12327 while :; do 12328 case $as_dir in #( 12329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12330 *) as_qdir=$as_dir;; 12331 esac 12332 as_dirs="'$as_qdir' $as_dirs" 12333 as_dir=`$as_dirname -- "$as_dir" || 12334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12335 X"$as_dir" : 'X\(//\)[^/]' \| \ 12336 X"$as_dir" : 'X\(//\)$' \| \ 12337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12338$as_echo X"$as_dir" | 12339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12340 s//\1/ 12341 q 12342 } 12343 /^X\(\/\/\)[^/].*/{ 12344 s//\1/ 12345 q 12346 } 12347 /^X\(\/\/\)$/{ 12348 s//\1/ 12349 q 12350 } 12351 /^X\(\/\).*/{ 12352 s//\1/ 12353 q 12354 } 12355 s/.*/./; q'` 12356 test -d "$as_dir" && break 12357 done 12358 test -z "$as_dirs" || eval "mkdir $as_dirs" 12359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12360 12361 12362} # as_fn_mkdir_p 12363if mkdir -p . 2>/dev/null; then 12364 as_mkdir_p='mkdir -p "$as_dir"' 12365else 12366 test -d ./-p && rmdir ./-p 12367 as_mkdir_p=false 12368fi 12369 12370 12371# as_fn_executable_p FILE 12372# ----------------------- 12373# Test if FILE is an executable regular file. 12374as_fn_executable_p () 12375{ 12376 test -f "$1" && test -x "$1" 12377} # as_fn_executable_p 12378as_test_x='test -x' 12379as_executable_p=as_fn_executable_p 12380 12381# Sed expression to map a string onto a valid CPP name. 12382as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12383 12384# Sed expression to map a string onto a valid variable name. 12385as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12386 12387 12388exec 6>&1 12389## ----------------------------------- ## 12390## Main body of $CONFIG_STATUS script. ## 12391## ----------------------------------- ## 12392_ASEOF 12393test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12394 12395cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12396# Save the log message, to keep $0 and so on meaningful, and to 12397# report actual input values of CONFIG_FILES etc. instead of their 12398# values after options handling. 12399ac_log=" 12400This file was extended by pcap $as_me 1.10.0, which was 12401generated by GNU Autoconf 2.69. Invocation command line was 12402 12403 CONFIG_FILES = $CONFIG_FILES 12404 CONFIG_HEADERS = $CONFIG_HEADERS 12405 CONFIG_LINKS = $CONFIG_LINKS 12406 CONFIG_COMMANDS = $CONFIG_COMMANDS 12407 $ $0 $@ 12408 12409on `(hostname || uname -n) 2>/dev/null | sed 1q` 12410" 12411 12412_ACEOF 12413 12414case $ac_config_files in *" 12415"*) set x $ac_config_files; shift; ac_config_files=$*;; 12416esac 12417 12418case $ac_config_headers in *" 12419"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12420esac 12421 12422 12423cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12424# Files that config.status was made for. 12425config_files="$ac_config_files" 12426config_headers="$ac_config_headers" 12427config_commands="$ac_config_commands" 12428 12429_ACEOF 12430 12431cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12432ac_cs_usage="\ 12433\`$as_me' instantiates files and other configuration actions 12434from templates according to the current configuration. Unless the files 12435and actions are specified as TAGs, all are instantiated by default. 12436 12437Usage: $0 [OPTION]... [TAG]... 12438 12439 -h, --help print this help, then exit 12440 -V, --version print version number and configuration settings, then exit 12441 --config print configuration, then exit 12442 -q, --quiet, --silent 12443 do not print progress messages 12444 -d, --debug don't remove temporary files 12445 --recheck update $as_me by reconfiguring in the same conditions 12446 --file=FILE[:TEMPLATE] 12447 instantiate the configuration file FILE 12448 --header=FILE[:TEMPLATE] 12449 instantiate the configuration header FILE 12450 12451Configuration files: 12452$config_files 12453 12454Configuration headers: 12455$config_headers 12456 12457Configuration commands: 12458$config_commands 12459 12460Report bugs to the package provider." 12461 12462_ACEOF 12463cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12464ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 12465ac_cs_version="\\ 12466pcap config.status 1.10.0 12467configured by $0, generated by GNU Autoconf 2.69, 12468 with options \\"\$ac_cs_config\\" 12469 12470Copyright (C) 2012 Free Software Foundation, Inc. 12471This config.status script is free software; the Free Software Foundation 12472gives unlimited permission to copy, distribute and modify it." 12473 12474ac_pwd='$ac_pwd' 12475srcdir='$srcdir' 12476INSTALL='$INSTALL' 12477test -n "\$AWK" || AWK=awk 12478_ACEOF 12479 12480cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12481# The default lists apply if the user does not specify any file. 12482ac_need_defaults=: 12483while test $# != 0 12484do 12485 case $1 in 12486 --*=?*) 12487 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12488 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12489 ac_shift=: 12490 ;; 12491 --*=) 12492 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12493 ac_optarg= 12494 ac_shift=: 12495 ;; 12496 *) 12497 ac_option=$1 12498 ac_optarg=$2 12499 ac_shift=shift 12500 ;; 12501 esac 12502 12503 case $ac_option in 12504 # Handling of the options. 12505 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12506 ac_cs_recheck=: ;; 12507 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12508 $as_echo "$ac_cs_version"; exit ;; 12509 --config | --confi | --conf | --con | --co | --c ) 12510 $as_echo "$ac_cs_config"; exit ;; 12511 --debug | --debu | --deb | --de | --d | -d ) 12512 debug=: ;; 12513 --file | --fil | --fi | --f ) 12514 $ac_shift 12515 case $ac_optarg in 12516 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12517 '') as_fn_error $? "missing file argument" ;; 12518 esac 12519 as_fn_append CONFIG_FILES " '$ac_optarg'" 12520 ac_need_defaults=false;; 12521 --header | --heade | --head | --hea ) 12522 $ac_shift 12523 case $ac_optarg in 12524 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12525 esac 12526 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12527 ac_need_defaults=false;; 12528 --he | --h) 12529 # Conflict between --help and --header 12530 as_fn_error $? "ambiguous option: \`$1' 12531Try \`$0 --help' for more information.";; 12532 --help | --hel | -h ) 12533 $as_echo "$ac_cs_usage"; exit ;; 12534 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12535 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12536 ac_cs_silent=: ;; 12537 12538 # This is an error. 12539 -*) as_fn_error $? "unrecognized option: \`$1' 12540Try \`$0 --help' for more information." ;; 12541 12542 *) as_fn_append ac_config_targets " $1" 12543 ac_need_defaults=false ;; 12544 12545 esac 12546 shift 12547done 12548 12549ac_configure_extra_args= 12550 12551if $ac_cs_silent; then 12552 exec 6>/dev/null 12553 ac_configure_extra_args="$ac_configure_extra_args --silent" 12554fi 12555 12556_ACEOF 12557cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12558if \$ac_cs_recheck; then 12559 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12560 shift 12561 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 12562 CONFIG_SHELL='$SHELL' 12563 export CONFIG_SHELL 12564 exec "\$@" 12565fi 12566 12567_ACEOF 12568cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12569exec 5>>config.log 12570{ 12571 echo 12572 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12573## Running $as_me. ## 12574_ASBOX 12575 $as_echo "$ac_log" 12576} >&5 12577 12578_ACEOF 12579cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12580# 12581# INIT-COMMANDS 12582# 12583 12584 12585_ACEOF 12586 12587cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12588 12589# Handling of arguments. 12590for ac_config_target in $ac_config_targets 12591do 12592 case $ac_config_target in 12593 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12594 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 12595 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12596 "grammar.y") CONFIG_FILES="$CONFIG_FILES grammar.y" ;; 12597 "pcap-filter.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-filter.manmisc" ;; 12598 "pcap-linktype.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-linktype.manmisc" ;; 12599 "pcap-tstamp.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-tstamp.manmisc" ;; 12600 "pcap-savefile.manfile") CONFIG_FILES="$CONFIG_FILES pcap-savefile.manfile" ;; 12601 "pcap.3pcap") CONFIG_FILES="$CONFIG_FILES pcap.3pcap" ;; 12602 "pcap_compile.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_compile.3pcap" ;; 12603 "pcap_datalink.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_datalink.3pcap" ;; 12604 "pcap_dump_open.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_dump_open.3pcap" ;; 12605 "pcap_get_tstamp_precision.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_get_tstamp_precision.3pcap" ;; 12606 "pcap_list_datalinks.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_datalinks.3pcap" ;; 12607 "pcap_list_tstamp_types.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_tstamp_types.3pcap" ;; 12608 "pcap_open_dead.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_dead.3pcap" ;; 12609 "pcap_open_offline.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_offline.3pcap" ;; 12610 "pcap_set_immediate_mode.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_set_immediate_mode.3pcap" ;; 12611 "pcap_set_tstamp_precision.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_set_tstamp_precision.3pcap" ;; 12612 "pcap_set_tstamp_type.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_set_tstamp_type.3pcap" ;; 12613 "rpcapd/Makefile") CONFIG_FILES="$CONFIG_FILES rpcapd/Makefile" ;; 12614 "rpcapd/rpcapd.manadmin") CONFIG_FILES="$CONFIG_FILES rpcapd/rpcapd.manadmin" ;; 12615 "rpcapd/rpcapd-config.manfile") CONFIG_FILES="$CONFIG_FILES rpcapd/rpcapd-config.manfile" ;; 12616 "testprogs/Makefile") CONFIG_FILES="$CONFIG_FILES testprogs/Makefile" ;; 12617 12618 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12619 esac 12620done 12621 12622 12623# If the user did not use the arguments to specify the items to instantiate, 12624# then the envvar interface is used. Set only those that are not. 12625# We use the long form for the default assignment because of an extremely 12626# bizarre bug on SunOS 4.1.3. 12627if $ac_need_defaults; then 12628 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12629 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12630 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12631fi 12632 12633# Have a temporary directory for convenience. Make it in the build tree 12634# simply because there is no reason against having it here, and in addition, 12635# creating and moving files from /tmp can sometimes cause problems. 12636# Hook for its removal unless debugging. 12637# Note that there is a small window in which the directory will not be cleaned: 12638# after its creation but before its name has been assigned to `$tmp'. 12639$debug || 12640{ 12641 tmp= ac_tmp= 12642 trap 'exit_status=$? 12643 : "${ac_tmp:=$tmp}" 12644 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12645' 0 12646 trap 'as_fn_exit 1' 1 2 13 15 12647} 12648# Create a (secure) tmp directory for tmp files. 12649 12650{ 12651 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12652 test -d "$tmp" 12653} || 12654{ 12655 tmp=./conf$$-$RANDOM 12656 (umask 077 && mkdir "$tmp") 12657} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12658ac_tmp=$tmp 12659 12660# Set up the scripts for CONFIG_FILES section. 12661# No need to generate them if there are no CONFIG_FILES. 12662# This happens for instance with `./config.status config.h'. 12663if test -n "$CONFIG_FILES"; then 12664 12665 12666ac_cr=`echo X | tr X '\015'` 12667# On cygwin, bash can eat \r inside `` if the user requested igncr. 12668# But we know of no other shell where ac_cr would be empty at this 12669# point, so we can use a bashism as a fallback. 12670if test "x$ac_cr" = x; then 12671 eval ac_cr=\$\'\\r\' 12672fi 12673ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12674if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12675 ac_cs_awk_cr='\\r' 12676else 12677 ac_cs_awk_cr=$ac_cr 12678fi 12679 12680echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12681_ACEOF 12682 12683 12684{ 12685 echo "cat >conf$$subs.awk <<_ACEOF" && 12686 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12687 echo "_ACEOF" 12688} >conf$$subs.sh || 12689 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12690ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12691ac_delim='%!_!# ' 12692for ac_last_try in false false false false false :; do 12693 . ./conf$$subs.sh || 12694 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12695 12696 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12697 if test $ac_delim_n = $ac_delim_num; then 12698 break 12699 elif $ac_last_try; then 12700 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12701 else 12702 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12703 fi 12704done 12705rm -f conf$$subs.sh 12706 12707cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12708cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12709_ACEOF 12710sed -n ' 12711h 12712s/^/S["/; s/!.*/"]=/ 12713p 12714g 12715s/^[^!]*!// 12716:repl 12717t repl 12718s/'"$ac_delim"'$// 12719t delim 12720:nl 12721h 12722s/\(.\{148\}\)..*/\1/ 12723t more1 12724s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12725p 12726n 12727b repl 12728:more1 12729s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12730p 12731g 12732s/.\{148\}// 12733t nl 12734:delim 12735h 12736s/\(.\{148\}\)..*/\1/ 12737t more2 12738s/["\\]/\\&/g; s/^/"/; s/$/"/ 12739p 12740b 12741:more2 12742s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12743p 12744g 12745s/.\{148\}// 12746t delim 12747' <conf$$subs.awk | sed ' 12748/^[^""]/{ 12749 N 12750 s/\n// 12751} 12752' >>$CONFIG_STATUS || ac_write_fail=1 12753rm -f conf$$subs.awk 12754cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12755_ACAWK 12756cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12757 for (key in S) S_is_set[key] = 1 12758 FS = "" 12759 12760} 12761{ 12762 line = $ 0 12763 nfields = split(line, field, "@") 12764 substed = 0 12765 len = length(field[1]) 12766 for (i = 2; i < nfields; i++) { 12767 key = field[i] 12768 keylen = length(key) 12769 if (S_is_set[key]) { 12770 value = S[key] 12771 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12772 len += length(value) + length(field[++i]) 12773 substed = 1 12774 } else 12775 len += 1 + keylen 12776 } 12777 12778 print line 12779} 12780 12781_ACAWK 12782_ACEOF 12783cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12784if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12785 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12786else 12787 cat 12788fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12789 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12790_ACEOF 12791 12792# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12793# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12794# trailing colons and then remove the whole line if VPATH becomes empty 12795# (actually we leave an empty line to preserve line numbers). 12796if test "x$srcdir" = x.; then 12797 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12798h 12799s/// 12800s/^/:/ 12801s/[ ]*$/:/ 12802s/:\$(srcdir):/:/g 12803s/:\${srcdir}:/:/g 12804s/:@srcdir@:/:/g 12805s/^:*// 12806s/:*$// 12807x 12808s/\(=[ ]*\).*/\1/ 12809G 12810s/\n// 12811s/^[^=]*=[ ]*$// 12812}' 12813fi 12814 12815cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12816fi # test -n "$CONFIG_FILES" 12817 12818# Set up the scripts for CONFIG_HEADERS section. 12819# No need to generate them if there are no CONFIG_HEADERS. 12820# This happens for instance with `./config.status Makefile'. 12821if test -n "$CONFIG_HEADERS"; then 12822cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12823BEGIN { 12824_ACEOF 12825 12826# Transform confdefs.h into an awk script `defines.awk', embedded as 12827# here-document in config.status, that substitutes the proper values into 12828# config.h.in to produce config.h. 12829 12830# Create a delimiter string that does not exist in confdefs.h, to ease 12831# handling of long lines. 12832ac_delim='%!_!# ' 12833for ac_last_try in false false :; do 12834 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12835 if test -z "$ac_tt"; then 12836 break 12837 elif $ac_last_try; then 12838 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12839 else 12840 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12841 fi 12842done 12843 12844# For the awk script, D is an array of macro values keyed by name, 12845# likewise P contains macro parameters if any. Preserve backslash 12846# newline sequences. 12847 12848ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12849sed -n ' 12850s/.\{148\}/&'"$ac_delim"'/g 12851t rset 12852:rset 12853s/^[ ]*#[ ]*define[ ][ ]*/ / 12854t def 12855d 12856:def 12857s/\\$// 12858t bsnl 12859s/["\\]/\\&/g 12860s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12861D["\1"]=" \3"/p 12862s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12863d 12864:bsnl 12865s/["\\]/\\&/g 12866s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12867D["\1"]=" \3\\\\\\n"\\/p 12868t cont 12869s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12870t cont 12871d 12872:cont 12873n 12874s/.\{148\}/&'"$ac_delim"'/g 12875t clear 12876:clear 12877s/\\$// 12878t bsnlc 12879s/["\\]/\\&/g; s/^/"/; s/$/"/p 12880d 12881:bsnlc 12882s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12883b cont 12884' <confdefs.h | sed ' 12885s/'"$ac_delim"'/"\\\ 12886"/g' >>$CONFIG_STATUS || ac_write_fail=1 12887 12888cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12889 for (key in D) D_is_set[key] = 1 12890 FS = "" 12891} 12892/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12893 line = \$ 0 12894 split(line, arg, " ") 12895 if (arg[1] == "#") { 12896 defundef = arg[2] 12897 mac1 = arg[3] 12898 } else { 12899 defundef = substr(arg[1], 2) 12900 mac1 = arg[2] 12901 } 12902 split(mac1, mac2, "(") #) 12903 macro = mac2[1] 12904 prefix = substr(line, 1, index(line, defundef) - 1) 12905 if (D_is_set[macro]) { 12906 # Preserve the white space surrounding the "#". 12907 print prefix "define", macro P[macro] D[macro] 12908 next 12909 } else { 12910 # Replace #undef with comments. This is necessary, for example, 12911 # in the case of _POSIX_SOURCE, which is predefined and required 12912 # on some systems where configure will not decide to define it. 12913 if (defundef == "undef") { 12914 print "/*", prefix defundef, macro, "*/" 12915 next 12916 } 12917 } 12918} 12919{ print } 12920_ACAWK 12921_ACEOF 12922cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12923 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12924fi # test -n "$CONFIG_HEADERS" 12925 12926 12927eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12928shift 12929for ac_tag 12930do 12931 case $ac_tag in 12932 :[FHLC]) ac_mode=$ac_tag; continue;; 12933 esac 12934 case $ac_mode$ac_tag in 12935 :[FHL]*:*);; 12936 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12937 :[FH]-) ac_tag=-:-;; 12938 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12939 esac 12940 ac_save_IFS=$IFS 12941 IFS=: 12942 set x $ac_tag 12943 IFS=$ac_save_IFS 12944 shift 12945 ac_file=$1 12946 shift 12947 12948 case $ac_mode in 12949 :L) ac_source=$1;; 12950 :[FH]) 12951 ac_file_inputs= 12952 for ac_f 12953 do 12954 case $ac_f in 12955 -) ac_f="$ac_tmp/stdin";; 12956 *) # Look for the file first in the build tree, then in the source tree 12957 # (if the path is not absolute). The absolute path cannot be DOS-style, 12958 # because $ac_f cannot contain `:'. 12959 test -f "$ac_f" || 12960 case $ac_f in 12961 [\\/$]*) false;; 12962 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12963 esac || 12964 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12965 esac 12966 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12967 as_fn_append ac_file_inputs " '$ac_f'" 12968 done 12969 12970 # Let's still pretend it is `configure' which instantiates (i.e., don't 12971 # use $as_me), people would be surprised to read: 12972 # /* config.h. Generated by config.status. */ 12973 configure_input='Generated from '` 12974 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12975 `' by configure.' 12976 if test x"$ac_file" != x-; then 12977 configure_input="$ac_file. $configure_input" 12978 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12979$as_echo "$as_me: creating $ac_file" >&6;} 12980 fi 12981 # Neutralize special characters interpreted by sed in replacement strings. 12982 case $configure_input in #( 12983 *\&* | *\|* | *\\* ) 12984 ac_sed_conf_input=`$as_echo "$configure_input" | 12985 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12986 *) ac_sed_conf_input=$configure_input;; 12987 esac 12988 12989 case $ac_tag in 12990 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12991 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12992 esac 12993 ;; 12994 esac 12995 12996 ac_dir=`$as_dirname -- "$ac_file" || 12997$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12998 X"$ac_file" : 'X\(//\)[^/]' \| \ 12999 X"$ac_file" : 'X\(//\)$' \| \ 13000 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13001$as_echo X"$ac_file" | 13002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13003 s//\1/ 13004 q 13005 } 13006 /^X\(\/\/\)[^/].*/{ 13007 s//\1/ 13008 q 13009 } 13010 /^X\(\/\/\)$/{ 13011 s//\1/ 13012 q 13013 } 13014 /^X\(\/\).*/{ 13015 s//\1/ 13016 q 13017 } 13018 s/.*/./; q'` 13019 as_dir="$ac_dir"; as_fn_mkdir_p 13020 ac_builddir=. 13021 13022case "$ac_dir" in 13023.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13024*) 13025 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 13026 # A ".." for each directory in $ac_dir_suffix. 13027 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13028 case $ac_top_builddir_sub in 13029 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13030 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13031 esac ;; 13032esac 13033ac_abs_top_builddir=$ac_pwd 13034ac_abs_builddir=$ac_pwd$ac_dir_suffix 13035# for backward compatibility: 13036ac_top_builddir=$ac_top_build_prefix 13037 13038case $srcdir in 13039 .) # We are building in place. 13040 ac_srcdir=. 13041 ac_top_srcdir=$ac_top_builddir_sub 13042 ac_abs_top_srcdir=$ac_pwd ;; 13043 [\\/]* | ?:[\\/]* ) # Absolute name. 13044 ac_srcdir=$srcdir$ac_dir_suffix; 13045 ac_top_srcdir=$srcdir 13046 ac_abs_top_srcdir=$srcdir ;; 13047 *) # Relative name. 13048 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13049 ac_top_srcdir=$ac_top_build_prefix$srcdir 13050 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13051esac 13052ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13053 13054 13055 case $ac_mode in 13056 :F) 13057 # 13058 # CONFIG_FILE 13059 # 13060 13061 case $INSTALL in 13062 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13063 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13064 esac 13065_ACEOF 13066 13067cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13068# If the template does not know about datarootdir, expand it. 13069# FIXME: This hack should be removed a few years after 2.60. 13070ac_datarootdir_hack=; ac_datarootdir_seen= 13071ac_sed_dataroot=' 13072/datarootdir/ { 13073 p 13074 q 13075} 13076/@datadir@/p 13077/@docdir@/p 13078/@infodir@/p 13079/@localedir@/p 13080/@mandir@/p' 13081case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13082*datarootdir*) ac_datarootdir_seen=yes;; 13083*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13085$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13086_ACEOF 13087cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13088 ac_datarootdir_hack=' 13089 s&@datadir@&$datadir&g 13090 s&@docdir@&$docdir&g 13091 s&@infodir@&$infodir&g 13092 s&@localedir@&$localedir&g 13093 s&@mandir@&$mandir&g 13094 s&\\\${datarootdir}&$datarootdir&g' ;; 13095esac 13096_ACEOF 13097 13098# Neutralize VPATH when `$srcdir' = `.'. 13099# Shell code in configure.ac might set extrasub. 13100# FIXME: do we really want to maintain this feature? 13101cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13102ac_sed_extra="$ac_vpsub 13103$extrasub 13104_ACEOF 13105cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13106:t 13107/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13108s|@configure_input@|$ac_sed_conf_input|;t t 13109s&@top_builddir@&$ac_top_builddir_sub&;t t 13110s&@top_build_prefix@&$ac_top_build_prefix&;t t 13111s&@srcdir@&$ac_srcdir&;t t 13112s&@abs_srcdir@&$ac_abs_srcdir&;t t 13113s&@top_srcdir@&$ac_top_srcdir&;t t 13114s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13115s&@builddir@&$ac_builddir&;t t 13116s&@abs_builddir@&$ac_abs_builddir&;t t 13117s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13118s&@INSTALL@&$ac_INSTALL&;t t 13119$ac_datarootdir_hack 13120" 13121eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13122 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13123 13124test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13125 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13126 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13127 "$ac_tmp/out"`; test -z "$ac_out"; } && 13128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13129which seems to be undefined. Please make sure it is defined" >&5 13130$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13131which seems to be undefined. Please make sure it is defined" >&2;} 13132 13133 rm -f "$ac_tmp/stdin" 13134 case $ac_file in 13135 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13136 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13137 esac \ 13138 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13139 ;; 13140 :H) 13141 # 13142 # CONFIG_HEADER 13143 # 13144 if test x"$ac_file" != x-; then 13145 { 13146 $as_echo "/* $configure_input */" \ 13147 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13148 } >"$ac_tmp/config.h" \ 13149 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13150 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13151 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13152$as_echo "$as_me: $ac_file is unchanged" >&6;} 13153 else 13154 rm -f "$ac_file" 13155 mv "$ac_tmp/config.h" "$ac_file" \ 13156 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13157 fi 13158 else 13159 $as_echo "/* $configure_input */" \ 13160 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13161 || as_fn_error $? "could not create -" "$LINENO" 5 13162 fi 13163 ;; 13164 13165 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13166$as_echo "$as_me: executing $ac_file commands" >&6;} 13167 ;; 13168 esac 13169 13170 13171 case $ac_file$ac_mode in 13172 "default-1":C) if test -f .devel; then 13173 echo timestamp > stamp-h 13174 cat $srcdir/Makefile-devel-adds >> Makefile 13175 make depend 13176fi ;; 13177 13178 esac 13179done # for ac_tag 13180 13181 13182as_fn_exit 0 13183_ACEOF 13184ac_clean_files=$ac_clean_files_save 13185 13186test $ac_write_fail = 0 || 13187 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13188 13189 13190# configure is writing to config.log, and then calls config.status. 13191# config.status does its own redirection, appending to config.log. 13192# Unfortunately, on DOS this fails, as config.log is still kept open 13193# by configure, so config.status won't be able to write to it; its 13194# output is simply discarded. So we exec the FD to /dev/null, 13195# effectively closing config.log, so it can be properly (re)opened and 13196# appended to by config.status. When coming back to configure, we 13197# need to make the FD available again. 13198if test "$no_create" != yes; then 13199 ac_cs_success=: 13200 ac_config_status_args= 13201 test "$silent" = yes && 13202 ac_config_status_args="$ac_config_status_args --quiet" 13203 exec 5>/dev/null 13204 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13205 exec 5>>config.log 13206 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13207 # would make configure fail if this is the last instruction. 13208 $ac_cs_success || as_fn_exit 1 13209fi 13210if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13212$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13213fi 13214 13215exit 0 13216