1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for tcpdump 4.99.5. 4# 5# 6# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 7# Inc. 8# 9# 10# This configure script is free software; the Free Software Foundation 11# gives unlimited permission to copy, distribute and modify it. 12## -------------------- ## 13## M4sh Initialization. ## 14## -------------------- ## 15 16# Be more Bourne compatible 17DUALCASE=1; export DUALCASE # for MKS sh 18as_nop=: 19if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 20then : 21 emulate sh 22 NULLCMD=: 23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 24 # is contrary to our usage. Disable this feature. 25 alias -g '${1+"$@"}'='"$@"' 26 setopt NO_GLOB_SUBST 27else $as_nop 28 case `(set -o) 2>/dev/null` in #( 29 *posix*) : 30 set -o posix ;; #( 31 *) : 32 ;; 33esac 34fi 35 36 37 38# Reset variables that may have inherited troublesome values from 39# the environment. 40 41# IFS needs to be set, to space, tab, and newline, in precisely that order. 42# (If _AS_PATH_WALK were called with IFS unset, it would have the 43# side effect of setting IFS to empty, thus disabling word splitting.) 44# Quoting is to prevent editors from complaining about space-tab. 45as_nl=' 46' 47export as_nl 48IFS=" "" $as_nl" 49 50PS1='$ ' 51PS2='> ' 52PS4='+ ' 53 54# Ensure predictable behavior from utilities with locale-dependent output. 55LC_ALL=C 56export LC_ALL 57LANGUAGE=C 58export LANGUAGE 59 60# We cannot yet rely on "unset" to work, but we need these variables 61# to be unset--not just set to an empty or harmless value--now, to 62# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 63# also avoids known problems related to "unset" and subshell syntax 64# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 65for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 66do eval test \${$as_var+y} \ 67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 68done 69 70# Ensure that fds 0, 1, and 2 are open. 71if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 72if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 73if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 74 75# The user is always right. 76if ${PATH_SEPARATOR+false} :; then 77 PATH_SEPARATOR=: 78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 80 PATH_SEPARATOR=';' 81 } 82fi 83 84 85# Find who we are. Look in the path if we contain no directory separator. 86as_myself= 87case $0 in #(( 88 *[\\/]* ) as_myself=$0 ;; 89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 90for as_dir in $PATH 91do 92 IFS=$as_save_IFS 93 case $as_dir in #((( 94 '') as_dir=./ ;; 95 */) ;; 96 *) as_dir=$as_dir/ ;; 97 esac 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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114 115# Use a proper internal environment variable to ensure we don't fall 116 # into an infinite loop, continuously re-executing ourselves. 117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 118 _as_can_reexec=no; export _as_can_reexec; 119 # We cannot yet assume a decent shell, so we have to provide a 120# neutralization value for shells without unset; and this also 121# works around shells that cannot unset nonexistent variables. 122# Preserve -v and -x to the replacement shell. 123BASH_ENV=/dev/null 124ENV=/dev/null 125(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 126case $- in # (((( 127 *v*x* | *x*v* ) as_opts=-vx ;; 128 *v* ) as_opts=-v ;; 129 *x* ) as_opts=-x ;; 130 * ) as_opts= ;; 131esac 132exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 133# Admittedly, this is quite paranoid, since all the known shells bail 134# out after a failed `exec'. 135printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 136exit 255 137 fi 138 # We don't want this to propagate to other subprocesses. 139 { _as_can_reexec=; unset _as_can_reexec;} 140if test "x$CONFIG_SHELL" = x; then 141 as_bourne_compatible="as_nop=: 142if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 143then : 144 emulate sh 145 NULLCMD=: 146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 147 # is contrary to our usage. Disable this feature. 148 alias -g '\${1+\"\$@\"}'='\"\$@\"' 149 setopt NO_GLOB_SUBST 150else \$as_nop 151 case \`(set -o) 2>/dev/null\` in #( 152 *posix*) : 153 set -o posix ;; #( 154 *) : 155 ;; 156esac 157fi 158" 159 as_required="as_fn_return () { (exit \$1); } 160as_fn_success () { as_fn_return 0; } 161as_fn_failure () { as_fn_return 1; } 162as_fn_ret_success () { return 0; } 163as_fn_ret_failure () { return 1; } 164 165exitcode=0 166as_fn_success || { exitcode=1; echo as_fn_success failed.; } 167as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 168as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 169as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 170if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 171then : 172 173else \$as_nop 174 exitcode=1; echo positional parameters were not saved. 175fi 176test x\$exitcode = x0 || exit 1 177blah=\$(echo \$(echo blah)) 178test x\"\$blah\" = xblah || exit 1 179test -x / || exit 1" 180 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 181 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 182 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 183 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 184test \$(( 1 + 1 )) = 2 || exit 1" 185 if (eval "$as_required") 2>/dev/null 186then : 187 as_have_required=yes 188else $as_nop 189 as_have_required=no 190fi 191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 192then : 193 194else $as_nop 195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 196as_found=false 197for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 198do 199 IFS=$as_save_IFS 200 case $as_dir in #((( 201 '') as_dir=./ ;; 202 */) ;; 203 *) as_dir=$as_dir/ ;; 204 esac 205 as_found=: 206 case $as_dir in #( 207 /*) 208 for as_base in sh bash ksh sh5; do 209 # Try only shells that exist, to save several forks. 210 as_shell=$as_dir$as_base 211 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 212 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 213then : 214 CONFIG_SHELL=$as_shell as_have_required=yes 215 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 216then : 217 break 2 218fi 219fi 220 done;; 221 esac 222 as_found=false 223done 224IFS=$as_save_IFS 225if $as_found 226then : 227 228else $as_nop 229 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 230 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 231then : 232 CONFIG_SHELL=$SHELL as_have_required=yes 233fi 234fi 235 236 237 if test "x$CONFIG_SHELL" != x 238then : 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'. 256printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 257exit 255 258fi 259 260 if test x$as_have_required = xno 261then : 262 printf "%s\n" "$0: This script requires a shell more modern than all" 263 printf "%s\n" "$0: the shells that I found on your system." 264 if test ${ZSH_VERSION+y} ; then 265 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 266 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 267 else 268 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system, 269$0: including any error possibly output before this 270$0: message. Then install a modern shell, or manually run 271$0: the script under such a shell if you do have one." 272 fi 273 exit 1 274fi 275fi 276fi 277SHELL=${CONFIG_SHELL-/bin/sh} 278export SHELL 279# Unset more variables known to interfere with behavior of common tools. 280CLICOLOR_FORCE= GREP_OPTIONS= 281unset CLICOLOR_FORCE GREP_OPTIONS 282 283## --------------------- ## 284## M4sh Shell Functions. ## 285## --------------------- ## 286# as_fn_unset VAR 287# --------------- 288# Portably unset VAR. 289as_fn_unset () 290{ 291 { eval $1=; unset $1;} 292} 293as_unset=as_fn_unset 294 295 296# as_fn_set_status STATUS 297# ----------------------- 298# Set $? to STATUS, without forking. 299as_fn_set_status () 300{ 301 return $1 302} # as_fn_set_status 303 304# as_fn_exit STATUS 305# ----------------- 306# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 307as_fn_exit () 308{ 309 set +e 310 as_fn_set_status $1 311 exit $1 312} # as_fn_exit 313# as_fn_nop 314# --------- 315# Do nothing but, unlike ":", preserve the value of $?. 316as_fn_nop () 317{ 318 return $? 319} 320as_nop=as_fn_nop 321 322# as_fn_mkdir_p 323# ------------- 324# Create "$as_dir" as a directory, including parents if necessary. 325as_fn_mkdir_p () 326{ 327 328 case $as_dir in #( 329 -*) as_dir=./$as_dir;; 330 esac 331 test -d "$as_dir" || eval $as_mkdir_p || { 332 as_dirs= 333 while :; do 334 case $as_dir in #( 335 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 336 *) as_qdir=$as_dir;; 337 esac 338 as_dirs="'$as_qdir' $as_dirs" 339 as_dir=`$as_dirname -- "$as_dir" || 340$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 341 X"$as_dir" : 'X\(//\)[^/]' \| \ 342 X"$as_dir" : 'X\(//\)$' \| \ 343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 344printf "%s\n" X"$as_dir" | 345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 346 s//\1/ 347 q 348 } 349 /^X\(\/\/\)[^/].*/{ 350 s//\1/ 351 q 352 } 353 /^X\(\/\/\)$/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\).*/{ 358 s//\1/ 359 q 360 } 361 s/.*/./; q'` 362 test -d "$as_dir" && break 363 done 364 test -z "$as_dirs" || eval "mkdir $as_dirs" 365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 366 367 368} # as_fn_mkdir_p 369 370# as_fn_executable_p FILE 371# ----------------------- 372# Test if FILE is an executable regular file. 373as_fn_executable_p () 374{ 375 test -f "$1" && test -x "$1" 376} # as_fn_executable_p 377# as_fn_append VAR VALUE 378# ---------------------- 379# Append the text in VALUE to the end of the definition contained in VAR. Take 380# advantage of any shell optimizations that allow amortized linear growth over 381# repeated appends, instead of the typical quadratic growth present in naive 382# implementations. 383if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 384then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else $as_nop 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 402then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407else $as_nop 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412fi # as_fn_arith 413 414# as_fn_nop 415# --------- 416# Do nothing but, unlike ":", preserve the value of $?. 417as_fn_nop () 418{ 419 return $? 420} 421as_nop=as_fn_nop 422 423# as_fn_error STATUS ERROR [LINENO LOG_FD] 424# ---------------------------------------- 425# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 426# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 427# script with STATUS, using 1 if that was 0. 428as_fn_error () 429{ 430 as_status=$1; test $as_status -eq 0 && as_status=1 431 if test "$4"; then 432 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 433 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 434 fi 435 printf "%s\n" "$as_me: error: $2" >&2 436 as_fn_exit $as_status 437} # as_fn_error 438 439if expr a : '\(a\)' >/dev/null 2>&1 && 440 test "X`expr 00001 : '.*\(...\)'`" = X001; then 441 as_expr=expr 442else 443 as_expr=false 444fi 445 446if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 447 as_basename=basename 448else 449 as_basename=false 450fi 451 452if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 453 as_dirname=dirname 454else 455 as_dirname=false 456fi 457 458as_me=`$as_basename -- "$0" || 459$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 460 X"$0" : 'X\(//\)$' \| \ 461 X"$0" : 'X\(/\)' \| . 2>/dev/null || 462printf "%s\n" X/"$0" | 463 sed '/^.*\/\([^/][^/]*\)\/*$/{ 464 s//\1/ 465 q 466 } 467 /^X\/\(\/\/\)$/{ 468 s//\1/ 469 q 470 } 471 /^X\/\(\/\).*/{ 472 s//\1/ 473 q 474 } 475 s/.*/./; q'` 476 477# Avoid depending upon Character Ranges. 478as_cr_letters='abcdefghijklmnopqrstuvwxyz' 479as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 480as_cr_Letters=$as_cr_letters$as_cr_LETTERS 481as_cr_digits='0123456789' 482as_cr_alnum=$as_cr_Letters$as_cr_digits 483 484 485 as_lineno_1=$LINENO as_lineno_1a=$LINENO 486 as_lineno_2=$LINENO as_lineno_2a=$LINENO 487 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 488 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 489 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 490 sed -n ' 491 p 492 /[$]LINENO/= 493 ' <$as_myself | 494 sed ' 495 s/[$]LINENO.*/&-/ 496 t lineno 497 b 498 :lineno 499 N 500 :loop 501 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 502 t loop 503 s/-\n.*// 504 ' >$as_me.lineno && 505 chmod +x "$as_me.lineno" || 506 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 507 508 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 509 # already done that, so ensure we don't try to do so again and fall 510 # in an infinite loop. This has already happened in practice. 511 _as_can_reexec=no; export _as_can_reexec 512 # Don't try to exec as it changes $[0], causing all sort of problems 513 # (the dirname of $[0] is not the place where we might find the 514 # original and so on. Autoconf is especially sensitive to this). 515 . "./$as_me.lineno" 516 # Exit status is that of the last command. 517 exit 518} 519 520 521# Determine whether it's possible to make 'echo' print without a newline. 522# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 523# for compatibility with existing Makefiles. 524ECHO_C= ECHO_N= ECHO_T= 525case `echo -n x` in #((((( 526-n*) 527 case `echo 'xy\c'` in 528 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 529 xy) ECHO_C='\c';; 530 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 531 ECHO_T=' ';; 532 esac;; 533*) 534 ECHO_N='-n';; 535esac 536 537# For backward compatibility with old third-party macros, we provide 538# the shell variables $as_echo and $as_echo_n. New code should use 539# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 540as_echo='printf %s\n' 541as_echo_n='printf %s' 542 543 544rm -f conf$$ conf$$.exe conf$$.file 545if test -d conf$$.dir; then 546 rm -f conf$$.dir/conf$$.file 547else 548 rm -f conf$$.dir 549 mkdir conf$$.dir 2>/dev/null 550fi 551if (echo >conf$$.file) 2>/dev/null; then 552 if ln -s conf$$.file conf$$ 2>/dev/null; then 553 as_ln_s='ln -s' 554 # ... but there are two gotchas: 555 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 556 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 557 # In both cases, we have to default to `cp -pR'. 558 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 559 as_ln_s='cp -pR' 560 elif ln conf$$.file conf$$ 2>/dev/null; then 561 as_ln_s=ln 562 else 563 as_ln_s='cp -pR' 564 fi 565else 566 as_ln_s='cp -pR' 567fi 568rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 569rmdir conf$$.dir 2>/dev/null 570 571if mkdir -p . 2>/dev/null; then 572 as_mkdir_p='mkdir -p "$as_dir"' 573else 574 test -d ./-p && rmdir ./-p 575 as_mkdir_p=false 576fi 577 578as_test_x='test -x' 579as_executable_p=as_fn_executable_p 580 581# Sed expression to map a string onto a valid CPP name. 582as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 583 584# Sed expression to map a string onto a valid variable name. 585as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 586 587 588test -n "$DJDIR" || exec 7<&0 </dev/null 589exec 6>&1 590 591# Name of the host. 592# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 593# so uname gets run too. 594ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 595 596# 597# Initializations. 598# 599ac_default_prefix=/usr/local 600ac_clean_files= 601ac_config_libobj_dir=. 602LIBOBJS= 603cross_compiling=no 604subdirs= 605MFLAGS= 606MAKEFLAGS= 607 608# Identity of this package. 609PACKAGE_NAME='tcpdump' 610PACKAGE_TARNAME='tcpdump' 611PACKAGE_VERSION='4.99.5' 612PACKAGE_STRING='tcpdump 4.99.5' 613PACKAGE_BUGREPORT='' 614PACKAGE_URL='' 615 616ac_unique_file="tcpdump.c" 617# Factoring default headers for most tests. 618ac_includes_default="\ 619#include <stddef.h> 620#ifdef HAVE_STDIO_H 621# include <stdio.h> 622#endif 623#ifdef HAVE_STDLIB_H 624# include <stdlib.h> 625#endif 626#ifdef HAVE_STRING_H 627# include <string.h> 628#endif 629#ifdef HAVE_INTTYPES_H 630# include <inttypes.h> 631#endif 632#ifdef HAVE_STDINT_H 633# include <stdint.h> 634#endif 635#ifdef HAVE_STRINGS_H 636# include <strings.h> 637#endif 638#ifdef HAVE_SYS_TYPES_H 639# include <sys/types.h> 640#endif 641#ifdef HAVE_SYS_STAT_H 642# include <sys/stat.h> 643#endif 644#ifdef HAVE_UNISTD_H 645# include <unistd.h> 646#endif" 647 648ac_header_c_list= 649ac_subst_vars='LTLIBOBJS 650INSTALL_DATA 651INSTALL_SCRIPT 652INSTALL_PROGRAM 653MAN_MISC_INFO 654MAN_FILE_FORMATS 655LOCALSRC 656V_PCAPDEP 657V_INCLS 658V_DEFS 659V_CCOPT 660LIBCRYPTO_LIBS_STATIC 661LIBCRYPTO_LIBS 662LIBCRYPTO_CFLAGS 663MKDEP 664DEPENDENCY_CFLAG 665AR 666RANLIB 667PCAP_CONFIG 668LIBOBJS 669EGREP 670GREP 671CPP 672BREW 673PKG_CONFIG_LIBDIR 674PKG_CONFIG_PATH 675PKG_CONFIG 676OBJEXT 677EXEEXT 678ac_ct_CC 679CPPFLAGS 680LDFLAGS 681CFLAGS 682CC 683SHLICC2 684host_os 685host_vendor 686host_cpu 687host 688build_os 689build_vendor 690build_cpu 691build 692target_alias 693host_alias 694build_alias 695LIBS 696ECHO_T 697ECHO_N 698ECHO_C 699DEFS 700mandir 701localedir 702libdir 703psdir 704pdfdir 705dvidir 706htmldir 707infodir 708docdir 709oldincludedir 710includedir 711runstatedir 712localstatedir 713sharedstatedir 714sysconfdir 715datadir 716datarootdir 717libexecdir 718sbindir 719bindir 720program_transform_name 721prefix 722exec_prefix 723PACKAGE_URL 724PACKAGE_BUGREPORT 725PACKAGE_STRING 726PACKAGE_VERSION 727PACKAGE_TARNAME 728PACKAGE_NAME 729PATH_SEPARATOR 730SHELL' 731ac_subst_files='' 732ac_user_opts=' 733enable_option_checking 734with_gcc 735enable_universal 736with_smi 737enable_instrument_functions 738enable_smb 739with_user 740with_chroot 741with_sandbox_capsicum 742enable_local_libpcap 743with_crypto 744with_cap_ng 745' 746 ac_precious_vars='build_alias 747host_alias 748target_alias 749CC 750CFLAGS 751LDFLAGS 752LIBS 753CPPFLAGS 754PKG_CONFIG 755PKG_CONFIG_PATH 756PKG_CONFIG_LIBDIR 757CPP 758LIBCRYPTO_CFLAGS 759LIBCRYPTO_LIBS 760LIBCRYPTO_LIBS_STATIC' 761 762 763# Initialize some variables set by options. 764ac_init_help= 765ac_init_version=false 766ac_unrecognized_opts= 767ac_unrecognized_sep= 768# The variables have the same names as the options, with 769# dashes changed to underlines. 770cache_file=/dev/null 771exec_prefix=NONE 772no_create= 773no_recursion= 774prefix=NONE 775program_prefix=NONE 776program_suffix=NONE 777program_transform_name=s,x,x, 778silent= 779site= 780srcdir= 781verbose= 782x_includes=NONE 783x_libraries=NONE 784 785# Installation directory options. 786# These are left unexpanded so users can "make install exec_prefix=/foo" 787# and all the variables that are supposed to be based on exec_prefix 788# by default will actually change. 789# Use braces instead of parens because sh, perl, etc. also accept them. 790# (The list follows the same order as the GNU Coding Standards.) 791bindir='${exec_prefix}/bin' 792sbindir='${exec_prefix}/sbin' 793libexecdir='${exec_prefix}/libexec' 794datarootdir='${prefix}/share' 795datadir='${datarootdir}' 796sysconfdir='${prefix}/etc' 797sharedstatedir='${prefix}/com' 798localstatedir='${prefix}/var' 799runstatedir='${localstatedir}/run' 800includedir='${prefix}/include' 801oldincludedir='/usr/include' 802docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 803infodir='${datarootdir}/info' 804htmldir='${docdir}' 805dvidir='${docdir}' 806pdfdir='${docdir}' 807psdir='${docdir}' 808libdir='${exec_prefix}/lib' 809localedir='${datarootdir}/locale' 810mandir='${datarootdir}/man' 811 812ac_prev= 813ac_dashdash= 814for ac_option 815do 816 # If the previous option needs an argument, assign it. 817 if test -n "$ac_prev"; then 818 eval $ac_prev=\$ac_option 819 ac_prev= 820 continue 821 fi 822 823 case $ac_option in 824 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 825 *=) ac_optarg= ;; 826 *) ac_optarg=yes ;; 827 esac 828 829 case $ac_dashdash$ac_option in 830 --) 831 ac_dashdash=yes ;; 832 833 -bindir | --bindir | --bindi | --bind | --bin | --bi) 834 ac_prev=bindir ;; 835 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 836 bindir=$ac_optarg ;; 837 838 -build | --build | --buil | --bui | --bu) 839 ac_prev=build_alias ;; 840 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 841 build_alias=$ac_optarg ;; 842 843 -cache-file | --cache-file | --cache-fil | --cache-fi \ 844 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 845 ac_prev=cache_file ;; 846 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 847 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 848 cache_file=$ac_optarg ;; 849 850 --config-cache | -C) 851 cache_file=config.cache ;; 852 853 -datadir | --datadir | --datadi | --datad) 854 ac_prev=datadir ;; 855 -datadir=* | --datadir=* | --datadi=* | --datad=*) 856 datadir=$ac_optarg ;; 857 858 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 859 | --dataroo | --dataro | --datar) 860 ac_prev=datarootdir ;; 861 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 862 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 863 datarootdir=$ac_optarg ;; 864 865 -disable-* | --disable-*) 866 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 867 # Reject names that are not valid shell variable names. 868 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 869 as_fn_error $? "invalid feature name: \`$ac_useropt'" 870 ac_useropt_orig=$ac_useropt 871 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 872 case $ac_user_opts in 873 *" 874"enable_$ac_useropt" 875"*) ;; 876 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 877 ac_unrecognized_sep=', ';; 878 esac 879 eval enable_$ac_useropt=no ;; 880 881 -docdir | --docdir | --docdi | --doc | --do) 882 ac_prev=docdir ;; 883 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 884 docdir=$ac_optarg ;; 885 886 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 887 ac_prev=dvidir ;; 888 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 889 dvidir=$ac_optarg ;; 890 891 -enable-* | --enable-*) 892 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 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=`printf "%s\n" "$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--enable-$ac_useropt_orig" 903 ac_unrecognized_sep=', ';; 904 esac 905 eval enable_$ac_useropt=\$ac_optarg ;; 906 907 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 908 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 909 | --exec | --exe | --ex) 910 ac_prev=exec_prefix ;; 911 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 912 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 913 | --exec=* | --exe=* | --ex=*) 914 exec_prefix=$ac_optarg ;; 915 916 -gas | --gas | --ga | --g) 917 # Obsolete; use --with-gas. 918 with_gas=yes ;; 919 920 -help | --help | --hel | --he | -h) 921 ac_init_help=long ;; 922 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 923 ac_init_help=recursive ;; 924 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 925 ac_init_help=short ;; 926 927 -host | --host | --hos | --ho) 928 ac_prev=host_alias ;; 929 -host=* | --host=* | --hos=* | --ho=*) 930 host_alias=$ac_optarg ;; 931 932 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 933 ac_prev=htmldir ;; 934 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 935 | --ht=*) 936 htmldir=$ac_optarg ;; 937 938 -includedir | --includedir | --includedi | --included | --include \ 939 | --includ | --inclu | --incl | --inc) 940 ac_prev=includedir ;; 941 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 942 | --includ=* | --inclu=* | --incl=* | --inc=*) 943 includedir=$ac_optarg ;; 944 945 -infodir | --infodir | --infodi | --infod | --info | --inf) 946 ac_prev=infodir ;; 947 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 948 infodir=$ac_optarg ;; 949 950 -libdir | --libdir | --libdi | --libd) 951 ac_prev=libdir ;; 952 -libdir=* | --libdir=* | --libdi=* | --libd=*) 953 libdir=$ac_optarg ;; 954 955 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 956 | --libexe | --libex | --libe) 957 ac_prev=libexecdir ;; 958 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 959 | --libexe=* | --libex=* | --libe=*) 960 libexecdir=$ac_optarg ;; 961 962 -localedir | --localedir | --localedi | --localed | --locale) 963 ac_prev=localedir ;; 964 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 965 localedir=$ac_optarg ;; 966 967 -localstatedir | --localstatedir | --localstatedi | --localstated \ 968 | --localstate | --localstat | --localsta | --localst | --locals) 969 ac_prev=localstatedir ;; 970 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 971 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 972 localstatedir=$ac_optarg ;; 973 974 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 975 ac_prev=mandir ;; 976 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 977 mandir=$ac_optarg ;; 978 979 -nfp | --nfp | --nf) 980 # Obsolete; use --without-fp. 981 with_fp=no ;; 982 983 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 984 | --no-cr | --no-c | -n) 985 no_create=yes ;; 986 987 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 988 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 989 no_recursion=yes ;; 990 991 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 992 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 993 | --oldin | --oldi | --old | --ol | --o) 994 ac_prev=oldincludedir ;; 995 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 996 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 997 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 998 oldincludedir=$ac_optarg ;; 999 1000 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1001 ac_prev=prefix ;; 1002 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1003 prefix=$ac_optarg ;; 1004 1005 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1006 | --program-pre | --program-pr | --program-p) 1007 ac_prev=program_prefix ;; 1008 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1009 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1010 program_prefix=$ac_optarg ;; 1011 1012 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1013 | --program-suf | --program-su | --program-s) 1014 ac_prev=program_suffix ;; 1015 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1016 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1017 program_suffix=$ac_optarg ;; 1018 1019 -program-transform-name | --program-transform-name \ 1020 | --program-transform-nam | --program-transform-na \ 1021 | --program-transform-n | --program-transform- \ 1022 | --program-transform | --program-transfor \ 1023 | --program-transfo | --program-transf \ 1024 | --program-trans | --program-tran \ 1025 | --progr-tra | --program-tr | --program-t) 1026 ac_prev=program_transform_name ;; 1027 -program-transform-name=* | --program-transform-name=* \ 1028 | --program-transform-nam=* | --program-transform-na=* \ 1029 | --program-transform-n=* | --program-transform-=* \ 1030 | --program-transform=* | --program-transfor=* \ 1031 | --program-transfo=* | --program-transf=* \ 1032 | --program-trans=* | --program-tran=* \ 1033 | --progr-tra=* | --program-tr=* | --program-t=*) 1034 program_transform_name=$ac_optarg ;; 1035 1036 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1037 ac_prev=pdfdir ;; 1038 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1039 pdfdir=$ac_optarg ;; 1040 1041 -psdir | --psdir | --psdi | --psd | --ps) 1042 ac_prev=psdir ;; 1043 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1044 psdir=$ac_optarg ;; 1045 1046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1047 | -silent | --silent | --silen | --sile | --sil) 1048 silent=yes ;; 1049 1050 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1051 | --runstate | --runstat | --runsta | --runst | --runs \ 1052 | --run | --ru | --r) 1053 ac_prev=runstatedir ;; 1054 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1055 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1056 | --run=* | --ru=* | --r=*) 1057 runstatedir=$ac_optarg ;; 1058 1059 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1060 ac_prev=sbindir ;; 1061 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1062 | --sbi=* | --sb=*) 1063 sbindir=$ac_optarg ;; 1064 1065 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1066 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1067 | --sharedst | --shareds | --shared | --share | --shar \ 1068 | --sha | --sh) 1069 ac_prev=sharedstatedir ;; 1070 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1071 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1072 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1073 | --sha=* | --sh=*) 1074 sharedstatedir=$ac_optarg ;; 1075 1076 -site | --site | --sit) 1077 ac_prev=site ;; 1078 -site=* | --site=* | --sit=*) 1079 site=$ac_optarg ;; 1080 1081 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1082 ac_prev=srcdir ;; 1083 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1084 srcdir=$ac_optarg ;; 1085 1086 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1087 | --syscon | --sysco | --sysc | --sys | --sy) 1088 ac_prev=sysconfdir ;; 1089 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1090 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1091 sysconfdir=$ac_optarg ;; 1092 1093 -target | --target | --targe | --targ | --tar | --ta | --t) 1094 ac_prev=target_alias ;; 1095 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1096 target_alias=$ac_optarg ;; 1097 1098 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1099 verbose=yes ;; 1100 1101 -version | --version | --versio | --versi | --vers | -V) 1102 ac_init_version=: ;; 1103 1104 -with-* | --with-*) 1105 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1106 # Reject names that are not valid shell variable names. 1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1108 as_fn_error $? "invalid package name: \`$ac_useropt'" 1109 ac_useropt_orig=$ac_useropt 1110 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1111 case $ac_user_opts in 1112 *" 1113"with_$ac_useropt" 1114"*) ;; 1115 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1116 ac_unrecognized_sep=', ';; 1117 esac 1118 eval with_$ac_useropt=\$ac_optarg ;; 1119 1120 -without-* | --without-*) 1121 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1122 # Reject names that are not valid shell variable names. 1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1124 as_fn_error $? "invalid package name: \`$ac_useropt'" 1125 ac_useropt_orig=$ac_useropt 1126 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1127 case $ac_user_opts in 1128 *" 1129"with_$ac_useropt" 1130"*) ;; 1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1132 ac_unrecognized_sep=', ';; 1133 esac 1134 eval with_$ac_useropt=no ;; 1135 1136 --x) 1137 # Obsolete; use --with-x. 1138 with_x=yes ;; 1139 1140 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1141 | --x-incl | --x-inc | --x-in | --x-i) 1142 ac_prev=x_includes ;; 1143 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1144 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1145 x_includes=$ac_optarg ;; 1146 1147 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1148 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1149 ac_prev=x_libraries ;; 1150 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1151 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1152 x_libraries=$ac_optarg ;; 1153 1154 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1155Try \`$0 --help' for more information" 1156 ;; 1157 1158 *=*) 1159 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1160 # Reject names that are not valid shell variable names. 1161 case $ac_envvar in #( 1162 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1163 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1164 esac 1165 eval $ac_envvar=\$ac_optarg 1166 export $ac_envvar ;; 1167 1168 *) 1169 # FIXME: should be removed in autoconf 3.0. 1170 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1171 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1172 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1173 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1174 ;; 1175 1176 esac 1177done 1178 1179if test -n "$ac_prev"; then 1180 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1181 as_fn_error $? "missing argument to $ac_option" 1182fi 1183 1184if test -n "$ac_unrecognized_opts"; then 1185 case $enable_option_checking in 1186 no) ;; 1187 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1188 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1189 esac 1190fi 1191 1192# Check all directory arguments for consistency. 1193for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1194 datadir sysconfdir sharedstatedir localstatedir includedir \ 1195 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1196 libdir localedir mandir runstatedir 1197do 1198 eval ac_val=\$$ac_var 1199 # Remove trailing slashes. 1200 case $ac_val in 1201 */ ) 1202 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1203 eval $ac_var=\$ac_val;; 1204 esac 1205 # Be sure to have absolute directory names. 1206 case $ac_val in 1207 [\\/$]* | ?:[\\/]* ) continue;; 1208 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1209 esac 1210 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1211done 1212 1213# There might be people who depend on the old broken behavior: `$host' 1214# used to hold the argument of --host etc. 1215# FIXME: To remove some day. 1216build=$build_alias 1217host=$host_alias 1218target=$target_alias 1219 1220# FIXME: To remove some day. 1221if test "x$host_alias" != x; then 1222 if test "x$build_alias" = x; then 1223 cross_compiling=maybe 1224 elif test "x$build_alias" != "x$host_alias"; then 1225 cross_compiling=yes 1226 fi 1227fi 1228 1229ac_tool_prefix= 1230test -n "$host_alias" && ac_tool_prefix=$host_alias- 1231 1232test "$silent" = yes && exec 6>/dev/null 1233 1234 1235ac_pwd=`pwd` && test -n "$ac_pwd" && 1236ac_ls_di=`ls -di .` && 1237ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1238 as_fn_error $? "working directory cannot be determined" 1239test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1240 as_fn_error $? "pwd does not report name of working directory" 1241 1242 1243# Find the source files, if location was not specified. 1244if test -z "$srcdir"; then 1245 ac_srcdir_defaulted=yes 1246 # Try the directory containing this script, then the parent directory. 1247 ac_confdir=`$as_dirname -- "$as_myself" || 1248$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1249 X"$as_myself" : 'X\(//\)[^/]' \| \ 1250 X"$as_myself" : 'X\(//\)$' \| \ 1251 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1252printf "%s\n" X"$as_myself" | 1253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1254 s//\1/ 1255 q 1256 } 1257 /^X\(\/\/\)[^/].*/{ 1258 s//\1/ 1259 q 1260 } 1261 /^X\(\/\/\)$/{ 1262 s//\1/ 1263 q 1264 } 1265 /^X\(\/\).*/{ 1266 s//\1/ 1267 q 1268 } 1269 s/.*/./; q'` 1270 srcdir=$ac_confdir 1271 if test ! -r "$srcdir/$ac_unique_file"; then 1272 srcdir=.. 1273 fi 1274else 1275 ac_srcdir_defaulted=no 1276fi 1277if test ! -r "$srcdir/$ac_unique_file"; then 1278 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1279 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1280fi 1281ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1282ac_abs_confdir=`( 1283 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1284 pwd)` 1285# When building in place, set srcdir=. 1286if test "$ac_abs_confdir" = "$ac_pwd"; then 1287 srcdir=. 1288fi 1289# Remove unnecessary trailing slashes from srcdir. 1290# Double slashes in file names in object file debugging info 1291# mess up M-x gdb in Emacs. 1292case $srcdir in 1293*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1294esac 1295for ac_var in $ac_precious_vars; do 1296 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1297 eval ac_env_${ac_var}_value=\$${ac_var} 1298 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1299 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1300done 1301 1302# 1303# Report the --help message. 1304# 1305if test "$ac_init_help" = "long"; then 1306 # Omit some internal or obsolete options to make the list less imposing. 1307 # This message is too long to be a string in the A/UX 3.1 sh. 1308 cat <<_ACEOF 1309\`configure' configures tcpdump 4.99.5 to adapt to many kinds of systems. 1310 1311Usage: $0 [OPTION]... [VAR=VALUE]... 1312 1313To assign environment variables (e.g., CC, CFLAGS...), specify them as 1314VAR=VALUE. See below for descriptions of some of the useful variables. 1315 1316Defaults for the options are specified in brackets. 1317 1318Configuration: 1319 -h, --help display this help and exit 1320 --help=short display options specific to this package 1321 --help=recursive display the short help of all the included packages 1322 -V, --version display version information and exit 1323 -q, --quiet, --silent do not print \`checking ...' messages 1324 --cache-file=FILE cache test results in FILE [disabled] 1325 -C, --config-cache alias for \`--cache-file=config.cache' 1326 -n, --no-create do not create output files 1327 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1328 1329Installation directories: 1330 --prefix=PREFIX install architecture-independent files in PREFIX 1331 [$ac_default_prefix] 1332 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1333 [PREFIX] 1334 1335By default, \`make install' will install all the files in 1336\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1337an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1338for instance \`--prefix=\$HOME'. 1339 1340For better control, use the options below. 1341 1342Fine tuning of the installation directories: 1343 --bindir=DIR user executables [EPREFIX/bin] 1344 --sbindir=DIR system admin executables [EPREFIX/sbin] 1345 --libexecdir=DIR program executables [EPREFIX/libexec] 1346 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1347 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1348 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1349 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1350 --libdir=DIR object code libraries [EPREFIX/lib] 1351 --includedir=DIR C header files [PREFIX/include] 1352 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1353 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1354 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1355 --infodir=DIR info documentation [DATAROOTDIR/info] 1356 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1357 --mandir=DIR man documentation [DATAROOTDIR/man] 1358 --docdir=DIR documentation root [DATAROOTDIR/doc/tcpdump] 1359 --htmldir=DIR html documentation [DOCDIR] 1360 --dvidir=DIR dvi documentation [DOCDIR] 1361 --pdfdir=DIR pdf documentation [DOCDIR] 1362 --psdir=DIR ps documentation [DOCDIR] 1363_ACEOF 1364 1365 cat <<\_ACEOF 1366 1367System types: 1368 --build=BUILD configure for building on BUILD [guessed] 1369 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1370_ACEOF 1371fi 1372 1373if test -n "$ac_init_help"; then 1374 case $ac_init_help in 1375 short | recursive ) echo "Configuration of tcpdump 4.99.5:";; 1376 esac 1377 cat <<\_ACEOF 1378 1379Optional Features: 1380 --disable-option-checking ignore unrecognized --enable/--with options 1381 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1382 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1383 --disable-universal don't build universal on macOS 1384 --enable-instrument-functions 1385 enable instrument functions code [default=no] 1386 --enable-smb enable possibly-buggy SMB printer [default=no] 1387 --disable-local-libpcap don't look for a local libpcap [default=check for a 1388 local libpcap] 1389 1390Optional Packages: 1391 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1392 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1393 --without-gcc don't use gcc 1394 --with-smi link with libsmi (allows to load MIBs on the fly to 1395 decode SNMP packets) [default=yes, if available] 1396 --with-user=USERNAME drop privileges by default to USERNAME 1397 --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY 1398 --with-sandbox-capsicum use Capsicum security functions [default=yes, if 1399 available] 1400 --with-crypto[=DIR] use OpenSSL/libressl libcrypto (located in directory 1401 DIR, if specified) [default=yes, if available] 1402 --with-cap-ng use libcap-ng [default=yes, if available] 1403 1404Some influential environment variables: 1405 CC C compiler command 1406 CFLAGS C compiler flags 1407 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1408 nonstandard directory <lib dir> 1409 LIBS libraries to pass to the linker, e.g. -l<library> 1410 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1411 you have headers in a nonstandard directory <include dir> 1412 PKG_CONFIG path to pkg-config utility 1413 PKG_CONFIG_PATH 1414 directories to add to pkg-config's search path 1415 PKG_CONFIG_LIBDIR 1416 path overriding pkg-config's built-in search path 1417 CPP C preprocessor 1418 LIBCRYPTO_CFLAGS 1419 C compiler flags for libcrypto, overriding pkg-config 1420 LIBCRYPTO_LIBS 1421 linker flags for libcrypto, overriding pkg-config 1422 LIBCRYPTO_LIBS_STATIC 1423 static-link linker flags for libcrypto, overriding pkg-config 1424 1425Use these variables to override the choices made by `configure' or to help 1426it to find libraries and programs with nonstandard names/locations. 1427 1428Report bugs to the package provider. 1429_ACEOF 1430ac_status=$? 1431fi 1432 1433if test "$ac_init_help" = "recursive"; then 1434 # If there are subdirs, report their specific --help. 1435 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1436 test -d "$ac_dir" || 1437 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1438 continue 1439 ac_builddir=. 1440 1441case "$ac_dir" in 1442.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1443*) 1444 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1445 # A ".." for each directory in $ac_dir_suffix. 1446 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1447 case $ac_top_builddir_sub in 1448 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1449 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1450 esac ;; 1451esac 1452ac_abs_top_builddir=$ac_pwd 1453ac_abs_builddir=$ac_pwd$ac_dir_suffix 1454# for backward compatibility: 1455ac_top_builddir=$ac_top_build_prefix 1456 1457case $srcdir in 1458 .) # We are building in place. 1459 ac_srcdir=. 1460 ac_top_srcdir=$ac_top_builddir_sub 1461 ac_abs_top_srcdir=$ac_pwd ;; 1462 [\\/]* | ?:[\\/]* ) # Absolute name. 1463 ac_srcdir=$srcdir$ac_dir_suffix; 1464 ac_top_srcdir=$srcdir 1465 ac_abs_top_srcdir=$srcdir ;; 1466 *) # Relative name. 1467 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1468 ac_top_srcdir=$ac_top_build_prefix$srcdir 1469 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1470esac 1471ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1472 1473 cd "$ac_dir" || { ac_status=$?; continue; } 1474 # Check for configure.gnu first; this name is used for a wrapper for 1475 # Metaconfig's "Configure" on case-insensitive file systems. 1476 if test -f "$ac_srcdir/configure.gnu"; then 1477 echo && 1478 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1479 elif test -f "$ac_srcdir/configure"; then 1480 echo && 1481 $SHELL "$ac_srcdir/configure" --help=recursive 1482 else 1483 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1484 fi || ac_status=$? 1485 cd "$ac_pwd" || { ac_status=$?; break; } 1486 done 1487fi 1488 1489test -n "$ac_init_help" && exit $ac_status 1490if $ac_init_version; then 1491 cat <<\_ACEOF 1492tcpdump configure 4.99.5 1493generated by GNU Autoconf 2.71 1494 1495Copyright (C) 2021 Free Software Foundation, Inc. 1496This configure script is free software; the Free Software Foundation 1497gives unlimited permission to copy, distribute and modify it. 1498_ACEOF 1499 exit 1500fi 1501 1502## ------------------------ ## 1503## Autoconf initialization. ## 1504## ------------------------ ## 1505 1506# ac_fn_c_try_compile LINENO 1507# -------------------------- 1508# Try to compile conftest.$ac_ext, and return whether this succeeded. 1509ac_fn_c_try_compile () 1510{ 1511 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1512 rm -f conftest.$ac_objext conftest.beam 1513 if { { ac_try="$ac_compile" 1514case "(($ac_try" in 1515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1516 *) ac_try_echo=$ac_try;; 1517esac 1518eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1519printf "%s\n" "$ac_try_echo"; } >&5 1520 (eval "$ac_compile") 2>conftest.err 1521 ac_status=$? 1522 if test -s conftest.err; then 1523 grep -v '^ *+' conftest.err >conftest.er1 1524 cat conftest.er1 >&5 1525 mv -f conftest.er1 conftest.err 1526 fi 1527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1528 test $ac_status = 0; } && { 1529 test -z "$ac_c_werror_flag" || 1530 test ! -s conftest.err 1531 } && test -s conftest.$ac_objext 1532then : 1533 ac_retval=0 1534else $as_nop 1535 printf "%s\n" "$as_me: failed program was:" >&5 1536sed 's/^/| /' conftest.$ac_ext >&5 1537 1538 ac_retval=1 1539fi 1540 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1541 as_fn_set_status $ac_retval 1542 1543} # ac_fn_c_try_compile 1544 1545# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1546# ------------------------------------------------------- 1547# Tests whether HEADER exists and can be compiled using the include files in 1548# INCLUDES, setting the cache variable VAR accordingly. 1549ac_fn_c_check_header_compile () 1550{ 1551 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1553printf %s "checking for $2... " >&6; } 1554if eval test \${$3+y} 1555then : 1556 printf %s "(cached) " >&6 1557else $as_nop 1558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1559/* end confdefs.h. */ 1560$4 1561#include <$2> 1562_ACEOF 1563if ac_fn_c_try_compile "$LINENO" 1564then : 1565 eval "$3=yes" 1566else $as_nop 1567 eval "$3=no" 1568fi 1569rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1570fi 1571eval ac_res=\$$3 1572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1573printf "%s\n" "$ac_res" >&6; } 1574 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1575 1576} # ac_fn_c_check_header_compile 1577 1578# ac_fn_c_try_run LINENO 1579# ---------------------- 1580# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 1581# executables *can* be run. 1582ac_fn_c_try_run () 1583{ 1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1585 if { { ac_try="$ac_link" 1586case "(($ac_try" in 1587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1588 *) ac_try_echo=$ac_try;; 1589esac 1590eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1591printf "%s\n" "$ac_try_echo"; } >&5 1592 (eval "$ac_link") 2>&5 1593 ac_status=$? 1594 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1595 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1596 { { case "(($ac_try" in 1597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1598 *) ac_try_echo=$ac_try;; 1599esac 1600eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1601printf "%s\n" "$ac_try_echo"; } >&5 1602 (eval "$ac_try") 2>&5 1603 ac_status=$? 1604 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1605 test $ac_status = 0; }; } 1606then : 1607 ac_retval=0 1608else $as_nop 1609 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 1610 printf "%s\n" "$as_me: failed program was:" >&5 1611sed 's/^/| /' conftest.$ac_ext >&5 1612 1613 ac_retval=$ac_status 1614fi 1615 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1616 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1617 as_fn_set_status $ac_retval 1618 1619} # ac_fn_c_try_run 1620 1621# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1622# -------------------------------------------- 1623# Tries to find the compile-time value of EXPR in a program that includes 1624# INCLUDES, setting VAR accordingly. Returns whether the value could be 1625# computed 1626ac_fn_c_compute_int () 1627{ 1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1629 if test "$cross_compiling" = yes; then 1630 # Depending upon the size, compute the lo and hi bounds. 1631cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1632/* end confdefs.h. */ 1633$4 1634int 1635main (void) 1636{ 1637static int test_array [1 - 2 * !(($2) >= 0)]; 1638test_array [0] = 0; 1639return test_array [0]; 1640 1641 ; 1642 return 0; 1643} 1644_ACEOF 1645if ac_fn_c_try_compile "$LINENO" 1646then : 1647 ac_lo=0 ac_mid=0 1648 while :; do 1649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1650/* end confdefs.h. */ 1651$4 1652int 1653main (void) 1654{ 1655static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1656test_array [0] = 0; 1657return test_array [0]; 1658 1659 ; 1660 return 0; 1661} 1662_ACEOF 1663if ac_fn_c_try_compile "$LINENO" 1664then : 1665 ac_hi=$ac_mid; break 1666else $as_nop 1667 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 1668 if test $ac_lo -le $ac_mid; then 1669 ac_lo= ac_hi= 1670 break 1671 fi 1672 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 1673fi 1674rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1675 done 1676else $as_nop 1677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1678/* end confdefs.h. */ 1679$4 1680int 1681main (void) 1682{ 1683static int test_array [1 - 2 * !(($2) < 0)]; 1684test_array [0] = 0; 1685return test_array [0]; 1686 1687 ; 1688 return 0; 1689} 1690_ACEOF 1691if ac_fn_c_try_compile "$LINENO" 1692then : 1693 ac_hi=-1 ac_mid=-1 1694 while :; do 1695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1696/* end confdefs.h. */ 1697$4 1698int 1699main (void) 1700{ 1701static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 1702test_array [0] = 0; 1703return test_array [0]; 1704 1705 ; 1706 return 0; 1707} 1708_ACEOF 1709if ac_fn_c_try_compile "$LINENO" 1710then : 1711 ac_lo=$ac_mid; break 1712else $as_nop 1713 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 1714 if test $ac_mid -le $ac_hi; then 1715 ac_lo= ac_hi= 1716 break 1717 fi 1718 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 1719fi 1720rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1721 done 1722else $as_nop 1723 ac_lo= ac_hi= 1724fi 1725rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1726fi 1727rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1728# Binary search between lo and hi bounds. 1729while test "x$ac_lo" != "x$ac_hi"; do 1730 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 1731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1732/* end confdefs.h. */ 1733$4 1734int 1735main (void) 1736{ 1737static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1738test_array [0] = 0; 1739return test_array [0]; 1740 1741 ; 1742 return 0; 1743} 1744_ACEOF 1745if ac_fn_c_try_compile "$LINENO" 1746then : 1747 ac_hi=$ac_mid 1748else $as_nop 1749 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 1750fi 1751rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1752done 1753case $ac_lo in #(( 1754?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 1755'') ac_retval=1 ;; 1756esac 1757 else 1758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1759/* end confdefs.h. */ 1760$4 1761static long int longval (void) { return $2; } 1762static unsigned long int ulongval (void) { return $2; } 1763#include <stdio.h> 1764#include <stdlib.h> 1765int 1766main (void) 1767{ 1768 1769 FILE *f = fopen ("conftest.val", "w"); 1770 if (! f) 1771 return 1; 1772 if (($2) < 0) 1773 { 1774 long int i = longval (); 1775 if (i != ($2)) 1776 return 1; 1777 fprintf (f, "%ld", i); 1778 } 1779 else 1780 { 1781 unsigned long int i = ulongval (); 1782 if (i != ($2)) 1783 return 1; 1784 fprintf (f, "%lu", i); 1785 } 1786 /* Do not output a trailing newline, as this causes \r\n confusion 1787 on some platforms. */ 1788 return ferror (f) || fclose (f) != 0; 1789 1790 ; 1791 return 0; 1792} 1793_ACEOF 1794if ac_fn_c_try_run "$LINENO" 1795then : 1796 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 1797else $as_nop 1798 ac_retval=1 1799fi 1800rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 1801 conftest.$ac_objext conftest.beam conftest.$ac_ext 1802rm -f conftest.val 1803 1804 fi 1805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1806 as_fn_set_status $ac_retval 1807 1808} # ac_fn_c_compute_int 1809 1810# ac_fn_c_try_link LINENO 1811# ----------------------- 1812# Try to link conftest.$ac_ext, and return whether this succeeded. 1813ac_fn_c_try_link () 1814{ 1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1816 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1817 if { { ac_try="$ac_link" 1818case "(($ac_try" in 1819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1820 *) ac_try_echo=$ac_try;; 1821esac 1822eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1823printf "%s\n" "$ac_try_echo"; } >&5 1824 (eval "$ac_link") 2>conftest.err 1825 ac_status=$? 1826 if test -s conftest.err; then 1827 grep -v '^ *+' conftest.err >conftest.er1 1828 cat conftest.er1 >&5 1829 mv -f conftest.er1 conftest.err 1830 fi 1831 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1832 test $ac_status = 0; } && { 1833 test -z "$ac_c_werror_flag" || 1834 test ! -s conftest.err 1835 } && test -s conftest$ac_exeext && { 1836 test "$cross_compiling" = yes || 1837 test -x conftest$ac_exeext 1838 } 1839then : 1840 ac_retval=0 1841else $as_nop 1842 printf "%s\n" "$as_me: failed program was:" >&5 1843sed 's/^/| /' conftest.$ac_ext >&5 1844 1845 ac_retval=1 1846fi 1847 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1848 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1849 # interfere with the next link command; also delete a directory that is 1850 # left behind by Apple's compiler. We do this before executing the actions. 1851 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1853 as_fn_set_status $ac_retval 1854 1855} # ac_fn_c_try_link 1856 1857# ac_fn_c_check_func LINENO FUNC VAR 1858# ---------------------------------- 1859# Tests whether FUNC exists, setting the cache variable VAR accordingly 1860ac_fn_c_check_func () 1861{ 1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1864printf %s "checking for $2... " >&6; } 1865if eval test \${$3+y} 1866then : 1867 printf %s "(cached) " >&6 1868else $as_nop 1869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1870/* end confdefs.h. */ 1871/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1872 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1873#define $2 innocuous_$2 1874 1875/* System header to define __stub macros and hopefully few prototypes, 1876 which can conflict with char $2 (); below. */ 1877 1878#include <limits.h> 1879#undef $2 1880 1881/* Override any GCC internal prototype to avoid an error. 1882 Use char because int might match the return type of a GCC 1883 builtin and then its argument prototype would still apply. */ 1884#ifdef __cplusplus 1885extern "C" 1886#endif 1887char $2 (); 1888/* The GNU C library defines this for functions which it implements 1889 to always fail with ENOSYS. Some functions are actually named 1890 something starting with __ and the normal name is an alias. */ 1891#if defined __stub_$2 || defined __stub___$2 1892choke me 1893#endif 1894 1895int 1896main (void) 1897{ 1898return $2 (); 1899 ; 1900 return 0; 1901} 1902_ACEOF 1903if ac_fn_c_try_link "$LINENO" 1904then : 1905 eval "$3=yes" 1906else $as_nop 1907 eval "$3=no" 1908fi 1909rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1910 conftest$ac_exeext conftest.$ac_ext 1911fi 1912eval ac_res=\$$3 1913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1914printf "%s\n" "$ac_res" >&6; } 1915 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1916 1917} # ac_fn_c_check_func 1918 1919# ac_fn_c_try_cpp LINENO 1920# ---------------------- 1921# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1922ac_fn_c_try_cpp () 1923{ 1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1925 if { { ac_try="$ac_cpp conftest.$ac_ext" 1926case "(($ac_try" in 1927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1928 *) ac_try_echo=$ac_try;; 1929esac 1930eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1931printf "%s\n" "$ac_try_echo"; } >&5 1932 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1933 ac_status=$? 1934 if test -s conftest.err; then 1935 grep -v '^ *+' conftest.err >conftest.er1 1936 cat conftest.er1 >&5 1937 mv -f conftest.er1 conftest.err 1938 fi 1939 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1940 test $ac_status = 0; } > conftest.i && { 1941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1942 test ! -s conftest.err 1943 } 1944then : 1945 ac_retval=0 1946else $as_nop 1947 printf "%s\n" "$as_me: failed program was:" >&5 1948sed 's/^/| /' conftest.$ac_ext >&5 1949 1950 ac_retval=1 1951fi 1952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1953 as_fn_set_status $ac_retval 1954 1955} # ac_fn_c_try_cpp 1956 1957# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1958# ------------------------------------------------------------------ 1959# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1960# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1961ac_fn_check_decl () 1962{ 1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1964 as_decl_name=`echo $2|sed 's/ *(.*//'` 1965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1966printf %s "checking whether $as_decl_name is declared... " >&6; } 1967if eval test \${$3+y} 1968then : 1969 printf %s "(cached) " >&6 1970else $as_nop 1971 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1972 eval ac_save_FLAGS=\$$6 1973 as_fn_append $6 " $5" 1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1975/* end confdefs.h. */ 1976$4 1977int 1978main (void) 1979{ 1980#ifndef $as_decl_name 1981#ifdef __cplusplus 1982 (void) $as_decl_use; 1983#else 1984 (void) $as_decl_name; 1985#endif 1986#endif 1987 1988 ; 1989 return 0; 1990} 1991_ACEOF 1992if ac_fn_c_try_compile "$LINENO" 1993then : 1994 eval "$3=yes" 1995else $as_nop 1996 eval "$3=no" 1997fi 1998rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1999 eval $6=\$ac_save_FLAGS 2000 2001fi 2002eval ac_res=\$$3 2003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2004printf "%s\n" "$ac_res" >&6; } 2005 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2006 2007} # ac_fn_check_decl 2008 2009# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2010# ------------------------------------------- 2011# Tests whether TYPE exists after having included INCLUDES, setting cache 2012# variable VAR accordingly. 2013ac_fn_c_check_type () 2014{ 2015 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2017printf %s "checking for $2... " >&6; } 2018if eval test \${$3+y} 2019then : 2020 printf %s "(cached) " >&6 2021else $as_nop 2022 eval "$3=no" 2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2024/* end confdefs.h. */ 2025$4 2026int 2027main (void) 2028{ 2029if (sizeof ($2)) 2030 return 0; 2031 ; 2032 return 0; 2033} 2034_ACEOF 2035if ac_fn_c_try_compile "$LINENO" 2036then : 2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2038/* end confdefs.h. */ 2039$4 2040int 2041main (void) 2042{ 2043if (sizeof (($2))) 2044 return 0; 2045 ; 2046 return 0; 2047} 2048_ACEOF 2049if ac_fn_c_try_compile "$LINENO" 2050then : 2051 2052else $as_nop 2053 eval "$3=yes" 2054fi 2055rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2056fi 2057rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2058fi 2059eval ac_res=\$$3 2060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2061printf "%s\n" "$ac_res" >&6; } 2062 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2063 2064} # ac_fn_c_check_type 2065ac_configure_args_raw= 2066for ac_arg 2067do 2068 case $ac_arg in 2069 *\'*) 2070 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2071 esac 2072 as_fn_append ac_configure_args_raw " '$ac_arg'" 2073done 2074 2075case $ac_configure_args_raw in 2076 *$as_nl*) 2077 ac_safe_unquote= ;; 2078 *) 2079 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2080 ac_unsafe_a="$ac_unsafe_z#~" 2081 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2082 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2083esac 2084 2085cat >config.log <<_ACEOF 2086This file contains any messages produced by compilers while 2087running configure, to aid debugging if configure makes a mistake. 2088 2089It was created by tcpdump $as_me 4.99.5, which was 2090generated by GNU Autoconf 2.71. Invocation command line was 2091 2092 $ $0$ac_configure_args_raw 2093 2094_ACEOF 2095exec 5>>config.log 2096{ 2097cat <<_ASUNAME 2098## --------- ## 2099## Platform. ## 2100## --------- ## 2101 2102hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2103uname -m = `(uname -m) 2>/dev/null || echo unknown` 2104uname -r = `(uname -r) 2>/dev/null || echo unknown` 2105uname -s = `(uname -s) 2>/dev/null || echo unknown` 2106uname -v = `(uname -v) 2>/dev/null || echo unknown` 2107 2108/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2109/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2110 2111/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2112/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2113/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2114/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2115/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2116/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2117/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2118 2119_ASUNAME 2120 2121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2122for as_dir in $PATH 2123do 2124 IFS=$as_save_IFS 2125 case $as_dir in #((( 2126 '') as_dir=./ ;; 2127 */) ;; 2128 *) as_dir=$as_dir/ ;; 2129 esac 2130 printf "%s\n" "PATH: $as_dir" 2131 done 2132IFS=$as_save_IFS 2133 2134} >&5 2135 2136cat >&5 <<_ACEOF 2137 2138 2139## ----------- ## 2140## Core tests. ## 2141## ----------- ## 2142 2143_ACEOF 2144 2145 2146# Keep a trace of the command line. 2147# Strip out --no-create and --no-recursion so they do not pile up. 2148# Strip out --silent because we don't want to record it for future runs. 2149# Also quote any args containing shell meta-characters. 2150# Make two passes to allow for proper duplicate-argument suppression. 2151ac_configure_args= 2152ac_configure_args0= 2153ac_configure_args1= 2154ac_must_keep_next=false 2155for ac_pass in 1 2 2156do 2157 for ac_arg 2158 do 2159 case $ac_arg in 2160 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2161 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2162 | -silent | --silent | --silen | --sile | --sil) 2163 continue ;; 2164 *\'*) 2165 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2166 esac 2167 case $ac_pass in 2168 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2169 2) 2170 as_fn_append ac_configure_args1 " '$ac_arg'" 2171 if test $ac_must_keep_next = true; then 2172 ac_must_keep_next=false # Got value, back to normal. 2173 else 2174 case $ac_arg in 2175 *=* | --config-cache | -C | -disable-* | --disable-* \ 2176 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2177 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2178 | -with-* | --with-* | -without-* | --without-* | --x) 2179 case "$ac_configure_args0 " in 2180 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2181 esac 2182 ;; 2183 -* ) ac_must_keep_next=true ;; 2184 esac 2185 fi 2186 as_fn_append ac_configure_args " '$ac_arg'" 2187 ;; 2188 esac 2189 done 2190done 2191{ ac_configure_args0=; unset ac_configure_args0;} 2192{ ac_configure_args1=; unset ac_configure_args1;} 2193 2194# When interrupted or exit'd, cleanup temporary files, and complete 2195# config.log. We remove comments because anyway the quotes in there 2196# would cause problems or look ugly. 2197# WARNING: Use '\'' to represent an apostrophe within the trap. 2198# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2199trap 'exit_status=$? 2200 # Sanitize IFS. 2201 IFS=" "" $as_nl" 2202 # Save into config.log some information that might help in debugging. 2203 { 2204 echo 2205 2206 printf "%s\n" "## ---------------- ## 2207## Cache variables. ## 2208## ---------------- ##" 2209 echo 2210 # The following way of writing the cache mishandles newlines in values, 2211( 2212 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2213 eval ac_val=\$$ac_var 2214 case $ac_val in #( 2215 *${as_nl}*) 2216 case $ac_var in #( 2217 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2218printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2219 esac 2220 case $ac_var in #( 2221 _ | IFS | as_nl) ;; #( 2222 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2223 *) { eval $ac_var=; unset $ac_var;} ;; 2224 esac ;; 2225 esac 2226 done 2227 (set) 2>&1 | 2228 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2229 *${as_nl}ac_space=\ *) 2230 sed -n \ 2231 "s/'\''/'\''\\\\'\'''\''/g; 2232 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2233 ;; #( 2234 *) 2235 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2236 ;; 2237 esac | 2238 sort 2239) 2240 echo 2241 2242 printf "%s\n" "## ----------------- ## 2243## Output variables. ## 2244## ----------------- ##" 2245 echo 2246 for ac_var in $ac_subst_vars 2247 do 2248 eval ac_val=\$$ac_var 2249 case $ac_val in 2250 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2251 esac 2252 printf "%s\n" "$ac_var='\''$ac_val'\''" 2253 done | sort 2254 echo 2255 2256 if test -n "$ac_subst_files"; then 2257 printf "%s\n" "## ------------------- ## 2258## File substitutions. ## 2259## ------------------- ##" 2260 echo 2261 for ac_var in $ac_subst_files 2262 do 2263 eval ac_val=\$$ac_var 2264 case $ac_val in 2265 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2266 esac 2267 printf "%s\n" "$ac_var='\''$ac_val'\''" 2268 done | sort 2269 echo 2270 fi 2271 2272 if test -s confdefs.h; then 2273 printf "%s\n" "## ----------- ## 2274## confdefs.h. ## 2275## ----------- ##" 2276 echo 2277 cat confdefs.h 2278 echo 2279 fi 2280 test "$ac_signal" != 0 && 2281 printf "%s\n" "$as_me: caught signal $ac_signal" 2282 printf "%s\n" "$as_me: exit $exit_status" 2283 } >&5 2284 rm -f core *.core core.conftest.* && 2285 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2286 exit $exit_status 2287' 0 2288for ac_signal in 1 2 13 15; do 2289 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2290done 2291ac_signal=0 2292 2293# confdefs.h avoids OS command line length limits that DEFS can exceed. 2294rm -f -r conftest* confdefs.h 2295 2296printf "%s\n" "/* confdefs.h */" > confdefs.h 2297 2298# Predefined preprocessor variables. 2299 2300printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2301 2302printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2303 2304printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2305 2306printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2307 2308printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2309 2310printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2311 2312 2313# Let the site file select an alternate cache file if it wants to. 2314# Prefer an explicitly selected file to automatically selected ones. 2315if test -n "$CONFIG_SITE"; then 2316 ac_site_files="$CONFIG_SITE" 2317elif test "x$prefix" != xNONE; then 2318 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2319else 2320 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2321fi 2322 2323for ac_site_file in $ac_site_files 2324do 2325 case $ac_site_file in #( 2326 */*) : 2327 ;; #( 2328 *) : 2329 ac_site_file=./$ac_site_file ;; 2330esac 2331 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2333printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2334 sed 's/^/| /' "$ac_site_file" >&5 2335 . "$ac_site_file" \ 2336 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2337printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2338as_fn_error $? "failed to load site script $ac_site_file 2339See \`config.log' for more details" "$LINENO" 5; } 2340 fi 2341done 2342 2343if test -r "$cache_file"; then 2344 # Some versions of bash will fail to source /dev/null (special files 2345 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2346 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2348printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2349 case $cache_file in 2350 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2351 *) . "./$cache_file";; 2352 esac 2353 fi 2354else 2355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2356printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2357 >$cache_file 2358fi 2359 2360# Test code for whether the C compiler supports C89 (global declarations) 2361ac_c_conftest_c89_globals=' 2362/* Does the compiler advertise C89 conformance? 2363 Do not test the value of __STDC__, because some compilers set it to 0 2364 while being otherwise adequately conformant. */ 2365#if !defined __STDC__ 2366# error "Compiler does not advertise C89 conformance" 2367#endif 2368 2369#include <stddef.h> 2370#include <stdarg.h> 2371struct stat; 2372/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2373struct buf { int x; }; 2374struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2375static char *e (p, i) 2376 char **p; 2377 int i; 2378{ 2379 return p[i]; 2380} 2381static char *f (char * (*g) (char **, int), char **p, ...) 2382{ 2383 char *s; 2384 va_list v; 2385 va_start (v,p); 2386 s = g (p, va_arg (v,int)); 2387 va_end (v); 2388 return s; 2389} 2390 2391/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2392 function prototypes and stuff, but not \xHH hex character constants. 2393 These do not provoke an error unfortunately, instead are silently treated 2394 as an "x". The following induces an error, until -std is added to get 2395 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2396 array size at least. It is necessary to write \x00 == 0 to get something 2397 that is true only with -std. */ 2398int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2399 2400/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2401 inside strings and character constants. */ 2402#define FOO(x) '\''x'\'' 2403int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2404 2405int test (int i, double x); 2406struct s1 {int (*f) (int a);}; 2407struct s2 {int (*f) (double a);}; 2408int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2409 int, int);' 2410 2411# Test code for whether the C compiler supports C89 (body of main). 2412ac_c_conftest_c89_main=' 2413ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2414' 2415 2416# Test code for whether the C compiler supports C99 (global declarations) 2417ac_c_conftest_c99_globals=' 2418// Does the compiler advertise C99 conformance? 2419#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2420# error "Compiler does not advertise C99 conformance" 2421#endif 2422 2423#include <stdbool.h> 2424extern int puts (const char *); 2425extern int printf (const char *, ...); 2426extern int dprintf (int, const char *, ...); 2427extern void *malloc (size_t); 2428 2429// Check varargs macros. These examples are taken from C99 6.10.3.5. 2430// dprintf is used instead of fprintf to avoid needing to declare 2431// FILE and stderr. 2432#define debug(...) dprintf (2, __VA_ARGS__) 2433#define showlist(...) puts (#__VA_ARGS__) 2434#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2435static void 2436test_varargs_macros (void) 2437{ 2438 int x = 1234; 2439 int y = 5678; 2440 debug ("Flag"); 2441 debug ("X = %d\n", x); 2442 showlist (The first, second, and third items.); 2443 report (x>y, "x is %d but y is %d", x, y); 2444} 2445 2446// Check long long types. 2447#define BIG64 18446744073709551615ull 2448#define BIG32 4294967295ul 2449#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2450#if !BIG_OK 2451 #error "your preprocessor is broken" 2452#endif 2453#if BIG_OK 2454#else 2455 #error "your preprocessor is broken" 2456#endif 2457static long long int bignum = -9223372036854775807LL; 2458static unsigned long long int ubignum = BIG64; 2459 2460struct incomplete_array 2461{ 2462 int datasize; 2463 double data[]; 2464}; 2465 2466struct named_init { 2467 int number; 2468 const wchar_t *name; 2469 double average; 2470}; 2471 2472typedef const char *ccp; 2473 2474static inline int 2475test_restrict (ccp restrict text) 2476{ 2477 // See if C++-style comments work. 2478 // Iterate through items via the restricted pointer. 2479 // Also check for declarations in for loops. 2480 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2481 continue; 2482 return 0; 2483} 2484 2485// Check varargs and va_copy. 2486static bool 2487test_varargs (const char *format, ...) 2488{ 2489 va_list args; 2490 va_start (args, format); 2491 va_list args_copy; 2492 va_copy (args_copy, args); 2493 2494 const char *str = ""; 2495 int number = 0; 2496 float fnumber = 0; 2497 2498 while (*format) 2499 { 2500 switch (*format++) 2501 { 2502 case '\''s'\'': // string 2503 str = va_arg (args_copy, const char *); 2504 break; 2505 case '\''d'\'': // int 2506 number = va_arg (args_copy, int); 2507 break; 2508 case '\''f'\'': // float 2509 fnumber = va_arg (args_copy, double); 2510 break; 2511 default: 2512 break; 2513 } 2514 } 2515 va_end (args_copy); 2516 va_end (args); 2517 2518 return *str && number && fnumber; 2519} 2520' 2521 2522# Test code for whether the C compiler supports C99 (body of main). 2523ac_c_conftest_c99_main=' 2524 // Check bool. 2525 _Bool success = false; 2526 success |= (argc != 0); 2527 2528 // Check restrict. 2529 if (test_restrict ("String literal") == 0) 2530 success = true; 2531 char *restrict newvar = "Another string"; 2532 2533 // Check varargs. 2534 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2535 test_varargs_macros (); 2536 2537 // Check flexible array members. 2538 struct incomplete_array *ia = 2539 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2540 ia->datasize = 10; 2541 for (int i = 0; i < ia->datasize; ++i) 2542 ia->data[i] = i * 1.234; 2543 2544 // Check named initializers. 2545 struct named_init ni = { 2546 .number = 34, 2547 .name = L"Test wide string", 2548 .average = 543.34343, 2549 }; 2550 2551 ni.number = 58; 2552 2553 int dynamic_array[ni.number]; 2554 dynamic_array[0] = argv[0][0]; 2555 dynamic_array[ni.number - 1] = 543; 2556 2557 // work around unused variable warnings 2558 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2559 || dynamic_array[ni.number - 1] != 543); 2560' 2561 2562# Test code for whether the C compiler supports C11 (global declarations) 2563ac_c_conftest_c11_globals=' 2564// Does the compiler advertise C11 conformance? 2565#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2566# error "Compiler does not advertise C11 conformance" 2567#endif 2568 2569// Check _Alignas. 2570char _Alignas (double) aligned_as_double; 2571char _Alignas (0) no_special_alignment; 2572extern char aligned_as_int; 2573char _Alignas (0) _Alignas (int) aligned_as_int; 2574 2575// Check _Alignof. 2576enum 2577{ 2578 int_alignment = _Alignof (int), 2579 int_array_alignment = _Alignof (int[100]), 2580 char_alignment = _Alignof (char) 2581}; 2582_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2583 2584// Check _Noreturn. 2585int _Noreturn does_not_return (void) { for (;;) continue; } 2586 2587// Check _Static_assert. 2588struct test_static_assert 2589{ 2590 int x; 2591 _Static_assert (sizeof (int) <= sizeof (long int), 2592 "_Static_assert does not work in struct"); 2593 long int y; 2594}; 2595 2596// Check UTF-8 literals. 2597#define u8 syntax error! 2598char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2599 2600// Check duplicate typedefs. 2601typedef long *long_ptr; 2602typedef long int *long_ptr; 2603typedef long_ptr long_ptr; 2604 2605// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2606struct anonymous 2607{ 2608 union { 2609 struct { int i; int j; }; 2610 struct { int k; long int l; } w; 2611 }; 2612 int m; 2613} v1; 2614' 2615 2616# Test code for whether the C compiler supports C11 (body of main). 2617ac_c_conftest_c11_main=' 2618 _Static_assert ((offsetof (struct anonymous, i) 2619 == offsetof (struct anonymous, w.k)), 2620 "Anonymous union alignment botch"); 2621 v1.i = 2; 2622 v1.w.k = 5; 2623 ok |= v1.i != 5; 2624' 2625 2626# Test code for whether the C compiler supports C11 (complete). 2627ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2628${ac_c_conftest_c99_globals} 2629${ac_c_conftest_c11_globals} 2630 2631int 2632main (int argc, char **argv) 2633{ 2634 int ok = 0; 2635 ${ac_c_conftest_c89_main} 2636 ${ac_c_conftest_c99_main} 2637 ${ac_c_conftest_c11_main} 2638 return ok; 2639} 2640" 2641 2642# Test code for whether the C compiler supports C99 (complete). 2643ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2644${ac_c_conftest_c99_globals} 2645 2646int 2647main (int argc, char **argv) 2648{ 2649 int ok = 0; 2650 ${ac_c_conftest_c89_main} 2651 ${ac_c_conftest_c99_main} 2652 return ok; 2653} 2654" 2655 2656# Test code for whether the C compiler supports C89 (complete). 2657ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2658 2659int 2660main (int argc, char **argv) 2661{ 2662 int ok = 0; 2663 ${ac_c_conftest_c89_main} 2664 return ok; 2665} 2666" 2667 2668as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2669as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2670as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2671as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2672as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2673as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2674as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2675as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2676as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2677 2678# Auxiliary files required by this configure script. 2679ac_aux_files="install-sh config.guess config.sub" 2680 2681# Locations in which to look for auxiliary files. 2682ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2683 2684# Search for a directory containing all of the required auxiliary files, 2685# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2686# If we don't find one directory that contains all the files we need, 2687# we report the set of missing files from the *first* directory in 2688# $ac_aux_dir_candidates and give up. 2689ac_missing_aux_files="" 2690ac_first_candidate=: 2691printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2693as_found=false 2694for as_dir in $ac_aux_dir_candidates 2695do 2696 IFS=$as_save_IFS 2697 case $as_dir in #((( 2698 '') as_dir=./ ;; 2699 */) ;; 2700 *) as_dir=$as_dir/ ;; 2701 esac 2702 as_found=: 2703 2704 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2705 ac_aux_dir_found=yes 2706 ac_install_sh= 2707 for ac_aux in $ac_aux_files 2708 do 2709 # As a special case, if "install-sh" is required, that requirement 2710 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2711 # and $ac_install_sh is set appropriately for whichever one is found. 2712 if test x"$ac_aux" = x"install-sh" 2713 then 2714 if test -f "${as_dir}install-sh"; then 2715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2716 ac_install_sh="${as_dir}install-sh -c" 2717 elif test -f "${as_dir}install.sh"; then 2718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2719 ac_install_sh="${as_dir}install.sh -c" 2720 elif test -f "${as_dir}shtool"; then 2721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2722 ac_install_sh="${as_dir}shtool install -c" 2723 else 2724 ac_aux_dir_found=no 2725 if $ac_first_candidate; then 2726 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2727 else 2728 break 2729 fi 2730 fi 2731 else 2732 if test -f "${as_dir}${ac_aux}"; then 2733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2734 else 2735 ac_aux_dir_found=no 2736 if $ac_first_candidate; then 2737 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2738 else 2739 break 2740 fi 2741 fi 2742 fi 2743 done 2744 if test "$ac_aux_dir_found" = yes; then 2745 ac_aux_dir="$as_dir" 2746 break 2747 fi 2748 ac_first_candidate=false 2749 2750 as_found=false 2751done 2752IFS=$as_save_IFS 2753if $as_found 2754then : 2755 2756else $as_nop 2757 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2758fi 2759 2760 2761# These three variables are undocumented and unsupported, 2762# and are intended to be withdrawn in a future Autoconf release. 2763# They can cause serious problems if a builder's source tree is in a directory 2764# whose full name contains unusual characters. 2765if test -f "${ac_aux_dir}config.guess"; then 2766 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2767fi 2768if test -f "${ac_aux_dir}config.sub"; then 2769 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2770fi 2771if test -f "$ac_aux_dir/configure"; then 2772 ac_configure="$SHELL ${ac_aux_dir}configure" 2773fi 2774 2775# Check that the precious variables saved in the cache have kept the same 2776# value. 2777ac_cache_corrupted=false 2778for ac_var in $ac_precious_vars; do 2779 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2780 eval ac_new_set=\$ac_env_${ac_var}_set 2781 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2782 eval ac_new_val=\$ac_env_${ac_var}_value 2783 case $ac_old_set,$ac_new_set in 2784 set,) 2785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2786printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2787 ac_cache_corrupted=: ;; 2788 ,set) 2789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2790printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2791 ac_cache_corrupted=: ;; 2792 ,);; 2793 *) 2794 if test "x$ac_old_val" != "x$ac_new_val"; then 2795 # differences in whitespace do not lead to failure. 2796 ac_old_val_w=`echo x $ac_old_val` 2797 ac_new_val_w=`echo x $ac_new_val` 2798 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2800printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2801 ac_cache_corrupted=: 2802 else 2803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2804printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2805 eval $ac_var=\$ac_old_val 2806 fi 2807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2808printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2810printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2811 fi;; 2812 esac 2813 # Pass precious variables to config.status. 2814 if test "$ac_new_set" = set; then 2815 case $ac_new_val in 2816 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2817 *) ac_arg=$ac_var=$ac_new_val ;; 2818 esac 2819 case " $ac_configure_args " in 2820 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2821 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2822 esac 2823 fi 2824done 2825if $ac_cache_corrupted; then 2826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2827printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2829printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2830 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2831 and start over" "$LINENO" 5 2832fi 2833## -------------------- ## 2834## Main body of script. ## 2835## -------------------- ## 2836 2837ac_ext=c 2838ac_cpp='$CPP $CPPFLAGS' 2839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2841ac_compiler_gnu=$ac_cv_c_compiler_gnu 2842 2843 2844 2845 2846 2847 2848 2849 # Make sure we can run config.sub. 2850$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 2851 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 2852 2853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2854printf %s "checking build system type... " >&6; } 2855if test ${ac_cv_build+y} 2856then : 2857 printf %s "(cached) " >&6 2858else $as_nop 2859 ac_build_alias=$build_alias 2860test "x$ac_build_alias" = x && 2861 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 2862test "x$ac_build_alias" = x && 2863 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2864ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 2865 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 2866 2867fi 2868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2869printf "%s\n" "$ac_cv_build" >&6; } 2870case $ac_cv_build in 2871*-*-*) ;; 2872*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2873esac 2874build=$ac_cv_build 2875ac_save_IFS=$IFS; IFS='-' 2876set x $ac_cv_build 2877shift 2878build_cpu=$1 2879build_vendor=$2 2880shift; shift 2881# Remember, the first character of IFS is used to create $*, 2882# except with old shells: 2883build_os=$* 2884IFS=$ac_save_IFS 2885case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2886 2887 2888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2889printf %s "checking host system type... " >&6; } 2890if test ${ac_cv_host+y} 2891then : 2892 printf %s "(cached) " >&6 2893else $as_nop 2894 if test "x$host_alias" = x; then 2895 ac_cv_host=$ac_cv_build 2896else 2897 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 2898 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 2899fi 2900 2901fi 2902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2903printf "%s\n" "$ac_cv_host" >&6; } 2904case $ac_cv_host in 2905*-*-*) ;; 2906*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2907esac 2908host=$ac_cv_host 2909ac_save_IFS=$IFS; IFS='-' 2910set x $ac_cv_host 2911shift 2912host_cpu=$1 2913host_vendor=$2 2914shift; shift 2915# Remember, the first character of IFS is used to create $*, 2916# except with old shells: 2917host_os=$* 2918IFS=$ac_save_IFS 2919case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2920 2921 2922 2923 2924 2925 2926 2927 2928# Check whether --with-gcc was given. 2929if test ${with_gcc+y} 2930then : 2931 withval=$with_gcc; 2932fi 2933 2934 V_INCLS="" 2935 if test "${srcdir}" != "." ; then 2936 V_INCLS="-I$srcdir" 2937 fi 2938 if test "${CFLAGS+set}" = set; then 2939 LBL_CFLAGS="$CFLAGS" 2940 fi 2941 if test -z "$CC" ; then 2942 case "$host_os" in 2943 2944 bsdi*) 2945 # Extract the first word of "shlicc2", so it can be a program name with args. 2946set dummy shlicc2; ac_word=$2 2947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2948printf %s "checking for $ac_word... " >&6; } 2949if test ${ac_cv_prog_SHLICC2+y} 2950then : 2951 printf %s "(cached) " >&6 2952else $as_nop 2953 if test -n "$SHLICC2"; then 2954 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test. 2955else 2956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2957for as_dir in $PATH 2958do 2959 IFS=$as_save_IFS 2960 case $as_dir in #((( 2961 '') as_dir=./ ;; 2962 */) ;; 2963 *) as_dir=$as_dir/ ;; 2964 esac 2965 for ac_exec_ext in '' $ac_executable_extensions; do 2966 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2967 ac_cv_prog_SHLICC2="yes" 2968 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2969 break 2 2970 fi 2971done 2972 done 2973IFS=$as_save_IFS 2974 2975 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no" 2976fi 2977fi 2978SHLICC2=$ac_cv_prog_SHLICC2 2979if test -n "$SHLICC2"; then 2980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHLICC2" >&5 2981printf "%s\n" "$SHLICC2" >&6; } 2982else 2983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2984printf "%s\n" "no" >&6; } 2985fi 2986 2987 2988 if test $SHLICC2 = yes ; then 2989 CC=shlicc2 2990 export CC 2991 fi 2992 ;; 2993 esac 2994 fi 2995 if test -z "$CC" -a "$with_gcc" = no ; then 2996 CC=cc 2997 export CC 2998 fi 2999 3000# 3001# Try to enable as many C99 features as we can. 3002# At minimum, we want C++/C99-style // comments. 3003# 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013ac_ext=c 3014ac_cpp='$CPP $CPPFLAGS' 3015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3017ac_compiler_gnu=$ac_cv_c_compiler_gnu 3018if test -n "$ac_tool_prefix"; then 3019 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3020set dummy ${ac_tool_prefix}gcc; ac_word=$2 3021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3022printf %s "checking for $ac_word... " >&6; } 3023if test ${ac_cv_prog_CC+y} 3024then : 3025 printf %s "(cached) " >&6 3026else $as_nop 3027 if test -n "$CC"; then 3028 ac_cv_prog_CC="$CC" # Let the user override the test. 3029else 3030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3031for as_dir in $PATH 3032do 3033 IFS=$as_save_IFS 3034 case $as_dir in #((( 3035 '') as_dir=./ ;; 3036 */) ;; 3037 *) as_dir=$as_dir/ ;; 3038 esac 3039 for ac_exec_ext in '' $ac_executable_extensions; do 3040 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3041 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3042 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3043 break 2 3044 fi 3045done 3046 done 3047IFS=$as_save_IFS 3048 3049fi 3050fi 3051CC=$ac_cv_prog_CC 3052if test -n "$CC"; then 3053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3054printf "%s\n" "$CC" >&6; } 3055else 3056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3057printf "%s\n" "no" >&6; } 3058fi 3059 3060 3061fi 3062if test -z "$ac_cv_prog_CC"; then 3063 ac_ct_CC=$CC 3064 # Extract the first word of "gcc", so it can be a program name with args. 3065set dummy gcc; ac_word=$2 3066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3067printf %s "checking for $ac_word... " >&6; } 3068if test ${ac_cv_prog_ac_ct_CC+y} 3069then : 3070 printf %s "(cached) " >&6 3071else $as_nop 3072 if test -n "$ac_ct_CC"; then 3073 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3074else 3075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3076for as_dir in $PATH 3077do 3078 IFS=$as_save_IFS 3079 case $as_dir in #((( 3080 '') as_dir=./ ;; 3081 */) ;; 3082 *) as_dir=$as_dir/ ;; 3083 esac 3084 for ac_exec_ext in '' $ac_executable_extensions; do 3085 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3086 ac_cv_prog_ac_ct_CC="gcc" 3087 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3088 break 2 3089 fi 3090done 3091 done 3092IFS=$as_save_IFS 3093 3094fi 3095fi 3096ac_ct_CC=$ac_cv_prog_ac_ct_CC 3097if test -n "$ac_ct_CC"; then 3098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3099printf "%s\n" "$ac_ct_CC" >&6; } 3100else 3101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3102printf "%s\n" "no" >&6; } 3103fi 3104 3105 if test "x$ac_ct_CC" = x; then 3106 CC="" 3107 else 3108 case $cross_compiling:$ac_tool_warned in 3109yes:) 3110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3111printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3112ac_tool_warned=yes ;; 3113esac 3114 CC=$ac_ct_CC 3115 fi 3116else 3117 CC="$ac_cv_prog_CC" 3118fi 3119 3120if test -z "$CC"; then 3121 if test -n "$ac_tool_prefix"; then 3122 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3123set dummy ${ac_tool_prefix}cc; ac_word=$2 3124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3125printf %s "checking for $ac_word... " >&6; } 3126if test ${ac_cv_prog_CC+y} 3127then : 3128 printf %s "(cached) " >&6 3129else $as_nop 3130 if test -n "$CC"; then 3131 ac_cv_prog_CC="$CC" # Let the user override the test. 3132else 3133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3134for as_dir in $PATH 3135do 3136 IFS=$as_save_IFS 3137 case $as_dir in #((( 3138 '') as_dir=./ ;; 3139 */) ;; 3140 *) as_dir=$as_dir/ ;; 3141 esac 3142 for ac_exec_ext in '' $ac_executable_extensions; do 3143 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3144 ac_cv_prog_CC="${ac_tool_prefix}cc" 3145 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3146 break 2 3147 fi 3148done 3149 done 3150IFS=$as_save_IFS 3151 3152fi 3153fi 3154CC=$ac_cv_prog_CC 3155if test -n "$CC"; then 3156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3157printf "%s\n" "$CC" >&6; } 3158else 3159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3160printf "%s\n" "no" >&6; } 3161fi 3162 3163 3164 fi 3165fi 3166if test -z "$CC"; then 3167 # Extract the first word of "cc", so it can be a program name with args. 3168set dummy cc; ac_word=$2 3169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3170printf %s "checking for $ac_word... " >&6; } 3171if test ${ac_cv_prog_CC+y} 3172then : 3173 printf %s "(cached) " >&6 3174else $as_nop 3175 if test -n "$CC"; then 3176 ac_cv_prog_CC="$CC" # Let the user override the test. 3177else 3178 ac_prog_rejected=no 3179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3180for as_dir in $PATH 3181do 3182 IFS=$as_save_IFS 3183 case $as_dir in #((( 3184 '') as_dir=./ ;; 3185 */) ;; 3186 *) as_dir=$as_dir/ ;; 3187 esac 3188 for ac_exec_ext in '' $ac_executable_extensions; do 3189 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3190 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3191 ac_prog_rejected=yes 3192 continue 3193 fi 3194 ac_cv_prog_CC="cc" 3195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3196 break 2 3197 fi 3198done 3199 done 3200IFS=$as_save_IFS 3201 3202if test $ac_prog_rejected = yes; then 3203 # We found a bogon in the path, so make sure we never use it. 3204 set dummy $ac_cv_prog_CC 3205 shift 3206 if test $# != 0; then 3207 # We chose a different compiler from the bogus one. 3208 # However, it has the same basename, so the bogon will be chosen 3209 # first if we set CC to just the basename; use the full file name. 3210 shift 3211 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3212 fi 3213fi 3214fi 3215fi 3216CC=$ac_cv_prog_CC 3217if test -n "$CC"; then 3218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3219printf "%s\n" "$CC" >&6; } 3220else 3221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3222printf "%s\n" "no" >&6; } 3223fi 3224 3225 3226fi 3227if test -z "$CC"; then 3228 if test -n "$ac_tool_prefix"; then 3229 for ac_prog in cl.exe 3230 do 3231 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3232set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3234printf %s "checking for $ac_word... " >&6; } 3235if test ${ac_cv_prog_CC+y} 3236then : 3237 printf %s "(cached) " >&6 3238else $as_nop 3239 if test -n "$CC"; then 3240 ac_cv_prog_CC="$CC" # Let the user override the test. 3241else 3242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3243for as_dir in $PATH 3244do 3245 IFS=$as_save_IFS 3246 case $as_dir in #((( 3247 '') as_dir=./ ;; 3248 */) ;; 3249 *) as_dir=$as_dir/ ;; 3250 esac 3251 for ac_exec_ext in '' $ac_executable_extensions; do 3252 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3253 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3254 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3255 break 2 3256 fi 3257done 3258 done 3259IFS=$as_save_IFS 3260 3261fi 3262fi 3263CC=$ac_cv_prog_CC 3264if test -n "$CC"; then 3265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3266printf "%s\n" "$CC" >&6; } 3267else 3268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3269printf "%s\n" "no" >&6; } 3270fi 3271 3272 3273 test -n "$CC" && break 3274 done 3275fi 3276if test -z "$CC"; then 3277 ac_ct_CC=$CC 3278 for ac_prog in cl.exe 3279do 3280 # Extract the first word of "$ac_prog", so it can be a program name with args. 3281set dummy $ac_prog; ac_word=$2 3282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3283printf %s "checking for $ac_word... " >&6; } 3284if test ${ac_cv_prog_ac_ct_CC+y} 3285then : 3286 printf %s "(cached) " >&6 3287else $as_nop 3288 if test -n "$ac_ct_CC"; then 3289 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3290else 3291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3292for as_dir in $PATH 3293do 3294 IFS=$as_save_IFS 3295 case $as_dir in #((( 3296 '') as_dir=./ ;; 3297 */) ;; 3298 *) as_dir=$as_dir/ ;; 3299 esac 3300 for ac_exec_ext in '' $ac_executable_extensions; do 3301 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3302 ac_cv_prog_ac_ct_CC="$ac_prog" 3303 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3304 break 2 3305 fi 3306done 3307 done 3308IFS=$as_save_IFS 3309 3310fi 3311fi 3312ac_ct_CC=$ac_cv_prog_ac_ct_CC 3313if test -n "$ac_ct_CC"; then 3314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3315printf "%s\n" "$ac_ct_CC" >&6; } 3316else 3317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3318printf "%s\n" "no" >&6; } 3319fi 3320 3321 3322 test -n "$ac_ct_CC" && break 3323done 3324 3325 if test "x$ac_ct_CC" = x; then 3326 CC="" 3327 else 3328 case $cross_compiling:$ac_tool_warned in 3329yes:) 3330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3331printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3332ac_tool_warned=yes ;; 3333esac 3334 CC=$ac_ct_CC 3335 fi 3336fi 3337 3338fi 3339if test -z "$CC"; then 3340 if test -n "$ac_tool_prefix"; then 3341 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3342set dummy ${ac_tool_prefix}clang; ac_word=$2 3343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3344printf %s "checking for $ac_word... " >&6; } 3345if test ${ac_cv_prog_CC+y} 3346then : 3347 printf %s "(cached) " >&6 3348else $as_nop 3349 if test -n "$CC"; then 3350 ac_cv_prog_CC="$CC" # Let the user override the test. 3351else 3352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3353for as_dir in $PATH 3354do 3355 IFS=$as_save_IFS 3356 case $as_dir in #((( 3357 '') as_dir=./ ;; 3358 */) ;; 3359 *) as_dir=$as_dir/ ;; 3360 esac 3361 for ac_exec_ext in '' $ac_executable_extensions; do 3362 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3363 ac_cv_prog_CC="${ac_tool_prefix}clang" 3364 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3365 break 2 3366 fi 3367done 3368 done 3369IFS=$as_save_IFS 3370 3371fi 3372fi 3373CC=$ac_cv_prog_CC 3374if test -n "$CC"; then 3375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3376printf "%s\n" "$CC" >&6; } 3377else 3378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3379printf "%s\n" "no" >&6; } 3380fi 3381 3382 3383fi 3384if test -z "$ac_cv_prog_CC"; then 3385 ac_ct_CC=$CC 3386 # Extract the first word of "clang", so it can be a program name with args. 3387set dummy clang; ac_word=$2 3388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3389printf %s "checking for $ac_word... " >&6; } 3390if test ${ac_cv_prog_ac_ct_CC+y} 3391then : 3392 printf %s "(cached) " >&6 3393else $as_nop 3394 if test -n "$ac_ct_CC"; then 3395 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3396else 3397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3398for as_dir in $PATH 3399do 3400 IFS=$as_save_IFS 3401 case $as_dir in #((( 3402 '') as_dir=./ ;; 3403 */) ;; 3404 *) as_dir=$as_dir/ ;; 3405 esac 3406 for ac_exec_ext in '' $ac_executable_extensions; do 3407 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3408 ac_cv_prog_ac_ct_CC="clang" 3409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3410 break 2 3411 fi 3412done 3413 done 3414IFS=$as_save_IFS 3415 3416fi 3417fi 3418ac_ct_CC=$ac_cv_prog_ac_ct_CC 3419if test -n "$ac_ct_CC"; then 3420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3421printf "%s\n" "$ac_ct_CC" >&6; } 3422else 3423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3424printf "%s\n" "no" >&6; } 3425fi 3426 3427 if test "x$ac_ct_CC" = x; then 3428 CC="" 3429 else 3430 case $cross_compiling:$ac_tool_warned in 3431yes:) 3432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3433printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3434ac_tool_warned=yes ;; 3435esac 3436 CC=$ac_ct_CC 3437 fi 3438else 3439 CC="$ac_cv_prog_CC" 3440fi 3441 3442fi 3443 3444 3445test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3446printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3447as_fn_error $? "no acceptable C compiler found in \$PATH 3448See \`config.log' for more details" "$LINENO" 5; } 3449 3450# Provide some information about the compiler. 3451printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3452set X $ac_compile 3453ac_compiler=$2 3454for ac_option in --version -v -V -qversion -version; do 3455 { { ac_try="$ac_compiler $ac_option >&5" 3456case "(($ac_try" in 3457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3458 *) ac_try_echo=$ac_try;; 3459esac 3460eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3461printf "%s\n" "$ac_try_echo"; } >&5 3462 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3463 ac_status=$? 3464 if test -s conftest.err; then 3465 sed '10a\ 3466... rest of stderr output deleted ... 3467 10q' conftest.err >conftest.er1 3468 cat conftest.er1 >&5 3469 fi 3470 rm -f conftest.er1 conftest.err 3471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3472 test $ac_status = 0; } 3473done 3474 3475cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3476/* end confdefs.h. */ 3477 3478int 3479main (void) 3480{ 3481 3482 ; 3483 return 0; 3484} 3485_ACEOF 3486ac_clean_files_save=$ac_clean_files 3487ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3488# Try to create an executable without -o first, disregard a.out. 3489# It will help us diagnose broken compilers, and finding out an intuition 3490# of exeext. 3491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3492printf %s "checking whether the C compiler works... " >&6; } 3493ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3494 3495# The possible output files: 3496ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3497 3498ac_rmfiles= 3499for ac_file in $ac_files 3500do 3501 case $ac_file in 3502 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3503 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3504 esac 3505done 3506rm -f $ac_rmfiles 3507 3508if { { ac_try="$ac_link_default" 3509case "(($ac_try" in 3510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3511 *) ac_try_echo=$ac_try;; 3512esac 3513eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3514printf "%s\n" "$ac_try_echo"; } >&5 3515 (eval "$ac_link_default") 2>&5 3516 ac_status=$? 3517 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3518 test $ac_status = 0; } 3519then : 3520 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3521# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3522# in a Makefile. We should not override ac_cv_exeext if it was cached, 3523# so that the user can short-circuit this test for compilers unknown to 3524# Autoconf. 3525for ac_file in $ac_files '' 3526do 3527 test -f "$ac_file" || continue 3528 case $ac_file in 3529 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3530 ;; 3531 [ab].out ) 3532 # We found the default executable, but exeext='' is most 3533 # certainly right. 3534 break;; 3535 *.* ) 3536 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3537 then :; else 3538 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3539 fi 3540 # We set ac_cv_exeext here because the later test for it is not 3541 # safe: cross compilers may not add the suffix if given an `-o' 3542 # argument, so we may need to know it at that point already. 3543 # Even if this section looks crufty: it has the advantage of 3544 # actually working. 3545 break;; 3546 * ) 3547 break;; 3548 esac 3549done 3550test "$ac_cv_exeext" = no && ac_cv_exeext= 3551 3552else $as_nop 3553 ac_file='' 3554fi 3555if test -z "$ac_file" 3556then : 3557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3558printf "%s\n" "no" >&6; } 3559printf "%s\n" "$as_me: failed program was:" >&5 3560sed 's/^/| /' conftest.$ac_ext >&5 3561 3562{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3563printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3564as_fn_error 77 "C compiler cannot create executables 3565See \`config.log' for more details" "$LINENO" 5; } 3566else $as_nop 3567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3568printf "%s\n" "yes" >&6; } 3569fi 3570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3571printf %s "checking for C compiler default output file name... " >&6; } 3572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3573printf "%s\n" "$ac_file" >&6; } 3574ac_exeext=$ac_cv_exeext 3575 3576rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3577ac_clean_files=$ac_clean_files_save 3578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3579printf %s "checking for suffix of executables... " >&6; } 3580if { { ac_try="$ac_link" 3581case "(($ac_try" in 3582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3583 *) ac_try_echo=$ac_try;; 3584esac 3585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3586printf "%s\n" "$ac_try_echo"; } >&5 3587 (eval "$ac_link") 2>&5 3588 ac_status=$? 3589 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3590 test $ac_status = 0; } 3591then : 3592 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3593# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3594# work properly (i.e., refer to `conftest.exe'), while it won't with 3595# `rm'. 3596for ac_file in conftest.exe conftest conftest.*; do 3597 test -f "$ac_file" || continue 3598 case $ac_file in 3599 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3600 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3601 break;; 3602 * ) break;; 3603 esac 3604done 3605else $as_nop 3606 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3607printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3608as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3609See \`config.log' for more details" "$LINENO" 5; } 3610fi 3611rm -f conftest conftest$ac_cv_exeext 3612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3613printf "%s\n" "$ac_cv_exeext" >&6; } 3614 3615rm -f conftest.$ac_ext 3616EXEEXT=$ac_cv_exeext 3617ac_exeext=$EXEEXT 3618cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3619/* end confdefs.h. */ 3620#include <stdio.h> 3621int 3622main (void) 3623{ 3624FILE *f = fopen ("conftest.out", "w"); 3625 return ferror (f) || fclose (f) != 0; 3626 3627 ; 3628 return 0; 3629} 3630_ACEOF 3631ac_clean_files="$ac_clean_files conftest.out" 3632# Check that the compiler produces executables we can run. If not, either 3633# the compiler is broken, or we cross compile. 3634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3635printf %s "checking whether we are cross compiling... " >&6; } 3636if test "$cross_compiling" != yes; then 3637 { { ac_try="$ac_link" 3638case "(($ac_try" in 3639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3640 *) ac_try_echo=$ac_try;; 3641esac 3642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3643printf "%s\n" "$ac_try_echo"; } >&5 3644 (eval "$ac_link") 2>&5 3645 ac_status=$? 3646 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3647 test $ac_status = 0; } 3648 if { ac_try='./conftest$ac_cv_exeext' 3649 { { case "(($ac_try" in 3650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3651 *) ac_try_echo=$ac_try;; 3652esac 3653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3654printf "%s\n" "$ac_try_echo"; } >&5 3655 (eval "$ac_try") 2>&5 3656 ac_status=$? 3657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3658 test $ac_status = 0; }; }; then 3659 cross_compiling=no 3660 else 3661 if test "$cross_compiling" = maybe; then 3662 cross_compiling=yes 3663 else 3664 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3665printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3666as_fn_error 77 "cannot run C compiled programs. 3667If you meant to cross compile, use \`--host'. 3668See \`config.log' for more details" "$LINENO" 5; } 3669 fi 3670 fi 3671fi 3672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3673printf "%s\n" "$cross_compiling" >&6; } 3674 3675rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3676ac_clean_files=$ac_clean_files_save 3677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3678printf %s "checking for suffix of object files... " >&6; } 3679if test ${ac_cv_objext+y} 3680then : 3681 printf %s "(cached) " >&6 3682else $as_nop 3683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3684/* end confdefs.h. */ 3685 3686int 3687main (void) 3688{ 3689 3690 ; 3691 return 0; 3692} 3693_ACEOF 3694rm -f conftest.o conftest.obj 3695if { { ac_try="$ac_compile" 3696case "(($ac_try" in 3697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3698 *) ac_try_echo=$ac_try;; 3699esac 3700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3701printf "%s\n" "$ac_try_echo"; } >&5 3702 (eval "$ac_compile") 2>&5 3703 ac_status=$? 3704 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3705 test $ac_status = 0; } 3706then : 3707 for ac_file in conftest.o conftest.obj conftest.*; do 3708 test -f "$ac_file" || continue; 3709 case $ac_file in 3710 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3711 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3712 break;; 3713 esac 3714done 3715else $as_nop 3716 printf "%s\n" "$as_me: failed program was:" >&5 3717sed 's/^/| /' conftest.$ac_ext >&5 3718 3719{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3720printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3721as_fn_error $? "cannot compute suffix of object files: cannot compile 3722See \`config.log' for more details" "$LINENO" 5; } 3723fi 3724rm -f conftest.$ac_cv_objext conftest.$ac_ext 3725fi 3726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3727printf "%s\n" "$ac_cv_objext" >&6; } 3728OBJEXT=$ac_cv_objext 3729ac_objext=$OBJEXT 3730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3731printf %s "checking whether the compiler supports GNU C... " >&6; } 3732if test ${ac_cv_c_compiler_gnu+y} 3733then : 3734 printf %s "(cached) " >&6 3735else $as_nop 3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3737/* end confdefs.h. */ 3738 3739int 3740main (void) 3741{ 3742#ifndef __GNUC__ 3743 choke me 3744#endif 3745 3746 ; 3747 return 0; 3748} 3749_ACEOF 3750if ac_fn_c_try_compile "$LINENO" 3751then : 3752 ac_compiler_gnu=yes 3753else $as_nop 3754 ac_compiler_gnu=no 3755fi 3756rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3757ac_cv_c_compiler_gnu=$ac_compiler_gnu 3758 3759fi 3760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3761printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3762ac_compiler_gnu=$ac_cv_c_compiler_gnu 3763 3764if test $ac_compiler_gnu = yes; then 3765 GCC=yes 3766else 3767 GCC= 3768fi 3769ac_test_CFLAGS=${CFLAGS+y} 3770ac_save_CFLAGS=$CFLAGS 3771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3772printf %s "checking whether $CC accepts -g... " >&6; } 3773if test ${ac_cv_prog_cc_g+y} 3774then : 3775 printf %s "(cached) " >&6 3776else $as_nop 3777 ac_save_c_werror_flag=$ac_c_werror_flag 3778 ac_c_werror_flag=yes 3779 ac_cv_prog_cc_g=no 3780 CFLAGS="-g" 3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3782/* end confdefs.h. */ 3783 3784int 3785main (void) 3786{ 3787 3788 ; 3789 return 0; 3790} 3791_ACEOF 3792if ac_fn_c_try_compile "$LINENO" 3793then : 3794 ac_cv_prog_cc_g=yes 3795else $as_nop 3796 CFLAGS="" 3797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3798/* end confdefs.h. */ 3799 3800int 3801main (void) 3802{ 3803 3804 ; 3805 return 0; 3806} 3807_ACEOF 3808if ac_fn_c_try_compile "$LINENO" 3809then : 3810 3811else $as_nop 3812 ac_c_werror_flag=$ac_save_c_werror_flag 3813 CFLAGS="-g" 3814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3815/* end confdefs.h. */ 3816 3817int 3818main (void) 3819{ 3820 3821 ; 3822 return 0; 3823} 3824_ACEOF 3825if ac_fn_c_try_compile "$LINENO" 3826then : 3827 ac_cv_prog_cc_g=yes 3828fi 3829rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3830fi 3831rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3832fi 3833rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3834 ac_c_werror_flag=$ac_save_c_werror_flag 3835fi 3836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3837printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3838if test $ac_test_CFLAGS; then 3839 CFLAGS=$ac_save_CFLAGS 3840elif test $ac_cv_prog_cc_g = yes; then 3841 if test "$GCC" = yes; then 3842 CFLAGS="-g -O2" 3843 else 3844 CFLAGS="-g" 3845 fi 3846else 3847 if test "$GCC" = yes; then 3848 CFLAGS="-O2" 3849 else 3850 CFLAGS= 3851 fi 3852fi 3853ac_prog_cc_stdc=no 3854if test x$ac_prog_cc_stdc = xno 3855then : 3856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3857printf %s "checking for $CC option to enable C11 features... " >&6; } 3858if test ${ac_cv_prog_cc_c11+y} 3859then : 3860 printf %s "(cached) " >&6 3861else $as_nop 3862 ac_cv_prog_cc_c11=no 3863ac_save_CC=$CC 3864cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3865/* end confdefs.h. */ 3866$ac_c_conftest_c11_program 3867_ACEOF 3868for ac_arg in '' -std=gnu11 3869do 3870 CC="$ac_save_CC $ac_arg" 3871 if ac_fn_c_try_compile "$LINENO" 3872then : 3873 ac_cv_prog_cc_c11=$ac_arg 3874fi 3875rm -f core conftest.err conftest.$ac_objext conftest.beam 3876 test "x$ac_cv_prog_cc_c11" != "xno" && break 3877done 3878rm -f conftest.$ac_ext 3879CC=$ac_save_CC 3880fi 3881 3882if test "x$ac_cv_prog_cc_c11" = xno 3883then : 3884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3885printf "%s\n" "unsupported" >&6; } 3886else $as_nop 3887 if test "x$ac_cv_prog_cc_c11" = x 3888then : 3889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3890printf "%s\n" "none needed" >&6; } 3891else $as_nop 3892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3893printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3894 CC="$CC $ac_cv_prog_cc_c11" 3895fi 3896 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3897 ac_prog_cc_stdc=c11 3898fi 3899fi 3900if test x$ac_prog_cc_stdc = xno 3901then : 3902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3903printf %s "checking for $CC option to enable C99 features... " >&6; } 3904if test ${ac_cv_prog_cc_c99+y} 3905then : 3906 printf %s "(cached) " >&6 3907else $as_nop 3908 ac_cv_prog_cc_c99=no 3909ac_save_CC=$CC 3910cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3911/* end confdefs.h. */ 3912$ac_c_conftest_c99_program 3913_ACEOF 3914for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3915do 3916 CC="$ac_save_CC $ac_arg" 3917 if ac_fn_c_try_compile "$LINENO" 3918then : 3919 ac_cv_prog_cc_c99=$ac_arg 3920fi 3921rm -f core conftest.err conftest.$ac_objext conftest.beam 3922 test "x$ac_cv_prog_cc_c99" != "xno" && break 3923done 3924rm -f conftest.$ac_ext 3925CC=$ac_save_CC 3926fi 3927 3928if test "x$ac_cv_prog_cc_c99" = xno 3929then : 3930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3931printf "%s\n" "unsupported" >&6; } 3932else $as_nop 3933 if test "x$ac_cv_prog_cc_c99" = x 3934then : 3935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3936printf "%s\n" "none needed" >&6; } 3937else $as_nop 3938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3939printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3940 CC="$CC $ac_cv_prog_cc_c99" 3941fi 3942 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3943 ac_prog_cc_stdc=c99 3944fi 3945fi 3946if test x$ac_prog_cc_stdc = xno 3947then : 3948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3949printf %s "checking for $CC option to enable C89 features... " >&6; } 3950if test ${ac_cv_prog_cc_c89+y} 3951then : 3952 printf %s "(cached) " >&6 3953else $as_nop 3954 ac_cv_prog_cc_c89=no 3955ac_save_CC=$CC 3956cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3957/* end confdefs.h. */ 3958$ac_c_conftest_c89_program 3959_ACEOF 3960for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3961do 3962 CC="$ac_save_CC $ac_arg" 3963 if ac_fn_c_try_compile "$LINENO" 3964then : 3965 ac_cv_prog_cc_c89=$ac_arg 3966fi 3967rm -f core conftest.err conftest.$ac_objext conftest.beam 3968 test "x$ac_cv_prog_cc_c89" != "xno" && break 3969done 3970rm -f conftest.$ac_ext 3971CC=$ac_save_CC 3972fi 3973 3974if test "x$ac_cv_prog_cc_c89" = xno 3975then : 3976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3977printf "%s\n" "unsupported" >&6; } 3978else $as_nop 3979 if test "x$ac_cv_prog_cc_c89" = x 3980then : 3981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3982printf "%s\n" "none needed" >&6; } 3983else $as_nop 3984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3985printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3986 CC="$CC $ac_cv_prog_cc_c89" 3987fi 3988 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3989 ac_prog_cc_stdc=c89 3990fi 3991fi 3992 3993ac_ext=c 3994ac_cpp='$CPP $CPPFLAGS' 3995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3997ac_compiler_gnu=$ac_cv_c_compiler_gnu 3998 3999 4000if test "$ac_cv_prog_cc_c99" = "no"; then 4001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: The C compiler does not support C99; there may be compiler errors" >&5 4002printf "%s\n" "$as_me: WARNING: The C compiler does not support C99; there may be compiler errors" >&2;} 4003fi 4004 4005 4006 if test "$GCC" = yes ; then 4007 # 4008 # -Werror forces warnings to be errors. 4009 # 4010 ac_lbl_cc_force_warning_errors=-Werror 4011 else 4012 V_INCLS="$V_INCLS -I/usr/local/include" 4013 LDFLAGS="$LDFLAGS -L/usr/local/lib" 4014 4015 case "$host_os" in 4016 4017 darwin*) 4018 # 4019 # This is assumed either to be GCC or clang, both 4020 # of which use -Werror to force warnings to be errors. 4021 # 4022 ac_lbl_cc_force_warning_errors=-Werror 4023 ;; 4024 4025 hpux*) 4026 # 4027 # HP C, which is what we presume we're using, doesn't 4028 # exit with a non-zero exit status if we hand it an 4029 # invalid -W flag, can't be forced to do so even with 4030 # +We, and doesn't handle GCC-style -W flags, so we 4031 # don't want to try using GCC-style -W flags. 4032 # 4033 ac_lbl_cc_dont_try_gcc_dashW=yes 4034 ;; 4035 4036 irix*) 4037 # 4038 # MIPS C, which is what we presume we're using, doesn't 4039 # necessarily exit with a non-zero exit status if we 4040 # hand it an invalid -W flag, can't be forced to do 4041 # so, and doesn't handle GCC-style -W flags, so we 4042 # don't want to try using GCC-style -W flags. 4043 # 4044 ac_lbl_cc_dont_try_gcc_dashW=yes 4045 # 4046 # It also, apparently, defaults to "char" being 4047 # unsigned, unlike most other C implementations; 4048 # I suppose we could say "signed char" whenever 4049 # we want to guarantee a signed "char", but let's 4050 # just force signed chars. 4051 # 4052 # -xansi is normally the default, but the 4053 # configure script was setting it; perhaps -cckr 4054 # was the default in the Old Days. (Then again, 4055 # that would probably be for backwards compatibility 4056 # in the days when ANSI C was Shiny and New, i.e. 4057 # 1989 and the early '90's, so maybe we can just 4058 # drop support for those compilers.) 4059 # 4060 # -g is equivalent to -g2, which turns off 4061 # optimization; we choose -g3, which generates 4062 # debugging information but doesn't turn off 4063 # optimization (even if the optimization would 4064 # cause inaccuracies in debugging). 4065 # 4066 V_CCOPT="$V_CCOPT -xansi -signed -g3" 4067 ;; 4068 4069 osf*) 4070 # 4071 # Presumed to be DEC OSF/1, Digital UNIX, or 4072 # Tru64 UNIX. 4073 # 4074 # The DEC C compiler, which is what we presume we're 4075 # using, doesn't exit with a non-zero exit status if we 4076 # hand it an invalid -W flag, can't be forced to do 4077 # so, and doesn't handle GCC-style -W flags, so we 4078 # don't want to try using GCC-style -W flags. 4079 # 4080 ac_lbl_cc_dont_try_gcc_dashW=yes 4081 # 4082 # -g is equivalent to -g2, which turns off 4083 # optimization; we choose -g3, which generates 4084 # debugging information but doesn't turn off 4085 # optimization (even if the optimization would 4086 # cause inaccuracies in debugging). 4087 # 4088 V_CCOPT="$V_CCOPT -g3" 4089 ;; 4090 4091 solaris*) 4092 # 4093 # Assumed to be Sun C, which requires -errwarn to force 4094 # warnings to be treated as errors. 4095 # 4096 ac_lbl_cc_force_warning_errors=-errwarn 4097 ;; 4098 4099 ultrix*) 4100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that Ultrix $CC hacks const in prototypes" >&5 4101printf %s "checking that Ultrix $CC hacks const in prototypes... " >&6; } 4102 if test ${ac_cv_lbl_cc_const_proto+y} 4103then : 4104 printf %s "(cached) " >&6 4105else $as_nop 4106 4107cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4108/* end confdefs.h. */ 4109#include <sys/types.h> 4110int 4111main (void) 4112{ 4113struct a { int b; }; 4114 void c(const struct a *) 4115 ; 4116 return 0; 4117} 4118_ACEOF 4119if ac_fn_c_try_compile "$LINENO" 4120then : 4121 ac_cv_lbl_cc_const_proto=yes 4122else $as_nop 4123 ac_cv_lbl_cc_const_proto=no 4124fi 4125rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4126fi 4127 4128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_const_proto" >&5 4129printf "%s\n" "$ac_cv_lbl_cc_const_proto" >&6; } 4130 if test $ac_cv_lbl_cc_const_proto = no ; then 4131 4132printf "%s\n" "#define const /**/" >>confdefs.h 4133 4134 fi 4135 ;; 4136 esac 4137 V_CCOPT="$V_CCOPT -O" 4138 fi 4139 4140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 4141printf %s "checking for inline... " >&6; } 4142 save_CFLAGS="$CFLAGS" 4143 CFLAGS="$V_CCOPT" 4144 if test ${ac_cv_lbl_inline+y} 4145then : 4146 printf %s "(cached) " >&6 4147else $as_nop 4148 4149 ac_cv_lbl_inline="" 4150 ac_lbl_cc_inline=no 4151 for ac_lbl_inline in inline __inline__ __inline 4152 do 4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4154/* end confdefs.h. */ 4155#define inline $ac_lbl_inline 4156 static inline struct iltest *foo(void); 4157 struct iltest { 4158 int iltest1; 4159 int iltest2; 4160 }; 4161 4162 static inline struct iltest * 4163 foo() 4164 { 4165 static struct iltest xxx; 4166 4167 return &xxx; 4168 } 4169int 4170main (void) 4171{ 4172 4173 ; 4174 return 0; 4175} 4176_ACEOF 4177if ac_fn_c_try_compile "$LINENO" 4178then : 4179 ac_lbl_cc_inline=yes 4180fi 4181rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4182 if test "$ac_lbl_cc_inline" = yes ; then 4183 break; 4184 fi 4185 done 4186 if test "$ac_lbl_cc_inline" = yes ; then 4187 ac_cv_lbl_inline=$ac_lbl_inline 4188 fi 4189fi 4190 4191 CFLAGS="$save_CFLAGS" 4192 if test ! -z "$ac_cv_lbl_inline" ; then 4193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_inline" >&5 4194printf "%s\n" "$ac_cv_lbl_inline" >&6; } 4195 else 4196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4197printf "%s\n" "no" >&6; } 4198 fi 4199 4200printf "%s\n" "#define inline $ac_cv_lbl_inline" >>confdefs.h 4201 4202 4203ac_header= ac_cache= 4204for ac_item in $ac_header_c_list 4205do 4206 if test $ac_cache; then 4207 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4208 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4209 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4210 fi 4211 ac_header= ac_cache= 4212 elif test $ac_header; then 4213 ac_cache=$ac_item 4214 else 4215 ac_header=$ac_item 4216 fi 4217done 4218 4219 4220 4221 4222 4223 4224 4225 4226if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4227then : 4228 4229printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4230 4231fi 4232ac_fn_c_check_header_compile "$LINENO" "rpc/rpc.h" "ac_cv_header_rpc_rpc_h" "$ac_includes_default" 4233if test "x$ac_cv_header_rpc_rpc_h" = xyes 4234then : 4235 printf "%s\n" "#define HAVE_RPC_RPC_H 1" >>confdefs.h 4236 4237fi 4238ac_fn_c_check_header_compile "$LINENO" "rpc/rpcent.h" "ac_cv_header_rpc_rpcent_h" "$ac_includes_default" 4239if test "x$ac_cv_header_rpc_rpcent_h" = xyes 4240then : 4241 printf "%s\n" "#define HAVE_RPC_RPCENT_H 1" >>confdefs.h 4242 4243fi 4244ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default" 4245if test "x$ac_cv_header_net_if_h" = xyes 4246then : 4247 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h 4248 4249fi 4250 4251# 4252# Get the size of a void *, to know whether this is a 32-bit or 64-bit build. 4253# 4254# The cast to long int works around a bug in the HP C Compiler 4255# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4256# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4257# This bug is HP SR number 8606223364. 4258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 4259printf %s "checking size of void *... " >&6; } 4260if test ${ac_cv_sizeof_void_p+y} 4261then : 4262 printf %s "(cached) " >&6 4263else $as_nop 4264 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default" 4265then : 4266 4267else $as_nop 4268 if test "$ac_cv_type_void_p" = yes; then 4269 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4270printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4271as_fn_error 77 "cannot compute sizeof (void *) 4272See \`config.log' for more details" "$LINENO" 5; } 4273 else 4274 ac_cv_sizeof_void_p=0 4275 fi 4276fi 4277 4278fi 4279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 4280printf "%s\n" "$ac_cv_sizeof_void_p" >&6; } 4281 4282 4283 4284printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h 4285 4286 4287 4288# 4289# Get the size of a time_t, to know whether it's 32-bit or 64-bit. 4290# 4291# The cast to long int works around a bug in the HP C Compiler 4292# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4293# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4294# This bug is HP SR number 8606223364. 4295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 4296printf %s "checking size of time_t... " >&6; } 4297if test ${ac_cv_sizeof_time_t+y} 4298then : 4299 printf %s "(cached) " >&6 4300else $as_nop 4301 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "#include <time.h> 4302" 4303then : 4304 4305else $as_nop 4306 if test "$ac_cv_type_time_t" = yes; then 4307 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4308printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4309as_fn_error 77 "cannot compute sizeof (time_t) 4310See \`config.log' for more details" "$LINENO" 5; } 4311 else 4312 ac_cv_sizeof_time_t=0 4313 fi 4314fi 4315 4316fi 4317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 4318printf "%s\n" "$ac_cv_sizeof_time_t" >&6; } 4319 4320 4321 4322printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h 4323 4324 4325 4326case "$host_os" in 4327 4328darwin*) 4329 # Check whether --enable-universal was given. 4330if test ${enable_universal+y} 4331then : 4332 enableval=$enable_universal; 4333fi 4334 4335 if test "$enable_universal" != "no"; then 4336 case "$host_os" in 4337 4338 darwin9.*) 4339 # 4340 # Leopard. Build for x86 and 32-bit PowerPC, with 4341 # x86 first. (That's what Apple does.) 4342 # 4343 V_CCOPT="$V_CCOPT -arch i386 -arch ppc" 4344 LDFLAGS="$LDFLAGS -arch i386 -arch ppc" 4345 ;; 4346 4347 darwin10.*) 4348 # 4349 # Snow Leopard. Build for x86-64 and x86, with 4350 # x86-64 first. (That's what Apple does.) 4351 # 4352 V_CCOPT="$V_CCOPT -arch x86_64 -arch i386" 4353 LDFLAGS="$LDFLAGS -arch x86_64 -arch i386" 4354 ;; 4355 esac 4356 fi 4357 ;; 4358esac 4359 4360# 4361# Do we have pkg-config? 4362# 4363 4364 4365 4366 4367 4368 4369 4370if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4371 if test -n "$ac_tool_prefix"; then 4372 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4373set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4375printf %s "checking for $ac_word... " >&6; } 4376if test ${ac_cv_path_PKG_CONFIG+y} 4377then : 4378 printf %s "(cached) " >&6 4379else $as_nop 4380 case $PKG_CONFIG in 4381 [\\/]* | ?:[\\/]*) 4382 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4383 ;; 4384 *) 4385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4386for as_dir in $PATH 4387do 4388 IFS=$as_save_IFS 4389 case $as_dir in #((( 4390 '') as_dir=./ ;; 4391 */) ;; 4392 *) as_dir=$as_dir/ ;; 4393 esac 4394 for ac_exec_ext in '' $ac_executable_extensions; do 4395 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4396 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4397 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4398 break 2 4399 fi 4400done 4401 done 4402IFS=$as_save_IFS 4403 4404 ;; 4405esac 4406fi 4407PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4408if test -n "$PKG_CONFIG"; then 4409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4410printf "%s\n" "$PKG_CONFIG" >&6; } 4411else 4412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4413printf "%s\n" "no" >&6; } 4414fi 4415 4416 4417fi 4418if test -z "$ac_cv_path_PKG_CONFIG"; then 4419 ac_pt_PKG_CONFIG=$PKG_CONFIG 4420 # Extract the first word of "pkg-config", so it can be a program name with args. 4421set dummy pkg-config; ac_word=$2 4422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4423printf %s "checking for $ac_word... " >&6; } 4424if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4425then : 4426 printf %s "(cached) " >&6 4427else $as_nop 4428 case $ac_pt_PKG_CONFIG in 4429 [\\/]* | ?:[\\/]*) 4430 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4431 ;; 4432 *) 4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4434for as_dir in $PATH 4435do 4436 IFS=$as_save_IFS 4437 case $as_dir in #((( 4438 '') as_dir=./ ;; 4439 */) ;; 4440 *) as_dir=$as_dir/ ;; 4441 esac 4442 for ac_exec_ext in '' $ac_executable_extensions; do 4443 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4444 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4446 break 2 4447 fi 4448done 4449 done 4450IFS=$as_save_IFS 4451 4452 ;; 4453esac 4454fi 4455ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4456if test -n "$ac_pt_PKG_CONFIG"; then 4457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4458printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4459else 4460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4461printf "%s\n" "no" >&6; } 4462fi 4463 4464 if test "x$ac_pt_PKG_CONFIG" = x; then 4465 PKG_CONFIG="" 4466 else 4467 case $cross_compiling:$ac_tool_warned in 4468yes:) 4469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4470printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4471ac_tool_warned=yes ;; 4472esac 4473 PKG_CONFIG=$ac_pt_PKG_CONFIG 4474 fi 4475else 4476 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4477fi 4478 4479fi 4480if test -n "$PKG_CONFIG"; then 4481 _pkg_min_version=0.17.0 4482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4483printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4484 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4486printf "%s\n" "yes" >&6; } 4487 else 4488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4489printf "%s\n" "no" >&6; } 4490 PKG_CONFIG="" 4491 fi 4492fi 4493 4494# 4495# Do we have the brew command from Homebrew? 4496# 4497# Extract the first word of "brew", so it can be a program name with args. 4498set dummy brew; ac_word=$2 4499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4500printf %s "checking for $ac_word... " >&6; } 4501if test ${ac_cv_path_BREW+y} 4502then : 4503 printf %s "(cached) " >&6 4504else $as_nop 4505 case $BREW in 4506 [\\/]* | ?:[\\/]*) 4507 ac_cv_path_BREW="$BREW" # Let the user override the test with a path. 4508 ;; 4509 *) 4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4511for as_dir in $PATH 4512do 4513 IFS=$as_save_IFS 4514 case $as_dir in #((( 4515 '') as_dir=./ ;; 4516 */) ;; 4517 *) as_dir=$as_dir/ ;; 4518 esac 4519 for ac_exec_ext in '' $ac_executable_extensions; do 4520 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4521 ac_cv_path_BREW="$as_dir$ac_word$ac_exec_ext" 4522 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4523 break 2 4524 fi 4525done 4526 done 4527IFS=$as_save_IFS 4528 4529 ;; 4530esac 4531fi 4532BREW=$ac_cv_path_BREW 4533if test -n "$BREW"; then 4534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BREW" >&5 4535printf "%s\n" "$BREW" >&6; } 4536else 4537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4538printf "%s\n" "no" >&6; } 4539fi 4540 4541 4542 4543 4544# Check whether --with-smi was given. 4545if test ${with_smi+y} 4546then : 4547 withval=$with_smi; 4548else $as_nop 4549 with_smi=yes 4550fi 4551 4552 4553if test "x$with_smi" != "xno" ; then 4554 ac_fn_c_check_header_compile "$LINENO" "smi.h" "ac_cv_header_smi_h" "$ac_includes_default" 4555if test "x$ac_cv_header_smi_h" = xyes 4556then : 4557 4558 # 4559 # OK, we found smi.h. Do we have libsmi with smiInit? 4560 # 4561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for smiInit in -lsmi" >&5 4562printf %s "checking for smiInit in -lsmi... " >&6; } 4563if test ${ac_cv_lib_smi_smiInit+y} 4564then : 4565 printf %s "(cached) " >&6 4566else $as_nop 4567 ac_check_lib_save_LIBS=$LIBS 4568LIBS="-lsmi $LIBS" 4569cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4570/* end confdefs.h. */ 4571 4572/* Override any GCC internal prototype to avoid an error. 4573 Use char because int might match the return type of a GCC 4574 builtin and then its argument prototype would still apply. */ 4575char smiInit (); 4576int 4577main (void) 4578{ 4579return smiInit (); 4580 ; 4581 return 0; 4582} 4583_ACEOF 4584if ac_fn_c_try_link "$LINENO" 4585then : 4586 ac_cv_lib_smi_smiInit=yes 4587else $as_nop 4588 ac_cv_lib_smi_smiInit=no 4589fi 4590rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4591 conftest$ac_exeext conftest.$ac_ext 4592LIBS=$ac_check_lib_save_LIBS 4593fi 4594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_smi_smiInit" >&5 4595printf "%s\n" "$ac_cv_lib_smi_smiInit" >&6; } 4596if test "x$ac_cv_lib_smi_smiInit" = xyes 4597then : 4598 4599 # 4600 # OK, we have libsmi with smiInit. Can we use it? 4601 # 4602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable libsmi" >&5 4603printf %s "checking whether to enable libsmi... " >&6; } 4604 savedlibs="$LIBS" 4605 LIBS="-lsmi $LIBS" 4606 if test "$cross_compiling" = yes 4607then : 4608 4609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not when cross-compiling" >&5 4610printf "%s\n" "not when cross-compiling" >&6; } 4611 LIBS="$savedlibs" 4612 4613 4614else $as_nop 4615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4616/* end confdefs.h. */ 4617 4618/* libsmi available check */ 4619#include <stdio.h> 4620#include <stdlib.h> 4621#include <string.h> 4622#include <smi.h> 4623int main() 4624{ 4625 int current, revision, age, n; 4626 const int required = 2; 4627 if (smiInit("")) 4628 exit(1); 4629 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version)) 4630 exit(2); 4631 n = sscanf(smi_library_version, "%d:%d:%d", ¤t, &revision, &age); 4632 if (n != 3) 4633 exit(3); 4634 if (required < current - age || required > current) 4635 exit(4); 4636 exit(0); 4637} 4638 4639 4640_ACEOF 4641if ac_fn_c_try_run "$LINENO" 4642then : 4643 4644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4645printf "%s\n" "yes" >&6; } 4646 4647printf "%s\n" "#define USE_LIBSMI 1" >>confdefs.h 4648 4649 4650else $as_nop 4651 4652 case $? in 4653 1) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - smiInit failed" >&5 4654printf "%s\n" "no - smiInit failed" >&6; } ;; 4655 2) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - header/library version mismatch" >&5 4656printf "%s\n" "no - header/library version mismatch" >&6; } ;; 4657 3) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - can't determine library version" >&5 4658printf "%s\n" "no - can't determine library version" >&6; } ;; 4659 4) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - too old" >&5 4660printf "%s\n" "no - too old" >&6; } ;; 4661 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4662printf "%s\n" "no" >&6; } ;; 4663 esac 4664 LIBS="$savedlibs" 4665 4666fi 4667rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4668 conftest.$ac_objext conftest.beam conftest.$ac_ext 4669fi 4670 4671 4672fi 4673 4674 4675fi 4676 4677fi 4678 4679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the instrument functions code" >&5 4680printf %s "checking whether to enable the instrument functions code... " >&6; } 4681# Check whether --enable-instrument-functions was given. 4682if test ${enable_instrument_functions+y} 4683then : 4684 enableval=$enable_instrument_functions; 4685else $as_nop 4686 enableval=no 4687fi 4688 4689case "$enableval" in 4690yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4691printf "%s\n" "yes" >&6; } 4692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bfd_init in -lbfd" >&5 4693printf %s "checking for bfd_init in -lbfd... " >&6; } 4694if test ${ac_cv_lib_bfd_bfd_init+y} 4695then : 4696 printf %s "(cached) " >&6 4697else $as_nop 4698 ac_check_lib_save_LIBS=$LIBS 4699LIBS="-lbfd $LIBS" 4700cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4701/* end confdefs.h. */ 4702 4703/* Override any GCC internal prototype to avoid an error. 4704 Use char because int might match the return type of a GCC 4705 builtin and then its argument prototype would still apply. */ 4706char bfd_init (); 4707int 4708main (void) 4709{ 4710return bfd_init (); 4711 ; 4712 return 0; 4713} 4714_ACEOF 4715if ac_fn_c_try_link "$LINENO" 4716then : 4717 ac_cv_lib_bfd_bfd_init=yes 4718else $as_nop 4719 ac_cv_lib_bfd_bfd_init=no 4720fi 4721rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4722 conftest$ac_exeext conftest.$ac_ext 4723LIBS=$ac_check_lib_save_LIBS 4724fi 4725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfd_bfd_init" >&5 4726printf "%s\n" "$ac_cv_lib_bfd_bfd_init" >&6; } 4727if test "x$ac_cv_lib_bfd_bfd_init" = xyes 4728then : 4729 true 4730else $as_nop 4731 as_fn_error $? "--enable-instrument-functions was given, but test for library libbfd failed. Please install the 'binutils-dev' package." "$LINENO" 5 4732fi 4733 4734 4735printf "%s\n" "#define ENABLE_INSTRUMENT_FUNCTIONS 1" >>confdefs.h 4736 4737 LOCALSRC="$LOCALSRC instrument-functions.c" 4738 # Add '-finstrument-functions' instrumentation option to generate 4739 # instrumentation calls for entry and exit to functions. 4740 # Try to avoid Address Space Layout Randomization (ALSR). 4741 CFLAGS="$CFLAGS -O0 -ggdb -finstrument-functions -fno-stack-protector -fno-pic" 4742 LDFLAGS="$LDFLAGS -O0 -ggdb -fno-stack-protector -no-pie" 4743 LIBS="$LIBS -lbfd" 4744 ;; 4745*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4746printf "%s\n" "no" >&6; } 4747 ;; 4748esac 4749 4750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the possibly-buggy SMB printer" >&5 4751printf %s "checking whether to enable the possibly-buggy SMB printer... " >&6; } 4752# Check whether --enable-smb was given. 4753if test ${enable_smb+y} 4754then : 4755 enableval=$enable_smb; 4756else $as_nop 4757 enableval=no 4758fi 4759 4760case "$enableval" in 4761yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4762printf "%s\n" "yes" >&6; } 4763 4764printf "%s\n" "#define ENABLE_SMB 1" >>confdefs.h 4765 4766 LOCALSRC="print-smb.c smbutil.c $LOCALSRC" 4767 ;; 4768*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4769printf "%s\n" "no" >&6; } 4770 ;; 4771esac 4772 4773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to drop root privileges by default" >&5 4774printf %s "checking whether to drop root privileges by default... " >&6; } 4775 4776# Check whether --with-user was given. 4777if test ${with_user+y} 4778then : 4779 withval=$with_user; 4780else $as_nop 4781 withval=no 4782fi 4783 4784case "$withval" in #( 4785 no) : 4786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4787printf "%s\n" "no" >&6; } ;; #( 4788 ''|yes) : 4789 as_fn_error $? "--with-user requires a username" "$LINENO" 5 ;; #( 4790 *) : 4791 4792 4793printf "%s\n" "#define WITH_USER \"$withval\"" >>confdefs.h 4794 4795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, to user \"$withval\"" >&5 4796printf "%s\n" "yes, to user \"$withval\"" >&6; } 4797 4798 ;; 4799esac 4800 4801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to chroot" >&5 4802printf %s "checking whether to chroot... " >&6; } 4803 4804# Check whether --with-chroot was given. 4805if test ${with_chroot+y} 4806then : 4807 withval=$with_chroot; 4808else $as_nop 4809 withval=no 4810 4811fi 4812 4813case "$withval" in #( 4814 no) : 4815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4816printf "%s\n" "no" >&6; } ;; #( 4817 ''|yes) : 4818 as_fn_error $? "--with-chroot requires a directory" "$LINENO" 5 ;; #( 4819 *) : 4820 4821 4822printf "%s\n" "#define WITH_CHROOT \"$withval\"" >>confdefs.h 4823 4824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, to directory \"$withval\"" >&5 4825printf "%s\n" "yes, to directory \"$withval\"" >&6; } 4826 4827 ;; 4828esac 4829 4830 4831# Check whether --with-sandbox-capsicum was given. 4832if test ${with_sandbox_capsicum+y} 4833then : 4834 withval=$with_sandbox_capsicum; 4835fi 4836 4837# 4838# Check whether various functions are available. If any are, set 4839# ac_lbl_capsicum_function_seen to yes; if any are not, set 4840# ac_lbl_capsicum_function_not_seen to yes. 4841# 4842# We don't check cap_rights_init(), as it's a macro, wrapping another 4843# function, in at least some versions of FreeBSD, and AC_CHECK_FUNCS() 4844# doesn't handle that. 4845# 4846# All of the ones we check for must be available in order to enable 4847# capsicum sandboxing. 4848# 4849# XXX - do we need to check for all of them, or are there some that, if 4850# present, imply others are present? 4851# 4852if test -z "$with_sandbox_capsicum" || test "$with_sandbox_capsicum" != "no" ; then 4853 # 4854 # First, make sure we have the required header. 4855 # 4856 ac_fn_c_check_header_compile "$LINENO" "sys/capsicum.h" "ac_cv_header_sys_capsicum_h" "$ac_includes_default" 4857if test "x$ac_cv_header_sys_capsicum_h" = xyes 4858then : 4859 4860 # 4861 # We do; now make sure we have the required functions. 4862 # 4863 4864 for ac_func in cap_enter cap_rights_limit cap_ioctls_limit openat 4865do : 4866 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh` 4867ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 4868if eval test \"x\$"$as_ac_var"\" = x"yes" 4869then : 4870 cat >>confdefs.h <<_ACEOF 4871#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 4872_ACEOF 4873 ac_lbl_capsicum_function_seen=yes 4874else $as_nop 4875 ac_lbl_capsicum_function_not_seen=yes 4876fi 4877 4878done 4879 4880fi 4881 4882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcasper" >&5 4883printf %s "checking for cap_init in -lcasper... " >&6; } 4884if test ${ac_cv_lib_casper_cap_init+y} 4885then : 4886 printf %s "(cached) " >&6 4887else $as_nop 4888 ac_check_lib_save_LIBS=$LIBS 4889LIBS="-lcasper $LIBS" 4890cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4891/* end confdefs.h. */ 4892 4893/* Override any GCC internal prototype to avoid an error. 4894 Use char because int might match the return type of a GCC 4895 builtin and then its argument prototype would still apply. */ 4896char cap_init (); 4897int 4898main (void) 4899{ 4900return cap_init (); 4901 ; 4902 return 0; 4903} 4904_ACEOF 4905if ac_fn_c_try_link "$LINENO" 4906then : 4907 ac_cv_lib_casper_cap_init=yes 4908else $as_nop 4909 ac_cv_lib_casper_cap_init=no 4910fi 4911rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4912 conftest$ac_exeext conftest.$ac_ext 4913LIBS=$ac_check_lib_save_LIBS 4914fi 4915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_casper_cap_init" >&5 4916printf "%s\n" "$ac_cv_lib_casper_cap_init" >&6; } 4917if test "x$ac_cv_lib_casper_cap_init" = xyes 4918then : 4919 LIBS="$LIBS -lcasper" 4920fi 4921 4922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cap_gethostbyaddr in -lcap_dns" >&5 4923printf %s "checking for cap_gethostbyaddr in -lcap_dns... " >&6; } 4924if test ${ac_cv_lib_cap_dns_cap_gethostbyaddr+y} 4925then : 4926 printf %s "(cached) " >&6 4927else $as_nop 4928 ac_check_lib_save_LIBS=$LIBS 4929LIBS="-lcap_dns $LIBS" 4930cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4931/* end confdefs.h. */ 4932 4933/* Override any GCC internal prototype to avoid an error. 4934 Use char because int might match the return type of a GCC 4935 builtin and then its argument prototype would still apply. */ 4936char cap_gethostbyaddr (); 4937int 4938main (void) 4939{ 4940return cap_gethostbyaddr (); 4941 ; 4942 return 0; 4943} 4944_ACEOF 4945if ac_fn_c_try_link "$LINENO" 4946then : 4947 ac_cv_lib_cap_dns_cap_gethostbyaddr=yes 4948else $as_nop 4949 ac_cv_lib_cap_dns_cap_gethostbyaddr=no 4950fi 4951rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4952 conftest$ac_exeext conftest.$ac_ext 4953LIBS=$ac_check_lib_save_LIBS 4954fi 4955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_dns_cap_gethostbyaddr" >&5 4956printf "%s\n" "$ac_cv_lib_cap_dns_cap_gethostbyaddr" >&6; } 4957if test "x$ac_cv_lib_cap_dns_cap_gethostbyaddr" = xyes 4958then : 4959 LIBS="$LIBS -lcap_dns" 4960fi 4961 4962fi 4963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to sandbox using capsicum" >&5 4964printf %s "checking whether to sandbox using capsicum... " >&6; } 4965if test "x$ac_lbl_capsicum_function_seen" = "xyes" -a "x$ac_lbl_capsicum_function_not_seen" != "xyes"; then 4966 4967printf "%s\n" "#define HAVE_CAPSICUM 1" >>confdefs.h 4968 4969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4970printf "%s\n" "yes" >&6; } 4971else 4972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4973printf "%s\n" "no" >&6; } 4974fi 4975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to sandbox using Casper library" >&5 4976printf %s "checking whether to sandbox using Casper library... " >&6; } 4977if test "x$ac_cv_lib_casper_cap_init" = "xyes" -a "x$ac_cv_lib_cap_dns_cap_gethostbyaddr" = "xyes"; then 4978 4979printf "%s\n" "#define HAVE_CASPER 1" >>confdefs.h 4980 4981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4982printf "%s\n" "yes" >&6; } 4983else 4984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4985printf "%s\n" "no" >&6; } 4986fi 4987 4988# 4989# We must check this before checking whether to check the OS's IPv6, 4990# support because, on some platforms (such as SunOS 5.x), the test 4991# program requires the extra networking libraries. 4992# 4993 4994 # Most operating systems have gethostbyaddr() in the default searched 4995 # libraries (i.e. libc): 4996 # Some OSes (eg. Solaris) place it in libnsl 4997 # Some strange OSes (SINIX) have it in libsocket: 4998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyaddr" >&5 4999printf %s "checking for library containing gethostbyaddr... " >&6; } 5000if test ${ac_cv_search_gethostbyaddr+y} 5001then : 5002 printf %s "(cached) " >&6 5003else $as_nop 5004 ac_func_search_save_LIBS=$LIBS 5005cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5006/* end confdefs.h. */ 5007 5008/* Override any GCC internal prototype to avoid an error. 5009 Use char because int might match the return type of a GCC 5010 builtin and then its argument prototype would still apply. */ 5011char gethostbyaddr (); 5012int 5013main (void) 5014{ 5015return gethostbyaddr (); 5016 ; 5017 return 0; 5018} 5019_ACEOF 5020for ac_lib in '' network nsl socket resolv 5021do 5022 if test -z "$ac_lib"; then 5023 ac_res="none required" 5024 else 5025 ac_res=-l$ac_lib 5026 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5027 fi 5028 if ac_fn_c_try_link "$LINENO" 5029then : 5030 ac_cv_search_gethostbyaddr=$ac_res 5031fi 5032rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5033 conftest$ac_exeext 5034 if test ${ac_cv_search_gethostbyaddr+y} 5035then : 5036 break 5037fi 5038done 5039if test ${ac_cv_search_gethostbyaddr+y} 5040then : 5041 5042else $as_nop 5043 ac_cv_search_gethostbyaddr=no 5044fi 5045rm conftest.$ac_ext 5046LIBS=$ac_func_search_save_LIBS 5047fi 5048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyaddr" >&5 5049printf "%s\n" "$ac_cv_search_gethostbyaddr" >&6; } 5050ac_res=$ac_cv_search_gethostbyaddr 5051if test "$ac_res" != no 5052then : 5053 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5054 5055fi 5056 5057 # Unfortunately libsocket sometimes depends on libnsl and 5058 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this. 5059 if test "$ac_cv_search_gethostbyaddr" = "no" 5060 then 5061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lsocket" >&5 5062printf %s "checking for gethostbyaddr in -lsocket... " >&6; } 5063if test ${ac_cv_lib_socket_gethostbyaddr+y} 5064then : 5065 printf %s "(cached) " >&6 5066else $as_nop 5067 ac_check_lib_save_LIBS=$LIBS 5068LIBS="-lsocket -lnsl $LIBS" 5069cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5070/* end confdefs.h. */ 5071 5072/* Override any GCC internal prototype to avoid an error. 5073 Use char because int might match the return type of a GCC 5074 builtin and then its argument prototype would still apply. */ 5075char gethostbyaddr (); 5076int 5077main (void) 5078{ 5079return gethostbyaddr (); 5080 ; 5081 return 0; 5082} 5083_ACEOF 5084if ac_fn_c_try_link "$LINENO" 5085then : 5086 ac_cv_lib_socket_gethostbyaddr=yes 5087else $as_nop 5088 ac_cv_lib_socket_gethostbyaddr=no 5089fi 5090rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5091 conftest$ac_exeext conftest.$ac_ext 5092LIBS=$ac_check_lib_save_LIBS 5093fi 5094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyaddr" >&5 5095printf "%s\n" "$ac_cv_lib_socket_gethostbyaddr" >&6; } 5096if test "x$ac_cv_lib_socket_gethostbyaddr" = xyes 5097then : 5098 LIBS="-lsocket -lnsl $LIBS" 5099fi 5100 5101 fi 5102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 5103printf %s "checking for library containing socket... " >&6; } 5104if test ${ac_cv_search_socket+y} 5105then : 5106 printf %s "(cached) " >&6 5107else $as_nop 5108 ac_func_search_save_LIBS=$LIBS 5109cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5110/* end confdefs.h. */ 5111 5112/* Override any GCC internal prototype to avoid an error. 5113 Use char because int might match the return type of a GCC 5114 builtin and then its argument prototype would still apply. */ 5115char socket (); 5116int 5117main (void) 5118{ 5119return socket (); 5120 ; 5121 return 0; 5122} 5123_ACEOF 5124for ac_lib in '' socket 5125do 5126 if test -z "$ac_lib"; then 5127 ac_res="none required" 5128 else 5129 ac_res=-l$ac_lib 5130 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5131 fi 5132 if ac_fn_c_try_link "$LINENO" 5133then : 5134 ac_cv_search_socket=$ac_res 5135fi 5136rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5137 conftest$ac_exeext 5138 if test ${ac_cv_search_socket+y} 5139then : 5140 break 5141fi 5142done 5143if test ${ac_cv_search_socket+y} 5144then : 5145 5146else $as_nop 5147 ac_cv_search_socket=no 5148fi 5149rm conftest.$ac_ext 5150LIBS=$ac_func_search_save_LIBS 5151fi 5152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 5153printf "%s\n" "$ac_cv_search_socket" >&6; } 5154ac_res=$ac_cv_search_socket 5155if test "$ac_res" != no 5156then : 5157 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5158 5159else $as_nop 5160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 5161printf %s "checking for socket in -lsocket... " >&6; } 5162if test ${ac_cv_lib_socket_socket+y} 5163then : 5164 printf %s "(cached) " >&6 5165else $as_nop 5166 ac_check_lib_save_LIBS=$LIBS 5167LIBS="-lsocket -lnsl $LIBS" 5168cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5169/* end confdefs.h. */ 5170 5171/* Override any GCC internal prototype to avoid an error. 5172 Use char because int might match the return type of a GCC 5173 builtin and then its argument prototype would still apply. */ 5174char socket (); 5175int 5176main (void) 5177{ 5178return socket (); 5179 ; 5180 return 0; 5181} 5182_ACEOF 5183if ac_fn_c_try_link "$LINENO" 5184then : 5185 ac_cv_lib_socket_socket=yes 5186else $as_nop 5187 ac_cv_lib_socket_socket=no 5188fi 5189rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5190 conftest$ac_exeext conftest.$ac_ext 5191LIBS=$ac_check_lib_save_LIBS 5192fi 5193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 5194printf "%s\n" "$ac_cv_lib_socket_socket" >&6; } 5195if test "x$ac_cv_lib_socket_socket" = xyes 5196then : 5197 LIBS="-lsocket -lnsl $LIBS" 5198fi 5199 5200fi 5201 5202 # DLPI needs putmsg under HPUX so test for -lstr while we're at it 5203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing putmsg" >&5 5204printf %s "checking for library containing putmsg... " >&6; } 5205if test ${ac_cv_search_putmsg+y} 5206then : 5207 printf %s "(cached) " >&6 5208else $as_nop 5209 ac_func_search_save_LIBS=$LIBS 5210cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5211/* end confdefs.h. */ 5212 5213/* Override any GCC internal prototype to avoid an error. 5214 Use char because int might match the return type of a GCC 5215 builtin and then its argument prototype would still apply. */ 5216char putmsg (); 5217int 5218main (void) 5219{ 5220return putmsg (); 5221 ; 5222 return 0; 5223} 5224_ACEOF 5225for ac_lib in '' str 5226do 5227 if test -z "$ac_lib"; then 5228 ac_res="none required" 5229 else 5230 ac_res=-l$ac_lib 5231 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5232 fi 5233 if ac_fn_c_try_link "$LINENO" 5234then : 5235 ac_cv_search_putmsg=$ac_res 5236fi 5237rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5238 conftest$ac_exeext 5239 if test ${ac_cv_search_putmsg+y} 5240then : 5241 break 5242fi 5243done 5244if test ${ac_cv_search_putmsg+y} 5245then : 5246 5247else $as_nop 5248 ac_cv_search_putmsg=no 5249fi 5250rm conftest.$ac_ext 5251LIBS=$ac_func_search_save_LIBS 5252fi 5253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_putmsg" >&5 5254printf "%s\n" "$ac_cv_search_putmsg" >&6; } 5255ac_res=$ac_cv_search_putmsg 5256if test "$ac_res" != no 5257then : 5258 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5259 5260fi 5261 5262 5263 5264# 5265# Check whether AF_INET6 and struct in6_addr are defined. 5266# If they aren't both defined, we don't have sufficient OS 5267# support for IPv6, so we don't look for IPv6 support libraries, 5268# and we define AF_INET6 and struct in6_addr ourselves. 5269# 5270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the operating system supports IPv6" >&5 5271printf %s "checking whether the operating system supports IPv6... " >&6; } 5272cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5273/* end confdefs.h. */ 5274 5275 5276#include <string.h> 5277/* AF_INET6 available check */ 5278#include <sys/types.h> 5279#ifdef _WIN32 5280#include <ws2tcpip.h> 5281#else 5282#include <sys/socket.h> 5283#include <netinet/in.h> 5284#endif 5285#ifdef AF_INET6 5286void 5287foo(struct in6_addr *addr) 5288{ 5289 memset(addr, 0, sizeof (struct in6_addr)); 5290} 5291#else 5292#error "AF_INET6 not defined" 5293#endif 5294 5295 5296_ACEOF 5297if ac_fn_c_try_compile "$LINENO" 5298then : 5299 5300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5301printf "%s\n" "yes" >&6; } 5302 5303printf "%s\n" "#define HAVE_OS_IPV6_SUPPORT 1" >>confdefs.h 5304 5305 ipv6=yes 5306 5307else $as_nop 5308 5309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5310printf "%s\n" "no" >&6; } 5311 ipv6=no 5312 5313 5314fi 5315rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5316 5317ipv6type=unknown 5318ipv6lib=none 5319ipv6trylibc=no 5320 5321if test "$ipv6" = "yes"; then 5322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 5323printf %s "checking ipv6 stack type... " >&6; } 5324 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do 5325 case $i in 5326 inria) 5327 ac_ext=c 5328ac_cpp='$CPP $CPPFLAGS' 5329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5331ac_compiler_gnu=$ac_cv_c_compiler_gnu 5332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5333printf %s "checking how to run the C preprocessor... " >&6; } 5334# On Suns, sometimes $CPP names a directory. 5335if test -n "$CPP" && test -d "$CPP"; then 5336 CPP= 5337fi 5338if test -z "$CPP"; then 5339 if test ${ac_cv_prog_CPP+y} 5340then : 5341 printf %s "(cached) " >&6 5342else $as_nop 5343 # Double quotes because $CC needs to be expanded 5344 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 5345 do 5346 ac_preproc_ok=false 5347for ac_c_preproc_warn_flag in '' yes 5348do 5349 # Use a header file that comes with gcc, so configuring glibc 5350 # with a fresh cross-compiler works. 5351 # On the NeXT, cc -E runs the code through the compiler's parser, 5352 # not just through cpp. "Syntax error" is here to catch this case. 5353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5354/* end confdefs.h. */ 5355#include <limits.h> 5356 Syntax error 5357_ACEOF 5358if ac_fn_c_try_cpp "$LINENO" 5359then : 5360 5361else $as_nop 5362 # Broken: fails on valid input. 5363continue 5364fi 5365rm -f conftest.err conftest.i conftest.$ac_ext 5366 5367 # OK, works on sane cases. Now check whether nonexistent headers 5368 # can be detected and how. 5369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5370/* end confdefs.h. */ 5371#include <ac_nonexistent.h> 5372_ACEOF 5373if ac_fn_c_try_cpp "$LINENO" 5374then : 5375 # Broken: success on invalid input. 5376continue 5377else $as_nop 5378 # Passes both tests. 5379ac_preproc_ok=: 5380break 5381fi 5382rm -f conftest.err conftest.i conftest.$ac_ext 5383 5384done 5385# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5386rm -f conftest.i conftest.err conftest.$ac_ext 5387if $ac_preproc_ok 5388then : 5389 break 5390fi 5391 5392 done 5393 ac_cv_prog_CPP=$CPP 5394 5395fi 5396 CPP=$ac_cv_prog_CPP 5397else 5398 ac_cv_prog_CPP=$CPP 5399fi 5400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5401printf "%s\n" "$CPP" >&6; } 5402ac_preproc_ok=false 5403for ac_c_preproc_warn_flag in '' yes 5404do 5405 # Use a header file that comes with gcc, so configuring glibc 5406 # with a fresh cross-compiler works. 5407 # On the NeXT, cc -E runs the code through the compiler's parser, 5408 # not just through cpp. "Syntax error" is here to catch this case. 5409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5410/* end confdefs.h. */ 5411#include <limits.h> 5412 Syntax error 5413_ACEOF 5414if ac_fn_c_try_cpp "$LINENO" 5415then : 5416 5417else $as_nop 5418 # Broken: fails on valid input. 5419continue 5420fi 5421rm -f conftest.err conftest.i conftest.$ac_ext 5422 5423 # OK, works on sane cases. Now check whether nonexistent headers 5424 # can be detected and how. 5425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5426/* end confdefs.h. */ 5427#include <ac_nonexistent.h> 5428_ACEOF 5429if ac_fn_c_try_cpp "$LINENO" 5430then : 5431 # Broken: success on invalid input. 5432continue 5433else $as_nop 5434 # Passes both tests. 5435ac_preproc_ok=: 5436break 5437fi 5438rm -f conftest.err conftest.i conftest.$ac_ext 5439 5440done 5441# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5442rm -f conftest.i conftest.err conftest.$ac_ext 5443if $ac_preproc_ok 5444then : 5445 5446else $as_nop 5447 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5448printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5449as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5450See \`config.log' for more details" "$LINENO" 5; } 5451fi 5452 5453ac_ext=c 5454ac_cpp='$CPP $CPPFLAGS' 5455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5457ac_compiler_gnu=$ac_cv_c_compiler_gnu 5458 5459 5460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5461printf %s "checking for grep that handles long lines and -e... " >&6; } 5462if test ${ac_cv_path_GREP+y} 5463then : 5464 printf %s "(cached) " >&6 5465else $as_nop 5466 if test -z "$GREP"; then 5467 ac_path_GREP_found=false 5468 # Loop through the user's path and test for each of PROGNAME-LIST 5469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5470for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5471do 5472 IFS=$as_save_IFS 5473 case $as_dir in #((( 5474 '') as_dir=./ ;; 5475 */) ;; 5476 *) as_dir=$as_dir/ ;; 5477 esac 5478 for ac_prog in grep ggrep 5479 do 5480 for ac_exec_ext in '' $ac_executable_extensions; do 5481 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 5482 as_fn_executable_p "$ac_path_GREP" || continue 5483# Check for GNU ac_path_GREP and select it if it is found. 5484 # Check for GNU $ac_path_GREP 5485case `"$ac_path_GREP" --version 2>&1` in 5486*GNU*) 5487 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5488*) 5489 ac_count=0 5490 printf %s 0123456789 >"conftest.in" 5491 while : 5492 do 5493 cat "conftest.in" "conftest.in" >"conftest.tmp" 5494 mv "conftest.tmp" "conftest.in" 5495 cp "conftest.in" "conftest.nl" 5496 printf "%s\n" 'GREP' >> "conftest.nl" 5497 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5498 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5499 as_fn_arith $ac_count + 1 && ac_count=$as_val 5500 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5501 # Best one so far, save it but keep looking for a better one 5502 ac_cv_path_GREP="$ac_path_GREP" 5503 ac_path_GREP_max=$ac_count 5504 fi 5505 # 10*(2^10) chars as input seems more than enough 5506 test $ac_count -gt 10 && break 5507 done 5508 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5509esac 5510 5511 $ac_path_GREP_found && break 3 5512 done 5513 done 5514 done 5515IFS=$as_save_IFS 5516 if test -z "$ac_cv_path_GREP"; then 5517 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5518 fi 5519else 5520 ac_cv_path_GREP=$GREP 5521fi 5522 5523fi 5524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5525printf "%s\n" "$ac_cv_path_GREP" >&6; } 5526 GREP="$ac_cv_path_GREP" 5527 5528 5529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5530printf %s "checking for egrep... " >&6; } 5531if test ${ac_cv_path_EGREP+y} 5532then : 5533 printf %s "(cached) " >&6 5534else $as_nop 5535 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5536 then ac_cv_path_EGREP="$GREP -E" 5537 else 5538 if test -z "$EGREP"; then 5539 ac_path_EGREP_found=false 5540 # Loop through the user's path and test for each of PROGNAME-LIST 5541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5542for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5543do 5544 IFS=$as_save_IFS 5545 case $as_dir in #((( 5546 '') as_dir=./ ;; 5547 */) ;; 5548 *) as_dir=$as_dir/ ;; 5549 esac 5550 for ac_prog in egrep 5551 do 5552 for ac_exec_ext in '' $ac_executable_extensions; do 5553 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5554 as_fn_executable_p "$ac_path_EGREP" || continue 5555# Check for GNU ac_path_EGREP and select it if it is found. 5556 # Check for GNU $ac_path_EGREP 5557case `"$ac_path_EGREP" --version 2>&1` in 5558*GNU*) 5559 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5560*) 5561 ac_count=0 5562 printf %s 0123456789 >"conftest.in" 5563 while : 5564 do 5565 cat "conftest.in" "conftest.in" >"conftest.tmp" 5566 mv "conftest.tmp" "conftest.in" 5567 cp "conftest.in" "conftest.nl" 5568 printf "%s\n" 'EGREP' >> "conftest.nl" 5569 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5570 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5571 as_fn_arith $ac_count + 1 && ac_count=$as_val 5572 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5573 # Best one so far, save it but keep looking for a better one 5574 ac_cv_path_EGREP="$ac_path_EGREP" 5575 ac_path_EGREP_max=$ac_count 5576 fi 5577 # 10*(2^10) chars as input seems more than enough 5578 test $ac_count -gt 10 && break 5579 done 5580 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5581esac 5582 5583 $ac_path_EGREP_found && break 3 5584 done 5585 done 5586 done 5587IFS=$as_save_IFS 5588 if test -z "$ac_cv_path_EGREP"; then 5589 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5590 fi 5591else 5592 ac_cv_path_EGREP=$EGREP 5593fi 5594 5595 fi 5596fi 5597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5598printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5599 EGREP="$ac_cv_path_EGREP" 5600 5601 5602cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5603/* end confdefs.h. */ 5604#include <netinet/in.h> 5605#ifdef IPV6_INRIA_VERSION 5606yes 5607#endif 5608_ACEOF 5609if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5610 $EGREP "yes" >/dev/null 2>&1 5611then : 5612 ipv6type=$i 5613fi 5614rm -rf conftest* 5615 5616 ;; 5617 kame) 5618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5619/* end confdefs.h. */ 5620#include <netinet/in.h> 5621#ifdef __KAME__ 5622yes 5623#endif 5624_ACEOF 5625if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5626 $EGREP "yes" >/dev/null 2>&1 5627then : 5628 ipv6type=$i; 5629 ipv6lib=inet6; 5630 ipv6libdir=/usr/local/v6/lib; 5631 ipv6trylibc=yes 5632fi 5633rm -rf conftest* 5634 5635 ;; 5636 linux-glibc) 5637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5638/* end confdefs.h. */ 5639#include <features.h> 5640#if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1 5641yes 5642#endif 5643_ACEOF 5644if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5645 $EGREP "yes" >/dev/null 2>&1 5646then : 5647 ipv6type=$i 5648fi 5649rm -rf conftest* 5650 5651 ;; 5652 linux-libinet6) 5653 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then 5654 ipv6type=$i 5655 ipv6lib=inet6 5656 ipv6libdir=/usr/inet6/lib 5657 ipv6trylibc=yes; 5658 CFLAGS="-I/usr/inet6/include $CFLAGS" 5659 fi 5660 ;; 5661 toshiba) 5662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5663/* end confdefs.h. */ 5664#include <sys/param.h> 5665#ifdef _TOSHIBA_INET6 5666yes 5667#endif 5668_ACEOF 5669if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5670 $EGREP "yes" >/dev/null 2>&1 5671then : 5672 ipv6type=$i; 5673 ipv6lib=inet6; 5674 ipv6libdir=/usr/local/v6/lib 5675fi 5676rm -rf conftest* 5677 5678 ;; 5679 v6d) 5680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5681/* end confdefs.h. */ 5682#include </usr/local/v6/include/sys/v6config.h> 5683#ifdef __V6D__ 5684yes 5685#endif 5686_ACEOF 5687if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5688 $EGREP "yes" >/dev/null 2>&1 5689then : 5690 ipv6type=$i; 5691 ipv6lib=v6; 5692 ipv6libdir=/usr/local/v6/lib; 5693 CFLAGS="-I/usr/local/v6/include $CFLAGS" 5694fi 5695rm -rf conftest* 5696 5697 ;; 5698 zeta) 5699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5700/* end confdefs.h. */ 5701#include <sys/param.h> 5702#ifdef _ZETA_MINAMI_INET6 5703yes 5704#endif 5705_ACEOF 5706if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5707 $EGREP "yes" >/dev/null 2>&1 5708then : 5709 ipv6type=$i; 5710 ipv6lib=inet6; 5711 ipv6libdir=/usr/local/v6/lib 5712fi 5713rm -rf conftest* 5714 5715 ;; 5716 esac 5717 if test "$ipv6type" != "unknown"; then 5718 break 5719 fi 5720 done 5721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 5722printf "%s\n" "$ipv6type" >&6; } 5723fi 5724 5725if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then 5726 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then 5727 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" 5728 echo "You have $ipv6lib library, using it" 5729 else 5730 if test "$ipv6trylibc" = "yes"; then 5731 echo "You do not have $ipv6lib library, using libc" 5732 else 5733 echo 'Fatal: no $ipv6lib library found. cannot continue.' 5734 echo "You need to fetch lib$ipv6lib.a from appropriate" 5735 echo 'ipv6 kit and compile beforehand.' 5736 exit 1 5737 fi 5738 fi 5739fi 5740 5741ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 5742if test "x$ac_cv_func_strlcat" = xyes 5743then : 5744 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h 5745 5746else $as_nop 5747 case " $LIBOBJS " in 5748 *" strlcat.$ac_objext "* ) ;; 5749 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 5750 ;; 5751esac 5752 5753fi 5754ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 5755if test "x$ac_cv_func_strlcpy" = xyes 5756then : 5757 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 5758 5759else $as_nop 5760 case " $LIBOBJS " in 5761 *" strlcpy.$ac_objext "* ) ;; 5762 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 5763 ;; 5764esac 5765 5766fi 5767ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" 5768if test "x$ac_cv_func_strdup" = xyes 5769then : 5770 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h 5771 5772else $as_nop 5773 case " $LIBOBJS " in 5774 *" strdup.$ac_objext "* ) ;; 5775 *) LIBOBJS="$LIBOBJS strdup.$ac_objext" 5776 ;; 5777esac 5778 5779fi 5780ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep" 5781if test "x$ac_cv_func_strsep" = xyes 5782then : 5783 printf "%s\n" "#define HAVE_STRSEP 1" >>confdefs.h 5784 5785else $as_nop 5786 case " $LIBOBJS " in 5787 *" strsep.$ac_objext "* ) ;; 5788 *) LIBOBJS="$LIBOBJS strsep.$ac_objext" 5789 ;; 5790esac 5791 5792fi 5793ac_fn_c_check_func "$LINENO" "getservent" "ac_cv_func_getservent" 5794if test "x$ac_cv_func_getservent" = xyes 5795then : 5796 printf "%s\n" "#define HAVE_GETSERVENT 1" >>confdefs.h 5797 5798else $as_nop 5799 case " $LIBOBJS " in 5800 *" getservent.$ac_objext "* ) ;; 5801 *) LIBOBJS="$LIBOBJS getservent.$ac_objext" 5802 ;; 5803esac 5804 5805fi 5806ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long" 5807if test "x$ac_cv_func_getopt_long" = xyes 5808then : 5809 printf "%s\n" "#define HAVE_GETOPT_LONG 1" >>confdefs.h 5810 5811else $as_nop 5812 case " $LIBOBJS " in 5813 *" getopt_long.$ac_objext "* ) ;; 5814 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext" 5815 ;; 5816esac 5817 5818fi 5819 5820ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork" 5821if test "x$ac_cv_func_fork" = xyes 5822then : 5823 printf "%s\n" "#define HAVE_FORK 1" >>confdefs.h 5824 5825fi 5826ac_fn_c_check_func "$LINENO" "vfork" "ac_cv_func_vfork" 5827if test "x$ac_cv_func_vfork" = xyes 5828then : 5829 printf "%s\n" "#define HAVE_VFORK 1" >>confdefs.h 5830 5831fi 5832 5833ac_fn_c_check_func "$LINENO" "setlinebuf" "ac_cv_func_setlinebuf" 5834if test "x$ac_cv_func_setlinebuf" = xyes 5835then : 5836 printf "%s\n" "#define HAVE_SETLINEBUF 1" >>confdefs.h 5837 5838fi 5839 5840 5841# 5842# Make sure we have snprintf(); we require it. 5843# 5844ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 5845if test "x$ac_cv_func_snprintf" = xyes 5846then : 5847 5848else $as_nop 5849 as_fn_error $? "snprintf() is required but wasn't found" "$LINENO" 5 5850fi 5851 5852 5853# 5854# It became apparent at some point that using a suitable C99 compiler does not 5855# automatically mean snprintf(3) implementation in the libc supports all the 5856# modifiers and specifiers used in the project, so let's test that before the 5857# build, not after. 5858# 5859# Testing the sizeof_t length modifier takes making an snprintf() call and 5860# comparing the actual result with the expected result. If this fails, it will 5861# most likely happen at run time, not compile time. 5862# 5863# Testing the 64-bit conversion specifiers in addition to that requires the 5864# <inttypes.h> header to be present and the macros to be defined, so if this 5865# fails, it will more likely happen at compile time. 5866# 5867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether snprintf is suitable" >&5 5868printf %s "checking whether snprintf is suitable... " >&6; } 5869if test "$cross_compiling" = yes 5870then : 5871 5872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not while cross-compiling" >&5 5873printf "%s\n" "not while cross-compiling" >&6; } 5874 5875 5876else $as_nop 5877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5878/* end confdefs.h. */ 5879 5880 5881#include <stdio.h> 5882#include <string.h> 5883#include <inttypes.h> 5884#include <sys/types.h> 5885 5886int main() 5887{ 5888 char buf[100]; 5889 uint64_t t = (uint64_t)1 << 32; 5890 5891 snprintf(buf, sizeof(buf), "%zu", sizeof(buf)); 5892 if (strncmp(buf, "100", sizeof(buf))) 5893 return 1; 5894 5895 snprintf(buf, sizeof(buf), "%zd", -sizeof(buf)); 5896 if (strncmp(buf, "-100", sizeof(buf))) 5897 return 2; 5898 5899 snprintf(buf, sizeof(buf), "%" PRId64, -t); 5900 if (strncmp(buf, "-4294967296", sizeof(buf))) 5901 return 3; 5902 5903 snprintf(buf, sizeof(buf), "0o%" PRIo64, t); 5904 if (strncmp(buf, "0o40000000000", sizeof(buf))) 5905 return 4; 5906 5907 snprintf(buf, sizeof(buf), "0x%" PRIx64, t); 5908 if (strncmp(buf, "0x100000000", sizeof(buf))) 5909 return 5; 5910 5911 snprintf(buf, sizeof(buf), "%" PRIu64, t); 5912 if (strncmp(buf, "4294967296", sizeof(buf))) 5913 return 6; 5914 5915 return 0; 5916} 5917 5918 5919_ACEOF 5920if ac_fn_c_try_run "$LINENO" 5921then : 5922 5923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5924printf "%s\n" "yes" >&6; } 5925 5926else $as_nop 5927 5928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5929printf "%s\n" "no" >&6; } 5930 as_fn_error $? "The snprintf(3) implementation in this libc is not suitable, 5931tcpdump would not work correctly even if it managed to compile." "$LINENO" 5 5932 5933fi 5934rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5935 conftest.$ac_objext conftest.beam conftest.$ac_ext 5936fi 5937 5938 5939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lrpc" >&5 5940printf %s "checking for main in -lrpc... " >&6; } 5941if test ${ac_cv_lib_rpc_main+y} 5942then : 5943 printf %s "(cached) " >&6 5944else $as_nop 5945 ac_check_lib_save_LIBS=$LIBS 5946LIBS="-lrpc $LIBS" 5947cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5948/* end confdefs.h. */ 5949 5950 5951int 5952main (void) 5953{ 5954return main (); 5955 ; 5956 return 0; 5957} 5958_ACEOF 5959if ac_fn_c_try_link "$LINENO" 5960then : 5961 ac_cv_lib_rpc_main=yes 5962else $as_nop 5963 ac_cv_lib_rpc_main=no 5964fi 5965rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5966 conftest$ac_exeext conftest.$ac_ext 5967LIBS=$ac_check_lib_save_LIBS 5968fi 5969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpc_main" >&5 5970printf "%s\n" "$ac_cv_lib_rpc_main" >&6; } 5971if test "x$ac_cv_lib_rpc_main" = xyes 5972then : 5973 printf "%s\n" "#define HAVE_LIBRPC 1" >>confdefs.h 5974 5975 LIBS="-lrpc $LIBS" 5976 5977fi 5978 5979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getrpcbynumber" >&5 5980printf %s "checking for library containing getrpcbynumber... " >&6; } 5981if test ${ac_cv_search_getrpcbynumber+y} 5982then : 5983 printf %s "(cached) " >&6 5984else $as_nop 5985 ac_func_search_save_LIBS=$LIBS 5986cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5987/* end confdefs.h. */ 5988 5989/* Override any GCC internal prototype to avoid an error. 5990 Use char because int might match the return type of a GCC 5991 builtin and then its argument prototype would still apply. */ 5992char getrpcbynumber (); 5993int 5994main (void) 5995{ 5996return getrpcbynumber (); 5997 ; 5998 return 0; 5999} 6000_ACEOF 6001for ac_lib in '' nsl 6002do 6003 if test -z "$ac_lib"; then 6004 ac_res="none required" 6005 else 6006 ac_res=-l$ac_lib 6007 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6008 fi 6009 if ac_fn_c_try_link "$LINENO" 6010then : 6011 ac_cv_search_getrpcbynumber=$ac_res 6012fi 6013rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6014 conftest$ac_exeext 6015 if test ${ac_cv_search_getrpcbynumber+y} 6016then : 6017 break 6018fi 6019done 6020if test ${ac_cv_search_getrpcbynumber+y} 6021then : 6022 6023else $as_nop 6024 ac_cv_search_getrpcbynumber=no 6025fi 6026rm conftest.$ac_ext 6027LIBS=$ac_func_search_save_LIBS 6028fi 6029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getrpcbynumber" >&5 6030printf "%s\n" "$ac_cv_search_getrpcbynumber" >&6; } 6031ac_res=$ac_cv_search_getrpcbynumber 6032if test "$ac_res" != no 6033then : 6034 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6035 6036printf "%s\n" "#define HAVE_GETRPCBYNUMBER 1" >>confdefs.h 6037 6038fi 6039 6040 6041 6042 6043 6044 LBL_LIBS="$LIBS" 6045 pfopen=/usr/examples/packetfilter/pfopen.c 6046 if test -f $pfopen ; then 6047 ac_fn_c_check_func "$LINENO" "pfopen" "ac_cv_func_pfopen" 6048if test "x$ac_cv_func_pfopen" = xyes 6049then : 6050 printf "%s\n" "#define HAVE_PFOPEN 1" >>confdefs.h 6051 6052fi 6053 6054 if test $ac_cv_func_pfopen = "no" ; then 6055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using $pfopen" >&5 6056printf "%s\n" "Using $pfopen" >&6; } 6057 LIBS="$LIBS $pfopen" 6058 fi 6059 fi 6060 libpcap=FAIL 6061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to look for a local libpcap" >&5 6062printf %s "checking whether to look for a local libpcap... " >&6; } 6063 # Check whether --enable-local-libpcap was given. 6064if test ${enable_local_libpcap+y} 6065then : 6066 enableval=$enable_local_libpcap; 6067else $as_nop 6068 enableval=yes 6069fi 6070 6071 case "$enableval" in 6072 6073 no) 6074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6075printf "%s\n" "no" >&6; } 6076 # 6077 # Don't look for a local libpcap. 6078 # 6079 using_local_libpcap=no 6080 ;; 6081 6082 *) 6083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6084printf "%s\n" "yes" >&6; } 6085 # 6086 # Look for a local pcap library. 6087 # 6088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for local pcap library" >&5 6089printf %s "checking for local pcap library... " >&6; } 6090 lastdir=FAIL 6091 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \ 6092 $EGREP '/libpcap-[0-9]+\.[0-9]+(\.[0-9]*)?([ab][0-9]*|-PRE-GIT|rc.)?$'` 6093 places2=`ls .. | sed -e 's,/$,,' -e "s,^,../," | \ 6094 $EGREP '/libpcap-[0-9]+\.[0-9]+(\.[0-9]*)?([ab][0-9]*|-PRE-GIT|rc.)?$'` 6095 for dir in $places $srcdir/../libpcap ../libpcap $srcdir/libpcap $places2 ; do 6096 basedir=`echo $dir | sed -e 's/[ab][0-9]*$//' | \ 6097 sed -e 's/-PRE-GIT$//' ` 6098 if test $lastdir = $basedir ; then 6099 continue; 6100 fi 6101 lastdir=$dir 6102 if test -r $dir/libpcap.a ; then 6103 libpcap=$dir/libpcap.a 6104 local_pcap_dir=$dir 6105 fi 6106 done 6107 if test $libpcap = FAIL ; then 6108 # 6109 # We didn't find a local libpcap. 6110 # 6111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6112printf "%s\n" "not found" >&6; } 6113 using_local_libpcap=no; 6114 else 6115 # 6116 # We found a local libpcap. 6117 # 6118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libpcap" >&5 6119printf "%s\n" "$libpcap" >&6; } 6120 using_local_libpcap=yes 6121 fi 6122 ;; 6123 esac 6124 6125 if test $using_local_libpcap = no ; then 6126 # 6127 # We didn't find a local libpcap. 6128 # Look for an installed pkg-config. 6129 # 6130 if test -n "$PKG_CONFIG" ; then 6131 # 6132 # We have it. Are there .pc files for libpcap? 6133 # 6134 # --exists was introduced in pkg-config 0.4.0; that 6135 # dates back to late 2000, so we won't worry about 6136 # earlier releases that lack it. 6137 # 6138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether there are .pc files for libpcap" >&5 6139printf %s "checking whether there are .pc files for libpcap... " >&6; } 6140 if "$PKG_CONFIG" libpcap --exists ; then 6141 # 6142 # Yes, so we can use pkg-config to get configuration 6143 # information for libpcap. 6144 # 6145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6146printf "%s\n" "yes" >&6; } 6147 pkg_config_usable=yes 6148 else 6149 # 6150 # No, so we can't use pkg-config to get configuration 6151 # information for libpcap. 6152 # 6153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6154printf "%s\n" "no" >&6; } 6155 pkg_config_usable=no 6156 fi 6157 else 6158 # 6159 # We don't have it, so we obviously can't use it. 6160 # 6161 pkg_config_usable=no 6162 fi 6163 if test "$pkg_config_usable" = "yes" ; then 6164 # 6165 # Found both - use pkg-config to get the include flags for 6166 # libpcap and the flags to link with libpcap. 6167 # 6168 # Please read section 11.6 "Shell Substitutions" 6169 # in the autoconf manual before doing anything 6170 # to this that involves quoting. Especially note 6171 # the statement "There is just no portable way to use 6172 # double-quoted strings inside double-quoted back-quoted 6173 # expressions (pfew!)." 6174 # 6175 cflags=`"$PKG_CONFIG" libpcap --cflags` 6176 V_INCLS="$cflags $V_INCLS" 6177 libpcap=`"$PKG_CONFIG" libpcap --libs` 6178 else 6179 # 6180 # No pkg-config 6181 # Look for an installed pcap-config. 6182 # 6183 if test -n "$ac_tool_prefix"; then 6184 # Extract the first word of "${ac_tool_prefix}pcap-config", so it can be a program name with args. 6185set dummy ${ac_tool_prefix}pcap-config; ac_word=$2 6186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6187printf %s "checking for $ac_word... " >&6; } 6188if test ${ac_cv_path_PCAP_CONFIG+y} 6189then : 6190 printf %s "(cached) " >&6 6191else $as_nop 6192 case $PCAP_CONFIG in 6193 [\\/]* | ?:[\\/]*) 6194 ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path. 6195 ;; 6196 *) 6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6198for as_dir in $PATH 6199do 6200 IFS=$as_save_IFS 6201 case $as_dir in #((( 6202 '') as_dir=./ ;; 6203 */) ;; 6204 *) as_dir=$as_dir/ ;; 6205 esac 6206 for ac_exec_ext in '' $ac_executable_extensions; do 6207 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6208 ac_cv_path_PCAP_CONFIG="$as_dir$ac_word$ac_exec_ext" 6209 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6210 break 2 6211 fi 6212done 6213 done 6214IFS=$as_save_IFS 6215 6216 ;; 6217esac 6218fi 6219PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG 6220if test -n "$PCAP_CONFIG"; then 6221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PCAP_CONFIG" >&5 6222printf "%s\n" "$PCAP_CONFIG" >&6; } 6223else 6224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6225printf "%s\n" "no" >&6; } 6226fi 6227 6228 6229fi 6230if test -z "$ac_cv_path_PCAP_CONFIG"; then 6231 ac_pt_PCAP_CONFIG=$PCAP_CONFIG 6232 # Extract the first word of "pcap-config", so it can be a program name with args. 6233set dummy pcap-config; ac_word=$2 6234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6235printf %s "checking for $ac_word... " >&6; } 6236if test ${ac_cv_path_ac_pt_PCAP_CONFIG+y} 6237then : 6238 printf %s "(cached) " >&6 6239else $as_nop 6240 case $ac_pt_PCAP_CONFIG in 6241 [\\/]* | ?:[\\/]*) 6242 ac_cv_path_ac_pt_PCAP_CONFIG="$ac_pt_PCAP_CONFIG" # Let the user override the test with a path. 6243 ;; 6244 *) 6245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6246for as_dir in $PATH 6247do 6248 IFS=$as_save_IFS 6249 case $as_dir in #((( 6250 '') as_dir=./ ;; 6251 */) ;; 6252 *) as_dir=$as_dir/ ;; 6253 esac 6254 for ac_exec_ext in '' $ac_executable_extensions; do 6255 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6256 ac_cv_path_ac_pt_PCAP_CONFIG="$as_dir$ac_word$ac_exec_ext" 6257 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6258 break 2 6259 fi 6260done 6261 done 6262IFS=$as_save_IFS 6263 6264 ;; 6265esac 6266fi 6267ac_pt_PCAP_CONFIG=$ac_cv_path_ac_pt_PCAP_CONFIG 6268if test -n "$ac_pt_PCAP_CONFIG"; then 6269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PCAP_CONFIG" >&5 6270printf "%s\n" "$ac_pt_PCAP_CONFIG" >&6; } 6271else 6272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6273printf "%s\n" "no" >&6; } 6274fi 6275 6276 if test "x$ac_pt_PCAP_CONFIG" = x; then 6277 PCAP_CONFIG="" 6278 else 6279 case $cross_compiling:$ac_tool_warned in 6280yes:) 6281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6282printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6283ac_tool_warned=yes ;; 6284esac 6285 PCAP_CONFIG=$ac_pt_PCAP_CONFIG 6286 fi 6287else 6288 PCAP_CONFIG="$ac_cv_path_PCAP_CONFIG" 6289fi 6290 6291 if test -n "$PCAP_CONFIG" ; then 6292 # 6293 # Found - use it to get the include flags for 6294 # libpcap and the flags to link with libpcap. 6295 # 6296 # If this is a vendor-supplied pcap-config, which 6297 # we define as being "a pcap-config in /usr/bin 6298 # or /usr/ccs/bin" (the latter is for Solaris and 6299 # Sun/Oracle Studio), there are some issues. Work 6300 # around them. 6301 # 6302 if test \( "$PCAP_CONFIG" = "/usr/bin/pcap-config" \) -o \ 6303 \( "$PCAP_CONFIG" = "/usr/ccs/bin/pcap-config" \) ; then 6304 # 6305 # It's vendor-supplied. 6306 # 6307 case "$host_os" in 6308 6309 darwin*) 6310 # 6311 # This is macOS or another Darwin-based OS. 6312 # 6313 # That means that /usr/bin/pcap-config it 6314 # may provide -I/usr/local/include with --cflags 6315 # and -L/usr/local/lib with --libs, rather than 6316 # pointing to the OS-supplied library and 6317 # Xcode-supplied headers. Remember that, so we 6318 # ignore those values. 6319 # 6320 _broken_apple_pcap_config=yes 6321 6322 # 6323 # Furthermore: 6324 # 6325 # macOS Sonoma's libpcap includes stub versions 6326 # of the remote-capture APIs. They are exported 6327 # as "weakly linked symbols". 6328 # 6329 # Xcode 15 offers only a macOS Sonoma SDK, which 6330 # has a .tbd file for libpcap that claims it 6331 # includes those APIs. (Newer versions of macOS 6332 # don't provide the system shared libraries, 6333 # they only provide the dyld shared cache 6334 # containing those libraries, so the OS provides 6335 # SDKs that include a .tbd file to use when 6336 # linking.) 6337 # 6338 # This means that AC_CHECK_FUNCS() will think 6339 # that the remote-capture APIs are present, 6340 # including pcap_open() and 6341 # pcap_findalldevs_ex(). 6342 # 6343 # However, they are *not* present in macOS 6344 # Ventura and earlier, which means that building 6345 # on Ventura with Xcode 15 produces executables 6346 # that fail to start because one of those APIs 6347 # isn't found in the system libpcap. 6348 # 6349 # Protecting calls to those APIs with 6350 # __builtin_available() does not appear to 6351 # prevent this, for some unknown reason, and it 6352 # doesn't even allow the program to compile with 6353 # versions of Xcode prior to Xcode 15, as the 6354 # pcap.h file doesn't specify minimum OS 6355 # versions for those functions. 6356 # 6357 # Given all that, and given that the versions of 6358 # the remote-capture APIs in Sonoma are stubs 6359 # that always fail, there doesn't seem to be any 6360 # point in checking for pcap_open() if we're 6361 # linking against the Apple libpcap. 6362 # 6363 # However, if we're *not* linking against the 6364 # Apple libpcap, we should check for it, so that 6365 # we can use it if it's present. 6366 # 6367 # We know this is macOS and that we're using 6368 # the system-provided pcap-config to find 6369 # libpcap, so we know it'll be the system 6370 # libpcap, and note that we should not search 6371 # for remote-capture APIs. 6372 # 6373 _dont_check_for_remote_apis=yes 6374 ;; 6375 6376 solaris*) 6377 # 6378 # This is Solaris 2 or later, i.e. SunOS 5.x. 6379 # 6380 # At least on Solaris 11; there's /usr/bin/pcap-config, 6381 # which reports -L/usr/lib with --libs, causing 6382 # the 32-bit libraries to be found, and there's 6383 # /usr/bin/{64bitarch}/pcap-config, where {64bitarch} 6384 # is a name for the 64-bit version of the instruction 6385 # set, which reports -L /usr/lib/{64bitarch}, causing 6386 # the 64-bit libraries to be found. 6387 # 6388 # So if we're building 64-bit targets, we replace 6389 # PCAP_CONFIG with /usr/bin/{64bitarch}; we get 6390 # {64bitarch} as the output of "isainfo -n". 6391 # 6392 # Are we building 32-bit or 64-bit? Get the 6393 # size of void *, and check that. 6394 # 6395 # The cast to long int works around a bug in the HP C Compiler 6396# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6397# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6398# This bug is HP SR number 8606223364. 6399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 6400printf %s "checking size of void *... " >&6; } 6401if test ${ac_cv_sizeof_void_p+y} 6402then : 6403 printf %s "(cached) " >&6 6404else $as_nop 6405 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default" 6406then : 6407 6408else $as_nop 6409 if test "$ac_cv_type_void_p" = yes; then 6410 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6411printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 6412as_fn_error 77 "cannot compute sizeof (void *) 6413See \`config.log' for more details" "$LINENO" 5; } 6414 else 6415 ac_cv_sizeof_void_p=0 6416 fi 6417fi 6418 6419fi 6420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 6421printf "%s\n" "$ac_cv_sizeof_void_p" >&6; } 6422 6423 6424 6425printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h 6426 6427 6428 if test ac_cv_sizeof_void_p -eq 8 ; then 6429 isainfo_output=`isainfo -n` 6430 if test ! -z "$isainfo_output" ; then 6431 # 6432 # Success - change PCAP_CONFIG. 6433 # 6434 PCAP_CONFIG=`echo $PCAP_CONFIG | sed "s;/bin/;/bin/$isainfo_output/;"` 6435 fi 6436 fi 6437 ;; 6438 esac 6439 fi 6440 # 6441 # Please read section 11.6 "Shell Substitutions" 6442 # in the autoconf manual before doing anything 6443 # to this that involves quoting. Especially note 6444 # the statement "There is just no portable way to use 6445 # double-quoted strings inside double-quoted back-quoted 6446 # expressions (pfew!)." 6447 # 6448 cflags=`"$PCAP_CONFIG" --cflags` 6449 # 6450 # Work around macOS (and probably other Darwin) brokenness, 6451 # by not adding /usr/local/include if it's from the broken 6452 # Apple pcap-config. 6453 # 6454 if test "$_broken_apple_pcap_config" = "yes" ; then 6455 # 6456 # Strip -I/usr/local/include with sed. 6457 # 6458 cflags=`echo $cflags | sed 's;-I/usr/local/include;;'` 6459 fi 6460 V_INCLS="$cflags $V_INCLS" 6461 libpcap=`"$PCAP_CONFIG" --libs` 6462 # 6463 # Work around macOS (and probably other Darwin) brokenness, 6464 # by not adding /usr/local/lib if it's from the broken 6465 # Apple pcap-config. 6466 # 6467 if test "$_broken_apple_pcap_config" = "yes" ; then 6468 # 6469 # Strip -L/usr/local/lib with sed. 6470 # 6471 libpcap=`echo $libpcap | sed 's;-L/usr/local/lib;;'` 6472 fi 6473 else 6474 # 6475 # Not found; look for an installed pcap. 6476 # 6477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lpcap" >&5 6478printf %s "checking for main in -lpcap... " >&6; } 6479if test ${ac_cv_lib_pcap_main+y} 6480then : 6481 printf %s "(cached) " >&6 6482else $as_nop 6483 ac_check_lib_save_LIBS=$LIBS 6484LIBS="-lpcap $LIBS" 6485cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6486/* end confdefs.h. */ 6487 6488 6489int 6490main (void) 6491{ 6492return main (); 6493 ; 6494 return 0; 6495} 6496_ACEOF 6497if ac_fn_c_try_link "$LINENO" 6498then : 6499 ac_cv_lib_pcap_main=yes 6500else $as_nop 6501 ac_cv_lib_pcap_main=no 6502fi 6503rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6504 conftest$ac_exeext conftest.$ac_ext 6505LIBS=$ac_check_lib_save_LIBS 6506fi 6507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_main" >&5 6508printf "%s\n" "$ac_cv_lib_pcap_main" >&6; } 6509if test "x$ac_cv_lib_pcap_main" = xyes 6510then : 6511 libpcap="-lpcap" 6512fi 6513 6514 if test $libpcap = FAIL ; then 6515 as_fn_error $? "see the INSTALL.md file for more info" "$LINENO" 5 6516 fi 6517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for extraneous pcap header directories" >&5 6518printf %s "checking for extraneous pcap header directories... " >&6; } 6519 if test \( ! -r /usr/local/include/pcap.h \) -a \ 6520 \( ! -r /usr/include/pcap.h \); then 6521 if test -r /usr/local/include/pcap/pcap.h; then 6522 d="/usr/local/include/pcap" 6523 elif test -r /usr/include/pcap/pcap.h; then 6524 d="/usr/include/pcap" 6525 fi 6526 fi 6527 if test -z "$d" ; then 6528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6529printf "%s\n" "not found" >&6; } 6530 else 6531 V_INCLS="-I$d $V_INCLS" 6532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found -- -I$d added" >&5 6533printf "%s\n" "found -- -I$d added" >&6; } 6534 fi 6535 fi 6536 fi 6537 else 6538 # 6539 # We found a local libpcap. Add it to the dependencies for 6540 # tcpdump. 6541 # 6542 V_PCAPDEP=$libpcap 6543 6544 # 6545 # Look for its pcap-config script. 6546 # 6547 # Extract the first word of "pcap-config", so it can be a program name with args. 6548set dummy pcap-config; ac_word=$2 6549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6550printf %s "checking for $ac_word... " >&6; } 6551if test ${ac_cv_path_PCAP_CONFIG+y} 6552then : 6553 printf %s "(cached) " >&6 6554else $as_nop 6555 case $PCAP_CONFIG in 6556 [\\/]* | ?:[\\/]*) 6557 ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path. 6558 ;; 6559 *) 6560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6561for as_dir in $local_pcap_dir 6562do 6563 IFS=$as_save_IFS 6564 case $as_dir in #((( 6565 '') as_dir=./ ;; 6566 */) ;; 6567 *) as_dir=$as_dir/ ;; 6568 esac 6569 for ac_exec_ext in '' $ac_executable_extensions; do 6570 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6571 ac_cv_path_PCAP_CONFIG="$as_dir$ac_word$ac_exec_ext" 6572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6573 break 2 6574 fi 6575done 6576 done 6577IFS=$as_save_IFS 6578 6579 ;; 6580esac 6581fi 6582PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG 6583if test -n "$PCAP_CONFIG"; then 6584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PCAP_CONFIG" >&5 6585printf "%s\n" "$PCAP_CONFIG" >&6; } 6586else 6587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6588printf "%s\n" "no" >&6; } 6589fi 6590 6591 6592 6593 if test -n "$PCAP_CONFIG"; then 6594 # 6595 # We don't want its --cflags or --libs output, because 6596 # those presume it's installed. For the C compiler flags, 6597 # we add the source directory for the local libpcap, so 6598 # we pick up its header files. 6599 # 6600 # We do, however, want its additional libraries, as required 6601 # when linking statically, because it makes calls to 6602 # routines in those libraries, so we'll need to link with 6603 # them, because we'll be linking statically with it. 6604 # 6605 # If it supports --static-pcap-only. use that, as we will be 6606 # linking with a static libpcap but won't be linking 6607 # statically with any of the libraries on which it depends; 6608 # those libraries might not even have static versions 6609 # installed. 6610 # 6611 # That means we need to find out the libraries on which 6612 # libpcap directly depends, so we can link with them, but we 6613 # don't need to link with the libraries on which those 6614 # libraries depend as, on all UN*Xes with which I'm 6615 # familiar, the libraries on which a shared library depends 6616 # are stored in the library and are automatically loaded by 6617 # the run-time linker, without the executable having to be 6618 # linked with those libraries. (This allows a library to be 6619 # changed to depend on more libraries without breaking that 6620 # library's ABI.) 6621 # 6622 # The only way to test for that support is to see if the 6623 # script contains the string "static-pcap-only"; we can't 6624 # try using that flag and checking for errors, as the 6625 # versions of the script that didn't have that flag wouldn't 6626 # report or return an error for an unsupported command-line 6627 # flag. Those older versions provided, with --static, only 6628 # the libraries on which libpcap depends, not the 6629 # dependencies of those libraries; the versions with 6630 # --static-pcap-only provide all the dependencies with 6631 # --static, for the benefit of programs that are completely 6632 # statically linked, and provide only the direct 6633 # dependencies with --static-pcap-only. 6634 # 6635 if grep "static-pcap-only" "$PCAP_CONFIG" >/dev/null 2>&1 6636 then 6637 static_opt="--static-pcap-only" 6638 else 6639 static_opt="--static" 6640 fi 6641 V_INCLS="-I$local_pcap_dir $V_INCLS" 6642 additional_libs=`"$PCAP_CONFIG" $static_opt --additional-libs` 6643 libpcap="$libpcap $additional_libs" 6644 else 6645 # 6646 # It doesn't have a pcap-config script. 6647 # Make sure it has a pcap.h file. 6648 # 6649 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \ 6650 $EGREP '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'` 6651 places2=`ls .. | sed -e 's,/$,,' -e "s,^,../," | \ 6652 $EGREP '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'` 6653 pcapH=FAIL 6654 if test -r $local_pcap_dir/pcap.h; then 6655 pcapH=$local_pcap_dir 6656 else 6657 for dir in $places $srcdir/../libpcap ../libpcap $srcdir/libpcap $places2 ; do 6658 if test -r $dir/pcap.h ; then 6659 pcapH=$dir 6660 fi 6661 done 6662 fi 6663 6664 if test $pcapH = FAIL ; then 6665 as_fn_error $? "cannot find pcap.h: see the INSTALL.md file" "$LINENO" 5 6666 fi 6667 6668 # 6669 # Force the compiler to look for header files in the 6670 # directory containing pcap.h. 6671 # 6672 V_INCLS="-I$pcapH $V_INCLS" 6673 fi 6674 fi 6675 6676 if test -z "$PKG_CONFIG" -a -z "$PCAP_CONFIG"; then 6677 # 6678 # We don't have pkg-config or pcap-config; find out any additional 6679 # link flags we need. (If we have pkg-config or pcap-config, we 6680 # assume it tells us what we need.) 6681 # 6682 case "$host_os" in 6683 6684 aix*) 6685 # 6686 # If libpcap is DLPI-based, we have to use /lib/pse.exp if 6687 # present, as we use the STREAMS routines. 6688 # 6689 # (XXX - true only if we're linking with a static libpcap?) 6690 # 6691 pseexe="/lib/pse.exp" 6692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $pseexe" >&5 6693printf %s "checking for $pseexe... " >&6; } 6694 if test -f $pseexe ; then 6695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6696printf "%s\n" "yes" >&6; } 6697 LIBS="$LIBS -I:$pseexe" 6698 fi 6699 6700 # 6701 # If libpcap is BPF-based, we need "-lodm" and "-lcfg", as 6702 # we use them to load the BPF module. 6703 # 6704 # (XXX - true only if we're linking with a static libpcap?) 6705 # 6706 LIBS="$LIBS -lodm -lcfg" 6707 ;; 6708 6709 solaris*) 6710 # libdlpi is needed for Solaris 11 and later. 6711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlpi_walk in -ldlpi" >&5 6712printf %s "checking for dlpi_walk in -ldlpi... " >&6; } 6713if test ${ac_cv_lib_dlpi_dlpi_walk+y} 6714then : 6715 printf %s "(cached) " >&6 6716else $as_nop 6717 ac_check_lib_save_LIBS=$LIBS 6718LIBS="-ldlpi -L/lib $LIBS" 6719cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6720/* end confdefs.h. */ 6721 6722/* Override any GCC internal prototype to avoid an error. 6723 Use char because int might match the return type of a GCC 6724 builtin and then its argument prototype would still apply. */ 6725char dlpi_walk (); 6726int 6727main (void) 6728{ 6729return dlpi_walk (); 6730 ; 6731 return 0; 6732} 6733_ACEOF 6734if ac_fn_c_try_link "$LINENO" 6735then : 6736 ac_cv_lib_dlpi_dlpi_walk=yes 6737else $as_nop 6738 ac_cv_lib_dlpi_dlpi_walk=no 6739fi 6740rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6741 conftest$ac_exeext conftest.$ac_ext 6742LIBS=$ac_check_lib_save_LIBS 6743fi 6744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dlpi_dlpi_walk" >&5 6745printf "%s\n" "$ac_cv_lib_dlpi_dlpi_walk" >&6; } 6746if test "x$ac_cv_lib_dlpi_dlpi_walk" = xyes 6747then : 6748 LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib $LDFLAGS" 6749fi 6750 6751 ;; 6752 esac 6753 fi 6754 6755 LIBS="$libpcap $LIBS" 6756 6757 ac_fn_c_check_func "$LINENO" "pcap_loop" "ac_cv_func_pcap_loop" 6758if test "x$ac_cv_func_pcap_loop" = xyes 6759then : 6760 6761else $as_nop 6762 6763 as_fn_error $? " 67641. Do you try to build a 32-bit tcpdump with a 64-bit libpcap or vice versa? 67652. This is a bug, please follow the guidelines in CONTRIBUTING.md and include 6766the config.log file in your report. If you have downloaded libpcap from 6767tcpdump.org, and built it yourself, please also include the config.log 6768file from the libpcap source directory, the Makefile from the libpcap 6769source directory, and the output of the make process for libpcap, as 6770this could be a problem with the libpcap that was built, and we will 6771not be able to determine why this is happening, and thus will not be 6772able to fix it, without that information, as we have not been able to 6773reproduce this problem ourselves." "$LINENO" 5 6774 6775fi 6776 6777 6778 6779# 6780# Check for these after AC_LBL_LIBPCAP, so we link with the appropriate 6781# libraries (e.g., "-lsocket -lnsl" on Solaris). 6782# 6783# You are in a twisty little maze of UN*Xes, all different. 6784# Some might not have ether_ntohost(). 6785# Some might have it and declare it in <net/ethernet.h>. 6786# Some might have it and declare it in <netinet/ether.h> 6787# Some might have it and declare it in <sys/ethernet.h>. 6788# Some might have it and declare it in <arpa/inet.h>. 6789# Some might have it and declare it in <netinet/if_ether.h>. 6790# Some might have it and not declare it in any header file. 6791# 6792# Before you is a C compiler. 6793# 6794 6795 for ac_func in ether_ntohost 6796do : 6797 ac_fn_c_check_func "$LINENO" "ether_ntohost" "ac_cv_func_ether_ntohost" 6798if test "x$ac_cv_func_ether_ntohost" = xyes 6799then : 6800 printf "%s\n" "#define HAVE_ETHER_NTOHOST 1" >>confdefs.h 6801 6802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for buggy ether_ntohost" >&5 6803printf %s "checking for buggy ether_ntohost... " >&6; } 6804if test ${ac_cv_buggy_ether_ntohost+y} 6805then : 6806 printf %s "(cached) " >&6 6807else $as_nop 6808 6809 if test "$cross_compiling" = yes 6810then : 6811 ac_cv_buggy_ether_ntohost="not while cross-compiling" 6812else $as_nop 6813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6814/* end confdefs.h. */ 6815 6816 #include <netdb.h> 6817 #include <netinet/ether.h> 6818 #include <stdlib.h> 6819 #include <sys/types.h> 6820 #include <sys/param.h> 6821 #include <sys/socket.h> 6822 6823 int 6824 main(int argc, char **argv) 6825 { 6826 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff }; 6827 char name[MAXHOSTNAMELEN]; 6828 6829 ether_ntohost(name, (struct ether_addr *)ea); 6830 exit(0); 6831 } 6832 6833 6834_ACEOF 6835if ac_fn_c_try_run "$LINENO" 6836then : 6837 ac_cv_buggy_ether_ntohost=no 6838else $as_nop 6839 ac_cv_buggy_ether_ntohost=yes 6840fi 6841rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6842 conftest.$ac_objext conftest.beam conftest.$ac_ext 6843fi 6844 6845fi 6846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_ether_ntohost" >&5 6847printf "%s\n" "$ac_cv_buggy_ether_ntohost" >&6; } 6848 if test "$ac_cv_buggy_ether_ntohost" = "no"; then 6849 6850printf "%s\n" "#define USE_ETHER_NTOHOST 1" >>confdefs.h 6851 6852 fi 6853 6854fi 6855 6856done 6857if test "$ac_cv_func_ether_ntohost" = yes -a \ 6858 "$ac_cv_buggy_ether_ntohost" = "no"; then 6859 # 6860 # OK, we have ether_ntohost(). Is it declared in <net/ethernet.h>? 6861 # 6862 # This test fails if we don't have <net/ethernet.h> or if we do 6863 # but it doesn't declare ether_ntohost(). 6864 # 6865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 6866printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 6867if test ${ac_cv_c_undeclared_builtin_options+y} 6868then : 6869 printf %s "(cached) " >&6 6870else $as_nop 6871 ac_save_CFLAGS=$CFLAGS 6872 ac_cv_c_undeclared_builtin_options='cannot detect' 6873 for ac_arg in '' -fno-builtin; do 6874 CFLAGS="$ac_save_CFLAGS $ac_arg" 6875 # This test program should *not* compile successfully. 6876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6877/* end confdefs.h. */ 6878 6879int 6880main (void) 6881{ 6882(void) strchr; 6883 ; 6884 return 0; 6885} 6886_ACEOF 6887if ac_fn_c_try_compile "$LINENO" 6888then : 6889 6890else $as_nop 6891 # This test program should compile successfully. 6892 # No library function is consistently available on 6893 # freestanding implementations, so test against a dummy 6894 # declaration. Include always-available headers on the 6895 # off chance that they somehow elicit warnings. 6896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6897/* end confdefs.h. */ 6898#include <float.h> 6899#include <limits.h> 6900#include <stdarg.h> 6901#include <stddef.h> 6902extern void ac_decl (int, char *); 6903 6904int 6905main (void) 6906{ 6907(void) ac_decl (0, (char *) 0); 6908 (void) ac_decl; 6909 6910 ; 6911 return 0; 6912} 6913_ACEOF 6914if ac_fn_c_try_compile "$LINENO" 6915then : 6916 if test x"$ac_arg" = x 6917then : 6918 ac_cv_c_undeclared_builtin_options='none needed' 6919else $as_nop 6920 ac_cv_c_undeclared_builtin_options=$ac_arg 6921fi 6922 break 6923fi 6924rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6925fi 6926rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6927 done 6928 CFLAGS=$ac_save_CFLAGS 6929 6930fi 6931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 6932printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 6933 case $ac_cv_c_undeclared_builtin_options in #( 6934 'cannot detect') : 6935 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6936printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 6937as_fn_error $? "cannot make $CC report undeclared builtins 6938See \`config.log' for more details" "$LINENO" 5; } ;; #( 6939 'none needed') : 6940 ac_c_undeclared_builtin_options='' ;; #( 6941 *) : 6942 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 6943esac 6944 6945ac_fn_check_decl "$LINENO" "ether_ntohost" "ac_cv_have_decl_ether_ntohost" " 6946#include <net/ethernet.h> 6947 6948" "$ac_c_undeclared_builtin_options" "CFLAGS" 6949if test "x$ac_cv_have_decl_ether_ntohost" = xyes 6950then : 6951 6952 6953printf "%s\n" "#define NET_ETHERNET_H_DECLARES_ETHER_NTOHOST /**/" >>confdefs.h 6954 6955 6956fi 6957 # 6958 # Did that succeed? 6959 # 6960 if test "$ac_cv_have_decl_ether_ntohost" != yes; then 6961 # 6962 # No, how about <netinet/ether.h>, as on Linux? 6963 # 6964 # This test fails if we don't have <netinet/ether.h> 6965 # or if we do but it doesn't declare ether_ntohost(). 6966 # 6967 # Unset ac_cv_have_decl_ether_ntohost so we don't 6968 # treat the previous failure as a cached value and 6969 # suppress the next test. 6970 # 6971 unset ac_cv_have_decl_ether_ntohost 6972 ac_fn_check_decl "$LINENO" "ether_ntohost" "ac_cv_have_decl_ether_ntohost" " 6973#include <netinet/ether.h> 6974 6975" "$ac_c_undeclared_builtin_options" "CFLAGS" 6976if test "x$ac_cv_have_decl_ether_ntohost" = xyes 6977then : 6978 6979 6980printf "%s\n" "#define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST 1" >>confdefs.h 6981 6982 6983fi 6984 fi 6985 # 6986 # Did that succeed? 6987 # 6988 if test "$ac_cv_have_decl_ether_ntohost" != yes; then 6989 # 6990 # No, how about <sys/ethernet.h>, as on Solaris 10 6991 # and later? 6992 # 6993 # This test fails if we don't have <sys/ethernet.h> 6994 # or if we do but it doesn't declare ether_ntohost(). 6995 # 6996 # Unset ac_cv_have_decl_ether_ntohost so we don't 6997 # treat the previous failure as a cached value and 6998 # suppress the next test. 6999 # 7000 unset ac_cv_have_decl_ether_ntohost 7001 ac_fn_check_decl "$LINENO" "ether_ntohost" "ac_cv_have_decl_ether_ntohost" " 7002#include <sys/ethernet.h> 7003 7004" "$ac_c_undeclared_builtin_options" "CFLAGS" 7005if test "x$ac_cv_have_decl_ether_ntohost" = xyes 7006then : 7007 7008 7009printf "%s\n" "#define SYS_ETHERNET_H_DECLARES_ETHER_NTOHOST /**/" >>confdefs.h 7010 7011 7012fi 7013 fi 7014 # 7015 # Did that succeed? 7016 # 7017 if test "$ac_cv_have_decl_ether_ntohost" != yes; then 7018 # 7019 # No, how about <arpa/inet.h>, as in AIX? 7020 # 7021 # This test fails if we don't have <arpa/inet.h> 7022 # (if we have ether_ntohost(), we should have 7023 # networking, and if we have networking, we should 7024 # have <arpa/inet.h>) or if we do but it doesn't 7025 # declare ether_ntohost(). 7026 # 7027 # Unset ac_cv_have_decl_ether_ntohost so we don't 7028 # treat the previous failure as a cached value and 7029 # suppress the next test. 7030 # 7031 unset ac_cv_have_decl_ether_ntohost 7032 ac_fn_check_decl "$LINENO" "ether_ntohost" "ac_cv_have_decl_ether_ntohost" " 7033#include <arpa/inet.h> 7034 7035" "$ac_c_undeclared_builtin_options" "CFLAGS" 7036if test "x$ac_cv_have_decl_ether_ntohost" = xyes 7037then : 7038 7039 7040printf "%s\n" "#define ARPA_INET_H_DECLARES_ETHER_NTOHOST /**/" >>confdefs.h 7041 7042 7043fi 7044 fi 7045 # 7046 # Did that succeed? 7047 # 7048 if test "$ac_cv_have_decl_ether_ntohost" != yes; then 7049 # 7050 # No, how about <netinet/if_ether.h>? 7051 # On some platforms, it requires <net/if.h> and 7052 # <netinet/in.h>, and we always include it with 7053 # both of them, so test it with both of them. 7054 # 7055 # This test fails if we don't have <netinet/if_ether.h> 7056 # and the headers we include before it, or if we do but 7057 # <netinet/if_ether.h> doesn't declare ether_hostton(). 7058 # 7059 # Unset ac_cv_have_decl_ether_ntohost so we don't 7060 # treat the previous failure as a cached value and 7061 # suppress the next test. 7062 # 7063 unset ac_cv_have_decl_ether_ntohost 7064 ac_fn_check_decl "$LINENO" "ether_ntohost" "ac_cv_have_decl_ether_ntohost" " 7065#include <sys/types.h> 7066#include <sys/socket.h> 7067#include <net/if.h> 7068#include <netinet/in.h> 7069#include <netinet/if_ether.h> 7070 7071" "$ac_c_undeclared_builtin_options" "CFLAGS" 7072if test "x$ac_cv_have_decl_ether_ntohost" = xyes 7073then : 7074 7075 7076printf "%s\n" "#define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST /**/" >>confdefs.h 7077 7078 7079fi 7080 fi 7081 # 7082 # After all that, is ether_ntohost() declared? 7083 # 7084 if test "$ac_cv_have_decl_ether_ntohost" = yes; then 7085 # 7086 # Yes. 7087 # 7088 7089printf "%s\n" "#define HAVE_DECL_ETHER_NTOHOST 1" >>confdefs.h 7090 7091 else 7092 # 7093 # No, we'll have to declare it ourselves. 7094 # Do we have "struct ether_addr" if we include 7095 # <netinet/if_ether.h>? 7096 # 7097 ac_fn_c_check_type "$LINENO" "struct ether_addr" "ac_cv_type_struct_ether_addr" " 7098 #include <sys/types.h> 7099 #include <sys/socket.h> 7100 #include <net/if.h> 7101 #include <netinet/in.h> 7102 #include <netinet/if_ether.h> 7103 7104" 7105if test "x$ac_cv_type_struct_ether_addr" = xyes 7106then : 7107 7108printf "%s\n" "#define HAVE_STRUCT_ETHER_ADDR 1" >>confdefs.h 7109 7110 7111fi 7112 7113 fi 7114fi 7115 7116ac_fn_c_check_func "$LINENO" "pcap_list_datalinks" "ac_cv_func_pcap_list_datalinks" 7117if test "x$ac_cv_func_pcap_list_datalinks" = xyes 7118then : 7119 7120 7121printf "%s\n" "#define HAVE_PCAP_LIST_DATALINKS 1" >>confdefs.h 7122 7123 ac_fn_c_check_func "$LINENO" "pcap_free_datalinks" "ac_cv_func_pcap_free_datalinks" 7124if test "x$ac_cv_func_pcap_free_datalinks" = xyes 7125then : 7126 printf "%s\n" "#define HAVE_PCAP_FREE_DATALINKS 1" >>confdefs.h 7127 7128fi 7129 7130 7131else $as_nop 7132 7133 case " $LIBOBJS " in 7134 *" datalinks.$ac_objext "* ) ;; 7135 *) LIBOBJS="$LIBOBJS datalinks.$ac_objext" 7136 ;; 7137esac 7138 7139 7140fi 7141 7142 7143ac_fn_c_check_func "$LINENO" "pcap_datalink_name_to_val" "ac_cv_func_pcap_datalink_name_to_val" 7144if test "x$ac_cv_func_pcap_datalink_name_to_val" = xyes 7145then : 7146 7147 7148printf "%s\n" "#define HAVE_PCAP_DATALINK_NAME_TO_VAL 1" >>confdefs.h 7149 7150 ac_fn_c_check_func "$LINENO" "pcap_datalink_val_to_description" "ac_cv_func_pcap_datalink_val_to_description" 7151if test "x$ac_cv_func_pcap_datalink_val_to_description" = xyes 7152then : 7153 7154printf "%s\n" "#define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1" >>confdefs.h 7155 7156else $as_nop 7157 7158 case " $LIBOBJS " in 7159 *" dlnames.$ac_objext "* ) ;; 7160 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext" 7161 ;; 7162esac 7163 7164 7165fi 7166 7167 7168else $as_nop 7169 7170 case " $LIBOBJS " in 7171 *" dlnames.$ac_objext "* ) ;; 7172 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext" 7173 ;; 7174esac 7175 7176 7177fi 7178 7179 7180ac_fn_c_check_func "$LINENO" "pcap_set_datalink" "ac_cv_func_pcap_set_datalink" 7181if test "x$ac_cv_func_pcap_set_datalink" = xyes 7182then : 7183 printf "%s\n" "#define HAVE_PCAP_SET_DATALINK 1" >>confdefs.h 7184 7185fi 7186 7187 7188ac_fn_c_check_func "$LINENO" "pcap_breakloop" "ac_cv_func_pcap_breakloop" 7189if test "x$ac_cv_func_pcap_breakloop" = xyes 7190then : 7191 printf "%s\n" "#define HAVE_PCAP_BREAKLOOP 1" >>confdefs.h 7192 7193fi 7194 7195 7196# 7197# Do we have the new open API? Check for pcap_create, and assume that, 7198# if we do, we also have pcap_activate() and the other new routines 7199# introduced in libpcap 1.0.0. 7200# 7201ac_fn_c_check_func "$LINENO" "pcap_create" "ac_cv_func_pcap_create" 7202if test "x$ac_cv_func_pcap_create" = xyes 7203then : 7204 printf "%s\n" "#define HAVE_PCAP_CREATE 1" >>confdefs.h 7205 7206fi 7207 7208if test $ac_cv_func_pcap_create = "yes" ; then 7209 # 7210 # OK, do we have pcap_set_tstamp_type? If so, assume we have 7211 # pcap_list_tstamp_types and pcap_free_tstamp_types as well. 7212 # 7213 ac_fn_c_check_func "$LINENO" "pcap_set_tstamp_type" "ac_cv_func_pcap_set_tstamp_type" 7214if test "x$ac_cv_func_pcap_set_tstamp_type" = xyes 7215then : 7216 printf "%s\n" "#define HAVE_PCAP_SET_TSTAMP_TYPE 1" >>confdefs.h 7217 7218fi 7219 7220 # 7221 # And do we have pcap_set_tstamp_precision? If so, we assume 7222 # we also have pcap_open_offline_with_tstamp_precision. 7223 # 7224 ac_fn_c_check_func "$LINENO" "pcap_set_tstamp_precision" "ac_cv_func_pcap_set_tstamp_precision" 7225if test "x$ac_cv_func_pcap_set_tstamp_precision" = xyes 7226then : 7227 printf "%s\n" "#define HAVE_PCAP_SET_TSTAMP_PRECISION 1" >>confdefs.h 7228 7229fi 7230 7231fi 7232 7233# 7234# Check for a miscellaneous collection of functions which we use 7235# if we have them. 7236# 7237ac_fn_c_check_func "$LINENO" "pcap_findalldevs" "ac_cv_func_pcap_findalldevs" 7238if test "x$ac_cv_func_pcap_findalldevs" = xyes 7239then : 7240 printf "%s\n" "#define HAVE_PCAP_FINDALLDEVS 1" >>confdefs.h 7241 7242fi 7243 7244ac_fn_c_check_func "$LINENO" "pcap_dump_flush" "ac_cv_func_pcap_dump_flush" 7245if test "x$ac_cv_func_pcap_dump_flush" = xyes 7246then : 7247 printf "%s\n" "#define HAVE_PCAP_DUMP_FLUSH 1" >>confdefs.h 7248 7249fi 7250ac_fn_c_check_func "$LINENO" "pcap_lib_version" "ac_cv_func_pcap_lib_version" 7251if test "x$ac_cv_func_pcap_lib_version" = xyes 7252then : 7253 printf "%s\n" "#define HAVE_PCAP_LIB_VERSION 1" >>confdefs.h 7254 7255fi 7256 7257if test $ac_cv_func_pcap_lib_version = "no" ; then 7258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pcap_version is defined by libpcap" >&5 7259printf %s "checking whether pcap_version is defined by libpcap... " >&6; } 7260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7261/* end confdefs.h. */ 7262 7263int 7264main (void) 7265{ 7266 7267 extern char pcap_version[]; 7268 7269 return (int)pcap_version; 7270 7271 ; 7272 return 0; 7273} 7274 7275_ACEOF 7276if ac_fn_c_try_link "$LINENO" 7277then : 7278 ac_lbl_cv_pcap_version_defined=yes 7279else $as_nop 7280 ac_lbl_cv_pcap_version_defined=no 7281fi 7282rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7283 conftest$ac_exeext conftest.$ac_ext 7284 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then 7285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7286printf "%s\n" "yes" >&6; } 7287 7288printf "%s\n" "#define HAVE_PCAP_VERSION 1" >>confdefs.h 7289 7290 else 7291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7292printf "%s\n" "no" >&6; } 7293 fi 7294fi 7295ac_fn_c_check_func "$LINENO" "pcap_setdirection" "ac_cv_func_pcap_setdirection" 7296if test "x$ac_cv_func_pcap_setdirection" = xyes 7297then : 7298 printf "%s\n" "#define HAVE_PCAP_SETDIRECTION 1" >>confdefs.h 7299 7300fi 7301ac_fn_c_check_func "$LINENO" "pcap_set_immediate_mode" "ac_cv_func_pcap_set_immediate_mode" 7302if test "x$ac_cv_func_pcap_set_immediate_mode" = xyes 7303then : 7304 printf "%s\n" "#define HAVE_PCAP_SET_IMMEDIATE_MODE 1" >>confdefs.h 7305 7306fi 7307ac_fn_c_check_func "$LINENO" "pcap_dump_ftell64" "ac_cv_func_pcap_dump_ftell64" 7308if test "x$ac_cv_func_pcap_dump_ftell64" = xyes 7309then : 7310 printf "%s\n" "#define HAVE_PCAP_DUMP_FTELL64 1" >>confdefs.h 7311 7312fi 7313 7314# 7315# See the comment in AC_LBL_LIBPCAP in aclocal.m4 for the reason 7316# why we don't check for remote-capture APIs if we're building 7317# with the system libpcap on macOS. 7318# 7319if test "$_dont_check_for_remote_apis" != "yes"; then 7320 ac_fn_c_check_func "$LINENO" "pcap_open" "ac_cv_func_pcap_open" 7321if test "x$ac_cv_func_pcap_open" = xyes 7322then : 7323 printf "%s\n" "#define HAVE_PCAP_OPEN 1" >>confdefs.h 7324 7325fi 7326ac_fn_c_check_func "$LINENO" "pcap_findalldevs_ex" "ac_cv_func_pcap_findalldevs_ex" 7327if test "x$ac_cv_func_pcap_findalldevs_ex" = xyes 7328then : 7329 printf "%s\n" "#define HAVE_PCAP_FINDALLDEVS_EX 1" >>confdefs.h 7330 7331fi 7332 7333fi 7334ac_fn_c_check_func "$LINENO" "pcap_dump_ftell" "ac_cv_func_pcap_dump_ftell" 7335if test "x$ac_cv_func_pcap_dump_ftell" = xyes 7336then : 7337 printf "%s\n" "#define HAVE_PCAP_DUMP_FTELL 1" >>confdefs.h 7338 7339else $as_nop 7340 case " $LIBOBJS " in 7341 *" pcap_dump_ftell.$ac_objext "* ) ;; 7342 *) LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext" 7343 ;; 7344esac 7345 7346fi 7347 7348 7349# 7350# Check for special debugging functions 7351# 7352ac_fn_c_check_func "$LINENO" "pcap_set_parser_debug" "ac_cv_func_pcap_set_parser_debug" 7353if test "x$ac_cv_func_pcap_set_parser_debug" = xyes 7354then : 7355 printf "%s\n" "#define HAVE_PCAP_SET_PARSER_DEBUG 1" >>confdefs.h 7356 7357fi 7358 7359if test "$ac_cv_func_pcap_set_parser_debug" = "no" ; then 7360 # 7361 # OK, we don't have pcap_set_parser_debug() to set the libpcap 7362 # filter expression parser debug flag; can we directly set the 7363 # flag? 7364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pcap_debug is defined by libpcap" >&5 7365printf %s "checking whether pcap_debug is defined by libpcap... " >&6; } 7366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7367/* end confdefs.h. */ 7368 7369int 7370main (void) 7371{ 7372 7373 extern int pcap_debug; 7374 7375 return pcap_debug; 7376 7377 ; 7378 return 0; 7379} 7380 7381_ACEOF 7382if ac_fn_c_try_link "$LINENO" 7383then : 7384 ac_lbl_cv_pcap_debug_defined=yes 7385else $as_nop 7386 ac_lbl_cv_pcap_debug_defined=no 7387fi 7388rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7389 conftest$ac_exeext conftest.$ac_ext 7390 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then 7391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7392printf "%s\n" "yes" >&6; } 7393 7394printf "%s\n" "#define HAVE_PCAP_DEBUG 1" >>confdefs.h 7395 7396 else 7397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7398printf "%s\n" "no" >&6; } 7399 # 7400 # OK, what about "yydebug"? 7401 # 7402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether yydebug is defined by libpcap" >&5 7403printf %s "checking whether yydebug is defined by libpcap... " >&6; } 7404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7405/* end confdefs.h. */ 7406 7407int 7408main (void) 7409{ 7410 7411 extern int yydebug; 7412 7413 return yydebug; 7414 7415 ; 7416 return 0; 7417} 7418 7419_ACEOF 7420if ac_fn_c_try_link "$LINENO" 7421then : 7422 ac_lbl_cv_yydebug_defined=yes 7423else $as_nop 7424 ac_lbl_cv_yydebug_defined=no 7425fi 7426rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7427 conftest$ac_exeext conftest.$ac_ext 7428 if test "$ac_lbl_cv_yydebug_defined" = yes ; then 7429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7430printf "%s\n" "yes" >&6; } 7431 7432printf "%s\n" "#define HAVE_YYDEBUG 1" >>confdefs.h 7433 7434 else 7435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7436printf "%s\n" "no" >&6; } 7437 fi 7438 fi 7439fi 7440ac_fn_c_check_func "$LINENO" "pcap_set_optimizer_debug" "ac_cv_func_pcap_set_optimizer_debug" 7441if test "x$ac_cv_func_pcap_set_optimizer_debug" = xyes 7442then : 7443 printf "%s\n" "#define HAVE_PCAP_SET_OPTIMIZER_DEBUG 1" >>confdefs.h 7444 7445fi 7446 7447ac_fn_c_check_func "$LINENO" "bpf_dump" "ac_cv_func_bpf_dump" 7448if test "x$ac_cv_func_bpf_dump" = xyes 7449then : 7450 printf "%s\n" "#define HAVE_BPF_DUMP 1" >>confdefs.h 7451 7452else $as_nop 7453 case " $LIBOBJS " in 7454 *" bpf_dump.$ac_objext "* ) ;; 7455 *) LIBOBJS="$LIBOBJS bpf_dump.$ac_objext" 7456 ;; 7457esac 7458 7459fi 7460 7461# 7462# Assume V7/BSD convention for man pages (file formats in section 5, 7463# miscellaneous info in section 7). 7464# 7465MAN_FILE_FORMATS=5 7466MAN_MISC_INFO=7 7467case "$host_os" in 7468 7469aix*) 7470 7471printf "%s\n" "#define _SUN 1" >>confdefs.h 7472 7473 ;; 7474 7475hpux*) 7476 # 7477 # Use System V conventions for man pages. 7478 # 7479 MAN_FILE_FORMATS=4 7480 MAN_MISC_INFO=5 7481 ;; 7482 7483irix*) 7484 V_GROUP=sys 7485 7486 # 7487 # Use System V conventions for man pages. 7488 # 7489 MAN_FILE_FORMATS=4 7490 MAN_MISC_INFO=5 7491 ;; 7492 7493osf*) 7494 V_GROUP=system 7495 7496 # 7497 # Use System V conventions for man pages. 7498 # 7499 MAN_FILE_FORMATS=4 7500 MAN_MISC_INFO=5 7501 ;; 7502 7503solaris*) 7504 # 7505 # Use System V conventions for man pages. 7506 # 7507 MAN_FILE_FORMATS=4 7508 MAN_MISC_INFO=5 7509 ;; 7510esac 7511 7512# 7513# Make sure we have a definition for C99's uintptr_t (regardless of 7514# whether the environment is a C99 environment or not). 7515# 7516 7517 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 7518if test "x$ac_cv_type_uintptr_t" = xyes 7519then : 7520 7521printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h 7522 7523else $as_nop 7524 for ac_type in 'unsigned int' 'unsigned long int' \ 7525 'unsigned long long int'; do 7526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7527/* end confdefs.h. */ 7528$ac_includes_default 7529int 7530main (void) 7531{ 7532static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 7533test_array [0] = 0; 7534return test_array [0]; 7535 7536 ; 7537 return 0; 7538} 7539_ACEOF 7540if ac_fn_c_try_compile "$LINENO" 7541then : 7542 7543printf "%s\n" "#define uintptr_t $ac_type" >>confdefs.h 7544 7545 ac_type= 7546fi 7547rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7548 test -z "$ac_type" && break 7549 done 7550fi 7551 7552 7553 7554savedcppflags="$CPPFLAGS" 7555CPPFLAGS="$CPPFLAGS $V_INCLS" 7556 7557# 7558# Check whether we have pcap/pcap-inttypes.h. 7559# If we do, we use that to get the C99 types defined. 7560# 7561ac_fn_c_check_header_compile "$LINENO" "pcap/pcap-inttypes.h" "ac_cv_header_pcap_pcap_inttypes_h" "$ac_includes_default" 7562if test "x$ac_cv_header_pcap_pcap_inttypes_h" = xyes 7563then : 7564 printf "%s\n" "#define HAVE_PCAP_PCAP_INTTYPES_H 1" >>confdefs.h 7565 7566fi 7567 7568 7569# 7570# At compile time HAVE_PCAP_FINDALLDEVS depends on HAVE_PCAP_IF_T. 7571# 7572ac_fn_c_check_type "$LINENO" "pcap_if_t" "ac_cv_type_pcap_if_t" "#include <pcap.h> 7573" 7574if test "x$ac_cv_type_pcap_if_t" = xyes 7575then : 7576 7577printf "%s\n" "#define HAVE_PCAP_IF_T 1" >>confdefs.h 7578 7579 7580fi 7581 7582 7583CPPFLAGS="$savedcppflags" 7584 7585# 7586# Define the old BSD specified-width types in terms of the C99 types; 7587# we may need them with libpcap include files. 7588# 7589ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default 7590#include <sys/types.h> 7591 7592" 7593if test "x$ac_cv_type_u_int8_t" = xyes 7594then : 7595 7596else $as_nop 7597 7598printf "%s\n" "#define u_int8_t uint8_t" >>confdefs.h 7599 7600fi 7601 7602ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default 7603#include <sys/types.h> 7604 7605" 7606if test "x$ac_cv_type_u_int16_t" = xyes 7607then : 7608 7609else $as_nop 7610 7611printf "%s\n" "#define u_int16_t uint16_t" >>confdefs.h 7612 7613fi 7614 7615ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default 7616#include <sys/types.h> 7617 7618" 7619if test "x$ac_cv_type_u_int32_t" = xyes 7620then : 7621 7622else $as_nop 7623 7624printf "%s\n" "#define u_int32_t uint32_t" >>confdefs.h 7625 7626fi 7627 7628ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default 7629#include <sys/types.h> 7630 7631" 7632if test "x$ac_cv_type_u_int64_t" = xyes 7633then : 7634 7635else $as_nop 7636 7637printf "%s\n" "#define u_int64_t uint64_t" >>confdefs.h 7638 7639fi 7640 7641 7642if test -n "$ac_tool_prefix"; then 7643 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7644set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7646printf %s "checking for $ac_word... " >&6; } 7647if test ${ac_cv_prog_RANLIB+y} 7648then : 7649 printf %s "(cached) " >&6 7650else $as_nop 7651 if test -n "$RANLIB"; then 7652 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7653else 7654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7655for as_dir in $PATH 7656do 7657 IFS=$as_save_IFS 7658 case $as_dir in #((( 7659 '') as_dir=./ ;; 7660 */) ;; 7661 *) as_dir=$as_dir/ ;; 7662 esac 7663 for ac_exec_ext in '' $ac_executable_extensions; do 7664 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7665 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7666 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7667 break 2 7668 fi 7669done 7670 done 7671IFS=$as_save_IFS 7672 7673fi 7674fi 7675RANLIB=$ac_cv_prog_RANLIB 7676if test -n "$RANLIB"; then 7677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7678printf "%s\n" "$RANLIB" >&6; } 7679else 7680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7681printf "%s\n" "no" >&6; } 7682fi 7683 7684 7685fi 7686if test -z "$ac_cv_prog_RANLIB"; then 7687 ac_ct_RANLIB=$RANLIB 7688 # Extract the first word of "ranlib", so it can be a program name with args. 7689set dummy ranlib; ac_word=$2 7690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7691printf %s "checking for $ac_word... " >&6; } 7692if test ${ac_cv_prog_ac_ct_RANLIB+y} 7693then : 7694 printf %s "(cached) " >&6 7695else $as_nop 7696 if test -n "$ac_ct_RANLIB"; then 7697 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7698else 7699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7700for as_dir in $PATH 7701do 7702 IFS=$as_save_IFS 7703 case $as_dir in #((( 7704 '') as_dir=./ ;; 7705 */) ;; 7706 *) as_dir=$as_dir/ ;; 7707 esac 7708 for ac_exec_ext in '' $ac_executable_extensions; do 7709 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7710 ac_cv_prog_ac_ct_RANLIB="ranlib" 7711 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7712 break 2 7713 fi 7714done 7715 done 7716IFS=$as_save_IFS 7717 7718fi 7719fi 7720ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7721if test -n "$ac_ct_RANLIB"; then 7722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7723printf "%s\n" "$ac_ct_RANLIB" >&6; } 7724else 7725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7726printf "%s\n" "no" >&6; } 7727fi 7728 7729 if test "x$ac_ct_RANLIB" = x; then 7730 RANLIB=":" 7731 else 7732 case $cross_compiling:$ac_tool_warned in 7733yes:) 7734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7735printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7736ac_tool_warned=yes ;; 7737esac 7738 RANLIB=$ac_ct_RANLIB 7739 fi 7740else 7741 RANLIB="$ac_cv_prog_RANLIB" 7742fi 7743 7744if test -n "$ac_tool_prefix"; then 7745 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7746set dummy ${ac_tool_prefix}ar; ac_word=$2 7747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7748printf %s "checking for $ac_word... " >&6; } 7749if test ${ac_cv_prog_AR+y} 7750then : 7751 printf %s "(cached) " >&6 7752else $as_nop 7753 if test -n "$AR"; then 7754 ac_cv_prog_AR="$AR" # Let the user override the test. 7755else 7756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7757for as_dir in $PATH 7758do 7759 IFS=$as_save_IFS 7760 case $as_dir in #((( 7761 '') as_dir=./ ;; 7762 */) ;; 7763 *) as_dir=$as_dir/ ;; 7764 esac 7765 for ac_exec_ext in '' $ac_executable_extensions; do 7766 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7767 ac_cv_prog_AR="${ac_tool_prefix}ar" 7768 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7769 break 2 7770 fi 7771done 7772 done 7773IFS=$as_save_IFS 7774 7775fi 7776fi 7777AR=$ac_cv_prog_AR 7778if test -n "$AR"; then 7779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7780printf "%s\n" "$AR" >&6; } 7781else 7782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7783printf "%s\n" "no" >&6; } 7784fi 7785 7786 7787fi 7788if test -z "$ac_cv_prog_AR"; then 7789 ac_ct_AR=$AR 7790 # Extract the first word of "ar", so it can be a program name with args. 7791set dummy ar; ac_word=$2 7792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7793printf %s "checking for $ac_word... " >&6; } 7794if test ${ac_cv_prog_ac_ct_AR+y} 7795then : 7796 printf %s "(cached) " >&6 7797else $as_nop 7798 if test -n "$ac_ct_AR"; then 7799 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7800else 7801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7802for as_dir in $PATH 7803do 7804 IFS=$as_save_IFS 7805 case $as_dir in #((( 7806 '') as_dir=./ ;; 7807 */) ;; 7808 *) as_dir=$as_dir/ ;; 7809 esac 7810 for ac_exec_ext in '' $ac_executable_extensions; do 7811 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7812 ac_cv_prog_ac_ct_AR="ar" 7813 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7814 break 2 7815 fi 7816done 7817 done 7818IFS=$as_save_IFS 7819 7820fi 7821fi 7822ac_ct_AR=$ac_cv_prog_ac_ct_AR 7823if test -n "$ac_ct_AR"; then 7824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7825printf "%s\n" "$ac_ct_AR" >&6; } 7826else 7827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7828printf "%s\n" "no" >&6; } 7829fi 7830 7831 if test "x$ac_ct_AR" = x; then 7832 AR="" 7833 else 7834 case $cross_compiling:$ac_tool_warned in 7835yes:) 7836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7837printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7838ac_tool_warned=yes ;; 7839esac 7840 AR=$ac_ct_AR 7841 fi 7842else 7843 AR="$ac_cv_prog_AR" 7844fi 7845 7846 7847rm -f os-proto.h 7848 if test "${LBL_CFLAGS+set}" = set; then 7849 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}" 7850 fi 7851 if test -f .devel ; then 7852 # 7853 # Skip all the warning option stuff on some compilers. 7854 # 7855 if test "$ac_lbl_cc_dont_try_gcc_dashW" != yes; then 7856 7857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -W option" >&5 7858printf %s "checking whether the compiler supports the -W option... " >&6; } 7859 save_CFLAGS="$CFLAGS" 7860 CFLAGS="$CFLAGS -W" 7861 # 7862 # XXX - yes, this depends on the way AC_LANG_WERROR works, 7863 # but no mechanism is provided to turn AC_LANG_WERROR on 7864 # *and then turn it back off*, so that we *only* do it when 7865 # testing compiler options - 15 years after somebody asked 7866 # for it: 7867 # 7868 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 7869 # 7870 save_ac_c_werror_flag="$ac_c_werror_flag" 7871 ac_c_werror_flag=yes 7872 # 7873 # We use AC_LANG_SOURCE() so that we can control the complete 7874 # content of the program being compiled. We do not, for example, 7875 # want the default "int main()" that AC_LANG_PROGRAM() generates, 7876 # as it will generate a warning with -Wold-style-definition, meaning 7877 # that we would treat it as not working, as the test will fail if 7878 # *any* error output, including a warning due to the flag we're 7879 # testing, is generated; see 7880 # 7881 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 7882 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 7883 # 7884 # This may, as per those two messages, be fixed in autoconf 2.70, 7885 # but we only require 2.69 or newer for now. 7886 # 7887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7888/* end confdefs.h. */ 7889int main(void) { return 0; } 7890_ACEOF 7891if ac_fn_c_try_compile "$LINENO" 7892then : 7893 7894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7895printf "%s\n" "yes" >&6; } 7896 CFLAGS="$save_CFLAGS" 7897 V_CCOPT="$V_CCOPT -W" 7898 7899else $as_nop 7900 7901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7902printf "%s\n" "no" >&6; } 7903 CFLAGS="$save_CFLAGS" 7904 7905fi 7906rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7907 ac_c_werror_flag="$save_ac_c_werror_flag" 7908 7909 7910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wall option" >&5 7911printf %s "checking whether the compiler supports the -Wall option... " >&6; } 7912 save_CFLAGS="$CFLAGS" 7913 CFLAGS="$CFLAGS -Wall" 7914 # 7915 # XXX - yes, this depends on the way AC_LANG_WERROR works, 7916 # but no mechanism is provided to turn AC_LANG_WERROR on 7917 # *and then turn it back off*, so that we *only* do it when 7918 # testing compiler options - 15 years after somebody asked 7919 # for it: 7920 # 7921 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 7922 # 7923 save_ac_c_werror_flag="$ac_c_werror_flag" 7924 ac_c_werror_flag=yes 7925 # 7926 # We use AC_LANG_SOURCE() so that we can control the complete 7927 # content of the program being compiled. We do not, for example, 7928 # want the default "int main()" that AC_LANG_PROGRAM() generates, 7929 # as it will generate a warning with -Wold-style-definition, meaning 7930 # that we would treat it as not working, as the test will fail if 7931 # *any* error output, including a warning due to the flag we're 7932 # testing, is generated; see 7933 # 7934 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 7935 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 7936 # 7937 # This may, as per those two messages, be fixed in autoconf 2.70, 7938 # but we only require 2.69 or newer for now. 7939 # 7940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7941/* end confdefs.h. */ 7942int main(void) { return 0; } 7943_ACEOF 7944if ac_fn_c_try_compile "$LINENO" 7945then : 7946 7947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7948printf "%s\n" "yes" >&6; } 7949 CFLAGS="$save_CFLAGS" 7950 V_CCOPT="$V_CCOPT -Wall" 7951 7952else $as_nop 7953 7954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7955printf "%s\n" "no" >&6; } 7956 CFLAGS="$save_CFLAGS" 7957 7958fi 7959rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7960 ac_c_werror_flag="$save_ac_c_werror_flag" 7961 7962 7963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wassign-enum option" >&5 7964printf %s "checking whether the compiler supports the -Wassign-enum option... " >&6; } 7965 save_CFLAGS="$CFLAGS" 7966 CFLAGS="$CFLAGS -Wassign-enum" 7967 # 7968 # XXX - yes, this depends on the way AC_LANG_WERROR works, 7969 # but no mechanism is provided to turn AC_LANG_WERROR on 7970 # *and then turn it back off*, so that we *only* do it when 7971 # testing compiler options - 15 years after somebody asked 7972 # for it: 7973 # 7974 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 7975 # 7976 save_ac_c_werror_flag="$ac_c_werror_flag" 7977 ac_c_werror_flag=yes 7978 # 7979 # We use AC_LANG_SOURCE() so that we can control the complete 7980 # content of the program being compiled. We do not, for example, 7981 # want the default "int main()" that AC_LANG_PROGRAM() generates, 7982 # as it will generate a warning with -Wold-style-definition, meaning 7983 # that we would treat it as not working, as the test will fail if 7984 # *any* error output, including a warning due to the flag we're 7985 # testing, is generated; see 7986 # 7987 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 7988 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 7989 # 7990 # This may, as per those two messages, be fixed in autoconf 2.70, 7991 # but we only require 2.69 or newer for now. 7992 # 7993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7994/* end confdefs.h. */ 7995int main(void) { return 0; } 7996_ACEOF 7997if ac_fn_c_try_compile "$LINENO" 7998then : 7999 8000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8001printf "%s\n" "yes" >&6; } 8002 CFLAGS="$save_CFLAGS" 8003 V_CCOPT="$V_CCOPT -Wassign-enum" 8004 8005else $as_nop 8006 8007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8008printf "%s\n" "no" >&6; } 8009 CFLAGS="$save_CFLAGS" 8010 8011fi 8012rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8013 ac_c_werror_flag="$save_ac_c_werror_flag" 8014 8015 8016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wcast-qual option" >&5 8017printf %s "checking whether the compiler supports the -Wcast-qual option... " >&6; } 8018 save_CFLAGS="$CFLAGS" 8019 CFLAGS="$CFLAGS -Wcast-qual" 8020 # 8021 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8022 # but no mechanism is provided to turn AC_LANG_WERROR on 8023 # *and then turn it back off*, so that we *only* do it when 8024 # testing compiler options - 15 years after somebody asked 8025 # for it: 8026 # 8027 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8028 # 8029 save_ac_c_werror_flag="$ac_c_werror_flag" 8030 ac_c_werror_flag=yes 8031 # 8032 # We use AC_LANG_SOURCE() so that we can control the complete 8033 # content of the program being compiled. We do not, for example, 8034 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8035 # as it will generate a warning with -Wold-style-definition, meaning 8036 # that we would treat it as not working, as the test will fail if 8037 # *any* error output, including a warning due to the flag we're 8038 # testing, is generated; see 8039 # 8040 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8041 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8042 # 8043 # This may, as per those two messages, be fixed in autoconf 2.70, 8044 # but we only require 2.69 or newer for now. 8045 # 8046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8047/* end confdefs.h. */ 8048int main(void) { return 0; } 8049_ACEOF 8050if ac_fn_c_try_compile "$LINENO" 8051then : 8052 8053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8054printf "%s\n" "yes" >&6; } 8055 CFLAGS="$save_CFLAGS" 8056 V_CCOPT="$V_CCOPT -Wcast-qual" 8057 8058else $as_nop 8059 8060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8061printf "%s\n" "no" >&6; } 8062 CFLAGS="$save_CFLAGS" 8063 8064fi 8065rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8066 ac_c_werror_flag="$save_ac_c_werror_flag" 8067 8068 8069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-prototypes option" >&5 8070printf %s "checking whether the compiler supports the -Wmissing-prototypes option... " >&6; } 8071 save_CFLAGS="$CFLAGS" 8072 CFLAGS="$CFLAGS -Wmissing-prototypes" 8073 # 8074 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8075 # but no mechanism is provided to turn AC_LANG_WERROR on 8076 # *and then turn it back off*, so that we *only* do it when 8077 # testing compiler options - 15 years after somebody asked 8078 # for it: 8079 # 8080 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8081 # 8082 save_ac_c_werror_flag="$ac_c_werror_flag" 8083 ac_c_werror_flag=yes 8084 # 8085 # We use AC_LANG_SOURCE() so that we can control the complete 8086 # content of the program being compiled. We do not, for example, 8087 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8088 # as it will generate a warning with -Wold-style-definition, meaning 8089 # that we would treat it as not working, as the test will fail if 8090 # *any* error output, including a warning due to the flag we're 8091 # testing, is generated; see 8092 # 8093 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8094 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8095 # 8096 # This may, as per those two messages, be fixed in autoconf 2.70, 8097 # but we only require 2.69 or newer for now. 8098 # 8099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8100/* end confdefs.h. */ 8101int main(void) { return 0; } 8102_ACEOF 8103if ac_fn_c_try_compile "$LINENO" 8104then : 8105 8106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8107printf "%s\n" "yes" >&6; } 8108 CFLAGS="$save_CFLAGS" 8109 V_CCOPT="$V_CCOPT -Wmissing-prototypes" 8110 8111else $as_nop 8112 8113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8114printf "%s\n" "no" >&6; } 8115 CFLAGS="$save_CFLAGS" 8116 8117fi 8118rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8119 ac_c_werror_flag="$save_ac_c_werror_flag" 8120 8121 8122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-variable-declarations option" >&5 8123printf %s "checking whether the compiler supports the -Wmissing-variable-declarations option... " >&6; } 8124 save_CFLAGS="$CFLAGS" 8125 CFLAGS="$CFLAGS -Wmissing-variable-declarations" 8126 # 8127 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8128 # but no mechanism is provided to turn AC_LANG_WERROR on 8129 # *and then turn it back off*, so that we *only* do it when 8130 # testing compiler options - 15 years after somebody asked 8131 # for it: 8132 # 8133 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8134 # 8135 save_ac_c_werror_flag="$ac_c_werror_flag" 8136 ac_c_werror_flag=yes 8137 # 8138 # We use AC_LANG_SOURCE() so that we can control the complete 8139 # content of the program being compiled. We do not, for example, 8140 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8141 # as it will generate a warning with -Wold-style-definition, meaning 8142 # that we would treat it as not working, as the test will fail if 8143 # *any* error output, including a warning due to the flag we're 8144 # testing, is generated; see 8145 # 8146 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8147 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8148 # 8149 # This may, as per those two messages, be fixed in autoconf 2.70, 8150 # but we only require 2.69 or newer for now. 8151 # 8152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8153/* end confdefs.h. */ 8154int main(void) { return 0; } 8155_ACEOF 8156if ac_fn_c_try_compile "$LINENO" 8157then : 8158 8159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8160printf "%s\n" "yes" >&6; } 8161 CFLAGS="$save_CFLAGS" 8162 V_CCOPT="$V_CCOPT -Wmissing-variable-declarations" 8163 8164else $as_nop 8165 8166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8167printf "%s\n" "no" >&6; } 8168 CFLAGS="$save_CFLAGS" 8169 8170fi 8171rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8172 ac_c_werror_flag="$save_ac_c_werror_flag" 8173 8174 8175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wnull-pointer-subtraction option" >&5 8176printf %s "checking whether the compiler supports the -Wnull-pointer-subtraction option... " >&6; } 8177 save_CFLAGS="$CFLAGS" 8178 CFLAGS="$CFLAGS -Wnull-pointer-subtraction" 8179 # 8180 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8181 # but no mechanism is provided to turn AC_LANG_WERROR on 8182 # *and then turn it back off*, so that we *only* do it when 8183 # testing compiler options - 15 years after somebody asked 8184 # for it: 8185 # 8186 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8187 # 8188 save_ac_c_werror_flag="$ac_c_werror_flag" 8189 ac_c_werror_flag=yes 8190 # 8191 # We use AC_LANG_SOURCE() so that we can control the complete 8192 # content of the program being compiled. We do not, for example, 8193 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8194 # as it will generate a warning with -Wold-style-definition, meaning 8195 # that we would treat it as not working, as the test will fail if 8196 # *any* error output, including a warning due to the flag we're 8197 # testing, is generated; see 8198 # 8199 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8200 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8201 # 8202 # This may, as per those two messages, be fixed in autoconf 2.70, 8203 # but we only require 2.69 or newer for now. 8204 # 8205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8206/* end confdefs.h. */ 8207int main(void) { return 0; } 8208_ACEOF 8209if ac_fn_c_try_compile "$LINENO" 8210then : 8211 8212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8213printf "%s\n" "yes" >&6; } 8214 CFLAGS="$save_CFLAGS" 8215 V_CCOPT="$V_CCOPT -Wnull-pointer-subtraction" 8216 8217else $as_nop 8218 8219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8220printf "%s\n" "no" >&6; } 8221 CFLAGS="$save_CFLAGS" 8222 8223fi 8224rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8225 ac_c_werror_flag="$save_ac_c_werror_flag" 8226 8227 8228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wold-style-definition option" >&5 8229printf %s "checking whether the compiler supports the -Wold-style-definition option... " >&6; } 8230 save_CFLAGS="$CFLAGS" 8231 CFLAGS="$CFLAGS -Wold-style-definition" 8232 # 8233 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8234 # but no mechanism is provided to turn AC_LANG_WERROR on 8235 # *and then turn it back off*, so that we *only* do it when 8236 # testing compiler options - 15 years after somebody asked 8237 # for it: 8238 # 8239 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8240 # 8241 save_ac_c_werror_flag="$ac_c_werror_flag" 8242 ac_c_werror_flag=yes 8243 # 8244 # We use AC_LANG_SOURCE() so that we can control the complete 8245 # content of the program being compiled. We do not, for example, 8246 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8247 # as it will generate a warning with -Wold-style-definition, meaning 8248 # that we would treat it as not working, as the test will fail if 8249 # *any* error output, including a warning due to the flag we're 8250 # testing, is generated; see 8251 # 8252 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8253 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8254 # 8255 # This may, as per those two messages, be fixed in autoconf 2.70, 8256 # but we only require 2.69 or newer for now. 8257 # 8258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8259/* end confdefs.h. */ 8260int main(void) { return 0; } 8261_ACEOF 8262if ac_fn_c_try_compile "$LINENO" 8263then : 8264 8265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8266printf "%s\n" "yes" >&6; } 8267 CFLAGS="$save_CFLAGS" 8268 V_CCOPT="$V_CCOPT -Wold-style-definition" 8269 8270else $as_nop 8271 8272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8273printf "%s\n" "no" >&6; } 8274 CFLAGS="$save_CFLAGS" 8275 8276fi 8277rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8278 ac_c_werror_flag="$save_ac_c_werror_flag" 8279 8280 8281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wpedantic option" >&5 8282printf %s "checking whether the compiler supports the -Wpedantic option... " >&6; } 8283 save_CFLAGS="$CFLAGS" 8284 CFLAGS="$CFLAGS -Wpedantic" 8285 # 8286 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8287 # but no mechanism is provided to turn AC_LANG_WERROR on 8288 # *and then turn it back off*, so that we *only* do it when 8289 # testing compiler options - 15 years after somebody asked 8290 # for it: 8291 # 8292 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8293 # 8294 save_ac_c_werror_flag="$ac_c_werror_flag" 8295 ac_c_werror_flag=yes 8296 # 8297 # We use AC_LANG_SOURCE() so that we can control the complete 8298 # content of the program being compiled. We do not, for example, 8299 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8300 # as it will generate a warning with -Wold-style-definition, meaning 8301 # that we would treat it as not working, as the test will fail if 8302 # *any* error output, including a warning due to the flag we're 8303 # testing, is generated; see 8304 # 8305 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8306 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8307 # 8308 # This may, as per those two messages, be fixed in autoconf 2.70, 8309 # but we only require 2.69 or newer for now. 8310 # 8311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8312/* end confdefs.h. */ 8313int main(void) { return 0; } 8314_ACEOF 8315if ac_fn_c_try_compile "$LINENO" 8316then : 8317 8318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8319printf "%s\n" "yes" >&6; } 8320 CFLAGS="$save_CFLAGS" 8321 V_CCOPT="$V_CCOPT -Wpedantic" 8322 8323else $as_nop 8324 8325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8326printf "%s\n" "no" >&6; } 8327 CFLAGS="$save_CFLAGS" 8328 8329fi 8330rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8331 ac_c_werror_flag="$save_ac_c_werror_flag" 8332 8333 8334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wpointer-arith option" >&5 8335printf %s "checking whether the compiler supports the -Wpointer-arith option... " >&6; } 8336 save_CFLAGS="$CFLAGS" 8337 CFLAGS="$CFLAGS -Wpointer-arith" 8338 # 8339 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8340 # but no mechanism is provided to turn AC_LANG_WERROR on 8341 # *and then turn it back off*, so that we *only* do it when 8342 # testing compiler options - 15 years after somebody asked 8343 # for it: 8344 # 8345 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8346 # 8347 save_ac_c_werror_flag="$ac_c_werror_flag" 8348 ac_c_werror_flag=yes 8349 # 8350 # We use AC_LANG_SOURCE() so that we can control the complete 8351 # content of the program being compiled. We do not, for example, 8352 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8353 # as it will generate a warning with -Wold-style-definition, meaning 8354 # that we would treat it as not working, as the test will fail if 8355 # *any* error output, including a warning due to the flag we're 8356 # testing, is generated; see 8357 # 8358 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8359 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8360 # 8361 # This may, as per those two messages, be fixed in autoconf 2.70, 8362 # but we only require 2.69 or newer for now. 8363 # 8364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8365/* end confdefs.h. */ 8366int main(void) { return 0; } 8367_ACEOF 8368if ac_fn_c_try_compile "$LINENO" 8369then : 8370 8371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8372printf "%s\n" "yes" >&6; } 8373 CFLAGS="$save_CFLAGS" 8374 V_CCOPT="$V_CCOPT -Wpointer-arith" 8375 8376else $as_nop 8377 8378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8379printf "%s\n" "no" >&6; } 8380 CFLAGS="$save_CFLAGS" 8381 8382fi 8383rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8384 ac_c_werror_flag="$save_ac_c_werror_flag" 8385 8386 8387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wpointer-sign option" >&5 8388printf %s "checking whether the compiler supports the -Wpointer-sign option... " >&6; } 8389 save_CFLAGS="$CFLAGS" 8390 CFLAGS="$CFLAGS -Wpointer-sign" 8391 # 8392 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8393 # but no mechanism is provided to turn AC_LANG_WERROR on 8394 # *and then turn it back off*, so that we *only* do it when 8395 # testing compiler options - 15 years after somebody asked 8396 # for it: 8397 # 8398 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8399 # 8400 save_ac_c_werror_flag="$ac_c_werror_flag" 8401 ac_c_werror_flag=yes 8402 # 8403 # We use AC_LANG_SOURCE() so that we can control the complete 8404 # content of the program being compiled. We do not, for example, 8405 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8406 # as it will generate a warning with -Wold-style-definition, meaning 8407 # that we would treat it as not working, as the test will fail if 8408 # *any* error output, including a warning due to the flag we're 8409 # testing, is generated; see 8410 # 8411 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8412 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8413 # 8414 # This may, as per those two messages, be fixed in autoconf 2.70, 8415 # but we only require 2.69 or newer for now. 8416 # 8417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8418/* end confdefs.h. */ 8419int main(void) { return 0; } 8420_ACEOF 8421if ac_fn_c_try_compile "$LINENO" 8422then : 8423 8424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8425printf "%s\n" "yes" >&6; } 8426 CFLAGS="$save_CFLAGS" 8427 V_CCOPT="$V_CCOPT -Wpointer-sign" 8428 8429else $as_nop 8430 8431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8432printf "%s\n" "no" >&6; } 8433 CFLAGS="$save_CFLAGS" 8434 8435fi 8436rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8437 ac_c_werror_flag="$save_ac_c_werror_flag" 8438 8439 8440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wshadow option" >&5 8441printf %s "checking whether the compiler supports the -Wshadow option... " >&6; } 8442 save_CFLAGS="$CFLAGS" 8443 CFLAGS="$CFLAGS -Wshadow" 8444 # 8445 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8446 # but no mechanism is provided to turn AC_LANG_WERROR on 8447 # *and then turn it back off*, so that we *only* do it when 8448 # testing compiler options - 15 years after somebody asked 8449 # for it: 8450 # 8451 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8452 # 8453 save_ac_c_werror_flag="$ac_c_werror_flag" 8454 ac_c_werror_flag=yes 8455 # 8456 # We use AC_LANG_SOURCE() so that we can control the complete 8457 # content of the program being compiled. We do not, for example, 8458 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8459 # as it will generate a warning with -Wold-style-definition, meaning 8460 # that we would treat it as not working, as the test will fail if 8461 # *any* error output, including a warning due to the flag we're 8462 # testing, is generated; see 8463 # 8464 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8465 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8466 # 8467 # This may, as per those two messages, be fixed in autoconf 2.70, 8468 # but we only require 2.69 or newer for now. 8469 # 8470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8471/* end confdefs.h. */ 8472int main(void) { return 0; } 8473_ACEOF 8474if ac_fn_c_try_compile "$LINENO" 8475then : 8476 8477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8478printf "%s\n" "yes" >&6; } 8479 CFLAGS="$save_CFLAGS" 8480 V_CCOPT="$V_CCOPT -Wshadow" 8481 8482else $as_nop 8483 8484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8485printf "%s\n" "no" >&6; } 8486 CFLAGS="$save_CFLAGS" 8487 8488fi 8489rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8490 ac_c_werror_flag="$save_ac_c_werror_flag" 8491 8492 8493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wsign-compare option" >&5 8494printf %s "checking whether the compiler supports the -Wsign-compare option... " >&6; } 8495 save_CFLAGS="$CFLAGS" 8496 CFLAGS="$CFLAGS -Wsign-compare" 8497 # 8498 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8499 # but no mechanism is provided to turn AC_LANG_WERROR on 8500 # *and then turn it back off*, so that we *only* do it when 8501 # testing compiler options - 15 years after somebody asked 8502 # for it: 8503 # 8504 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8505 # 8506 save_ac_c_werror_flag="$ac_c_werror_flag" 8507 ac_c_werror_flag=yes 8508 # 8509 # We use AC_LANG_SOURCE() so that we can control the complete 8510 # content of the program being compiled. We do not, for example, 8511 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8512 # as it will generate a warning with -Wold-style-definition, meaning 8513 # that we would treat it as not working, as the test will fail if 8514 # *any* error output, including a warning due to the flag we're 8515 # testing, is generated; see 8516 # 8517 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8518 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8519 # 8520 # This may, as per those two messages, be fixed in autoconf 2.70, 8521 # but we only require 2.69 or newer for now. 8522 # 8523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8524/* end confdefs.h. */ 8525int main(void) { return 0; } 8526_ACEOF 8527if ac_fn_c_try_compile "$LINENO" 8528then : 8529 8530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8531printf "%s\n" "yes" >&6; } 8532 CFLAGS="$save_CFLAGS" 8533 V_CCOPT="$V_CCOPT -Wsign-compare" 8534 8535else $as_nop 8536 8537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8538printf "%s\n" "no" >&6; } 8539 CFLAGS="$save_CFLAGS" 8540 8541fi 8542rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8543 ac_c_werror_flag="$save_ac_c_werror_flag" 8544 8545 8546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wstrict-prototypes option" >&5 8547printf %s "checking whether the compiler supports the -Wstrict-prototypes option... " >&6; } 8548 save_CFLAGS="$CFLAGS" 8549 CFLAGS="$CFLAGS -Wstrict-prototypes" 8550 # 8551 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8552 # but no mechanism is provided to turn AC_LANG_WERROR on 8553 # *and then turn it back off*, so that we *only* do it when 8554 # testing compiler options - 15 years after somebody asked 8555 # for it: 8556 # 8557 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8558 # 8559 save_ac_c_werror_flag="$ac_c_werror_flag" 8560 ac_c_werror_flag=yes 8561 # 8562 # We use AC_LANG_SOURCE() so that we can control the complete 8563 # content of the program being compiled. We do not, for example, 8564 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8565 # as it will generate a warning with -Wold-style-definition, meaning 8566 # that we would treat it as not working, as the test will fail if 8567 # *any* error output, including a warning due to the flag we're 8568 # testing, is generated; see 8569 # 8570 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8571 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8572 # 8573 # This may, as per those two messages, be fixed in autoconf 2.70, 8574 # but we only require 2.69 or newer for now. 8575 # 8576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8577/* end confdefs.h. */ 8578int main(void) { return 0; } 8579_ACEOF 8580if ac_fn_c_try_compile "$LINENO" 8581then : 8582 8583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8584printf "%s\n" "yes" >&6; } 8585 CFLAGS="$save_CFLAGS" 8586 V_CCOPT="$V_CCOPT -Wstrict-prototypes" 8587 8588else $as_nop 8589 8590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8591printf "%s\n" "no" >&6; } 8592 CFLAGS="$save_CFLAGS" 8593 8594fi 8595rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8596 ac_c_werror_flag="$save_ac_c_werror_flag" 8597 8598 8599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wundef option" >&5 8600printf %s "checking whether the compiler supports the -Wundef option... " >&6; } 8601 save_CFLAGS="$CFLAGS" 8602 CFLAGS="$CFLAGS -Wundef" 8603 # 8604 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8605 # but no mechanism is provided to turn AC_LANG_WERROR on 8606 # *and then turn it back off*, so that we *only* do it when 8607 # testing compiler options - 15 years after somebody asked 8608 # for it: 8609 # 8610 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8611 # 8612 save_ac_c_werror_flag="$ac_c_werror_flag" 8613 ac_c_werror_flag=yes 8614 # 8615 # We use AC_LANG_SOURCE() so that we can control the complete 8616 # content of the program being compiled. We do not, for example, 8617 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8618 # as it will generate a warning with -Wold-style-definition, meaning 8619 # that we would treat it as not working, as the test will fail if 8620 # *any* error output, including a warning due to the flag we're 8621 # testing, is generated; see 8622 # 8623 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8624 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8625 # 8626 # This may, as per those two messages, be fixed in autoconf 2.70, 8627 # but we only require 2.69 or newer for now. 8628 # 8629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8630/* end confdefs.h. */ 8631int main(void) { return 0; } 8632_ACEOF 8633if ac_fn_c_try_compile "$LINENO" 8634then : 8635 8636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8637printf "%s\n" "yes" >&6; } 8638 CFLAGS="$save_CFLAGS" 8639 V_CCOPT="$V_CCOPT -Wundef" 8640 8641else $as_nop 8642 8643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8644printf "%s\n" "no" >&6; } 8645 CFLAGS="$save_CFLAGS" 8646 8647fi 8648rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8649 ac_c_werror_flag="$save_ac_c_werror_flag" 8650 8651 8652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wunreachable-code-return option" >&5 8653printf %s "checking whether the compiler supports the -Wunreachable-code-return option... " >&6; } 8654 save_CFLAGS="$CFLAGS" 8655 CFLAGS="$CFLAGS -Wunreachable-code-return" 8656 # 8657 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8658 # but no mechanism is provided to turn AC_LANG_WERROR on 8659 # *and then turn it back off*, so that we *only* do it when 8660 # testing compiler options - 15 years after somebody asked 8661 # for it: 8662 # 8663 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8664 # 8665 save_ac_c_werror_flag="$ac_c_werror_flag" 8666 ac_c_werror_flag=yes 8667 # 8668 # We use AC_LANG_SOURCE() so that we can control the complete 8669 # content of the program being compiled. We do not, for example, 8670 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8671 # as it will generate a warning with -Wold-style-definition, meaning 8672 # that we would treat it as not working, as the test will fail if 8673 # *any* error output, including a warning due to the flag we're 8674 # testing, is generated; see 8675 # 8676 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8677 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8678 # 8679 # This may, as per those two messages, be fixed in autoconf 2.70, 8680 # but we only require 2.69 or newer for now. 8681 # 8682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8683/* end confdefs.h. */ 8684int main(void) { return 0; } 8685_ACEOF 8686if ac_fn_c_try_compile "$LINENO" 8687then : 8688 8689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8690printf "%s\n" "yes" >&6; } 8691 CFLAGS="$save_CFLAGS" 8692 V_CCOPT="$V_CCOPT -Wunreachable-code-return" 8693 8694else $as_nop 8695 8696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8697printf "%s\n" "no" >&6; } 8698 CFLAGS="$save_CFLAGS" 8699 8700fi 8701rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8702 ac_c_werror_flag="$save_ac_c_werror_flag" 8703 8704 8705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wunused-but-set-parameter option" >&5 8706printf %s "checking whether the compiler supports the -Wunused-but-set-parameter option... " >&6; } 8707 save_CFLAGS="$CFLAGS" 8708 CFLAGS="$CFLAGS -Wunused-but-set-parameter" 8709 # 8710 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8711 # but no mechanism is provided to turn AC_LANG_WERROR on 8712 # *and then turn it back off*, so that we *only* do it when 8713 # testing compiler options - 15 years after somebody asked 8714 # for it: 8715 # 8716 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8717 # 8718 save_ac_c_werror_flag="$ac_c_werror_flag" 8719 ac_c_werror_flag=yes 8720 # 8721 # We use AC_LANG_SOURCE() so that we can control the complete 8722 # content of the program being compiled. We do not, for example, 8723 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8724 # as it will generate a warning with -Wold-style-definition, meaning 8725 # that we would treat it as not working, as the test will fail if 8726 # *any* error output, including a warning due to the flag we're 8727 # testing, is generated; see 8728 # 8729 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8730 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8731 # 8732 # This may, as per those two messages, be fixed in autoconf 2.70, 8733 # but we only require 2.69 or newer for now. 8734 # 8735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8736/* end confdefs.h. */ 8737int main(void) { return 0; } 8738_ACEOF 8739if ac_fn_c_try_compile "$LINENO" 8740then : 8741 8742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8743printf "%s\n" "yes" >&6; } 8744 CFLAGS="$save_CFLAGS" 8745 V_CCOPT="$V_CCOPT -Wunused-but-set-parameter" 8746 8747else $as_nop 8748 8749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8750printf "%s\n" "no" >&6; } 8751 CFLAGS="$save_CFLAGS" 8752 8753fi 8754rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8755 ac_c_werror_flag="$save_ac_c_werror_flag" 8756 8757 8758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wunused-but-set-variable option" >&5 8759printf %s "checking whether the compiler supports the -Wunused-but-set-variable option... " >&6; } 8760 save_CFLAGS="$CFLAGS" 8761 CFLAGS="$CFLAGS -Wunused-but-set-variable" 8762 # 8763 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8764 # but no mechanism is provided to turn AC_LANG_WERROR on 8765 # *and then turn it back off*, so that we *only* do it when 8766 # testing compiler options - 15 years after somebody asked 8767 # for it: 8768 # 8769 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8770 # 8771 save_ac_c_werror_flag="$ac_c_werror_flag" 8772 ac_c_werror_flag=yes 8773 # 8774 # We use AC_LANG_SOURCE() so that we can control the complete 8775 # content of the program being compiled. We do not, for example, 8776 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8777 # as it will generate a warning with -Wold-style-definition, meaning 8778 # that we would treat it as not working, as the test will fail if 8779 # *any* error output, including a warning due to the flag we're 8780 # testing, is generated; see 8781 # 8782 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8783 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8784 # 8785 # This may, as per those two messages, be fixed in autoconf 2.70, 8786 # but we only require 2.69 or newer for now. 8787 # 8788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8789/* end confdefs.h. */ 8790int main(void) { return 0; } 8791_ACEOF 8792if ac_fn_c_try_compile "$LINENO" 8793then : 8794 8795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8796printf "%s\n" "yes" >&6; } 8797 CFLAGS="$save_CFLAGS" 8798 V_CCOPT="$V_CCOPT -Wunused-but-set-variable" 8799 8800else $as_nop 8801 8802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8803printf "%s\n" "no" >&6; } 8804 CFLAGS="$save_CFLAGS" 8805 8806fi 8807rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8808 ac_c_werror_flag="$save_ac_c_werror_flag" 8809 8810 8811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wused-but-marked-unused option" >&5 8812printf %s "checking whether the compiler supports the -Wused-but-marked-unused option... " >&6; } 8813 save_CFLAGS="$CFLAGS" 8814 CFLAGS="$CFLAGS -Wused-but-marked-unused" 8815 # 8816 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8817 # but no mechanism is provided to turn AC_LANG_WERROR on 8818 # *and then turn it back off*, so that we *only* do it when 8819 # testing compiler options - 15 years after somebody asked 8820 # for it: 8821 # 8822 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8823 # 8824 save_ac_c_werror_flag="$ac_c_werror_flag" 8825 ac_c_werror_flag=yes 8826 # 8827 # We use AC_LANG_SOURCE() so that we can control the complete 8828 # content of the program being compiled. We do not, for example, 8829 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8830 # as it will generate a warning with -Wold-style-definition, meaning 8831 # that we would treat it as not working, as the test will fail if 8832 # *any* error output, including a warning due to the flag we're 8833 # testing, is generated; see 8834 # 8835 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8836 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8837 # 8838 # This may, as per those two messages, be fixed in autoconf 2.70, 8839 # but we only require 2.69 or newer for now. 8840 # 8841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8842/* end confdefs.h. */ 8843int main(void) { return 0; } 8844_ACEOF 8845if ac_fn_c_try_compile "$LINENO" 8846then : 8847 8848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8849printf "%s\n" "yes" >&6; } 8850 CFLAGS="$save_CFLAGS" 8851 V_CCOPT="$V_CCOPT -Wused-but-marked-unused" 8852 8853else $as_nop 8854 8855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8856printf "%s\n" "no" >&6; } 8857 CFLAGS="$save_CFLAGS" 8858 8859fi 8860rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8861 ac_c_werror_flag="$save_ac_c_werror_flag" 8862 8863 8864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wwrite-strings option" >&5 8865printf %s "checking whether the compiler supports the -Wwrite-strings option... " >&6; } 8866 save_CFLAGS="$CFLAGS" 8867 CFLAGS="$CFLAGS -Wwrite-strings" 8868 # 8869 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8870 # but no mechanism is provided to turn AC_LANG_WERROR on 8871 # *and then turn it back off*, so that we *only* do it when 8872 # testing compiler options - 15 years after somebody asked 8873 # for it: 8874 # 8875 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8876 # 8877 save_ac_c_werror_flag="$ac_c_werror_flag" 8878 ac_c_werror_flag=yes 8879 # 8880 # We use AC_LANG_SOURCE() so that we can control the complete 8881 # content of the program being compiled. We do not, for example, 8882 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8883 # as it will generate a warning with -Wold-style-definition, meaning 8884 # that we would treat it as not working, as the test will fail if 8885 # *any* error output, including a warning due to the flag we're 8886 # testing, is generated; see 8887 # 8888 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8889 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8890 # 8891 # This may, as per those two messages, be fixed in autoconf 2.70, 8892 # but we only require 2.69 or newer for now. 8893 # 8894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8895/* end confdefs.h. */ 8896int main(void) { return 0; } 8897_ACEOF 8898if ac_fn_c_try_compile "$LINENO" 8899then : 8900 8901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8902printf "%s\n" "yes" >&6; } 8903 CFLAGS="$save_CFLAGS" 8904 V_CCOPT="$V_CCOPT -Wwrite-strings" 8905 8906else $as_nop 8907 8908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8909printf "%s\n" "no" >&6; } 8910 CFLAGS="$save_CFLAGS" 8911 8912fi 8913rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8914 ac_c_werror_flag="$save_ac_c_werror_flag" 8915 8916 fi 8917 8918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports generating dependencies" >&5 8919printf %s "checking whether the compiler supports generating dependencies... " >&6; } 8920 if test "$GCC" = yes ; then 8921 # 8922 # GCC, or a compiler deemed to be GCC by AC_PROG_CC (even 8923 # though it's not); we assume that, in this case, the flag 8924 # would be -M. 8925 # 8926 ac_lbl_dependency_flag="-M" 8927 else 8928 # 8929 # Not GCC or a compiler deemed to be GCC; what platform is 8930 # this? (We're assuming that if the compiler isn't GCC 8931 # it's the compiler from the vendor of the OS; that won't 8932 # necessarily be true for x86 platforms, where it might be 8933 # the Intel C compiler.) 8934 # 8935 case "$host_os" in 8936 8937 irix*|osf*|darwin*) 8938 # 8939 # MIPS C for IRIX, DEC C, and clang all use -M. 8940 # 8941 ac_lbl_dependency_flag="-M" 8942 ;; 8943 8944 solaris*) 8945 # 8946 # Sun C uses -xM. 8947 # 8948 ac_lbl_dependency_flag="-xM" 8949 ;; 8950 8951 hpux*) 8952 # 8953 # HP's older C compilers don't support this. 8954 # HP's newer C compilers support this with 8955 # either +M or +Make; the older compilers 8956 # interpret +M as something completely 8957 # different, so we use +Make so we don't 8958 # think it works with the older compilers. 8959 # 8960 ac_lbl_dependency_flag="+Make" 8961 ;; 8962 8963 *) 8964 # 8965 # Not one of the above; assume no support for 8966 # generating dependencies. 8967 # 8968 ac_lbl_dependency_flag="" 8969 ;; 8970 esac 8971 fi 8972 8973 # 8974 # Is ac_lbl_dependency_flag defined and, if so, does the compiler 8975 # complain about it? 8976 # 8977 # Note: clang doesn't seem to exit with an error status when handed 8978 # an unknown non-warning error, even if you pass it 8979 # -Werror=unknown-warning-option. However, it always supports 8980 # -M, so the fact that this test always succeeds with clang 8981 # isn't an issue. 8982 # 8983 if test ! -z "$ac_lbl_dependency_flag"; then 8984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8985/* end confdefs.h. */ 8986int main(void) { return 0; } 8987_ACEOF 8988 if { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: eval \"\$CC \$ac_lbl_dependency_flag conftest.c >/dev/null 2>&1\""; } >&5 8989 (eval "$CC $ac_lbl_dependency_flag conftest.c >/dev/null 2>&1") 2>&5 8990 ac_status=$? 8991 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8992 test $ac_status = 0; }; then 8993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, with $ac_lbl_dependency_flag" >&5 8994printf "%s\n" "yes, with $ac_lbl_dependency_flag" >&6; } 8995 DEPENDENCY_CFLAG="$ac_lbl_dependency_flag" 8996 MKDEP='${top_srcdir}/mkdep' 8997 else 8998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8999printf "%s\n" "no" >&6; } 9000 # 9001 # We can't run mkdep, so have "make depend" do 9002 # nothing. 9003 # 9004 MKDEP=: 9005 fi 9006 rm -rf conftest* 9007 else 9008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9009printf "%s\n" "no" >&6; } 9010 # 9011 # We can't run mkdep, so have "make depend" do 9012 # nothing. 9013 # 9014 MKDEP=: 9015 fi 9016 9017 9018 9019 # 9020 # We used to set -n32 for IRIX 6 when not using GCC (presumed 9021 # to mean that we're using MIPS C or MIPSpro C); it specified 9022 # the "new" faster 32-bit ABI, introduced in IRIX 6.2. I'm 9023 # not sure why that would be something to do *only* with a 9024 # .devel file; why should the ABI for which we produce code 9025 # depend on .devel? 9026 # 9027 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'` 9028 name="lbl/os-$os.h" 9029 if test -f $name ; then 9030 ln -s $name os-proto.h 9031 9032printf "%s\n" "#define HAVE_OS_PROTO_H 1" >>confdefs.h 9033 9034 else 9035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: can't find $name" >&5 9036printf "%s\n" "$as_me: WARNING: can't find $name" >&2;} 9037 fi 9038 fi 9039 9040# Check for OpenSSL/libressl libcrypto 9041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use OpenSSL/libressl libcrypto" >&5 9042printf %s "checking whether to use OpenSSL/libressl libcrypto... " >&6; } 9043# Specify location for both includes and libraries. 9044want_libcrypto=ifavailable 9045 9046# Check whether --with-crypto was given. 9047if test ${with_crypto+y} 9048then : 9049 withval=$with_crypto; 9050 if test $withval = no 9051 then 9052 # User doesn't want to link with libcrypto. 9053 want_libcrypto=no 9054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9055printf "%s\n" "no" >&6; } 9056 elif test $withval = yes 9057 then 9058 # User wants to link with libcrypto but hasn't specified 9059 # a directory. 9060 want_libcrypto=yes 9061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9062printf "%s\n" "yes" >&6; } 9063 else 9064 # User wants to link with libcrypto and has specified 9065 # a directory, so use the provided value. 9066 want_libcrypto=yes 9067 libcrypto_root=$withval 9068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, using the version installed in $withval" >&5 9069printf "%s\n" "yes, using the version installed in $withval" >&6; } 9070 fi 9071 9072else $as_nop 9073 9074 # 9075 # Use libcrypto if it's present, otherwise don't; no directory 9076 # was specified. 9077 # 9078 want_libcrypto=ifavailable 9079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, if available" >&5 9080printf "%s\n" "yes, if available" >&6; } 9081 9082fi 9083 9084if test "$want_libcrypto" != "no"; then 9085 # 9086 # Were we told where to look for libcrypto? 9087 # 9088 if test -z "$libcrypto_root"; then 9089 # 9090 # No. 9091 # 9092 # First, try looking for it with pkg-config, if we have it. 9093 # 9094 # Homebrew's pkg-config does not, by default, look for 9095 # pkg-config files for packages it has installed. 9096 # Furthermore, at least for OpenSSL, they appear to be 9097 # dumped in package-specific directories whose paths are 9098 # not only package-specific but package-version-specific. 9099 # 9100 # So the only way to find openssl is to get the value of 9101 # PKG_CONFIG_PATH from "brew --env openssl" and add that 9102 # to PKG_CONFIG_PATH. (No, we can't just assume it's under 9103 # /usr/local; Homebrew have conveniently chosen to put it 9104 # under /opt/homebrew on ARM.) 9105 # 9106 # That's the nice thing about Homebrew - it makes things easier! 9107 # Thanks! 9108 # 9109 save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH" 9110 if test -n "$BREW"; then 9111 openssl_pkgconfig_dir=`$BREW --env --plain openssl | sed -n 's/PKG_CONFIG_PATH: //p'` 9112 PKG_CONFIG_PATH="$openssl_pkgconfig_dir:$PKG_CONFIG_PATH" 9113 fi 9114 9115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcrypto with pkg-config" >&5 9116printf %s "checking for libcrypto with pkg-config... " >&6; } 9117if test -n "$PKG_CONFIG"; then 9118 9119 if { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto\""; } >&5 9120 ($PKG_CONFIG --exists --print-errors "libcrypto") 2>&5 9121 ac_status=$? 9122 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9123 test $ac_status = 0; }; then 9124 # 9125 # The package was found, so try to get its C flags and 9126 # libraries. 9127 # 9128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 9129printf "%s\n" "found" >&6; } 9130 if test ! -n "$LIBCRYPTO_CFLAGS"; then 9131 LIBCRYPTO_CFLAGS=`$PKG_CONFIG --cflags "libcrypto" 2>/dev/null` 9132 if test "x$?" != "x0"; then 9133 # 9134 # That failed - report an error. 9135 # Re-run the command, telling pkg-config to print an error 9136 # message, capture the error message, and report it. 9137 # This causes the configuration script to fail, as it means 9138 # the script is almost certainly doing something wrong. 9139 # 9140 9141if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 9142 _pkg_short_errors_supported=yes 9143else 9144 _pkg_short_errors_supported=no 9145fi 9146 if test $_pkg_short_errors_supported = yes; then 9147 _pkg_error_string=`$PKG_CONFIG --short-errors --print-errors --cflags "libcrypto" 2>&1` 9148 else 9149 _pkg_error_string=`$PKG_CONFIG --print-errors --cflags "libcrypto" 2>&1` 9150 fi 9151 as_fn_error $? "$PKG_CONFIG --cflags \"libcrypto\" failed: $_pkg_error_string" "$LINENO" 5 9152 fi 9153 fi 9154 if test ! -n "$LIBCRYPTO_LIBS"; then 9155 LIBCRYPTO_LIBS=`$PKG_CONFIG --libs "libcrypto" 2>/dev/null` 9156 if test "x$?" != "x0"; then 9157 # 9158 # That failed - report an error. 9159 # Re-run the command, telling pkg-config to print an error 9160 # message, capture the error message, and report it. 9161 # This causes the configuration script to fail, as it means 9162 # the script is almost certainly doing something wrong. 9163 # 9164 9165if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 9166 _pkg_short_errors_supported=yes 9167else 9168 _pkg_short_errors_supported=no 9169fi 9170 if test $_pkg_short_errors_supported = yes; then 9171 _pkg_error_string=`$PKG_CONFIG --short-errors --print-errors --libs "libcrypto" 2>&1` 9172 else 9173 _pkg_error_string=`$PKG_CONFIG --print-errors --libs "libcrypto" 2>&1` 9174 fi 9175 as_fn_error $? "$PKG_CONFIG --libs \"libcrypto\" failed: $_pkg_error_string" "$LINENO" 5 9176 fi 9177 fi 9178 if test ! -n "$LIBCRYPTO_LIBS_STATIC"; then 9179 LIBCRYPTO_LIBS_STATIC=`$PKG_CONFIG --libs --static "libcrypto" 2>/dev/null` 9180 if test "x$?" != "x0"; then 9181 # 9182 # That failed - report an error. 9183 # Re-run the command, telling pkg-config to print an error 9184 # message, capture the error message, and report it. 9185 # This causes the configuration script to fail, as it means 9186 # the script is almost certainly doing something wrong. 9187 # 9188 9189if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 9190 _pkg_short_errors_supported=yes 9191else 9192 _pkg_short_errors_supported=no 9193fi 9194 if test $_pkg_short_errors_supported = yes; then 9195 _pkg_error_string=`$PKG_CONFIG --short-errors --print-errors --libs --static "libcrypto" 2>&1` 9196 else 9197 _pkg_error_string=`$PKG_CONFIG --print-errors --libs --static "libcrypto" 2>&1` 9198 fi 9199 as_fn_error $? "$PKG_CONFIG --libs --static \"libcrypto\" failed: $_pkg_error_string" "$LINENO" 5 9200 fi 9201 fi 9202 9203 # 9204 # We found OpenSSL/libressl libcrypto. 9205 # 9206 HAVE_LIBCRYPTO=yes 9207 9208 else 9209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9210printf "%s\n" "not found" >&6; } 9211 : 9212 fi 9213else 9214 # No pkg-config, so obviously not found with pkg-config. 9215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: pkg-config not found" >&5 9216printf "%s\n" "pkg-config not found" >&6; } 9217 : 9218fi 9219 9220 PKG_CONFIG_PATH="$save_PKG_CONFIG_PATH" 9221 9222 # 9223 # If it wasn't found, and we have Homebrew installed, see 9224 # if it's in Homebrew. 9225 # 9226 if test "x$HAVE_LIBCRYPTO" != "xyes" -a -n "$BREW"; then 9227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl in Homebrew" >&5 9228printf %s "checking for openssl in Homebrew... " >&6; } 9229 # 9230 # The brew man page lies when it speaks of 9231 # $BREW --prefix --installed <formula> 9232 # outputting nothing. In Homebrew 3.3.16, 9233 # it produces output regardless of whether 9234 # the formula is installed or not, so we 9235 # send the standard output and error to 9236 # the bit bucket. 9237 # 9238 # libcrypto isn't a formula, openssl is a formula. 9239 # 9240 if $BREW --prefix --installed openssl >/dev/null 2>&1; then 9241 # 9242 # Yes. Get the include directory and library 9243 # directory. (No, we can't just assume it's 9244 # under /usr/local; Homebrew have conveniently 9245 # chosen to put it under /opt/homebrew on ARM.) 9246 # 9247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9248printf "%s\n" "yes" >&6; } 9249 HAVE_LIBCRYPTO=yes 9250 openssl_path=`$BREW --prefix openssl` 9251 LIBCRYPTO_CFLAGS="-I$openssl_path/include" 9252 LIBCRYPTO_LIBS="-L$openssl_path/lib -lcrypto" 9253 else 9254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9255printf "%s\n" "no" >&6; } 9256 fi 9257 fi 9258 9259 # 9260 # If it wasn't found, and /usr/local/include and /usr/local/lib 9261 # exist, check if it's in /usr/local. (We check whether they 9262 # exist because, if they don't exist, the compiler will warn 9263 # about that and then ignore the argument, so they test 9264 # using just the system header files and libraries.) 9265 # 9266 # We include the standard include file to 1) make sure that 9267 # it's installed (if it's just a shared library for the 9268 # benefit of existing programs, that's not useful) and 2) 9269 # because SSL_library_init() is a library routine in some 9270 # versions and a #defined wrapper around OPENSSL_init_ssl() 9271 # in others. 9272 # 9273 if test "x$HAVE_LIBCRYPTO" != "xyes" -a -d "/usr/local/include" -a -d "/usr/local/lib"; then 9274 9275 save_CFLAGS="$CFLAGS" 9276 save_LIBS="$LIBS" 9277 save_LDFLAGS="$LDFLAGS" 9278 9279 CFLAGS="$CFLAGS -I/usr/local/include" 9280 LIBS="$LIBS -L/usr/local/lib -lcrypto" 9281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we have an OpenSSL/libressl libcrypto in /usr/local that we can use" >&5 9282printf %s "checking whether we have an OpenSSL/libressl libcrypto in /usr/local that we can use... " >&6; } 9283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9284/* end confdefs.h. */ 9285 9286#include <openssl/evp.h> 9287 9288int 9289main (void) 9290{ 9291 9292EVP_CIPHER_CTX_block_size((EVP_CIPHER_CTX *)0); 9293return 0; 9294 9295 ; 9296 return 0; 9297} 9298_ACEOF 9299if ac_fn_c_try_link "$LINENO" 9300then : 9301 9302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9303printf "%s\n" "yes" >&6; } 9304 HAVE_LIBCRYPTO=yes 9305 LIBCRYPTO_CFLAGS="-I/usr/local/include" 9306 LIBCRYPTO_LIBS="-L/usr/local/lib -lcrypto" 9307 9308else $as_nop 9309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9310printf "%s\n" "no" >&6; } 9311fi 9312rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9313 conftest$ac_exeext conftest.$ac_ext 9314 9315 CFLAGS="$save_CFLAGS" 9316 LIBS="$save_LIBS" 9317 LDFLAGS="$save_LDFLAGS" 9318 9319 fi 9320 9321 # 9322 # If it wasn't found, check if it's a system library. 9323 # 9324 # We include the standard include file to 1) make sure that 9325 # it's installed (if it's just a shared library for the 9326 # benefit of existing programs, that's not useful) and 2) 9327 # make sure this isn't a newer macOS that provides libcrypto 9328 # as a shared library but doesn't provide headers - Apple, 9329 # bless their pointy little heads, apparently ship libcrypto 9330 # as a library, but not the header files, in El Capitan and 9331 # later, probably because they don't want you writing nasty 9332 # portable code that could run on other UN*Xes, they want you 9333 # writing code that uses their Shiny New Crypto Library and 9334 # that thus only runs on macOS. 9335 # 9336 if test "x$HAVE_LIBCRYPTO" != "xyes"; then 9337 9338 save_CFLAGS="$CFLAGS" 9339 save_LIBS="$LIBS" 9340 save_LDFLAGS="$LDFLAGS" 9341 9342 LIBS="$LIBS -lcrypto" 9343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we have a system OpenSSL/libressl that we can use" >&5 9344printf %s "checking whether we have a system OpenSSL/libressl that we can use... " >&6; } 9345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9346/* end confdefs.h. */ 9347 9348#include <openssl/evp.h> 9349 9350int 9351main (void) 9352{ 9353 9354EVP_CIPHER_CTX_block_size((EVP_CIPHER_CTX *)0); 9355return 0; 9356 9357 ; 9358 return 0; 9359} 9360_ACEOF 9361if ac_fn_c_try_link "$LINENO" 9362then : 9363 9364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9365printf "%s\n" "yes" >&6; } 9366 HAVE_LIBCRYPTO=yes 9367 LIBCRYPTO_LIBS="-lcrypto" 9368 9369else $as_nop 9370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9371printf "%s\n" "no" >&6; } 9372fi 9373rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9374 conftest$ac_exeext conftest.$ac_ext 9375 9376 CFLAGS="$save_CFLAGS" 9377 LIBS="$save_LIBS" 9378 LDFLAGS="$save_LDFLAGS" 9379 9380 fi 9381 else 9382 # 9383 # Yes. 9384 # 9385 # Look for it there. 9386 # 9387 9388 save_CFLAGS="$CFLAGS" 9389 save_LIBS="$LIBS" 9390 save_LDFLAGS="$LDFLAGS" 9391 9392 CFLAGS="$CFLAGS -I$libcrypto_root/include" 9393 LIBS="$LIBS -L$libcrypto_root/lib -lcrypto" 9394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we have a system OpenSSL/libressl that we can use" >&5 9395printf %s "checking whether we have a system OpenSSL/libressl that we can use... " >&6; } 9396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9397/* end confdefs.h. */ 9398 9399#include <openssl/evp.h> 9400 9401int 9402main (void) 9403{ 9404 9405EVP_CIPHER_CTX_block_size((EVP_CIPHER_CTX *)0); 9406return 0; 9407 9408 ; 9409 return 0; 9410} 9411_ACEOF 9412if ac_fn_c_try_link "$LINENO" 9413then : 9414 9415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9416printf "%s\n" "yes" >&6; } 9417 HAVE_LIBCRYPTO=yes 9418 LIBCRYPTO_CFLAGS="-I$libcrypto_root/include" 9419 LIBCRYPTO_LIBS="-L$libcrypto_root/lib -lcrypto" 9420 9421else $as_nop 9422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9423printf "%s\n" "no" >&6; } 9424fi 9425rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9426 conftest$ac_exeext conftest.$ac_ext 9427 9428 CFLAGS="$save_CFLAGS" 9429 LIBS="$save_LIBS" 9430 LDFLAGS="$save_LDFLAGS" 9431 9432 fi 9433 9434 # 9435 # OK, did we find it? 9436 # 9437 if test "x$HAVE_LIBCRYPTO" = "xyes"; then 9438 9439printf "%s\n" "#define HAVE_LIBCRYPTO 1" >>confdefs.h 9440 9441 9442 # 9443 # Put the subdirectories of the libcrypto root directory 9444 # at the end of the header and library search path, to 9445 # make sure they come after any -I or -L flags for 9446 # a local libpcap - those must take precedence of any 9447 # directory that might contain an installed version of 9448 # libpcap. 9449 # 9450 V_INCLS="$V_INCLS $LIBCRYPTO_CFLAGS" 9451 LIBS="$LIBS $LIBCRYPTO_LIBS" 9452 9453 # 9454 # OK, then: 9455 # 9456 # 1) do we have EVP_CIPHER_CTX_new? 9457 # If so, we use it to allocate an EVP_CIPHER_CTX, as 9458 # EVP_CIPHER_CTX may be opaque; otherwise, we allocate it 9459 # ourselves. 9460 # 9461 # 2) do we have EVP_DecryptInit_ex()? 9462 # If so, we use it, because we need to be able to make 9463 # two "initialize the cipher" calls, one with the cipher 9464 # and key, and one with the IV, and, as of OpenSSL 1.1, 9465 # You Can't Do That with EVP_DecryptInit(), because a 9466 # call to EVP_DecryptInit() will unconditionally clear 9467 # the context, and if you don't supply a cipher, it'll 9468 # clear the cipher, rendering the context unusable and 9469 # causing a crash. 9470 # 9471 ac_fn_c_check_func "$LINENO" "EVP_CIPHER_CTX_new" "ac_cv_func_EVP_CIPHER_CTX_new" 9472if test "x$ac_cv_func_EVP_CIPHER_CTX_new" = xyes 9473then : 9474 printf "%s\n" "#define HAVE_EVP_CIPHER_CTX_NEW 1" >>confdefs.h 9475 9476fi 9477ac_fn_c_check_func "$LINENO" "EVP_DecryptInit_ex" "ac_cv_func_EVP_DecryptInit_ex" 9478if test "x$ac_cv_func_EVP_DecryptInit_ex" = xyes 9479then : 9480 printf "%s\n" "#define HAVE_EVP_DECRYPTINIT_EX 1" >>confdefs.h 9481 9482fi 9483 9484 else 9485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OpenSSL/libressl libcrypto not found" >&5 9486printf "%s\n" "$as_me: OpenSSL/libressl libcrypto not found" >&6;} 9487 fi 9488fi 9489 9490# Check for libcap-ng 9491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use libcap-ng" >&5 9492printf %s "checking whether to use libcap-ng... " >&6; } 9493# Specify location for both includes and libraries. 9494want_libcap_ng=ifavailable 9495 9496# Check whether --with-cap_ng was given. 9497if test ${with_cap_ng+y} 9498then : 9499 withval=$with_cap_ng; 9500 if test $withval = no 9501 then 9502 want_libcap_ng=no 9503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9504printf "%s\n" "no" >&6; } 9505 elif test $withval = yes 9506 then 9507 want_libcap_ng=yes 9508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9509printf "%s\n" "yes" >&6; } 9510 fi 9511 9512else $as_nop 9513 9514 # 9515 # Use libcap-ng if it's present, otherwise don't. 9516 # 9517 want_libcap_ng=ifavailable 9518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, if available" >&5 9519printf "%s\n" "yes, if available" >&6; } 9520 9521fi 9522 9523if test "$want_libcap_ng" != "no"; then 9524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for capng_change_id in -lcap-ng" >&5 9525printf %s "checking for capng_change_id in -lcap-ng... " >&6; } 9526if test ${ac_cv_lib_cap_ng_capng_change_id+y} 9527then : 9528 printf %s "(cached) " >&6 9529else $as_nop 9530 ac_check_lib_save_LIBS=$LIBS 9531LIBS="-lcap-ng $LIBS" 9532cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9533/* end confdefs.h. */ 9534 9535/* Override any GCC internal prototype to avoid an error. 9536 Use char because int might match the return type of a GCC 9537 builtin and then its argument prototype would still apply. */ 9538char capng_change_id (); 9539int 9540main (void) 9541{ 9542return capng_change_id (); 9543 ; 9544 return 0; 9545} 9546_ACEOF 9547if ac_fn_c_try_link "$LINENO" 9548then : 9549 ac_cv_lib_cap_ng_capng_change_id=yes 9550else $as_nop 9551 ac_cv_lib_cap_ng_capng_change_id=no 9552fi 9553rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9554 conftest$ac_exeext conftest.$ac_ext 9555LIBS=$ac_check_lib_save_LIBS 9556fi 9557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_ng_capng_change_id" >&5 9558printf "%s\n" "$ac_cv_lib_cap_ng_capng_change_id" >&6; } 9559if test "x$ac_cv_lib_cap_ng_capng_change_id" = xyes 9560then : 9561 printf "%s\n" "#define HAVE_LIBCAP_NG 1" >>confdefs.h 9562 9563 LIBS="-lcap-ng $LIBS" 9564 9565fi 9566 9567 ac_fn_c_check_header_compile "$LINENO" "cap-ng.h" "ac_cv_header_cap_ng_h" "$ac_includes_default" 9568if test "x$ac_cv_header_cap_ng_h" = xyes 9569then : 9570 printf "%s\n" "#define HAVE_CAP_NG_H 1" >>confdefs.h 9571 9572fi 9573 9574fi 9575 9576if test "$missing_includes" = "yes"; then 9577 CPPFLAGS="$CPPFLAGS -I$srcdir/missing" 9578 V_INCLS="$V_INCLS -I$srcdir/missing" 9579fi 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 # Find a good install program. We prefer a C program (faster), 9591# so one script is as good as another. But avoid the broken or 9592# incompatible versions: 9593# SysV /etc/install, /usr/sbin/install 9594# SunOS /usr/etc/install 9595# IRIX /sbin/install 9596# AIX /bin/install 9597# AmigaOS /C/install, which installs bootblocks on floppy discs 9598# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 9599# AFS /usr/afsws/bin/install, which mishandles nonexistent args 9600# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 9601# OS/2's system install, which has a completely different semantic 9602# ./install, which can be erroneously created by make from ./install.sh. 9603# Reject install programs that cannot install multiple files. 9604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 9605printf %s "checking for a BSD-compatible install... " >&6; } 9606if test -z "$INSTALL"; then 9607if test ${ac_cv_path_install+y} 9608then : 9609 printf %s "(cached) " >&6 9610else $as_nop 9611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9612for as_dir in $PATH 9613do 9614 IFS=$as_save_IFS 9615 case $as_dir in #((( 9616 '') as_dir=./ ;; 9617 */) ;; 9618 *) as_dir=$as_dir/ ;; 9619 esac 9620 # Account for fact that we put trailing slashes in our PATH walk. 9621case $as_dir in #(( 9622 ./ | /[cC]/* | \ 9623 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 9624 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 9625 /usr/ucb/* ) ;; 9626 *) 9627 # OSF1 and SCO ODT 3.0 have their own names for install. 9628 # Don't use installbsd from OSF since it installs stuff as root 9629 # by default. 9630 for ac_prog in ginstall scoinst install; do 9631 for ac_exec_ext in '' $ac_executable_extensions; do 9632 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 9633 if test $ac_prog = install && 9634 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 9635 # AIX install. It has an incompatible calling convention. 9636 : 9637 elif test $ac_prog = install && 9638 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 9639 # program-specific install script used by HP pwplus--don't use. 9640 : 9641 else 9642 rm -rf conftest.one conftest.two conftest.dir 9643 echo one > conftest.one 9644 echo two > conftest.two 9645 mkdir conftest.dir 9646 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 9647 test -s conftest.one && test -s conftest.two && 9648 test -s conftest.dir/conftest.one && 9649 test -s conftest.dir/conftest.two 9650 then 9651 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 9652 break 3 9653 fi 9654 fi 9655 fi 9656 done 9657 done 9658 ;; 9659esac 9660 9661 done 9662IFS=$as_save_IFS 9663 9664rm -rf conftest.one conftest.two conftest.dir 9665 9666fi 9667 if test ${ac_cv_path_install+y}; then 9668 INSTALL=$ac_cv_path_install 9669 else 9670 # As a last resort, use the slow shell script. Don't cache a 9671 # value for INSTALL within a source directory, because that will 9672 # break other packages using the cache if that directory is 9673 # removed, or if the value is a relative name. 9674 INSTALL=$ac_install_sh 9675 fi 9676fi 9677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 9678printf "%s\n" "$INSTALL" >&6; } 9679 9680# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 9681# It thinks the first close brace ends the variable substitution. 9682test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 9683 9684test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 9685 9686test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 9687 9688 9689ac_config_headers="$ac_config_headers config.h" 9690 9691 9692ac_config_commands="$ac_config_commands .devel" 9693 9694ac_config_files="$ac_config_files Makefile tcpdump.1" 9695 9696cat >confcache <<\_ACEOF 9697# This file is a shell script that caches the results of configure 9698# tests run on this system so they can be shared between configure 9699# scripts and configure runs, see configure's option --config-cache. 9700# It is not useful on other systems. If it contains results you don't 9701# want to keep, you may remove or edit it. 9702# 9703# config.status only pays attention to the cache file if you give it 9704# the --recheck option to rerun configure. 9705# 9706# `ac_cv_env_foo' variables (set or unset) will be overridden when 9707# loading this file, other *unset* `ac_cv_foo' will be assigned the 9708# following values. 9709 9710_ACEOF 9711 9712# The following way of writing the cache mishandles newlines in values, 9713# but we know of no workaround that is simple, portable, and efficient. 9714# So, we kill variables containing newlines. 9715# Ultrix sh set writes to stderr and can't be redirected directly, 9716# and sets the high bit in the cache file unless we assign to the vars. 9717( 9718 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 9719 eval ac_val=\$$ac_var 9720 case $ac_val in #( 9721 *${as_nl}*) 9722 case $ac_var in #( 9723 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 9724printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 9725 esac 9726 case $ac_var in #( 9727 _ | IFS | as_nl) ;; #( 9728 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 9729 *) { eval $ac_var=; unset $ac_var;} ;; 9730 esac ;; 9731 esac 9732 done 9733 9734 (set) 2>&1 | 9735 case $as_nl`(ac_space=' '; set) 2>&1` in #( 9736 *${as_nl}ac_space=\ *) 9737 # `set' does not quote correctly, so add quotes: double-quote 9738 # substitution turns \\\\ into \\, and sed turns \\ into \. 9739 sed -n \ 9740 "s/'/'\\\\''/g; 9741 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 9742 ;; #( 9743 *) 9744 # `set' quotes correctly as required by POSIX, so do not add quotes. 9745 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 9746 ;; 9747 esac | 9748 sort 9749) | 9750 sed ' 9751 /^ac_cv_env_/b end 9752 t clear 9753 :clear 9754 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 9755 t end 9756 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 9757 :end' >>confcache 9758if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 9759 if test -w "$cache_file"; then 9760 if test "x$cache_file" != "x/dev/null"; then 9761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 9762printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 9763 if test ! -f "$cache_file" || test -h "$cache_file"; then 9764 cat confcache >"$cache_file" 9765 else 9766 case $cache_file in #( 9767 */* | ?:*) 9768 mv -f confcache "$cache_file"$$ && 9769 mv -f "$cache_file"$$ "$cache_file" ;; #( 9770 *) 9771 mv -f confcache "$cache_file" ;; 9772 esac 9773 fi 9774 fi 9775 else 9776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 9777printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 9778 fi 9779fi 9780rm -f confcache 9781 9782test "x$prefix" = xNONE && prefix=$ac_default_prefix 9783# Let make expand exec_prefix. 9784test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 9785 9786DEFS=-DHAVE_CONFIG_H 9787 9788ac_libobjs= 9789ac_ltlibobjs= 9790U= 9791for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 9792 # 1. Remove the extension, and $U if already installed. 9793 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 9794 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 9795 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 9796 # will be set to the directory where LIBOBJS objects are built. 9797 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 9798 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 9799done 9800LIBOBJS=$ac_libobjs 9801 9802LTLIBOBJS=$ac_ltlibobjs 9803 9804 9805 9806: "${CONFIG_STATUS=./config.status}" 9807ac_write_fail=0 9808ac_clean_files_save=$ac_clean_files 9809ac_clean_files="$ac_clean_files $CONFIG_STATUS" 9810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 9811printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 9812as_write_fail=0 9813cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 9814#! $SHELL 9815# Generated by $as_me. 9816# Run this file to recreate the current configuration. 9817# Compiler output produced by configure, useful for debugging 9818# configure, is in config.log if it exists. 9819 9820debug=false 9821ac_cs_recheck=false 9822ac_cs_silent=false 9823 9824SHELL=\${CONFIG_SHELL-$SHELL} 9825export SHELL 9826_ASEOF 9827cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 9828## -------------------- ## 9829## M4sh Initialization. ## 9830## -------------------- ## 9831 9832# Be more Bourne compatible 9833DUALCASE=1; export DUALCASE # for MKS sh 9834as_nop=: 9835if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 9836then : 9837 emulate sh 9838 NULLCMD=: 9839 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 9840 # is contrary to our usage. Disable this feature. 9841 alias -g '${1+"$@"}'='"$@"' 9842 setopt NO_GLOB_SUBST 9843else $as_nop 9844 case `(set -o) 2>/dev/null` in #( 9845 *posix*) : 9846 set -o posix ;; #( 9847 *) : 9848 ;; 9849esac 9850fi 9851 9852 9853 9854# Reset variables that may have inherited troublesome values from 9855# the environment. 9856 9857# IFS needs to be set, to space, tab, and newline, in precisely that order. 9858# (If _AS_PATH_WALK were called with IFS unset, it would have the 9859# side effect of setting IFS to empty, thus disabling word splitting.) 9860# Quoting is to prevent editors from complaining about space-tab. 9861as_nl=' 9862' 9863export as_nl 9864IFS=" "" $as_nl" 9865 9866PS1='$ ' 9867PS2='> ' 9868PS4='+ ' 9869 9870# Ensure predictable behavior from utilities with locale-dependent output. 9871LC_ALL=C 9872export LC_ALL 9873LANGUAGE=C 9874export LANGUAGE 9875 9876# We cannot yet rely on "unset" to work, but we need these variables 9877# to be unset--not just set to an empty or harmless value--now, to 9878# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 9879# also avoids known problems related to "unset" and subshell syntax 9880# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 9881for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 9882do eval test \${$as_var+y} \ 9883 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 9884done 9885 9886# Ensure that fds 0, 1, and 2 are open. 9887if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 9888if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 9889if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 9890 9891# The user is always right. 9892if ${PATH_SEPARATOR+false} :; then 9893 PATH_SEPARATOR=: 9894 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 9895 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 9896 PATH_SEPARATOR=';' 9897 } 9898fi 9899 9900 9901# Find who we are. Look in the path if we contain no directory separator. 9902as_myself= 9903case $0 in #(( 9904 *[\\/]* ) as_myself=$0 ;; 9905 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9906for as_dir in $PATH 9907do 9908 IFS=$as_save_IFS 9909 case $as_dir in #((( 9910 '') as_dir=./ ;; 9911 */) ;; 9912 *) as_dir=$as_dir/ ;; 9913 esac 9914 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 9915 done 9916IFS=$as_save_IFS 9917 9918 ;; 9919esac 9920# We did not find ourselves, most probably we were run as `sh COMMAND' 9921# in which case we are not to be found in the path. 9922if test "x$as_myself" = x; then 9923 as_myself=$0 9924fi 9925if test ! -f "$as_myself"; then 9926 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 9927 exit 1 9928fi 9929 9930 9931 9932# as_fn_error STATUS ERROR [LINENO LOG_FD] 9933# ---------------------------------------- 9934# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 9935# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 9936# script with STATUS, using 1 if that was 0. 9937as_fn_error () 9938{ 9939 as_status=$1; test $as_status -eq 0 && as_status=1 9940 if test "$4"; then 9941 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 9942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 9943 fi 9944 printf "%s\n" "$as_me: error: $2" >&2 9945 as_fn_exit $as_status 9946} # as_fn_error 9947 9948 9949 9950# as_fn_set_status STATUS 9951# ----------------------- 9952# Set $? to STATUS, without forking. 9953as_fn_set_status () 9954{ 9955 return $1 9956} # as_fn_set_status 9957 9958# as_fn_exit STATUS 9959# ----------------- 9960# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 9961as_fn_exit () 9962{ 9963 set +e 9964 as_fn_set_status $1 9965 exit $1 9966} # as_fn_exit 9967 9968# as_fn_unset VAR 9969# --------------- 9970# Portably unset VAR. 9971as_fn_unset () 9972{ 9973 { eval $1=; unset $1;} 9974} 9975as_unset=as_fn_unset 9976 9977# as_fn_append VAR VALUE 9978# ---------------------- 9979# Append the text in VALUE to the end of the definition contained in VAR. Take 9980# advantage of any shell optimizations that allow amortized linear growth over 9981# repeated appends, instead of the typical quadratic growth present in naive 9982# implementations. 9983if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 9984then : 9985 eval 'as_fn_append () 9986 { 9987 eval $1+=\$2 9988 }' 9989else $as_nop 9990 as_fn_append () 9991 { 9992 eval $1=\$$1\$2 9993 } 9994fi # as_fn_append 9995 9996# as_fn_arith ARG... 9997# ------------------ 9998# Perform arithmetic evaluation on the ARGs, and store the result in the 9999# global $as_val. Take advantage of shells that can avoid forks. The arguments 10000# must be portable across $(()) and expr. 10001if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 10002then : 10003 eval 'as_fn_arith () 10004 { 10005 as_val=$(( $* )) 10006 }' 10007else $as_nop 10008 as_fn_arith () 10009 { 10010 as_val=`expr "$@" || test $? -eq 1` 10011 } 10012fi # as_fn_arith 10013 10014 10015if expr a : '\(a\)' >/dev/null 2>&1 && 10016 test "X`expr 00001 : '.*\(...\)'`" = X001; then 10017 as_expr=expr 10018else 10019 as_expr=false 10020fi 10021 10022if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 10023 as_basename=basename 10024else 10025 as_basename=false 10026fi 10027 10028if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 10029 as_dirname=dirname 10030else 10031 as_dirname=false 10032fi 10033 10034as_me=`$as_basename -- "$0" || 10035$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 10036 X"$0" : 'X\(//\)$' \| \ 10037 X"$0" : 'X\(/\)' \| . 2>/dev/null || 10038printf "%s\n" X/"$0" | 10039 sed '/^.*\/\([^/][^/]*\)\/*$/{ 10040 s//\1/ 10041 q 10042 } 10043 /^X\/\(\/\/\)$/{ 10044 s//\1/ 10045 q 10046 } 10047 /^X\/\(\/\).*/{ 10048 s//\1/ 10049 q 10050 } 10051 s/.*/./; q'` 10052 10053# Avoid depending upon Character Ranges. 10054as_cr_letters='abcdefghijklmnopqrstuvwxyz' 10055as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 10056as_cr_Letters=$as_cr_letters$as_cr_LETTERS 10057as_cr_digits='0123456789' 10058as_cr_alnum=$as_cr_Letters$as_cr_digits 10059 10060 10061# Determine whether it's possible to make 'echo' print without a newline. 10062# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 10063# for compatibility with existing Makefiles. 10064ECHO_C= ECHO_N= ECHO_T= 10065case `echo -n x` in #((((( 10066-n*) 10067 case `echo 'xy\c'` in 10068 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 10069 xy) ECHO_C='\c';; 10070 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 10071 ECHO_T=' ';; 10072 esac;; 10073*) 10074 ECHO_N='-n';; 10075esac 10076 10077# For backward compatibility with old third-party macros, we provide 10078# the shell variables $as_echo and $as_echo_n. New code should use 10079# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 10080as_echo='printf %s\n' 10081as_echo_n='printf %s' 10082 10083rm -f conf$$ conf$$.exe conf$$.file 10084if test -d conf$$.dir; then 10085 rm -f conf$$.dir/conf$$.file 10086else 10087 rm -f conf$$.dir 10088 mkdir conf$$.dir 2>/dev/null 10089fi 10090if (echo >conf$$.file) 2>/dev/null; then 10091 if ln -s conf$$.file conf$$ 2>/dev/null; then 10092 as_ln_s='ln -s' 10093 # ... but there are two gotchas: 10094 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 10095 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 10096 # In both cases, we have to default to `cp -pR'. 10097 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 10098 as_ln_s='cp -pR' 10099 elif ln conf$$.file conf$$ 2>/dev/null; then 10100 as_ln_s=ln 10101 else 10102 as_ln_s='cp -pR' 10103 fi 10104else 10105 as_ln_s='cp -pR' 10106fi 10107rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 10108rmdir conf$$.dir 2>/dev/null 10109 10110 10111# as_fn_mkdir_p 10112# ------------- 10113# Create "$as_dir" as a directory, including parents if necessary. 10114as_fn_mkdir_p () 10115{ 10116 10117 case $as_dir in #( 10118 -*) as_dir=./$as_dir;; 10119 esac 10120 test -d "$as_dir" || eval $as_mkdir_p || { 10121 as_dirs= 10122 while :; do 10123 case $as_dir in #( 10124 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 10125 *) as_qdir=$as_dir;; 10126 esac 10127 as_dirs="'$as_qdir' $as_dirs" 10128 as_dir=`$as_dirname -- "$as_dir" || 10129$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10130 X"$as_dir" : 'X\(//\)[^/]' \| \ 10131 X"$as_dir" : 'X\(//\)$' \| \ 10132 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 10133printf "%s\n" X"$as_dir" | 10134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10135 s//\1/ 10136 q 10137 } 10138 /^X\(\/\/\)[^/].*/{ 10139 s//\1/ 10140 q 10141 } 10142 /^X\(\/\/\)$/{ 10143 s//\1/ 10144 q 10145 } 10146 /^X\(\/\).*/{ 10147 s//\1/ 10148 q 10149 } 10150 s/.*/./; q'` 10151 test -d "$as_dir" && break 10152 done 10153 test -z "$as_dirs" || eval "mkdir $as_dirs" 10154 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 10155 10156 10157} # as_fn_mkdir_p 10158if mkdir -p . 2>/dev/null; then 10159 as_mkdir_p='mkdir -p "$as_dir"' 10160else 10161 test -d ./-p && rmdir ./-p 10162 as_mkdir_p=false 10163fi 10164 10165 10166# as_fn_executable_p FILE 10167# ----------------------- 10168# Test if FILE is an executable regular file. 10169as_fn_executable_p () 10170{ 10171 test -f "$1" && test -x "$1" 10172} # as_fn_executable_p 10173as_test_x='test -x' 10174as_executable_p=as_fn_executable_p 10175 10176# Sed expression to map a string onto a valid CPP name. 10177as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 10178 10179# Sed expression to map a string onto a valid variable name. 10180as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 10181 10182 10183exec 6>&1 10184## ----------------------------------- ## 10185## Main body of $CONFIG_STATUS script. ## 10186## ----------------------------------- ## 10187_ASEOF 10188test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 10189 10190cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10191# Save the log message, to keep $0 and so on meaningful, and to 10192# report actual input values of CONFIG_FILES etc. instead of their 10193# values after options handling. 10194ac_log=" 10195This file was extended by tcpdump $as_me 4.99.5, which was 10196generated by GNU Autoconf 2.71. Invocation command line was 10197 10198 CONFIG_FILES = $CONFIG_FILES 10199 CONFIG_HEADERS = $CONFIG_HEADERS 10200 CONFIG_LINKS = $CONFIG_LINKS 10201 CONFIG_COMMANDS = $CONFIG_COMMANDS 10202 $ $0 $@ 10203 10204on `(hostname || uname -n) 2>/dev/null | sed 1q` 10205" 10206 10207_ACEOF 10208 10209case $ac_config_files in *" 10210"*) set x $ac_config_files; shift; ac_config_files=$*;; 10211esac 10212 10213case $ac_config_headers in *" 10214"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 10215esac 10216 10217 10218cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10219# Files that config.status was made for. 10220config_files="$ac_config_files" 10221config_headers="$ac_config_headers" 10222config_commands="$ac_config_commands" 10223 10224_ACEOF 10225 10226cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10227ac_cs_usage="\ 10228\`$as_me' instantiates files and other configuration actions 10229from templates according to the current configuration. Unless the files 10230and actions are specified as TAGs, all are instantiated by default. 10231 10232Usage: $0 [OPTION]... [TAG]... 10233 10234 -h, --help print this help, then exit 10235 -V, --version print version number and configuration settings, then exit 10236 --config print configuration, then exit 10237 -q, --quiet, --silent 10238 do not print progress messages 10239 -d, --debug don't remove temporary files 10240 --recheck update $as_me by reconfiguring in the same conditions 10241 --file=FILE[:TEMPLATE] 10242 instantiate the configuration file FILE 10243 --header=FILE[:TEMPLATE] 10244 instantiate the configuration header FILE 10245 10246Configuration files: 10247$config_files 10248 10249Configuration headers: 10250$config_headers 10251 10252Configuration commands: 10253$config_commands 10254 10255Report bugs to the package provider." 10256 10257_ACEOF 10258ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 10259ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 10260cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10261ac_cs_config='$ac_cs_config_escaped' 10262ac_cs_version="\\ 10263tcpdump config.status 4.99.5 10264configured by $0, generated by GNU Autoconf 2.71, 10265 with options \\"\$ac_cs_config\\" 10266 10267Copyright (C) 2021 Free Software Foundation, Inc. 10268This config.status script is free software; the Free Software Foundation 10269gives unlimited permission to copy, distribute and modify it." 10270 10271ac_pwd='$ac_pwd' 10272srcdir='$srcdir' 10273INSTALL='$INSTALL' 10274test -n "\$AWK" || AWK=awk 10275_ACEOF 10276 10277cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10278# The default lists apply if the user does not specify any file. 10279ac_need_defaults=: 10280while test $# != 0 10281do 10282 case $1 in 10283 --*=?*) 10284 ac_option=`expr "X$1" : 'X\([^=]*\)='` 10285 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 10286 ac_shift=: 10287 ;; 10288 --*=) 10289 ac_option=`expr "X$1" : 'X\([^=]*\)='` 10290 ac_optarg= 10291 ac_shift=: 10292 ;; 10293 *) 10294 ac_option=$1 10295 ac_optarg=$2 10296 ac_shift=shift 10297 ;; 10298 esac 10299 10300 case $ac_option in 10301 # Handling of the options. 10302 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 10303 ac_cs_recheck=: ;; 10304 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 10305 printf "%s\n" "$ac_cs_version"; exit ;; 10306 --config | --confi | --conf | --con | --co | --c ) 10307 printf "%s\n" "$ac_cs_config"; exit ;; 10308 --debug | --debu | --deb | --de | --d | -d ) 10309 debug=: ;; 10310 --file | --fil | --fi | --f ) 10311 $ac_shift 10312 case $ac_optarg in 10313 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 10314 '') as_fn_error $? "missing file argument" ;; 10315 esac 10316 as_fn_append CONFIG_FILES " '$ac_optarg'" 10317 ac_need_defaults=false;; 10318 --header | --heade | --head | --hea ) 10319 $ac_shift 10320 case $ac_optarg in 10321 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 10322 esac 10323 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 10324 ac_need_defaults=false;; 10325 --he | --h) 10326 # Conflict between --help and --header 10327 as_fn_error $? "ambiguous option: \`$1' 10328Try \`$0 --help' for more information.";; 10329 --help | --hel | -h ) 10330 printf "%s\n" "$ac_cs_usage"; exit ;; 10331 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10332 | -silent | --silent | --silen | --sile | --sil | --si | --s) 10333 ac_cs_silent=: ;; 10334 10335 # This is an error. 10336 -*) as_fn_error $? "unrecognized option: \`$1' 10337Try \`$0 --help' for more information." ;; 10338 10339 *) as_fn_append ac_config_targets " $1" 10340 ac_need_defaults=false ;; 10341 10342 esac 10343 shift 10344done 10345 10346ac_configure_extra_args= 10347 10348if $ac_cs_silent; then 10349 exec 6>/dev/null 10350 ac_configure_extra_args="$ac_configure_extra_args --silent" 10351fi 10352 10353_ACEOF 10354cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10355if \$ac_cs_recheck; then 10356 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 10357 shift 10358 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 10359 CONFIG_SHELL='$SHELL' 10360 export CONFIG_SHELL 10361 exec "\$@" 10362fi 10363 10364_ACEOF 10365cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10366exec 5>>config.log 10367{ 10368 echo 10369 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 10370## Running $as_me. ## 10371_ASBOX 10372 printf "%s\n" "$ac_log" 10373} >&5 10374 10375_ACEOF 10376cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10377# 10378# INIT-COMMANDS 10379# 10380 10381 10382_ACEOF 10383 10384cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10385 10386# Handling of arguments. 10387for ac_config_target in $ac_config_targets 10388do 10389 case $ac_config_target in 10390 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 10391 ".devel") CONFIG_COMMANDS="$CONFIG_COMMANDS .devel" ;; 10392 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 10393 "tcpdump.1") CONFIG_FILES="$CONFIG_FILES tcpdump.1" ;; 10394 10395 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 10396 esac 10397done 10398 10399 10400# If the user did not use the arguments to specify the items to instantiate, 10401# then the envvar interface is used. Set only those that are not. 10402# We use the long form for the default assignment because of an extremely 10403# bizarre bug on SunOS 4.1.3. 10404if $ac_need_defaults; then 10405 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 10406 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 10407 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 10408fi 10409 10410# Have a temporary directory for convenience. Make it in the build tree 10411# simply because there is no reason against having it here, and in addition, 10412# creating and moving files from /tmp can sometimes cause problems. 10413# Hook for its removal unless debugging. 10414# Note that there is a small window in which the directory will not be cleaned: 10415# after its creation but before its name has been assigned to `$tmp'. 10416$debug || 10417{ 10418 tmp= ac_tmp= 10419 trap 'exit_status=$? 10420 : "${ac_tmp:=$tmp}" 10421 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 10422' 0 10423 trap 'as_fn_exit 1' 1 2 13 15 10424} 10425# Create a (secure) tmp directory for tmp files. 10426 10427{ 10428 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 10429 test -d "$tmp" 10430} || 10431{ 10432 tmp=./conf$$-$RANDOM 10433 (umask 077 && mkdir "$tmp") 10434} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 10435ac_tmp=$tmp 10436 10437# Set up the scripts for CONFIG_FILES section. 10438# No need to generate them if there are no CONFIG_FILES. 10439# This happens for instance with `./config.status config.h'. 10440if test -n "$CONFIG_FILES"; then 10441 10442 10443ac_cr=`echo X | tr X '\015'` 10444# On cygwin, bash can eat \r inside `` if the user requested igncr. 10445# But we know of no other shell where ac_cr would be empty at this 10446# point, so we can use a bashism as a fallback. 10447if test "x$ac_cr" = x; then 10448 eval ac_cr=\$\'\\r\' 10449fi 10450ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 10451if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 10452 ac_cs_awk_cr='\\r' 10453else 10454 ac_cs_awk_cr=$ac_cr 10455fi 10456 10457echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 10458_ACEOF 10459 10460 10461{ 10462 echo "cat >conf$$subs.awk <<_ACEOF" && 10463 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 10464 echo "_ACEOF" 10465} >conf$$subs.sh || 10466 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 10467ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 10468ac_delim='%!_!# ' 10469for ac_last_try in false false false false false :; do 10470 . ./conf$$subs.sh || 10471 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 10472 10473 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 10474 if test $ac_delim_n = $ac_delim_num; then 10475 break 10476 elif $ac_last_try; then 10477 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 10478 else 10479 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 10480 fi 10481done 10482rm -f conf$$subs.sh 10483 10484cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10485cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 10486_ACEOF 10487sed -n ' 10488h 10489s/^/S["/; s/!.*/"]=/ 10490p 10491g 10492s/^[^!]*!// 10493:repl 10494t repl 10495s/'"$ac_delim"'$// 10496t delim 10497:nl 10498h 10499s/\(.\{148\}\)..*/\1/ 10500t more1 10501s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 10502p 10503n 10504b repl 10505:more1 10506s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 10507p 10508g 10509s/.\{148\}// 10510t nl 10511:delim 10512h 10513s/\(.\{148\}\)..*/\1/ 10514t more2 10515s/["\\]/\\&/g; s/^/"/; s/$/"/ 10516p 10517b 10518:more2 10519s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 10520p 10521g 10522s/.\{148\}// 10523t delim 10524' <conf$$subs.awk | sed ' 10525/^[^""]/{ 10526 N 10527 s/\n// 10528} 10529' >>$CONFIG_STATUS || ac_write_fail=1 10530rm -f conf$$subs.awk 10531cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10532_ACAWK 10533cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 10534 for (key in S) S_is_set[key] = 1 10535 FS = "" 10536 10537} 10538{ 10539 line = $ 0 10540 nfields = split(line, field, "@") 10541 substed = 0 10542 len = length(field[1]) 10543 for (i = 2; i < nfields; i++) { 10544 key = field[i] 10545 keylen = length(key) 10546 if (S_is_set[key]) { 10547 value = S[key] 10548 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 10549 len += length(value) + length(field[++i]) 10550 substed = 1 10551 } else 10552 len += 1 + keylen 10553 } 10554 10555 print line 10556} 10557 10558_ACAWK 10559_ACEOF 10560cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10561if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 10562 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 10563else 10564 cat 10565fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 10566 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 10567_ACEOF 10568 10569# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 10570# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 10571# trailing colons and then remove the whole line if VPATH becomes empty 10572# (actually we leave an empty line to preserve line numbers). 10573if test "x$srcdir" = x.; then 10574 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 10575h 10576s/// 10577s/^/:/ 10578s/[ ]*$/:/ 10579s/:\$(srcdir):/:/g 10580s/:\${srcdir}:/:/g 10581s/:@srcdir@:/:/g 10582s/^:*// 10583s/:*$// 10584x 10585s/\(=[ ]*\).*/\1/ 10586G 10587s/\n// 10588s/^[^=]*=[ ]*$// 10589}' 10590fi 10591 10592cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10593fi # test -n "$CONFIG_FILES" 10594 10595# Set up the scripts for CONFIG_HEADERS section. 10596# No need to generate them if there are no CONFIG_HEADERS. 10597# This happens for instance with `./config.status Makefile'. 10598if test -n "$CONFIG_HEADERS"; then 10599cat >"$ac_tmp/defines.awk" <<\_ACAWK || 10600BEGIN { 10601_ACEOF 10602 10603# Transform confdefs.h into an awk script `defines.awk', embedded as 10604# here-document in config.status, that substitutes the proper values into 10605# config.h.in to produce config.h. 10606 10607# Create a delimiter string that does not exist in confdefs.h, to ease 10608# handling of long lines. 10609ac_delim='%!_!# ' 10610for ac_last_try in false false :; do 10611 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 10612 if test -z "$ac_tt"; then 10613 break 10614 elif $ac_last_try; then 10615 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 10616 else 10617 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 10618 fi 10619done 10620 10621# For the awk script, D is an array of macro values keyed by name, 10622# likewise P contains macro parameters if any. Preserve backslash 10623# newline sequences. 10624 10625ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 10626sed -n ' 10627s/.\{148\}/&'"$ac_delim"'/g 10628t rset 10629:rset 10630s/^[ ]*#[ ]*define[ ][ ]*/ / 10631t def 10632d 10633:def 10634s/\\$// 10635t bsnl 10636s/["\\]/\\&/g 10637s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 10638D["\1"]=" \3"/p 10639s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 10640d 10641:bsnl 10642s/["\\]/\\&/g 10643s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 10644D["\1"]=" \3\\\\\\n"\\/p 10645t cont 10646s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 10647t cont 10648d 10649:cont 10650n 10651s/.\{148\}/&'"$ac_delim"'/g 10652t clear 10653:clear 10654s/\\$// 10655t bsnlc 10656s/["\\]/\\&/g; s/^/"/; s/$/"/p 10657d 10658:bsnlc 10659s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 10660b cont 10661' <confdefs.h | sed ' 10662s/'"$ac_delim"'/"\\\ 10663"/g' >>$CONFIG_STATUS || ac_write_fail=1 10664 10665cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10666 for (key in D) D_is_set[key] = 1 10667 FS = "" 10668} 10669/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 10670 line = \$ 0 10671 split(line, arg, " ") 10672 if (arg[1] == "#") { 10673 defundef = arg[2] 10674 mac1 = arg[3] 10675 } else { 10676 defundef = substr(arg[1], 2) 10677 mac1 = arg[2] 10678 } 10679 split(mac1, mac2, "(") #) 10680 macro = mac2[1] 10681 prefix = substr(line, 1, index(line, defundef) - 1) 10682 if (D_is_set[macro]) { 10683 # Preserve the white space surrounding the "#". 10684 print prefix "define", macro P[macro] D[macro] 10685 next 10686 } else { 10687 # Replace #undef with comments. This is necessary, for example, 10688 # in the case of _POSIX_SOURCE, which is predefined and required 10689 # on some systems where configure will not decide to define it. 10690 if (defundef == "undef") { 10691 print "/*", prefix defundef, macro, "*/" 10692 next 10693 } 10694 } 10695} 10696{ print } 10697_ACAWK 10698_ACEOF 10699cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10700 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 10701fi # test -n "$CONFIG_HEADERS" 10702 10703 10704eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 10705shift 10706for ac_tag 10707do 10708 case $ac_tag in 10709 :[FHLC]) ac_mode=$ac_tag; continue;; 10710 esac 10711 case $ac_mode$ac_tag in 10712 :[FHL]*:*);; 10713 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 10714 :[FH]-) ac_tag=-:-;; 10715 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 10716 esac 10717 ac_save_IFS=$IFS 10718 IFS=: 10719 set x $ac_tag 10720 IFS=$ac_save_IFS 10721 shift 10722 ac_file=$1 10723 shift 10724 10725 case $ac_mode in 10726 :L) ac_source=$1;; 10727 :[FH]) 10728 ac_file_inputs= 10729 for ac_f 10730 do 10731 case $ac_f in 10732 -) ac_f="$ac_tmp/stdin";; 10733 *) # Look for the file first in the build tree, then in the source tree 10734 # (if the path is not absolute). The absolute path cannot be DOS-style, 10735 # because $ac_f cannot contain `:'. 10736 test -f "$ac_f" || 10737 case $ac_f in 10738 [\\/$]*) false;; 10739 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 10740 esac || 10741 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 10742 esac 10743 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 10744 as_fn_append ac_file_inputs " '$ac_f'" 10745 done 10746 10747 # Let's still pretend it is `configure' which instantiates (i.e., don't 10748 # use $as_me), people would be surprised to read: 10749 # /* config.h. Generated by config.status. */ 10750 configure_input='Generated from '` 10751 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 10752 `' by configure.' 10753 if test x"$ac_file" != x-; then 10754 configure_input="$ac_file. $configure_input" 10755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 10756printf "%s\n" "$as_me: creating $ac_file" >&6;} 10757 fi 10758 # Neutralize special characters interpreted by sed in replacement strings. 10759 case $configure_input in #( 10760 *\&* | *\|* | *\\* ) 10761 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 10762 sed 's/[\\\\&|]/\\\\&/g'`;; #( 10763 *) ac_sed_conf_input=$configure_input;; 10764 esac 10765 10766 case $ac_tag in 10767 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 10768 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 10769 esac 10770 ;; 10771 esac 10772 10773 ac_dir=`$as_dirname -- "$ac_file" || 10774$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10775 X"$ac_file" : 'X\(//\)[^/]' \| \ 10776 X"$ac_file" : 'X\(//\)$' \| \ 10777 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 10778printf "%s\n" X"$ac_file" | 10779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10780 s//\1/ 10781 q 10782 } 10783 /^X\(\/\/\)[^/].*/{ 10784 s//\1/ 10785 q 10786 } 10787 /^X\(\/\/\)$/{ 10788 s//\1/ 10789 q 10790 } 10791 /^X\(\/\).*/{ 10792 s//\1/ 10793 q 10794 } 10795 s/.*/./; q'` 10796 as_dir="$ac_dir"; as_fn_mkdir_p 10797 ac_builddir=. 10798 10799case "$ac_dir" in 10800.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 10801*) 10802 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 10803 # A ".." for each directory in $ac_dir_suffix. 10804 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 10805 case $ac_top_builddir_sub in 10806 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 10807 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 10808 esac ;; 10809esac 10810ac_abs_top_builddir=$ac_pwd 10811ac_abs_builddir=$ac_pwd$ac_dir_suffix 10812# for backward compatibility: 10813ac_top_builddir=$ac_top_build_prefix 10814 10815case $srcdir in 10816 .) # We are building in place. 10817 ac_srcdir=. 10818 ac_top_srcdir=$ac_top_builddir_sub 10819 ac_abs_top_srcdir=$ac_pwd ;; 10820 [\\/]* | ?:[\\/]* ) # Absolute name. 10821 ac_srcdir=$srcdir$ac_dir_suffix; 10822 ac_top_srcdir=$srcdir 10823 ac_abs_top_srcdir=$srcdir ;; 10824 *) # Relative name. 10825 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 10826 ac_top_srcdir=$ac_top_build_prefix$srcdir 10827 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 10828esac 10829ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 10830 10831 10832 case $ac_mode in 10833 :F) 10834 # 10835 # CONFIG_FILE 10836 # 10837 10838 case $INSTALL in 10839 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 10840 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 10841 esac 10842_ACEOF 10843 10844cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10845# If the template does not know about datarootdir, expand it. 10846# FIXME: This hack should be removed a few years after 2.60. 10847ac_datarootdir_hack=; ac_datarootdir_seen= 10848ac_sed_dataroot=' 10849/datarootdir/ { 10850 p 10851 q 10852} 10853/@datadir@/p 10854/@docdir@/p 10855/@infodir@/p 10856/@localedir@/p 10857/@mandir@/p' 10858case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 10859*datarootdir*) ac_datarootdir_seen=yes;; 10860*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 10861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 10862printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 10863_ACEOF 10864cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10865 ac_datarootdir_hack=' 10866 s&@datadir@&$datadir&g 10867 s&@docdir@&$docdir&g 10868 s&@infodir@&$infodir&g 10869 s&@localedir@&$localedir&g 10870 s&@mandir@&$mandir&g 10871 s&\\\${datarootdir}&$datarootdir&g' ;; 10872esac 10873_ACEOF 10874 10875# Neutralize VPATH when `$srcdir' = `.'. 10876# Shell code in configure.ac might set extrasub. 10877# FIXME: do we really want to maintain this feature? 10878cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10879ac_sed_extra="$ac_vpsub 10880$extrasub 10881_ACEOF 10882cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10883:t 10884/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 10885s|@configure_input@|$ac_sed_conf_input|;t t 10886s&@top_builddir@&$ac_top_builddir_sub&;t t 10887s&@top_build_prefix@&$ac_top_build_prefix&;t t 10888s&@srcdir@&$ac_srcdir&;t t 10889s&@abs_srcdir@&$ac_abs_srcdir&;t t 10890s&@top_srcdir@&$ac_top_srcdir&;t t 10891s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 10892s&@builddir@&$ac_builddir&;t t 10893s&@abs_builddir@&$ac_abs_builddir&;t t 10894s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 10895s&@INSTALL@&$ac_INSTALL&;t t 10896$ac_datarootdir_hack 10897" 10898eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 10899 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 10900 10901test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 10902 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 10903 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 10904 "$ac_tmp/out"`; test -z "$ac_out"; } && 10905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 10906which seems to be undefined. Please make sure it is defined" >&5 10907printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 10908which seems to be undefined. Please make sure it is defined" >&2;} 10909 10910 rm -f "$ac_tmp/stdin" 10911 case $ac_file in 10912 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 10913 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 10914 esac \ 10915 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 10916 ;; 10917 :H) 10918 # 10919 # CONFIG_HEADER 10920 # 10921 if test x"$ac_file" != x-; then 10922 { 10923 printf "%s\n" "/* $configure_input */" >&1 \ 10924 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 10925 } >"$ac_tmp/config.h" \ 10926 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 10927 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 10928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 10929printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 10930 else 10931 rm -f "$ac_file" 10932 mv "$ac_tmp/config.h" "$ac_file" \ 10933 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 10934 fi 10935 else 10936 printf "%s\n" "/* $configure_input */" >&1 \ 10937 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 10938 || as_fn_error $? "could not create -" "$LINENO" 5 10939 fi 10940 ;; 10941 10942 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 10943printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 10944 ;; 10945 esac 10946 10947 10948 case $ac_file$ac_mode in 10949 ".devel":C) if test -f .devel; then 10950 echo timestamp > stamp-h 10951 cat $srcdir/Makefile-devel-adds >> Makefile 10952 make depend || exit 1 10953fi ;; 10954 10955 esac 10956done # for ac_tag 10957 10958 10959as_fn_exit 0 10960_ACEOF 10961ac_clean_files=$ac_clean_files_save 10962 10963test $ac_write_fail = 0 || 10964 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 10965 10966 10967# configure is writing to config.log, and then calls config.status. 10968# config.status does its own redirection, appending to config.log. 10969# Unfortunately, on DOS this fails, as config.log is still kept open 10970# by configure, so config.status won't be able to write to it; its 10971# output is simply discarded. So we exec the FD to /dev/null, 10972# effectively closing config.log, so it can be properly (re)opened and 10973# appended to by config.status. When coming back to configure, we 10974# need to make the FD available again. 10975if test "$no_create" != yes; then 10976 ac_cs_success=: 10977 ac_config_status_args= 10978 test "$silent" = yes && 10979 ac_config_status_args="$ac_config_status_args --quiet" 10980 exec 5>/dev/null 10981 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 10982 exec 5>>config.log 10983 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 10984 # would make configure fail if this is the last instruction. 10985 $ac_cs_success || as_fn_exit 1 10986fi 10987if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 10988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 10989printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 10990fi 10991 10992exit 0 10993 10994