You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-libs/nDPI/files/nDPI-3.4-configure-fail-lib...

20 lines
911 B

Ensure that we fail if libpcap can't be detected, rather than exiting with a success return code.
--- a/configure.seed
+++ b/configure.seed
@@ -126,12 +126,9 @@ case "$host" in
AC_CHECK_LIB([dl], [dlopen, dlsym], [DL_LIB="-ldl"],[AC_CHECK_LIB([c], [dlopen, dlsym], [DL_LIB="-lc"],[AC_MSG_ERROR([unable to find the dlopen(), dlsym() functions]) ]) ])
else
AC_CHECK_LIB([pcap], [pcap_open_live], [PCAP_LIB="-lpcap"])
- if test $ac_cv_lib_pcap_pcap_open_live = "no"; then :
- echo ""
- echo "ERROR: Missing libpcap(-dev) library required to compile the example application"
- echo "ERROR: Please install it and try again"
- exit
- fi
+ if test $ac_cv_lib_pcap_pcap_open_live = "no"; then :
+ AC_MSG_ERROR([Cannot find libpcap which is required to compile the example application])
+ fi
fi
;;
esac