1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.71 for tcpdump 4.99.6. 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 17 DUALCASE=1; export DUALCASE # for MKS sh 18 as_nop=: 19 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 20 then : 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 27 else $as_nop 28 case `(set -o) 2>/dev/null` in #( 29 *posix*) : 30 set -o posix ;; #( 31 *) : 32 ;; 33 esac 34 fi 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. 45 as_nl=' 46 ' 47 export as_nl 48 IFS=" "" $as_nl" 49 50 PS1='$ ' 51 PS2='> ' 52 PS4='+ ' 53 54 # Ensure predictable behavior from utilities with locale-dependent output. 55 LC_ALL=C 56 export LC_ALL 57 LANGUAGE=C 58 export 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). 65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 66 do eval test \${$as_var+y} \ 67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 68 done 69 70 # Ensure that fds 0, 1, and 2 are open. 71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 74 75 # The user is always right. 76 if ${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 } 82 fi 83 84 85 # Find who we are. Look in the path if we contain no directory separator. 86 as_myself= 87 case $0 in #(( 88 *[\\/]* ) as_myself=$0 ;; 89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 90 for as_dir in $PATH 91 do 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 100 IFS=$as_save_IFS 101 102 ;; 103 esac 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. 106 if test "x$as_myself" = x; then 107 as_myself=$0 108 fi 109 if 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 112 fi 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. 123 BASH_ENV=/dev/null 124 ENV=/dev/null 125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 126 case $- in # (((( 127 *v*x* | *x*v* ) as_opts=-vx ;; 128 *v* ) as_opts=-v ;; 129 *x* ) as_opts=-x ;; 130 * ) as_opts= ;; 131 esac 132 exec $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'. 135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 136 exit 255 137 fi 138 # We don't want this to propagate to other subprocesses. 139 { _as_can_reexec=; unset _as_can_reexec;} 140 if test "x$CONFIG_SHELL" = x; then 141 as_bourne_compatible="as_nop=: 142 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 143 then : 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 150 else \$as_nop 151 case \`(set -o) 2>/dev/null\` in #( 152 *posix*) : 153 set -o posix ;; #( 154 *) : 155 ;; 156 esac 157 fi 158 " 159 as_required="as_fn_return () { (exit \$1); } 160 as_fn_success () { as_fn_return 0; } 161 as_fn_failure () { as_fn_return 1; } 162 as_fn_ret_success () { return 0; } 163 as_fn_ret_failure () { return 1; } 164 165 exitcode=0 166 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 170 if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 171 then : 172 173 else \$as_nop 174 exitcode=1; echo positional parameters were not saved. 175 fi 176 test x\$exitcode = x0 || exit 1 177 blah=\$(echo \$(echo blah)) 178 test x\"\$blah\" = xblah || exit 1 179 test -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 184 test \$(( 1 + 1 )) = 2 || exit 1" 185 if (eval "$as_required") 2>/dev/null 186 then : 187 as_have_required=yes 188 else $as_nop 189 as_have_required=no 190 fi 191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 192 then : 193 194 else $as_nop 195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 196 as_found=false 197 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 198 do 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 213 then : 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 216 then : 217 break 2 218 fi 219 fi 220 done;; 221 esac 222 as_found=false 223 done 224 IFS=$as_save_IFS 225 if $as_found 226 then : 227 228 else $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 231 then : 232 CONFIG_SHELL=$SHELL as_have_required=yes 233 fi 234 fi 235 236 237 if test "x$CONFIG_SHELL" != x 238 then : 239 export CONFIG_SHELL 240 # We cannot yet assume a decent shell, so we have to provide a 241 # neutralization value for shells without unset; and this also 242 # works around shells that cannot unset nonexistent variables. 243 # Preserve -v and -x to the replacement shell. 244 BASH_ENV=/dev/null 245 ENV=/dev/null 246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 247 case $- in # (((( 248 *v*x* | *x*v* ) as_opts=-vx ;; 249 *v* ) as_opts=-v ;; 250 *x* ) as_opts=-x ;; 251 * ) as_opts= ;; 252 esac 253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 254 # Admittedly, this is quite paranoid, since all the known shells bail 255 # out after a failed `exec'. 256 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 257 exit 255 258 fi 259 260 if test x$as_have_required = xno 261 then : 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 (at] 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 274 fi 275 fi 276 fi 277 SHELL=${CONFIG_SHELL-/bin/sh} 278 export SHELL 279 # Unset more variables known to interfere with behavior of common tools. 280 CLICOLOR_FORCE= GREP_OPTIONS= 281 unset CLICOLOR_FORCE GREP_OPTIONS 282 283 ## --------------------- ## 284 ## M4sh Shell Functions. ## 285 ## --------------------- ## 286 # as_fn_unset VAR 287 # --------------- 288 # Portably unset VAR. 289 as_fn_unset () 290 { 291 { eval $1=; unset $1;} 292 } 293 as_unset=as_fn_unset 294 295 296 # as_fn_set_status STATUS 297 # ----------------------- 298 # Set $? to STATUS, without forking. 299 as_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. 307 as_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 $?. 316 as_fn_nop () 317 { 318 return $? 319 } 320 as_nop=as_fn_nop 321 322 # as_fn_mkdir_p 323 # ------------- 324 # Create "$as_dir" as a directory, including parents if necessary. 325 as_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 || 344 printf "%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. 373 as_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. 383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 384 then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389 else $as_nop 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394 fi # 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. 401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 402 then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407 else $as_nop 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412 fi # as_fn_arith 413 414 # as_fn_nop 415 # --------- 416 # Do nothing but, unlike ":", preserve the value of $?. 417 as_fn_nop () 418 { 419 return $? 420 } 421 as_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. 428 as_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 439 if expr a : '\(a\)' >/dev/null 2>&1 && 440 test "X`expr 00001 : '.*\(...\)'`" = X001; then 441 as_expr=expr 442 else 443 as_expr=false 444 fi 445 446 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 447 as_basename=basename 448 else 449 as_basename=false 450 fi 451 452 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 453 as_dirname=dirname 454 else 455 as_dirname=false 456 fi 457 458 as_me=`$as_basename -- "$0" || 459 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 460 X"$0" : 'X\(//\)$' \| \ 461 X"$0" : 'X\(/\)' \| . 2>/dev/null || 462 printf "%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. 478 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 479 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 480 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 481 as_cr_digits='0123456789' 482 as_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. 524 ECHO_C= ECHO_N= ECHO_T= 525 case `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';; 535 esac 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. 540 as_echo='printf %s\n' 541 as_echo_n='printf %s' 542 543 544 rm -f conf$$ conf$$.exe conf$$.file 545 if test -d conf$$.dir; then 546 rm -f conf$$.dir/conf$$.file 547 else 548 rm -f conf$$.dir 549 mkdir conf$$.dir 2>/dev/null 550 fi 551 if (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 565 else 566 as_ln_s='cp -pR' 567 fi 568 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 569 rmdir conf$$.dir 2>/dev/null 570 571 if mkdir -p . 2>/dev/null; then 572 as_mkdir_p='mkdir -p "$as_dir"' 573 else 574 test -d ./-p && rmdir ./-p 575 as_mkdir_p=false 576 fi 577 578 as_test_x='test -x' 579 as_executable_p=as_fn_executable_p 580 581 # Sed expression to map a string onto a valid CPP name. 582 as_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. 585 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 586 587 588 test -n "$DJDIR" || exec 7<&0 </dev/null 589 exec 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. 594 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 595 596 # 597 # Initializations. 598 # 599 ac_default_prefix=/usr/local 600 ac_clean_files= 601 ac_config_libobj_dir=. 602 LIBOBJS= 603 cross_compiling=no 604 subdirs= 605 MFLAGS= 606 MAKEFLAGS= 607 608 # Identity of this package. 609 PACKAGE_NAME='tcpdump' 610 PACKAGE_TARNAME='tcpdump' 611 PACKAGE_VERSION='4.99.6' 612 PACKAGE_STRING='tcpdump 4.99.6' 613 PACKAGE_BUGREPORT='' 614 PACKAGE_URL='' 615 616 ac_unique_file="tcpdump.c" 617 # Factoring default headers for most tests. 618 ac_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 648 ac_header_c_list= 649 ac_subst_vars='LTLIBOBJS 650 INSTALL_DATA 651 INSTALL_SCRIPT 652 INSTALL_PROGRAM 653 MAN_MISC_INFO 654 MAN_FILE_FORMATS 655 LOCALSRC 656 V_PCAPDEP 657 V_INCLS 658 V_DEFS 659 V_CCOPT 660 LIBCRYPTO_LIBS_STATIC 661 LIBCRYPTO_LIBS 662 LIBCRYPTO_CFLAGS 663 MKDEP 664 DEPENDENCY_CFLAG 665 AR 666 RANLIB 667 PCAP_CONFIG 668 LIBOBJS 669 EGREP 670 GREP 671 CPP 672 BREW 673 PKG_CONFIG_LIBDIR 674 PKG_CONFIG_PATH 675 PKG_CONFIG 676 OBJEXT 677 EXEEXT 678 ac_ct_CC 679 CPPFLAGS 680 LDFLAGS 681 CFLAGS 682 CC 683 SHLICC2 684 host_os 685 host_vendor 686 host_cpu 687 host 688 build_os 689 build_vendor 690 build_cpu 691 build 692 target_alias 693 host_alias 694 build_alias 695 LIBS 696 ECHO_T 697 ECHO_N 698 ECHO_C 699 DEFS 700 mandir 701 localedir 702 libdir 703 psdir 704 pdfdir 705 dvidir 706 htmldir 707 infodir 708 docdir 709 oldincludedir 710 includedir 711 runstatedir 712 localstatedir 713 sharedstatedir 714 sysconfdir 715 datadir 716 datarootdir 717 libexecdir 718 sbindir 719 bindir 720 program_transform_name 721 prefix 722 exec_prefix 723 PACKAGE_URL 724 PACKAGE_BUGREPORT 725 PACKAGE_STRING 726 PACKAGE_VERSION 727 PACKAGE_TARNAME 728 PACKAGE_NAME 729 PATH_SEPARATOR 730 SHELL' 731 ac_subst_files='' 732 ac_user_opts=' 733 enable_option_checking 734 with_gcc 735 enable_universal 736 with_smi 737 enable_instrument_functions 738 enable_smb 739 with_user 740 with_chroot 741 with_sandbox_capsicum 742 enable_local_libpcap 743 with_crypto 744 with_cap_ng 745 ' 746 ac_precious_vars='build_alias 747 host_alias 748 target_alias 749 CC 750 CFLAGS 751 LDFLAGS 752 LIBS 753 CPPFLAGS 754 PKG_CONFIG 755 PKG_CONFIG_PATH 756 PKG_CONFIG_LIBDIR 757 CPP 758 LIBCRYPTO_CFLAGS 759 LIBCRYPTO_LIBS 760 LIBCRYPTO_LIBS_STATIC' 761 762 763 # Initialize some variables set by options. 764 ac_init_help= 765 ac_init_version=false 766 ac_unrecognized_opts= 767 ac_unrecognized_sep= 768 # The variables have the same names as the options, with 769 # dashes changed to underlines. 770 cache_file=/dev/null 771 exec_prefix=NONE 772 no_create= 773 no_recursion= 774 prefix=NONE 775 program_prefix=NONE 776 program_suffix=NONE 777 program_transform_name=s,x,x, 778 silent= 779 site= 780 srcdir= 781 verbose= 782 x_includes=NONE 783 x_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.) 791 bindir='${exec_prefix}/bin' 792 sbindir='${exec_prefix}/sbin' 793 libexecdir='${exec_prefix}/libexec' 794 datarootdir='${prefix}/share' 795 datadir='${datarootdir}' 796 sysconfdir='${prefix}/etc' 797 sharedstatedir='${prefix}/com' 798 localstatedir='${prefix}/var' 799 runstatedir='${localstatedir}/run' 800 includedir='${prefix}/include' 801 oldincludedir='/usr/include' 802 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 803 infodir='${datarootdir}/info' 804 htmldir='${docdir}' 805 dvidir='${docdir}' 806 pdfdir='${docdir}' 807 psdir='${docdir}' 808 libdir='${exec_prefix}/lib' 809 localedir='${datarootdir}/locale' 810 mandir='${datarootdir}/man' 811 812 ac_prev= 813 ac_dashdash= 814 for ac_option 815 do 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' 1155 Try \`$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 1177 done 1178 1179 if test -n "$ac_prev"; then 1180 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1181 as_fn_error $? "missing argument to $ac_option" 1182 fi 1183 1184 if 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 1190 fi 1191 1192 # Check all directory arguments for consistency. 1193 for 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 1197 do 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" 1211 done 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. 1216 build=$build_alias 1217 host=$host_alias 1218 target=$target_alias 1219 1220 # FIXME: To remove some day. 1221 if 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 1227 fi 1228 1229 ac_tool_prefix= 1230 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1231 1232 test "$silent" = yes && exec 6>/dev/null 1233 1234 1235 ac_pwd=`pwd` && test -n "$ac_pwd" && 1236 ac_ls_di=`ls -di .` && 1237 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1238 as_fn_error $? "working directory cannot be determined" 1239 test "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. 1244 if 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 || 1252 printf "%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 1274 else 1275 ac_srcdir_defaulted=no 1276 fi 1277 if 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" 1280 fi 1281 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1282 ac_abs_confdir=`( 1283 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1284 pwd)` 1285 # When building in place, set srcdir=. 1286 if test "$ac_abs_confdir" = "$ac_pwd"; then 1287 srcdir=. 1288 fi 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. 1292 case $srcdir in 1293 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1294 esac 1295 for 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} 1300 done 1301 1302 # 1303 # Report the --help message. 1304 # 1305 if 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.6 to adapt to many kinds of systems. 1310 1311 Usage: $0 [OPTION]... [VAR=VALUE]... 1312 1313 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1314 VAR=VALUE. See below for descriptions of some of the useful variables. 1315 1316 Defaults for the options are specified in brackets. 1317 1318 Configuration: 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 1329 Installation 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 1335 By default, \`make install' will install all the files in 1336 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1337 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1338 for instance \`--prefix=\$HOME'. 1339 1340 For better control, use the options below. 1341 1342 Fine 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 1367 System 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 1371 fi 1372 1373 if test -n "$ac_init_help"; then 1374 case $ac_init_help in 1375 short | recursive ) echo "Configuration of tcpdump 4.99.6:";; 1376 esac 1377 cat <<\_ACEOF 1378 1379 Optional 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 1390 Optional 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 1404 Some 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 1425 Use these variables to override the choices made by `configure' or to help 1426 it to find libraries and programs with nonstandard names/locations. 1427 1428 Report bugs to the package provider. 1429 _ACEOF 1430 ac_status=$? 1431 fi 1432 1433 if 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 1441 case "$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 ;; 1451 esac 1452 ac_abs_top_builddir=$ac_pwd 1453 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1454 # for backward compatibility: 1455 ac_top_builddir=$ac_top_build_prefix 1456 1457 case $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 ;; 1470 esac 1471 ac_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 1487 fi 1488 1489 test -n "$ac_init_help" && exit $ac_status 1490 if $ac_init_version; then 1491 cat <<\_ACEOF 1492 tcpdump configure 4.99.6 1493 generated by GNU Autoconf 2.71 1494 1495 Copyright (C) 2021 Free Software Foundation, Inc. 1496 This configure script is free software; the Free Software Foundation 1497 gives unlimited permission to copy, distribute and modify it. 1498 _ACEOF 1499 exit 1500 fi 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. 1509 ac_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" 1514 case "(($ac_try" in 1515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1516 *) ac_try_echo=$ac_try;; 1517 esac 1518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1519 printf "%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 1532 then : 1533 ac_retval=0 1534 else $as_nop 1535 printf "%s\n" "$as_me: failed program was:" >&5 1536 sed 's/^/| /' conftest.$ac_ext >&5 1537 1538 ac_retval=1 1539 fi 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. 1549 ac_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 1553 printf %s "checking for $2... " >&6; } 1554 if eval test \${$3+y} 1555 then : 1556 printf %s "(cached) " >&6 1557 else $as_nop 1558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1559 /* end confdefs.h. */ 1560 $4 1561 #include <$2> 1562 _ACEOF 1563 if ac_fn_c_try_compile "$LINENO" 1564 then : 1565 eval "$3=yes" 1566 else $as_nop 1567 eval "$3=no" 1568 fi 1569 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1570 fi 1571 eval ac_res=\$$3 1572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1573 printf "%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. 1582 ac_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" 1586 case "(($ac_try" in 1587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1588 *) ac_try_echo=$ac_try;; 1589 esac 1590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1591 printf "%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;; 1599 esac 1600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1601 printf "%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; }; } 1606 then : 1607 ac_retval=0 1608 else $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 1611 sed 's/^/| /' conftest.$ac_ext >&5 1612 1613 ac_retval=$ac_status 1614 fi 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 1626 ac_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. 1631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1632 /* end confdefs.h. */ 1633 $4 1634 int 1635 main (void) 1636 { 1637 static int test_array [1 - 2 * !(($2) >= 0)]; 1638 test_array [0] = 0; 1639 return test_array [0]; 1640 1641 ; 1642 return 0; 1643 } 1644 _ACEOF 1645 if ac_fn_c_try_compile "$LINENO" 1646 then : 1647 ac_lo=0 ac_mid=0 1648 while :; do 1649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1650 /* end confdefs.h. */ 1651 $4 1652 int 1653 main (void) 1654 { 1655 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1656 test_array [0] = 0; 1657 return test_array [0]; 1658 1659 ; 1660 return 0; 1661 } 1662 _ACEOF 1663 if ac_fn_c_try_compile "$LINENO" 1664 then : 1665 ac_hi=$ac_mid; break 1666 else $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 1673 fi 1674 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1675 done 1676 else $as_nop 1677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1678 /* end confdefs.h. */ 1679 $4 1680 int 1681 main (void) 1682 { 1683 static int test_array [1 - 2 * !(($2) < 0)]; 1684 test_array [0] = 0; 1685 return test_array [0]; 1686 1687 ; 1688 return 0; 1689 } 1690 _ACEOF 1691 if ac_fn_c_try_compile "$LINENO" 1692 then : 1693 ac_hi=-1 ac_mid=-1 1694 while :; do 1695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1696 /* end confdefs.h. */ 1697 $4 1698 int 1699 main (void) 1700 { 1701 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 1702 test_array [0] = 0; 1703 return test_array [0]; 1704 1705 ; 1706 return 0; 1707 } 1708 _ACEOF 1709 if ac_fn_c_try_compile "$LINENO" 1710 then : 1711 ac_lo=$ac_mid; break 1712 else $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 1719 fi 1720 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1721 done 1722 else $as_nop 1723 ac_lo= ac_hi= 1724 fi 1725 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1726 fi 1727 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1728 # Binary search between lo and hi bounds. 1729 while 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 1734 int 1735 main (void) 1736 { 1737 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1738 test_array [0] = 0; 1739 return test_array [0]; 1740 1741 ; 1742 return 0; 1743 } 1744 _ACEOF 1745 if ac_fn_c_try_compile "$LINENO" 1746 then : 1747 ac_hi=$ac_mid 1748 else $as_nop 1749 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 1750 fi 1751 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1752 done 1753 case $ac_lo in #(( 1754 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 1755 '') ac_retval=1 ;; 1756 esac 1757 else 1758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1759 /* end confdefs.h. */ 1760 $4 1761 static long int longval (void) { return $2; } 1762 static unsigned long int ulongval (void) { return $2; } 1763 #include <stdio.h> 1764 #include <stdlib.h> 1765 int 1766 main (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 1794 if ac_fn_c_try_run "$LINENO" 1795 then : 1796 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 1797 else $as_nop 1798 ac_retval=1 1799 fi 1800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 1801 conftest.$ac_objext conftest.beam conftest.$ac_ext 1802 rm -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. 1813 ac_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" 1818 case "(($ac_try" in 1819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1820 *) ac_try_echo=$ac_try;; 1821 esac 1822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1823 printf "%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 } 1839 then : 1840 ac_retval=0 1841 else $as_nop 1842 printf "%s\n" "$as_me: failed program was:" >&5 1843 sed 's/^/| /' conftest.$ac_ext >&5 1844 1845 ac_retval=1 1846 fi 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 1860 ac_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 1864 printf %s "checking for $2... " >&6; } 1865 if eval test \${$3+y} 1866 then : 1867 printf %s "(cached) " >&6 1868 else $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 1885 extern "C" 1886 #endif 1887 char $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 1892 choke me 1893 #endif 1894 1895 int 1896 main (void) 1897 { 1898 return $2 (); 1899 ; 1900 return 0; 1901 } 1902 _ACEOF 1903 if ac_fn_c_try_link "$LINENO" 1904 then : 1905 eval "$3=yes" 1906 else $as_nop 1907 eval "$3=no" 1908 fi 1909 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1910 conftest$ac_exeext conftest.$ac_ext 1911 fi 1912 eval ac_res=\$$3 1913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1914 printf "%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. 1922 ac_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" 1926 case "(($ac_try" in 1927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1928 *) ac_try_echo=$ac_try;; 1929 esac 1930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1931 printf "%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 } 1944 then : 1945 ac_retval=0 1946 else $as_nop 1947 printf "%s\n" "$as_me: failed program was:" >&5 1948 sed 's/^/| /' conftest.$ac_ext >&5 1949 1950 ac_retval=1 1951 fi 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. 1961 ac_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 1966 printf %s "checking whether $as_decl_name is declared... " >&6; } 1967 if eval test \${$3+y} 1968 then : 1969 printf %s "(cached) " >&6 1970 else $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 1977 int 1978 main (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 1992 if ac_fn_c_try_compile "$LINENO" 1993 then : 1994 eval "$3=yes" 1995 else $as_nop 1996 eval "$3=no" 1997 fi 1998 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1999 eval $6=\$ac_save_FLAGS 2000 2001 fi 2002 eval ac_res=\$$3 2003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2004 printf "%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. 2013 ac_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 2017 printf %s "checking for $2... " >&6; } 2018 if eval test \${$3+y} 2019 then : 2020 printf %s "(cached) " >&6 2021 else $as_nop 2022 eval "$3=no" 2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2024 /* end confdefs.h. */ 2025 $4 2026 int 2027 main (void) 2028 { 2029 if (sizeof ($2)) 2030 return 0; 2031 ; 2032 return 0; 2033 } 2034 _ACEOF 2035 if ac_fn_c_try_compile "$LINENO" 2036 then : 2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2038 /* end confdefs.h. */ 2039 $4 2040 int 2041 main (void) 2042 { 2043 if (sizeof (($2))) 2044 return 0; 2045 ; 2046 return 0; 2047 } 2048 _ACEOF 2049 if ac_fn_c_try_compile "$LINENO" 2050 then : 2051 2052 else $as_nop 2053 eval "$3=yes" 2054 fi 2055 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2056 fi 2057 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2058 fi 2059 eval ac_res=\$$3 2060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2061 printf "%s\n" "$ac_res" >&6; } 2062 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2063 2064 } # ac_fn_c_check_type 2065 ac_configure_args_raw= 2066 for ac_arg 2067 do 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'" 2073 done 2074 2075 case $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"`;; 2083 esac 2084 2085 cat >config.log <<_ACEOF 2086 This file contains any messages produced by compilers while 2087 running configure, to aid debugging if configure makes a mistake. 2088 2089 It was created by tcpdump $as_me 4.99.6, which was 2090 generated by GNU Autoconf 2.71. Invocation command line was 2091 2092 $ $0$ac_configure_args_raw 2093 2094 _ACEOF 2095 exec 5>>config.log 2096 { 2097 cat <<_ASUNAME 2098 ## --------- ## 2099 ## Platform. ## 2100 ## --------- ## 2101 2102 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2103 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2104 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2105 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2106 uname -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 2121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2122 for as_dir in $PATH 2123 do 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 2132 IFS=$as_save_IFS 2133 2134 } >&5 2135 2136 cat >&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. 2151 ac_configure_args= 2152 ac_configure_args0= 2153 ac_configure_args1= 2154 ac_must_keep_next=false 2155 for ac_pass in 1 2 2156 do 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 2190 done 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. 2199 trap '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 2218 printf "%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 2288 for ac_signal in 1 2 13 15; do 2289 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2290 done 2291 ac_signal=0 2292 2293 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2294 rm -f -r conftest* confdefs.h 2295 2296 printf "%s\n" "/* confdefs.h */" > confdefs.h 2297 2298 # Predefined preprocessor variables. 2299 2300 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2301 2302 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2303 2304 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2305 2306 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2307 2308 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2309 2310 printf "%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. 2315 if test -n "$CONFIG_SITE"; then 2316 ac_site_files="$CONFIG_SITE" 2317 elif test "x$prefix" != xNONE; then 2318 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2319 else 2320 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2321 fi 2322 2323 for ac_site_file in $ac_site_files 2324 do 2325 case $ac_site_file in #( 2326 */*) : 2327 ;; #( 2328 *) : 2329 ac_site_file=./$ac_site_file ;; 2330 esac 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 2333 printf "%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 2337 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2338 as_fn_error $? "failed to load site script $ac_site_file 2339 See \`config.log' for more details" "$LINENO" 5; } 2340 fi 2341 done 2342 2343 if 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 2348 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2349 case $cache_file in 2350 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2351 *) . "./$cache_file";; 2352 esac 2353 fi 2354 else 2355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2356 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2357 >$cache_file 2358 fi 2359 2360 # Test code for whether the C compiler supports C89 (global declarations) 2361 ac_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> 2371 struct stat; 2372 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2373 struct buf { int x; }; 2374 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2375 static char *e (p, i) 2376 char **p; 2377 int i; 2378 { 2379 return p[i]; 2380 } 2381 static 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. */ 2398 int 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'\'' 2403 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2404 2405 int test (int i, double x); 2406 struct s1 {int (*f) (int a);}; 2407 struct s2 {int (*f) (double a);}; 2408 int 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). 2412 ac_c_conftest_c89_main=' 2413 ok |= (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) 2417 ac_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> 2424 extern int puts (const char *); 2425 extern int printf (const char *, ...); 2426 extern int dprintf (int, const char *, ...); 2427 extern 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__)) 2435 static void 2436 test_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 2457 static long long int bignum = -9223372036854775807LL; 2458 static unsigned long long int ubignum = BIG64; 2459 2460 struct incomplete_array 2461 { 2462 int datasize; 2463 double data[]; 2464 }; 2465 2466 struct named_init { 2467 int number; 2468 const wchar_t *name; 2469 double average; 2470 }; 2471 2472 typedef const char *ccp; 2473 2474 static inline int 2475 test_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. 2486 static bool 2487 test_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). 2523 ac_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) 2563 ac_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. 2570 char _Alignas (double) aligned_as_double; 2571 char _Alignas (0) no_special_alignment; 2572 extern char aligned_as_int; 2573 char _Alignas (0) _Alignas (int) aligned_as_int; 2574 2575 // Check _Alignof. 2576 enum 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. 2585 int _Noreturn does_not_return (void) { for (;;) continue; } 2586 2587 // Check _Static_assert. 2588 struct 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! 2598 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2599 2600 // Check duplicate typedefs. 2601 typedef long *long_ptr; 2602 typedef long int *long_ptr; 2603 typedef long_ptr long_ptr; 2604 2605 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2606 struct 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). 2617 ac_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). 2627 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2628 ${ac_c_conftest_c99_globals} 2629 ${ac_c_conftest_c11_globals} 2630 2631 int 2632 main (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). 2643 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2644 ${ac_c_conftest_c99_globals} 2645 2646 int 2647 main (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). 2657 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2658 2659 int 2660 main (int argc, char **argv) 2661 { 2662 int ok = 0; 2663 ${ac_c_conftest_c89_main} 2664 return ok; 2665 } 2666 " 2667 2668 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2669 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2670 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2671 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2672 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2673 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2674 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2675 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2676 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2677 2678 # Auxiliary files required by this configure script. 2679 ac_aux_files="install-sh config.guess config.sub" 2680 2681 # Locations in which to look for auxiliary files. 2682 ac_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. 2689 ac_missing_aux_files="" 2690 ac_first_candidate=: 2691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2693 as_found=false 2694 for as_dir in $ac_aux_dir_candidates 2695 do 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 2751 done 2752 IFS=$as_save_IFS 2753 if $as_found 2754 then : 2755 2756 else $as_nop 2757 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2758 fi 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. 2765 if test -f "${ac_aux_dir}config.guess"; then 2766 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2767 fi 2768 if test -f "${ac_aux_dir}config.sub"; then 2769 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2770 fi 2771 if test -f "$ac_aux_dir/configure"; then 2772 ac_configure="$SHELL ${ac_aux_dir}configure" 2773 fi 2774 2775 # Check that the precious variables saved in the cache have kept the same 2776 # value. 2777 ac_cache_corrupted=false 2778 for 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 2786 printf "%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 2790 printf "%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 2800 printf "%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 2804 printf "%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 2808 printf "%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 2810 printf "%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 2824 done 2825 if $ac_cache_corrupted; then 2826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2827 printf "%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 2829 printf "%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 2832 fi 2833 ## -------------------- ## 2834 ## Main body of script. ## 2835 ## -------------------- ## 2836 2837 ac_ext=c 2838 ac_cpp='$CPP $CPPFLAGS' 2839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2841 ac_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 2854 printf %s "checking build system type... " >&6; } 2855 if test ${ac_cv_build+y} 2856 then : 2857 printf %s "(cached) " >&6 2858 else $as_nop 2859 ac_build_alias=$build_alias 2860 test "x$ac_build_alias" = x && 2861 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 2862 test "x$ac_build_alias" = x && 2863 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2864 ac_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 2867 fi 2868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2869 printf "%s\n" "$ac_cv_build" >&6; } 2870 case $ac_cv_build in 2871 *-*-*) ;; 2872 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2873 esac 2874 build=$ac_cv_build 2875 ac_save_IFS=$IFS; IFS='-' 2876 set x $ac_cv_build 2877 shift 2878 build_cpu=$1 2879 build_vendor=$2 2880 shift; shift 2881 # Remember, the first character of IFS is used to create $*, 2882 # except with old shells: 2883 build_os=$* 2884 IFS=$ac_save_IFS 2885 case $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 2889 printf %s "checking host system type... " >&6; } 2890 if test ${ac_cv_host+y} 2891 then : 2892 printf %s "(cached) " >&6 2893 else $as_nop 2894 if test "x$host_alias" = x; then 2895 ac_cv_host=$ac_cv_build 2896 else 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 2899 fi 2900 2901 fi 2902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2903 printf "%s\n" "$ac_cv_host" >&6; } 2904 case $ac_cv_host in 2905 *-*-*) ;; 2906 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2907 esac 2908 host=$ac_cv_host 2909 ac_save_IFS=$IFS; IFS='-' 2910 set x $ac_cv_host 2911 shift 2912 host_cpu=$1 2913 host_vendor=$2 2914 shift; shift 2915 # Remember, the first character of IFS is used to create $*, 2916 # except with old shells: 2917 host_os=$* 2918 IFS=$ac_save_IFS 2919 case $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. 2929 if test ${with_gcc+y} 2930 then : 2931 withval=$with_gcc; 2932 fi 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. 2946 set dummy shlicc2; ac_word=$2 2947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2948 printf %s "checking for $ac_word... " >&6; } 2949 if test ${ac_cv_prog_SHLICC2+y} 2950 then : 2951 printf %s "(cached) " >&6 2952 else $as_nop 2953 if test -n "$SHLICC2"; then 2954 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test. 2955 else 2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2957 for as_dir in $PATH 2958 do 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 2971 done 2972 done 2973 IFS=$as_save_IFS 2974 2975 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no" 2976 fi 2977 fi 2978 SHLICC2=$ac_cv_prog_SHLICC2 2979 if test -n "$SHLICC2"; then 2980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHLICC2" >&5 2981 printf "%s\n" "$SHLICC2" >&6; } 2982 else 2983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2984 printf "%s\n" "no" >&6; } 2985 fi 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 3013 ac_ext=c 3014 ac_cpp='$CPP $CPPFLAGS' 3015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3017 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3018 if 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. 3020 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3022 printf %s "checking for $ac_word... " >&6; } 3023 if test ${ac_cv_prog_CC+y} 3024 then : 3025 printf %s "(cached) " >&6 3026 else $as_nop 3027 if test -n "$CC"; then 3028 ac_cv_prog_CC="$CC" # Let the user override the test. 3029 else 3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3031 for as_dir in $PATH 3032 do 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 3045 done 3046 done 3047 IFS=$as_save_IFS 3048 3049 fi 3050 fi 3051 CC=$ac_cv_prog_CC 3052 if test -n "$CC"; then 3053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3054 printf "%s\n" "$CC" >&6; } 3055 else 3056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3057 printf "%s\n" "no" >&6; } 3058 fi 3059 3060 3061 fi 3062 if 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. 3065 set dummy gcc; ac_word=$2 3066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3067 printf %s "checking for $ac_word... " >&6; } 3068 if test ${ac_cv_prog_ac_ct_CC+y} 3069 then : 3070 printf %s "(cached) " >&6 3071 else $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. 3074 else 3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3076 for as_dir in $PATH 3077 do 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 3090 done 3091 done 3092 IFS=$as_save_IFS 3093 3094 fi 3095 fi 3096 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3097 if test -n "$ac_ct_CC"; then 3098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3099 printf "%s\n" "$ac_ct_CC" >&6; } 3100 else 3101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3102 printf "%s\n" "no" >&6; } 3103 fi 3104 3105 if test "x$ac_ct_CC" = x; then 3106 CC="" 3107 else 3108 case $cross_compiling:$ac_tool_warned in 3109 yes:) 3110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3111 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3112 ac_tool_warned=yes ;; 3113 esac 3114 CC=$ac_ct_CC 3115 fi 3116 else 3117 CC="$ac_cv_prog_CC" 3118 fi 3119 3120 if 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. 3123 set dummy ${ac_tool_prefix}cc; ac_word=$2 3124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3125 printf %s "checking for $ac_word... " >&6; } 3126 if test ${ac_cv_prog_CC+y} 3127 then : 3128 printf %s "(cached) " >&6 3129 else $as_nop 3130 if test -n "$CC"; then 3131 ac_cv_prog_CC="$CC" # Let the user override the test. 3132 else 3133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3134 for as_dir in $PATH 3135 do 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 3148 done 3149 done 3150 IFS=$as_save_IFS 3151 3152 fi 3153 fi 3154 CC=$ac_cv_prog_CC 3155 if test -n "$CC"; then 3156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3157 printf "%s\n" "$CC" >&6; } 3158 else 3159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3160 printf "%s\n" "no" >&6; } 3161 fi 3162 3163 3164 fi 3165 fi 3166 if test -z "$CC"; then 3167 # Extract the first word of "cc", so it can be a program name with args. 3168 set dummy cc; ac_word=$2 3169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3170 printf %s "checking for $ac_word... " >&6; } 3171 if test ${ac_cv_prog_CC+y} 3172 then : 3173 printf %s "(cached) " >&6 3174 else $as_nop 3175 if test -n "$CC"; then 3176 ac_cv_prog_CC="$CC" # Let the user override the test. 3177 else 3178 ac_prog_rejected=no 3179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3180 for as_dir in $PATH 3181 do 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 3198 done 3199 done 3200 IFS=$as_save_IFS 3201 3202 if 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 3213 fi 3214 fi 3215 fi 3216 CC=$ac_cv_prog_CC 3217 if test -n "$CC"; then 3218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3219 printf "%s\n" "$CC" >&6; } 3220 else 3221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3222 printf "%s\n" "no" >&6; } 3223 fi 3224 3225 3226 fi 3227 if 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. 3232 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3234 printf %s "checking for $ac_word... " >&6; } 3235 if test ${ac_cv_prog_CC+y} 3236 then : 3237 printf %s "(cached) " >&6 3238 else $as_nop 3239 if test -n "$CC"; then 3240 ac_cv_prog_CC="$CC" # Let the user override the test. 3241 else 3242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3243 for as_dir in $PATH 3244 do 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 3257 done 3258 done 3259 IFS=$as_save_IFS 3260 3261 fi 3262 fi 3263 CC=$ac_cv_prog_CC 3264 if test -n "$CC"; then 3265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3266 printf "%s\n" "$CC" >&6; } 3267 else 3268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3269 printf "%s\n" "no" >&6; } 3270 fi 3271 3272 3273 test -n "$CC" && break 3274 done 3275 fi 3276 if test -z "$CC"; then 3277 ac_ct_CC=$CC 3278 for ac_prog in cl.exe 3279 do 3280 # Extract the first word of "$ac_prog", so it can be a program name with args. 3281 set dummy $ac_prog; ac_word=$2 3282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3283 printf %s "checking for $ac_word... " >&6; } 3284 if test ${ac_cv_prog_ac_ct_CC+y} 3285 then : 3286 printf %s "(cached) " >&6 3287 else $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. 3290 else 3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3292 for as_dir in $PATH 3293 do 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 3306 done 3307 done 3308 IFS=$as_save_IFS 3309 3310 fi 3311 fi 3312 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3313 if test -n "$ac_ct_CC"; then 3314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3315 printf "%s\n" "$ac_ct_CC" >&6; } 3316 else 3317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3318 printf "%s\n" "no" >&6; } 3319 fi 3320 3321 3322 test -n "$ac_ct_CC" && break 3323 done 3324 3325 if test "x$ac_ct_CC" = x; then 3326 CC="" 3327 else 3328 case $cross_compiling:$ac_tool_warned in 3329 yes:) 3330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3331 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3332 ac_tool_warned=yes ;; 3333 esac 3334 CC=$ac_ct_CC 3335 fi 3336 fi 3337 3338 fi 3339 if 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. 3342 set dummy ${ac_tool_prefix}clang; ac_word=$2 3343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3344 printf %s "checking for $ac_word... " >&6; } 3345 if test ${ac_cv_prog_CC+y} 3346 then : 3347 printf %s "(cached) " >&6 3348 else $as_nop 3349 if test -n "$CC"; then 3350 ac_cv_prog_CC="$CC" # Let the user override the test. 3351 else 3352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3353 for as_dir in $PATH 3354 do 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 3367 done 3368 done 3369 IFS=$as_save_IFS 3370 3371 fi 3372 fi 3373 CC=$ac_cv_prog_CC 3374 if test -n "$CC"; then 3375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3376 printf "%s\n" "$CC" >&6; } 3377 else 3378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3379 printf "%s\n" "no" >&6; } 3380 fi 3381 3382 3383 fi 3384 if 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. 3387 set dummy clang; ac_word=$2 3388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3389 printf %s "checking for $ac_word... " >&6; } 3390 if test ${ac_cv_prog_ac_ct_CC+y} 3391 then : 3392 printf %s "(cached) " >&6 3393 else $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. 3396 else 3397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3398 for as_dir in $PATH 3399 do 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 3412 done 3413 done 3414 IFS=$as_save_IFS 3415 3416 fi 3417 fi 3418 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3419 if test -n "$ac_ct_CC"; then 3420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3421 printf "%s\n" "$ac_ct_CC" >&6; } 3422 else 3423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3424 printf "%s\n" "no" >&6; } 3425 fi 3426 3427 if test "x$ac_ct_CC" = x; then 3428 CC="" 3429 else 3430 case $cross_compiling:$ac_tool_warned in 3431 yes:) 3432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3433 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3434 ac_tool_warned=yes ;; 3435 esac 3436 CC=$ac_ct_CC 3437 fi 3438 else 3439 CC="$ac_cv_prog_CC" 3440 fi 3441 3442 fi 3443 3444 3445 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3446 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3447 as_fn_error $? "no acceptable C compiler found in \$PATH 3448 See \`config.log' for more details" "$LINENO" 5; } 3449 3450 # Provide some information about the compiler. 3451 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3452 set X $ac_compile 3453 ac_compiler=$2 3454 for ac_option in --version -v -V -qversion -version; do 3455 { { ac_try="$ac_compiler $ac_option >&5" 3456 case "(($ac_try" in 3457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3458 *) ac_try_echo=$ac_try;; 3459 esac 3460 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3461 printf "%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; } 3473 done 3474 3475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3476 /* end confdefs.h. */ 3477 3478 int 3479 main (void) 3480 { 3481 3482 ; 3483 return 0; 3484 } 3485 _ACEOF 3486 ac_clean_files_save=$ac_clean_files 3487 ac_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 3492 printf %s "checking whether the C compiler works... " >&6; } 3493 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3494 3495 # The possible output files: 3496 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3497 3498 ac_rmfiles= 3499 for ac_file in $ac_files 3500 do 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 3505 done 3506 rm -f $ac_rmfiles 3507 3508 if { { ac_try="$ac_link_default" 3509 case "(($ac_try" in 3510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3511 *) ac_try_echo=$ac_try;; 3512 esac 3513 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3514 printf "%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; } 3519 then : 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. 3525 for ac_file in $ac_files '' 3526 do 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 3549 done 3550 test "$ac_cv_exeext" = no && ac_cv_exeext= 3551 3552 else $as_nop 3553 ac_file='' 3554 fi 3555 if test -z "$ac_file" 3556 then : 3557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3558 printf "%s\n" "no" >&6; } 3559 printf "%s\n" "$as_me: failed program was:" >&5 3560 sed 's/^/| /' conftest.$ac_ext >&5 3561 3562 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3563 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3564 as_fn_error 77 "C compiler cannot create executables 3565 See \`config.log' for more details" "$LINENO" 5; } 3566 else $as_nop 3567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3568 printf "%s\n" "yes" >&6; } 3569 fi 3570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3571 printf %s "checking for C compiler default output file name... " >&6; } 3572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3573 printf "%s\n" "$ac_file" >&6; } 3574 ac_exeext=$ac_cv_exeext 3575 3576 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3577 ac_clean_files=$ac_clean_files_save 3578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3579 printf %s "checking for suffix of executables... " >&6; } 3580 if { { ac_try="$ac_link" 3581 case "(($ac_try" in 3582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3583 *) ac_try_echo=$ac_try;; 3584 esac 3585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3586 printf "%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; } 3591 then : 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'. 3596 for 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 3604 done 3605 else $as_nop 3606 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3607 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3608 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3609 See \`config.log' for more details" "$LINENO" 5; } 3610 fi 3611 rm -f conftest conftest$ac_cv_exeext 3612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3613 printf "%s\n" "$ac_cv_exeext" >&6; } 3614 3615 rm -f conftest.$ac_ext 3616 EXEEXT=$ac_cv_exeext 3617 ac_exeext=$EXEEXT 3618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3619 /* end confdefs.h. */ 3620 #include <stdio.h> 3621 int 3622 main (void) 3623 { 3624 FILE *f = fopen ("conftest.out", "w"); 3625 return ferror (f) || fclose (f) != 0; 3626 3627 ; 3628 return 0; 3629 } 3630 _ACEOF 3631 ac_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 3635 printf %s "checking whether we are cross compiling... " >&6; } 3636 if test "$cross_compiling" != yes; then 3637 { { ac_try="$ac_link" 3638 case "(($ac_try" in 3639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3640 *) ac_try_echo=$ac_try;; 3641 esac 3642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3643 printf "%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;; 3652 esac 3653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3654 printf "%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 3665 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3666 as_fn_error 77 "cannot run C compiled programs. 3667 If you meant to cross compile, use \`--host'. 3668 See \`config.log' for more details" "$LINENO" 5; } 3669 fi 3670 fi 3671 fi 3672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3673 printf "%s\n" "$cross_compiling" >&6; } 3674 3675 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3676 ac_clean_files=$ac_clean_files_save 3677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3678 printf %s "checking for suffix of object files... " >&6; } 3679 if test ${ac_cv_objext+y} 3680 then : 3681 printf %s "(cached) " >&6 3682 else $as_nop 3683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3684 /* end confdefs.h. */ 3685 3686 int 3687 main (void) 3688 { 3689 3690 ; 3691 return 0; 3692 } 3693 _ACEOF 3694 rm -f conftest.o conftest.obj 3695 if { { ac_try="$ac_compile" 3696 case "(($ac_try" in 3697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3698 *) ac_try_echo=$ac_try;; 3699 esac 3700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3701 printf "%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; } 3706 then : 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 3714 done 3715 else $as_nop 3716 printf "%s\n" "$as_me: failed program was:" >&5 3717 sed 's/^/| /' conftest.$ac_ext >&5 3718 3719 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3720 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3721 as_fn_error $? "cannot compute suffix of object files: cannot compile 3722 See \`config.log' for more details" "$LINENO" 5; } 3723 fi 3724 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3725 fi 3726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3727 printf "%s\n" "$ac_cv_objext" >&6; } 3728 OBJEXT=$ac_cv_objext 3729 ac_objext=$OBJEXT 3730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3731 printf %s "checking whether the compiler supports GNU C... " >&6; } 3732 if test ${ac_cv_c_compiler_gnu+y} 3733 then : 3734 printf %s "(cached) " >&6 3735 else $as_nop 3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3737 /* end confdefs.h. */ 3738 3739 int 3740 main (void) 3741 { 3742 #ifndef __GNUC__ 3743 choke me 3744 #endif 3745 3746 ; 3747 return 0; 3748 } 3749 _ACEOF 3750 if ac_fn_c_try_compile "$LINENO" 3751 then : 3752 ac_compiler_gnu=yes 3753 else $as_nop 3754 ac_compiler_gnu=no 3755 fi 3756 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3757 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3758 3759 fi 3760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3761 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3762 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3763 3764 if test $ac_compiler_gnu = yes; then 3765 GCC=yes 3766 else 3767 GCC= 3768 fi 3769 ac_test_CFLAGS=${CFLAGS+y} 3770 ac_save_CFLAGS=$CFLAGS 3771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3772 printf %s "checking whether $CC accepts -g... " >&6; } 3773 if test ${ac_cv_prog_cc_g+y} 3774 then : 3775 printf %s "(cached) " >&6 3776 else $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 3784 int 3785 main (void) 3786 { 3787 3788 ; 3789 return 0; 3790 } 3791 _ACEOF 3792 if ac_fn_c_try_compile "$LINENO" 3793 then : 3794 ac_cv_prog_cc_g=yes 3795 else $as_nop 3796 CFLAGS="" 3797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3798 /* end confdefs.h. */ 3799 3800 int 3801 main (void) 3802 { 3803 3804 ; 3805 return 0; 3806 } 3807 _ACEOF 3808 if ac_fn_c_try_compile "$LINENO" 3809 then : 3810 3811 else $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 3817 int 3818 main (void) 3819 { 3820 3821 ; 3822 return 0; 3823 } 3824 _ACEOF 3825 if ac_fn_c_try_compile "$LINENO" 3826 then : 3827 ac_cv_prog_cc_g=yes 3828 fi 3829 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3830 fi 3831 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3832 fi 3833 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3834 ac_c_werror_flag=$ac_save_c_werror_flag 3835 fi 3836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3837 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3838 if test $ac_test_CFLAGS; then 3839 CFLAGS=$ac_save_CFLAGS 3840 elif 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 3846 else 3847 if test "$GCC" = yes; then 3848 CFLAGS="-O2" 3849 else 3850 CFLAGS= 3851 fi 3852 fi 3853 ac_prog_cc_stdc=no 3854 if test x$ac_prog_cc_stdc = xno 3855 then : 3856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3857 printf %s "checking for $CC option to enable C11 features... " >&6; } 3858 if test ${ac_cv_prog_cc_c11+y} 3859 then : 3860 printf %s "(cached) " >&6 3861 else $as_nop 3862 ac_cv_prog_cc_c11=no 3863 ac_save_CC=$CC 3864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3865 /* end confdefs.h. */ 3866 $ac_c_conftest_c11_program 3867 _ACEOF 3868 for ac_arg in '' -std=gnu11 3869 do 3870 CC="$ac_save_CC $ac_arg" 3871 if ac_fn_c_try_compile "$LINENO" 3872 then : 3873 ac_cv_prog_cc_c11=$ac_arg 3874 fi 3875 rm -f core conftest.err conftest.$ac_objext conftest.beam 3876 test "x$ac_cv_prog_cc_c11" != "xno" && break 3877 done 3878 rm -f conftest.$ac_ext 3879 CC=$ac_save_CC 3880 fi 3881 3882 if test "x$ac_cv_prog_cc_c11" = xno 3883 then : 3884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3885 printf "%s\n" "unsupported" >&6; } 3886 else $as_nop 3887 if test "x$ac_cv_prog_cc_c11" = x 3888 then : 3889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3890 printf "%s\n" "none needed" >&6; } 3891 else $as_nop 3892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3893 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3894 CC="$CC $ac_cv_prog_cc_c11" 3895 fi 3896 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3897 ac_prog_cc_stdc=c11 3898 fi 3899 fi 3900 if test x$ac_prog_cc_stdc = xno 3901 then : 3902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3903 printf %s "checking for $CC option to enable C99 features... " >&6; } 3904 if test ${ac_cv_prog_cc_c99+y} 3905 then : 3906 printf %s "(cached) " >&6 3907 else $as_nop 3908 ac_cv_prog_cc_c99=no 3909 ac_save_CC=$CC 3910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3911 /* end confdefs.h. */ 3912 $ac_c_conftest_c99_program 3913 _ACEOF 3914 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3915 do 3916 CC="$ac_save_CC $ac_arg" 3917 if ac_fn_c_try_compile "$LINENO" 3918 then : 3919 ac_cv_prog_cc_c99=$ac_arg 3920 fi 3921 rm -f core conftest.err conftest.$ac_objext conftest.beam 3922 test "x$ac_cv_prog_cc_c99" != "xno" && break 3923 done 3924 rm -f conftest.$ac_ext 3925 CC=$ac_save_CC 3926 fi 3927 3928 if test "x$ac_cv_prog_cc_c99" = xno 3929 then : 3930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3931 printf "%s\n" "unsupported" >&6; } 3932 else $as_nop 3933 if test "x$ac_cv_prog_cc_c99" = x 3934 then : 3935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3936 printf "%s\n" "none needed" >&6; } 3937 else $as_nop 3938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3939 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3940 CC="$CC $ac_cv_prog_cc_c99" 3941 fi 3942 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3943 ac_prog_cc_stdc=c99 3944 fi 3945 fi 3946 if test x$ac_prog_cc_stdc = xno 3947 then : 3948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3949 printf %s "checking for $CC option to enable C89 features... " >&6; } 3950 if test ${ac_cv_prog_cc_c89+y} 3951 then : 3952 printf %s "(cached) " >&6 3953 else $as_nop 3954 ac_cv_prog_cc_c89=no 3955 ac_save_CC=$CC 3956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3957 /* end confdefs.h. */ 3958 $ac_c_conftest_c89_program 3959 _ACEOF 3960 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3961 do 3962 CC="$ac_save_CC $ac_arg" 3963 if ac_fn_c_try_compile "$LINENO" 3964 then : 3965 ac_cv_prog_cc_c89=$ac_arg 3966 fi 3967 rm -f core conftest.err conftest.$ac_objext conftest.beam 3968 test "x$ac_cv_prog_cc_c89" != "xno" && break 3969 done 3970 rm -f conftest.$ac_ext 3971 CC=$ac_save_CC 3972 fi 3973 3974 if test "x$ac_cv_prog_cc_c89" = xno 3975 then : 3976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3977 printf "%s\n" "unsupported" >&6; } 3978 else $as_nop 3979 if test "x$ac_cv_prog_cc_c89" = x 3980 then : 3981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3982 printf "%s\n" "none needed" >&6; } 3983 else $as_nop 3984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3985 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3986 CC="$CC $ac_cv_prog_cc_c89" 3987 fi 3988 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3989 ac_prog_cc_stdc=c89 3990 fi 3991 fi 3992 3993 ac_ext=c 3994 ac_cpp='$CPP $CPPFLAGS' 3995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3997 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3998 3999 4000 if 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 4002 printf "%s\n" "$as_me: WARNING: The C compiler does not support C99; there may be compiler errors" >&2;} 4003 fi 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 4101 printf %s "checking that Ultrix $CC hacks const in prototypes... " >&6; } 4102 if test ${ac_cv_lbl_cc_const_proto+y} 4103 then : 4104 printf %s "(cached) " >&6 4105 else $as_nop 4106 4107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4108 /* end confdefs.h. */ 4109 #include <sys/types.h> 4110 int 4111 main (void) 4112 { 4113 struct a { int b; }; 4114 void c(const struct a *) 4115 ; 4116 return 0; 4117 } 4118 _ACEOF 4119 if ac_fn_c_try_compile "$LINENO" 4120 then : 4121 ac_cv_lbl_cc_const_proto=yes 4122 else $as_nop 4123 ac_cv_lbl_cc_const_proto=no 4124 fi 4125 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4126 fi 4127 4128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_const_proto" >&5 4129 printf "%s\n" "$ac_cv_lbl_cc_const_proto" >&6; } 4130 if test $ac_cv_lbl_cc_const_proto = no ; then 4131 4132 printf "%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 4141 printf %s "checking for inline... " >&6; } 4142 save_CFLAGS="$CFLAGS" 4143 CFLAGS="$V_CCOPT" 4144 if test ${ac_cv_lbl_inline+y} 4145 then : 4146 printf %s "(cached) " >&6 4147 else $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 } 4169 int 4170 main (void) 4171 { 4172 4173 ; 4174 return 0; 4175 } 4176 _ACEOF 4177 if ac_fn_c_try_compile "$LINENO" 4178 then : 4179 ac_lbl_cc_inline=yes 4180 fi 4181 rm -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 4189 fi 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 4194 printf "%s\n" "$ac_cv_lbl_inline" >&6; } 4195 else 4196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4197 printf "%s\n" "no" >&6; } 4198 fi 4199 4200 printf "%s\n" "#define inline $ac_cv_lbl_inline" >>confdefs.h 4201 4202 4203 ac_header= ac_cache= 4204 for ac_item in $ac_header_c_list 4205 do 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 4217 done 4218 4219 4220 4221 4222 4223 4224 4225 4226 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4227 then : 4228 4229 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4230 4231 fi 4232 ac_fn_c_check_header_compile "$LINENO" "rpc/rpc.h" "ac_cv_header_rpc_rpc_h" "$ac_includes_default" 4233 if test "x$ac_cv_header_rpc_rpc_h" = xyes 4234 then : 4235 printf "%s\n" "#define HAVE_RPC_RPC_H 1" >>confdefs.h 4236 4237 fi 4238 ac_fn_c_check_header_compile "$LINENO" "rpc/rpcent.h" "ac_cv_header_rpc_rpcent_h" "$ac_includes_default" 4239 if test "x$ac_cv_header_rpc_rpcent_h" = xyes 4240 then : 4241 printf "%s\n" "#define HAVE_RPC_RPCENT_H 1" >>confdefs.h 4242 4243 fi 4244 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default" 4245 if test "x$ac_cv_header_net_if_h" = xyes 4246 then : 4247 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h 4248 4249 fi 4250 4251 4252 # On Linux, if Autoconf version >= 2.72 and GNU C Library version >= 2.34, 4253 # uncomment AC_SYS_YEAR2038_RECOMMENDED to ensure time_t is Y2038-safe. 4254 # (Can be done by autogen.sh) 4255 # AC_SYS_YEAR2038_RECOMMENDED 4256 # 4257 # Get the size of a void *, to know whether this is a 32-bit or 64-bit build. 4258 # 4259 # The cast to long int works around a bug in the HP C Compiler 4260 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4261 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4262 # This bug is HP SR number 8606223364. 4263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 4264 printf %s "checking size of void *... " >&6; } 4265 if test ${ac_cv_sizeof_void_p+y} 4266 then : 4267 printf %s "(cached) " >&6 4268 else $as_nop 4269 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default" 4270 then : 4271 4272 else $as_nop 4273 if test "$ac_cv_type_void_p" = yes; then 4274 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4275 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4276 as_fn_error 77 "cannot compute sizeof (void *) 4277 See \`config.log' for more details" "$LINENO" 5; } 4278 else 4279 ac_cv_sizeof_void_p=0 4280 fi 4281 fi 4282 4283 fi 4284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 4285 printf "%s\n" "$ac_cv_sizeof_void_p" >&6; } 4286 4287 4288 4289 printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h 4290 4291 4292 4293 # 4294 # Get the size of a time_t, to know whether it's 32-bit or 64-bit. 4295 # 4296 # The cast to long int works around a bug in the HP C Compiler 4297 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4298 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4299 # This bug is HP SR number 8606223364. 4300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 4301 printf %s "checking size of time_t... " >&6; } 4302 if test ${ac_cv_sizeof_time_t+y} 4303 then : 4304 printf %s "(cached) " >&6 4305 else $as_nop 4306 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "#include <time.h> 4307 " 4308 then : 4309 4310 else $as_nop 4311 if test "$ac_cv_type_time_t" = yes; then 4312 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4313 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4314 as_fn_error 77 "cannot compute sizeof (time_t) 4315 See \`config.log' for more details" "$LINENO" 5; } 4316 else 4317 ac_cv_sizeof_time_t=0 4318 fi 4319 fi 4320 4321 fi 4322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 4323 printf "%s\n" "$ac_cv_sizeof_time_t" >&6; } 4324 4325 4326 4327 printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h 4328 4329 4330 4331 case "$host_os" in 4332 4333 darwin*) 4334 # Check whether --enable-universal was given. 4335 if test ${enable_universal+y} 4336 then : 4337 enableval=$enable_universal; 4338 fi 4339 4340 if test "$enable_universal" != "no"; then 4341 case "$host_os" in 4342 4343 darwin9.*) 4344 # 4345 # Leopard. Build for x86 and 32-bit PowerPC, with 4346 # x86 first. (That's what Apple does.) 4347 # 4348 V_CCOPT="$V_CCOPT -arch i386 -arch ppc" 4349 LDFLAGS="$LDFLAGS -arch i386 -arch ppc" 4350 ;; 4351 4352 darwin10.*) 4353 # 4354 # Snow Leopard. Build for x86-64 and x86, with 4355 # x86-64 first. (That's what Apple does.) 4356 # 4357 V_CCOPT="$V_CCOPT -arch x86_64 -arch i386" 4358 LDFLAGS="$LDFLAGS -arch x86_64 -arch i386" 4359 ;; 4360 esac 4361 fi 4362 ;; 4363 esac 4364 4365 # 4366 # Do we have pkg-config? 4367 # 4368 4369 4370 4371 4372 4373 4374 4375 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4376 if test -n "$ac_tool_prefix"; then 4377 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4378 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4380 printf %s "checking for $ac_word... " >&6; } 4381 if test ${ac_cv_path_PKG_CONFIG+y} 4382 then : 4383 printf %s "(cached) " >&6 4384 else $as_nop 4385 case $PKG_CONFIG in 4386 [\\/]* | ?:[\\/]*) 4387 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4388 ;; 4389 *) 4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4391 for as_dir in $PATH 4392 do 4393 IFS=$as_save_IFS 4394 case $as_dir in #((( 4395 '') as_dir=./ ;; 4396 */) ;; 4397 *) as_dir=$as_dir/ ;; 4398 esac 4399 for ac_exec_ext in '' $ac_executable_extensions; do 4400 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4401 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4402 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4403 break 2 4404 fi 4405 done 4406 done 4407 IFS=$as_save_IFS 4408 4409 ;; 4410 esac 4411 fi 4412 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4413 if test -n "$PKG_CONFIG"; then 4414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4415 printf "%s\n" "$PKG_CONFIG" >&6; } 4416 else 4417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4418 printf "%s\n" "no" >&6; } 4419 fi 4420 4421 4422 fi 4423 if test -z "$ac_cv_path_PKG_CONFIG"; then 4424 ac_pt_PKG_CONFIG=$PKG_CONFIG 4425 # Extract the first word of "pkg-config", so it can be a program name with args. 4426 set dummy pkg-config; ac_word=$2 4427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4428 printf %s "checking for $ac_word... " >&6; } 4429 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4430 then : 4431 printf %s "(cached) " >&6 4432 else $as_nop 4433 case $ac_pt_PKG_CONFIG in 4434 [\\/]* | ?:[\\/]*) 4435 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4436 ;; 4437 *) 4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4439 for as_dir in $PATH 4440 do 4441 IFS=$as_save_IFS 4442 case $as_dir in #((( 4443 '') as_dir=./ ;; 4444 */) ;; 4445 *) as_dir=$as_dir/ ;; 4446 esac 4447 for ac_exec_ext in '' $ac_executable_extensions; do 4448 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4449 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4450 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4451 break 2 4452 fi 4453 done 4454 done 4455 IFS=$as_save_IFS 4456 4457 ;; 4458 esac 4459 fi 4460 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4461 if test -n "$ac_pt_PKG_CONFIG"; then 4462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4463 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4464 else 4465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4466 printf "%s\n" "no" >&6; } 4467 fi 4468 4469 if test "x$ac_pt_PKG_CONFIG" = x; then 4470 PKG_CONFIG="" 4471 else 4472 case $cross_compiling:$ac_tool_warned in 4473 yes:) 4474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4475 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4476 ac_tool_warned=yes ;; 4477 esac 4478 PKG_CONFIG=$ac_pt_PKG_CONFIG 4479 fi 4480 else 4481 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4482 fi 4483 4484 fi 4485 if test -n "$PKG_CONFIG"; then 4486 _pkg_min_version=0.17.0 4487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4488 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4489 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4491 printf "%s\n" "yes" >&6; } 4492 else 4493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4494 printf "%s\n" "no" >&6; } 4495 PKG_CONFIG="" 4496 fi 4497 fi 4498 4499 # 4500 # Do we have the brew command from Homebrew? 4501 # 4502 # Extract the first word of "brew", so it can be a program name with args. 4503 set dummy brew; ac_word=$2 4504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4505 printf %s "checking for $ac_word... " >&6; } 4506 if test ${ac_cv_path_BREW+y} 4507 then : 4508 printf %s "(cached) " >&6 4509 else $as_nop 4510 case $BREW in 4511 [\\/]* | ?:[\\/]*) 4512 ac_cv_path_BREW="$BREW" # Let the user override the test with a path. 4513 ;; 4514 *) 4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4516 for as_dir in $PATH 4517 do 4518 IFS=$as_save_IFS 4519 case $as_dir in #((( 4520 '') as_dir=./ ;; 4521 */) ;; 4522 *) as_dir=$as_dir/ ;; 4523 esac 4524 for ac_exec_ext in '' $ac_executable_extensions; do 4525 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4526 ac_cv_path_BREW="$as_dir$ac_word$ac_exec_ext" 4527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4528 break 2 4529 fi 4530 done 4531 done 4532 IFS=$as_save_IFS 4533 4534 ;; 4535 esac 4536 fi 4537 BREW=$ac_cv_path_BREW 4538 if test -n "$BREW"; then 4539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BREW" >&5 4540 printf "%s\n" "$BREW" >&6; } 4541 else 4542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4543 printf "%s\n" "no" >&6; } 4544 fi 4545 4546 4547 4548 4549 # Check whether --with-smi was given. 4550 if test ${with_smi+y} 4551 then : 4552 withval=$with_smi; 4553 else $as_nop 4554 with_smi=yes 4555 fi 4556 4557 4558 if test "x$with_smi" != "xno" ; then 4559 ac_fn_c_check_header_compile "$LINENO" "smi.h" "ac_cv_header_smi_h" "$ac_includes_default" 4560 if test "x$ac_cv_header_smi_h" = xyes 4561 then : 4562 4563 # 4564 # OK, we found smi.h. Do we have libsmi with smiInit? 4565 # 4566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for smiInit in -lsmi" >&5 4567 printf %s "checking for smiInit in -lsmi... " >&6; } 4568 if test ${ac_cv_lib_smi_smiInit+y} 4569 then : 4570 printf %s "(cached) " >&6 4571 else $as_nop 4572 ac_check_lib_save_LIBS=$LIBS 4573 LIBS="-lsmi $LIBS" 4574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4575 /* end confdefs.h. */ 4576 4577 /* Override any GCC internal prototype to avoid an error. 4578 Use char because int might match the return type of a GCC 4579 builtin and then its argument prototype would still apply. */ 4580 char smiInit (); 4581 int 4582 main (void) 4583 { 4584 return smiInit (); 4585 ; 4586 return 0; 4587 } 4588 _ACEOF 4589 if ac_fn_c_try_link "$LINENO" 4590 then : 4591 ac_cv_lib_smi_smiInit=yes 4592 else $as_nop 4593 ac_cv_lib_smi_smiInit=no 4594 fi 4595 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4596 conftest$ac_exeext conftest.$ac_ext 4597 LIBS=$ac_check_lib_save_LIBS 4598 fi 4599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_smi_smiInit" >&5 4600 printf "%s\n" "$ac_cv_lib_smi_smiInit" >&6; } 4601 if test "x$ac_cv_lib_smi_smiInit" = xyes 4602 then : 4603 4604 # 4605 # OK, we have libsmi with smiInit. Can we use it? 4606 # 4607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable libsmi" >&5 4608 printf %s "checking whether to enable libsmi... " >&6; } 4609 savedlibs="$LIBS" 4610 LIBS="-lsmi $LIBS" 4611 if test "$cross_compiling" = yes 4612 then : 4613 4614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not when cross-compiling" >&5 4615 printf "%s\n" "not when cross-compiling" >&6; } 4616 LIBS="$savedlibs" 4617 4618 4619 else $as_nop 4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4621 /* end confdefs.h. */ 4622 4623 /* libsmi available check */ 4624 #include <stdio.h> 4625 #include <stdlib.h> 4626 #include <string.h> 4627 #include <smi.h> 4628 int main() 4629 { 4630 int current, revision, age, n; 4631 const int required = 2; 4632 if (smiInit("")) 4633 exit(1); 4634 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version)) 4635 exit(2); 4636 n = sscanf(smi_library_version, "%d:%d:%d", ¤t, &revision, &age); 4637 if (n != 3) 4638 exit(3); 4639 if (required < current - age || required > current) 4640 exit(4); 4641 exit(0); 4642 } 4643 4644 4645 _ACEOF 4646 if ac_fn_c_try_run "$LINENO" 4647 then : 4648 4649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4650 printf "%s\n" "yes" >&6; } 4651 4652 printf "%s\n" "#define USE_LIBSMI 1" >>confdefs.h 4653 4654 4655 else $as_nop 4656 4657 case $? in 4658 1) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - smiInit failed" >&5 4659 printf "%s\n" "no - smiInit failed" >&6; } ;; 4660 2) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - header/library version mismatch" >&5 4661 printf "%s\n" "no - header/library version mismatch" >&6; } ;; 4662 3) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - can't determine library version" >&5 4663 printf "%s\n" "no - can't determine library version" >&6; } ;; 4664 4) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - too old" >&5 4665 printf "%s\n" "no - too old" >&6; } ;; 4666 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4667 printf "%s\n" "no" >&6; } ;; 4668 esac 4669 LIBS="$savedlibs" 4670 4671 fi 4672 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4673 conftest.$ac_objext conftest.beam conftest.$ac_ext 4674 fi 4675 4676 4677 fi 4678 4679 4680 fi 4681 4682 fi 4683 4684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the instrument functions code" >&5 4685 printf %s "checking whether to enable the instrument functions code... " >&6; } 4686 # Check whether --enable-instrument-functions was given. 4687 if test ${enable_instrument_functions+y} 4688 then : 4689 enableval=$enable_instrument_functions; 4690 else $as_nop 4691 enableval=no 4692 fi 4693 4694 case "$enableval" in 4695 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4696 printf "%s\n" "yes" >&6; } 4697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bfd_init in -lbfd" >&5 4698 printf %s "checking for bfd_init in -lbfd... " >&6; } 4699 if test ${ac_cv_lib_bfd_bfd_init+y} 4700 then : 4701 printf %s "(cached) " >&6 4702 else $as_nop 4703 ac_check_lib_save_LIBS=$LIBS 4704 LIBS="-lbfd $LIBS" 4705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4706 /* end confdefs.h. */ 4707 4708 /* Override any GCC internal prototype to avoid an error. 4709 Use char because int might match the return type of a GCC 4710 builtin and then its argument prototype would still apply. */ 4711 char bfd_init (); 4712 int 4713 main (void) 4714 { 4715 return bfd_init (); 4716 ; 4717 return 0; 4718 } 4719 _ACEOF 4720 if ac_fn_c_try_link "$LINENO" 4721 then : 4722 ac_cv_lib_bfd_bfd_init=yes 4723 else $as_nop 4724 ac_cv_lib_bfd_bfd_init=no 4725 fi 4726 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4727 conftest$ac_exeext conftest.$ac_ext 4728 LIBS=$ac_check_lib_save_LIBS 4729 fi 4730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfd_bfd_init" >&5 4731 printf "%s\n" "$ac_cv_lib_bfd_bfd_init" >&6; } 4732 if test "x$ac_cv_lib_bfd_bfd_init" = xyes 4733 then : 4734 true 4735 else $as_nop 4736 as_fn_error $? "--enable-instrument-functions was given, but test for library libbfd failed. Please install the 'binutils-dev' package." "$LINENO" 5 4737 fi 4738 4739 4740 printf "%s\n" "#define ENABLE_INSTRUMENT_FUNCTIONS 1" >>confdefs.h 4741 4742 LOCALSRC="$LOCALSRC instrument-functions.c" 4743 # Add '-finstrument-functions' instrumentation option to generate 4744 # instrumentation calls for entry and exit to functions. 4745 # Try to avoid Address Space Layout Randomization (ALSR). 4746 CFLAGS="$CFLAGS -O0 -ggdb -finstrument-functions -fno-stack-protector -fno-pic" 4747 LDFLAGS="$LDFLAGS -O0 -ggdb -fno-stack-protector -no-pie" 4748 LIBS="$LIBS -lbfd" 4749 ;; 4750 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4751 printf "%s\n" "no" >&6; } 4752 ;; 4753 esac 4754 4755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the possibly-buggy SMB printer" >&5 4756 printf %s "checking whether to enable the possibly-buggy SMB printer... " >&6; } 4757 # Check whether --enable-smb was given. 4758 if test ${enable_smb+y} 4759 then : 4760 enableval=$enable_smb; 4761 else $as_nop 4762 enableval=no 4763 fi 4764 4765 case "$enableval" in 4766 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4767 printf "%s\n" "yes" >&6; } 4768 4769 printf "%s\n" "#define ENABLE_SMB 1" >>confdefs.h 4770 4771 LOCALSRC="print-smb.c smbutil.c $LOCALSRC" 4772 ;; 4773 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4774 printf "%s\n" "no" >&6; } 4775 ;; 4776 esac 4777 4778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to drop root privileges by default" >&5 4779 printf %s "checking whether to drop root privileges by default... " >&6; } 4780 4781 # Check whether --with-user was given. 4782 if test ${with_user+y} 4783 then : 4784 withval=$with_user; 4785 else $as_nop 4786 withval=no 4787 fi 4788 4789 case "$withval" in #( 4790 no) : 4791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4792 printf "%s\n" "no" >&6; } ;; #( 4793 ''|yes) : 4794 as_fn_error $? "--with-user requires a username" "$LINENO" 5 ;; #( 4795 *) : 4796 4797 4798 printf "%s\n" "#define WITH_USER \"$withval\"" >>confdefs.h 4799 4800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, to user \"$withval\"" >&5 4801 printf "%s\n" "yes, to user \"$withval\"" >&6; } 4802 4803 ;; 4804 esac 4805 4806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to chroot" >&5 4807 printf %s "checking whether to chroot... " >&6; } 4808 4809 # Check whether --with-chroot was given. 4810 if test ${with_chroot+y} 4811 then : 4812 withval=$with_chroot; 4813 else $as_nop 4814 withval=no 4815 4816 fi 4817 4818 case "$withval" in #( 4819 no) : 4820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4821 printf "%s\n" "no" >&6; } ;; #( 4822 ''|yes) : 4823 as_fn_error $? "--with-chroot requires a directory" "$LINENO" 5 ;; #( 4824 *) : 4825 4826 4827 printf "%s\n" "#define WITH_CHROOT \"$withval\"" >>confdefs.h 4828 4829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, to directory \"$withval\"" >&5 4830 printf "%s\n" "yes, to directory \"$withval\"" >&6; } 4831 4832 ;; 4833 esac 4834 4835 4836 # Check whether --with-sandbox-capsicum was given. 4837 if test ${with_sandbox_capsicum+y} 4838 then : 4839 withval=$with_sandbox_capsicum; 4840 fi 4841 4842 # 4843 # Check whether various functions are available. If any are, set 4844 # ac_lbl_capsicum_function_seen to yes; if any are not, set 4845 # ac_lbl_capsicum_function_not_seen to yes. 4846 # 4847 # We don't check cap_rights_init(), as it's a macro, wrapping another 4848 # function, in at least some versions of FreeBSD, and AC_CHECK_FUNCS() 4849 # doesn't handle that. 4850 # 4851 # All of the ones we check for must be available in order to enable 4852 # capsicum sandboxing. 4853 # 4854 # XXX - do we need to check for all of them, or are there some that, if 4855 # present, imply others are present? 4856 # 4857 if test -z "$with_sandbox_capsicum" || test "$with_sandbox_capsicum" != "no" ; then 4858 # 4859 # First, make sure we have the required header. 4860 # 4861 ac_fn_c_check_header_compile "$LINENO" "sys/capsicum.h" "ac_cv_header_sys_capsicum_h" "$ac_includes_default" 4862 if test "x$ac_cv_header_sys_capsicum_h" = xyes 4863 then : 4864 4865 # 4866 # We do; now make sure we have the required functions. 4867 # 4868 4869 for ac_func in cap_enter cap_rights_limit cap_ioctls_limit openat 4870 do : 4871 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh` 4872 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 4873 if eval test \"x\$"$as_ac_var"\" = x"yes" 4874 then : 4875 cat >>confdefs.h <<_ACEOF 4876 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 4877 _ACEOF 4878 ac_lbl_capsicum_function_seen=yes 4879 else $as_nop 4880 ac_lbl_capsicum_function_not_seen=yes 4881 fi 4882 4883 done 4884 4885 fi 4886 4887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcasper" >&5 4888 printf %s "checking for cap_init in -lcasper... " >&6; } 4889 if test ${ac_cv_lib_casper_cap_init+y} 4890 then : 4891 printf %s "(cached) " >&6 4892 else $as_nop 4893 ac_check_lib_save_LIBS=$LIBS 4894 LIBS="-lcasper $LIBS" 4895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4896 /* end confdefs.h. */ 4897 4898 /* Override any GCC internal prototype to avoid an error. 4899 Use char because int might match the return type of a GCC 4900 builtin and then its argument prototype would still apply. */ 4901 char cap_init (); 4902 int 4903 main (void) 4904 { 4905 return cap_init (); 4906 ; 4907 return 0; 4908 } 4909 _ACEOF 4910 if ac_fn_c_try_link "$LINENO" 4911 then : 4912 ac_cv_lib_casper_cap_init=yes 4913 else $as_nop 4914 ac_cv_lib_casper_cap_init=no 4915 fi 4916 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4917 conftest$ac_exeext conftest.$ac_ext 4918 LIBS=$ac_check_lib_save_LIBS 4919 fi 4920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_casper_cap_init" >&5 4921 printf "%s\n" "$ac_cv_lib_casper_cap_init" >&6; } 4922 if test "x$ac_cv_lib_casper_cap_init" = xyes 4923 then : 4924 LIBS="$LIBS -lcasper" 4925 fi 4926 4927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cap_gethostbyaddr in -lcap_dns" >&5 4928 printf %s "checking for cap_gethostbyaddr in -lcap_dns... " >&6; } 4929 if test ${ac_cv_lib_cap_dns_cap_gethostbyaddr+y} 4930 then : 4931 printf %s "(cached) " >&6 4932 else $as_nop 4933 ac_check_lib_save_LIBS=$LIBS 4934 LIBS="-lcap_dns $LIBS" 4935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4936 /* end confdefs.h. */ 4937 4938 /* Override any GCC internal prototype to avoid an error. 4939 Use char because int might match the return type of a GCC 4940 builtin and then its argument prototype would still apply. */ 4941 char cap_gethostbyaddr (); 4942 int 4943 main (void) 4944 { 4945 return cap_gethostbyaddr (); 4946 ; 4947 return 0; 4948 } 4949 _ACEOF 4950 if ac_fn_c_try_link "$LINENO" 4951 then : 4952 ac_cv_lib_cap_dns_cap_gethostbyaddr=yes 4953 else $as_nop 4954 ac_cv_lib_cap_dns_cap_gethostbyaddr=no 4955 fi 4956 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4957 conftest$ac_exeext conftest.$ac_ext 4958 LIBS=$ac_check_lib_save_LIBS 4959 fi 4960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_dns_cap_gethostbyaddr" >&5 4961 printf "%s\n" "$ac_cv_lib_cap_dns_cap_gethostbyaddr" >&6; } 4962 if test "x$ac_cv_lib_cap_dns_cap_gethostbyaddr" = xyes 4963 then : 4964 LIBS="$LIBS -lcap_dns" 4965 fi 4966 4967 fi 4968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to sandbox using capsicum" >&5 4969 printf %s "checking whether to sandbox using capsicum... " >&6; } 4970 if test "x$ac_lbl_capsicum_function_seen" = "xyes" -a "x$ac_lbl_capsicum_function_not_seen" != "xyes"; then 4971 4972 printf "%s\n" "#define HAVE_CAPSICUM 1" >>confdefs.h 4973 4974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4975 printf "%s\n" "yes" >&6; } 4976 else 4977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4978 printf "%s\n" "no" >&6; } 4979 fi 4980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to sandbox using Casper library" >&5 4981 printf %s "checking whether to sandbox using Casper library... " >&6; } 4982 if test "x$ac_cv_lib_casper_cap_init" = "xyes" -a "x$ac_cv_lib_cap_dns_cap_gethostbyaddr" = "xyes"; then 4983 4984 printf "%s\n" "#define HAVE_CASPER 1" >>confdefs.h 4985 4986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4987 printf "%s\n" "yes" >&6; } 4988 else 4989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4990 printf "%s\n" "no" >&6; } 4991 fi 4992 4993 # 4994 # We must check this before checking whether to check the OS's IPv6, 4995 # support because, on some platforms (such as SunOS 5.x), the test 4996 # program requires the extra networking libraries. 4997 # 4998 4999 # Most operating systems have gethostbyaddr() in the default searched 5000 # libraries (i.e. libc): 5001 # Some OSes (eg. Solaris) place it in libnsl 5002 # Some strange OSes (SINIX) have it in libsocket: 5003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyaddr" >&5 5004 printf %s "checking for library containing gethostbyaddr... " >&6; } 5005 if test ${ac_cv_search_gethostbyaddr+y} 5006 then : 5007 printf %s "(cached) " >&6 5008 else $as_nop 5009 ac_func_search_save_LIBS=$LIBS 5010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5011 /* end confdefs.h. */ 5012 5013 /* Override any GCC internal prototype to avoid an error. 5014 Use char because int might match the return type of a GCC 5015 builtin and then its argument prototype would still apply. */ 5016 char gethostbyaddr (); 5017 int 5018 main (void) 5019 { 5020 return gethostbyaddr (); 5021 ; 5022 return 0; 5023 } 5024 _ACEOF 5025 for ac_lib in '' network nsl socket resolv 5026 do 5027 if test -z "$ac_lib"; then 5028 ac_res="none required" 5029 else 5030 ac_res=-l$ac_lib 5031 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5032 fi 5033 if ac_fn_c_try_link "$LINENO" 5034 then : 5035 ac_cv_search_gethostbyaddr=$ac_res 5036 fi 5037 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5038 conftest$ac_exeext 5039 if test ${ac_cv_search_gethostbyaddr+y} 5040 then : 5041 break 5042 fi 5043 done 5044 if test ${ac_cv_search_gethostbyaddr+y} 5045 then : 5046 5047 else $as_nop 5048 ac_cv_search_gethostbyaddr=no 5049 fi 5050 rm conftest.$ac_ext 5051 LIBS=$ac_func_search_save_LIBS 5052 fi 5053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyaddr" >&5 5054 printf "%s\n" "$ac_cv_search_gethostbyaddr" >&6; } 5055 ac_res=$ac_cv_search_gethostbyaddr 5056 if test "$ac_res" != no 5057 then : 5058 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5059 5060 fi 5061 5062 # Unfortunately libsocket sometimes depends on libnsl and 5063 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this. 5064 if test "$ac_cv_search_gethostbyaddr" = "no" 5065 then 5066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lsocket" >&5 5067 printf %s "checking for gethostbyaddr in -lsocket... " >&6; } 5068 if test ${ac_cv_lib_socket_gethostbyaddr+y} 5069 then : 5070 printf %s "(cached) " >&6 5071 else $as_nop 5072 ac_check_lib_save_LIBS=$LIBS 5073 LIBS="-lsocket -lnsl $LIBS" 5074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5075 /* end confdefs.h. */ 5076 5077 /* Override any GCC internal prototype to avoid an error. 5078 Use char because int might match the return type of a GCC 5079 builtin and then its argument prototype would still apply. */ 5080 char gethostbyaddr (); 5081 int 5082 main (void) 5083 { 5084 return gethostbyaddr (); 5085 ; 5086 return 0; 5087 } 5088 _ACEOF 5089 if ac_fn_c_try_link "$LINENO" 5090 then : 5091 ac_cv_lib_socket_gethostbyaddr=yes 5092 else $as_nop 5093 ac_cv_lib_socket_gethostbyaddr=no 5094 fi 5095 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5096 conftest$ac_exeext conftest.$ac_ext 5097 LIBS=$ac_check_lib_save_LIBS 5098 fi 5099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyaddr" >&5 5100 printf "%s\n" "$ac_cv_lib_socket_gethostbyaddr" >&6; } 5101 if test "x$ac_cv_lib_socket_gethostbyaddr" = xyes 5102 then : 5103 LIBS="-lsocket -lnsl $LIBS" 5104 fi 5105 5106 fi 5107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 5108 printf %s "checking for library containing socket... " >&6; } 5109 if test ${ac_cv_search_socket+y} 5110 then : 5111 printf %s "(cached) " >&6 5112 else $as_nop 5113 ac_func_search_save_LIBS=$LIBS 5114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5115 /* end confdefs.h. */ 5116 5117 /* Override any GCC internal prototype to avoid an error. 5118 Use char because int might match the return type of a GCC 5119 builtin and then its argument prototype would still apply. */ 5120 char socket (); 5121 int 5122 main (void) 5123 { 5124 return socket (); 5125 ; 5126 return 0; 5127 } 5128 _ACEOF 5129 for ac_lib in '' socket 5130 do 5131 if test -z "$ac_lib"; then 5132 ac_res="none required" 5133 else 5134 ac_res=-l$ac_lib 5135 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5136 fi 5137 if ac_fn_c_try_link "$LINENO" 5138 then : 5139 ac_cv_search_socket=$ac_res 5140 fi 5141 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5142 conftest$ac_exeext 5143 if test ${ac_cv_search_socket+y} 5144 then : 5145 break 5146 fi 5147 done 5148 if test ${ac_cv_search_socket+y} 5149 then : 5150 5151 else $as_nop 5152 ac_cv_search_socket=no 5153 fi 5154 rm conftest.$ac_ext 5155 LIBS=$ac_func_search_save_LIBS 5156 fi 5157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 5158 printf "%s\n" "$ac_cv_search_socket" >&6; } 5159 ac_res=$ac_cv_search_socket 5160 if test "$ac_res" != no 5161 then : 5162 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5163 5164 else $as_nop 5165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 5166 printf %s "checking for socket in -lsocket... " >&6; } 5167 if test ${ac_cv_lib_socket_socket+y} 5168 then : 5169 printf %s "(cached) " >&6 5170 else $as_nop 5171 ac_check_lib_save_LIBS=$LIBS 5172 LIBS="-lsocket -lnsl $LIBS" 5173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5174 /* end confdefs.h. */ 5175 5176 /* Override any GCC internal prototype to avoid an error. 5177 Use char because int might match the return type of a GCC 5178 builtin and then its argument prototype would still apply. */ 5179 char socket (); 5180 int 5181 main (void) 5182 { 5183 return socket (); 5184 ; 5185 return 0; 5186 } 5187 _ACEOF 5188 if ac_fn_c_try_link "$LINENO" 5189 then : 5190 ac_cv_lib_socket_socket=yes 5191 else $as_nop 5192 ac_cv_lib_socket_socket=no 5193 fi 5194 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5195 conftest$ac_exeext conftest.$ac_ext 5196 LIBS=$ac_check_lib_save_LIBS 5197 fi 5198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 5199 printf "%s\n" "$ac_cv_lib_socket_socket" >&6; } 5200 if test "x$ac_cv_lib_socket_socket" = xyes 5201 then : 5202 LIBS="-lsocket -lnsl $LIBS" 5203 fi 5204 5205 fi 5206 5207 # DLPI needs putmsg under HPUX so test for -lstr while we're at it 5208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing putmsg" >&5 5209 printf %s "checking for library containing putmsg... " >&6; } 5210 if test ${ac_cv_search_putmsg+y} 5211 then : 5212 printf %s "(cached) " >&6 5213 else $as_nop 5214 ac_func_search_save_LIBS=$LIBS 5215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5216 /* end confdefs.h. */ 5217 5218 /* Override any GCC internal prototype to avoid an error. 5219 Use char because int might match the return type of a GCC 5220 builtin and then its argument prototype would still apply. */ 5221 char putmsg (); 5222 int 5223 main (void) 5224 { 5225 return putmsg (); 5226 ; 5227 return 0; 5228 } 5229 _ACEOF 5230 for ac_lib in '' str 5231 do 5232 if test -z "$ac_lib"; then 5233 ac_res="none required" 5234 else 5235 ac_res=-l$ac_lib 5236 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5237 fi 5238 if ac_fn_c_try_link "$LINENO" 5239 then : 5240 ac_cv_search_putmsg=$ac_res 5241 fi 5242 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5243 conftest$ac_exeext 5244 if test ${ac_cv_search_putmsg+y} 5245 then : 5246 break 5247 fi 5248 done 5249 if test ${ac_cv_search_putmsg+y} 5250 then : 5251 5252 else $as_nop 5253 ac_cv_search_putmsg=no 5254 fi 5255 rm conftest.$ac_ext 5256 LIBS=$ac_func_search_save_LIBS 5257 fi 5258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_putmsg" >&5 5259 printf "%s\n" "$ac_cv_search_putmsg" >&6; } 5260 ac_res=$ac_cv_search_putmsg 5261 if test "$ac_res" != no 5262 then : 5263 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5264 5265 fi 5266 5267 5268 5269 # 5270 # Check whether AF_INET6 and struct in6_addr are defined. 5271 # If they aren't both defined, we don't have sufficient OS 5272 # support for IPv6, so we don't look for IPv6 support libraries, 5273 # and we define AF_INET6 and struct in6_addr ourselves. 5274 # 5275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the operating system supports IPv6" >&5 5276 printf %s "checking whether the operating system supports IPv6... " >&6; } 5277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5278 /* end confdefs.h. */ 5279 5280 5281 #include <string.h> 5282 /* AF_INET6 available check */ 5283 #include <sys/types.h> 5284 #ifdef _WIN32 5285 #include <ws2tcpip.h> 5286 #else 5287 #include <sys/socket.h> 5288 #include <netinet/in.h> 5289 #endif 5290 #ifdef AF_INET6 5291 void 5292 foo(struct in6_addr *addr) 5293 { 5294 memset(addr, 0, sizeof (struct in6_addr)); 5295 } 5296 #else 5297 #error "AF_INET6 not defined" 5298 #endif 5299 5300 5301 _ACEOF 5302 if ac_fn_c_try_compile "$LINENO" 5303 then : 5304 5305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5306 printf "%s\n" "yes" >&6; } 5307 5308 printf "%s\n" "#define HAVE_OS_IPV6_SUPPORT 1" >>confdefs.h 5309 5310 ipv6=yes 5311 5312 else $as_nop 5313 5314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5315 printf "%s\n" "no" >&6; } 5316 ipv6=no 5317 5318 5319 fi 5320 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5321 5322 ipv6type=unknown 5323 ipv6lib=none 5324 ipv6trylibc=no 5325 5326 if test "$ipv6" = "yes"; then 5327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 5328 printf %s "checking ipv6 stack type... " >&6; } 5329 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do 5330 case $i in 5331 inria) 5332 ac_ext=c 5333 ac_cpp='$CPP $CPPFLAGS' 5334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5336 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5338 printf %s "checking how to run the C preprocessor... " >&6; } 5339 # On Suns, sometimes $CPP names a directory. 5340 if test -n "$CPP" && test -d "$CPP"; then 5341 CPP= 5342 fi 5343 if test -z "$CPP"; then 5344 if test ${ac_cv_prog_CPP+y} 5345 then : 5346 printf %s "(cached) " >&6 5347 else $as_nop 5348 # Double quotes because $CC needs to be expanded 5349 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 5350 do 5351 ac_preproc_ok=false 5352 for ac_c_preproc_warn_flag in '' yes 5353 do 5354 # Use a header file that comes with gcc, so configuring glibc 5355 # with a fresh cross-compiler works. 5356 # On the NeXT, cc -E runs the code through the compiler's parser, 5357 # not just through cpp. "Syntax error" is here to catch this case. 5358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5359 /* end confdefs.h. */ 5360 #include <limits.h> 5361 Syntax error 5362 _ACEOF 5363 if ac_fn_c_try_cpp "$LINENO" 5364 then : 5365 5366 else $as_nop 5367 # Broken: fails on valid input. 5368 continue 5369 fi 5370 rm -f conftest.err conftest.i conftest.$ac_ext 5371 5372 # OK, works on sane cases. Now check whether nonexistent headers 5373 # can be detected and how. 5374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5375 /* end confdefs.h. */ 5376 #include <ac_nonexistent.h> 5377 _ACEOF 5378 if ac_fn_c_try_cpp "$LINENO" 5379 then : 5380 # Broken: success on invalid input. 5381 continue 5382 else $as_nop 5383 # Passes both tests. 5384 ac_preproc_ok=: 5385 break 5386 fi 5387 rm -f conftest.err conftest.i conftest.$ac_ext 5388 5389 done 5390 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5391 rm -f conftest.i conftest.err conftest.$ac_ext 5392 if $ac_preproc_ok 5393 then : 5394 break 5395 fi 5396 5397 done 5398 ac_cv_prog_CPP=$CPP 5399 5400 fi 5401 CPP=$ac_cv_prog_CPP 5402 else 5403 ac_cv_prog_CPP=$CPP 5404 fi 5405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5406 printf "%s\n" "$CPP" >&6; } 5407 ac_preproc_ok=false 5408 for ac_c_preproc_warn_flag in '' yes 5409 do 5410 # Use a header file that comes with gcc, so configuring glibc 5411 # with a fresh cross-compiler works. 5412 # On the NeXT, cc -E runs the code through the compiler's parser, 5413 # not just through cpp. "Syntax error" is here to catch this case. 5414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5415 /* end confdefs.h. */ 5416 #include <limits.h> 5417 Syntax error 5418 _ACEOF 5419 if ac_fn_c_try_cpp "$LINENO" 5420 then : 5421 5422 else $as_nop 5423 # Broken: fails on valid input. 5424 continue 5425 fi 5426 rm -f conftest.err conftest.i conftest.$ac_ext 5427 5428 # OK, works on sane cases. Now check whether nonexistent headers 5429 # can be detected and how. 5430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5431 /* end confdefs.h. */ 5432 #include <ac_nonexistent.h> 5433 _ACEOF 5434 if ac_fn_c_try_cpp "$LINENO" 5435 then : 5436 # Broken: success on invalid input. 5437 continue 5438 else $as_nop 5439 # Passes both tests. 5440 ac_preproc_ok=: 5441 break 5442 fi 5443 rm -f conftest.err conftest.i conftest.$ac_ext 5444 5445 done 5446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5447 rm -f conftest.i conftest.err conftest.$ac_ext 5448 if $ac_preproc_ok 5449 then : 5450 5451 else $as_nop 5452 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5453 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5454 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5455 See \`config.log' for more details" "$LINENO" 5; } 5456 fi 5457 5458 ac_ext=c 5459 ac_cpp='$CPP $CPPFLAGS' 5460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5462 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5463 5464 5465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5466 printf %s "checking for grep that handles long lines and -e... " >&6; } 5467 if test ${ac_cv_path_GREP+y} 5468 then : 5469 printf %s "(cached) " >&6 5470 else $as_nop 5471 if test -z "$GREP"; then 5472 ac_path_GREP_found=false 5473 # Loop through the user's path and test for each of PROGNAME-LIST 5474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5475 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5476 do 5477 IFS=$as_save_IFS 5478 case $as_dir in #((( 5479 '') as_dir=./ ;; 5480 */) ;; 5481 *) as_dir=$as_dir/ ;; 5482 esac 5483 for ac_prog in grep ggrep 5484 do 5485 for ac_exec_ext in '' $ac_executable_extensions; do 5486 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 5487 as_fn_executable_p "$ac_path_GREP" || continue 5488 # Check for GNU ac_path_GREP and select it if it is found. 5489 # Check for GNU $ac_path_GREP 5490 case `"$ac_path_GREP" --version 2>&1` in 5491 *GNU*) 5492 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5493 *) 5494 ac_count=0 5495 printf %s 0123456789 >"conftest.in" 5496 while : 5497 do 5498 cat "conftest.in" "conftest.in" >"conftest.tmp" 5499 mv "conftest.tmp" "conftest.in" 5500 cp "conftest.in" "conftest.nl" 5501 printf "%s\n" 'GREP' >> "conftest.nl" 5502 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5503 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5504 as_fn_arith $ac_count + 1 && ac_count=$as_val 5505 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5506 # Best one so far, save it but keep looking for a better one 5507 ac_cv_path_GREP="$ac_path_GREP" 5508 ac_path_GREP_max=$ac_count 5509 fi 5510 # 10*(2^10) chars as input seems more than enough 5511 test $ac_count -gt 10 && break 5512 done 5513 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5514 esac 5515 5516 $ac_path_GREP_found && break 3 5517 done 5518 done 5519 done 5520 IFS=$as_save_IFS 5521 if test -z "$ac_cv_path_GREP"; then 5522 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5523 fi 5524 else 5525 ac_cv_path_GREP=$GREP 5526 fi 5527 5528 fi 5529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5530 printf "%s\n" "$ac_cv_path_GREP" >&6; } 5531 GREP="$ac_cv_path_GREP" 5532 5533 5534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5535 printf %s "checking for egrep... " >&6; } 5536 if test ${ac_cv_path_EGREP+y} 5537 then : 5538 printf %s "(cached) " >&6 5539 else $as_nop 5540 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5541 then ac_cv_path_EGREP="$GREP -E" 5542 else 5543 if test -z "$EGREP"; then 5544 ac_path_EGREP_found=false 5545 # Loop through the user's path and test for each of PROGNAME-LIST 5546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5547 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5548 do 5549 IFS=$as_save_IFS 5550 case $as_dir in #((( 5551 '') as_dir=./ ;; 5552 */) ;; 5553 *) as_dir=$as_dir/ ;; 5554 esac 5555 for ac_prog in egrep 5556 do 5557 for ac_exec_ext in '' $ac_executable_extensions; do 5558 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5559 as_fn_executable_p "$ac_path_EGREP" || continue 5560 # Check for GNU ac_path_EGREP and select it if it is found. 5561 # Check for GNU $ac_path_EGREP 5562 case `"$ac_path_EGREP" --version 2>&1` in 5563 *GNU*) 5564 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5565 *) 5566 ac_count=0 5567 printf %s 0123456789 >"conftest.in" 5568 while : 5569 do 5570 cat "conftest.in" "conftest.in" >"conftest.tmp" 5571 mv "conftest.tmp" "conftest.in" 5572 cp "conftest.in" "conftest.nl" 5573 printf "%s\n" 'EGREP' >> "conftest.nl" 5574 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5575 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5576 as_fn_arith $ac_count + 1 && ac_count=$as_val 5577 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5578 # Best one so far, save it but keep looking for a better one 5579 ac_cv_path_EGREP="$ac_path_EGREP" 5580 ac_path_EGREP_max=$ac_count 5581 fi 5582 # 10*(2^10) chars as input seems more than enough 5583 test $ac_count -gt 10 && break 5584 done 5585 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5586 esac 5587 5588 $ac_path_EGREP_found && break 3 5589 done 5590 done 5591 done 5592 IFS=$as_save_IFS 5593 if test -z "$ac_cv_path_EGREP"; then 5594 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5595 fi 5596 else 5597 ac_cv_path_EGREP=$EGREP 5598 fi 5599 5600 fi 5601 fi 5602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5603 printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5604 EGREP="$ac_cv_path_EGREP" 5605 5606 5607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5608 /* end confdefs.h. */ 5609 #include <netinet/in.h> 5610 #ifdef IPV6_INRIA_VERSION 5611 yes 5612 #endif 5613 _ACEOF 5614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5615 $EGREP "yes" >/dev/null 2>&1 5616 then : 5617 ipv6type=$i 5618 fi 5619 rm -rf conftest* 5620 5621 ;; 5622 kame) 5623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5624 /* end confdefs.h. */ 5625 #include <netinet/in.h> 5626 #ifdef __KAME__ 5627 yes 5628 #endif 5629 _ACEOF 5630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5631 $EGREP "yes" >/dev/null 2>&1 5632 then : 5633 ipv6type=$i; 5634 ipv6lib=inet6; 5635 ipv6libdir=/usr/local/v6/lib; 5636 ipv6trylibc=yes 5637 fi 5638 rm -rf conftest* 5639 5640 ;; 5641 linux-glibc) 5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5643 /* end confdefs.h. */ 5644 #include <features.h> 5645 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1 5646 yes 5647 #endif 5648 _ACEOF 5649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5650 $EGREP "yes" >/dev/null 2>&1 5651 then : 5652 ipv6type=$i 5653 fi 5654 rm -rf conftest* 5655 5656 ;; 5657 linux-libinet6) 5658 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then 5659 ipv6type=$i 5660 ipv6lib=inet6 5661 ipv6libdir=/usr/inet6/lib 5662 ipv6trylibc=yes; 5663 CFLAGS="-I/usr/inet6/include $CFLAGS" 5664 fi 5665 ;; 5666 toshiba) 5667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5668 /* end confdefs.h. */ 5669 #include <sys/param.h> 5670 #ifdef _TOSHIBA_INET6 5671 yes 5672 #endif 5673 _ACEOF 5674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5675 $EGREP "yes" >/dev/null 2>&1 5676 then : 5677 ipv6type=$i; 5678 ipv6lib=inet6; 5679 ipv6libdir=/usr/local/v6/lib 5680 fi 5681 rm -rf conftest* 5682 5683 ;; 5684 v6d) 5685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5686 /* end confdefs.h. */ 5687 #include </usr/local/v6/include/sys/v6config.h> 5688 #ifdef __V6D__ 5689 yes 5690 #endif 5691 _ACEOF 5692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5693 $EGREP "yes" >/dev/null 2>&1 5694 then : 5695 ipv6type=$i; 5696 ipv6lib=v6; 5697 ipv6libdir=/usr/local/v6/lib; 5698 CFLAGS="-I/usr/local/v6/include $CFLAGS" 5699 fi 5700 rm -rf conftest* 5701 5702 ;; 5703 zeta) 5704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5705 /* end confdefs.h. */ 5706 #include <sys/param.h> 5707 #ifdef _ZETA_MINAMI_INET6 5708 yes 5709 #endif 5710 _ACEOF 5711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5712 $EGREP "yes" >/dev/null 2>&1 5713 then : 5714 ipv6type=$i; 5715 ipv6lib=inet6; 5716 ipv6libdir=/usr/local/v6/lib 5717 fi 5718 rm -rf conftest* 5719 5720 ;; 5721 esac 5722 if test "$ipv6type" != "unknown"; then 5723 break 5724 fi 5725 done 5726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 5727 printf "%s\n" "$ipv6type" >&6; } 5728 fi 5729 5730 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then 5731 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then 5732 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" 5733 echo "You have $ipv6lib library, using it" 5734 else 5735 if test "$ipv6trylibc" = "yes"; then 5736 echo "You do not have $ipv6lib library, using libc" 5737 else 5738 echo 'Fatal: no $ipv6lib library found. cannot continue.' 5739 echo "You need to fetch lib$ipv6lib.a from appropriate" 5740 echo 'ipv6 kit and compile beforehand.' 5741 exit 1 5742 fi 5743 fi 5744 fi 5745 5746 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 5747 if test "x$ac_cv_func_strlcat" = xyes 5748 then : 5749 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h 5750 5751 else $as_nop 5752 case " $LIBOBJS " in 5753 *" strlcat.$ac_objext "* ) ;; 5754 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 5755 ;; 5756 esac 5757 5758 fi 5759 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 5760 if test "x$ac_cv_func_strlcpy" = xyes 5761 then : 5762 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 5763 5764 else $as_nop 5765 case " $LIBOBJS " in 5766 *" strlcpy.$ac_objext "* ) ;; 5767 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 5768 ;; 5769 esac 5770 5771 fi 5772 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" 5773 if test "x$ac_cv_func_strdup" = xyes 5774 then : 5775 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h 5776 5777 else $as_nop 5778 case " $LIBOBJS " in 5779 *" strdup.$ac_objext "* ) ;; 5780 *) LIBOBJS="$LIBOBJS strdup.$ac_objext" 5781 ;; 5782 esac 5783 5784 fi 5785 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep" 5786 if test "x$ac_cv_func_strsep" = xyes 5787 then : 5788 printf "%s\n" "#define HAVE_STRSEP 1" >>confdefs.h 5789 5790 else $as_nop 5791 case " $LIBOBJS " in 5792 *" strsep.$ac_objext "* ) ;; 5793 *) LIBOBJS="$LIBOBJS strsep.$ac_objext" 5794 ;; 5795 esac 5796 5797 fi 5798 ac_fn_c_check_func "$LINENO" "getservent" "ac_cv_func_getservent" 5799 if test "x$ac_cv_func_getservent" = xyes 5800 then : 5801 printf "%s\n" "#define HAVE_GETSERVENT 1" >>confdefs.h 5802 5803 else $as_nop 5804 case " $LIBOBJS " in 5805 *" getservent.$ac_objext "* ) ;; 5806 *) LIBOBJS="$LIBOBJS getservent.$ac_objext" 5807 ;; 5808 esac 5809 5810 fi 5811 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long" 5812 if test "x$ac_cv_func_getopt_long" = xyes 5813 then : 5814 printf "%s\n" "#define HAVE_GETOPT_LONG 1" >>confdefs.h 5815 5816 else $as_nop 5817 case " $LIBOBJS " in 5818 *" getopt_long.$ac_objext "* ) ;; 5819 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext" 5820 ;; 5821 esac 5822 5823 fi 5824 5825 ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork" 5826 if test "x$ac_cv_func_fork" = xyes 5827 then : 5828 printf "%s\n" "#define HAVE_FORK 1" >>confdefs.h 5829 5830 fi 5831 ac_fn_c_check_func "$LINENO" "vfork" "ac_cv_func_vfork" 5832 if test "x$ac_cv_func_vfork" = xyes 5833 then : 5834 printf "%s\n" "#define HAVE_VFORK 1" >>confdefs.h 5835 5836 fi 5837 5838 ac_fn_c_check_func "$LINENO" "setlinebuf" "ac_cv_func_setlinebuf" 5839 if test "x$ac_cv_func_setlinebuf" = xyes 5840 then : 5841 printf "%s\n" "#define HAVE_SETLINEBUF 1" >>confdefs.h 5842 5843 fi 5844 5845 5846 # 5847 # It became apparent at some point that using a suitable C99 compiler does not 5848 # automatically mean snprintf(3) implementation in the libc supports all the 5849 # modifiers and specifiers used in the project, so let's test that before the 5850 # build, not after. 5851 # 5852 # Testing the sizeof_t length modifier takes making an snprintf() call and 5853 # comparing the actual result with the expected result. If this fails, it will 5854 # most likely happen at run time, not compile time. 5855 # 5856 # Testing the 64-bit conversion specifiers in addition to that requires the 5857 # <inttypes.h> header to be present and the macros to be defined, so if this 5858 # fails, it will more likely happen at compile time. 5859 # 5860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether snprintf is suitable" >&5 5861 printf %s "checking whether snprintf is suitable... " >&6; } 5862 if test "$cross_compiling" = yes 5863 then : 5864 5865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not while cross-compiling" >&5 5866 printf "%s\n" "not while cross-compiling" >&6; } 5867 5868 5869 else $as_nop 5870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5871 /* end confdefs.h. */ 5872 5873 5874 #include <stdio.h> 5875 #include <string.h> 5876 #include <inttypes.h> 5877 #include <sys/types.h> 5878 5879 #if defined(_WIN32) && !defined(_SSIZE_T_DEFINED) 5880 /* 5881 * On UN*Xes, this is a signed integer type of the same size as size_t. 5882 * 5883 * It's not defined by Visual Studio; we assume that ptrdiff_t will 5884 * be a type that is a signed integer type of the same size as size_t. 5885 */ 5886 typedef ptrdiff_t ssize_t; 5887 #endif 5888 5889 /* 5890 * Avoid trying to cast negative values to unsigned types, or doing 5891 * shifts of signed types, in order not to have the test program fail 5892 * if we're building with undefined-behavior sanitizers enabled. 5893 */ 5894 int main() 5895 { 5896 char buf[100]; 5897 unsigned int ui = sizeof(buf); 5898 int i = sizeof(buf); 5899 int64_t i64 = INT64_C(0x100000000); 5900 uint64_t ui64 = UINT64_C(0x100000000); 5901 5902 snprintf(buf, sizeof(buf), "%zu", (size_t)ui); 5903 if (strncmp(buf, "100", sizeof(buf))) 5904 return 1; 5905 5906 snprintf(buf, sizeof(buf), "%zd", (ssize_t)(-i)); 5907 if (strncmp(buf, "-100", sizeof(buf))) 5908 return 2; 5909 5910 snprintf(buf, sizeof(buf), "%" PRId64, -i64); 5911 if (strncmp(buf, "-4294967296", sizeof(buf))) 5912 return 3; 5913 5914 snprintf(buf, sizeof(buf), "0o%" PRIo64, ui64); 5915 if (strncmp(buf, "0o40000000000", sizeof(buf))) 5916 return 4; 5917 5918 snprintf(buf, sizeof(buf), "0x%" PRIx64, ui64); 5919 if (strncmp(buf, "0x100000000", sizeof(buf))) 5920 return 5; 5921 5922 snprintf(buf, sizeof(buf), "%" PRIu64, ui64); 5923 if (strncmp(buf, "4294967296", sizeof(buf))) 5924 return 6; 5925 5926 return 0; 5927 } 5928 5929 5930 _ACEOF 5931 if ac_fn_c_try_run "$LINENO" 5932 then : 5933 5934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5935 printf "%s\n" "yes" >&6; } 5936 5937 else $as_nop 5938 5939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5940 printf "%s\n" "no" >&6; } 5941 as_fn_error $? "The snprintf(3) implementation in this libc is not suitable, 5942 tcpdump would not work correctly even if it managed to compile." "$LINENO" 5 5943 5944 fi 5945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5946 conftest.$ac_objext conftest.beam conftest.$ac_ext 5947 fi 5948 5949 5950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lrpc" >&5 5951 printf %s "checking for main in -lrpc... " >&6; } 5952 if test ${ac_cv_lib_rpc_main+y} 5953 then : 5954 printf %s "(cached) " >&6 5955 else $as_nop 5956 ac_check_lib_save_LIBS=$LIBS 5957 LIBS="-lrpc $LIBS" 5958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5959 /* end confdefs.h. */ 5960 5961 5962 int 5963 main (void) 5964 { 5965 return main (); 5966 ; 5967 return 0; 5968 } 5969 _ACEOF 5970 if ac_fn_c_try_link "$LINENO" 5971 then : 5972 ac_cv_lib_rpc_main=yes 5973 else $as_nop 5974 ac_cv_lib_rpc_main=no 5975 fi 5976 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5977 conftest$ac_exeext conftest.$ac_ext 5978 LIBS=$ac_check_lib_save_LIBS 5979 fi 5980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpc_main" >&5 5981 printf "%s\n" "$ac_cv_lib_rpc_main" >&6; } 5982 if test "x$ac_cv_lib_rpc_main" = xyes 5983 then : 5984 printf "%s\n" "#define HAVE_LIBRPC 1" >>confdefs.h 5985 5986 LIBS="-lrpc $LIBS" 5987 5988 fi 5989 5990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getrpcbynumber" >&5 5991 printf %s "checking for library containing getrpcbynumber... " >&6; } 5992 if test ${ac_cv_search_getrpcbynumber+y} 5993 then : 5994 printf %s "(cached) " >&6 5995 else $as_nop 5996 ac_func_search_save_LIBS=$LIBS 5997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5998 /* end confdefs.h. */ 5999 6000 /* Override any GCC internal prototype to avoid an error. 6001 Use char because int might match the return type of a GCC 6002 builtin and then its argument prototype would still apply. */ 6003 char getrpcbynumber (); 6004 int 6005 main (void) 6006 { 6007 return getrpcbynumber (); 6008 ; 6009 return 0; 6010 } 6011 _ACEOF 6012 for ac_lib in '' nsl 6013 do 6014 if test -z "$ac_lib"; then 6015 ac_res="none required" 6016 else 6017 ac_res=-l$ac_lib 6018 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6019 fi 6020 if ac_fn_c_try_link "$LINENO" 6021 then : 6022 ac_cv_search_getrpcbynumber=$ac_res 6023 fi 6024 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6025 conftest$ac_exeext 6026 if test ${ac_cv_search_getrpcbynumber+y} 6027 then : 6028 break 6029 fi 6030 done 6031 if test ${ac_cv_search_getrpcbynumber+y} 6032 then : 6033 6034 else $as_nop 6035 ac_cv_search_getrpcbynumber=no 6036 fi 6037 rm conftest.$ac_ext 6038 LIBS=$ac_func_search_save_LIBS 6039 fi 6040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getrpcbynumber" >&5 6041 printf "%s\n" "$ac_cv_search_getrpcbynumber" >&6; } 6042 ac_res=$ac_cv_search_getrpcbynumber 6043 if test "$ac_res" != no 6044 then : 6045 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6046 6047 printf "%s\n" "#define HAVE_GETRPCBYNUMBER 1" >>confdefs.h 6048 6049 fi 6050 6051 6052 6053 6054 6055 LBL_LIBS="$LIBS" 6056 pfopen=/usr/examples/packetfilter/pfopen.c 6057 if test -f $pfopen ; then 6058 ac_fn_c_check_func "$LINENO" "pfopen" "ac_cv_func_pfopen" 6059 if test "x$ac_cv_func_pfopen" = xyes 6060 then : 6061 printf "%s\n" "#define HAVE_PFOPEN 1" >>confdefs.h 6062 6063 fi 6064 6065 if test $ac_cv_func_pfopen = "no" ; then 6066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using $pfopen" >&5 6067 printf "%s\n" "Using $pfopen" >&6; } 6068 LIBS="$LIBS $pfopen" 6069 fi 6070 fi 6071 libpcap=FAIL 6072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to look for a local libpcap" >&5 6073 printf %s "checking whether to look for a local libpcap... " >&6; } 6074 # Check whether --enable-local-libpcap was given. 6075 if test ${enable_local_libpcap+y} 6076 then : 6077 enableval=$enable_local_libpcap; 6078 else $as_nop 6079 enableval=yes 6080 fi 6081 6082 case "$enableval" in 6083 6084 no) 6085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6086 printf "%s\n" "no" >&6; } 6087 # 6088 # Don't look for a local libpcap. 6089 # 6090 using_local_libpcap=no 6091 ;; 6092 6093 *) 6094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6095 printf "%s\n" "yes" >&6; } 6096 # 6097 # Look for a local pcap library. 6098 # 6099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for local pcap library" >&5 6100 printf %s "checking for local pcap library... " >&6; } 6101 lastdir=FAIL 6102 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \ 6103 $EGREP '/libpcap-[0-9]+\.[0-9]+(\.[0-9]*)?([ab][0-9]*|-PRE-GIT|rc.)?$'` 6104 places2=`ls .. | sed -e 's,/$,,' -e "s,^,../," | \ 6105 $EGREP '/libpcap-[0-9]+\.[0-9]+(\.[0-9]*)?([ab][0-9]*|-PRE-GIT|rc.)?$'` 6106 for dir in $places $srcdir/../libpcap ../libpcap $srcdir/libpcap $places2 ; do 6107 basedir=`echo $dir | sed -e 's/[ab][0-9]*$//' | \ 6108 sed -e 's/-PRE-GIT$//' ` 6109 if test $lastdir = $basedir ; then 6110 continue; 6111 fi 6112 lastdir=$dir 6113 if test -r $dir/libpcap.a ; then 6114 libpcap=$dir/libpcap.a 6115 local_pcap_dir=$dir 6116 fi 6117 done 6118 if test $libpcap = FAIL ; then 6119 # 6120 # We didn't find a local libpcap. 6121 # 6122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6123 printf "%s\n" "not found" >&6; } 6124 using_local_libpcap=no; 6125 else 6126 # 6127 # We found a local libpcap. 6128 # 6129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libpcap" >&5 6130 printf "%s\n" "$libpcap" >&6; } 6131 using_local_libpcap=yes 6132 fi 6133 ;; 6134 esac 6135 6136 if test $using_local_libpcap = no ; then 6137 # 6138 # We didn't find a local libpcap. 6139 # Look for an installed pkg-config. 6140 # 6141 if test -n "$PKG_CONFIG" ; then 6142 # 6143 # We have it. Are there .pc files for libpcap? 6144 # 6145 # --exists was introduced in pkg-config 0.4.0; that 6146 # dates back to late 2000, so we won't worry about 6147 # earlier releases that lack it. 6148 # 6149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether there are .pc files for libpcap" >&5 6150 printf %s "checking whether there are .pc files for libpcap... " >&6; } 6151 if "$PKG_CONFIG" libpcap --exists ; then 6152 # 6153 # Yes, so we can use pkg-config to get configuration 6154 # information for libpcap. 6155 # 6156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6157 printf "%s\n" "yes" >&6; } 6158 pkg_config_usable=yes 6159 else 6160 # 6161 # No, so we can't use pkg-config to get configuration 6162 # information for libpcap. 6163 # 6164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6165 printf "%s\n" "no" >&6; } 6166 pkg_config_usable=no 6167 fi 6168 else 6169 # 6170 # We don't have it, so we obviously can't use it. 6171 # 6172 pkg_config_usable=no 6173 fi 6174 if test "$pkg_config_usable" = "yes" ; then 6175 # 6176 # Found both - use pkg-config to get the include flags for 6177 # libpcap and the flags to link with libpcap. 6178 # 6179 # Please read section 11.6 "Shell Substitutions" 6180 # in the autoconf manual before doing anything 6181 # to this that involves quoting. Especially note 6182 # the statement "There is just no portable way to use 6183 # double-quoted strings inside double-quoted back-quoted 6184 # expressions (pfew!)." 6185 # 6186 cflags=`"$PKG_CONFIG" libpcap --cflags` 6187 V_INCLS="$cflags $V_INCLS" 6188 libpcap=`"$PKG_CONFIG" libpcap --libs` 6189 else 6190 # 6191 # No pkg-config 6192 # Look for an installed pcap-config. 6193 # 6194 if test -n "$ac_tool_prefix"; then 6195 # Extract the first word of "${ac_tool_prefix}pcap-config", so it can be a program name with args. 6196 set dummy ${ac_tool_prefix}pcap-config; ac_word=$2 6197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6198 printf %s "checking for $ac_word... " >&6; } 6199 if test ${ac_cv_path_PCAP_CONFIG+y} 6200 then : 6201 printf %s "(cached) " >&6 6202 else $as_nop 6203 case $PCAP_CONFIG in 6204 [\\/]* | ?:[\\/]*) 6205 ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path. 6206 ;; 6207 *) 6208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6209 for as_dir in $PATH 6210 do 6211 IFS=$as_save_IFS 6212 case $as_dir in #((( 6213 '') as_dir=./ ;; 6214 */) ;; 6215 *) as_dir=$as_dir/ ;; 6216 esac 6217 for ac_exec_ext in '' $ac_executable_extensions; do 6218 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6219 ac_cv_path_PCAP_CONFIG="$as_dir$ac_word$ac_exec_ext" 6220 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6221 break 2 6222 fi 6223 done 6224 done 6225 IFS=$as_save_IFS 6226 6227 ;; 6228 esac 6229 fi 6230 PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG 6231 if test -n "$PCAP_CONFIG"; then 6232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PCAP_CONFIG" >&5 6233 printf "%s\n" "$PCAP_CONFIG" >&6; } 6234 else 6235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6236 printf "%s\n" "no" >&6; } 6237 fi 6238 6239 6240 fi 6241 if test -z "$ac_cv_path_PCAP_CONFIG"; then 6242 ac_pt_PCAP_CONFIG=$PCAP_CONFIG 6243 # Extract the first word of "pcap-config", so it can be a program name with args. 6244 set dummy pcap-config; ac_word=$2 6245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6246 printf %s "checking for $ac_word... " >&6; } 6247 if test ${ac_cv_path_ac_pt_PCAP_CONFIG+y} 6248 then : 6249 printf %s "(cached) " >&6 6250 else $as_nop 6251 case $ac_pt_PCAP_CONFIG in 6252 [\\/]* | ?:[\\/]*) 6253 ac_cv_path_ac_pt_PCAP_CONFIG="$ac_pt_PCAP_CONFIG" # Let the user override the test with a path. 6254 ;; 6255 *) 6256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6257 for as_dir in $PATH 6258 do 6259 IFS=$as_save_IFS 6260 case $as_dir in #((( 6261 '') as_dir=./ ;; 6262 */) ;; 6263 *) as_dir=$as_dir/ ;; 6264 esac 6265 for ac_exec_ext in '' $ac_executable_extensions; do 6266 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6267 ac_cv_path_ac_pt_PCAP_CONFIG="$as_dir$ac_word$ac_exec_ext" 6268 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6269 break 2 6270 fi 6271 done 6272 done 6273 IFS=$as_save_IFS 6274 6275 ;; 6276 esac 6277 fi 6278 ac_pt_PCAP_CONFIG=$ac_cv_path_ac_pt_PCAP_CONFIG 6279 if test -n "$ac_pt_PCAP_CONFIG"; then 6280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PCAP_CONFIG" >&5 6281 printf "%s\n" "$ac_pt_PCAP_CONFIG" >&6; } 6282 else 6283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6284 printf "%s\n" "no" >&6; } 6285 fi 6286 6287 if test "x$ac_pt_PCAP_CONFIG" = x; then 6288 PCAP_CONFIG="" 6289 else 6290 case $cross_compiling:$ac_tool_warned in 6291 yes:) 6292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6293 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6294 ac_tool_warned=yes ;; 6295 esac 6296 PCAP_CONFIG=$ac_pt_PCAP_CONFIG 6297 fi 6298 else 6299 PCAP_CONFIG="$ac_cv_path_PCAP_CONFIG" 6300 fi 6301 6302 if test -n "$PCAP_CONFIG" ; then 6303 # 6304 # Found - use it to get the include flags for 6305 # libpcap and the flags to link with libpcap. 6306 # 6307 # If this is a vendor-supplied pcap-config, which 6308 # we define as being "a pcap-config in /usr/bin 6309 # or /usr/ccs/bin" (the latter is for Solaris and 6310 # Sun/Oracle Studio), there are some issues. Work 6311 # around them. 6312 # 6313 if test \( "$PCAP_CONFIG" = "/usr/bin/pcap-config" \) -o \ 6314 \( "$PCAP_CONFIG" = "/usr/ccs/bin/pcap-config" \) ; then 6315 # 6316 # It's vendor-supplied. 6317 # 6318 case "$host_os" in 6319 6320 darwin*) 6321 # 6322 # This is macOS or another Darwin-based OS. 6323 # 6324 # That means that /usr/bin/pcap-config it 6325 # may provide -I/usr/local/include with --cflags 6326 # and -L/usr/local/lib with --libs, rather than 6327 # pointing to the OS-supplied library and 6328 # Xcode-supplied headers. Remember that, so we 6329 # ignore those values. 6330 # 6331 _broken_apple_pcap_config=yes 6332 6333 # 6334 # Furthermore: 6335 # 6336 # macOS Sonoma's libpcap includes stub versions 6337 # of the remote-capture APIs. They are exported 6338 # as "weakly linked symbols". 6339 # 6340 # Xcode 15 offers only a macOS Sonoma SDK, which 6341 # has a .tbd file for libpcap that claims it 6342 # includes those APIs. (Newer versions of macOS 6343 # don't provide the system shared libraries, 6344 # they only provide the dyld shared cache 6345 # containing those libraries, so the OS provides 6346 # SDKs that include a .tbd file to use when 6347 # linking.) 6348 # 6349 # This means that AC_CHECK_FUNCS() will think 6350 # that the remote-capture APIs are present, 6351 # including pcap_open() and 6352 # pcap_findalldevs_ex(). 6353 # 6354 # However, they are *not* present in macOS 6355 # Ventura and earlier, which means that building 6356 # on Ventura with Xcode 15 produces executables 6357 # that fail to start because one of those APIs 6358 # isn't found in the system libpcap. 6359 # 6360 # Protecting calls to those APIs with 6361 # __builtin_available() does not appear to 6362 # prevent this, for some unknown reason, and it 6363 # doesn't even allow the program to compile with 6364 # versions of Xcode prior to Xcode 15, as the 6365 # pcap.h file doesn't specify minimum OS 6366 # versions for those functions. 6367 # 6368 # Given all that, and given that the versions of 6369 # the remote-capture APIs in Sonoma are stubs 6370 # that always fail, there doesn't seem to be any 6371 # point in checking for pcap_open() if we're 6372 # linking against the Apple libpcap. 6373 # 6374 # However, if we're *not* linking against the 6375 # Apple libpcap, we should check for it, so that 6376 # we can use it if it's present. 6377 # 6378 # We know this is macOS and that we're using 6379 # the system-provided pcap-config to find 6380 # libpcap, so we know it'll be the system 6381 # libpcap, and note that we should not search 6382 # for remote-capture APIs. 6383 # 6384 _dont_check_for_remote_apis=yes 6385 ;; 6386 6387 solaris*) 6388 # 6389 # This is Solaris 2 or later, i.e. SunOS 5.x. 6390 # 6391 # At least on Solaris 11; there's /usr/bin/pcap-config, 6392 # which reports -L/usr/lib with --libs, causing 6393 # the 32-bit libraries to be found, and there's 6394 # /usr/bin/{64bitarch}/pcap-config, where {64bitarch} 6395 # is a name for the 64-bit version of the instruction 6396 # set, which reports -L /usr/lib/{64bitarch}, causing 6397 # the 64-bit libraries to be found. 6398 # 6399 # So if we're building 64-bit targets, we replace 6400 # PCAP_CONFIG with /usr/bin/{64bitarch}; we get 6401 # {64bitarch} as the output of "isainfo -n". 6402 # 6403 # Are we building 32-bit or 64-bit? Get the 6404 # size of void *, and check that. 6405 # 6406 # The cast to long int works around a bug in the HP C Compiler 6407 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6408 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6409 # This bug is HP SR number 8606223364. 6410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 6411 printf %s "checking size of void *... " >&6; } 6412 if test ${ac_cv_sizeof_void_p+y} 6413 then : 6414 printf %s "(cached) " >&6 6415 else $as_nop 6416 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default" 6417 then : 6418 6419 else $as_nop 6420 if test "$ac_cv_type_void_p" = yes; then 6421 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6422 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 6423 as_fn_error 77 "cannot compute sizeof (void *) 6424 See \`config.log' for more details" "$LINENO" 5; } 6425 else 6426 ac_cv_sizeof_void_p=0 6427 fi 6428 fi 6429 6430 fi 6431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 6432 printf "%s\n" "$ac_cv_sizeof_void_p" >&6; } 6433 6434 6435 6436 printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h 6437 6438 6439 if test ac_cv_sizeof_void_p -eq 8 ; then 6440 isainfo_output=`isainfo -n` 6441 if test ! -z "$isainfo_output" ; then 6442 # 6443 # Success - change PCAP_CONFIG. 6444 # 6445 PCAP_CONFIG=`echo $PCAP_CONFIG | sed "s;/bin/;/bin/$isainfo_output/;"` 6446 fi 6447 fi 6448 ;; 6449 esac 6450 fi 6451 # 6452 # Please read section 11.6 "Shell Substitutions" 6453 # in the autoconf manual before doing anything 6454 # to this that involves quoting. Especially note 6455 # the statement "There is just no portable way to use 6456 # double-quoted strings inside double-quoted back-quoted 6457 # expressions (pfew!)." 6458 # 6459 cflags=`"$PCAP_CONFIG" --cflags` 6460 # 6461 # Work around macOS (and probably other Darwin) brokenness, 6462 # by not adding /usr/local/include if it's from the broken 6463 # Apple pcap-config. 6464 # 6465 if test "$_broken_apple_pcap_config" = "yes" ; then 6466 # 6467 # Strip -I/usr/local/include with sed. 6468 # 6469 cflags=`echo $cflags | sed 's;-I/usr/local/include;;'` 6470 fi 6471 V_INCLS="$cflags $V_INCLS" 6472 libpcap=`"$PCAP_CONFIG" --libs` 6473 # 6474 # Work around macOS (and probably other Darwin) brokenness, 6475 # by not adding /usr/local/lib if it's from the broken 6476 # Apple pcap-config. 6477 # 6478 if test "$_broken_apple_pcap_config" = "yes" ; then 6479 # 6480 # Strip -L/usr/local/lib with sed. 6481 # 6482 libpcap=`echo $libpcap | sed 's;-L/usr/local/lib;;'` 6483 fi 6484 else 6485 # 6486 # Not found; look for an installed pcap. 6487 # 6488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lpcap" >&5 6489 printf %s "checking for main in -lpcap... " >&6; } 6490 if test ${ac_cv_lib_pcap_main+y} 6491 then : 6492 printf %s "(cached) " >&6 6493 else $as_nop 6494 ac_check_lib_save_LIBS=$LIBS 6495 LIBS="-lpcap $LIBS" 6496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6497 /* end confdefs.h. */ 6498 6499 6500 int 6501 main (void) 6502 { 6503 return main (); 6504 ; 6505 return 0; 6506 } 6507 _ACEOF 6508 if ac_fn_c_try_link "$LINENO" 6509 then : 6510 ac_cv_lib_pcap_main=yes 6511 else $as_nop 6512 ac_cv_lib_pcap_main=no 6513 fi 6514 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6515 conftest$ac_exeext conftest.$ac_ext 6516 LIBS=$ac_check_lib_save_LIBS 6517 fi 6518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_main" >&5 6519 printf "%s\n" "$ac_cv_lib_pcap_main" >&6; } 6520 if test "x$ac_cv_lib_pcap_main" = xyes 6521 then : 6522 libpcap="-lpcap" 6523 fi 6524 6525 if test $libpcap = FAIL ; then 6526 as_fn_error $? "see the INSTALL.md file for more info" "$LINENO" 5 6527 fi 6528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for extraneous pcap header directories" >&5 6529 printf %s "checking for extraneous pcap header directories... " >&6; } 6530 if test \( ! -r /usr/local/include/pcap.h \) -a \ 6531 \( ! -r /usr/include/pcap.h \); then 6532 if test -r /usr/local/include/pcap/pcap.h; then 6533 d="/usr/local/include/pcap" 6534 elif test -r /usr/include/pcap/pcap.h; then 6535 d="/usr/include/pcap" 6536 fi 6537 fi 6538 if test -z "$d" ; then 6539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6540 printf "%s\n" "not found" >&6; } 6541 else 6542 V_INCLS="-I$d $V_INCLS" 6543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found -- -I$d added" >&5 6544 printf "%s\n" "found -- -I$d added" >&6; } 6545 fi 6546 fi 6547 fi 6548 else 6549 # 6550 # We found a local libpcap. Add it to the dependencies for 6551 # tcpdump. 6552 # 6553 V_PCAPDEP=$libpcap 6554 6555 # 6556 # Look for its pcap-config script. 6557 # 6558 # Extract the first word of "pcap-config", so it can be a program name with args. 6559 set dummy pcap-config; ac_word=$2 6560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6561 printf %s "checking for $ac_word... " >&6; } 6562 if test ${ac_cv_path_PCAP_CONFIG+y} 6563 then : 6564 printf %s "(cached) " >&6 6565 else $as_nop 6566 case $PCAP_CONFIG in 6567 [\\/]* | ?:[\\/]*) 6568 ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path. 6569 ;; 6570 *) 6571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6572 for as_dir in $local_pcap_dir 6573 do 6574 IFS=$as_save_IFS 6575 case $as_dir in #((( 6576 '') as_dir=./ ;; 6577 */) ;; 6578 *) as_dir=$as_dir/ ;; 6579 esac 6580 for ac_exec_ext in '' $ac_executable_extensions; do 6581 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6582 ac_cv_path_PCAP_CONFIG="$as_dir$ac_word$ac_exec_ext" 6583 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6584 break 2 6585 fi 6586 done 6587 done 6588 IFS=$as_save_IFS 6589 6590 ;; 6591 esac 6592 fi 6593 PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG 6594 if test -n "$PCAP_CONFIG"; then 6595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PCAP_CONFIG" >&5 6596 printf "%s\n" "$PCAP_CONFIG" >&6; } 6597 else 6598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6599 printf "%s\n" "no" >&6; } 6600 fi 6601 6602 6603 6604 if test -n "$PCAP_CONFIG"; then 6605 # 6606 # We don't want its --cflags or --libs output, because 6607 # those presume it's installed. For the C compiler flags, 6608 # we add the source directory for the local libpcap, so 6609 # we pick up its header files. 6610 # 6611 # We do, however, want its additional libraries, as required 6612 # when linking statically, because it makes calls to 6613 # routines in those libraries, so we'll need to link with 6614 # them, because we'll be linking statically with it. 6615 # 6616 # If it supports --static-pcap-only. use that, as we will be 6617 # linking with a static libpcap but won't be linking 6618 # statically with any of the libraries on which it depends; 6619 # those libraries might not even have static versions 6620 # installed. 6621 # 6622 # That means we need to find out the libraries on which 6623 # libpcap directly depends, so we can link with them, but we 6624 # don't need to link with the libraries on which those 6625 # libraries depend as, on all UN*Xes with which I'm 6626 # familiar, the libraries on which a shared library depends 6627 # are stored in the library and are automatically loaded by 6628 # the run-time linker, without the executable having to be 6629 # linked with those libraries. (This allows a library to be 6630 # changed to depend on more libraries without breaking that 6631 # library's ABI.) 6632 # 6633 # The only way to test for that support is to see if the 6634 # script contains the string "static-pcap-only"; we can't 6635 # try using that flag and checking for errors, as the 6636 # versions of the script that didn't have that flag wouldn't 6637 # report or return an error for an unsupported command-line 6638 # flag. Those older versions provided, with --static, only 6639 # the libraries on which libpcap depends, not the 6640 # dependencies of those libraries; the versions with 6641 # --static-pcap-only provide all the dependencies with 6642 # --static, for the benefit of programs that are completely 6643 # statically linked, and provide only the direct 6644 # dependencies with --static-pcap-only. 6645 # 6646 if grep "static-pcap-only" "$PCAP_CONFIG" >/dev/null 2>&1 6647 then 6648 static_opt="--static-pcap-only" 6649 else 6650 static_opt="--static" 6651 fi 6652 V_INCLS="-I$local_pcap_dir $V_INCLS" 6653 additional_libs=`"$PCAP_CONFIG" $static_opt --additional-libs` 6654 libpcap="$libpcap $additional_libs" 6655 else 6656 # 6657 # It doesn't have a pcap-config script. 6658 # Make sure it has a pcap.h file. 6659 # 6660 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \ 6661 $EGREP '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'` 6662 places2=`ls .. | sed -e 's,/$,,' -e "s,^,../," | \ 6663 $EGREP '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'` 6664 pcapH=FAIL 6665 if test -r $local_pcap_dir/pcap.h; then 6666 pcapH=$local_pcap_dir 6667 else 6668 for dir in $places $srcdir/../libpcap ../libpcap $srcdir/libpcap $places2 ; do 6669 if test -r $dir/pcap.h ; then 6670 pcapH=$dir 6671 fi 6672 done 6673 fi 6674 6675 if test $pcapH = FAIL ; then 6676 as_fn_error $? "cannot find pcap.h: see the INSTALL.md file" "$LINENO" 5 6677 fi 6678 6679 # 6680 # Force the compiler to look for header files in the 6681 # directory containing pcap.h. 6682 # 6683 V_INCLS="-I$pcapH $V_INCLS" 6684 fi 6685 fi 6686 6687 if test -z "$PKG_CONFIG" -a -z "$PCAP_CONFIG"; then 6688 # 6689 # We don't have pkg-config or pcap-config; find out any additional 6690 # link flags we need. (If we have pkg-config or pcap-config, we 6691 # assume it tells us what we need.) 6692 # 6693 case "$host_os" in 6694 6695 aix*) 6696 # 6697 # If libpcap is DLPI-based, we have to use /lib/pse.exp if 6698 # present, as we use the STREAMS routines. 6699 # 6700 # (XXX - true only if we're linking with a static libpcap?) 6701 # 6702 pseexe="/lib/pse.exp" 6703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $pseexe" >&5 6704 printf %s "checking for $pseexe... " >&6; } 6705 if test -f $pseexe ; then 6706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6707 printf "%s\n" "yes" >&6; } 6708 LIBS="$LIBS -I:$pseexe" 6709 fi 6710 6711 # 6712 # If libpcap is BPF-based, we need "-lodm" and "-lcfg", as 6713 # we use them to load the BPF module. 6714 # 6715 # (XXX - true only if we're linking with a static libpcap?) 6716 # 6717 LIBS="$LIBS -lodm -lcfg" 6718 ;; 6719 6720 solaris*) 6721 # libdlpi is needed for Solaris 11 and later. 6722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlpi_walk in -ldlpi" >&5 6723 printf %s "checking for dlpi_walk in -ldlpi... " >&6; } 6724 if test ${ac_cv_lib_dlpi_dlpi_walk+y} 6725 then : 6726 printf %s "(cached) " >&6 6727 else $as_nop 6728 ac_check_lib_save_LIBS=$LIBS 6729 LIBS="-ldlpi -L/lib $LIBS" 6730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6731 /* end confdefs.h. */ 6732 6733 /* Override any GCC internal prototype to avoid an error. 6734 Use char because int might match the return type of a GCC 6735 builtin and then its argument prototype would still apply. */ 6736 char dlpi_walk (); 6737 int 6738 main (void) 6739 { 6740 return dlpi_walk (); 6741 ; 6742 return 0; 6743 } 6744 _ACEOF 6745 if ac_fn_c_try_link "$LINENO" 6746 then : 6747 ac_cv_lib_dlpi_dlpi_walk=yes 6748 else $as_nop 6749 ac_cv_lib_dlpi_dlpi_walk=no 6750 fi 6751 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6752 conftest$ac_exeext conftest.$ac_ext 6753 LIBS=$ac_check_lib_save_LIBS 6754 fi 6755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dlpi_dlpi_walk" >&5 6756 printf "%s\n" "$ac_cv_lib_dlpi_dlpi_walk" >&6; } 6757 if test "x$ac_cv_lib_dlpi_dlpi_walk" = xyes 6758 then : 6759 LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib $LDFLAGS" 6760 fi 6761 6762 ;; 6763 esac 6764 fi 6765 6766 LIBS="$libpcap $LIBS" 6767 6768 ac_fn_c_check_func "$LINENO" "pcap_loop" "ac_cv_func_pcap_loop" 6769 if test "x$ac_cv_func_pcap_loop" = xyes 6770 then : 6771 6772 else $as_nop 6773 6774 as_fn_error $? " 6775 1. Do you try to build a 32-bit tcpdump with a 64-bit libpcap or vice versa? 6776 2. This is a bug, please follow the guidelines in CONTRIBUTING.md and include 6777 the config.log file in your report. If you have downloaded libpcap from 6778 tcpdump.org, and built it yourself, please also include the config.log 6779 file from the libpcap source directory, the Makefile from the libpcap 6780 source directory, and the output of the make process for libpcap, as 6781 this could be a problem with the libpcap that was built, and we will 6782 not be able to determine why this is happening, and thus will not be 6783 able to fix it, without that information, as we have not been able to 6784 reproduce this problem ourselves." "$LINENO" 5 6785 6786 fi 6787 6788 6789 6790 # 6791 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate 6792 # libraries (e.g., "-lsocket -lnsl" on Solaris). 6793 # 6794 # You are in a twisty little maze of UN*Xes, all different. 6795 # Some might not have ether_ntohost(). 6796 # Some might have it and declare it in <net/ethernet.h>. 6797 # Some might have it and declare it in <netinet/ether.h> 6798 # Some might have it and declare it in <sys/ethernet.h>. 6799 # Some might have it and declare it in <arpa/inet.h>. 6800 # Some might have it and declare it in <netinet/if_ether.h>. 6801 # Some might have it and not declare it in any header file. 6802 # 6803 # Before you is a C compiler. 6804 # 6805 6806 for ac_func in ether_ntohost 6807 do : 6808 ac_fn_c_check_func "$LINENO" "ether_ntohost" "ac_cv_func_ether_ntohost" 6809 if test "x$ac_cv_func_ether_ntohost" = xyes 6810 then : 6811 printf "%s\n" "#define HAVE_ETHER_NTOHOST 1" >>confdefs.h 6812 6813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for buggy ether_ntohost" >&5 6814 printf %s "checking for buggy ether_ntohost... " >&6; } 6815 if test ${ac_cv_buggy_ether_ntohost+y} 6816 then : 6817 printf %s "(cached) " >&6 6818 else $as_nop 6819 6820 if test "$cross_compiling" = yes 6821 then : 6822 ac_cv_buggy_ether_ntohost="not while cross-compiling" 6823 else $as_nop 6824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6825 /* end confdefs.h. */ 6826 6827 #include <netdb.h> 6828 #include <netinet/ether.h> 6829 #include <stdlib.h> 6830 #include <sys/types.h> 6831 #include <sys/param.h> 6832 #include <sys/socket.h> 6833 6834 int 6835 main(int argc, char **argv) 6836 { 6837 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff }; 6838 char name[MAXHOSTNAMELEN]; 6839 6840 ether_ntohost(name, (struct ether_addr *)ea); 6841 exit(0); 6842 } 6843 6844 6845 _ACEOF 6846 if ac_fn_c_try_run "$LINENO" 6847 then : 6848 ac_cv_buggy_ether_ntohost=no 6849 else $as_nop 6850 ac_cv_buggy_ether_ntohost=yes 6851 fi 6852 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6853 conftest.$ac_objext conftest.beam conftest.$ac_ext 6854 fi 6855 6856 fi 6857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_ether_ntohost" >&5 6858 printf "%s\n" "$ac_cv_buggy_ether_ntohost" >&6; } 6859 if test "$ac_cv_buggy_ether_ntohost" = "no"; then 6860 6861 printf "%s\n" "#define USE_ETHER_NTOHOST 1" >>confdefs.h 6862 6863 fi 6864 6865 fi 6866 6867 done 6868 if test "$ac_cv_func_ether_ntohost" = yes -a \ 6869 "$ac_cv_buggy_ether_ntohost" = "no"; then 6870 # 6871 # OK, we have ether_ntohost(). Is it declared in <net/ethernet.h>? 6872 # 6873 # This test fails if we don't have <net/ethernet.h> or if we do 6874 # but it doesn't declare ether_ntohost(). 6875 # 6876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 6877 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 6878 if test ${ac_cv_c_undeclared_builtin_options+y} 6879 then : 6880 printf %s "(cached) " >&6 6881 else $as_nop 6882 ac_save_CFLAGS=$CFLAGS 6883 ac_cv_c_undeclared_builtin_options='cannot detect' 6884 for ac_arg in '' -fno-builtin; do 6885 CFLAGS="$ac_save_CFLAGS $ac_arg" 6886 # This test program should *not* compile successfully. 6887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6888 /* end confdefs.h. */ 6889 6890 int 6891 main (void) 6892 { 6893 (void) strchr; 6894 ; 6895 return 0; 6896 } 6897 _ACEOF 6898 if ac_fn_c_try_compile "$LINENO" 6899 then : 6900 6901 else $as_nop 6902 # This test program should compile successfully. 6903 # No library function is consistently available on 6904 # freestanding implementations, so test against a dummy 6905 # declaration. Include always-available headers on the 6906 # off chance that they somehow elicit warnings. 6907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6908 /* end confdefs.h. */ 6909 #include <float.h> 6910 #include <limits.h> 6911 #include <stdarg.h> 6912 #include <stddef.h> 6913 extern void ac_decl (int, char *); 6914 6915 int 6916 main (void) 6917 { 6918 (void) ac_decl (0, (char *) 0); 6919 (void) ac_decl; 6920 6921 ; 6922 return 0; 6923 } 6924 _ACEOF 6925 if ac_fn_c_try_compile "$LINENO" 6926 then : 6927 if test x"$ac_arg" = x 6928 then : 6929 ac_cv_c_undeclared_builtin_options='none needed' 6930 else $as_nop 6931 ac_cv_c_undeclared_builtin_options=$ac_arg 6932 fi 6933 break 6934 fi 6935 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6936 fi 6937 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6938 done 6939 CFLAGS=$ac_save_CFLAGS 6940 6941 fi 6942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 6943 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 6944 case $ac_cv_c_undeclared_builtin_options in #( 6945 'cannot detect') : 6946 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6947 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 6948 as_fn_error $? "cannot make $CC report undeclared builtins 6949 See \`config.log' for more details" "$LINENO" 5; } ;; #( 6950 'none needed') : 6951 ac_c_undeclared_builtin_options='' ;; #( 6952 *) : 6953 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 6954 esac 6955 6956 ac_fn_check_decl "$LINENO" "ether_ntohost" "ac_cv_have_decl_ether_ntohost" " 6957 #include <net/ethernet.h> 6958 6959 " "$ac_c_undeclared_builtin_options" "CFLAGS" 6960 if test "x$ac_cv_have_decl_ether_ntohost" = xyes 6961 then : 6962 6963 6964 printf "%s\n" "#define NET_ETHERNET_H_DECLARES_ETHER_NTOHOST /**/" >>confdefs.h 6965 6966 6967 fi 6968 # 6969 # Did that succeed? 6970 # 6971 if test "$ac_cv_have_decl_ether_ntohost" != yes; then 6972 # 6973 # No, how about <netinet/ether.h>, as on Linux? 6974 # 6975 # This test fails if we don't have <netinet/ether.h> 6976 # or if we do but it doesn't declare ether_ntohost(). 6977 # 6978 # Unset ac_cv_have_decl_ether_ntohost so we don't 6979 # treat the previous failure as a cached value and 6980 # suppress the next test. 6981 # 6982 unset ac_cv_have_decl_ether_ntohost 6983 ac_fn_check_decl "$LINENO" "ether_ntohost" "ac_cv_have_decl_ether_ntohost" " 6984 #include <netinet/ether.h> 6985 6986 " "$ac_c_undeclared_builtin_options" "CFLAGS" 6987 if test "x$ac_cv_have_decl_ether_ntohost" = xyes 6988 then : 6989 6990 6991 printf "%s\n" "#define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST 1" >>confdefs.h 6992 6993 6994 fi 6995 fi 6996 # 6997 # Did that succeed? 6998 # 6999 if test "$ac_cv_have_decl_ether_ntohost" != yes; then 7000 # 7001 # No, how about <sys/ethernet.h>, as on Solaris 10 7002 # and later? 7003 # 7004 # This test fails if we don't have <sys/ethernet.h> 7005 # or if we do but it doesn't declare ether_ntohost(). 7006 # 7007 # Unset ac_cv_have_decl_ether_ntohost so we don't 7008 # treat the previous failure as a cached value and 7009 # suppress the next test. 7010 # 7011 unset ac_cv_have_decl_ether_ntohost 7012 ac_fn_check_decl "$LINENO" "ether_ntohost" "ac_cv_have_decl_ether_ntohost" " 7013 #include <sys/ethernet.h> 7014 7015 " "$ac_c_undeclared_builtin_options" "CFLAGS" 7016 if test "x$ac_cv_have_decl_ether_ntohost" = xyes 7017 then : 7018 7019 7020 printf "%s\n" "#define SYS_ETHERNET_H_DECLARES_ETHER_NTOHOST /**/" >>confdefs.h 7021 7022 7023 fi 7024 fi 7025 # 7026 # Did that succeed? 7027 # 7028 if test "$ac_cv_have_decl_ether_ntohost" != yes; then 7029 # 7030 # No, how about <arpa/inet.h>, as in AIX? 7031 # 7032 # This test fails if we don't have <arpa/inet.h> 7033 # (if we have ether_ntohost(), we should have 7034 # networking, and if we have networking, we should 7035 # have <arpa/inet.h>) or if we do but it doesn't 7036 # declare ether_ntohost(). 7037 # 7038 # Unset ac_cv_have_decl_ether_ntohost so we don't 7039 # treat the previous failure as a cached value and 7040 # suppress the next test. 7041 # 7042 unset ac_cv_have_decl_ether_ntohost 7043 ac_fn_check_decl "$LINENO" "ether_ntohost" "ac_cv_have_decl_ether_ntohost" " 7044 #include <arpa/inet.h> 7045 7046 " "$ac_c_undeclared_builtin_options" "CFLAGS" 7047 if test "x$ac_cv_have_decl_ether_ntohost" = xyes 7048 then : 7049 7050 7051 printf "%s\n" "#define ARPA_INET_H_DECLARES_ETHER_NTOHOST /**/" >>confdefs.h 7052 7053 7054 fi 7055 fi 7056 # 7057 # Did that succeed? 7058 # 7059 if test "$ac_cv_have_decl_ether_ntohost" != yes; then 7060 # 7061 # No, how about <netinet/if_ether.h>? 7062 # On some platforms, it requires <net/if.h> and 7063 # <netinet/in.h>, and we always include it with 7064 # both of them, so test it with both of them. 7065 # 7066 # This test fails if we don't have <netinet/if_ether.h> 7067 # and the headers we include before it, or if we do but 7068 # <netinet/if_ether.h> doesn't declare ether_hostton(). 7069 # 7070 # Unset ac_cv_have_decl_ether_ntohost so we don't 7071 # treat the previous failure as a cached value and 7072 # suppress the next test. 7073 # 7074 unset ac_cv_have_decl_ether_ntohost 7075 ac_fn_check_decl "$LINENO" "ether_ntohost" "ac_cv_have_decl_ether_ntohost" " 7076 #include <sys/types.h> 7077 #include <sys/socket.h> 7078 #include <net/if.h> 7079 #include <netinet/in.h> 7080 #include <netinet/if_ether.h> 7081 7082 " "$ac_c_undeclared_builtin_options" "CFLAGS" 7083 if test "x$ac_cv_have_decl_ether_ntohost" = xyes 7084 then : 7085 7086 7087 printf "%s\n" "#define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST /**/" >>confdefs.h 7088 7089 7090 fi 7091 fi 7092 # 7093 # After all that, is ether_ntohost() declared? 7094 # 7095 if test "$ac_cv_have_decl_ether_ntohost" = yes; then 7096 # 7097 # Yes. 7098 # 7099 7100 printf "%s\n" "#define HAVE_DECL_ETHER_NTOHOST 1" >>confdefs.h 7101 7102 else 7103 # 7104 # No, we'll have to declare it ourselves. 7105 # Do we have "struct ether_addr" if we include 7106 # <netinet/if_ether.h>? 7107 # 7108 ac_fn_c_check_type "$LINENO" "struct ether_addr" "ac_cv_type_struct_ether_addr" " 7109 #include <sys/types.h> 7110 #include <sys/socket.h> 7111 #include <net/if.h> 7112 #include <netinet/in.h> 7113 #include <netinet/if_ether.h> 7114 7115 " 7116 if test "x$ac_cv_type_struct_ether_addr" = xyes 7117 then : 7118 7119 printf "%s\n" "#define HAVE_STRUCT_ETHER_ADDR 1" >>confdefs.h 7120 7121 7122 fi 7123 7124 fi 7125 fi 7126 7127 ac_fn_c_check_func "$LINENO" "pcap_list_datalinks" "ac_cv_func_pcap_list_datalinks" 7128 if test "x$ac_cv_func_pcap_list_datalinks" = xyes 7129 then : 7130 7131 7132 printf "%s\n" "#define HAVE_PCAP_LIST_DATALINKS 1" >>confdefs.h 7133 7134 ac_fn_c_check_func "$LINENO" "pcap_free_datalinks" "ac_cv_func_pcap_free_datalinks" 7135 if test "x$ac_cv_func_pcap_free_datalinks" = xyes 7136 then : 7137 printf "%s\n" "#define HAVE_PCAP_FREE_DATALINKS 1" >>confdefs.h 7138 7139 fi 7140 7141 7142 else $as_nop 7143 7144 case " $LIBOBJS " in 7145 *" datalinks.$ac_objext "* ) ;; 7146 *) LIBOBJS="$LIBOBJS datalinks.$ac_objext" 7147 ;; 7148 esac 7149 7150 7151 fi 7152 7153 7154 ac_fn_c_check_func "$LINENO" "pcap_datalink_name_to_val" "ac_cv_func_pcap_datalink_name_to_val" 7155 if test "x$ac_cv_func_pcap_datalink_name_to_val" = xyes 7156 then : 7157 7158 7159 printf "%s\n" "#define HAVE_PCAP_DATALINK_NAME_TO_VAL 1" >>confdefs.h 7160 7161 ac_fn_c_check_func "$LINENO" "pcap_datalink_val_to_description" "ac_cv_func_pcap_datalink_val_to_description" 7162 if test "x$ac_cv_func_pcap_datalink_val_to_description" = xyes 7163 then : 7164 7165 printf "%s\n" "#define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1" >>confdefs.h 7166 7167 else $as_nop 7168 7169 case " $LIBOBJS " in 7170 *" dlnames.$ac_objext "* ) ;; 7171 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext" 7172 ;; 7173 esac 7174 7175 7176 fi 7177 7178 7179 else $as_nop 7180 7181 case " $LIBOBJS " in 7182 *" dlnames.$ac_objext "* ) ;; 7183 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext" 7184 ;; 7185 esac 7186 7187 7188 fi 7189 7190 7191 ac_fn_c_check_func "$LINENO" "pcap_set_datalink" "ac_cv_func_pcap_set_datalink" 7192 if test "x$ac_cv_func_pcap_set_datalink" = xyes 7193 then : 7194 printf "%s\n" "#define HAVE_PCAP_SET_DATALINK 1" >>confdefs.h 7195 7196 fi 7197 7198 7199 ac_fn_c_check_func "$LINENO" "pcap_breakloop" "ac_cv_func_pcap_breakloop" 7200 if test "x$ac_cv_func_pcap_breakloop" = xyes 7201 then : 7202 printf "%s\n" "#define HAVE_PCAP_BREAKLOOP 1" >>confdefs.h 7203 7204 fi 7205 7206 7207 # 7208 # Do we have the new open API? Check for pcap_create, and assume that, 7209 # if we do, we also have pcap_activate() and the other new routines 7210 # introduced in libpcap 1.0.0. 7211 # 7212 ac_fn_c_check_func "$LINENO" "pcap_create" "ac_cv_func_pcap_create" 7213 if test "x$ac_cv_func_pcap_create" = xyes 7214 then : 7215 printf "%s\n" "#define HAVE_PCAP_CREATE 1" >>confdefs.h 7216 7217 fi 7218 7219 if test $ac_cv_func_pcap_create = "yes" ; then 7220 # 7221 # OK, do we have pcap_set_tstamp_type? If so, assume we have 7222 # pcap_list_tstamp_types and pcap_free_tstamp_types as well. 7223 # 7224 ac_fn_c_check_func "$LINENO" "pcap_set_tstamp_type" "ac_cv_func_pcap_set_tstamp_type" 7225 if test "x$ac_cv_func_pcap_set_tstamp_type" = xyes 7226 then : 7227 printf "%s\n" "#define HAVE_PCAP_SET_TSTAMP_TYPE 1" >>confdefs.h 7228 7229 fi 7230 7231 # 7232 # And do we have pcap_set_tstamp_precision? If so, we assume 7233 # we also have pcap_open_offline_with_tstamp_precision. 7234 # 7235 ac_fn_c_check_func "$LINENO" "pcap_set_tstamp_precision" "ac_cv_func_pcap_set_tstamp_precision" 7236 if test "x$ac_cv_func_pcap_set_tstamp_precision" = xyes 7237 then : 7238 printf "%s\n" "#define HAVE_PCAP_SET_TSTAMP_PRECISION 1" >>confdefs.h 7239 7240 fi 7241 7242 fi 7243 7244 # 7245 # Check for a miscellaneous collection of functions which we use 7246 # if we have them. 7247 # 7248 ac_fn_c_check_func "$LINENO" "pcap_findalldevs" "ac_cv_func_pcap_findalldevs" 7249 if test "x$ac_cv_func_pcap_findalldevs" = xyes 7250 then : 7251 printf "%s\n" "#define HAVE_PCAP_FINDALLDEVS 1" >>confdefs.h 7252 7253 fi 7254 7255 ac_fn_c_check_func "$LINENO" "pcap_dump_flush" "ac_cv_func_pcap_dump_flush" 7256 if test "x$ac_cv_func_pcap_dump_flush" = xyes 7257 then : 7258 printf "%s\n" "#define HAVE_PCAP_DUMP_FLUSH 1" >>confdefs.h 7259 7260 fi 7261 ac_fn_c_check_func "$LINENO" "pcap_lib_version" "ac_cv_func_pcap_lib_version" 7262 if test "x$ac_cv_func_pcap_lib_version" = xyes 7263 then : 7264 printf "%s\n" "#define HAVE_PCAP_LIB_VERSION 1" >>confdefs.h 7265 7266 fi 7267 7268 if test $ac_cv_func_pcap_lib_version = "no" ; then 7269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pcap_version is defined by libpcap" >&5 7270 printf %s "checking whether pcap_version is defined by libpcap... " >&6; } 7271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7272 /* end confdefs.h. */ 7273 7274 int 7275 main (void) 7276 { 7277 7278 extern char pcap_version[]; 7279 7280 return (int)pcap_version; 7281 7282 ; 7283 return 0; 7284 } 7285 7286 _ACEOF 7287 if ac_fn_c_try_link "$LINENO" 7288 then : 7289 ac_lbl_cv_pcap_version_defined=yes 7290 else $as_nop 7291 ac_lbl_cv_pcap_version_defined=no 7292 fi 7293 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7294 conftest$ac_exeext conftest.$ac_ext 7295 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then 7296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7297 printf "%s\n" "yes" >&6; } 7298 7299 printf "%s\n" "#define HAVE_PCAP_VERSION 1" >>confdefs.h 7300 7301 else 7302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7303 printf "%s\n" "no" >&6; } 7304 fi 7305 fi 7306 ac_fn_c_check_func "$LINENO" "pcap_setdirection" "ac_cv_func_pcap_setdirection" 7307 if test "x$ac_cv_func_pcap_setdirection" = xyes 7308 then : 7309 printf "%s\n" "#define HAVE_PCAP_SETDIRECTION 1" >>confdefs.h 7310 7311 fi 7312 ac_fn_c_check_func "$LINENO" "pcap_set_immediate_mode" "ac_cv_func_pcap_set_immediate_mode" 7313 if test "x$ac_cv_func_pcap_set_immediate_mode" = xyes 7314 then : 7315 printf "%s\n" "#define HAVE_PCAP_SET_IMMEDIATE_MODE 1" >>confdefs.h 7316 7317 fi 7318 ac_fn_c_check_func "$LINENO" "pcap_dump_ftell64" "ac_cv_func_pcap_dump_ftell64" 7319 if test "x$ac_cv_func_pcap_dump_ftell64" = xyes 7320 then : 7321 printf "%s\n" "#define HAVE_PCAP_DUMP_FTELL64 1" >>confdefs.h 7322 7323 fi 7324 7325 # 7326 # See the comment in AC_LBL_LIBPCAP in aclocal.m4 for the reason 7327 # why we don't check for remote-capture APIs if we're building 7328 # with the system libpcap on macOS. 7329 # 7330 if test "$_dont_check_for_remote_apis" != "yes"; then 7331 ac_fn_c_check_func "$LINENO" "pcap_open" "ac_cv_func_pcap_open" 7332 if test "x$ac_cv_func_pcap_open" = xyes 7333 then : 7334 printf "%s\n" "#define HAVE_PCAP_OPEN 1" >>confdefs.h 7335 7336 fi 7337 ac_fn_c_check_func "$LINENO" "pcap_findalldevs_ex" "ac_cv_func_pcap_findalldevs_ex" 7338 if test "x$ac_cv_func_pcap_findalldevs_ex" = xyes 7339 then : 7340 printf "%s\n" "#define HAVE_PCAP_FINDALLDEVS_EX 1" >>confdefs.h 7341 7342 fi 7343 7344 fi 7345 ac_fn_c_check_func "$LINENO" "pcap_dump_ftell" "ac_cv_func_pcap_dump_ftell" 7346 if test "x$ac_cv_func_pcap_dump_ftell" = xyes 7347 then : 7348 printf "%s\n" "#define HAVE_PCAP_DUMP_FTELL 1" >>confdefs.h 7349 7350 else $as_nop 7351 case " $LIBOBJS " in 7352 *" pcap_dump_ftell.$ac_objext "* ) ;; 7353 *) LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext" 7354 ;; 7355 esac 7356 7357 fi 7358 7359 7360 # 7361 # Check for special debugging functions 7362 # 7363 ac_fn_c_check_func "$LINENO" "pcap_set_parser_debug" "ac_cv_func_pcap_set_parser_debug" 7364 if test "x$ac_cv_func_pcap_set_parser_debug" = xyes 7365 then : 7366 printf "%s\n" "#define HAVE_PCAP_SET_PARSER_DEBUG 1" >>confdefs.h 7367 7368 fi 7369 7370 if test "$ac_cv_func_pcap_set_parser_debug" = "no" ; then 7371 # 7372 # OK, we don't have pcap_set_parser_debug() to set the libpcap 7373 # filter expression parser debug flag; can we directly set the 7374 # flag? 7375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pcap_debug is defined by libpcap" >&5 7376 printf %s "checking whether pcap_debug is defined by libpcap... " >&6; } 7377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7378 /* end confdefs.h. */ 7379 7380 int 7381 main (void) 7382 { 7383 7384 extern int pcap_debug; 7385 7386 return pcap_debug; 7387 7388 ; 7389 return 0; 7390 } 7391 7392 _ACEOF 7393 if ac_fn_c_try_link "$LINENO" 7394 then : 7395 ac_lbl_cv_pcap_debug_defined=yes 7396 else $as_nop 7397 ac_lbl_cv_pcap_debug_defined=no 7398 fi 7399 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7400 conftest$ac_exeext conftest.$ac_ext 7401 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then 7402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7403 printf "%s\n" "yes" >&6; } 7404 7405 printf "%s\n" "#define HAVE_PCAP_DEBUG 1" >>confdefs.h 7406 7407 else 7408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7409 printf "%s\n" "no" >&6; } 7410 # 7411 # OK, what about "yydebug"? 7412 # 7413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether yydebug is defined by libpcap" >&5 7414 printf %s "checking whether yydebug is defined by libpcap... " >&6; } 7415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7416 /* end confdefs.h. */ 7417 7418 int 7419 main (void) 7420 { 7421 7422 extern int yydebug; 7423 7424 return yydebug; 7425 7426 ; 7427 return 0; 7428 } 7429 7430 _ACEOF 7431 if ac_fn_c_try_link "$LINENO" 7432 then : 7433 ac_lbl_cv_yydebug_defined=yes 7434 else $as_nop 7435 ac_lbl_cv_yydebug_defined=no 7436 fi 7437 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7438 conftest$ac_exeext conftest.$ac_ext 7439 if test "$ac_lbl_cv_yydebug_defined" = yes ; then 7440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7441 printf "%s\n" "yes" >&6; } 7442 7443 printf "%s\n" "#define HAVE_YYDEBUG 1" >>confdefs.h 7444 7445 else 7446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7447 printf "%s\n" "no" >&6; } 7448 fi 7449 fi 7450 fi 7451 ac_fn_c_check_func "$LINENO" "pcap_set_optimizer_debug" "ac_cv_func_pcap_set_optimizer_debug" 7452 if test "x$ac_cv_func_pcap_set_optimizer_debug" = xyes 7453 then : 7454 printf "%s\n" "#define HAVE_PCAP_SET_OPTIMIZER_DEBUG 1" >>confdefs.h 7455 7456 fi 7457 7458 ac_fn_c_check_func "$LINENO" "bpf_dump" "ac_cv_func_bpf_dump" 7459 if test "x$ac_cv_func_bpf_dump" = xyes 7460 then : 7461 printf "%s\n" "#define HAVE_BPF_DUMP 1" >>confdefs.h 7462 7463 else $as_nop 7464 case " $LIBOBJS " in 7465 *" bpf_dump.$ac_objext "* ) ;; 7466 *) LIBOBJS="$LIBOBJS bpf_dump.$ac_objext" 7467 ;; 7468 esac 7469 7470 fi 7471 7472 # 7473 # Assume V7/BSD convention for man pages (file formats in section 5, 7474 # miscellaneous info in section 7). 7475 # 7476 MAN_FILE_FORMATS=5 7477 MAN_MISC_INFO=7 7478 case "$host_os" in 7479 7480 aix*) 7481 7482 printf "%s\n" "#define _SUN 1" >>confdefs.h 7483 7484 ;; 7485 7486 hpux*) 7487 # 7488 # Use System V conventions for man pages. 7489 # 7490 MAN_FILE_FORMATS=4 7491 MAN_MISC_INFO=5 7492 ;; 7493 7494 irix*) 7495 V_GROUP=sys 7496 7497 # 7498 # Use System V conventions for man pages. 7499 # 7500 MAN_FILE_FORMATS=4 7501 MAN_MISC_INFO=5 7502 ;; 7503 7504 osf*) 7505 V_GROUP=system 7506 7507 # 7508 # Use System V conventions for man pages. 7509 # 7510 MAN_FILE_FORMATS=4 7511 MAN_MISC_INFO=5 7512 ;; 7513 7514 solaris*) 7515 # 7516 # Use System V conventions for man pages. 7517 # 7518 MAN_FILE_FORMATS=4 7519 MAN_MISC_INFO=5 7520 ;; 7521 esac 7522 7523 # 7524 # Make sure we have a definition for C99's uintptr_t (regardless of 7525 # whether the environment is a C99 environment or not). 7526 # 7527 7528 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 7529 if test "x$ac_cv_type_uintptr_t" = xyes 7530 then : 7531 7532 printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h 7533 7534 else $as_nop 7535 for ac_type in 'unsigned int' 'unsigned long int' \ 7536 'unsigned long long int'; do 7537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7538 /* end confdefs.h. */ 7539 $ac_includes_default 7540 int 7541 main (void) 7542 { 7543 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 7544 test_array [0] = 0; 7545 return test_array [0]; 7546 7547 ; 7548 return 0; 7549 } 7550 _ACEOF 7551 if ac_fn_c_try_compile "$LINENO" 7552 then : 7553 7554 printf "%s\n" "#define uintptr_t $ac_type" >>confdefs.h 7555 7556 ac_type= 7557 fi 7558 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7559 test -z "$ac_type" && break 7560 done 7561 fi 7562 7563 7564 7565 savedcppflags="$CPPFLAGS" 7566 CPPFLAGS="$CPPFLAGS $V_INCLS" 7567 7568 # 7569 # Check whether we have pcap/pcap-inttypes.h. 7570 # If we do, we use that to get the C99 types defined. 7571 # 7572 ac_fn_c_check_header_compile "$LINENO" "pcap/pcap-inttypes.h" "ac_cv_header_pcap_pcap_inttypes_h" "$ac_includes_default" 7573 if test "x$ac_cv_header_pcap_pcap_inttypes_h" = xyes 7574 then : 7575 printf "%s\n" "#define HAVE_PCAP_PCAP_INTTYPES_H 1" >>confdefs.h 7576 7577 fi 7578 7579 7580 # 7581 # At compile time HAVE_PCAP_FINDALLDEVS depends on HAVE_PCAP_IF_T. 7582 # 7583 ac_fn_c_check_type "$LINENO" "pcap_if_t" "ac_cv_type_pcap_if_t" "#include <pcap.h> 7584 " 7585 if test "x$ac_cv_type_pcap_if_t" = xyes 7586 then : 7587 7588 printf "%s\n" "#define HAVE_PCAP_IF_T 1" >>confdefs.h 7589 7590 7591 fi 7592 7593 7594 CPPFLAGS="$savedcppflags" 7595 7596 # 7597 # Define the old BSD specified-width types in terms of the C99 types; 7598 # we may need them with libpcap include files. 7599 # 7600 ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default 7601 #include <sys/types.h> 7602 7603 " 7604 if test "x$ac_cv_type_u_int8_t" = xyes 7605 then : 7606 7607 else $as_nop 7608 7609 printf "%s\n" "#define u_int8_t uint8_t" >>confdefs.h 7610 7611 fi 7612 7613 ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default 7614 #include <sys/types.h> 7615 7616 " 7617 if test "x$ac_cv_type_u_int16_t" = xyes 7618 then : 7619 7620 else $as_nop 7621 7622 printf "%s\n" "#define u_int16_t uint16_t" >>confdefs.h 7623 7624 fi 7625 7626 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default 7627 #include <sys/types.h> 7628 7629 " 7630 if test "x$ac_cv_type_u_int32_t" = xyes 7631 then : 7632 7633 else $as_nop 7634 7635 printf "%s\n" "#define u_int32_t uint32_t" >>confdefs.h 7636 7637 fi 7638 7639 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default 7640 #include <sys/types.h> 7641 7642 " 7643 if test "x$ac_cv_type_u_int64_t" = xyes 7644 then : 7645 7646 else $as_nop 7647 7648 printf "%s\n" "#define u_int64_t uint64_t" >>confdefs.h 7649 7650 fi 7651 7652 7653 if test -n "$ac_tool_prefix"; then 7654 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7655 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7657 printf %s "checking for $ac_word... " >&6; } 7658 if test ${ac_cv_prog_RANLIB+y} 7659 then : 7660 printf %s "(cached) " >&6 7661 else $as_nop 7662 if test -n "$RANLIB"; then 7663 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7664 else 7665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7666 for as_dir in $PATH 7667 do 7668 IFS=$as_save_IFS 7669 case $as_dir in #((( 7670 '') as_dir=./ ;; 7671 */) ;; 7672 *) as_dir=$as_dir/ ;; 7673 esac 7674 for ac_exec_ext in '' $ac_executable_extensions; do 7675 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7676 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7677 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7678 break 2 7679 fi 7680 done 7681 done 7682 IFS=$as_save_IFS 7683 7684 fi 7685 fi 7686 RANLIB=$ac_cv_prog_RANLIB 7687 if test -n "$RANLIB"; then 7688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7689 printf "%s\n" "$RANLIB" >&6; } 7690 else 7691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7692 printf "%s\n" "no" >&6; } 7693 fi 7694 7695 7696 fi 7697 if test -z "$ac_cv_prog_RANLIB"; then 7698 ac_ct_RANLIB=$RANLIB 7699 # Extract the first word of "ranlib", so it can be a program name with args. 7700 set dummy ranlib; ac_word=$2 7701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7702 printf %s "checking for $ac_word... " >&6; } 7703 if test ${ac_cv_prog_ac_ct_RANLIB+y} 7704 then : 7705 printf %s "(cached) " >&6 7706 else $as_nop 7707 if test -n "$ac_ct_RANLIB"; then 7708 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7709 else 7710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7711 for as_dir in $PATH 7712 do 7713 IFS=$as_save_IFS 7714 case $as_dir in #((( 7715 '') as_dir=./ ;; 7716 */) ;; 7717 *) as_dir=$as_dir/ ;; 7718 esac 7719 for ac_exec_ext in '' $ac_executable_extensions; do 7720 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7721 ac_cv_prog_ac_ct_RANLIB="ranlib" 7722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7723 break 2 7724 fi 7725 done 7726 done 7727 IFS=$as_save_IFS 7728 7729 fi 7730 fi 7731 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7732 if test -n "$ac_ct_RANLIB"; then 7733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7734 printf "%s\n" "$ac_ct_RANLIB" >&6; } 7735 else 7736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7737 printf "%s\n" "no" >&6; } 7738 fi 7739 7740 if test "x$ac_ct_RANLIB" = x; then 7741 RANLIB=":" 7742 else 7743 case $cross_compiling:$ac_tool_warned in 7744 yes:) 7745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7746 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7747 ac_tool_warned=yes ;; 7748 esac 7749 RANLIB=$ac_ct_RANLIB 7750 fi 7751 else 7752 RANLIB="$ac_cv_prog_RANLIB" 7753 fi 7754 7755 if test -n "$ac_tool_prefix"; then 7756 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7757 set dummy ${ac_tool_prefix}ar; ac_word=$2 7758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7759 printf %s "checking for $ac_word... " >&6; } 7760 if test ${ac_cv_prog_AR+y} 7761 then : 7762 printf %s "(cached) " >&6 7763 else $as_nop 7764 if test -n "$AR"; then 7765 ac_cv_prog_AR="$AR" # Let the user override the test. 7766 else 7767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7768 for as_dir in $PATH 7769 do 7770 IFS=$as_save_IFS 7771 case $as_dir in #((( 7772 '') as_dir=./ ;; 7773 */) ;; 7774 *) as_dir=$as_dir/ ;; 7775 esac 7776 for ac_exec_ext in '' $ac_executable_extensions; do 7777 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7778 ac_cv_prog_AR="${ac_tool_prefix}ar" 7779 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7780 break 2 7781 fi 7782 done 7783 done 7784 IFS=$as_save_IFS 7785 7786 fi 7787 fi 7788 AR=$ac_cv_prog_AR 7789 if test -n "$AR"; then 7790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7791 printf "%s\n" "$AR" >&6; } 7792 else 7793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7794 printf "%s\n" "no" >&6; } 7795 fi 7796 7797 7798 fi 7799 if test -z "$ac_cv_prog_AR"; then 7800 ac_ct_AR=$AR 7801 # Extract the first word of "ar", so it can be a program name with args. 7802 set dummy ar; ac_word=$2 7803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7804 printf %s "checking for $ac_word... " >&6; } 7805 if test ${ac_cv_prog_ac_ct_AR+y} 7806 then : 7807 printf %s "(cached) " >&6 7808 else $as_nop 7809 if test -n "$ac_ct_AR"; then 7810 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7811 else 7812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7813 for as_dir in $PATH 7814 do 7815 IFS=$as_save_IFS 7816 case $as_dir in #((( 7817 '') as_dir=./ ;; 7818 */) ;; 7819 *) as_dir=$as_dir/ ;; 7820 esac 7821 for ac_exec_ext in '' $ac_executable_extensions; do 7822 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7823 ac_cv_prog_ac_ct_AR="ar" 7824 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7825 break 2 7826 fi 7827 done 7828 done 7829 IFS=$as_save_IFS 7830 7831 fi 7832 fi 7833 ac_ct_AR=$ac_cv_prog_ac_ct_AR 7834 if test -n "$ac_ct_AR"; then 7835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7836 printf "%s\n" "$ac_ct_AR" >&6; } 7837 else 7838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7839 printf "%s\n" "no" >&6; } 7840 fi 7841 7842 if test "x$ac_ct_AR" = x; then 7843 AR="" 7844 else 7845 case $cross_compiling:$ac_tool_warned in 7846 yes:) 7847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7848 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7849 ac_tool_warned=yes ;; 7850 esac 7851 AR=$ac_ct_AR 7852 fi 7853 else 7854 AR="$ac_cv_prog_AR" 7855 fi 7856 7857 7858 rm -f os-proto.h 7859 # 7860 # MKDEP defaults to no-op (":") if we don't test whether the compiler 7861 # supports generating dependencies 7862 # 7863 MKDEP=: 7864 if test "${LBL_CFLAGS+set}" = set; then 7865 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}" 7866 fi 7867 if test -f .devel ; then 7868 # 7869 # Skip all the warning option stuff on some compilers. 7870 # 7871 if test "$ac_lbl_cc_dont_try_gcc_dashW" != yes; then 7872 7873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -W option" >&5 7874 printf %s "checking whether the compiler supports the -W option... " >&6; } 7875 save_CFLAGS="$CFLAGS" 7876 CFLAGS="$CFLAGS -W" 7877 # 7878 # XXX - yes, this depends on the way AC_LANG_WERROR works, 7879 # but no mechanism is provided to turn AC_LANG_WERROR on 7880 # *and then turn it back off*, so that we *only* do it when 7881 # testing compiler options - 15 years after somebody asked 7882 # for it: 7883 # 7884 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 7885 # 7886 save_ac_c_werror_flag="$ac_c_werror_flag" 7887 ac_c_werror_flag=yes 7888 # 7889 # We use AC_LANG_SOURCE() so that we can control the complete 7890 # content of the program being compiled. We do not, for example, 7891 # want the default "int main()" that AC_LANG_PROGRAM() generates, 7892 # as it will generate a warning with -Wold-style-definition, meaning 7893 # that we would treat it as not working, as the test will fail if 7894 # *any* error output, including a warning due to the flag we're 7895 # testing, is generated; see 7896 # 7897 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 7898 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 7899 # 7900 # This may, as per those two messages, be fixed in autoconf 2.70, 7901 # but we only require 2.69 or newer for now. 7902 # 7903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7904 /* end confdefs.h. */ 7905 int main(void) { return 0; } 7906 _ACEOF 7907 if ac_fn_c_try_compile "$LINENO" 7908 then : 7909 7910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7911 printf "%s\n" "yes" >&6; } 7912 CFLAGS="$save_CFLAGS" 7913 V_CCOPT="$V_CCOPT -W" 7914 7915 else $as_nop 7916 7917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7918 printf "%s\n" "no" >&6; } 7919 CFLAGS="$save_CFLAGS" 7920 7921 fi 7922 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7923 ac_c_werror_flag="$save_ac_c_werror_flag" 7924 7925 7926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wall option" >&5 7927 printf %s "checking whether the compiler supports the -Wall option... " >&6; } 7928 save_CFLAGS="$CFLAGS" 7929 CFLAGS="$CFLAGS -Wall" 7930 # 7931 # XXX - yes, this depends on the way AC_LANG_WERROR works, 7932 # but no mechanism is provided to turn AC_LANG_WERROR on 7933 # *and then turn it back off*, so that we *only* do it when 7934 # testing compiler options - 15 years after somebody asked 7935 # for it: 7936 # 7937 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 7938 # 7939 save_ac_c_werror_flag="$ac_c_werror_flag" 7940 ac_c_werror_flag=yes 7941 # 7942 # We use AC_LANG_SOURCE() so that we can control the complete 7943 # content of the program being compiled. We do not, for example, 7944 # want the default "int main()" that AC_LANG_PROGRAM() generates, 7945 # as it will generate a warning with -Wold-style-definition, meaning 7946 # that we would treat it as not working, as the test will fail if 7947 # *any* error output, including a warning due to the flag we're 7948 # testing, is generated; see 7949 # 7950 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 7951 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 7952 # 7953 # This may, as per those two messages, be fixed in autoconf 2.70, 7954 # but we only require 2.69 or newer for now. 7955 # 7956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7957 /* end confdefs.h. */ 7958 int main(void) { return 0; } 7959 _ACEOF 7960 if ac_fn_c_try_compile "$LINENO" 7961 then : 7962 7963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7964 printf "%s\n" "yes" >&6; } 7965 CFLAGS="$save_CFLAGS" 7966 V_CCOPT="$V_CCOPT -Wall" 7967 7968 else $as_nop 7969 7970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7971 printf "%s\n" "no" >&6; } 7972 CFLAGS="$save_CFLAGS" 7973 7974 fi 7975 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7976 ac_c_werror_flag="$save_ac_c_werror_flag" 7977 7978 7979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wassign-enum option" >&5 7980 printf %s "checking whether the compiler supports the -Wassign-enum option... " >&6; } 7981 save_CFLAGS="$CFLAGS" 7982 CFLAGS="$CFLAGS -Wassign-enum" 7983 # 7984 # XXX - yes, this depends on the way AC_LANG_WERROR works, 7985 # but no mechanism is provided to turn AC_LANG_WERROR on 7986 # *and then turn it back off*, so that we *only* do it when 7987 # testing compiler options - 15 years after somebody asked 7988 # for it: 7989 # 7990 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 7991 # 7992 save_ac_c_werror_flag="$ac_c_werror_flag" 7993 ac_c_werror_flag=yes 7994 # 7995 # We use AC_LANG_SOURCE() so that we can control the complete 7996 # content of the program being compiled. We do not, for example, 7997 # want the default "int main()" that AC_LANG_PROGRAM() generates, 7998 # as it will generate a warning with -Wold-style-definition, meaning 7999 # that we would treat it as not working, as the test will fail if 8000 # *any* error output, including a warning due to the flag we're 8001 # testing, is generated; see 8002 # 8003 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8004 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8005 # 8006 # This may, as per those two messages, be fixed in autoconf 2.70, 8007 # but we only require 2.69 or newer for now. 8008 # 8009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8010 /* end confdefs.h. */ 8011 int main(void) { return 0; } 8012 _ACEOF 8013 if ac_fn_c_try_compile "$LINENO" 8014 then : 8015 8016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8017 printf "%s\n" "yes" >&6; } 8018 CFLAGS="$save_CFLAGS" 8019 V_CCOPT="$V_CCOPT -Wassign-enum" 8020 8021 else $as_nop 8022 8023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8024 printf "%s\n" "no" >&6; } 8025 CFLAGS="$save_CFLAGS" 8026 8027 fi 8028 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8029 ac_c_werror_flag="$save_ac_c_werror_flag" 8030 8031 8032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wcast-qual option" >&5 8033 printf %s "checking whether the compiler supports the -Wcast-qual option... " >&6; } 8034 save_CFLAGS="$CFLAGS" 8035 CFLAGS="$CFLAGS -Wcast-qual" 8036 # 8037 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8038 # but no mechanism is provided to turn AC_LANG_WERROR on 8039 # *and then turn it back off*, so that we *only* do it when 8040 # testing compiler options - 15 years after somebody asked 8041 # for it: 8042 # 8043 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8044 # 8045 save_ac_c_werror_flag="$ac_c_werror_flag" 8046 ac_c_werror_flag=yes 8047 # 8048 # We use AC_LANG_SOURCE() so that we can control the complete 8049 # content of the program being compiled. We do not, for example, 8050 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8051 # as it will generate a warning with -Wold-style-definition, meaning 8052 # that we would treat it as not working, as the test will fail if 8053 # *any* error output, including a warning due to the flag we're 8054 # testing, is generated; see 8055 # 8056 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8057 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8058 # 8059 # This may, as per those two messages, be fixed in autoconf 2.70, 8060 # but we only require 2.69 or newer for now. 8061 # 8062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8063 /* end confdefs.h. */ 8064 int main(void) { return 0; } 8065 _ACEOF 8066 if ac_fn_c_try_compile "$LINENO" 8067 then : 8068 8069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8070 printf "%s\n" "yes" >&6; } 8071 CFLAGS="$save_CFLAGS" 8072 V_CCOPT="$V_CCOPT -Wcast-qual" 8073 8074 else $as_nop 8075 8076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8077 printf "%s\n" "no" >&6; } 8078 CFLAGS="$save_CFLAGS" 8079 8080 fi 8081 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8082 ac_c_werror_flag="$save_ac_c_werror_flag" 8083 8084 8085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wcomma option" >&5 8086 printf %s "checking whether the compiler supports the -Wcomma option... " >&6; } 8087 save_CFLAGS="$CFLAGS" 8088 CFLAGS="$CFLAGS -Wcomma" 8089 # 8090 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8091 # but no mechanism is provided to turn AC_LANG_WERROR on 8092 # *and then turn it back off*, so that we *only* do it when 8093 # testing compiler options - 15 years after somebody asked 8094 # for it: 8095 # 8096 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8097 # 8098 save_ac_c_werror_flag="$ac_c_werror_flag" 8099 ac_c_werror_flag=yes 8100 # 8101 # We use AC_LANG_SOURCE() so that we can control the complete 8102 # content of the program being compiled. We do not, for example, 8103 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8104 # as it will generate a warning with -Wold-style-definition, meaning 8105 # that we would treat it as not working, as the test will fail if 8106 # *any* error output, including a warning due to the flag we're 8107 # testing, is generated; see 8108 # 8109 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8110 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8111 # 8112 # This may, as per those two messages, be fixed in autoconf 2.70, 8113 # but we only require 2.69 or newer for now. 8114 # 8115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8116 /* end confdefs.h. */ 8117 int main(void) { return 0; } 8118 _ACEOF 8119 if ac_fn_c_try_compile "$LINENO" 8120 then : 8121 8122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8123 printf "%s\n" "yes" >&6; } 8124 CFLAGS="$save_CFLAGS" 8125 V_CCOPT="$V_CCOPT -Wcomma" 8126 8127 else $as_nop 8128 8129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8130 printf "%s\n" "no" >&6; } 8131 CFLAGS="$save_CFLAGS" 8132 8133 fi 8134 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8135 ac_c_werror_flag="$save_ac_c_werror_flag" 8136 8137 8138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-prototypes option" >&5 8139 printf %s "checking whether the compiler supports the -Wmissing-prototypes option... " >&6; } 8140 save_CFLAGS="$CFLAGS" 8141 CFLAGS="$CFLAGS -Wmissing-prototypes" 8142 # 8143 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8144 # but no mechanism is provided to turn AC_LANG_WERROR on 8145 # *and then turn it back off*, so that we *only* do it when 8146 # testing compiler options - 15 years after somebody asked 8147 # for it: 8148 # 8149 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8150 # 8151 save_ac_c_werror_flag="$ac_c_werror_flag" 8152 ac_c_werror_flag=yes 8153 # 8154 # We use AC_LANG_SOURCE() so that we can control the complete 8155 # content of the program being compiled. We do not, for example, 8156 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8157 # as it will generate a warning with -Wold-style-definition, meaning 8158 # that we would treat it as not working, as the test will fail if 8159 # *any* error output, including a warning due to the flag we're 8160 # testing, is generated; see 8161 # 8162 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8163 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8164 # 8165 # This may, as per those two messages, be fixed in autoconf 2.70, 8166 # but we only require 2.69 or newer for now. 8167 # 8168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8169 /* end confdefs.h. */ 8170 int main(void) { return 0; } 8171 _ACEOF 8172 if ac_fn_c_try_compile "$LINENO" 8173 then : 8174 8175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8176 printf "%s\n" "yes" >&6; } 8177 CFLAGS="$save_CFLAGS" 8178 V_CCOPT="$V_CCOPT -Wmissing-prototypes" 8179 8180 else $as_nop 8181 8182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8183 printf "%s\n" "no" >&6; } 8184 CFLAGS="$save_CFLAGS" 8185 8186 fi 8187 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8188 ac_c_werror_flag="$save_ac_c_werror_flag" 8189 8190 8191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-variable-declarations option" >&5 8192 printf %s "checking whether the compiler supports the -Wmissing-variable-declarations option... " >&6; } 8193 save_CFLAGS="$CFLAGS" 8194 CFLAGS="$CFLAGS -Wmissing-variable-declarations" 8195 # 8196 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8197 # but no mechanism is provided to turn AC_LANG_WERROR on 8198 # *and then turn it back off*, so that we *only* do it when 8199 # testing compiler options - 15 years after somebody asked 8200 # for it: 8201 # 8202 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8203 # 8204 save_ac_c_werror_flag="$ac_c_werror_flag" 8205 ac_c_werror_flag=yes 8206 # 8207 # We use AC_LANG_SOURCE() so that we can control the complete 8208 # content of the program being compiled. We do not, for example, 8209 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8210 # as it will generate a warning with -Wold-style-definition, meaning 8211 # that we would treat it as not working, as the test will fail if 8212 # *any* error output, including a warning due to the flag we're 8213 # testing, is generated; see 8214 # 8215 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8216 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8217 # 8218 # This may, as per those two messages, be fixed in autoconf 2.70, 8219 # but we only require 2.69 or newer for now. 8220 # 8221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8222 /* end confdefs.h. */ 8223 int main(void) { return 0; } 8224 _ACEOF 8225 if ac_fn_c_try_compile "$LINENO" 8226 then : 8227 8228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8229 printf "%s\n" "yes" >&6; } 8230 CFLAGS="$save_CFLAGS" 8231 V_CCOPT="$V_CCOPT -Wmissing-variable-declarations" 8232 8233 else $as_nop 8234 8235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8236 printf "%s\n" "no" >&6; } 8237 CFLAGS="$save_CFLAGS" 8238 8239 fi 8240 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8241 ac_c_werror_flag="$save_ac_c_werror_flag" 8242 8243 8244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wnull-pointer-subtraction option" >&5 8245 printf %s "checking whether the compiler supports the -Wnull-pointer-subtraction option... " >&6; } 8246 save_CFLAGS="$CFLAGS" 8247 CFLAGS="$CFLAGS -Wnull-pointer-subtraction" 8248 # 8249 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8250 # but no mechanism is provided to turn AC_LANG_WERROR on 8251 # *and then turn it back off*, so that we *only* do it when 8252 # testing compiler options - 15 years after somebody asked 8253 # for it: 8254 # 8255 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8256 # 8257 save_ac_c_werror_flag="$ac_c_werror_flag" 8258 ac_c_werror_flag=yes 8259 # 8260 # We use AC_LANG_SOURCE() so that we can control the complete 8261 # content of the program being compiled. We do not, for example, 8262 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8263 # as it will generate a warning with -Wold-style-definition, meaning 8264 # that we would treat it as not working, as the test will fail if 8265 # *any* error output, including a warning due to the flag we're 8266 # testing, is generated; see 8267 # 8268 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8269 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8270 # 8271 # This may, as per those two messages, be fixed in autoconf 2.70, 8272 # but we only require 2.69 or newer for now. 8273 # 8274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8275 /* end confdefs.h. */ 8276 int main(void) { return 0; } 8277 _ACEOF 8278 if ac_fn_c_try_compile "$LINENO" 8279 then : 8280 8281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8282 printf "%s\n" "yes" >&6; } 8283 CFLAGS="$save_CFLAGS" 8284 V_CCOPT="$V_CCOPT -Wnull-pointer-subtraction" 8285 8286 else $as_nop 8287 8288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8289 printf "%s\n" "no" >&6; } 8290 CFLAGS="$save_CFLAGS" 8291 8292 fi 8293 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8294 ac_c_werror_flag="$save_ac_c_werror_flag" 8295 8296 8297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wold-style-definition option" >&5 8298 printf %s "checking whether the compiler supports the -Wold-style-definition option... " >&6; } 8299 save_CFLAGS="$CFLAGS" 8300 CFLAGS="$CFLAGS -Wold-style-definition" 8301 # 8302 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8303 # but no mechanism is provided to turn AC_LANG_WERROR on 8304 # *and then turn it back off*, so that we *only* do it when 8305 # testing compiler options - 15 years after somebody asked 8306 # for it: 8307 # 8308 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8309 # 8310 save_ac_c_werror_flag="$ac_c_werror_flag" 8311 ac_c_werror_flag=yes 8312 # 8313 # We use AC_LANG_SOURCE() so that we can control the complete 8314 # content of the program being compiled. We do not, for example, 8315 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8316 # as it will generate a warning with -Wold-style-definition, meaning 8317 # that we would treat it as not working, as the test will fail if 8318 # *any* error output, including a warning due to the flag we're 8319 # testing, is generated; see 8320 # 8321 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8322 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8323 # 8324 # This may, as per those two messages, be fixed in autoconf 2.70, 8325 # but we only require 2.69 or newer for now. 8326 # 8327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8328 /* end confdefs.h. */ 8329 int main(void) { return 0; } 8330 _ACEOF 8331 if ac_fn_c_try_compile "$LINENO" 8332 then : 8333 8334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8335 printf "%s\n" "yes" >&6; } 8336 CFLAGS="$save_CFLAGS" 8337 V_CCOPT="$V_CCOPT -Wold-style-definition" 8338 8339 else $as_nop 8340 8341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8342 printf "%s\n" "no" >&6; } 8343 CFLAGS="$save_CFLAGS" 8344 8345 fi 8346 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8347 ac_c_werror_flag="$save_ac_c_werror_flag" 8348 8349 8350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wpedantic option" >&5 8351 printf %s "checking whether the compiler supports the -Wpedantic option... " >&6; } 8352 save_CFLAGS="$CFLAGS" 8353 CFLAGS="$CFLAGS -Wpedantic" 8354 # 8355 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8356 # but no mechanism is provided to turn AC_LANG_WERROR on 8357 # *and then turn it back off*, so that we *only* do it when 8358 # testing compiler options - 15 years after somebody asked 8359 # for it: 8360 # 8361 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8362 # 8363 save_ac_c_werror_flag="$ac_c_werror_flag" 8364 ac_c_werror_flag=yes 8365 # 8366 # We use AC_LANG_SOURCE() so that we can control the complete 8367 # content of the program being compiled. We do not, for example, 8368 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8369 # as it will generate a warning with -Wold-style-definition, meaning 8370 # that we would treat it as not working, as the test will fail if 8371 # *any* error output, including a warning due to the flag we're 8372 # testing, is generated; see 8373 # 8374 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8375 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8376 # 8377 # This may, as per those two messages, be fixed in autoconf 2.70, 8378 # but we only require 2.69 or newer for now. 8379 # 8380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8381 /* end confdefs.h. */ 8382 int main(void) { return 0; } 8383 _ACEOF 8384 if ac_fn_c_try_compile "$LINENO" 8385 then : 8386 8387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8388 printf "%s\n" "yes" >&6; } 8389 CFLAGS="$save_CFLAGS" 8390 V_CCOPT="$V_CCOPT -Wpedantic" 8391 8392 else $as_nop 8393 8394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8395 printf "%s\n" "no" >&6; } 8396 CFLAGS="$save_CFLAGS" 8397 8398 fi 8399 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8400 ac_c_werror_flag="$save_ac_c_werror_flag" 8401 8402 8403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wpointer-arith option" >&5 8404 printf %s "checking whether the compiler supports the -Wpointer-arith option... " >&6; } 8405 save_CFLAGS="$CFLAGS" 8406 CFLAGS="$CFLAGS -Wpointer-arith" 8407 # 8408 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8409 # but no mechanism is provided to turn AC_LANG_WERROR on 8410 # *and then turn it back off*, so that we *only* do it when 8411 # testing compiler options - 15 years after somebody asked 8412 # for it: 8413 # 8414 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8415 # 8416 save_ac_c_werror_flag="$ac_c_werror_flag" 8417 ac_c_werror_flag=yes 8418 # 8419 # We use AC_LANG_SOURCE() so that we can control the complete 8420 # content of the program being compiled. We do not, for example, 8421 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8422 # as it will generate a warning with -Wold-style-definition, meaning 8423 # that we would treat it as not working, as the test will fail if 8424 # *any* error output, including a warning due to the flag we're 8425 # testing, is generated; see 8426 # 8427 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8428 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8429 # 8430 # This may, as per those two messages, be fixed in autoconf 2.70, 8431 # but we only require 2.69 or newer for now. 8432 # 8433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8434 /* end confdefs.h. */ 8435 int main(void) { return 0; } 8436 _ACEOF 8437 if ac_fn_c_try_compile "$LINENO" 8438 then : 8439 8440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8441 printf "%s\n" "yes" >&6; } 8442 CFLAGS="$save_CFLAGS" 8443 V_CCOPT="$V_CCOPT -Wpointer-arith" 8444 8445 else $as_nop 8446 8447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8448 printf "%s\n" "no" >&6; } 8449 CFLAGS="$save_CFLAGS" 8450 8451 fi 8452 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8453 ac_c_werror_flag="$save_ac_c_werror_flag" 8454 8455 8456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wpointer-sign option" >&5 8457 printf %s "checking whether the compiler supports the -Wpointer-sign option... " >&6; } 8458 save_CFLAGS="$CFLAGS" 8459 CFLAGS="$CFLAGS -Wpointer-sign" 8460 # 8461 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8462 # but no mechanism is provided to turn AC_LANG_WERROR on 8463 # *and then turn it back off*, so that we *only* do it when 8464 # testing compiler options - 15 years after somebody asked 8465 # for it: 8466 # 8467 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8468 # 8469 save_ac_c_werror_flag="$ac_c_werror_flag" 8470 ac_c_werror_flag=yes 8471 # 8472 # We use AC_LANG_SOURCE() so that we can control the complete 8473 # content of the program being compiled. We do not, for example, 8474 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8475 # as it will generate a warning with -Wold-style-definition, meaning 8476 # that we would treat it as not working, as the test will fail if 8477 # *any* error output, including a warning due to the flag we're 8478 # testing, is generated; see 8479 # 8480 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8481 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8482 # 8483 # This may, as per those two messages, be fixed in autoconf 2.70, 8484 # but we only require 2.69 or newer for now. 8485 # 8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8487 /* end confdefs.h. */ 8488 int main(void) { return 0; } 8489 _ACEOF 8490 if ac_fn_c_try_compile "$LINENO" 8491 then : 8492 8493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8494 printf "%s\n" "yes" >&6; } 8495 CFLAGS="$save_CFLAGS" 8496 V_CCOPT="$V_CCOPT -Wpointer-sign" 8497 8498 else $as_nop 8499 8500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8501 printf "%s\n" "no" >&6; } 8502 CFLAGS="$save_CFLAGS" 8503 8504 fi 8505 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8506 ac_c_werror_flag="$save_ac_c_werror_flag" 8507 8508 8509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wshadow option" >&5 8510 printf %s "checking whether the compiler supports the -Wshadow option... " >&6; } 8511 save_CFLAGS="$CFLAGS" 8512 CFLAGS="$CFLAGS -Wshadow" 8513 # 8514 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8515 # but no mechanism is provided to turn AC_LANG_WERROR on 8516 # *and then turn it back off*, so that we *only* do it when 8517 # testing compiler options - 15 years after somebody asked 8518 # for it: 8519 # 8520 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8521 # 8522 save_ac_c_werror_flag="$ac_c_werror_flag" 8523 ac_c_werror_flag=yes 8524 # 8525 # We use AC_LANG_SOURCE() so that we can control the complete 8526 # content of the program being compiled. We do not, for example, 8527 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8528 # as it will generate a warning with -Wold-style-definition, meaning 8529 # that we would treat it as not working, as the test will fail if 8530 # *any* error output, including a warning due to the flag we're 8531 # testing, is generated; see 8532 # 8533 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8534 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8535 # 8536 # This may, as per those two messages, be fixed in autoconf 2.70, 8537 # but we only require 2.69 or newer for now. 8538 # 8539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8540 /* end confdefs.h. */ 8541 int main(void) { return 0; } 8542 _ACEOF 8543 if ac_fn_c_try_compile "$LINENO" 8544 then : 8545 8546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8547 printf "%s\n" "yes" >&6; } 8548 CFLAGS="$save_CFLAGS" 8549 V_CCOPT="$V_CCOPT -Wshadow" 8550 8551 else $as_nop 8552 8553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8554 printf "%s\n" "no" >&6; } 8555 CFLAGS="$save_CFLAGS" 8556 8557 fi 8558 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8559 ac_c_werror_flag="$save_ac_c_werror_flag" 8560 8561 8562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wsign-compare option" >&5 8563 printf %s "checking whether the compiler supports the -Wsign-compare option... " >&6; } 8564 save_CFLAGS="$CFLAGS" 8565 CFLAGS="$CFLAGS -Wsign-compare" 8566 # 8567 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8568 # but no mechanism is provided to turn AC_LANG_WERROR on 8569 # *and then turn it back off*, so that we *only* do it when 8570 # testing compiler options - 15 years after somebody asked 8571 # for it: 8572 # 8573 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8574 # 8575 save_ac_c_werror_flag="$ac_c_werror_flag" 8576 ac_c_werror_flag=yes 8577 # 8578 # We use AC_LANG_SOURCE() so that we can control the complete 8579 # content of the program being compiled. We do not, for example, 8580 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8581 # as it will generate a warning with -Wold-style-definition, meaning 8582 # that we would treat it as not working, as the test will fail if 8583 # *any* error output, including a warning due to the flag we're 8584 # testing, is generated; see 8585 # 8586 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8587 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8588 # 8589 # This may, as per those two messages, be fixed in autoconf 2.70, 8590 # but we only require 2.69 or newer for now. 8591 # 8592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8593 /* end confdefs.h. */ 8594 int main(void) { return 0; } 8595 _ACEOF 8596 if ac_fn_c_try_compile "$LINENO" 8597 then : 8598 8599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8600 printf "%s\n" "yes" >&6; } 8601 CFLAGS="$save_CFLAGS" 8602 V_CCOPT="$V_CCOPT -Wsign-compare" 8603 8604 else $as_nop 8605 8606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8607 printf "%s\n" "no" >&6; } 8608 CFLAGS="$save_CFLAGS" 8609 8610 fi 8611 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8612 ac_c_werror_flag="$save_ac_c_werror_flag" 8613 8614 8615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wstrict-prototypes option" >&5 8616 printf %s "checking whether the compiler supports the -Wstrict-prototypes option... " >&6; } 8617 save_CFLAGS="$CFLAGS" 8618 CFLAGS="$CFLAGS -Wstrict-prototypes" 8619 # 8620 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8621 # but no mechanism is provided to turn AC_LANG_WERROR on 8622 # *and then turn it back off*, so that we *only* do it when 8623 # testing compiler options - 15 years after somebody asked 8624 # for it: 8625 # 8626 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8627 # 8628 save_ac_c_werror_flag="$ac_c_werror_flag" 8629 ac_c_werror_flag=yes 8630 # 8631 # We use AC_LANG_SOURCE() so that we can control the complete 8632 # content of the program being compiled. We do not, for example, 8633 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8634 # as it will generate a warning with -Wold-style-definition, meaning 8635 # that we would treat it as not working, as the test will fail if 8636 # *any* error output, including a warning due to the flag we're 8637 # testing, is generated; see 8638 # 8639 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8640 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8641 # 8642 # This may, as per those two messages, be fixed in autoconf 2.70, 8643 # but we only require 2.69 or newer for now. 8644 # 8645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8646 /* end confdefs.h. */ 8647 int main(void) { return 0; } 8648 _ACEOF 8649 if ac_fn_c_try_compile "$LINENO" 8650 then : 8651 8652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8653 printf "%s\n" "yes" >&6; } 8654 CFLAGS="$save_CFLAGS" 8655 V_CCOPT="$V_CCOPT -Wstrict-prototypes" 8656 8657 else $as_nop 8658 8659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8660 printf "%s\n" "no" >&6; } 8661 CFLAGS="$save_CFLAGS" 8662 8663 fi 8664 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8665 ac_c_werror_flag="$save_ac_c_werror_flag" 8666 8667 8668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wundef option" >&5 8669 printf %s "checking whether the compiler supports the -Wundef option... " >&6; } 8670 save_CFLAGS="$CFLAGS" 8671 CFLAGS="$CFLAGS -Wundef" 8672 # 8673 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8674 # but no mechanism is provided to turn AC_LANG_WERROR on 8675 # *and then turn it back off*, so that we *only* do it when 8676 # testing compiler options - 15 years after somebody asked 8677 # for it: 8678 # 8679 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8680 # 8681 save_ac_c_werror_flag="$ac_c_werror_flag" 8682 ac_c_werror_flag=yes 8683 # 8684 # We use AC_LANG_SOURCE() so that we can control the complete 8685 # content of the program being compiled. We do not, for example, 8686 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8687 # as it will generate a warning with -Wold-style-definition, meaning 8688 # that we would treat it as not working, as the test will fail if 8689 # *any* error output, including a warning due to the flag we're 8690 # testing, is generated; see 8691 # 8692 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8693 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8694 # 8695 # This may, as per those two messages, be fixed in autoconf 2.70, 8696 # but we only require 2.69 or newer for now. 8697 # 8698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8699 /* end confdefs.h. */ 8700 int main(void) { return 0; } 8701 _ACEOF 8702 if ac_fn_c_try_compile "$LINENO" 8703 then : 8704 8705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8706 printf "%s\n" "yes" >&6; } 8707 CFLAGS="$save_CFLAGS" 8708 V_CCOPT="$V_CCOPT -Wundef" 8709 8710 else $as_nop 8711 8712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8713 printf "%s\n" "no" >&6; } 8714 CFLAGS="$save_CFLAGS" 8715 8716 fi 8717 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8718 ac_c_werror_flag="$save_ac_c_werror_flag" 8719 8720 8721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wunreachable-code-return option" >&5 8722 printf %s "checking whether the compiler supports the -Wunreachable-code-return option... " >&6; } 8723 save_CFLAGS="$CFLAGS" 8724 CFLAGS="$CFLAGS -Wunreachable-code-return" 8725 # 8726 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8727 # but no mechanism is provided to turn AC_LANG_WERROR on 8728 # *and then turn it back off*, so that we *only* do it when 8729 # testing compiler options - 15 years after somebody asked 8730 # for it: 8731 # 8732 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8733 # 8734 save_ac_c_werror_flag="$ac_c_werror_flag" 8735 ac_c_werror_flag=yes 8736 # 8737 # We use AC_LANG_SOURCE() so that we can control the complete 8738 # content of the program being compiled. We do not, for example, 8739 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8740 # as it will generate a warning with -Wold-style-definition, meaning 8741 # that we would treat it as not working, as the test will fail if 8742 # *any* error output, including a warning due to the flag we're 8743 # testing, is generated; see 8744 # 8745 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8746 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8747 # 8748 # This may, as per those two messages, be fixed in autoconf 2.70, 8749 # but we only require 2.69 or newer for now. 8750 # 8751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8752 /* end confdefs.h. */ 8753 int main(void) { return 0; } 8754 _ACEOF 8755 if ac_fn_c_try_compile "$LINENO" 8756 then : 8757 8758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8759 printf "%s\n" "yes" >&6; } 8760 CFLAGS="$save_CFLAGS" 8761 V_CCOPT="$V_CCOPT -Wunreachable-code-return" 8762 8763 else $as_nop 8764 8765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8766 printf "%s\n" "no" >&6; } 8767 CFLAGS="$save_CFLAGS" 8768 8769 fi 8770 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8771 ac_c_werror_flag="$save_ac_c_werror_flag" 8772 8773 8774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wunused-but-set-parameter option" >&5 8775 printf %s "checking whether the compiler supports the -Wunused-but-set-parameter option... " >&6; } 8776 save_CFLAGS="$CFLAGS" 8777 CFLAGS="$CFLAGS -Wunused-but-set-parameter" 8778 # 8779 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8780 # but no mechanism is provided to turn AC_LANG_WERROR on 8781 # *and then turn it back off*, so that we *only* do it when 8782 # testing compiler options - 15 years after somebody asked 8783 # for it: 8784 # 8785 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8786 # 8787 save_ac_c_werror_flag="$ac_c_werror_flag" 8788 ac_c_werror_flag=yes 8789 # 8790 # We use AC_LANG_SOURCE() so that we can control the complete 8791 # content of the program being compiled. We do not, for example, 8792 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8793 # as it will generate a warning with -Wold-style-definition, meaning 8794 # that we would treat it as not working, as the test will fail if 8795 # *any* error output, including a warning due to the flag we're 8796 # testing, is generated; see 8797 # 8798 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8799 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8800 # 8801 # This may, as per those two messages, be fixed in autoconf 2.70, 8802 # but we only require 2.69 or newer for now. 8803 # 8804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8805 /* end confdefs.h. */ 8806 int main(void) { return 0; } 8807 _ACEOF 8808 if ac_fn_c_try_compile "$LINENO" 8809 then : 8810 8811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8812 printf "%s\n" "yes" >&6; } 8813 CFLAGS="$save_CFLAGS" 8814 V_CCOPT="$V_CCOPT -Wunused-but-set-parameter" 8815 8816 else $as_nop 8817 8818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8819 printf "%s\n" "no" >&6; } 8820 CFLAGS="$save_CFLAGS" 8821 8822 fi 8823 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8824 ac_c_werror_flag="$save_ac_c_werror_flag" 8825 8826 8827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wunused-but-set-variable option" >&5 8828 printf %s "checking whether the compiler supports the -Wunused-but-set-variable option... " >&6; } 8829 save_CFLAGS="$CFLAGS" 8830 CFLAGS="$CFLAGS -Wunused-but-set-variable" 8831 # 8832 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8833 # but no mechanism is provided to turn AC_LANG_WERROR on 8834 # *and then turn it back off*, so that we *only* do it when 8835 # testing compiler options - 15 years after somebody asked 8836 # for it: 8837 # 8838 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8839 # 8840 save_ac_c_werror_flag="$ac_c_werror_flag" 8841 ac_c_werror_flag=yes 8842 # 8843 # We use AC_LANG_SOURCE() so that we can control the complete 8844 # content of the program being compiled. We do not, for example, 8845 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8846 # as it will generate a warning with -Wold-style-definition, meaning 8847 # that we would treat it as not working, as the test will fail if 8848 # *any* error output, including a warning due to the flag we're 8849 # testing, is generated; see 8850 # 8851 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8852 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8853 # 8854 # This may, as per those two messages, be fixed in autoconf 2.70, 8855 # but we only require 2.69 or newer for now. 8856 # 8857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8858 /* end confdefs.h. */ 8859 int main(void) { return 0; } 8860 _ACEOF 8861 if ac_fn_c_try_compile "$LINENO" 8862 then : 8863 8864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8865 printf "%s\n" "yes" >&6; } 8866 CFLAGS="$save_CFLAGS" 8867 V_CCOPT="$V_CCOPT -Wunused-but-set-variable" 8868 8869 else $as_nop 8870 8871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8872 printf "%s\n" "no" >&6; } 8873 CFLAGS="$save_CFLAGS" 8874 8875 fi 8876 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8877 ac_c_werror_flag="$save_ac_c_werror_flag" 8878 8879 8880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wused-but-marked-unused option" >&5 8881 printf %s "checking whether the compiler supports the -Wused-but-marked-unused option... " >&6; } 8882 save_CFLAGS="$CFLAGS" 8883 CFLAGS="$CFLAGS -Wused-but-marked-unused" 8884 # 8885 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8886 # but no mechanism is provided to turn AC_LANG_WERROR on 8887 # *and then turn it back off*, so that we *only* do it when 8888 # testing compiler options - 15 years after somebody asked 8889 # for it: 8890 # 8891 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8892 # 8893 save_ac_c_werror_flag="$ac_c_werror_flag" 8894 ac_c_werror_flag=yes 8895 # 8896 # We use AC_LANG_SOURCE() so that we can control the complete 8897 # content of the program being compiled. We do not, for example, 8898 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8899 # as it will generate a warning with -Wold-style-definition, meaning 8900 # that we would treat it as not working, as the test will fail if 8901 # *any* error output, including a warning due to the flag we're 8902 # testing, is generated; see 8903 # 8904 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8905 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8906 # 8907 # This may, as per those two messages, be fixed in autoconf 2.70, 8908 # but we only require 2.69 or newer for now. 8909 # 8910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8911 /* end confdefs.h. */ 8912 int main(void) { return 0; } 8913 _ACEOF 8914 if ac_fn_c_try_compile "$LINENO" 8915 then : 8916 8917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8918 printf "%s\n" "yes" >&6; } 8919 CFLAGS="$save_CFLAGS" 8920 V_CCOPT="$V_CCOPT -Wused-but-marked-unused" 8921 8922 else $as_nop 8923 8924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8925 printf "%s\n" "no" >&6; } 8926 CFLAGS="$save_CFLAGS" 8927 8928 fi 8929 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8930 ac_c_werror_flag="$save_ac_c_werror_flag" 8931 8932 8933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wwrite-strings option" >&5 8934 printf %s "checking whether the compiler supports the -Wwrite-strings option... " >&6; } 8935 save_CFLAGS="$CFLAGS" 8936 CFLAGS="$CFLAGS -Wwrite-strings" 8937 # 8938 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8939 # but no mechanism is provided to turn AC_LANG_WERROR on 8940 # *and then turn it back off*, so that we *only* do it when 8941 # testing compiler options - 15 years after somebody asked 8942 # for it: 8943 # 8944 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8945 # 8946 save_ac_c_werror_flag="$ac_c_werror_flag" 8947 ac_c_werror_flag=yes 8948 # 8949 # We use AC_LANG_SOURCE() so that we can control the complete 8950 # content of the program being compiled. We do not, for example, 8951 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8952 # as it will generate a warning with -Wold-style-definition, meaning 8953 # that we would treat it as not working, as the test will fail if 8954 # *any* error output, including a warning due to the flag we're 8955 # testing, is generated; see 8956 # 8957 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8958 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8959 # 8960 # This may, as per those two messages, be fixed in autoconf 2.70, 8961 # but we only require 2.69 or newer for now. 8962 # 8963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8964 /* end confdefs.h. */ 8965 int main(void) { return 0; } 8966 _ACEOF 8967 if ac_fn_c_try_compile "$LINENO" 8968 then : 8969 8970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8971 printf "%s\n" "yes" >&6; } 8972 CFLAGS="$save_CFLAGS" 8973 V_CCOPT="$V_CCOPT -Wwrite-strings" 8974 8975 else $as_nop 8976 8977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8978 printf "%s\n" "no" >&6; } 8979 CFLAGS="$save_CFLAGS" 8980 8981 fi 8982 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8983 ac_c_werror_flag="$save_ac_c_werror_flag" 8984 8985 fi 8986 8987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports generating dependencies" >&5 8988 printf %s "checking whether the compiler supports generating dependencies... " >&6; } 8989 if test "$GCC" = yes ; then 8990 # 8991 # GCC, or a compiler deemed to be GCC by AC_PROG_CC (even 8992 # though it's not); we assume that, in this case, the flag 8993 # would be -M. 8994 # 8995 ac_lbl_dependency_flag="-M" 8996 else 8997 # 8998 # Not GCC or a compiler deemed to be GCC; what platform is 8999 # this? (We're assuming that if the compiler isn't GCC 9000 # it's the compiler from the vendor of the OS; that won't 9001 # necessarily be true for x86 platforms, where it might be 9002 # the Intel C compiler.) 9003 # 9004 case "$host_os" in 9005 9006 irix*|osf*|darwin*) 9007 # 9008 # MIPS C for IRIX, DEC C, and clang all use -M. 9009 # 9010 ac_lbl_dependency_flag="-M" 9011 ;; 9012 9013 solaris*) 9014 # 9015 # Sun C uses -xM. 9016 # 9017 ac_lbl_dependency_flag="-xM" 9018 ;; 9019 9020 hpux*) 9021 # 9022 # HP's older C compilers don't support this. 9023 # HP's newer C compilers support this with 9024 # either +M or +Make; the older compilers 9025 # interpret +M as something completely 9026 # different, so we use +Make so we don't 9027 # think it works with the older compilers. 9028 # 9029 ac_lbl_dependency_flag="+Make" 9030 ;; 9031 9032 *) 9033 # 9034 # Not one of the above; assume no support for 9035 # generating dependencies. 9036 # 9037 ac_lbl_dependency_flag="" 9038 ;; 9039 esac 9040 fi 9041 9042 # 9043 # Is ac_lbl_dependency_flag defined and, if so, does the compiler 9044 # complain about it? 9045 # 9046 # Note: clang doesn't seem to exit with an error status when handed 9047 # an unknown non-warning error, even if you pass it 9048 # -Werror=unknown-warning-option. However, it always supports 9049 # -M, so the fact that this test always succeeds with clang 9050 # isn't an issue. 9051 # 9052 if test ! -z "$ac_lbl_dependency_flag"; then 9053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9054 /* end confdefs.h. */ 9055 int main(void) { return 0; } 9056 _ACEOF 9057 if { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: eval \"\$CC \$ac_lbl_dependency_flag conftest.c >/dev/null 2>&1\""; } >&5 9058 (eval "$CC $ac_lbl_dependency_flag conftest.c >/dev/null 2>&1") 2>&5 9059 ac_status=$? 9060 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9061 test $ac_status = 0; }; then 9062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, with $ac_lbl_dependency_flag" >&5 9063 printf "%s\n" "yes, with $ac_lbl_dependency_flag" >&6; } 9064 DEPENDENCY_CFLAG="$ac_lbl_dependency_flag" 9065 MKDEP='${top_srcdir}/mkdep' 9066 else 9067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9068 printf "%s\n" "no" >&6; } 9069 # 9070 # We can't run mkdep, so have "make depend" do 9071 # nothing. 9072 # 9073 MKDEP=: 9074 fi 9075 rm -rf conftest* 9076 else 9077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9078 printf "%s\n" "no" >&6; } 9079 # 9080 # We can't run mkdep, so have "make depend" do 9081 # nothing. 9082 # 9083 MKDEP=: 9084 fi 9085 9086 9087 9088 # 9089 # We used to set -n32 for IRIX 6 when not using GCC (presumed 9090 # to mean that we're using MIPS C or MIPSpro C); it specified 9091 # the "new" faster 32-bit ABI, introduced in IRIX 6.2. I'm 9092 # not sure why that would be something to do *only* with a 9093 # .devel file; why should the ABI for which we produce code 9094 # depend on .devel? 9095 # 9096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use an os-proto.h header" >&5 9097 printf %s "checking whether to use an os-proto.h header... " >&6; } 9098 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'` 9099 name="lbl/os-$os.h" 9100 if test -f $name ; then 9101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, at \"$name\"" >&5 9102 printf "%s\n" "yes, at \"$name\"" >&6; } 9103 ln -s $name os-proto.h 9104 9105 printf "%s\n" "#define HAVE_OS_PROTO_H 1" >>confdefs.h 9106 9107 else 9108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9109 printf "%s\n" "no" >&6; } 9110 fi 9111 fi 9112 9113 # Check for OpenSSL/libressl libcrypto 9114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use OpenSSL/libressl libcrypto" >&5 9115 printf %s "checking whether to use OpenSSL/libressl libcrypto... " >&6; } 9116 # Specify location for both includes and libraries. 9117 want_libcrypto=ifavailable 9118 9119 # Check whether --with-crypto was given. 9120 if test ${with_crypto+y} 9121 then : 9122 withval=$with_crypto; 9123 if test $withval = no 9124 then 9125 # User doesn't want to link with libcrypto. 9126 want_libcrypto=no 9127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9128 printf "%s\n" "no" >&6; } 9129 elif test $withval = yes 9130 then 9131 # User wants to link with libcrypto but hasn't specified 9132 # a directory. 9133 want_libcrypto=yes 9134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9135 printf "%s\n" "yes" >&6; } 9136 else 9137 # User wants to link with libcrypto and has specified 9138 # a directory, so use the provided value. 9139 want_libcrypto=yes 9140 libcrypto_root=$withval 9141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, using the version installed in $withval" >&5 9142 printf "%s\n" "yes, using the version installed in $withval" >&6; } 9143 fi 9144 9145 else $as_nop 9146 9147 # 9148 # Use libcrypto if it's present, otherwise don't; no directory 9149 # was specified. 9150 # 9151 want_libcrypto=ifavailable 9152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, if available" >&5 9153 printf "%s\n" "yes, if available" >&6; } 9154 9155 fi 9156 9157 if test "$want_libcrypto" != "no"; then 9158 # 9159 # Were we told where to look for libcrypto? 9160 # 9161 if test -z "$libcrypto_root"; then 9162 # 9163 # No. 9164 # 9165 # First, try looking for it with pkg-config, if we have it. 9166 # 9167 # Homebrew's pkg-config does not, by default, look for 9168 # pkg-config files for packages it has installed. 9169 # Furthermore, at least for OpenSSL, they appear to be 9170 # dumped in package-specific directories whose paths are 9171 # not only package-specific but package-version-specific. 9172 # 9173 # So the only way to find openssl is to get the value of 9174 # PKG_CONFIG_PATH from "brew --env openssl" and add that 9175 # to PKG_CONFIG_PATH. (No, we can't just assume it's under 9176 # /usr/local; Homebrew have conveniently chosen to put it 9177 # under /opt/homebrew on ARM.) 9178 # 9179 # That's the nice thing about Homebrew - it makes things easier! 9180 # Thanks! 9181 # 9182 save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH" 9183 if test -n "$BREW"; then 9184 openssl_pkgconfig_dir=`$BREW --env --plain openssl | sed -n 's/PKG_CONFIG_PATH: //p'` 9185 PKG_CONFIG_PATH="$openssl_pkgconfig_dir:$PKG_CONFIG_PATH" 9186 fi 9187 9188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcrypto with pkg-config" >&5 9189 printf %s "checking for libcrypto with pkg-config... " >&6; } 9190 if test -n "$PKG_CONFIG"; then 9191 9192 if { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto\""; } >&5 9193 ($PKG_CONFIG --exists --print-errors "libcrypto") 2>&5 9194 ac_status=$? 9195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9196 test $ac_status = 0; }; then 9197 # 9198 # The package was found, so try to get its C flags and 9199 # libraries. 9200 # 9201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 9202 printf "%s\n" "found" >&6; } 9203 if test ! -n "$LIBCRYPTO_CFLAGS"; then 9204 LIBCRYPTO_CFLAGS=`$PKG_CONFIG --cflags "libcrypto" 2>/dev/null` 9205 if test "x$?" != "x0"; then 9206 # 9207 # That failed - report an error. 9208 # Re-run the command, telling pkg-config to print an error 9209 # message, capture the error message, and report it. 9210 # This causes the configuration script to fail, as it means 9211 # the script is almost certainly doing something wrong. 9212 # 9213 9214 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 9215 _pkg_short_errors_supported=yes 9216 else 9217 _pkg_short_errors_supported=no 9218 fi 9219 if test $_pkg_short_errors_supported = yes; then 9220 _pkg_error_string=`$PKG_CONFIG --short-errors --print-errors --cflags "libcrypto" 2>&1` 9221 else 9222 _pkg_error_string=`$PKG_CONFIG --print-errors --cflags "libcrypto" 2>&1` 9223 fi 9224 as_fn_error $? "$PKG_CONFIG --cflags \"libcrypto\" failed: $_pkg_error_string" "$LINENO" 5 9225 fi 9226 fi 9227 if test ! -n "$LIBCRYPTO_LIBS"; then 9228 LIBCRYPTO_LIBS=`$PKG_CONFIG --libs "libcrypto" 2>/dev/null` 9229 if test "x$?" != "x0"; then 9230 # 9231 # That failed - report an error. 9232 # Re-run the command, telling pkg-config to print an error 9233 # message, capture the error message, and report it. 9234 # This causes the configuration script to fail, as it means 9235 # the script is almost certainly doing something wrong. 9236 # 9237 9238 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 9239 _pkg_short_errors_supported=yes 9240 else 9241 _pkg_short_errors_supported=no 9242 fi 9243 if test $_pkg_short_errors_supported = yes; then 9244 _pkg_error_string=`$PKG_CONFIG --short-errors --print-errors --libs "libcrypto" 2>&1` 9245 else 9246 _pkg_error_string=`$PKG_CONFIG --print-errors --libs "libcrypto" 2>&1` 9247 fi 9248 as_fn_error $? "$PKG_CONFIG --libs \"libcrypto\" failed: $_pkg_error_string" "$LINENO" 5 9249 fi 9250 fi 9251 if test ! -n "$LIBCRYPTO_LIBS_STATIC"; then 9252 LIBCRYPTO_LIBS_STATIC=`$PKG_CONFIG --libs --static "libcrypto" 2>/dev/null` 9253 if test "x$?" != "x0"; then 9254 # 9255 # That failed - report an error. 9256 # Re-run the command, telling pkg-config to print an error 9257 # message, capture the error message, and report it. 9258 # This causes the configuration script to fail, as it means 9259 # the script is almost certainly doing something wrong. 9260 # 9261 9262 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 9263 _pkg_short_errors_supported=yes 9264 else 9265 _pkg_short_errors_supported=no 9266 fi 9267 if test $_pkg_short_errors_supported = yes; then 9268 _pkg_error_string=`$PKG_CONFIG --short-errors --print-errors --libs --static "libcrypto" 2>&1` 9269 else 9270 _pkg_error_string=`$PKG_CONFIG --print-errors --libs --static "libcrypto" 2>&1` 9271 fi 9272 as_fn_error $? "$PKG_CONFIG --libs --static \"libcrypto\" failed: $_pkg_error_string" "$LINENO" 5 9273 fi 9274 fi 9275 9276 # 9277 # We found OpenSSL/libressl libcrypto. 9278 # 9279 HAVE_LIBCRYPTO=yes 9280 9281 else 9282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9283 printf "%s\n" "not found" >&6; } 9284 : 9285 fi 9286 else 9287 # No pkg-config, so obviously not found with pkg-config. 9288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: pkg-config not found" >&5 9289 printf "%s\n" "pkg-config not found" >&6; } 9290 : 9291 fi 9292 9293 PKG_CONFIG_PATH="$save_PKG_CONFIG_PATH" 9294 9295 # 9296 # If it wasn't found, and we have Homebrew installed, see 9297 # if it's in Homebrew. 9298 # 9299 if test "x$HAVE_LIBCRYPTO" != "xyes" -a -n "$BREW"; then 9300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl in Homebrew" >&5 9301 printf %s "checking for openssl in Homebrew... " >&6; } 9302 # 9303 # The brew man page lies when it speaks of 9304 # $BREW --prefix --installed <formula> 9305 # outputting nothing. In Homebrew 3.3.16, 9306 # it produces output regardless of whether 9307 # the formula is installed or not, so we 9308 # send the standard output and error to 9309 # the bit bucket. 9310 # 9311 # libcrypto isn't a formula, openssl is a formula. 9312 # 9313 if $BREW --prefix --installed openssl >/dev/null 2>&1; then 9314 # 9315 # Yes. Get the include directory and library 9316 # directory. (No, we can't just assume it's 9317 # under /usr/local; Homebrew have conveniently 9318 # chosen to put it under /opt/homebrew on ARM.) 9319 # 9320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9321 printf "%s\n" "yes" >&6; } 9322 HAVE_LIBCRYPTO=yes 9323 openssl_path=`$BREW --prefix openssl` 9324 LIBCRYPTO_CFLAGS="-I$openssl_path/include" 9325 LIBCRYPTO_LIBS="-L$openssl_path/lib -lcrypto" 9326 else 9327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9328 printf "%s\n" "no" >&6; } 9329 fi 9330 fi 9331 9332 # 9333 # If it wasn't found, and /usr/local/include and /usr/local/lib 9334 # exist, check if it's in /usr/local. (We check whether they 9335 # exist because, if they don't exist, the compiler will warn 9336 # about that and then ignore the argument, so they test 9337 # using just the system header files and libraries.) 9338 # 9339 # We include the standard include file to 1) make sure that 9340 # it's installed (if it's just a shared library for the 9341 # benefit of existing programs, that's not useful) and 2) 9342 # because SSL_library_init() is a library routine in some 9343 # versions and a #defined wrapper around OPENSSL_init_ssl() 9344 # in others. 9345 # 9346 if test "x$HAVE_LIBCRYPTO" != "xyes" -a -d "/usr/local/include" -a -d "/usr/local/lib"; then 9347 9348 save_CFLAGS="$CFLAGS" 9349 save_LIBS="$LIBS" 9350 save_LDFLAGS="$LDFLAGS" 9351 9352 CFLAGS="$CFLAGS -I/usr/local/include" 9353 LIBS="$LIBS -L/usr/local/lib -lcrypto" 9354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we have an OpenSSL/libressl libcrypto in /usr/local that we can use" >&5 9355 printf %s "checking whether we have an OpenSSL/libressl libcrypto in /usr/local that we can use... " >&6; } 9356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9357 /* end confdefs.h. */ 9358 9359 #include <openssl/evp.h> 9360 9361 int 9362 main (void) 9363 { 9364 9365 EVP_CIPHER_CTX_block_size((EVP_CIPHER_CTX *)0); 9366 return 0; 9367 9368 ; 9369 return 0; 9370 } 9371 _ACEOF 9372 if ac_fn_c_try_link "$LINENO" 9373 then : 9374 9375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9376 printf "%s\n" "yes" >&6; } 9377 HAVE_LIBCRYPTO=yes 9378 LIBCRYPTO_CFLAGS="-I/usr/local/include" 9379 LIBCRYPTO_LIBS="-L/usr/local/lib -lcrypto" 9380 9381 else $as_nop 9382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9383 printf "%s\n" "no" >&6; } 9384 fi 9385 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9386 conftest$ac_exeext conftest.$ac_ext 9387 9388 CFLAGS="$save_CFLAGS" 9389 LIBS="$save_LIBS" 9390 LDFLAGS="$save_LDFLAGS" 9391 9392 fi 9393 9394 # 9395 # If it wasn't found, check if it's a system library. 9396 # 9397 # We include the standard include file to 1) make sure that 9398 # it's installed (if it's just a shared library for the 9399 # benefit of existing programs, that's not useful) and 2) 9400 # make sure this isn't a newer macOS that provides libcrypto 9401 # as a shared library but doesn't provide headers - Apple, 9402 # bless their pointy little heads, apparently ship libcrypto 9403 # as a library, but not the header files, in El Capitan and 9404 # later, probably because they don't want you writing nasty 9405 # portable code that could run on other UN*Xes, they want you 9406 # writing code that uses their Shiny New Crypto Library and 9407 # that thus only runs on macOS. 9408 # 9409 if test "x$HAVE_LIBCRYPTO" != "xyes"; then 9410 9411 save_CFLAGS="$CFLAGS" 9412 save_LIBS="$LIBS" 9413 save_LDFLAGS="$LDFLAGS" 9414 9415 LIBS="$LIBS -lcrypto" 9416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we have a system OpenSSL/libressl that we can use" >&5 9417 printf %s "checking whether we have a system OpenSSL/libressl that we can use... " >&6; } 9418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9419 /* end confdefs.h. */ 9420 9421 #include <openssl/evp.h> 9422 9423 int 9424 main (void) 9425 { 9426 9427 EVP_CIPHER_CTX_block_size((EVP_CIPHER_CTX *)0); 9428 return 0; 9429 9430 ; 9431 return 0; 9432 } 9433 _ACEOF 9434 if ac_fn_c_try_link "$LINENO" 9435 then : 9436 9437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9438 printf "%s\n" "yes" >&6; } 9439 HAVE_LIBCRYPTO=yes 9440 LIBCRYPTO_LIBS="-lcrypto" 9441 9442 else $as_nop 9443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9444 printf "%s\n" "no" >&6; } 9445 fi 9446 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9447 conftest$ac_exeext conftest.$ac_ext 9448 9449 CFLAGS="$save_CFLAGS" 9450 LIBS="$save_LIBS" 9451 LDFLAGS="$save_LDFLAGS" 9452 9453 fi 9454 else 9455 # 9456 # Yes. 9457 # 9458 # Look for it there. 9459 # 9460 9461 save_CFLAGS="$CFLAGS" 9462 save_LIBS="$LIBS" 9463 save_LDFLAGS="$LDFLAGS" 9464 9465 CFLAGS="$CFLAGS -I$libcrypto_root/include" 9466 LIBS="$LIBS -L$libcrypto_root/lib -lcrypto" 9467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we have a system OpenSSL/libressl that we can use" >&5 9468 printf %s "checking whether we have a system OpenSSL/libressl that we can use... " >&6; } 9469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9470 /* end confdefs.h. */ 9471 9472 #include <openssl/evp.h> 9473 9474 int 9475 main (void) 9476 { 9477 9478 EVP_CIPHER_CTX_block_size((EVP_CIPHER_CTX *)0); 9479 return 0; 9480 9481 ; 9482 return 0; 9483 } 9484 _ACEOF 9485 if ac_fn_c_try_link "$LINENO" 9486 then : 9487 9488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9489 printf "%s\n" "yes" >&6; } 9490 HAVE_LIBCRYPTO=yes 9491 LIBCRYPTO_CFLAGS="-I$libcrypto_root/include" 9492 LIBCRYPTO_LIBS="-L$libcrypto_root/lib -lcrypto" 9493 9494 else $as_nop 9495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9496 printf "%s\n" "no" >&6; } 9497 fi 9498 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9499 conftest$ac_exeext conftest.$ac_ext 9500 9501 CFLAGS="$save_CFLAGS" 9502 LIBS="$save_LIBS" 9503 LDFLAGS="$save_LDFLAGS" 9504 9505 fi 9506 9507 # 9508 # OK, did we find it? 9509 # 9510 if test "x$HAVE_LIBCRYPTO" = "xyes"; then 9511 9512 printf "%s\n" "#define HAVE_LIBCRYPTO 1" >>confdefs.h 9513 9514 9515 # 9516 # Put the subdirectories of the libcrypto root directory 9517 # at the end of the header and library search path, to 9518 # make sure they come after any -I or -L flags for 9519 # a local libpcap - those must take precedence of any 9520 # directory that might contain an installed version of 9521 # libpcap. 9522 # 9523 V_INCLS="$V_INCLS $LIBCRYPTO_CFLAGS" 9524 LIBS="$LIBS $LIBCRYPTO_LIBS" 9525 9526 # 9527 # OK, then: 9528 # 9529 # 1) do we have EVP_CIPHER_CTX_new? 9530 # If so, we use it to allocate an EVP_CIPHER_CTX, as 9531 # EVP_CIPHER_CTX may be opaque; otherwise, we allocate it 9532 # ourselves. 9533 # 9534 # 2) do we have EVP_DecryptInit_ex()? 9535 # If so, we use it, because we need to be able to make 9536 # two "initialize the cipher" calls, one with the cipher 9537 # and key, and one with the IV, and, as of OpenSSL 1.1, 9538 # You Can't Do That with EVP_DecryptInit(), because a 9539 # call to EVP_DecryptInit() will unconditionally clear 9540 # the context, and if you don't supply a cipher, it'll 9541 # clear the cipher, rendering the context unusable and 9542 # causing a crash. 9543 # 9544 ac_fn_c_check_func "$LINENO" "EVP_CIPHER_CTX_new" "ac_cv_func_EVP_CIPHER_CTX_new" 9545 if test "x$ac_cv_func_EVP_CIPHER_CTX_new" = xyes 9546 then : 9547 printf "%s\n" "#define HAVE_EVP_CIPHER_CTX_NEW 1" >>confdefs.h 9548 9549 fi 9550 ac_fn_c_check_func "$LINENO" "EVP_DecryptInit_ex" "ac_cv_func_EVP_DecryptInit_ex" 9551 if test "x$ac_cv_func_EVP_DecryptInit_ex" = xyes 9552 then : 9553 printf "%s\n" "#define HAVE_EVP_DECRYPTINIT_EX 1" >>confdefs.h 9554 9555 fi 9556 9557 else 9558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OpenSSL/libressl libcrypto not found" >&5 9559 printf "%s\n" "$as_me: OpenSSL/libressl libcrypto not found" >&6;} 9560 fi 9561 fi 9562 9563 # Check for libcap-ng 9564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use libcap-ng" >&5 9565 printf %s "checking whether to use libcap-ng... " >&6; } 9566 # Specify location for both includes and libraries. 9567 want_libcap_ng=ifavailable 9568 9569 # Check whether --with-cap_ng was given. 9570 if test ${with_cap_ng+y} 9571 then : 9572 withval=$with_cap_ng; 9573 if test $withval = no 9574 then 9575 want_libcap_ng=no 9576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9577 printf "%s\n" "no" >&6; } 9578 elif test $withval = yes 9579 then 9580 want_libcap_ng=yes 9581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9582 printf "%s\n" "yes" >&6; } 9583 fi 9584 9585 else $as_nop 9586 9587 # 9588 # Use libcap-ng if it's present, otherwise don't. 9589 # 9590 want_libcap_ng=ifavailable 9591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, if available" >&5 9592 printf "%s\n" "yes, if available" >&6; } 9593 9594 fi 9595 9596 if test "$want_libcap_ng" != "no"; then 9597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for capng_change_id in -lcap-ng" >&5 9598 printf %s "checking for capng_change_id in -lcap-ng... " >&6; } 9599 if test ${ac_cv_lib_cap_ng_capng_change_id+y} 9600 then : 9601 printf %s "(cached) " >&6 9602 else $as_nop 9603 ac_check_lib_save_LIBS=$LIBS 9604 LIBS="-lcap-ng $LIBS" 9605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9606 /* end confdefs.h. */ 9607 9608 /* Override any GCC internal prototype to avoid an error. 9609 Use char because int might match the return type of a GCC 9610 builtin and then its argument prototype would still apply. */ 9611 char capng_change_id (); 9612 int 9613 main (void) 9614 { 9615 return capng_change_id (); 9616 ; 9617 return 0; 9618 } 9619 _ACEOF 9620 if ac_fn_c_try_link "$LINENO" 9621 then : 9622 ac_cv_lib_cap_ng_capng_change_id=yes 9623 else $as_nop 9624 ac_cv_lib_cap_ng_capng_change_id=no 9625 fi 9626 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9627 conftest$ac_exeext conftest.$ac_ext 9628 LIBS=$ac_check_lib_save_LIBS 9629 fi 9630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_ng_capng_change_id" >&5 9631 printf "%s\n" "$ac_cv_lib_cap_ng_capng_change_id" >&6; } 9632 if test "x$ac_cv_lib_cap_ng_capng_change_id" = xyes 9633 then : 9634 printf "%s\n" "#define HAVE_LIBCAP_NG 1" >>confdefs.h 9635 9636 LIBS="-lcap-ng $LIBS" 9637 9638 fi 9639 9640 ac_fn_c_check_header_compile "$LINENO" "cap-ng.h" "ac_cv_header_cap_ng_h" "$ac_includes_default" 9641 if test "x$ac_cv_header_cap_ng_h" = xyes 9642 then : 9643 printf "%s\n" "#define HAVE_CAP_NG_H 1" >>confdefs.h 9644 9645 fi 9646 9647 fi 9648 9649 if test "$missing_includes" = "yes"; then 9650 CPPFLAGS="$CPPFLAGS -I$srcdir/missing" 9651 V_INCLS="$V_INCLS -I$srcdir/missing" 9652 fi 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 # Find a good install program. We prefer a C program (faster), 9664 # so one script is as good as another. But avoid the broken or 9665 # incompatible versions: 9666 # SysV /etc/install, /usr/sbin/install 9667 # SunOS /usr/etc/install 9668 # IRIX /sbin/install 9669 # AIX /bin/install 9670 # AmigaOS /C/install, which installs bootblocks on floppy discs 9671 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 9672 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 9673 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 9674 # OS/2's system install, which has a completely different semantic 9675 # ./install, which can be erroneously created by make from ./install.sh. 9676 # Reject install programs that cannot install multiple files. 9677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 9678 printf %s "checking for a BSD-compatible install... " >&6; } 9679 if test -z "$INSTALL"; then 9680 if test ${ac_cv_path_install+y} 9681 then : 9682 printf %s "(cached) " >&6 9683 else $as_nop 9684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9685 for as_dir in $PATH 9686 do 9687 IFS=$as_save_IFS 9688 case $as_dir in #((( 9689 '') as_dir=./ ;; 9690 */) ;; 9691 *) as_dir=$as_dir/ ;; 9692 esac 9693 # Account for fact that we put trailing slashes in our PATH walk. 9694 case $as_dir in #(( 9695 ./ | /[cC]/* | \ 9696 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 9697 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 9698 /usr/ucb/* ) ;; 9699 *) 9700 # OSF1 and SCO ODT 3.0 have their own names for install. 9701 # Don't use installbsd from OSF since it installs stuff as root 9702 # by default. 9703 for ac_prog in ginstall scoinst install; do 9704 for ac_exec_ext in '' $ac_executable_extensions; do 9705 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 9706 if test $ac_prog = install && 9707 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 9708 # AIX install. It has an incompatible calling convention. 9709 : 9710 elif test $ac_prog = install && 9711 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 9712 # program-specific install script used by HP pwplus--don't use. 9713 : 9714 else 9715 rm -rf conftest.one conftest.two conftest.dir 9716 echo one > conftest.one 9717 echo two > conftest.two 9718 mkdir conftest.dir 9719 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 9720 test -s conftest.one && test -s conftest.two && 9721 test -s conftest.dir/conftest.one && 9722 test -s conftest.dir/conftest.two 9723 then 9724 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 9725 break 3 9726 fi 9727 fi 9728 fi 9729 done 9730 done 9731 ;; 9732 esac 9733 9734 done 9735 IFS=$as_save_IFS 9736 9737 rm -rf conftest.one conftest.two conftest.dir 9738 9739 fi 9740 if test ${ac_cv_path_install+y}; then 9741 INSTALL=$ac_cv_path_install 9742 else 9743 # As a last resort, use the slow shell script. Don't cache a 9744 # value for INSTALL within a source directory, because that will 9745 # break other packages using the cache if that directory is 9746 # removed, or if the value is a relative name. 9747 INSTALL=$ac_install_sh 9748 fi 9749 fi 9750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 9751 printf "%s\n" "$INSTALL" >&6; } 9752 9753 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 9754 # It thinks the first close brace ends the variable substitution. 9755 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 9756 9757 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 9758 9759 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 9760 9761 9762 ac_config_headers="$ac_config_headers config.h" 9763 9764 9765 9766 9767 ac_config_commands="$ac_config_commands .devel" 9768 9769 ac_config_files="$ac_config_files Makefile tcpdump.1" 9770 9771 cat >confcache <<\_ACEOF 9772 # This file is a shell script that caches the results of configure 9773 # tests run on this system so they can be shared between configure 9774 # scripts and configure runs, see configure's option --config-cache. 9775 # It is not useful on other systems. If it contains results you don't 9776 # want to keep, you may remove or edit it. 9777 # 9778 # config.status only pays attention to the cache file if you give it 9779 # the --recheck option to rerun configure. 9780 # 9781 # `ac_cv_env_foo' variables (set or unset) will be overridden when 9782 # loading this file, other *unset* `ac_cv_foo' will be assigned the 9783 # following values. 9784 9785 _ACEOF 9786 9787 # The following way of writing the cache mishandles newlines in values, 9788 # but we know of no workaround that is simple, portable, and efficient. 9789 # So, we kill variables containing newlines. 9790 # Ultrix sh set writes to stderr and can't be redirected directly, 9791 # and sets the high bit in the cache file unless we assign to the vars. 9792 ( 9793 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 9794 eval ac_val=\$$ac_var 9795 case $ac_val in #( 9796 *${as_nl}*) 9797 case $ac_var in #( 9798 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 9799 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 9800 esac 9801 case $ac_var in #( 9802 _ | IFS | as_nl) ;; #( 9803 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 9804 *) { eval $ac_var=; unset $ac_var;} ;; 9805 esac ;; 9806 esac 9807 done 9808 9809 (set) 2>&1 | 9810 case $as_nl`(ac_space=' '; set) 2>&1` in #( 9811 *${as_nl}ac_space=\ *) 9812 # `set' does not quote correctly, so add quotes: double-quote 9813 # substitution turns \\\\ into \\, and sed turns \\ into \. 9814 sed -n \ 9815 "s/'/'\\\\''/g; 9816 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 9817 ;; #( 9818 *) 9819 # `set' quotes correctly as required by POSIX, so do not add quotes. 9820 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 9821 ;; 9822 esac | 9823 sort 9824 ) | 9825 sed ' 9826 /^ac_cv_env_/b end 9827 t clear 9828 :clear 9829 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 9830 t end 9831 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 9832 :end' >>confcache 9833 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 9834 if test -w "$cache_file"; then 9835 if test "x$cache_file" != "x/dev/null"; then 9836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 9837 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 9838 if test ! -f "$cache_file" || test -h "$cache_file"; then 9839 cat confcache >"$cache_file" 9840 else 9841 case $cache_file in #( 9842 */* | ?:*) 9843 mv -f confcache "$cache_file"$$ && 9844 mv -f "$cache_file"$$ "$cache_file" ;; #( 9845 *) 9846 mv -f confcache "$cache_file" ;; 9847 esac 9848 fi 9849 fi 9850 else 9851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 9852 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 9853 fi 9854 fi 9855 rm -f confcache 9856 9857 test "x$prefix" = xNONE && prefix=$ac_default_prefix 9858 # Let make expand exec_prefix. 9859 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 9860 9861 DEFS=-DHAVE_CONFIG_H 9862 9863 ac_libobjs= 9864 ac_ltlibobjs= 9865 U= 9866 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 9867 # 1. Remove the extension, and $U if already installed. 9868 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 9869 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 9870 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 9871 # will be set to the directory where LIBOBJS objects are built. 9872 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 9873 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 9874 done 9875 LIBOBJS=$ac_libobjs 9876 9877 LTLIBOBJS=$ac_ltlibobjs 9878 9879 9880 9881 : "${CONFIG_STATUS=./config.status}" 9882 ac_write_fail=0 9883 ac_clean_files_save=$ac_clean_files 9884 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 9885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 9886 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 9887 as_write_fail=0 9888 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 9889 #! $SHELL 9890 # Generated by $as_me. 9891 # Run this file to recreate the current configuration. 9892 # Compiler output produced by configure, useful for debugging 9893 # configure, is in config.log if it exists. 9894 9895 debug=false 9896 ac_cs_recheck=false 9897 ac_cs_silent=false 9898 9899 SHELL=\${CONFIG_SHELL-$SHELL} 9900 export SHELL 9901 _ASEOF 9902 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 9903 ## -------------------- ## 9904 ## M4sh Initialization. ## 9905 ## -------------------- ## 9906 9907 # Be more Bourne compatible 9908 DUALCASE=1; export DUALCASE # for MKS sh 9909 as_nop=: 9910 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 9911 then : 9912 emulate sh 9913 NULLCMD=: 9914 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 9915 # is contrary to our usage. Disable this feature. 9916 alias -g '${1+"$@"}'='"$@"' 9917 setopt NO_GLOB_SUBST 9918 else $as_nop 9919 case `(set -o) 2>/dev/null` in #( 9920 *posix*) : 9921 set -o posix ;; #( 9922 *) : 9923 ;; 9924 esac 9925 fi 9926 9927 9928 9929 # Reset variables that may have inherited troublesome values from 9930 # the environment. 9931 9932 # IFS needs to be set, to space, tab, and newline, in precisely that order. 9933 # (If _AS_PATH_WALK were called with IFS unset, it would have the 9934 # side effect of setting IFS to empty, thus disabling word splitting.) 9935 # Quoting is to prevent editors from complaining about space-tab. 9936 as_nl=' 9937 ' 9938 export as_nl 9939 IFS=" "" $as_nl" 9940 9941 PS1='$ ' 9942 PS2='> ' 9943 PS4='+ ' 9944 9945 # Ensure predictable behavior from utilities with locale-dependent output. 9946 LC_ALL=C 9947 export LC_ALL 9948 LANGUAGE=C 9949 export LANGUAGE 9950 9951 # We cannot yet rely on "unset" to work, but we need these variables 9952 # to be unset--not just set to an empty or harmless value--now, to 9953 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 9954 # also avoids known problems related to "unset" and subshell syntax 9955 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 9956 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 9957 do eval test \${$as_var+y} \ 9958 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 9959 done 9960 9961 # Ensure that fds 0, 1, and 2 are open. 9962 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 9963 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 9964 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 9965 9966 # The user is always right. 9967 if ${PATH_SEPARATOR+false} :; then 9968 PATH_SEPARATOR=: 9969 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 9970 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 9971 PATH_SEPARATOR=';' 9972 } 9973 fi 9974 9975 9976 # Find who we are. Look in the path if we contain no directory separator. 9977 as_myself= 9978 case $0 in #(( 9979 *[\\/]* ) as_myself=$0 ;; 9980 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9981 for as_dir in $PATH 9982 do 9983 IFS=$as_save_IFS 9984 case $as_dir in #((( 9985 '') as_dir=./ ;; 9986 */) ;; 9987 *) as_dir=$as_dir/ ;; 9988 esac 9989 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 9990 done 9991 IFS=$as_save_IFS 9992 9993 ;; 9994 esac 9995 # We did not find ourselves, most probably we were run as `sh COMMAND' 9996 # in which case we are not to be found in the path. 9997 if test "x$as_myself" = x; then 9998 as_myself=$0 9999 fi 10000 if test ! -f "$as_myself"; then 10001 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10002 exit 1 10003 fi 10004 10005 10006 10007 # as_fn_error STATUS ERROR [LINENO LOG_FD] 10008 # ---------------------------------------- 10009 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 10010 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 10011 # script with STATUS, using 1 if that was 0. 10012 as_fn_error () 10013 { 10014 as_status=$1; test $as_status -eq 0 && as_status=1 10015 if test "$4"; then 10016 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 10017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 10018 fi 10019 printf "%s\n" "$as_me: error: $2" >&2 10020 as_fn_exit $as_status 10021 } # as_fn_error 10022 10023 10024 10025 # as_fn_set_status STATUS 10026 # ----------------------- 10027 # Set $? to STATUS, without forking. 10028 as_fn_set_status () 10029 { 10030 return $1 10031 } # as_fn_set_status 10032 10033 # as_fn_exit STATUS 10034 # ----------------- 10035 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 10036 as_fn_exit () 10037 { 10038 set +e 10039 as_fn_set_status $1 10040 exit $1 10041 } # as_fn_exit 10042 10043 # as_fn_unset VAR 10044 # --------------- 10045 # Portably unset VAR. 10046 as_fn_unset () 10047 { 10048 { eval $1=; unset $1;} 10049 } 10050 as_unset=as_fn_unset 10051 10052 # as_fn_append VAR VALUE 10053 # ---------------------- 10054 # Append the text in VALUE to the end of the definition contained in VAR. Take 10055 # advantage of any shell optimizations that allow amortized linear growth over 10056 # repeated appends, instead of the typical quadratic growth present in naive 10057 # implementations. 10058 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 10059 then : 10060 eval 'as_fn_append () 10061 { 10062 eval $1+=\$2 10063 }' 10064 else $as_nop 10065 as_fn_append () 10066 { 10067 eval $1=\$$1\$2 10068 } 10069 fi # as_fn_append 10070 10071 # as_fn_arith ARG... 10072 # ------------------ 10073 # Perform arithmetic evaluation on the ARGs, and store the result in the 10074 # global $as_val. Take advantage of shells that can avoid forks. The arguments 10075 # must be portable across $(()) and expr. 10076 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 10077 then : 10078 eval 'as_fn_arith () 10079 { 10080 as_val=$(( $* )) 10081 }' 10082 else $as_nop 10083 as_fn_arith () 10084 { 10085 as_val=`expr "$@" || test $? -eq 1` 10086 } 10087 fi # as_fn_arith 10088 10089 10090 if expr a : '\(a\)' >/dev/null 2>&1 && 10091 test "X`expr 00001 : '.*\(...\)'`" = X001; then 10092 as_expr=expr 10093 else 10094 as_expr=false 10095 fi 10096 10097 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 10098 as_basename=basename 10099 else 10100 as_basename=false 10101 fi 10102 10103 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 10104 as_dirname=dirname 10105 else 10106 as_dirname=false 10107 fi 10108 10109 as_me=`$as_basename -- "$0" || 10110 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 10111 X"$0" : 'X\(//\)$' \| \ 10112 X"$0" : 'X\(/\)' \| . 2>/dev/null || 10113 printf "%s\n" X/"$0" | 10114 sed '/^.*\/\([^/][^/]*\)\/*$/{ 10115 s//\1/ 10116 q 10117 } 10118 /^X\/\(\/\/\)$/{ 10119 s//\1/ 10120 q 10121 } 10122 /^X\/\(\/\).*/{ 10123 s//\1/ 10124 q 10125 } 10126 s/.*/./; q'` 10127 10128 # Avoid depending upon Character Ranges. 10129 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 10130 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 10131 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 10132 as_cr_digits='0123456789' 10133 as_cr_alnum=$as_cr_Letters$as_cr_digits 10134 10135 10136 # Determine whether it's possible to make 'echo' print without a newline. 10137 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 10138 # for compatibility with existing Makefiles. 10139 ECHO_C= ECHO_N= ECHO_T= 10140 case `echo -n x` in #((((( 10141 -n*) 10142 case `echo 'xy\c'` in 10143 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 10144 xy) ECHO_C='\c';; 10145 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 10146 ECHO_T=' ';; 10147 esac;; 10148 *) 10149 ECHO_N='-n';; 10150 esac 10151 10152 # For backward compatibility with old third-party macros, we provide 10153 # the shell variables $as_echo and $as_echo_n. New code should use 10154 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 10155 as_echo='printf %s\n' 10156 as_echo_n='printf %s' 10157 10158 rm -f conf$$ conf$$.exe conf$$.file 10159 if test -d conf$$.dir; then 10160 rm -f conf$$.dir/conf$$.file 10161 else 10162 rm -f conf$$.dir 10163 mkdir conf$$.dir 2>/dev/null 10164 fi 10165 if (echo >conf$$.file) 2>/dev/null; then 10166 if ln -s conf$$.file conf$$ 2>/dev/null; then 10167 as_ln_s='ln -s' 10168 # ... but there are two gotchas: 10169 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 10170 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 10171 # In both cases, we have to default to `cp -pR'. 10172 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 10173 as_ln_s='cp -pR' 10174 elif ln conf$$.file conf$$ 2>/dev/null; then 10175 as_ln_s=ln 10176 else 10177 as_ln_s='cp -pR' 10178 fi 10179 else 10180 as_ln_s='cp -pR' 10181 fi 10182 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 10183 rmdir conf$$.dir 2>/dev/null 10184 10185 10186 # as_fn_mkdir_p 10187 # ------------- 10188 # Create "$as_dir" as a directory, including parents if necessary. 10189 as_fn_mkdir_p () 10190 { 10191 10192 case $as_dir in #( 10193 -*) as_dir=./$as_dir;; 10194 esac 10195 test -d "$as_dir" || eval $as_mkdir_p || { 10196 as_dirs= 10197 while :; do 10198 case $as_dir in #( 10199 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 10200 *) as_qdir=$as_dir;; 10201 esac 10202 as_dirs="'$as_qdir' $as_dirs" 10203 as_dir=`$as_dirname -- "$as_dir" || 10204 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10205 X"$as_dir" : 'X\(//\)[^/]' \| \ 10206 X"$as_dir" : 'X\(//\)$' \| \ 10207 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 10208 printf "%s\n" X"$as_dir" | 10209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10210 s//\1/ 10211 q 10212 } 10213 /^X\(\/\/\)[^/].*/{ 10214 s//\1/ 10215 q 10216 } 10217 /^X\(\/\/\)$/{ 10218 s//\1/ 10219 q 10220 } 10221 /^X\(\/\).*/{ 10222 s//\1/ 10223 q 10224 } 10225 s/.*/./; q'` 10226 test -d "$as_dir" && break 10227 done 10228 test -z "$as_dirs" || eval "mkdir $as_dirs" 10229 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 10230 10231 10232 } # as_fn_mkdir_p 10233 if mkdir -p . 2>/dev/null; then 10234 as_mkdir_p='mkdir -p "$as_dir"' 10235 else 10236 test -d ./-p && rmdir ./-p 10237 as_mkdir_p=false 10238 fi 10239 10240 10241 # as_fn_executable_p FILE 10242 # ----------------------- 10243 # Test if FILE is an executable regular file. 10244 as_fn_executable_p () 10245 { 10246 test -f "$1" && test -x "$1" 10247 } # as_fn_executable_p 10248 as_test_x='test -x' 10249 as_executable_p=as_fn_executable_p 10250 10251 # Sed expression to map a string onto a valid CPP name. 10252 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 10253 10254 # Sed expression to map a string onto a valid variable name. 10255 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 10256 10257 10258 exec 6>&1 10259 ## ----------------------------------- ## 10260 ## Main body of $CONFIG_STATUS script. ## 10261 ## ----------------------------------- ## 10262 _ASEOF 10263 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 10264 10265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10266 # Save the log message, to keep $0 and so on meaningful, and to 10267 # report actual input values of CONFIG_FILES etc. instead of their 10268 # values after options handling. 10269 ac_log=" 10270 This file was extended by tcpdump $as_me 4.99.6, which was 10271 generated by GNU Autoconf 2.71. Invocation command line was 10272 10273 CONFIG_FILES = $CONFIG_FILES 10274 CONFIG_HEADERS = $CONFIG_HEADERS 10275 CONFIG_LINKS = $CONFIG_LINKS 10276 CONFIG_COMMANDS = $CONFIG_COMMANDS 10277 $ $0 $@ 10278 10279 on `(hostname || uname -n) 2>/dev/null | sed 1q` 10280 " 10281 10282 _ACEOF 10283 10284 case $ac_config_files in *" 10285 "*) set x $ac_config_files; shift; ac_config_files=$*;; 10286 esac 10287 10288 case $ac_config_headers in *" 10289 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 10290 esac 10291 10292 10293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10294 # Files that config.status was made for. 10295 config_files="$ac_config_files" 10296 config_headers="$ac_config_headers" 10297 config_commands="$ac_config_commands" 10298 10299 _ACEOF 10300 10301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10302 ac_cs_usage="\ 10303 \`$as_me' instantiates files and other configuration actions 10304 from templates according to the current configuration. Unless the files 10305 and actions are specified as TAGs, all are instantiated by default. 10306 10307 Usage: $0 [OPTION]... [TAG]... 10308 10309 -h, --help print this help, then exit 10310 -V, --version print version number and configuration settings, then exit 10311 --config print configuration, then exit 10312 -q, --quiet, --silent 10313 do not print progress messages 10314 -d, --debug don't remove temporary files 10315 --recheck update $as_me by reconfiguring in the same conditions 10316 --file=FILE[:TEMPLATE] 10317 instantiate the configuration file FILE 10318 --header=FILE[:TEMPLATE] 10319 instantiate the configuration header FILE 10320 10321 Configuration files: 10322 $config_files 10323 10324 Configuration headers: 10325 $config_headers 10326 10327 Configuration commands: 10328 $config_commands 10329 10330 Report bugs to the package provider." 10331 10332 _ACEOF 10333 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 10334 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 10335 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10336 ac_cs_config='$ac_cs_config_escaped' 10337 ac_cs_version="\\ 10338 tcpdump config.status 4.99.6 10339 configured by $0, generated by GNU Autoconf 2.71, 10340 with options \\"\$ac_cs_config\\" 10341 10342 Copyright (C) 2021 Free Software Foundation, Inc. 10343 This config.status script is free software; the Free Software Foundation 10344 gives unlimited permission to copy, distribute and modify it." 10345 10346 ac_pwd='$ac_pwd' 10347 srcdir='$srcdir' 10348 INSTALL='$INSTALL' 10349 test -n "\$AWK" || AWK=awk 10350 _ACEOF 10351 10352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10353 # The default lists apply if the user does not specify any file. 10354 ac_need_defaults=: 10355 while test $# != 0 10356 do 10357 case $1 in 10358 --*=?*) 10359 ac_option=`expr "X$1" : 'X\([^=]*\)='` 10360 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 10361 ac_shift=: 10362 ;; 10363 --*=) 10364 ac_option=`expr "X$1" : 'X\([^=]*\)='` 10365 ac_optarg= 10366 ac_shift=: 10367 ;; 10368 *) 10369 ac_option=$1 10370 ac_optarg=$2 10371 ac_shift=shift 10372 ;; 10373 esac 10374 10375 case $ac_option in 10376 # Handling of the options. 10377 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 10378 ac_cs_recheck=: ;; 10379 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 10380 printf "%s\n" "$ac_cs_version"; exit ;; 10381 --config | --confi | --conf | --con | --co | --c ) 10382 printf "%s\n" "$ac_cs_config"; exit ;; 10383 --debug | --debu | --deb | --de | --d | -d ) 10384 debug=: ;; 10385 --file | --fil | --fi | --f ) 10386 $ac_shift 10387 case $ac_optarg in 10388 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 10389 '') as_fn_error $? "missing file argument" ;; 10390 esac 10391 as_fn_append CONFIG_FILES " '$ac_optarg'" 10392 ac_need_defaults=false;; 10393 --header | --heade | --head | --hea ) 10394 $ac_shift 10395 case $ac_optarg in 10396 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 10397 esac 10398 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 10399 ac_need_defaults=false;; 10400 --he | --h) 10401 # Conflict between --help and --header 10402 as_fn_error $? "ambiguous option: \`$1' 10403 Try \`$0 --help' for more information.";; 10404 --help | --hel | -h ) 10405 printf "%s\n" "$ac_cs_usage"; exit ;; 10406 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10407 | -silent | --silent | --silen | --sile | --sil | --si | --s) 10408 ac_cs_silent=: ;; 10409 10410 # This is an error. 10411 -*) as_fn_error $? "unrecognized option: \`$1' 10412 Try \`$0 --help' for more information." ;; 10413 10414 *) as_fn_append ac_config_targets " $1" 10415 ac_need_defaults=false ;; 10416 10417 esac 10418 shift 10419 done 10420 10421 ac_configure_extra_args= 10422 10423 if $ac_cs_silent; then 10424 exec 6>/dev/null 10425 ac_configure_extra_args="$ac_configure_extra_args --silent" 10426 fi 10427 10428 _ACEOF 10429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10430 if \$ac_cs_recheck; then 10431 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 10432 shift 10433 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 10434 CONFIG_SHELL='$SHELL' 10435 export CONFIG_SHELL 10436 exec "\$@" 10437 fi 10438 10439 _ACEOF 10440 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10441 exec 5>>config.log 10442 { 10443 echo 10444 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 10445 ## Running $as_me. ## 10446 _ASBOX 10447 printf "%s\n" "$ac_log" 10448 } >&5 10449 10450 _ACEOF 10451 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10452 # 10453 # INIT-COMMANDS 10454 # 10455 10456 10457 _ACEOF 10458 10459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10460 10461 # Handling of arguments. 10462 for ac_config_target in $ac_config_targets 10463 do 10464 case $ac_config_target in 10465 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 10466 ".devel") CONFIG_COMMANDS="$CONFIG_COMMANDS .devel" ;; 10467 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 10468 "tcpdump.1") CONFIG_FILES="$CONFIG_FILES tcpdump.1" ;; 10469 10470 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 10471 esac 10472 done 10473 10474 10475 # If the user did not use the arguments to specify the items to instantiate, 10476 # then the envvar interface is used. Set only those that are not. 10477 # We use the long form for the default assignment because of an extremely 10478 # bizarre bug on SunOS 4.1.3. 10479 if $ac_need_defaults; then 10480 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 10481 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 10482 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 10483 fi 10484 10485 # Have a temporary directory for convenience. Make it in the build tree 10486 # simply because there is no reason against having it here, and in addition, 10487 # creating and moving files from /tmp can sometimes cause problems. 10488 # Hook for its removal unless debugging. 10489 # Note that there is a small window in which the directory will not be cleaned: 10490 # after its creation but before its name has been assigned to `$tmp'. 10491 $debug || 10492 { 10493 tmp= ac_tmp= 10494 trap 'exit_status=$? 10495 : "${ac_tmp:=$tmp}" 10496 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 10497 ' 0 10498 trap 'as_fn_exit 1' 1 2 13 15 10499 } 10500 # Create a (secure) tmp directory for tmp files. 10501 10502 { 10503 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 10504 test -d "$tmp" 10505 } || 10506 { 10507 tmp=./conf$$-$RANDOM 10508 (umask 077 && mkdir "$tmp") 10509 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 10510 ac_tmp=$tmp 10511 10512 # Set up the scripts for CONFIG_FILES section. 10513 # No need to generate them if there are no CONFIG_FILES. 10514 # This happens for instance with `./config.status config.h'. 10515 if test -n "$CONFIG_FILES"; then 10516 10517 10518 ac_cr=`echo X | tr X '\015'` 10519 # On cygwin, bash can eat \r inside `` if the user requested igncr. 10520 # But we know of no other shell where ac_cr would be empty at this 10521 # point, so we can use a bashism as a fallback. 10522 if test "x$ac_cr" = x; then 10523 eval ac_cr=\$\'\\r\' 10524 fi 10525 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 10526 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 10527 ac_cs_awk_cr='\\r' 10528 else 10529 ac_cs_awk_cr=$ac_cr 10530 fi 10531 10532 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 10533 _ACEOF 10534 10535 10536 { 10537 echo "cat >conf$$subs.awk <<_ACEOF" && 10538 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 10539 echo "_ACEOF" 10540 } >conf$$subs.sh || 10541 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 10542 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 10543 ac_delim='%!_!# ' 10544 for ac_last_try in false false false false false :; do 10545 . ./conf$$subs.sh || 10546 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 10547 10548 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 10549 if test $ac_delim_n = $ac_delim_num; then 10550 break 10551 elif $ac_last_try; then 10552 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 10553 else 10554 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 10555 fi 10556 done 10557 rm -f conf$$subs.sh 10558 10559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10560 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 10561 _ACEOF 10562 sed -n ' 10563 h 10564 s/^/S["/; s/!.*/"]=/ 10565 p 10566 g 10567 s/^[^!]*!// 10568 :repl 10569 t repl 10570 s/'"$ac_delim"'$// 10571 t delim 10572 :nl 10573 h 10574 s/\(.\{148\}\)..*/\1/ 10575 t more1 10576 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 10577 p 10578 n 10579 b repl 10580 :more1 10581 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 10582 p 10583 g 10584 s/.\{148\}// 10585 t nl 10586 :delim 10587 h 10588 s/\(.\{148\}\)..*/\1/ 10589 t more2 10590 s/["\\]/\\&/g; s/^/"/; s/$/"/ 10591 p 10592 b 10593 :more2 10594 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 10595 p 10596 g 10597 s/.\{148\}// 10598 t delim 10599 ' <conf$$subs.awk | sed ' 10600 /^[^""]/{ 10601 N 10602 s/\n// 10603 } 10604 ' >>$CONFIG_STATUS || ac_write_fail=1 10605 rm -f conf$$subs.awk 10606 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10607 _ACAWK 10608 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 10609 for (key in S) S_is_set[key] = 1 10610 FS = "" 10611 10612 } 10613 { 10614 line = $ 0 10615 nfields = split(line, field, "@") 10616 substed = 0 10617 len = length(field[1]) 10618 for (i = 2; i < nfields; i++) { 10619 key = field[i] 10620 keylen = length(key) 10621 if (S_is_set[key]) { 10622 value = S[key] 10623 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 10624 len += length(value) + length(field[++i]) 10625 substed = 1 10626 } else 10627 len += 1 + keylen 10628 } 10629 10630 print line 10631 } 10632 10633 _ACAWK 10634 _ACEOF 10635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10636 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 10637 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 10638 else 10639 cat 10640 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 10641 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 10642 _ACEOF 10643 10644 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 10645 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 10646 # trailing colons and then remove the whole line if VPATH becomes empty 10647 # (actually we leave an empty line to preserve line numbers). 10648 if test "x$srcdir" = x.; then 10649 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 10650 h 10651 s/// 10652 s/^/:/ 10653 s/[ ]*$/:/ 10654 s/:\$(srcdir):/:/g 10655 s/:\${srcdir}:/:/g 10656 s/:@srcdir@:/:/g 10657 s/^:*// 10658 s/:*$// 10659 x 10660 s/\(=[ ]*\).*/\1/ 10661 G 10662 s/\n// 10663 s/^[^=]*=[ ]*$// 10664 }' 10665 fi 10666 10667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10668 fi # test -n "$CONFIG_FILES" 10669 10670 # Set up the scripts for CONFIG_HEADERS section. 10671 # No need to generate them if there are no CONFIG_HEADERS. 10672 # This happens for instance with `./config.status Makefile'. 10673 if test -n "$CONFIG_HEADERS"; then 10674 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 10675 BEGIN { 10676 _ACEOF 10677 10678 # Transform confdefs.h into an awk script `defines.awk', embedded as 10679 # here-document in config.status, that substitutes the proper values into 10680 # config.h.in to produce config.h. 10681 10682 # Create a delimiter string that does not exist in confdefs.h, to ease 10683 # handling of long lines. 10684 ac_delim='%!_!# ' 10685 for ac_last_try in false false :; do 10686 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 10687 if test -z "$ac_tt"; then 10688 break 10689 elif $ac_last_try; then 10690 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 10691 else 10692 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 10693 fi 10694 done 10695 10696 # For the awk script, D is an array of macro values keyed by name, 10697 # likewise P contains macro parameters if any. Preserve backslash 10698 # newline sequences. 10699 10700 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 10701 sed -n ' 10702 s/.\{148\}/&'"$ac_delim"'/g 10703 t rset 10704 :rset 10705 s/^[ ]*#[ ]*define[ ][ ]*/ / 10706 t def 10707 d 10708 :def 10709 s/\\$// 10710 t bsnl 10711 s/["\\]/\\&/g 10712 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 10713 D["\1"]=" \3"/p 10714 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 10715 d 10716 :bsnl 10717 s/["\\]/\\&/g 10718 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 10719 D["\1"]=" \3\\\\\\n"\\/p 10720 t cont 10721 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 10722 t cont 10723 d 10724 :cont 10725 n 10726 s/.\{148\}/&'"$ac_delim"'/g 10727 t clear 10728 :clear 10729 s/\\$// 10730 t bsnlc 10731 s/["\\]/\\&/g; s/^/"/; s/$/"/p 10732 d 10733 :bsnlc 10734 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 10735 b cont 10736 ' <confdefs.h | sed ' 10737 s/'"$ac_delim"'/"\\\ 10738 "/g' >>$CONFIG_STATUS || ac_write_fail=1 10739 10740 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10741 for (key in D) D_is_set[key] = 1 10742 FS = "" 10743 } 10744 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 10745 line = \$ 0 10746 split(line, arg, " ") 10747 if (arg[1] == "#") { 10748 defundef = arg[2] 10749 mac1 = arg[3] 10750 } else { 10751 defundef = substr(arg[1], 2) 10752 mac1 = arg[2] 10753 } 10754 split(mac1, mac2, "(") #) 10755 macro = mac2[1] 10756 prefix = substr(line, 1, index(line, defundef) - 1) 10757 if (D_is_set[macro]) { 10758 # Preserve the white space surrounding the "#". 10759 print prefix "define", macro P[macro] D[macro] 10760 next 10761 } else { 10762 # Replace #undef with comments. This is necessary, for example, 10763 # in the case of _POSIX_SOURCE, which is predefined and required 10764 # on some systems where configure will not decide to define it. 10765 if (defundef == "undef") { 10766 print "/*", prefix defundef, macro, "*/" 10767 next 10768 } 10769 } 10770 } 10771 { print } 10772 _ACAWK 10773 _ACEOF 10774 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10775 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 10776 fi # test -n "$CONFIG_HEADERS" 10777 10778 10779 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 10780 shift 10781 for ac_tag 10782 do 10783 case $ac_tag in 10784 :[FHLC]) ac_mode=$ac_tag; continue;; 10785 esac 10786 case $ac_mode$ac_tag in 10787 :[FHL]*:*);; 10788 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 10789 :[FH]-) ac_tag=-:-;; 10790 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 10791 esac 10792 ac_save_IFS=$IFS 10793 IFS=: 10794 set x $ac_tag 10795 IFS=$ac_save_IFS 10796 shift 10797 ac_file=$1 10798 shift 10799 10800 case $ac_mode in 10801 :L) ac_source=$1;; 10802 :[FH]) 10803 ac_file_inputs= 10804 for ac_f 10805 do 10806 case $ac_f in 10807 -) ac_f="$ac_tmp/stdin";; 10808 *) # Look for the file first in the build tree, then in the source tree 10809 # (if the path is not absolute). The absolute path cannot be DOS-style, 10810 # because $ac_f cannot contain `:'. 10811 test -f "$ac_f" || 10812 case $ac_f in 10813 [\\/$]*) false;; 10814 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 10815 esac || 10816 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 10817 esac 10818 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 10819 as_fn_append ac_file_inputs " '$ac_f'" 10820 done 10821 10822 # Let's still pretend it is `configure' which instantiates (i.e., don't 10823 # use $as_me), people would be surprised to read: 10824 # /* config.h. Generated by config.status. */ 10825 configure_input='Generated from '` 10826 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 10827 `' by configure.' 10828 if test x"$ac_file" != x-; then 10829 configure_input="$ac_file. $configure_input" 10830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 10831 printf "%s\n" "$as_me: creating $ac_file" >&6;} 10832 fi 10833 # Neutralize special characters interpreted by sed in replacement strings. 10834 case $configure_input in #( 10835 *\&* | *\|* | *\\* ) 10836 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 10837 sed 's/[\\\\&|]/\\\\&/g'`;; #( 10838 *) ac_sed_conf_input=$configure_input;; 10839 esac 10840 10841 case $ac_tag in 10842 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 10843 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 10844 esac 10845 ;; 10846 esac 10847 10848 ac_dir=`$as_dirname -- "$ac_file" || 10849 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10850 X"$ac_file" : 'X\(//\)[^/]' \| \ 10851 X"$ac_file" : 'X\(//\)$' \| \ 10852 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 10853 printf "%s\n" X"$ac_file" | 10854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10855 s//\1/ 10856 q 10857 } 10858 /^X\(\/\/\)[^/].*/{ 10859 s//\1/ 10860 q 10861 } 10862 /^X\(\/\/\)$/{ 10863 s//\1/ 10864 q 10865 } 10866 /^X\(\/\).*/{ 10867 s//\1/ 10868 q 10869 } 10870 s/.*/./; q'` 10871 as_dir="$ac_dir"; as_fn_mkdir_p 10872 ac_builddir=. 10873 10874 case "$ac_dir" in 10875 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 10876 *) 10877 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 10878 # A ".." for each directory in $ac_dir_suffix. 10879 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 10880 case $ac_top_builddir_sub in 10881 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 10882 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 10883 esac ;; 10884 esac 10885 ac_abs_top_builddir=$ac_pwd 10886 ac_abs_builddir=$ac_pwd$ac_dir_suffix 10887 # for backward compatibility: 10888 ac_top_builddir=$ac_top_build_prefix 10889 10890 case $srcdir in 10891 .) # We are building in place. 10892 ac_srcdir=. 10893 ac_top_srcdir=$ac_top_builddir_sub 10894 ac_abs_top_srcdir=$ac_pwd ;; 10895 [\\/]* | ?:[\\/]* ) # Absolute name. 10896 ac_srcdir=$srcdir$ac_dir_suffix; 10897 ac_top_srcdir=$srcdir 10898 ac_abs_top_srcdir=$srcdir ;; 10899 *) # Relative name. 10900 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 10901 ac_top_srcdir=$ac_top_build_prefix$srcdir 10902 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 10903 esac 10904 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 10905 10906 10907 case $ac_mode in 10908 :F) 10909 # 10910 # CONFIG_FILE 10911 # 10912 10913 case $INSTALL in 10914 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 10915 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 10916 esac 10917 _ACEOF 10918 10919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10920 # If the template does not know about datarootdir, expand it. 10921 # FIXME: This hack should be removed a few years after 2.60. 10922 ac_datarootdir_hack=; ac_datarootdir_seen= 10923 ac_sed_dataroot=' 10924 /datarootdir/ { 10925 p 10926 q 10927 } 10928 /@datadir@/p 10929 /@docdir@/p 10930 /@infodir@/p 10931 /@localedir@/p 10932 /@mandir@/p' 10933 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 10934 *datarootdir*) ac_datarootdir_seen=yes;; 10935 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 10936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 10937 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 10938 _ACEOF 10939 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10940 ac_datarootdir_hack=' 10941 s&@datadir@&$datadir&g 10942 s&@docdir@&$docdir&g 10943 s&@infodir@&$infodir&g 10944 s&@localedir@&$localedir&g 10945 s&@mandir@&$mandir&g 10946 s&\\\${datarootdir}&$datarootdir&g' ;; 10947 esac 10948 _ACEOF 10949 10950 # Neutralize VPATH when `$srcdir' = `.'. 10951 # Shell code in configure.ac might set extrasub. 10952 # FIXME: do we really want to maintain this feature? 10953 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10954 ac_sed_extra="$ac_vpsub 10955 $extrasub 10956 _ACEOF 10957 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10958 :t 10959 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 10960 s|@configure_input@|$ac_sed_conf_input|;t t 10961 s&@top_builddir@&$ac_top_builddir_sub&;t t 10962 s&@top_build_prefix@&$ac_top_build_prefix&;t t 10963 s&@srcdir@&$ac_srcdir&;t t 10964 s&@abs_srcdir@&$ac_abs_srcdir&;t t 10965 s&@top_srcdir@&$ac_top_srcdir&;t t 10966 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 10967 s&@builddir@&$ac_builddir&;t t 10968 s&@abs_builddir@&$ac_abs_builddir&;t t 10969 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 10970 s&@INSTALL@&$ac_INSTALL&;t t 10971 $ac_datarootdir_hack 10972 " 10973 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 10974 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 10975 10976 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 10977 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 10978 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 10979 "$ac_tmp/out"`; test -z "$ac_out"; } && 10980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 10981 which seems to be undefined. Please make sure it is defined" >&5 10982 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 10983 which seems to be undefined. Please make sure it is defined" >&2;} 10984 10985 rm -f "$ac_tmp/stdin" 10986 case $ac_file in 10987 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 10988 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 10989 esac \ 10990 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 10991 ;; 10992 :H) 10993 # 10994 # CONFIG_HEADER 10995 # 10996 if test x"$ac_file" != x-; then 10997 { 10998 printf "%s\n" "/* $configure_input */" >&1 \ 10999 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 11000 } >"$ac_tmp/config.h" \ 11001 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11002 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 11003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 11004 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 11005 else 11006 rm -f "$ac_file" 11007 mv "$ac_tmp/config.h" "$ac_file" \ 11008 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11009 fi 11010 else 11011 printf "%s\n" "/* $configure_input */" >&1 \ 11012 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 11013 || as_fn_error $? "could not create -" "$LINENO" 5 11014 fi 11015 ;; 11016 11017 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 11018 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 11019 ;; 11020 esac 11021 11022 11023 case $ac_file$ac_mode in 11024 ".devel":C) if test -f .devel; then 11025 echo timestamp > stamp-h 11026 cat $srcdir/Makefile-devel-adds >> Makefile 11027 make depend || exit 1 11028 fi ;; 11029 11030 esac 11031 done # for ac_tag 11032 11033 11034 as_fn_exit 0 11035 _ACEOF 11036 ac_clean_files=$ac_clean_files_save 11037 11038 test $ac_write_fail = 0 || 11039 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 11040 11041 11042 # configure is writing to config.log, and then calls config.status. 11043 # config.status does its own redirection, appending to config.log. 11044 # Unfortunately, on DOS this fails, as config.log is still kept open 11045 # by configure, so config.status won't be able to write to it; its 11046 # output is simply discarded. So we exec the FD to /dev/null, 11047 # effectively closing config.log, so it can be properly (re)opened and 11048 # appended to by config.status. When coming back to configure, we 11049 # need to make the FD available again. 11050 if test "$no_create" != yes; then 11051 ac_cs_success=: 11052 ac_config_status_args= 11053 test "$silent" = yes && 11054 ac_config_status_args="$ac_config_status_args --quiet" 11055 exec 5>/dev/null 11056 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 11057 exec 5>>config.log 11058 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 11059 # would make configure fail if this is the last instruction. 11060 $ac_cs_success || as_fn_exit 1 11061 fi 11062 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 11063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 11064 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 11065 fi 11066 11067 exit 0 11068