Lines Matching +full:- +full:- +full:include +full:- +full:cat

2 # Guess values for system-dependent variables and create Makefiles.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 ## -------------------- ##
13 ## -------------------- ##
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
27 set -o posix ;; #(
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
84 # there to prevent editors from complaining about space-tab.
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
109 if test ! -f "$as_myself"; then
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
136 # into an infinite loop, continuously re-executing ourselves.
142 # Preserve -v and -x to the replacement shell.
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
171 set -o posix ;; #(
194 test -x / || exit 1"
213 test -z "$as_dir" && as_dir=.
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243 # Preserve -v and -x to the replacement shell.
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 $as_echo "$0: Please tell bug-[email protected] about your system,
276 SHELL=${CONFIG_SHELL-/bin/sh}
282 ## --------------------- ##
284 ## --------------------- ##
286 # ---------------
295 # -----------------------
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 # -------------
319 -*) as_dir=./$as_dir;;
321 test -d "$as_dir" || eval $as_mkdir_p || {
329 as_dir=`$as_dirname -- "$as_dir" ||
352 test -d "$as_dir" && break
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
361 # -----------------------
365 test -f "$1" && test -x "$1"
368 # ----------------------
386 # ------------------
398 as_val=`expr "$@" || test $? -eq 1`
404 # ----------------------------------------
410 as_status=$1; test $as_status -eq 0 && as_status=1
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
438 as_me=`$as_basename -- "$0" ||
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
475 s/[$]LINENO.*/&-/
483 s/-\n.*//
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 case `echo -n x` in #(((((
502 -n*)
510 ECHO_N='-n';;
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
517 rm -f conf$$.dir
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
532 as_ln_s='cp -pR'
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
543 test -d ./-p && rmdir ./-p
547 as_test_x='test -x'
557 test -n "$DJDIR" || exec 7<&0 </dev/null
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
588 #include <stdio.h>
590 # include <sys/types.h>
593 # include <sys/stat.h>
596 # include <stdlib.h>
597 # include <stddef.h>
600 # include <stdlib.h>
605 # include <memory.h>
607 # include <string.h>
610 # include <strings.h>
613 # include <inttypes.h>
616 # include <stdint.h>
619 # include <unistd.h>
855 includedir='${prefix}/include'
856 oldincludedir='/usr/include'
872 if test -n "$ac_prev"; then
887 --)
890 -bindir | --bindir | --bindi | --bind | --bin | --bi)
892 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895 -build | --build | --buil | --bui | --bu)
897 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
900 -cache-file | --cache-file | --cache-fil | --cache-fi \
901 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
907 --config-cache | -C)
910 -datadir | --datadir | --datadi | --datad)
912 -datadir=* | --datadir=* | --datadi=* | --datad=*)
915 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916 | --dataroo | --dataro | --datar)
918 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922 -disable-* | --disable-*)
923 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
938 -docdir | --docdir | --docdi | --doc | --do)
940 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
945 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948 -enable-* | --enable-*)
949 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
959 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
964 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
965 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
966 | --exec | --exe | --ex)
968 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
969 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
970 | --exec=* | --exe=* | --ex=*)
973 -gas | --gas | --ga | --g)
974 # Obsolete; use --with-gas.
977 -help | --help | --hel | --he | -h)
979 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
981 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
984 -host | --host | --hos | --ho)
986 -host=* | --host=* | --hos=* | --ho=*)
989 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
991 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
992 | --ht=*)
995 -includedir | --includedir | --includedi | --included | --include \
996 | --includ | --inclu | --incl | --inc)
998 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
999 | --includ=* | --inclu=* | --incl=* | --inc=*)
1002 -infodir | --infodir | --infodi | --infod | --info | --inf)
1004 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1007 -libdir | --libdir | --libdi | --libd)
1009 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1012 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1013 | --libexe | --libex | --libe)
1015 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1016 | --libexe=* | --libex=* | --libe=*)
1019 -localedir | --localedir | --localedi | --localed | --locale)
1021 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1024 -localstatedir | --localstatedir | --localstatedi | --localstated \
1025 | --localstate | --localstat | --localsta | --localst | --locals)
1027 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1028 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1031 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1033 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1036 -nfp | --nfp | --nf)
1037 # Obsolete; use --without-fp.
1040 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1041 | --no-cr | --no-c | -n)
1044 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1049 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1050 | --oldin | --oldi | --old | --ol | --o)
1052 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1053 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1054 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1057 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1059 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1062 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1063 | --program-pre | --program-pr | --program-p)
1065 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1066 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1069 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1070 | --program-suf | --program-su | --program-s)
1072 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1073 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1076 -program-transform-name | --program-transform-name \
1077 | --program-transform-nam | --program-transform-na \
1078 | --program-transform-n | --program-transform- \
1079 | --program-transform | --program-transfor \
1080 | --program-transfo | --program-transf \
1081 | --program-trans | --program-tran \
1082 | --progr-tra | --program-tr | --program-t)
1084 -program-transform-name=* | --program-transform-name=* \
1085 | --program-transform-nam=* | --program-transform-na=* \
1086 | --program-transform-n=* | --program-transform-=* \
1087 | --program-transform=* | --program-transfor=* \
1088 | --program-transfo=* | --program-transf=* \
1089 | --program-trans=* | --program-tran=* \
1090 | --progr-tra=* | --program-tr=* | --program-t=*)
1093 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1095 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1098 -psdir | --psdir | --psdi | --psd | --ps)
1100 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1104 | -silent | --silent | --silen | --sile | --sil)
1107 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1109 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1110 | --sbi=* | --sb=*)
1113 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115 | --sharedst | --shareds | --shared | --share | --shar \
1116 | --sha | --sh)
1118 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1121 | --sha=* | --sh=*)
1124 -site | --site | --sit)
1126 -site=* | --site=* | --sit=*)
1129 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1131 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1134 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135 | --syscon | --sysco | --sysc | --sys | --sy)
1137 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1141 -target | --target | --targe | --targ | --tar | --ta | --t)
1143 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1146 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1149 -version | --version | --versio | --versi | --vers | -V)
1152 -with-* | --with-*)
1153 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1163 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1168 -without-* | --without-*)
1169 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1184 --x)
1185 # Obsolete; use --with-x.
1188 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1189 | --x-incl | --x-inc | --x-in | --x-i)
1191 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1192 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1195 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1196 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1198 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1199 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1202 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1203 Try \`$0 --help' for more information"
1210 '' | [0-9]* | *[!_$as_cr_alnum]* )
1218 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1219 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1227 if test -n "$ac_prev"; then
1228 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1232 if test -n "$ac_unrecognized_opts"; then
1258 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1262 # used to hold the argument of --host etc.
1278 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1283 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1284 ac_ls_di=`ls -di .` &&
1285 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1292 if test -z "$srcdir"; then
1295 ac_confdir=`$as_dirname -- "$as_myself" ||
1319 if test ! -r "$srcdir/$ac_unique_file"; then
1325 if test ! -r "$srcdir/$ac_unique_file"; then
1331 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1339 # mess up M-x gdb in Emacs.
1351 # Report the --help message.
1356 cat <<_ACEOF
1367 -h, --help display this help and exit
1368 --help=short display options specific to this package
1369 --help=recursive display the short help of all the included packages
1370 -V, --version display version information and exit
1371 -q, --quiet, --silent do not print \`checking ...' messages
1372 --cache-file=FILE cache test results in FILE [disabled]
1373 -C, --config-cache alias for \`--cache-file=config.cache'
1374 -n, --no-create do not create output files
1375 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1378 --prefix=PREFIX install architecture-independent files in PREFIX
1380 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1385 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1386 for instance \`--prefix=\$HOME'.
1391 --bindir=DIR user executables [EPREFIX/bin]
1392 --sbindir=DIR system admin executables [EPREFIX/sbin]
1393 --libexecdir=DIR program executables [EPREFIX/libexec]
1394 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1395 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1396 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1397 --libdir=DIR object code libraries [EPREFIX/lib]
1398 --includedir=DIR C header files [PREFIX/include]
1399 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1400 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1401 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1402 --infodir=DIR info documentation [DATAROOTDIR/info]
1403 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1404 --mandir=DIR man documentation [DATAROOTDIR/man]
1405 --docdir=DIR documentation root [DATAROOTDIR/doc/pcap]
1406 --htmldir=DIR html documentation [DOCDIR]
1407 --dvidir=DIR dvi documentation [DOCDIR]
1408 --pdfdir=DIR pdf documentation [DOCDIR]
1409 --psdir=DIR ps documentation [DOCDIR]
1412 cat <<\_ACEOF
1415 --build=BUILD configure for building on BUILD [guessed]
1416 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1417 --target=TARGET configure for building compilers for TARGET [HOST]
1421 if test -n "$ac_init_help"; then
1425 cat <<\_ACEOF
1428 --disable-option-checking ignore unrecognized --enable/--with options
1429 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1430 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1431 --disable-largefile omit support for large files
1432 --disable-protochain disable \"protochain\" insn
1433 --enable-ipv6 build IPv6-capable version [default=yes]
1434 --enable-remote enable remote packet capture [default=no]
1435 --enable-optimizer-dbg build optimizer debugging code
1436 --enable-yydebug build parser debugging code
1437 --disable-universal don't build universal on macOS
1438 --enable-shared build shared libraries [default=yes, if support
1440 --enable-usb enable Linux usbmon USB capture support
1442 --enable-netmap enable netmap support [default=yes, if support
1444 --enable-bluetooth enable Bluetooth support [default=yes, if support
1446 --enable-dbus enable D-Bus capture support [default=yes, if
1448 --enable-rdma enable RDMA capture support [default=yes, if support
1452 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1453 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1454 --without-gcc don't use gcc
1455 --with-pcap=TYPE use packet capture TYPE
1456 --without-libnl disable libnl support [default=yes, on Linux, if
1458 --with-dag[=DIR] include Endace DAG support (located in directory
1460 --with-dag-includes=IDIR
1461 Endace DAG include directory, if not DIR/include
1462 --with-dag-libraries=LDIR
1464 --with-septel[=DIR] include Septel support (located in directory DIR, if
1466 --with-snf[=DIR] include Myricom SNF support (located in directory
1468 --with-snf-includes=IDIR
1469 Myricom SNF include directory, if not DIR/include
1470 --with-snf-libraries=LDIR
1472 --with-turbocap[=DIR] include Riverbed TurboCap support (located in
1475 --with-dpdk[=DIR] include DPDK support (located in directory DIR, if
1481 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1483 LIBS libraries to pass to the linker, e.g. -l<library>
1484 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1485 you have headers in a nonstandard directory <include dir>
1489 PKG_CONFIG path to pkg-config utility
1491 directories to add to pkg-config's search path
1493 path overriding pkg-config's built-in search path
1495 C compiler flags for libnl-genl-3.0, overriding pkg-config
1496 LIBNL_LIBS linker flags for libnl-genl-3.0, overriding pkg-config
1498 static-link linker flags for libnl-genl-3.0, overriding
1499 pkg-config
1501 C compiler flags for openssl, overriding pkg-config
1503 linker flags for openssl, overriding pkg-config
1505 static-link linker flags for openssl, overriding pkg-config
1506 DPDK_CFLAGS C compiler flags for libdpdk, overriding pkg-config
1507 DPDK_LIBS linker flags for libdpdk, overriding pkg-config
1509 static-link linker flags for libdpdk, overriding pkg-config
1510 DBUS_CFLAGS C compiler flags for dbus-1, overriding pkg-config
1511 DBUS_LIBS linker flags for dbus-1, overriding pkg-config
1513 static-link linker flags for dbus-1, overriding pkg-config
1515 C compiler flags for libibverbs, overriding pkg-config
1517 linker flags for libibverbs, overriding pkg-config
1519 static-link linker flags for libibverbs, overriding pkg-config
1530 # If there are subdirs, report their specific --help.
1532 test -d "$ac_dir" ||
1533 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1571 if test -f "$ac_srcdir/configure.gnu"; then
1573 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1574 elif test -f "$ac_srcdir/configure"; then
1576 $SHELL "$ac_srcdir/configure" --help=recursive
1584 test -n "$ac_init_help" && exit $ac_status
1586 cat <<\_ACEOF
1597 ## ------------------------ ##
1599 ## ------------------------ ##
1602 # --------------------------
1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607 rm -f conftest.$ac_objext
1613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617 if test -s conftest.err; then
1618 grep -v '^ *+' conftest.err >conftest.er1
1619 cat conftest.er1 >&5
1620 mv -f conftest.er1 conftest.err
1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624 test -z "$ac_c_werror_flag" ||
1625 test ! -s conftest.err
1626 } && test -s conftest.$ac_objext; then :
1640 # ----------------------
1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1682 # --------------------------------------------
1683 # Tries to find the compile-time value of EXPR in a program that includes
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1697 static int test_array [1 - 2 * !(($2) >= 0)];
1708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1714 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1726 if test $ac_lo -le $ac_mid; then
1732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741 static int test_array [1 - 2 * !(($2) < 0)];
1750 ac_hi=-1 ac_mid=-1
1752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1769 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1770 if test $ac_mid -le $ac_hi; then
1776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1786 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818 #include <stdio.h>
1819 #include <stdlib.h>
1854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1856 rm -f conftest.val
1865 # ----------------------
1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1879 if test -s conftest.err; then
1880 grep -v '^ *+' conftest.err >conftest.er1
1881 cat conftest.er1 >&5
1882 mv -f conftest.er1 conftest.err
1884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1886 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1887 test ! -s conftest.err
1902 # -------------------------------------------------------
1903 # Tests whether HEADER exists and can be compiled using the include files in
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916 #include <$2>
1923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933 # ----------------------------
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 rm -f conftest.$ac_objext
1944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1948 if test -s conftest.err; then
1949 grep -v '^ *+' conftest.err >conftest.er1
1950 cat conftest.er1 >&5
1951 mv -f conftest.er1 conftest.err
1953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1955 test -z "$ac_cxx_werror_flag" ||
1956 test ! -s conftest.err
1957 } && test -s conftest.$ac_objext; then :
1971 # ------------------------
1976 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1992 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2006 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2013 # ----------------------------------------------
2014 # Tries to find the compile-time value of EXPR in a program that includes
2019 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 static int test_array [1 - 2 * !(($2) >= 0)];
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2057 if test $ac_lo -le $ac_mid; then
2063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 static int test_array [1 - 2 * !(($2) < 0)];
2081 ac_hi=-1 ac_mid=-1
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2100 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2101 if test $ac_mid -le $ac_hi; then
2107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2117 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 #include <stdio.h>
2150 #include <stdlib.h>
2185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2187 rm -f conftest.val
2196 # -------------------------------------------------------
2198 # the include files in INCLUDES and setting the cache variable VAR
2202 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219 #include <$2>
2226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2235 #include <$2>
2242 rm -f conftest.err conftest.i conftest.$ac_ext
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2249 …{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the pr…
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2257 …{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?"…
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2261 …{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled…
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2283 # ----------------------------------
2287 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2305 # include <limits.h>
2307 # include <assert.h>
2339 rm -f core conftest.err conftest.$ac_objext \
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2350 # ---------------------------------------------
2355 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2357 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2396 # -------------------------------------------
2401 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2450 # ----------------------------------------------------
2455 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2505 cat >config.log <<_ACEOF
2517 cat <<_ASUNAME
2518 ## --------- ##
2520 ## --------- ##
2522 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2523 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2524 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2525 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2526 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2528 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2529 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2532 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2545 test -z "$as_dir" && as_dir=.
2552 cat >&5 <<_ACEOF
2555 ## ----------- ##
2557 ## ----------- ##
2563 # Strip out --no-create and --no-recursion so they do not pile up.
2564 # Strip out --silent because we don't want to record it for future runs.
2565 # Also quote any args containing shell meta-characters.
2566 # Make two passes to allow for proper duplicate-argument suppression.
2576 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2577 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2578 | -silent | --silent | --silen | --sile | --sil)
2591 *=* | --config-cache | -C | -disable-* | --disable-* \
2592 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2593 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2594 | -with-* | --with-* | -without-* | --without-* | --x)
2599 -* ) ac_must_keep_next=true ;;
2620 $as_echo "## ---------------- ##
2622 ## ---------------- ##"
2626 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2631 …*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newlin…
2644 sed -n \
2649 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2656 $as_echo "## ----------------- ##
2658 ## ----------------- ##"
2670 if test -n "$ac_subst_files"; then
2671 $as_echo "## ------------------- ##
2673 ## ------------------- ##"
2686 if test -s confdefs.h; then
2687 $as_echo "## ----------- ##
2689 ## ----------- ##"
2691 cat confdefs.h
2698 rm -f core *.core core.conftest.* &&
2699 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2708 rm -f -r conftest* confdefs.h
2714 cat >>confdefs.h <<_ACEOF
2718 cat >>confdefs.h <<_ACEOF
2722 cat >>confdefs.h <<_ACEOF
2726 cat >>confdefs.h <<_ACEOF
2730 cat >>confdefs.h <<_ACEOF
2734 cat >>confdefs.h <<_ACEOF
2743 if test -n "$CONFIG_SITE"; then
2746 -*) ac_site_file1=./$CONFIG_SITE;;
2760 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2765 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2772 if test -r "$cache_file"; then
2775 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2799 …{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previo…
2803 … { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2813 …{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2817 …{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since …
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2842 …{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the buil…
2846 ## -------------------- ##
2848 ## -------------------- ##
2852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2861 # These are the variables that are used in Makefile, pcap-config, and
2881 # pcap-config, so that "pcap-config --libs --static" will report them.
2884 # REQUIRES_PRIVATE: pkg-config package names for additional libraries
2887 # so that "pkg-config --libs --static" will report them, and so that
2891 # V_CCOPT: additional compiler flags other than -I and -D flags
2895 # V_DEFS: additional -D compiler flags needed when compiling
2898 # V_INCLS: additional -I compiler flags needed when compiling
2902 # library needs to be linked. Used in Makwfile; not used in pcap-config
2905 # that dynamic library doesn't have to link with those libraries -
2911 # in pcap-config, so that "pcap-config --libs --static" will report
2914 # REQUIRES_PRIVATE: pkg-config package names for additional libraries
2917 # so that "pkg-config --libs --static" will report them, and so that
2921 # LIBS_PRIVATE: pkg-config package names for additional libraries with
2924 # so that "pkg-config --libs --static" will report them (those libraries
2942 if test -f "$ac_dir/install-sh"; then
2944 ac_install_sh="$ac_aux_dir/install-sh -c"
2946 elif test -f "$ac_dir/install.sh"; then
2948 ac_install_sh="$ac_aux_dir/install.sh -c"
2950 elif test -f "$ac_dir/shtool"; then
2952 ac_install_sh="$ac_aux_dir/shtool install -c"
2956 if test -z "$ac_aux_dir"; then
2957 …as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$src…
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2990 *-*-*) ;;
2994 ac_save_IFS=$IFS; IFS='-'
3004 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3023 *-*-*) ;;
3027 ac_save_IFS=$IFS; IFS='-'
3037 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3056 *-*-*) ;;
3060 ac_save_IFS=$IFS; IFS='-'
3070 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3075 test -n "$target_alias" &&
3078 program_prefix=${target_alias}-
3087 # Check whether --with-gcc was given.
3094 V_CCOPT="-I\$(srcdir)"
3099 if test -z "$CC" ; then
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3110 if test -n "$SHLICC2"; then
3117 test -z "$as_dir" && as_dir=.
3121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3128 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
3132 if test -n "$SHLICC2"; then
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLICC2" >&5
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3148 if test -z "$CC" -a "$with_gcc" = no ; then
3160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3163 if test -n "$ac_tool_prefix"; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3171 if test -n "$CC"; then
3178 test -z "$as_dir" && as_dir=.
3182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3192 if test -n "$CC"; then
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202 if test -z "$ac_cv_prog_CC"; then
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3211 if test -n "$ac_ct_CC"; then
3218 test -z "$as_dir" && as_dir=.
3222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3232 if test -n "$ac_ct_CC"; then
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet"…
3255 if test -z "$CC"; then
3256 if test -n "$ac_tool_prefix"; then
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3264 if test -n "$CC"; then
3271 test -z "$as_dir" && as_dir=.
3275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3285 if test -n "$CC"; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 if test -z "$CC"; then
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3304 if test -n "$CC"; then
3312 test -z "$as_dir" && as_dir=.
3320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3342 if test -n "$CC"; then
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3352 if test -z "$CC"; then
3353 if test -n "$ac_tool_prefix"; then
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3363 if test -n "$CC"; then
3370 test -z "$as_dir" && as_dir=.
3374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3384 if test -n "$CC"; then
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393 test -n "$CC" && break
3396 if test -z "$CC"; then
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3407 if test -n "$ac_ct_CC"; then
3414 test -z "$as_dir" && as_dir=.
3418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3428 if test -n "$ac_ct_CC"; then
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437 test -n "$ac_ct_CC" && break
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet"…
3456 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3462 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3465 for ac_option in --version -v -V -qversion; do
3471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3475 if test -s conftest.err; then
3479 cat conftest.er1 >&5
3481 rm -f conftest.er1 conftest.err
3482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499 # Try to create an executable without -o first, disregard a.out.
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3504 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3517 rm -f $ac_rmfiles
3524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3530 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3533 # so that the user can short-circuit this test for compilers unknown to
3537 test -f "$ac_file" || continue
3551 # safe: cross compilers may not add the suffix if given an `-o'
3565 if test -z "$ac_file"; then :
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3571 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3585 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3605 test -f "$ac_file" || continue
3614 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3619 rm -f conftest conftest$ac_cv_exeext
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3623 rm -f conftest.$ac_ext
3626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3628 #include <stdio.h>
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3672 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3675 If you meant to cross compile, use \`--host'.
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3683 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701 rm -f conftest.o conftest.obj
3707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3714 test -f "$ac_file" || continue;
3725 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3730 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3774 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3781 CFLAGS="-g"
3782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3812 CFLAGS="-g"
3813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3840 CFLAGS="-g -O2"
3842 CFLAGS="-g"
3846 CFLAGS="-O2"
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860 #include <stdarg.h>
3861 #include <stdio.h>
3882 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3885 as 'x'. The following induces an error, until -std is added to get
3888 that's true only with -std. */
3889 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3891 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3894 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3910 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3911 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3917 rm -f core conftest.err conftest.$ac_objext
3920 rm -f conftest.$ac_ext
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956 #include <stdarg.h>
3957 #include <stdbool.h>
3958 #include <stdlib.h>
3959 #include <wchar.h>
3960 #include <stdio.h>
3988 static long long int bignum = -9223372036854775807LL;
4008 // See if C++-style comments work.
4069 ia->datasize = 10;
4070 for (int i = 0; i < ia->datasize; ++i)
4071 ia->data[i] = i * 1.234;
4083 dynamic_array[ni.number - 1] = 543;
4087 || dynamic_array[ni.number - 1] != 543);
4093 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4099 rm -f core conftest.err conftest.$ac_objext
4102 rm -f conftest.$ac_ext
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4129 # Get the size of a void *, to determine whether this is a 32-bit
4130 # or 64-bit build.
4135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4141 if test -n "$CPP" && test -d "$CPP"; then
4144 if test -z "$CPP"; then
4149 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4155 # with a fresh cross-compiler works.
4158 # On the NeXT, cc -E runs the code through the compiler's parser,
4160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163 # include <limits.h>
4165 # include <assert.h>
4175 rm -f conftest.err conftest.i conftest.$ac_ext
4179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181 #include <ac_nonexistent.h>
4191 rm -f conftest.err conftest.i conftest.$ac_ext
4195 rm -f conftest.i conftest.err conftest.$ac_ext
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4214 # with a fresh cross-compiler works.
4217 # On the NeXT, cc -E runs the code through the compiler's parser,
4219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4222 # include <limits.h>
4224 # include <assert.h>
4234 rm -f conftest.err conftest.i conftest.$ac_ext
4238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240 #include <ac_nonexistent.h>
4250 rm -f conftest.err conftest.i conftest.$ac_ext
4254 rm -f conftest.i conftest.err conftest.$ac_ext
4258 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4272 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4276 if test -z "$GREP"; then
4278 # Loop through the user's path and test for each of PROGNAME-LIST
4283 test -z "$as_dir" && as_dir=.
4290 case `"$ac_path_GREP" --version 2>&1` in
4298 cat "conftest.in" "conftest.in" >"conftest.tmp"
4302 …"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || br…
4305 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4311 test $ac_count -gt 10 && break
4313 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4321 if test -z "$ac_cv_path_GREP"; then
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4339 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4340 then ac_cv_path_EGREP="$GREP -E"
4342 if test -z "$EGREP"; then
4344 # Loop through the user's path and test for each of PROGNAME-LIST
4349 test -z "$as_dir" && as_dir=.
4356 case `"$ac_path_EGREP" --version 2>&1` in
4364 cat "conftest.in" "conftest.in" >"conftest.tmp"
4371 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4377 test $ac_count -gt 10 && break
4379 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4387 if test -z "$ac_cv_path_EGREP"; then
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4408 #include <stdlib.h>
4409 #include <stdarg.h>
4410 #include <string.h>
4411 #include <float.h>
4426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4432 #include <string.h>
4441 rm -f conftest*
4447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4449 #include <stdlib.h>
4458 rm -f conftest*
4463 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469 #include <ctype.h>
4470 #include <stdlib.h>
4473 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4499 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4521 cat >>confdefs.h <<_ACEOF
4531 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
4543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
4558 cat >>confdefs.h <<_ACEOF
4573 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4574 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4576 if test -z "$CXX"; then
4577 if test -n "$CCC"; then
4580 if test -n "$ac_tool_prefix"; then
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4590 if test -n "$CXX"; then
4597 test -z "$as_dir" && as_dir=.
4601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4611 if test -n "$CXX"; then
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4620 test -n "$CXX" && break
4623 if test -z "$CXX"; then
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4634 if test -n "$ac_ct_CXX"; then
4641 test -z "$as_dir" && as_dir=.
4645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4655 if test -n "$ac_ct_CXX"; then
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4664 test -n "$ac_ct_CXX" && break
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet"…
4683 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4686 for ac_option in --version -v -V -qversion; do
4692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4696 if test -s conftest.err; then
4700 cat conftest.er1 >&5
4702 rm -f conftest.er1 conftest.err
4703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4745 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4752 CXXFLAGS="-g"
4753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4783 CXXFLAGS="-g"
4784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4811 CXXFLAGS="-g -O2"
4813 CXXFLAGS="-g"
4817 CXXFLAGS="-O2"
4824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4843 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4844 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4849 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of const void *" >&5
4861 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_const_void_p" >&5
4876 cat >>confdefs.h <<_ACEOF
4884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4888 if test "$ac_lbl_cxx_sizeof_void_p" -eq 0; then
4891 if test "$ac_lbl_c_sizeof_void_p" -ne "$ac_lbl_cxx_sizeof_void_p"; then
4892 as_fn_error $? "C compiler $CC produces code with $ac_lbl_c_sizeof_void_p-byte pointers
4893 while C++ compiler $CXX produces code with $ac_lbl_cxx_sizeof_void_p-byte pointers. This prevents
4905 # -Werror forces warnings to be errors.
4907 ac_lbl_cc_force_warning_errors=-Werror
4915 …{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -fvisibility=h…
4916 $as_echo_n "checking whether the compiler supports the -fvisibility=hidden option... " >&6; }
4918 CFLAGS="$CFLAGS -fvisibility=hidden"
4920 # XXX - yes, this depends on the way AC_LANG_WERROR works,
4923 # testing compiler options - 15 years after somebody asked
4926 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
4934 # as it will generate a warning with -Wold-style-definition, meaning
4939 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
4940 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
4945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fvisibility=hidden " >&5
4964 $as_echo_n "checking whether -fvisibility=hidden ... " >&6; }
4965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4992 V_CCOPT="$V_CCOPT -fvisibility=hidden"
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5006 V_INCLS="$V_INCLS -I/usr/local/include"
5007 LDFLAGS="$LDFLAGS -L/usr/local/lib"
5014 # of which use -Werror to force warnings to be errors.
5016 ac_lbl_cc_force_warning_errors=-Werror
5024 …{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -fvisibility=h…
5025 $as_echo_n "checking whether the compiler supports the -fvisibility=hidden option... " >&6; }
5027 CFLAGS="$CFLAGS -fvisibility=hidden"
5029 # XXX - yes, this depends on the way AC_LANG_WERROR works,
5032 # testing compiler options - 15 years after somebody asked
5035 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
5043 # as it will generate a warning with -Wold-style-definition, meaning
5048 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
5049 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
5054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fvisibility=hidden " >&5
5073 $as_echo_n "checking whether -fvisibility=hidden ... " >&6; }
5074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5101 V_CCOPT="$V_CCOPT -fvisibility=hidden"
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5119 # exit with a non-zero exit status if we hand it an
5120 # invalid -W flag, can't be forced to do so even with
5121 # +We, and doesn't handle GCC-style -W flags, so we
5122 # don't want to try using GCC-style -W flags.
5130 # necessarily exit with a non-zero exit status if we
5131 # hand it an invalid -W flag, can't be forced to do
5132 # so, and doesn't handle GCC-style -W flags, so we
5133 # don't want to try using GCC-style -W flags.
5143 # -xansi is normally the default, but the
5144 # configure script was setting it; perhaps -cckr
5151 # -g is equivalent to -g2, which turns off
5152 # optimization; we choose -g3, which generates
5157 V_CCOPT="$V_CCOPT -xansi -signed -g3"
5166 # using, doesn't exit with a non-zero exit status if we
5167 # hand it an invalid -W flag, can't be forced to do
5168 # so, and doesn't handle GCC-style -W flags, so we
5169 # don't want to try using GCC-style -W flags.
5173 # -g is equivalent to -g2, which turns off
5174 # optimization; we choose -g3, which generates
5179 V_CCOPT="$V_CCOPT -g3"
5184 # Assumed to be Sun C, which requires -errwarn to force
5187 ac_lbl_cc_force_warning_errors=-errwarn
5195 …{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -xldscope=hidd…
5196 $as_echo_n "checking whether the compiler supports the -xldscope=hidden option... " >&6; }
5198 CFLAGS="$CFLAGS -xldscope=hidden"
5200 # XXX - yes, this depends on the way AC_LANG_WERROR works,
5203 # testing compiler options - 15 years after somebody asked
5206 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
5214 # as it will generate a warning with -Wold-style-definition, meaning
5219 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
5220 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
5225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -xldscope=hidden " >&5
5244 $as_echo_n "checking whether -xldscope=hidden ... " >&6; }
5245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5272 V_CCOPT="$V_CCOPT -xldscope=hidden"
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5288 … { $as_echo "$as_me:${as_lineno-$LINENO}: checking that Ultrix $CC hacks const in prototypes" >&5
5293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5295 #include <sys/types.h>
5310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_const_proto" >&5
5322 V_CCOPT="$V_CCOPT -O"
5330 # add options to generate position-independent code,
5337 # add to the run-time search path, if that's necessary.
5340 V_SHLIB_OPT="-shared"
5349 # compatible command-line arguments, and the linker
5350 # is the GNU linker or accepts compatible command-line
5353 # Some instruction sets require -fPIC on some
5358 PIC_OPT=-fpic
5365 PIC_OPT=-fPIC
5371 V_SONAME_OPT="-Wl,-soname,"
5375 V_SHLIB_CCOPT="$V_SHLIB_CCOPT -fpic"
5377 # XXX - this assumes GCC is using the HP linker,
5379 # option is used on all HP-UX platforms, both .sl
5382 V_SONAME_OPT="-Wl,+h,"
5384 # By default, directories specified with -L
5385 # are added to the run-time search path, so
5386 # we don't add them in pcap-config.
5391 V_SHLIB_CCOPT="$V_SHLIB_CCOPT -fpic"
5393 # Sun/Oracle's C compiler, GCC, and GCC-compatible
5394 # compilers support -Wl,{comma-separated list of options},
5398 V_SONAME_OPT="-Wl,-h,"
5406 # add options to generate position-independent code,
5413 # add to the run-time search path, if that's necessary.
5416 # some platforms the soname is passed with a GCC-like
5417 # "-Wl,-soname,{soname}" option, with the soname part
5426 V_SHLIB_OPT="-G -bnoentry -bexpall"
5432 # compatible command-line arguments, and the linker
5433 # is the GNU linker or accepts compatible command-line
5436 # XXX - does 64-bit SPARC require -fPIC?
5438 V_SHLIB_CCOPT="$V_SHLIB_CCOPT -fpic"
5440 V_SHLIB_OPT="-shared"
5441 V_SONAME_OPT="-Wl,-soname,"
5447 V_SHLIB_OPT="-b"
5450 # By default, directories specified with -L
5451 # are added to the run-time search path, so
5452 # we don't add them in pcap-config.
5462 V_SHLIB_OPT="-shared"
5463 V_SONAME_OPT="-soname "
5467 V_SHLIB_CCOPT="$V_SHLIB_CCOPT -Kpic"
5469 V_SHLIB_OPT="-G"
5471 # Sun/Oracle's C compiler, GCC, and GCC-compatible
5472 # compilers support -Wl,{comma-separated list of options},
5476 V_SONAME_OPT="-Wl,-h,"
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5531 if test ! -z "$ac_cv_lbl_inline" ; then
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_inline" >&5
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5539 cat >>confdefs.h <<_ACEOF
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load_n" >&5
5551 # -----------------------
5555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5556 rm -f conftest.$ac_objext conftest$ac_exeext
5562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5566 if test -s conftest.err; then
5567 grep -v '^ *+' conftest.err >conftest.er1
5568 cat conftest.er1 >&5
5569 mv -f conftest.er1 conftest.err
5571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5573 test -z "$ac_c_werror_flag" ||
5574 test ! -s conftest.err
5575 } && test -s conftest$ac_exeext && {
5577 test -x conftest$ac_exeext
5590 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
5595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5615 rm -f core conftest.err conftest.$ac_objext \
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_have___atomic_load_n" >&5
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_store_n" >&5
5632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5651 rm -f core conftest.err conftest.$ac_objext \
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_have___atomic_store_n" >&5
5666 # Check whether --enable-largefile was given.
5673 …{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large …
5683 # so use the C compiler's -n32 option if that helps.
5684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5686 #include <sys/types.h>
5687 /* Check that off_t can represent 2**63 - 1 correctly.
5691 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5694 ? 1 : -1];
5706 rm -f core conftest.err conftest.$ac_objext
5707 CC="$CC -n32"
5709 ac_cv_sys_largefile_CC=' -n32'; break
5711 rm -f core conftest.err conftest.$ac_objext
5715 rm -f conftest.$ac_ext
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5724 …{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large fil…
5730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5732 #include <sys/types.h>
5733 /* Check that off_t can represent 2**63 - 1 correctly.
5737 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5740 ? 1 : -1];
5752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5756 #include <sys/types.h>
5757 /* Check that off_t can represent 2**63 - 1 correctly.
5761 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5764 ? 1 : -1];
5776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5786 cat >>confdefs.h <<_ACEOF
5791 rm -rf conftest*
5793 …{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >…
5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5801 #include <sys/types.h>
5802 /* Check that off_t can represent 2**63 - 1 correctly.
5806 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5809 ? 1 : -1];
5821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5825 #include <sys/types.h>
5826 /* Check that off_t can represent 2**63 - 1 correctly.
5830 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5833 ? 1 : -1];
5845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5855 cat >>confdefs.h <<_ACEOF
5860 rm -rf conftest*
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large file…
5872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5874 #include <sys/types.h> /* for off_t */
5875 #include <stdio.h>
5888 rm -f core conftest.err conftest.$ac_objext \
5890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5893 #include <sys/types.h> /* for off_t */
5894 #include <stdio.h>
5907 rm -f core conftest.err conftest.$ac_objext \
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
5918 cat >>confdefs.h <<_ACEOF
5923 rm -rf conftest*
5940 cat >>confdefs.h <<_ACEOF
5952 cat >>confdefs.h <<_ACEOF
5971 CFLAGS="$CFLAGS -D_BSD_SOURCE"
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpass in -lbsd" >&5
5976 $as_echo_n "checking for getpass in -lbsd... " >&6; }
5981 LIBS="-lbsd $LIBS"
5982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6005 rm -f core conftest.err conftest.$ac_objext \
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getpass" >&5
6012 cat >>confdefs.h <<_ACEOF
6016 LIBS="-lbsd $LIBS"
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI ioctl definitions" >&5
6029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6035 # include <sys/types.h>
6036 # include <sys/time.h>
6037 # include <sys/ioctl.h>
6039 # include <sys/ioccom.h>
6057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_gcc_fixincludes" >&5
6078 cat >>confdefs.h <<_ACEOF
6090 # POSIX-compliant strerror_r() or a GNU strerror_r()?
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r is GNU-style" >&5
6093 $as_echo_n "checking whether strerror_r is GNU-style... " >&6; }
6094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6098 #include <string.h>
6100 /* Define it GNU-style; that will cause an error if it's not GNU-style */
6113 # GNU-style
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6140 cat >>confdefs.h <<_ACEOF
6158 cat >>confdefs.h <<_ACEOF
6190 cat >>confdefs.h <<_ACEOF
6213 cat >>confdefs.h <<_ACEOF
6236 cat >>confdefs.h <<_ACEOF
6259 cat >>confdefs.h <<_ACEOF
6284 cat >>confdefs.h <<_ACEOF
6299 #include <strings.h>
6314 # "getaddrinfo()-ish function".
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lsocket" >&5
6331 $as_echo_n "checking for getaddrinfo in -lsocket... " >&6; }
6336 LIBS="-lsocket -lnsl $LIBS"
6337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6360 rm -f core conftest.err conftest.$ac_objext \
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getaddrinfo" >&5
6371 LIBS="-lsocket -lnsl $LIBS"
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lnetwork" >&5
6380 $as_echo_n "checking for getaddrinfo in -lnetwork... " >&6; }
6385 LIBS="-lnetwork $LIBS"
6386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6409 rm -f core conftest.err conftest.$ac_objext \
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_getaddrinfo" >&5
6420 LIBS="-lnetwork $LIBS"
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recvmsg in -lxnet" >&5
6440 $as_echo_n "checking for recvmsg in -lxnet... " >&6; }
6445 LIBS="-lxnet -lsocket -lnsl $LIBS"
6446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469 rm -f core conftest.err conftest.$ac_objext \
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_recvmsg" >&5
6478 # Yes - link with it as well.
6480 LIBS="-lxnet $LIBS"
6487 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing putmsg" >&5
6494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6513 if test -z "$ac_lib"; then
6516 ac_res=-l$ac_lib
6517 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6522 rm -f core conftest.err conftest.$ac_objext \
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_putmsg" >&5
6550 # thread-specific data on many platforms, but doesn't use it on
6559 ac_fn_c_check_decl "$LINENO" "getnetbyname_r" "ac_cv_have_decl_getnetbyname_r" "#include <netdb.h>
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getnetbyname_r()" >&5
6565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567 #include <netdb.h>
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris/IRIX getnetbyname_r()" >&5
6598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6600 #include <netdb.h>
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX getnetbyname_r()" >&5
6629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6631 #include <netdb.h>
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6659 rm -f core conftest.err conftest.$ac_objext \
6663 rm -f core conftest.err conftest.$ac_objext \
6667 rm -f core conftest.err conftest.$ac_objext \
6677 # thread-specific data on many platforms, but doesn't use it on
6686 ac_fn_c_check_decl "$LINENO" "getprotobyname_r" "ac_cv_have_decl_getprotobyname_r" "#include <netdb…
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getprotobyname_r()" >&5
6692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6694 #include <netdb.h>
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris/IRIX getprotobyname_r()" >&5
6724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6726 #include <netdb.h>
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX getprotobyname_r()" >&5
6755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6757 #include <netdb.h>
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6785 rm -f core conftest.err conftest.$ac_objext \
6789 rm -f core conftest.err conftest.$ac_objext \
6793 rm -f core conftest.err conftest.$ac_objext \
6815 cat >>confdefs.h <<_ACEOF
6830 #include <net/ethernet.h>
6857 #include <netinet/ether.h>
6886 #include <sys/ethernet.h>
6917 #include <arpa/inet.h>
6936 # <netinet/in.h>, and we always include it with
6940 # and the headers we include before it, or if we do but
6949 #include <sys/types.h>
6950 #include <sys/socket.h>
6951 #include <net/if.h>
6952 #include <netinet/in.h>
6953 #include <netinet/if_ether.h>
6978 # Do we have "struct ether_addr" if we include
6982 #include <sys/types.h>
6983 #include <sys/socket.h>
6984 #include <net/if.h>
6985 #include <netinet/in.h>
6986 #include <netinet/if_ether.h>
6991 cat >>confdefs.h <<_ACEOF
7022 # No - do we have it in -lpthreads?
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
7025 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
7030 LIBS="-lpthreads $LIBS"
7031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7054 rm -f core conftest.err conftest.$ac_objext \
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
7063 # Yes - add -lpthreads.
7066 PTHREAD_LIBS="$PTHREAD_LIBS -lpthreads"
7071 # No - do we have it in -lpthread?
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7074 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7079 LIBS="-lpthread $LIBS"
7080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7103 rm -f core conftest.err conftest.$ac_objext \
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7112 # Yes - add -lpthread.
7115 PTHREAD_LIBS="$PTHREAD_LIBS -lpthread"
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-protochain option is specified" >&5
7146 $as_echo_n "checking if --disable-protochain option is specified... " >&6; }
7147 # Check whether --enable-protochain was given.
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_protochain}" >&5
7174 # Check whether --with-pcap was given.
7179 if test ! -z "$with_pcap" ; then
7190 cat >>confdefs.h <<_ACEOF
7201 # I.e., is it a header for an LBL/BSD-style capture
7211 # requires that various BSD-style integer types
7215 # doesn't include it but does use struct timeval
7228 # and net/bpf.h doesn't necessarily include all
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/bpf.h defines BIOCSETIF" >&5
7236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7239 #include <sys/types.h>
7240 #include <sys/time.h>
7241 #include <sys/ioctl.h>
7242 #include <sys/socket.h>
7244 #include <sys/ioccom.h>
7246 #include <net/bpf.h>
7247 #include <net/if.h>
7262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_bpf_h_defines_biocsetif" >&5
7273 cat >>confdefs.h <<_ACEOF
7286 cat >>confdefs.h <<_ACEOF
7299 cat >>confdefs.h <<_ACEOF
7311 cat >>confdefs.h <<_ACEOF
7362 # Pre-SunOS 4.x non-STREAMS NIT.
7372 # DLPI on pre-Solaris 11 SunOS 5, HP-UX, possibly others.
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine packet capture interface" >&5
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: (see the INSTALL.md file for more info)" >&5
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking packet capture type" >&5
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $V_PCAP" >&5
7398 # Do we have pkg-config?
7408 if test -n "$ac_tool_prefix"; then
7409 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7410 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7425 test -z "$as_dir" && as_dir=.
7429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7440 if test -n "$PKG_CONFIG"; then
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7450 if test -z "$ac_cv_path_PKG_CONFIG"; then
7452 # Extract the first word of "pkg-config", so it can be a program name with args.
7453 set dummy pkg-config; ac_word=$2
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7468 test -z "$as_dir" && as_dir=.
7472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7483 if test -n "$ac_pt_PKG_CONFIG"; then
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet"…
7507 if test -n "$PKG_CONFIG"; then
7509 …{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version…
7510 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7511 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7540 test -z "$as_dir" && as_dir=.
7544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7555 if test -n "$BREW"; then
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BREW" >&5
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7566 # Solaris pkg-config is annoying. For at least one package (D-Bus, I'm
7567 # looking at *you*!), there are separate include files for 32-bit and
7568 # 64-bit builds (I guess using "unsigned long long" as a 64-bit integer
7569 # type on a 64-bit build is like crossing the beams or soething), and
7570 # there are two separate .pc files, so if we're doing a 32-bit build we
7572 # we're doing a 64-bit build we should make sure we look in
7578 if test "$ac_cv_sizeof_void_p" -eq 8; then
7580 # 64-bit build. If the path is empty, set it to
7586 if test -z "$PKG_CONFIG_PATH"; then
7592 elif test ! -z `echo "$PKG_CONFIG_PATH" | grep "/usr/lib/pkgconfig"`; then
7606 elif test "$ac_cv_sizeof_void_p" -eq 4; then
7608 # 32-bit build. If /usr/amd64/lib/pkgconfig appears
7611 if test ! -z `echo "$PKG_CONFIG_PATH" | grep "/usr/lib/amd64/pkgconfig"`; then
7635 cat >>confdefs.h <<_ACEOF
7646 # Note: The existence of /usr/include/libdlpi.h does not mean it is the
7649 # Due to a gcc bug, the default search path for 32-bit libraries does
7650 # not include /lib, we add it explicitly here.
7653 # libdlpi will have to add "-L/lib" option to "configure".
7656 LDFLAGS="$LIBS -L/lib"
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlpi_walk in -ldlpi" >&5
7658 $as_echo_n "checking for dlpi_walk in -ldlpi... " >&6; }
7663 LIBS="-ldlpi $LIBS"
7664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7687 rm -f core conftest.err conftest.$ac_objext \
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
7695 LIBS="-ldlpi $LIBS"
7696 LIBS_STATIC="-ldlpi $LIBS_STATIC"
7697 LIBS_PRIVATE="-ldlpi $LIBS_PRIVATE"
7702 # common functions used by pcap-[dlpi,libdlpi].c
7704 PLATFORM_C_SRC="pcap-libdlpi.c dlpisubs.c"
7715 # common functions used by pcap-[dlpi,libdlpi].c
7717 PLATFORM_C_SRC="pcap-dlpi.c dlpisubs.c"
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/dlpi.h> is usable" >&5
7732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7735 #include <sys/types.h>
7736 #include <sys/time.h>
7737 #include <sys/dlpi.h>
7752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_dlpi_usable" >&5
7758 …as_fn_error $? "<sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" "$…
7768 #include <sys/types.h>
7769 #include <sys/dlpi.h>
7774 cat >>confdefs.h <<_ACEOF
7787 PLATFORM_C_SRC="pcap-enet.c"
7794 PLATFORM_CXX_SRC="pcap-haiku.cpp"
7804 cat >>confdefs.h <<_ACEOF
7818 PLATFORM_C_SRC="pcap-linux.c"
7826 #include <sys/socket.h>
7827 #include <linux/if.h>
7828 #include <linux/types.h>
7832 cat >>confdefs.h <<_ACEOF
7844 # short-lived, and version 1 is source and binary
7851 # Check whether --with-libnl was given.
7861 # Check for libnl-genl-3.0 with pkg-config.
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnl-genl-3.0 with pkg-config" >&5
7867 $as_echo_n "checking for libnl-genl-3.0 with pkg-config... " >&6; }
7869 if test -n "$PKG_CONFIG" && \
7870 …{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-genl-3.0\"…
7871 ($PKG_CONFIG --exists --print-errors "libnl-genl-3.0") 2>&5
7873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7880 if test -n "$LIBNL_CFLAGS"; then
7882 elif test -n "$PKG_CONFIG"; then
7884 if test -n "$PKG_CONFIG" && \
7885 …{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-genl-3.0\"…
7886 ($PKG_CONFIG --exists --print-errors "libnl-genl-3.0") 2>&5
7888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7890 pkg_cv_LIBNL_CFLAGS=`$PKG_CONFIG --cflags "libnl-genl-3.0" 2>/dev/null`
7898 if test -n "$LIBNL_LIBS"; then
7900 elif test -n "$PKG_CONFIG"; then
7902 if test -n "$PKG_CONFIG" && \
7903 …{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-genl-3.0\"…
7904 ($PKG_CONFIG --exists --print-errors "libnl-genl-3.0") 2>&5
7906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7908 pkg_cv_LIBNL_LIBS=`$PKG_CONFIG --libs "libnl-genl-3.0" 2>/dev/null`
7916 if test -n "$LIBNL_LIBS_STATIC"; then
7918 elif test -n "$PKG_CONFIG"; then
7920 if test -n "$PKG_CONFIG" && \
7921 …{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-genl-3.0\"…
7922 ($PKG_CONFIG --exists --print-errors "libnl-genl-3.0") 2>&5
7924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7926 pkg_cv_LIBNL_LIBS_STATIC=`$PKG_CONFIG --libs --static "libnl-genl-3.0" 2>/dev/null`
7939 # That failed - report an error.
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5
7944 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7950 … LIBNL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnl-genl-3.0" 2>&1`
7952 LIBNL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnl-genl-3.0" 2>&1`
7957 as_fn_error $? "Package requirements (libnl-genl-3.0) were not met:
7962 installed software in a non-standard prefix.
7966 and LIBNL_LIBS to avoid the need to call pkg-config.
7967 See the pkg-config man page for more details." "$LINENO" 5
7970 # We don't have pkg-config, so it didn't work.
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found (pkg-config not found)" >&5
7973 $as_echo "not found (pkg-config not found)" >&6; }
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
7988 REQUIRES_PRIVATE="libnl-genl-3.0 $REQUIRES_PRIVATE"
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8007 # OK, either we don't have pkg-config or there
8013 incdir=-I/usr/include/libnl3
8018 if test -d $withval; then
8019 libnldir=-L${withval}/lib
8020 incdir=-I${withval}/include
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_alloc in -lnl-3" >&5
8026 $as_echo_n "checking for nl_socket_alloc in -lnl-3... " >&6; }
8031 LIBS="-lnl-3 ${incdir} ${libnldir} -lnl-genl-3 -lnl-3 $LIBS"
8032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8055 rm -f core conftest.err conftest.$ac_objext \
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_3_nl_socket_alloc" >&5
8066 ADDITIONAL_LIBS="${libnldir} -lnl-genl-3 -lnl-3 $ADDITIONAL_LIBS"
8067 ADDITIONAL_LIBS_STATIC="${libnldir} -lnl-genl-3 -lnl-3 $ADDITIONAL_LIBS_STATIC"
8068 LIBS_PRIVATE="${libnldir} -lnl-genl-3 -lnl-3 $LIBS_PRIVATE"
8099 #include <sys/types.h>
8100 #include <linux/if_packet.h>
8105 cat >>confdefs.h <<_ACEOF
8118 PLATFORM_C_SRC="pcap-bpf.c"
8121 # Check whether we have the *BSD-style ioctls.
8127 cat >>confdefs.h <<_ACEOF
8140 #include <sys/types.h>
8141 #include <sys/ioctl.h>
8143 #include <sys/ioccom.h>
8145 #include <net/bpf.h>
8150 cat >>confdefs.h <<_ACEOF
8163 PLATFORM_C_SRC="pcap-pf.c"
8170 PLATFORM_C_SRC="pcap-snit.c"
8177 PLATFORM_C_SRC="pcap-snoop.c"
8182 # --with-pcap=dag is the only way to get here, and it means
8185 V_DEFS="$V_DEFS -DDAG_ONLY"
8186 PLATFORM_C_SRC="pcap-dag.c"
8192 # --with-pcap=dpdk is the only way to get here, and it means
8195 V_DEFS="$V_DEFS -DDPDK_ONLY"
8196 PLATFORM_C_SRC="pcap-dpdk.c"
8202 # --with-pcap=septel is the only way to get here, and it means
8205 V_DEFS="$V_DEFS -DSEPTEL_ONLY"
8206 PLATFORM_C_SRC="pcap-septel.c"
8212 # --with-pcap=snf is the only way to get here, and it means
8215 V_DEFS="$V_DEFS -DSNF_ONLY"
8216 PLATFORM_C_SRC="pcap-snf.c"
8224 PLATFORM_C_SRC="pcap-null.c"
8248 PLATFORM_C_SRC="$PLATFORM_C_SRC fad-getad.c"
8253 # We don't have the header - give up.
8254 # XXX - we could also fall back on some other
8275 # getifaddrs(), but in -lsocket, not in -lxnet, so we
8276 # won't find it if we link with -lxnet, which we want
8284 # avoids a not-all-that-useful middleman.)
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have SIOCGLIFCONF" >&5
8291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8293 #include <sys/param.h>
8294 #include <sys/file.h>
8295 #include <sys/ioctl.h>
8296 #include <sys/socket.h>
8297 #include <sys/sockio.h>
8311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_have_siocglifconf" >&5
8317 PLATFORM_C_SRC="$PLATFORM_C_SRC fad-glifc.c"
8319 PLATFORM_C_SRC="$PLATFORM_C_SRC fad-gifc.c"
8332 cat >>confdefs.h <<_ACEOF
8342 …{ $as_echo "$as_me:${as_lineno-$LINENO}: no hardware timestamp support implemented for $host_os" >…
8351 #include <sys/types.h>
8352 #include <sys/socket.h>
8357 cat >>confdefs.h <<_ACEOF
8365 # Check whether --enable-ipv6 was given.
8384 # Check whether --with-dag was given.
8404 # User requested DAG-only libpcap, so we'd better have
8408 # User requested something-else-only pcap, so they don't
8422 # Check whether --with-dag-includes was given.
8433 # Check whether --with-dag-libraries was given.
8446 if test -z "$dag_root"; then
8450 if test -z "$dag_include_dir"; then
8451 dag_include_dir="$dag_root/include"
8454 if test -z "$dag_lib_dir"; then
8459 if test -d "$dag_lib_dir/$host"
8470 CFLAGS="$CFLAGS -I$dag_include_dir"
8475 cat >>confdefs.h <<_ACEOF
8491 V_INCLS="$V_INCLS -I$dag_include_dir"
8494 MODULE_C_SRC="$MODULE_C_SRC pcap-dag.c"
8498 # Don't need to save and restore LIBS to prevent -ldag being
8499 # included if there's a found-action (arg 3).
8505 LDFLAGS="-L$dag_lib_dir"
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_attach_stream in -ldag" >&5
8507 $as_echo_n "checking for dag_attach_stream in -ldag... " >&6; }
8512 LIBS="-ldag $LIBS"
8513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8536 rm -f core conftest.err conftest.$ac_objext \
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_attach_stream" >&5
8549 ADDITIONAL_LIBS="-L$dag_lib_dir $ADDITIONAL_LIBS -ldag -ldagconf"
8550 ADDITIONAL_LIBS_STATIC="-L$dag_lib_dir $ADDITIONAL_LIBS_STATIC -ldag -ldagconf"
8551 LIBS_PRIVATE="-L$dag_lib_dir $LIBS_PRIVATE -ldag -ldagconf"
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_attach_stream64 in -ldag" >&5
8558 $as_echo_n "checking for dag_attach_stream64 in -ldag... " >&6; }
8563 LIBS="-ldag $LIBS"
8564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8587 rm -f core conftest.err conftest.$ac_objext \
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_attach_stream64" >&5
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_erf_types in -ldag" >&5
8600 $as_echo_n "checking for dag_get_erf_types in -ldag... " >&6; }
8605 LIBS="-ldag $LIBS"
8606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8629 rm -f core conftest.err conftest.$ac_objext \
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_erf_types" >&5
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_stream_erf_types in -ldag" >&5
8643 $as_echo_n "checking for dag_get_stream_erf_types in -ldag... " >&6; }
8648 LIBS="-ldag $LIBS"
8649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8672 rm -f core conftest.err conftest.$ac_objext \
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5
8705 LIBS="$LIBS -ldag -ldagconf"
8706 LDFLAGS="$LDFLAGS -L$dag_lib_dir"
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vdag_set_device_info in -lvdag" >&5
8708 $as_echo_n "checking for vdag_set_device_info in -lvdag... " >&6; }
8713 LIBS="-lvdag $LIBS"
8714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8737 rm -f core conftest.err conftest.$ac_objext \
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vdag_vdag_set_device_info" >&5
8774 …as_fn_error $? "DAG support requested with --with-pcap=dag, but the DAG headers weren't found at $…
8779 …as_fn_error $? "DAG support requested with --with-dag, but the DAG headers weren't found at $dag_i…
8786 # Check whether --with-septel was given.
8804 # User requested Septel-only libpcap, so we'd better have
8808 # User requested something-else-only pcap, so they don't
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Septel API headers" >&5
8828 if test -z "$septel_root"; then
8835 if test -r "$septel_include_dir/msg.h"; then
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($septel_include_dir)" >&5
8843 V_INCLS="$V_INCLS -I$septel_include_dir"
8848 MODULE_C_SRC="$MODULE_C_SRC pcap-septel.c"
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8861 …as_fn_error $? "Septel support requested with --with-pcap=septel, but the Septel headers weren't f…
8866 …as_fn_error $? "Septel support requested with --with-septel, but the Septel headers weren't found …
8873 # Check whether --with-snf was given.
8893 # User requested Sniffer-only libpcap, so we'd better have
8897 # User requested something-else-only pcap, so they don't
8911 # Check whether --with-snf-includes was given.
8922 # Check whether --with-snf-libraries was given.
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Myricom Sniffer API" >&5
8939 if test -z "$snf_root"; then
8943 if test -z "$snf_include_dir"; then
8944 snf_include_dir="$snf_root/include"
8947 if test -z "$snf_lib_dir"; then
8952 if test -d "$snf_lib_dir/$host"
8958 if test -f "$snf_include_dir/snf.h"; then
8965 LDFLAGS="$LDFLAGS -L$snf_lib_dir"
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snf_init in -lsnf" >&5
8967 $as_echo_n "checking for snf_init in -lsnf... " >&6; }
8972 LIBS="-lsnf $LIBS"
8973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8996 rm -f core conftest.err conftest.$ac_objext \
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_snf_snf_init" >&5
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($snf_root)" >&5
9020 V_INCLS="$V_INCLS -I$snf_include_dir"
9021 ADDITIONAL_LIBS="$ADDITIONAL_LIBS -L$snf_lib_dir -lsnf"
9022 ADDITIONAL_LIBS_STATIC="$ADDITIONAL_LIBS_STATIC -L$snf_lib_dir -lsnf"
9023 LIBS_PRIVATE="$LIBS_PRIVATE -L$snf_lib_dir -lsnf"
9026 MODULE_C_SRC="$MODULE_C_SRC pcap-snf.c"
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9039 …as_fn_error $? "Myricom Sniffer support requested with --with-pcap=snf, but the Sniffer headers we…
9043 …as_fn_error $? "Myricom Sniffer support requested with --with-snf, but the Sniffer headers weren't…
9050 # Check whether --with-turbocap was given.
9070 # User requested something-else-only pcap, so they don't
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TurboCap is supported" >&5
9094 if test ! -z "$turbocap_root"; then
9095 TURBOCAP_CFLAGS="-I$turbocap_root/include"
9096 TURBOCAP_LDFLAGS="-L$turbocap_root/lib"
9101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9104 #include <TcApi.h>
9121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9132 MODULE_C_SRC="$MODULE_C_SRC pcap-tc.c"
9134 ADDITIONAL_LIBS="$ADDITIONAL_LIBS $TURBOCAP_LDFLAGS -lTcApi -lpthread -lstdc++"
9135 ADDITIONAL_LIBS_STATIC="$ADDITIONAL_LIBS_STATIC $TURBOCAP_LDFLAGS -lTcApi -lpthread -lstdc++"
9136 LIBS_PRIVATE="$LIBS_PRIVATE $TURBOCAP_LDFLAGS -lTcApi -lpthread -lstdc++"
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9147 …as_fn_error $? "TurboCap support requested with --with-turbocap, but the TurboCap headers weren't …
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable remote packet capture" >&5
9154 # Check whether --enable-remote was given.
9162 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9164 …{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Remote packet capture may expose libpcap-based a…
9165 $as_echo "$as_me: WARNING: Remote packet capture may expose libpcap-based applications" >&2;}
9166 …{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to attacks by malicious remote capture servers!"…
9184 # No. Do we have it in -lcrypt?
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
9187 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
9192 LIBS="-lcrypt $LIBS"
9193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9216 rm -f core conftest.err conftest.$ac_objext \
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
9225 # Yes; add -lcrypt to the libraries for rpcapd.
9227 RPCAPD_LIBS="$RPCAPD_LIBS -lcrypt"
9246 cat >>confdefs.h <<_ACEOF
9258 #include \"ftmacros.h\"
9259 #include <sys/socket.h>
9264 cat >>confdefs.h <<_ACEOF
9272 #include \"ftmacros.h\"
9273 #include <sys/socket.h>
9278 cat >>confdefs.h <<_ACEOF
9290 # First, try looking for it with pkg-config, if we have it.
9292 # Homebrew's pkg-config does not, by default, look for
9293 # pkg-config files for packages it has installed.
9295 # dumped in package-specific directories whose paths are
9296 # not only package-specific but package-version-specific.
9299 # PKG_CONFIG_PATH from "brew --env openssl" and add that
9304 # That's the nice thing about Homebrew - it makes things easier!
9308 if test -n "$BREW"; then
9309 openssl_pkgconfig_dir=`$BREW --env --plain openssl | sed -n 's/PKG_CONFIG_PATH: //p'`
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl with pkg-config" >&5
9316 $as_echo_n "checking for openssl with pkg-config... " >&6; }
9318 if test -n "$PKG_CONFIG" && \
9319 …{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
9320 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
9322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9329 if test -n "$OPENSSL_CFLAGS"; then
9331 elif test -n "$PKG_CONFIG"; then
9333 if test -n "$PKG_CONFIG" && \
9334 …{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
9335 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
9337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9339 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
9347 if test -n "$OPENSSL_LIBS"; then
9349 elif test -n "$PKG_CONFIG"; then
9351 if test -n "$PKG_CONFIG" && \
9352 …{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
9353 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
9355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9357 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
9365 if test -n "$OPENSSL_LIBS_STATIC"; then
9367 elif test -n "$PKG_CONFIG"; then
9369 if test -n "$PKG_CONFIG" && \
9370 …{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
9371 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
9373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9375 pkg_cv_OPENSSL_LIBS_STATIC=`$PKG_CONFIG --libs --static "openssl" 2>/dev/null`
9388 # That failed - report an error.
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5
9393 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9399 … OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1`
9401 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1`
9411 installed software in a non-standard prefix.
9415 and OPENSSL_LIBS to avoid the need to call pkg-config.
9416 See the pkg-config man page for more details." "$LINENO" 5
9419 # We don't have pkg-config, so it didn't work.
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found (pkg-config not found)" >&5
9422 $as_echo "not found (pkg-config not found)" >&6; }
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9456 if test "x$HAVE_OPENSSL" != "xyes" -a -n "$BREW"; then
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl in Homebrew" >&5
9461 # $BREW --prefix --installed <formula>
9468 if $BREW --prefix --installed openssl >/dev/null 2>&1; then
9470 # Yes. Get the include directory and library
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9478 openssl_path=`$BREW --prefix openssl`
9479 OPENSSL_CFLAGS="-I$openssl_path/include"
9480 OPENSSL_LIBS="-L$openssl_path/lib -lssl -lcrypto"
9481 OPENSSL_LIBS_STATIC="-L$openssl_path/lib -lssl -lcrypto"
9482 OPENSSL_LIBS_PRIVATE="-L$openssl_path/lib -lssl -lcrypto"
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9490 # If it wasn't found, and /usr/local/include and /usr/local/lib
9496 # We include the standard include file to 1) make sure that
9503 if test "x$HAVE_OPENSSL" != "xyes" -a -d "/usr/local/include" -a -d "/usr/local/lib"; then
9509 CFLAGS="$CFLAGS -I/usr/local/include"
9510 LIBS="$LIBS -L/usr/local/lib -lssl -lcrypto"
9511 …{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have OpenSSL/libressl in /usr/local t…
9513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9516 #include <openssl/ssl.h>
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9534 OPENSSL_CFLAGS="-I/usr/local/include"
9535 OPENSSL_LIBS="-L/usr/local/lib -lssl -lcrypto"
9536 OPENSSL_LIBS_STATIC="-L/usr/local/lib -lssl -lcrypto"
9537 OPENSSL_LIBS_PRIVATE="-L/usr/local/lib -lssl -lcrypto"
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9543 rm -f core conftest.err conftest.$ac_objext \
9555 # We include the standard include file to 1) make sure that
9568 LIBS="$LIBS -lssl -lcrypto"
9569 …{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a system OpenSSL/libressl that w…
9571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9574 #include <openssl/ssl.h>
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9592 OPENSSL_LIBS="-lssl -lcrypto"
9593 OPENSSL_LIBS_STATIC="-lssl -lcrypto"
9594 OPENSSL_LIBS_PRIVATE="-lssl -lcrypto"
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9600 rm -f core conftest.err conftest.$ac_objext \
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: OpenSSL not found" >&5
9629 REMOTE_C_SRC="$REMOTE_C_SRC pcap-new.c pcap-rpcap.c rpcap-protocol.c sockutils.c sslutils.c"
9630 BUILD_RPCAPD=build-rpcapd
9631 INSTALL_RPCAPD=install-rpcapd
9633 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build optimizer debugging code" >&5
9640 # Check whether --enable-optimizer-dbg was given.
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_optimizer_dbg-no}" >&5
9651 $as_echo "${enable_optimizer_dbg-no}" >&6; }
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build parser debugging code" >&5
9655 # Check whether --enable-yydebug was given.
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_yydebug-no}" >&5
9666 $as_echo "${enable_yydebug-no}" >&6; }
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9680 if test -n "$LEX"; then
9687 test -z "$as_dir" && as_dir=.
9691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9701 if test -n "$LEX"; then
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9710 test -n "$LEX" && break
9712 test -n "$LEX" || LEX=":"
9715 cat >conftest.l <<_ACEOF
9740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
9752 if test -f lex.yy.c; then
9754 elif test -f lexyy.c; then
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
9764 if test -z "${LEXLIB+set}"; then
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
9773 for ac_lib in '' -lfl -ll; do
9775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9777 `cat $LEX_OUTPUT_ROOT.c`
9782 rm -f core conftest.err conftest.$ac_objext \
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
9801 # default is implementation-dependent. Figure out which it is, since
9806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9810 `cat $LEX_OUTPUT_ROOT.c`
9815 rm -f core conftest.err conftest.$ac_objext \
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
9827 rm -f conftest.l $LEX_OUTPUT_ROOT.c
9835 # Make sure {f}lex supports the -P, --header-file, and --nounput flags
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capable lex" >&5
9843 if $LEX -P pcap_ --header-file=/dev/null --nounput -t $srcdir/scanner.l > /dev/null 2>&1; then
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_cv_capable_lex" >&5
9854 If a suitable version of Lex/Flex is available as a non-standard command
9864 # If it's Bison, we do not want -y, as 1) we will be using -o to cause
9866 # it to issue warnings about stuff not supported by POSIX YACC - we
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9883 if test -n "$BISON_BYACC"; then
9890 test -z "$as_dir" && as_dir=.
9894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9904 if test -n "$BISON_BYACC"; then
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON_BYACC" >&5
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9913 test -n "$BISON_BYACC" && break
9921 # "%pure-parser".
9923 bison_major_version=`$BISON_BYACC -V | sed -n 's/.* \([1-9][0-9]*\)\.[0-9][0-9.]*/\1/p'`
9924 bison_minor_version=`$BISON_BYACC -V | sed -n 's/.* [1-9][0-9]*\.\([0-9]+\).*/\1/p'`
9925 if test "$bison_major_version" -lt 2 -o \
9926 \( "$bison_major_version" -eq 2 -a "$bison_major_version" -lt 4 \)
9928 REENTRANT_PARSER="%pure-parser"
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9946 if test -n "$BISON_BYACC"; then
9953 test -z "$as_dir" && as_dir=.
9957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9967 if test -n "$BISON_BYACC"; then
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON_BYACC" >&5
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9976 test -n "$BISON_BYACC" && break
9983 # Run it with "-V"; that succeeds and reports the
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capable yacc" >&5
9997 if $BISON_BYACC -V >/dev/null 2>&1; then
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_cv_capable_yacc" >&5
10021 # "%pure-parser".
10023 REENTRANT_PARSER="%pure-parser"
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pseexe" >&5
10071 if test -f $pseexe ; then
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10074 LIBS="-I:$pseexe"
10080 # If we're using BPF, we need "-lodm" and "-lcfg", as
10083 LIBS="-lodm -lcfg"
10090 V_CCOPT="$V_CCOPT -fno-common"
10091 # Check whether --enable-universal was given.
10099 darwin[0-7].*)
10101 # Pre-Tiger. Build only for 32-bit PowerPC; no
10109 # libraries and executables for 32-bit PowerPC
10110 # and 64-bit PowerPC, with 32-bit PowerPC first.
10119 V_LIB_CCOPT_FAT="-arch ppc -arch ppc64"
10120 V_LIB_LDFLAGS_FAT="-arch ppc -arch ppc64"
10121 V_PROG_CCOPT_FAT="-arch ppc -arch ppc64"
10122 V_PROG_LDFLAGS_FAT="-arch ppc -arch ppc64"
10128 # to x86-64 support. Build libraries and
10129 # executables for 32-bit PowerPC, 64-bit
10130 # PowerPC, and 32-bit x86, with 32-bit PowerPC
10139 V_LIB_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386"
10140 V_LIB_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386"
10141 V_PROG_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386"
10142 V_PROG_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386"
10147 # All other Tiger, so subsequent to x86-64
10149 # 32-bit PowerPC, 64-bit PowerPC, 32-bit x86,
10150 # and x86-64, with 32-bit PowerPC first. (I'm
10153 V_LIB_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
10154 V_LIB_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
10155 V_PROG_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
10156 V_PROG_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
10161 # Leopard. Build libraries for 32-bit PowerPC,
10162 # 64-bit PowerPC, 32-bit x86, and x86-64, with
10163 # 32-bit PowerPC first, and build executables
10164 # for 32-bit x86 and 32-bit PowerPC, with 32-bit
10167 V_LIB_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
10168 V_LIB_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
10169 V_PROG_CCOPT_FAT="-arch i386 -arch ppc"
10170 V_PROG_LDFLAGS_FAT="-arch i386 -arch ppc"
10175 # Snow Leopard. Build libraries for x86-64,
10176 # 32-bit x86, and 32-bit PowerPC, with x86-64
10177 # first, and build executables for x86-64 and
10178 # 32-bit x86, with x86-64 first. (That's what
10184 V_LIB_CCOPT_FAT="-arch x86_64 -arch i386 -arch ppc"
10185 V_LIB_LDFLAGS_FAT="-arch x86_64 -arch i386 -arch ppc"
10186 V_PROG_CCOPT_FAT="-arch x86_64 -arch i386"
10187 V_PROG_LDFLAGS_FAT="-arch x86_64 -arch i386"
10190 darwin1[1-8]*)
10192 # Post-Snow Leopard, pre-Catalina. Build
10193 # libraries for x86-64 and 32-bit x86, with
10194 # x86-64 first, and build executables only for
10195 # x86-64. (That's what Apple does.) This
10200 # /usr/include headers if they want to build
10203 …{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building for 32-bit x86 is supported" >&5
10204 $as_echo_n "checking whether building for 32-bit x86 is supported... " >&6; }
10210 CFLAGS="$CFLAGS -arch i386"
10211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10226 V_LIB_CCOPT_FAT="-arch x86_64"
10227 V_LIB_LDFLAGS_FAT="-arch x86_64"
10231 # to install only the libs for 64-bit
10232 # x86 - at least that's what Brew does:
10233 # only configure 32-bit builds if we
10237 V_LIB_CCOPT_FAT="$V_LIB_CCOPT_FAT -arch i386"
10238 V_LIB_LDFLAGS_FAT="$V_LIB_LDFLAGS_FAT -arch i386"
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10245 V_LIB_CCOPT_FAT="-arch x86_64"
10246 V_LIB_LDFLAGS_FAT="-arch x86_64"
10252 # /usr/include headers to get
10253 # 32-bit x86 builds to work.
10255 …ineno-$LINENO}: WARNING: Compiling for 32-bit x86 gives an error; try installing the command-line …
10256 …RNING: Compiling for 32-bit x86 gives an error; try installing the command-line tools and, after t…
10261 # Pre-Mojave; the command-line
10263 # enable 32-bit x86 builds.
10265 …{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiling for 32-bit x86 gives an error; try ins…
10266 $as_echo "$as_me: WARNING: Compiling for 32-bit x86 gives an error; try installing the command-line…
10271 rm -f core conftest.err conftest.$ac_objext \
10283 # only for x86-64. (That's what Apple does;
10284 # 32-bit x86 binaries are not supported on
10287 V_LIB_CCOPT_FAT="-arch x86_64"
10288 V_LIB_LDFLAGS_FAT="-arch x86_64"
10289 V_PROG_CCOPT_FAT="-arch x86_64"
10290 V_PROG_LDFLAGS_FAT="-arch x86_64"
10295 # Post-Catalina. Build libraries and
10296 # executables for x86-64 and ARM64.
10298 # build for arm64e, which may include
10299 # some of the pointer-checking extensions.)
10310 …{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building fat with libssl is supported" >…
10317 CFLAGS="$CFLAGS -arch x86_64 -arch arm64"
10319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10322 #include <openssl/ssl.h>
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10339 V_LIB_CCOPT_FAT="-arch x86_64 -arch arm64"
10340 V_LIB_LDFLAGS_FAT="-arch x86_64 -arch arm64"
10341 V_PROG_CCOPT_FAT="-arch x86_64 -arch arm64"
10342 V_PROG_LDFLAGS_FAT="-arch x86_64 -arch arm64"
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10349 rm -f core conftest.err conftest.$ac_objext \
10357 V_LIB_CCOPT_FAT="-arch x86_64 -arch arm64"
10358 V_LIB_LDFLAGS_FAT="-arch x86_64 -arch arm64"
10359 V_PROG_CCOPT_FAT="-arch x86_64 -arch arm64"
10360 V_PROG_LDFLAGS_FAT="-arch x86_64 -arch arm64"
10404 if test "`uname -m`" = "ia64"; then
10411 # "-b" builds a shared library; "+h" sets the soname.
10413 SHLIB_OPT="-b"
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SINIX compiler defines sinix" >&5
10457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_sinix_defined" >&5
10493 # Make sure errno is thread-safe, in case we're called in
10498 # is thread-safe (it wasn't thread-safe in some older versions).
10500 V_CCOPT="$V_CCOPT -D_TS_ERRNO"
10502 case "`uname -r`" in
10528 # Check whether --enable-shared was given.
10535 if test -n "$ac_tool_prefix"; then
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10543 if test -n "$RANLIB"; then
10550 test -z "$as_dir" && as_dir=.
10554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10564 if test -n "$RANLIB"; then
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10574 if test -z "$ac_cv_prog_RANLIB"; then
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10583 if test -n "$ac_ct_RANLIB"; then
10590 test -z "$as_dir" && as_dir=.
10594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10604 if test -n "$ac_ct_RANLIB"; then
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet"…
10627 if test -n "$ac_tool_prefix"; then
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10635 if test -n "$AR"; then
10642 test -z "$as_dir" && as_dir=.
10646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10656 if test -n "$AR"; then
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10666 if test -z "$ac_cv_prog_AR"; then
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10675 if test -n "$ac_ct_AR"; then
10682 test -z "$as_dir" && as_dir=.
10686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10696 if test -n "$ac_ct_AR"; then
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet"…
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
10721 $as_echo_n "checking whether ln -s works... " >&6; }
10723 if test "$LN_S" = "ln -s"; then
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
10733 rm -f os-proto.h
10737 if test -f .devel ; then
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -W option" >&5
10744 $as_echo_n "checking whether the compiler supports the -W option... " >&6; }
10746 CFLAGS="$CFLAGS -W"
10748 # XXX - yes, this depends on the way AC_LANG_WERROR works,
10751 # testing compiler options - 15 years after somebody asked
10754 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
10762 # as it will generate a warning with -Wold-style-definition, meaning
10767 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
10768 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
10773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -W " >&5
10792 $as_echo_n "checking whether -W ... " >&6; }
10793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10820 V_CCOPT="$V_CCOPT -W"
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10834 …{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wall option" …
10835 $as_echo_n "checking whether the compiler supports the -Wall option... " >&6; }
10837 CFLAGS="$CFLAGS -Wall"
10839 # XXX - yes, this depends on the way AC_LANG_WERROR works,
10842 # testing compiler options - 15 years after somebody asked
10845 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
10853 # as it will generate a warning with -Wold-style-definition, meaning
10858 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
10859 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
10864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wall " >&5
10883 $as_echo_n "checking whether -Wall ... " >&6; }
10884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10911 V_CCOPT="$V_CCOPT -Wall"
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10925 …{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wcomma option…
10926 $as_echo_n "checking whether the compiler supports the -Wcomma option... " >&6; }
10928 CFLAGS="$CFLAGS -Wcomma"
10930 # XXX - yes, this depends on the way AC_LANG_WERROR works,
10933 # testing compiler options - 15 years after somebody asked
10936 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
10944 # as it will generate a warning with -Wold-style-definition, meaning
10949 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
10950 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
10955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wcomma " >&5
10974 $as_echo_n "checking whether -Wcomma ... " >&6; }
10975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11002 V_CCOPT="$V_CCOPT -Wcomma"
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11016 …{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wdocumentatio…
11017 $as_echo_n "checking whether the compiler supports the -Wdocumentation option... " >&6; }
11019 CFLAGS="$CFLAGS -Wdocumentation"
11021 # XXX - yes, this depends on the way AC_LANG_WERROR works,
11024 # testing compiler options - 15 years after somebody asked
11027 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
11035 # as it will generate a warning with -Wold-style-definition, meaning
11040 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
11041 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
11046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wdocumentation " >&5
11065 $as_echo_n "checking whether -Wdocumentation ... " >&6; }
11066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11093 V_CCOPT="$V_CCOPT -Wdocumentation"
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11107 …{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wformat-nonli…
11108 $as_echo_n "checking whether the compiler supports the -Wformat-nonliteral option... " >&6; }
11110 CFLAGS="$CFLAGS -Wformat-nonliteral"
11112 # XXX - yes, this depends on the way AC_LANG_WERROR works,
11115 # testing compiler options - 15 years after somebody asked
11118 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
11126 # as it will generate a warning with -Wold-style-definition, meaning
11131 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
11132 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
11137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wformat-nonliteral " >&5
11156 $as_echo_n "checking whether -Wformat-nonliteral ... " >&6; }
11157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11184 V_CCOPT="$V_CCOPT -Wformat-nonliteral"
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11198 …{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-nore…
11199 $as_echo_n "checking whether the compiler supports the -Wmissing-noreturn option... " >&6; }
11201 CFLAGS="$CFLAGS -Wmissing-noreturn"
11203 # XXX - yes, this depends on the way AC_LANG_WERROR works,
11206 # testing compiler options - 15 years after somebody asked
11209 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
11217 # as it will generate a warning with -Wold-style-definition, meaning
11222 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
11223 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
11228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wmissing-noreturn " >&5
11247 $as_echo_n "checking whether -Wmissing-noreturn ... " >&6; }
11248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11275 V_CCOPT="$V_CCOPT -Wmissing-noreturn"
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11289 …{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-prot…
11290 $as_echo_n "checking whether the compiler supports the -Wmissing-prototypes option... " >&6; }
11292 CFLAGS="$CFLAGS -Wmissing-prototypes"
11294 # XXX - yes, this depends on the way AC_LANG_WERROR works,
11297 # testing compiler options - 15 years after somebody asked
11300 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
11308 # as it will generate a warning with -Wold-style-definition, meaning
11313 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
11314 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
11319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wmissing-prototypes " >&5
11338 $as_echo_n "checking whether -Wmissing-prototypes ... " >&6; }
11339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11366 V_CCOPT="$V_CCOPT -Wmissing-prototypes"
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11380 …{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-vari…
11381 $as_echo_n "checking whether the compiler supports the -Wmissing-variable-declarations option... " …
11383 CFLAGS="$CFLAGS -Wmissing-variable-declarations"
11385 # XXX - yes, this depends on the way AC_LANG_WERROR works,
11388 # testing compiler options - 15 years after somebody asked
11391 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
11399 # as it will generate a warning with -Wold-style-definition, meaning
11404 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
11405 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
11410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11428 … { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wmissing-variable-declarations " >&5
11429 $as_echo_n "checking whether -Wmissing-variable-declarations ... " >&6; }
11430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11457 V_CCOPT="$V_CCOPT -Wmissing-variable-declarations"
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11471 …{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wpointer-arit…
11472 $as_echo_n "checking whether the compiler supports the -Wpointer-arith option... " >&6; }
11474 CFLAGS="$CFLAGS -Wpointer-arith"
11476 # XXX - yes, this depends on the way AC_LANG_WERROR works,
11479 # testing compiler options - 15 years after somebody asked
11482 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
11490 # as it will generate a warning with -Wold-style-definition, meaning
11495 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
11496 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
11501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wpointer-arith " >&5
11520 $as_echo_n "checking whether -Wpointer-arith ... " >&6; }
11521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11548 V_CCOPT="$V_CCOPT -Wpointer-arith"
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11562 …{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wpointer-sign…
11563 $as_echo_n "checking whether the compiler supports the -Wpointer-sign option... " >&6; }
11565 CFLAGS="$CFLAGS -Wpointer-sign"
11567 # XXX - yes, this depends on the way AC_LANG_WERROR works,
11570 # testing compiler options - 15 years after somebody asked
11573 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
11581 # as it will generate a warning with -Wold-style-definition, meaning
11586 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
11587 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
11592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wpointer-sign " >&5
11611 $as_echo_n "checking whether -Wpointer-sign ... " >&6; }
11612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11639 V_CCOPT="$V_CCOPT -Wpointer-sign"
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11653 …{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wshadow optio…
11654 $as_echo_n "checking whether the compiler supports the -Wshadow option... " >&6; }
11656 CFLAGS="$CFLAGS -Wshadow"
11658 # XXX - yes, this depends on the way AC_LANG_WERROR works,
11661 # testing compiler options - 15 years after somebody asked
11664 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
11672 # as it will generate a warning with -Wold-style-definition, meaning
11677 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
11678 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
11683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wshadow " >&5
11702 $as_echo_n "checking whether -Wshadow ... " >&6; }
11703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11730 V_CCOPT="$V_CCOPT -Wshadow"
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11744 …{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wsign-compare…
11745 $as_echo_n "checking whether the compiler supports the -Wsign-compare option... " >&6; }
11747 CFLAGS="$CFLAGS -Wsign-compare"
11749 # XXX - yes, this depends on the way AC_LANG_WERROR works,
11752 # testing compiler options - 15 years after somebody asked
11755 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
11763 # as it will generate a warning with -Wold-style-definition, meaning
11768 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
11769 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
11774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wsign-compare " >&5
11793 $as_echo_n "checking whether -Wsign-compare ... " >&6; }
11794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11821 V_CCOPT="$V_CCOPT -Wsign-compare"
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11835 …{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wstrict-proto…
11836 $as_echo_n "checking whether the compiler supports the -Wstrict-prototypes option... " >&6; }
11838 CFLAGS="$CFLAGS -Wstrict-prototypes"
11840 # XXX - yes, this depends on the way AC_LANG_WERROR works,
11843 # testing compiler options - 15 years after somebody asked
11846 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
11854 # as it will generate a warning with -Wold-style-definition, meaning
11859 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
11860 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
11865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wstrict-prototypes " >&5
11884 $as_echo_n "checking whether -Wstrict-prototypes ... " >&6; }
11885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11912 V_CCOPT="$V_CCOPT -Wstrict-prototypes"
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11926 …{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wunused-param…
11927 $as_echo_n "checking whether the compiler supports the -Wunused-parameter option... " >&6; }
11929 CFLAGS="$CFLAGS -Wunused-parameter"
11931 # XXX - yes, this depends on the way AC_LANG_WERROR works,
11934 # testing compiler options - 15 years after somebody asked
11937 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
11945 # as it will generate a warning with -Wold-style-definition, meaning
11950 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
11951 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
11956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wunused-parameter " >&5
11975 $as_echo_n "checking whether -Wunused-parameter ... " >&6; }
11976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12003 V_CCOPT="$V_CCOPT -Wunused-parameter"
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12017 …{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wused-but-mar…
12018 $as_echo_n "checking whether the compiler supports the -Wused-but-marked-unused option... " >&6; }
12020 CFLAGS="$CFLAGS -Wused-but-marked-unused"
12022 # XXX - yes, this depends on the way AC_LANG_WERROR works,
12025 # testing compiler options - 15 years after somebody asked
12028 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
12036 # as it will generate a warning with -Wold-style-definition, meaning
12041 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
12042 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
12047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wused-but-marked-unused " >&5
12066 $as_echo_n "checking whether -Wused-but-marked-unused ... " >&6; }
12067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12094 V_CCOPT="$V_CCOPT -Wused-but-marked-unused"
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12109 # AC_LBL_CHECK_COMPILER_OPT(V_CCOPT, -Wcovered-switch-default)
12115 # the byte-swapping involves a conditional
12117 # swapped is a compile-time constant or not,
12119 # on whether it is, does a compile-time swap or
12120 # a run-time swap; perhaps the compiler always
12135 …{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wunreachable-
12136 $as_echo_n "checking whether the compiler supports the -Wunreachable-code option... " >&6; }
12138 CFLAGS="$CFLAGS -Wunreachable-code"
12140 # XXX - yes, this depends on the way AC_LANG_WERROR works,
12143 # testing compiler options - 15 years after somebody asked
12146 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
12154 # as it will generate a warning with -Wold-style-definition, meaning
12159 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
12160 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
12165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12183 …{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wunreachable-code generates warnings fr…
12184 $as_echo_n "checking whether -Wunreachable-code generates warnings from ntohs()... " >&6; }
12185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12187 #include <arpa/inet.h>
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12219 V_CCOPT="$V_CCOPT -Wunreachable-code"
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12233 …{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wshorten-64-t…
12234 $as_echo_n "checking whether the compiler supports the -Wshorten-64-to-32 option... " >&6; }
12236 CFLAGS="$CFLAGS -Wshorten-64-to-32"
12238 # XXX - yes, this depends on the way AC_LANG_WERROR works,
12241 # testing compiler options - 15 years after somebody asked
12244 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
12252 # as it will generate a warning with -Wold-style-definition, meaning
12257 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
12258 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
12263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wshorten-64-to-32 " >&5
12282 $as_echo_n "checking whether -Wshorten-64-to-32 ... " >&6; }
12283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12310 V_CCOPT="$V_CCOPT -Wshorten-64-to-32"
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12325 …{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports generating depende…
12331 # would be -M.
12333 ac_lbl_dependency_flag="-M"
12346 # MIPS C for IRIX, DEC C, and clang all use -M.
12348 ac_lbl_dependency_flag="-M"
12353 # Sun C uses -xM.
12355 ac_lbl_dependency_flag="-xM"
12385 # an unknown non-warning error, even if you pass it
12386 # -Werror=unknown-warning-option. However, it always supports
12387 # -M, so the fact that this test always succeeds with clang
12390 if test ! -z "$ac_lbl_dependency_flag"; then
12391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12395 …if { { $as_echo "$as_me:${as_lineno-$LINENO}: eval \"\$CC \$ac_lbl_dependency_flag conftest.c >/de…
12398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with $ac_lbl_dependency_flag" >&5
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12413 rm -rf conftest*
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12427 # We used to set -n32 for IRIX 6 when not using GCC (presumed
12429 # the "new" faster 32-bit ABI, introduced in IRIX 6.2. I'm
12434 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
12435 name="lbl/os-$os.h"
12436 if test -f $name ; then
12437 ln -s $name os-proto.h
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find $name" >&5
12451 #include <sys/types.h>
12452 #include <sys/socket.h>
12457 cat >>confdefs.h <<_ACEOF
12469 #include <sys/types.h>
12470 #include <sys/socket.h>
12475 cat >>confdefs.h <<_ACEOF
12484 # Check to see if the dl_hp_ppa_info_t struct has the HP-UX 11.00
12495 #include <sys/types.h>
12496 #include <sys/dlpi.h>
12497 #include <sys/dlpi_ext.h>
12502 cat >>confdefs.h <<_ACEOF
12511 # Various Linux-specific mechanisms.
12513 # Check whether --enable-usb was given.
12522 # If somebody requested an XXX-only pcap, that doesn't include
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux usbmon USB sniffing support" >&5
12534 MODULE_C_SRC="$MODULE_C_SRC pcap-usb-linux.c"
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12544 # a cross-build, and that works with *multiple* distributions,
12556 cat >>confdefs.h <<_ACEOF
12566 # Yes - include it when testing for <linux/usbdevice_fs.h>.
12570 …e "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "#include <linux/compiler.h>
12573 cat >>confdefs.h <<_ACEOF
12586 cat >>confdefs.h <<_ACEOF
12605 #include <linux/compiler.h>
12607 #include <linux/usbdevice_fs.h>
12612 cat >>confdefs.h <<_ACEOF
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12628 # __KERNEL_STRICT_NAMES getting defined by some other include.
12633 …{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the netfilter support" >&5
12638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12642 #include <sys/socket.h>
12643 #include <netinet/in.h>
12644 #include <linux/types.h>
12646 #include <linux/netlink.h>
12647 #include <linux/netfilter.h>
12648 #include <linux/netfilter/nfnetlink.h>
12649 #include <linux/netfilter/nfnetlink_log.h>
12650 #include <linux/netfilter/nfnetlink_queue.h>
12664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_netfilter_can_compile" >&5
12673 MODULE_C_SRC="$MODULE_C_SRC pcap-netfilter-linux.c"
12681 # Check whether --enable-netmap was given.
12693 # is defined, for example, as it includes a non-existent malloc.h
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the netmap support" >&5
12701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12706 #include <net/netmap_user.h>
12720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_net_netmap_user_can_compile" >&5
12729 MODULE_C_SRC="$MODULE_C_SRC pcap-netmap.c"
12736 # Check whether --with-dpdk was given.
12757 # User requested DPDK-only libpcap, so we'd better have
12761 # User requested something-else-only pcap, so they don't
12779 # We only try to find it using pkg-config; DPDK is *SO*
12780 # complicated - DPDK 19.02, for example, has about 117(!)
12782 # changed over time - so attempting to guess which libraries
12792 # as robust as pkg-config (i.e., it had better work as well
12793 # as pkg-config with *ALL* versions of DPDK that provide a
12796 # If --with-dpdk={path} was specified, add {path}/pkgconfig
12801 if test -n "$dpdk_dir"; then
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdpdk with pkg-config" >&5
12808 $as_echo_n "checking for libdpdk with pkg-config... " >&6; }
12810 if test -n "$PKG_CONFIG" && \
12811 …{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdpdk\""; } >&5
12812 ($PKG_CONFIG --exists --print-errors "libdpdk") 2>&5
12814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12821 if test -n "$DPDK_CFLAGS"; then
12823 elif test -n "$PKG_CONFIG"; then
12825 if test -n "$PKG_CONFIG" && \
12826 …{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdpdk\""; } >&5
12827 ($PKG_CONFIG --exists --print-errors "libdpdk") 2>&5
12829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12831 pkg_cv_DPDK_CFLAGS=`$PKG_CONFIG --cflags "libdpdk" 2>/dev/null`
12839 if test -n "$DPDK_LIBS"; then
12841 elif test -n "$PKG_CONFIG"; then
12843 if test -n "$PKG_CONFIG" && \
12844 …{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdpdk\""; } >&5
12845 ($PKG_CONFIG --exists --print-errors "libdpdk") 2>&5
12847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12849 pkg_cv_DPDK_LIBS=`$PKG_CONFIG --libs "libdpdk" 2>/dev/null`
12857 if test -n "$DPDK_LIBS_STATIC"; then
12859 elif test -n "$PKG_CONFIG"; then
12861 if test -n "$PKG_CONFIG" && \
12862 …{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdpdk\""; } >&5
12863 ($PKG_CONFIG --exists --print-errors "libdpdk") 2>&5
12865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12867 pkg_cv_DPDK_LIBS_STATIC=`$PKG_CONFIG --libs --static "libdpdk" 2>/dev/null`
12880 # That failed - report an error.
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5
12885 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12891 DPDK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdpdk" 2>&1`
12893 DPDK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdpdk" 2>&1`
12903 installed software in a non-standard prefix.
12907 and DPDK_LIBS to avoid the need to call pkg-config.
12908 See the pkg-config man page for more details." "$LINENO" 5
12911 # We don't have pkg-config, so it didn't work.
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found (pkg-config not found)" >&5
12914 $as_echo "not found (pkg-config not found)" >&6; }
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12986 #include <rte_ether.h>
12991 cat >>confdefs.h <<_ACEOF
13015 MODULE_C_SRC="$MODULE_C_SRC pcap-dpdk.c"
13020 # If we required it (with --with-dpdk or --with-pcap=dpdk),
13027 # Not found with pkg-config. Note that we
13029 # pkg-config.
13033 # User requested DPDK-only capture support.
13035 as_fn_error $? "DPDK support requested with --with-pcap=dpdk, but
13036 we couldn't find DPDK with pkg-config. Make sure that pkg-config is
13043 # User requested that libpcap include
13046 as_fn_error $? "DPDK support requested with --with-dpdk, but we
13047 couldn't find DPDK with pkg-config. Make sure that pkg-config
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We couldn't find DPDK with pkg-config. If
13057 you want DPDK support, make sure that pkg-config is installed,
13060 $as_echo "$as_me: WARNING: We couldn't find DPDK with pkg-config. If
13061 you want DPDK support, make sure that pkg-config is installed,
13066 # Found with pkg-config, but we couldn't compile
13075 # User requested DPDK-only capture support.
13077 as_fn_error $? "DPDK support requested with --with-pcap=dpdk, but we
13084 # User requested that libpcap include
13087 as_fn_error $? "DPDK support requested with --with-dpdk, but
13096 …{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DPDK was found, but we can't compile libpcap wit…
13105 # Check whether --enable-bluetooth was given.
13114 # User requested something-else-only pcap, so they don't
13132 MODULE_C_SRC="$MODULE_C_SRC pcap-bt-linux.c"
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is supported" >&5
13142 #include <bluetooth/bluetooth.h>
13143 #include <bluetooth/hci.h>
13148 cat >>confdefs.h <<_ACEOF
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if HCI_CHANNEL_MONITOR is defined" >&5
13161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13164 #include <bluetooth/bluetooth.h>
13165 #include <bluetooth/hci.h>
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13184 MODULE_C_SRC="$MODULE_C_SRC pcap-bt-monitor-linux.c"
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13206 …as_fn_error $? "Bluetooth sniffing is not supported; install bluez-lib devel to enable it" "$LINEN…
13208 …{ $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is not supported; install bluez-lib de…
13209 $as_echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
13220 …{ $as_echo "$as_me:${as_lineno-$LINENO}: no Bluetooth sniffing support implemented for $host_os" >…
13228 # Check whether --enable-dbus was given.
13237 # User requested something-else-only pcap, so they don't
13238 # want D-Bus support.
13248 # We don't support D-Bus sniffing on macOS; see
13254 …as_fn_error $? "Due to freedesktop.org bug 74029, D-Bus capture support is not available on macOS"…
13261 # We don't support D-Bus sniffing on macOS; see
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 with pkg-config" >&5
13279 $as_echo_n "checking for dbus-1 with pkg-config... " >&6; }
13281 if test -n "$PKG_CONFIG" && \
13282 … { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
13283 ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
13285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13292 if test -n "$DBUS_CFLAGS"; then
13294 elif test -n "$PKG_CONFIG"; then
13296 if test -n "$PKG_CONFIG" && \
13297 … { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
13298 ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
13300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13302 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
13310 if test -n "$DBUS_LIBS"; then
13312 elif test -n "$PKG_CONFIG"; then
13314 if test -n "$PKG_CONFIG" && \
13315 … { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
13316 ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
13318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13320 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
13328 if test -n "$DBUS_LIBS_STATIC"; then
13330 elif test -n "$PKG_CONFIG"; then
13332 if test -n "$PKG_CONFIG" && \
13333 … { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
13334 ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
13336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13338 pkg_cv_DBUS_LIBS_STATIC=`$PKG_CONFIG --libs --static "dbus-1" 2>/dev/null`
13351 # That failed - report an error.
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5
13356 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13362 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
13364 DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
13371 as_fn_error $? "--enable-dbus was given, but the dbus-1 package is not installed" "$LINENO" 5
13376 # We don't have pkg-config, so it didn't work.
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found (pkg-config not found)" >&5
13379 $as_echo "not found (pkg-config not found)" >&6; }
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13397 …{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D-Bus library defines dbus_connectio…
13398 $as_echo_n "checking whether the D-Bus library defines dbus_connection_read_write... " >&6; }
13399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13401 #include <string.h>
13403 #include <time.h>
13404 #include <sys/time.h>
13406 #include <dbus/dbus.h>
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13422 MODULE_C_SRC="$MODULE_C_SRC pcap-dbus.c"
13426 REQUIRES_PRIVATE="$REQUIRES_PRIVATE dbus-1"
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13433 …as_fn_error $? "--enable-dbus was given, but the D-Bus library doesn't define dbus_connection_read…
13437 rm -f core conftest.err conftest.$ac_objext \
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13459 # Check whether --enable-rdma was given.
13468 # User requested something-else-only pcap, so they don't
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libibverbs with pkg-config" >&5
13478 $as_echo_n "checking for libibverbs with pkg-config... " >&6; }
13480 if test -n "$PKG_CONFIG" && \
13481 …{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libibverbs\""; }…
13482 ($PKG_CONFIG --exists --print-errors "libibverbs") 2>&5
13484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13491 if test -n "$LIBIBVERBS_CFLAGS"; then
13493 elif test -n "$PKG_CONFIG"; then
13495 if test -n "$PKG_CONFIG" && \
13496 …{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libibverbs\""; }…
13497 ($PKG_CONFIG --exists --print-errors "libibverbs") 2>&5
13499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13501 pkg_cv_LIBIBVERBS_CFLAGS=`$PKG_CONFIG --cflags "libibverbs" 2>/dev/null`
13509 if test -n "$LIBIBVERBS_LIBS"; then
13511 elif test -n "$PKG_CONFIG"; then
13513 if test -n "$PKG_CONFIG" && \
13514 …{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libibverbs\""; }…
13515 ($PKG_CONFIG --exists --print-errors "libibverbs") 2>&5
13517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13519 pkg_cv_LIBIBVERBS_LIBS=`$PKG_CONFIG --libs "libibverbs" 2>/dev/null`
13527 if test -n "$LIBIBVERBS_LIBS_STATIC"; then
13529 elif test -n "$PKG_CONFIG"; then
13531 if test -n "$PKG_CONFIG" && \
13532 …{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libibverbs\""; }…
13533 ($PKG_CONFIG --exists --print-errors "libibverbs") 2>&5
13535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13537 pkg_cv_LIBIBVERBS_LIBS_STATIC=`$PKG_CONFIG --libs --static "libibverbs" 2>/dev/null`
13550 # That failed - report an error.
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5
13555 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13561 …LIBIBVERBS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libibverbs" 2>&1`
13563 LIBIBVERBS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libibverbs" 2>&1`
13573 installed software in a non-standard prefix.
13577 and LIBIBVERBS_LIBS to avoid the need to call pkg-config.
13578 See the pkg-config man page for more details." "$LINENO" 5
13581 # We don't have pkg-config, so it didn't work.
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found (pkg-config not found)" >&5
13584 $as_echo "not found (pkg-config not found)" >&6; }
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_get_device_list in -libverbs" >&5
13612 $as_echo_n "checking for ibv_get_device_list in -libverbs... " >&6; }
13617 LIBS="-libverbs $LIBS"
13618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13641 rm -f core conftest.err conftest.$ac_objext \
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_get_device_list" >&5
13651 LIBIBVERBS_LIBS="-libverbs"
13652 # XXX - at least on Ubuntu 20.04, there are many more
13654 # libibverbs is available but where pkg-config isn't
13656 # we should only use pkg-config for it.
13657 LIBIBVERBS_LIBS_STATIC="-libverbs"
13658 LIBIBVERBS_LIBS_PRIVATE="-libverbs"
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libibverbs defines ibv_create_flow" >&5
13689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13692 #include <infiniband/verbs.h>
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13718 rm -f core conftest.err conftest.$ac_objext \
13736 MODULE_C_SRC="$MODULE_C_SRC pcap-rdmasniff.c"
13748 # pcap-config script supply an rpath option to specify the directory
13754 # case - for example, Linux distributions for 64-bit platforms that
13755 # also provide support for binaries for a 32-bit version of the
13756 # platform may put the 64-bit libraries, the 32-bit libraries, or both
13761 # In Darwin-based OSes, the full paths of the shared libraries with
13765 # With the HP-UX linker, directories specified with -L are, by default,
13766 # added to the run-time search path, so we don't need to supply them.
13768 # For Tru64 UNIX, "-rpath" works with DEC's^WCompaq's^WHP's C compiler
13769 # for Alpha, but isn't documented as working with GCC, and no GCC-
13775 # a GCC-compatible compiler and a vendor compiler, we need to work with
13784 # accepts compatible command-line arguments, and the
13786 # compatible command-line arguments.
13788 RPATH="-Wl,-rpath,\${libdir}"
13794 # GNU-compatible linkers all support -R.
13796 RPATH="-Wl,-R,\${libdir}"
13809 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
13816 $as_echo_n "checking for a BSD-compatible install... " >&6; }
13817 if test -z "$INSTALL"; then
13825 test -z "$as_dir" && as_dir=.
13845 # program-specific install script used by HP pwplus--don't use.
13848 rm -rf conftest.one conftest.two conftest.dir
13852 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
13853 test -s conftest.one && test -s conftest.two &&
13854 test -s conftest.dir/conftest.one &&
13855 test -s conftest.dir/conftest.two
13857 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13870 rm -rf conftest.one conftest.two conftest.dir
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
13886 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13888 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13890 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13892 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13921 ac_config_commands="$ac_config_commands default-1"
13923-filter.manmisc pcap-linktype.manmisc pcap-tstamp.manmisc pcap-savefile.manfile pcap.3pcap pcap_co…
13925 cat >confcache <<\_ACEOF
13928 # scripts and configure runs, see configure's option --config-cache.
13933 # the --recheck option to rerun configure.
13947 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13952 …*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newlin…
13966 # `set' does not quote correctly, so add quotes: double-quote
13968 sed -n \
13974 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13988 if test -w "$cache_file"; then
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13992 if test ! -f "$cache_file" || test -h "$cache_file"; then
13993 cat confcache >"$cache_file"
13997 mv -f confcache "$cache_file"$$ &&
13998 mv -f "$cache_file"$$ "$cache_file" ;; #(
14000 mv -f confcache "$cache_file" ;;
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14009 rm -f confcache
14015 DEFS=-DHAVE_CONFIG_H
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14042 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14053 SHELL=\${CONFIG_SHELL-$SHELL}
14056 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14057 ## -------------------- ##
14059 ## -------------------- ##
14063 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14066 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14068 alias -g '${1+"$@"}'='"$@"'
14071 case `(set -o) 2>/dev/null` in #(
14073 set -o posix ;; #(
14089 if test -z "$BASH_VERSION$ZSH_VERSION" \
14090 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14091 as_echo='print -r --'
14092 as_echo_n='print -rn --'
14097 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14098 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14099 as_echo_n='/usr/ucb/echo -n'
14109 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14112 as_echo_n='sh -c $as_echo_n_body as_echo'
14115 as_echo='sh -c $as_echo_body as_echo'
14121 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14122 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14130 # there to prevent editors from complaining about space-tab.
14143 test -z "$as_dir" && as_dir=.
14144 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14155 if test ! -f "$as_myself"; then
14161 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14183 # ----------------------------------------
14189 as_status=$1; test $as_status -eq 0 && as_status=1
14191 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14192 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14200 # -----------------------
14208 # -----------------
14209 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14218 # ---------------
14226 # ----------------------
14244 # ------------------
14256 as_val=`expr "$@" || test $? -eq 1`
14268 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14274 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14280 as_me=`$as_basename -- "$0" ||
14307 case `echo -n x` in #(((((
14308 -n*)
14316 ECHO_N='-n';;
14319 rm -f conf$$ conf$$.exe conf$$.file
14320 if test -d conf$$.dir; then
14321 rm -f conf$$.dir/conf$$.file
14323 rm -f conf$$.dir
14327 if ln -s conf$$.file conf$$ 2>/dev/null; then
14328 as_ln_s='ln -s'
14330 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14331 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14332 # In both cases, we have to default to `cp -pR'.
14333 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14334 as_ln_s='cp -pR'
14338 as_ln_s='cp -pR'
14341 as_ln_s='cp -pR'
14343 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14348 # -------------
14354 -*) as_dir=./$as_dir;;
14356 test -d "$as_dir" || eval $as_mkdir_p || {
14364 as_dir=`$as_dirname -- "$as_dir" ||
14387 test -d "$as_dir" && break
14389 test -z "$as_dirs" || eval "mkdir $as_dirs"
14390 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14394 if mkdir -p . 2>/dev/null; then
14395 as_mkdir_p='mkdir -p "$as_dir"'
14397 test -d ./-p && rmdir ./-p
14403 # -----------------------
14407 test -f "$1" && test -x "$1"
14409 as_test_x='test -x'
14420 ## ----------------------------------- ##
14422 ## ----------------------------------- ##
14426 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14440 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14462 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14470 -h, --help print this help, then exit
14471 -V, --version print version number and configuration settings, then exit
14472 --config print configuration, then exit
14473 -q, --quiet, --silent
14475 -d, --debug don't remove temporary files
14476 --recheck update $as_me by reconfiguring in the same conditions
14477 --file=FILE[:TEMPLATE]
14479 --header=FILE[:TEMPLATE]
14494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14508 test -n "\$AWK" || AWK=awk
14511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14517 --*=?*)
14522 --*=)
14536 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14538 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14540 --config | --confi | --conf | --con | --co | --c )
14542 --debug | --debu | --deb | --de | --d | -d )
14544 --file | --fil | --fi | --f )
14552 --header | --heade | --head | --hea )
14559 --he | --h)
14560 # Conflict between --help and --header
14562 Try \`$0 --help' for more information.";;
14563 --help | --hel | -h )
14565 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14566 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14570 -*) as_fn_error $? "unrecognized option: \`$1'
14571 Try \`$0 --help' for more information." ;;
14584 ac_configure_extra_args="$ac_configure_extra_args --silent"
14588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14590 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14603 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14610 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14612 # INIT-COMMANDS
14618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14625 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14628 "pcap-filter.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-filter.manmisc" ;;
14629 "pcap-linktype.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-linktype.manmisc" ;;
14630 "pcap-tstamp.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-tstamp.manmisc" ;;
14631 "pcap-savefile.manfile") CONFIG_FILES="$CONFIG_FILES pcap-savefile.manfile" ;;
14646 "rpcapd/rpcapd-config.manfile") CONFIG_FILES="$CONFIG_FILES rpcapd/rpcapd-config.manfile" ;;
14675 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14682 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14683 test -d "$tmp"
14686 tmp=./conf$$-$RANDOM
14694 if test -n "$CONFIG_FILES"; then
14716 echo "cat >conf$$subs.awk <<_ACEOF" &&
14721 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14727 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14736 rm -f conf$$subs.sh
14738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14739 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14741 sed -n '
14784 rm -f conf$$subs.awk
14785 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14787 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14818 cat
14846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14847 fi # test -n "$CONFIG_FILES"
14852 if test -n "$CONFIG_HEADERS"; then
14853 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14858 # here-document in config.status, that substitutes the proper values into
14865 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14866 if test -z "$ac_tt"; then
14880 sed -n '
14919 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14935 prefix = substr(line, 1, index(line, defundef) - 1)
14953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14955 fi # test -n "$CONFIG_HEADERS"
14968 :[FH]-) ac_tag=-:-;;
14986 -) ac_f="$ac_tmp/stdin";;
14988 # (if the path is not absolute). The absolute path cannot be DOS-style,
14990 test -f "$ac_f" ||
14993 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15007 if test x"$ac_file" != x-; then
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15021 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15027 ac_dir=`$as_dirname -- "$ac_file" ||
15098 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15112 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15115 …{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdi…
15116 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15136 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15138 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15152 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15155 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15156 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15157 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15158 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15159 …{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`…
15164 rm -f "$ac_tmp/stdin"
15166 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15167 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15175 if test x"$ac_file" != x-; then
15178 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15185 rm -f "$ac_file"
15191 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15192 || as_fn_error $? "could not create -" "$LINENO" 5
15196 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15203 "default-1":C) if test -f .devel; then
15204 echo timestamp > stamp-h
15205 cat $srcdir/Makefile-devel-adds >> Makefile
15233 ac_config_status_args="$ac_config_status_args --quiet"
15241 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5