Lines Matching +full:ethernet +full:- +full:pse

24 # These are the variables that are used in Makefile, pcap-config, and
42 # pcap-config, so that "pcap-config --libs --static" will report them.
45 # REQUIRES_PRIVATE: pkg-config package names for additional libraries
48 # so that "pkg-config --libs --static" will report them, and so that
52 # V_CCOPT: additional compiler flags other than -I and -D flags
56 # V_DEFS: additional -D compiler flags needed when compiling
59 # V_INCLS: additional -I compiler flags needed when compiling
63 # library needs to be linked. Used in Makefile; not used in pcap-config
66 # that dynamic library doesn't have to link with those libraries -
72 # in pcap-config, so that "pcap-config --libs --static" will report
75 # REQUIRES_PRIVATE: pkg-config package names for additional libraries
78 # so that "pkg-config --libs --static" will report them, and so that
82 # LIBS_PRIVATE: pkg-config package names for additional libraries with
85 # so that "pkg-config --libs --static" will report them (those libraries
115 # Get the size of a void *, to determine whether this is a 32-bit
116 # or 64-bit build.
122 # Get the size of a time_t, to know whether it's 32-bit or 64-bit.
140 dnl releases without that fix, so that pcap-bpf.c doesn't need to
160 CFLAGS="$CFLAGS -D_BSD_SOURCE"
176 # POSIX-compliant strerror_r() or a GNU strerror_r()?
178 AC_MSG_CHECKING(whether strerror_r is GNU-style)
185 /* Define it GNU-style; that will cause an error if it's not GNU-style */
196 # GNU-style
199 [Define to 1 if you have a GNU-style `strerror_r' function.])
204 [Define to 1 if you have a POSIX-style `strerror_r' function.])
278 # "getaddrinfo()-ish function".
286 # thread-specific data on many platforms, but doesn't use it on
358 # thread-specific data on many platforms, but doesn't use it on
428 # Some might have it and declare it in <net/ethernet.h>.
430 # Some might have it and declare it in <sys/ethernet.h>.
440 # OK, we have ether_hostton(). Is it declared in <net/ethernet.h>?
442 # This test fails if we don't have <net/ethernet.h> or if we do
448 [Define to 1 if net/ethernet.h declares `ether_hostton'])
451 #include <net/ethernet.h>
482 # No, how about <sys/ethernet.h>, as on Solaris 10
485 # This test fails if we don't have <sys/ethernet.h>
496 [Define to 1 if sys/ethernet.h declares `ether_hostton'])
499 #include <sys/ethernet.h>
605 # No - do we have it in -lpthreads?
610 # Yes - add -lpthreads.
613 PTHREAD_LIBS="$PTHREAD_LIBS -lpthreads"
617 # No - do we have it in -lpthread?
622 # Yes - add -lpthread.
625 PTHREAD_LIBS="$PTHREAD_LIBS -lpthread"
645 AC_ARG_ENABLE([instrument-functions],
646 [AS_HELP_STRING([--enable-instrument-functions],
654 # Add '-finstrument-functions' instrumentation option to generate
656 # Use '--enable-instrument-functions' also with tcpdump (or tcpslice)
658 CFLAGS="$CFLAGS -O0 -ggdb -finstrument-functions"
665 AC_MSG_CHECKING(if --disable-protochain option is specified)
667 AS_HELP_STRING([--disable-protochain],[disable \"protochain\" insn]))
687 AS_HELP_STRING([--with-pcap=TYPE],[use packet capture TYPE]))
688 if test ! -z "$with_pcap" ; then
699 # I.e., is it a header for an LBL/BSD-style capture
709 # requires that various BSD-style integer types
795 # Pre-SunOS 4.x non-STREAMS NIT.
805 # DLPI on pre-Solaris 11 SunOS 5, HP-UX, possibly others.
817 # --with-pcap=null if they want a libpcap that can't
819 # nobody gets surprised by getting a no-capture
826 pcap and pcapng files, run configure with --with-pcap=null.])
834 # Do we have pkg-config?
844 # Solaris pkg-config is annoying. For at least one package (D-Bus, I'm
845 # looking at *you*!), there are separate include files for 32-bit and
846 # 64-bit builds (I guess using "unsigned long long" as a 64-bit integer
847 # type on a 64-bit build is like crossing the beams or something), and
848 # there are two separate .pc files, so if we're doing a 32-bit build we
850 # we're doing a 64-bit build we should make sure we look in
856 if test "$ac_cv_sizeof_void_p" -eq 8; then
858 # 64-bit build. If the path is empty, set it to
864 if test -z "$PKG_CONFIG_PATH"; then
870 elif test ! -z `echo "$PKG_CONFIG_PATH" | grep "/usr/lib/pkgconfig"`; then
884 elif test "$ac_cv_sizeof_void_p" -eq 4; then
886 # 32-bit build. If /usr/amd64/lib/pkgconfig appears
889 if test ! -z `echo "$PKG_CONFIG_PATH" | grep "/usr/lib/amd64/pkgconfig"`; then
915 # Due to a gcc bug, the default search path for 32-bit libraries does
919 # libdlpi will have to add "-L/lib" option to "configure".
922 LDFLAGS="$LIBS -L/lib"
925 LIBS="-ldlpi $LIBS"
926 LIBS_STATIC="-ldlpi $LIBS_STATIC"
927 LIBS_PRIVATE="-ldlpi $LIBS_PRIVATE"
932 # common functions used by pcap-[dlpi,libdlpi].c
934 PLATFORM_C_SRC="pcap-libdlpi.c dlpisubs.c"
942 # common functions used by pcap-[dlpi,libdlpi].c
944 PLATFORM_C_SRC="pcap-dlpi.c dlpisubs.c"
965 AC_MSG_ERROR(<sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI)
985 PLATFORM_C_SRC="pcap-enet.c"
992 PLATFORM_C_SRC="pcap-haiku.c"
1004 PLATFORM_C_SRC="pcap-linux.c"
1019 # short-lived, and version 1 is source and binary
1026 …AS_HELP_STRING([--without-libnl],[disable libnl support @<:@default=yes, on Linux, if present@:>@]…
1031 # Check for libnl-genl-3.0 with pkg-config.
1033 PKG_CHECK_MODULE(LIBNL, libnl-genl-3.0,
1039 REQUIRES_PRIVATE="libnl-genl-3.0 $REQUIRES_PRIVATE"
1045 # OK, either we don't have pkg-config or there
1051 incdir=-I/usr/include/libnl3
1056 if test -d $withval; then
1057 libnldir=-L${withval}/lib
1058 incdir=-I${withval}/include
1063 AC_CHECK_LIB(nl-3, nl_socket_alloc,
1068 ADDITIONAL_LIBS="${libnldir} -lnl-genl-3 -lnl-3 $ADDITIONAL_LIBS"
1069 ADDITIONAL_LIBS_STATIC="${libnldir} -lnl-genl-3 -lnl-3 $ADDITIONAL_LIBS_STATIC"
1070 LIBS_PRIVATE="${libnldir} -lnl-genl-3 -lnl-3 $LIBS_PRIVATE"
1082 ], ${incdir} ${libnldir} -lnl-genl-3 -lnl-3 )
1105 PLATFORM_C_SRC="pcap-bpf.c"
1108 # Check whether we have the *BSD-style ioctls.
1127 # if so, whether it defines IPNET_ANY_LINK - if so,
1136 if test -e /usr/include/inet/ipnet.h &&
1137 grep -q IPNET_ANY_LINK /usr/include/inet/ipnet.h; then
1149 PLATFORM_C_SRC="pcap-pf.c"
1156 PLATFORM_C_SRC="pcap-snit.c"
1163 PLATFORM_C_SRC="pcap-snoop.c"
1168 # --with-pcap=dag is the only way to get here, and it means
1171 V_DEFS="$V_DEFS -DDAG_ONLY"
1172 PLATFORM_C_SRC="pcap-dag.c"
1178 # --with-pcap=dpdk is the only way to get here, and it means
1181 V_DEFS="$V_DEFS -DDPDK_ONLY"
1182 PLATFORM_C_SRC="pcap-dpdk.c"
1188 # --with-pcap=septel is the only way to get here, and it means
1191 V_DEFS="$V_DEFS -DSEPTEL_ONLY"
1192 PLATFORM_C_SRC="pcap-septel.c"
1198 # --with-pcap=snf is the only way to get here, and it means
1201 V_DEFS="$V_DEFS -DSNF_ONLY"
1202 PLATFORM_C_SRC="pcap-snf.c"
1210 PLATFORM_C_SRC="pcap-null.c"
1235 PLATFORM_C_SRC="$PLATFORM_C_SRC fad-getad.c"
1238 # We don't have the header - give up.
1239 # XXX - we could also fall back on some other
1255 # getifaddrs(), but in -lsocket, not in -lxnet, so we
1256 # won't find it if we link with -lxnet, which we want
1264 # avoids a not-all-that-useful middleman.)
1279 PLATFORM_C_SRC="$PLATFORM_C_SRC fad-glifc.c"
1281 PLATFORM_C_SRC="$PLATFORM_C_SRC fad-gifc.c"
1306 AS_HELP_STRING([--enable-ipv6],[build IPv6-capable version @<:@default=yes@:>@]),
1319 AS_HELP_STRING([--with-dag@<:@=DIR@:>@],[include Endace DAG support (located in directory DIR, if s…
1336 # User requested DAG-only libpcap, so we'd better have
1340 # User requested something-else-only pcap, so they don't
1351 AC_ARG_WITH([dag-includes],
1352 AS_HELP_STRING([--with-dag-includes=IDIR],[Endace DAG include directory, if not DIR/include]),
1359 AC_ARG_WITH([dag-libraries],
1360 AS_HELP_STRING([--with-dag-libraries=LDIR],[Endace DAG library directory, if not DIR/lib]),
1370 if test -z "$dag_root"; then
1374 if test -z "$dag_include_dir"; then
1378 if test -z "$dag_lib_dir"; then
1383 if test -d "$dag_lib_dir/$host"
1390 CFLAGS="$CFLAGS -I$dag_include_dir"
1396 V_INCLS="$V_INCLS -I$dag_include_dir"
1399 MODULE_C_SRC="$MODULE_C_SRC pcap-dag.c"
1403 # Don't need to save and restore LIBS to prevent -ldag being
1404 # included if there's a found-action (arg 3).
1406 LDFLAGS="-L$dag_lib_dir"
1414 ADDITIONAL_LIBS="-L$dag_lib_dir $ADDITIONAL_LIBS -ldag -ldagconf"
1415 ADDITIONAL_LIBS_STATIC="-L$dag_lib_dir $ADDITIONAL_LIBS_STATIC -ldag -ldagconf"
1416 LIBS_PRIVATE="-L$dag_lib_dir $LIBS_PRIVATE -ldag -ldagconf"
1434 LIBS="$LIBS -ldag -ldagconf"
1435 LDFLAGS="$LDFLAGS -L$dag_lib_dir"
1454 …AC_MSG_ERROR([DAG support requested with --with-pcap=dag, but the DAG headers weren't found at $da…
1459 …AC_MSG_ERROR([DAG support requested with --with-dag, but the DAG headers weren't found at $dag_inc…
1466 AS_HELP_STRING([--with-septel@<:@=DIR@:>@],[include Septel support (located in directory DIR, if su…
1481 # User requested Septel-only libpcap, so we'd better have
1485 # User requested something-else-only pcap, so they don't
1502 if test -z "$septel_root"; then
1509 if test -r "$septel_include_dir/msg.h"; then
1516 V_INCLS="$V_INCLS -I$septel_include_dir"
1521 MODULE_C_SRC="$MODULE_C_SRC pcap-septel.c"
1531 …AC_MSG_ERROR([Septel support requested with --with-pcap=septel, but the Septel headers weren't fou…
1536 …AC_MSG_ERROR([Septel support requested with --with-septel, but the Septel headers weren't found at…
1543 AS_HELP_STRING([--with-snf@<:@=DIR@:>@],[include Myricom SNF support (located in directory DIR, if …
1560 # User requested Sniffer-only libpcap, so we'd better have
1564 # User requested something-else-only pcap, so they don't
1575 AC_ARG_WITH([snf-includes],
1576 AS_HELP_STRING([--with-snf-includes=IDIR],[Myricom SNF include directory, if not DIR/include]),
1583 AC_ARG_WITH([snf-libraries],
1584 AS_HELP_STRING([--with-snf-libraries=LDIR],[Myricom SNF library directory, if not DIR/lib]),
1597 if test -z "$snf_root"; then
1601 if test -z "$snf_include_dir"; then
1605 if test -z "$snf_lib_dir"; then
1610 if test -d "$snf_lib_dir/$host"
1616 if test -f "$snf_include_dir/snf.h"; then
1619 LDFLAGS="$LDFLAGS -L$snf_lib_dir"
1630 V_INCLS="$V_INCLS -I$snf_include_dir"
1631 ADDITIONAL_LIBS="$ADDITIONAL_LIBS -L$snf_lib_dir -lsnf"
1632 ADDITIONAL_LIBS_STATIC="$ADDITIONAL_LIBS_STATIC -L$snf_lib_dir -lsnf"
1633 LIBS_PRIVATE="$LIBS_PRIVATE -L$snf_lib_dir -lsnf"
1636 MODULE_C_SRC="$MODULE_C_SRC pcap-snf.c"
1646 …AC_MSG_ERROR([Myricom Sniffer support requested with --with-pcap=snf, but the Sniffer headers were…
1650 …AC_MSG_ERROR([Myricom Sniffer support requested with --with-snf, but the Sniffer headers weren't f…
1657 AS_HELP_STRING([--with-turbocap@<:@=DIR@:>@],[include Riverbed TurboCap support (located in directo…
1674 # User requested something-else-only pcap, so they don't
1691 if test ! -z "$turbocap_root"; then
1692 TURBOCAP_CFLAGS="-I$turbocap_root/include"
1693 TURBOCAP_LDFLAGS="-L$turbocap_root/lib"
1713 MODULE_C_SRC="$MODULE_C_SRC pcap-tc.c"
1715 ADDITIONAL_LIBS="$ADDITIONAL_LIBS $TURBOCAP_LDFLAGS -lTcApi -lpthread -lstdc++"
1716 ADDITIONAL_LIBS_STATIC="$ADDITIONAL_LIBS_STATIC $TURBOCAP_LDFLAGS -lTcApi -lpthread -lstdc++"
1717 LIBS_PRIVATE="$LIBS_PRIVATE $TURBOCAP_LDFLAGS -lTcApi -lpthread -lstdc++"
1725 …AC_MSG_ERROR([TurboCap support requested with --with-turbocap, but the TurboCap headers weren't fo…
1737 [AS_HELP_STRING([--enable-remote],
1743 AC_WARN([Remote packet capture may expose libpcap-based applications])
1758 # No. Do we have it in -lcrypt?
1763 # Yes; add -lcrypt to the libraries for rpcapd.
1765 RPCAPD_LIBS="$RPCAPD_LIBS -lcrypt"
1795 # First, try looking for it with pkg-config, if we have it.
1797 # Homebrew's pkg-config does not, by default, look for
1798 # pkg-config files for packages it has installed.
1800 # dumped in package-specific directories whose paths are
1801 # not only package-specific but package-version-specific.
1804 # PKG_CONFIG_PATH from "brew --env openssl" and add that
1809 # That's the nice thing about Homebrew - it makes things easier!
1813 if test -n "$BREW"; then
1814 openssl_pkgconfig_dir=`$BREW --env --plain openssl | sed -n 's/PKG_CONFIG_PATH: //p'`
1831 if test "x$HAVE_OPENSSL" != "xyes" -a -n "$BREW"; then
1835 # $BREW --prefix --installed <formula>
1842 if $BREW --prefix --installed openssl >/dev/null 2>&1; then
1851 openssl_path=`$BREW --prefix openssl`
1852 OPENSSL_CFLAGS="-I$openssl_path/include"
1853 OPENSSL_LIBS="-L$openssl_path/lib -lssl -lcrypto"
1854 OPENSSL_LIBS_STATIC="-L$openssl_path/lib -lssl -lcrypto"
1855 OPENSSL_LIBS_PRIVATE="-L$openssl_path/lib -lssl -lcrypto"
1875 if test "x$HAVE_OPENSSL" != "xyes" -a -d "/usr/local/include" -a -d "/usr/local/lib"; then
1877 CFLAGS="$CFLAGS -I/usr/local/include"
1878 LIBS="$LIBS -L/usr/local/lib -lssl -lcrypto"
1891 OPENSSL_CFLAGS="-I/usr/local/include"
1892 OPENSSL_LIBS="-L/usr/local/lib -lssl -lcrypto"
1893 OPENSSL_LIBS_STATIC="-L/usr/local/lib -lssl -lcrypto"
1894 OPENSSL_LIBS_PRIVATE="-L/usr/local/lib -lssl -lcrypto"
1912 LIBS="$LIBS -lssl -lcrypto"
1925 OPENSSL_LIBS="-lssl -lcrypto"
1926 OPENSSL_LIBS_STATIC="-lssl -lcrypto"
1927 OPENSSL_LIBS_PRIVATE="-lssl -lcrypto"
1950 REMOTE_C_SRC="$REMOTE_C_SRC pcap-new.c pcap-rpcap.c rpcap-protocol.c sockutils.c"
1951 BUILD_RPCAPD=build-rpcapd
1952 INSTALL_RPCAPD=install-rpcapd
1959 AC_ARG_ENABLE(optimizer-dbg,
1960 AS_HELP_STRING([--enable-optimizer-dbg],[build optimizer debugging code]))
1964 AC_MSG_RESULT(${enable_optimizer_dbg-no})
1968 AS_HELP_STRING([--enable-yydebug],[build parser debugging code]))
1972 AC_MSG_RESULT(${enable_yydebug-no})
1983 # Make sure {f}lex supports the -P, --header-file, and --nounput flags
1987 if $LEX -P pcap_ --header-file=/dev/null --nounput -t $srcdir/scanner.l > /dev/null 2>&1; then
1995 If a suitable version of Lex/Flex is available as a non-standard command
2005 # If it's Bison, we do not want -y, as 1) we will be using -o to cause
2007 # it to issue warnings about stuff not supported by POSIX YACC - we
2021 # "%pure-parser".
2023 …bison_major_version=`$BISON_BYACC -V | sed -n 's/.* \(@<:@1-9@:>@@<:@0-9@:>@*\)\.@<:@0-9@:>@@<:@0-
2024 …bison_minor_version=`$BISON_BYACC -V | sed -n 's/.* @<:@1-9@:>@@<:@0-9@:>@*\.\(@<:@0-9@:>@+\).*/\1…
2025 if test "$bison_major_version" -lt 2 -o \
2026 \( "$bison_major_version" -eq 2 -a "$bison_major_version" -lt 4 \)
2028 REENTRANT_PARSER="%pure-parser"
2042 # Run it with "-V"; that succeeds and reports the
2052 if $BISON_BYACC -V >/dev/null 2>&1; then
2073 # "%pure-parser".
2075 REENTRANT_PARSER="%pure-parser"
2116 # use /lib/pse.exp if present, as we use the
2119 pseexe="/lib/pse.exp"
2121 if test -f $pseexe ; then
2123 LIBS="-I:$pseexe"
2129 # If we're using BPF, we need "-lodm" and "-lcfg", as
2132 LIBS="-lodm -lcfg"
2139 V_CCOPT="$V_CCOPT -fno-common"
2141 AS_HELP_STRING([--disable-universal],[don't build universal on macOS]))
2145 darwin[[0-7]].*)
2147 # Pre-Tiger. Build only for 32-bit PowerPC; no
2155 # libraries and executables for 32-bit PowerPC
2156 # and 64-bit PowerPC, with 32-bit PowerPC first.
2165 V_LIB_CCOPT_FAT="-arch ppc -arch ppc64"
2166 V_LIB_LDFLAGS_FAT="-arch ppc -arch ppc64"
2167 V_PROG_CCOPT_FAT="-arch ppc -arch ppc64"
2168 V_PROG_LDFLAGS_FAT="-arch ppc -arch ppc64"
2174 # to x86-64 support. Build libraries and
2175 # executables for 32-bit PowerPC, 64-bit
2176 # PowerPC, and 32-bit x86, with 32-bit PowerPC
2185 V_LIB_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386"
2186 V_LIB_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386"
2187 V_PROG_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386"
2188 V_PROG_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386"
2193 # All other Tiger, so subsequent to x86-64
2195 # 32-bit PowerPC, 64-bit PowerPC, 32-bit x86,
2196 # and x86-64, with 32-bit PowerPC first. (I'm
2199 V_LIB_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
2200 V_LIB_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
2201 V_PROG_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
2202 V_PROG_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
2207 # Leopard. Build libraries for 32-bit PowerPC,
2208 # 64-bit PowerPC, 32-bit x86, and x86-64, with
2209 # 32-bit PowerPC first, and build executables
2210 # for 32-bit x86 and 32-bit PowerPC, with 32-bit
2213 V_LIB_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
2214 V_LIB_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
2215 V_PROG_CCOPT_FAT="-arch i386 -arch ppc"
2216 V_PROG_LDFLAGS_FAT="-arch i386 -arch ppc"
2221 # Snow Leopard. Build libraries for x86-64,
2222 # 32-bit x86, and 32-bit PowerPC, with x86-64
2223 # first, and build executables for x86-64 and
2224 # 32-bit x86, with x86-64 first. (That's what
2230 V_LIB_CCOPT_FAT="-arch x86_64 -arch i386 -arch ppc"
2231 V_LIB_LDFLAGS_FAT="-arch x86_64 -arch i386 -arch ppc"
2232 V_PROG_CCOPT_FAT="-arch x86_64 -arch i386"
2233 V_PROG_LDFLAGS_FAT="-arch x86_64 -arch i386"
2236 darwin1[[1-8]]*)
2238 # Post-Snow Leopard, pre-Catalina. Build
2239 # libraries for x86-64 and 32-bit x86, with
2240 # x86-64 first, and build executables only for
2241 # x86-64. (That's what Apple does.) This
2249 AC_MSG_CHECKING(whether building for 32-bit x86 is supported)
2251 CFLAGS="$CFLAGS -arch i386"
2257 V_LIB_CCOPT_FAT="-arch x86_64"
2258 V_LIB_LDFLAGS_FAT="-arch x86_64"
2262 # to install only the libs for 64-bit
2263 # x86 - at least that's what Brew does:
2264 # only configure 32-bit builds if we
2268 V_LIB_CCOPT_FAT="$V_LIB_CCOPT_FAT -arch i386"
2269 V_LIB_LDFLAGS_FAT="$V_LIB_LDFLAGS_FAT -arch i386"
2274 V_LIB_CCOPT_FAT="-arch x86_64"
2275 V_LIB_LDFLAGS_FAT="-arch x86_64"
2282 # 32-bit x86 builds to work.
2284 …AC_MSG_WARN([Compiling for 32-bit x86 gives an error; try installing the command-line tools and, a…
2289 # Pre-Mojave; the command-line
2291 # enable 32-bit x86 builds.
2293 AC_MSG_WARN([Compiling for 32-bit x86 gives an error; try installing the command-line tools])
2303 # only for x86-64. (That's what Apple does;
2304 # 32-bit x86 binaries are not supported on
2307 V_LIB_CCOPT_FAT="-arch x86_64"
2308 V_LIB_LDFLAGS_FAT="-arch x86_64"
2309 V_PROG_CCOPT_FAT="-arch x86_64"
2310 V_PROG_LDFLAGS_FAT="-arch x86_64"
2315 # Post-Catalina. Build libraries and
2316 # executables for x86-64 and ARM64.
2319 # some of the pointer-checking extensions.)
2332 CFLAGS="$CFLAGS -arch x86_64 -arch arm64"
2344 V_LIB_CCOPT_FAT="-arch x86_64 -arch arm64"
2345 V_LIB_LDFLAGS_FAT="-arch x86_64 -arch arm64"
2346 V_PROG_CCOPT_FAT="-arch x86_64 -arch arm64"
2347 V_PROG_LDFLAGS_FAT="-arch x86_64 -arch arm64"
2353 V_LIB_CCOPT_FAT="-arch x86_64 -arch arm64"
2354 V_LIB_LDFLAGS_FAT="-arch x86_64 -arch arm64"
2355 V_PROG_CCOPT_FAT="-arch x86_64 -arch arm64"
2356 V_PROG_LDFLAGS_FAT="-arch x86_64 -arch arm64"
2364 AC_DEFINE(HAVE_HPUX9,1,[on HP-UX 9.x])
2398 dnl XXX - DYEXT should be set to "sl" if this is building
2399 dnl for 32-bit PA-RISC, but should be left as "so" for
2400 dnl 64-bit PA-RISC or, I suspect, IA-64.
2401 AC_DEFINE(HAVE_HPUX10_20_OR_LATER,1,[on HP-UX 10.20 or later])
2402 if test "`uname -m`" = "ia64"; then
2409 # "-b" builds a shared library; "+h" sets the soname.
2411 SHLIB_OPT="-b"
2469 # Make sure errno is thread-safe, in case we're called in
2474 # is thread-safe (it wasn't thread-safe in some older versions).
2476 V_CCOPT="$V_CCOPT -D_TS_ERRNO"
2478 case "`uname -r`" in
2505 AS_HELP_STRING([--enable-shared],[build shared libraries @<:@default=yes, if support available@:>@]…
2535 # Check to see if the dl_hp_ppa_info_t struct has the HP-UX 11.00
2553 # Various Linux-specific mechanisms.
2556 [AS_HELP_STRING([--enable-usb],[enable Linux usbmon USB capture support @<:@default=yes, if support…
2561 # If somebody requested an XXX-only pcap, that doesn't include
2571 MODULE_C_SRC="$MODULE_C_SRC pcap-usb-linux.c"
2580 # a cross-build, and that works with *multiple* distributions,
2591 # Yes - include it when testing for <linux/usbdevice_fs.h>.
2645 MODULE_C_SRC="$MODULE_C_SRC pcap-netfilter-linux.c"
2654 [AS_HELP_STRING([--enable-netmap],[enable netmap support @<:@default=yes, if support available@:>@]…
2678 MODULE_C_SRC="$MODULE_C_SRC pcap-netmap.c"
2685 AS_HELP_STRING([--with-dpdk@<:@=DIR@:>@],[include DPDK support (located in directory DIR, if suppli…
2703 # User requested DPDK-only libpcap, so we'd better have
2707 # User requested something-else-only pcap, so they don't
2723 # We only try to find it using pkg-config; DPDK is *SO*
2724 # complicated - DPDK 19.02, for example, has about 117(!)
2726 # changed over time - so attempting to guess which libraries
2736 # as robust as pkg-config (i.e., it had better work as well
2737 # as pkg-config with *ALL* versions of DPDK that provide a
2740 # If --with-dpdk={path} was specified, add {path}/pkgconfig
2745 if test -n "$dpdk_dir"; then
2798 MODULE_C_SRC="$MODULE_C_SRC pcap-dpdk.c"
2803 # If we required it (with --with-dpdk or --with-pcap=dpdk),
2810 # Not found with pkg-config. Note that we
2812 # pkg-config.
2816 # User requested DPDK-only capture support.
2819 [DPDK support requested with --with-pcap=dpdk, but
2820 we couldn't find DPDK with pkg-config. Make sure that pkg-config is
2831 [DPDK support requested with --with-dpdk, but we
2832 couldn't find DPDK with pkg-config. Make sure that pkg-config
2842 [We couldn't find DPDK with pkg-config. If
2843 you want DPDK support, make sure that pkg-config is installed,
2848 # Found with pkg-config, but we couldn't compile
2857 # User requested DPDK-only capture support.
2860 [DPDK support requested with --with-pcap=dpdk, but we
2871 [DPDK support requested with --with-dpdk, but
2889 [AS_HELP_STRING([--enable-bluetooth],[enable Bluetooth support @<:@default=yes, if support availabl…
2894 # User requested something-else-only pcap, so they don't
2910 MODULE_C_SRC="$MODULE_C_SRC pcap-bt-linux.c"
2937 MODULE_C_SRC="$MODULE_C_SRC pcap-bt-monitor-linux.c"
2954 AC_MSG_ERROR(Bluetooth sniffing is not supported; install bluez-lib devel to enable it)
2956 AC_MSG_NOTICE(Bluetooth sniffing is not supported; install bluez-lib devel to enable it)
2972 [AS_HELP_STRING([--enable-dbus],[enable D-Bus capture support @<:@default=yes, if support available…
2977 # User requested something-else-only pcap, so they don't
2978 # want D-Bus support.
2988 # We don't support D-Bus sniffing on macOS; see
2994 AC_MSG_ERROR([Due to freedesktop.org bug 74029, D-Bus capture support is not available on macOS])
3001 # We don't support D-Bus sniffing on macOS; see
3015 PKG_CHECK_MODULE(DBUS, dbus-1,
3020 AC_MSG_CHECKING(whether the D-Bus library defines dbus_connection_read_write)
3031 AC_DEFINE(PCAP_SUPPORT_DBUS, 1, [support D-Bus sniffing])
3032 MODULE_C_SRC="$MODULE_C_SRC pcap-dbus.c"
3036 REQUIRES_PRIVATE="$REQUIRES_PRIVATE dbus-1"
3041 …AC_MSG_ERROR([--enable-dbus was given, but the D-Bus library doesn't define dbus_connection_read_w…
3048 AC_MSG_ERROR([--enable-dbus was given, but the dbus-1 package is not installed])
3055 [AS_HELP_STRING([--enable-rdma],[enable RDMA capture support @<:@default=yes, if support available@…
3060 # User requested something-else-only pcap, so they don't
3077 LIBIBVERBS_LIBS="-libverbs"
3078 # XXX - at least on Ubuntu 20.04, there are many more
3080 # libibverbs is available but where pkg-config isn't
3082 # we should only use pkg-config for it.
3083 LIBIBVERBS_LIBS_STATIC="-libverbs"
3084 LIBIBVERBS_LIBS_PRIVATE="-libverbs"
3129 MODULE_C_SRC="$MODULE_C_SRC pcap-rdmasniff.c"
3141 # pcap-config script supply an rpath option to specify the directory
3147 # case - for example, Linux distributions for 64-bit platforms that
3148 # also provide support for binaries for a 32-bit version of the
3149 # platform may put the 64-bit libraries, the 32-bit libraries, or both
3154 # In Darwin-based OSes, the full paths of the shared libraries with
3158 # With the HP-UX linker, directories specified with -L are, by default,
3159 # added to the run-time search path, so we don't need to supply them.
3161 # For Tru64 UNIX, "-rpath" works with DEC's^WCompaq's^WHP's C compiler
3162 # for Alpha, but isn't documented as working with GCC, and no GCC-
3168 # a GCC-compatible compiler and a vendor compiler, we need to work with
3177 # accepts compatible command-line arguments, and the
3179 # compatible command-line arguments.
3181 RPATH="-Wl,-rpath,\${libdir}"
3187 # GNU-compatible linkers all support -R.
3189 RPATH="-Wl,-R,\${libdir}"
3220 AC_OUTPUT_COMMANDS([if test -f .devel; then
3221 echo timestamp > stamp-h
3222 cat $srcdir/Makefile-devel-adds >> Makefile
3225 AC_OUTPUT(Makefile grammar.y pcap-filter.manmisc pcap-linktype.manmisc
3226 pcap-tstamp.manmisc pcap-savefile.manfile pcap.3pcap
3232 rpcapd/Makefile rpcapd/rpcapd.manadmin rpcapd/rpcapd-config.manfile