Compilation fix

This commit is contained in:
Luca Deri
2021-08-20 22:47:46 +02:00
parent 9e0f0ce3df
commit 88040f0449
2 changed files with 5 additions and 2 deletions
+2 -2
View File
@@ -167,8 +167,8 @@ case "$host" in
AC_CHECK_LIB([nl], [nl_handle_alloc], [PCAP_LIB="$PCAP_LIB -lnl"])
# The dlopen() function is in libdl on GLIBC-based systems
# and in the C library for *BSD systems
AC_CHECK_LIB([dl], [dlopen, dlsym], [DL_LIB="-ldl"],[AC_CHECK_LIB([c],
[dlopen, dlsym], [DL_LIB="-lc"],
AC_CHECK_LIB([dl], [dlopen], [DL_LIB="-ldl"],[AC_CHECK_LIB([c],
[dlopen], [DL_LIB="-lc"],
[AC_MSG_ERROR([unable to find the dlopen(), dlsym() functions]) ]) ])
elif test "${with_only_libndpi+set}" != set; then :
AC_CHECK_LIB([pcap], [pcap_open_live], [PCAP_LIB="-lpcap"])