Testing string equality using "test" is done with the "="
operator. Bash also accepts "==", but this is not portable.
The issue was noticed on NetBSD, which uses a patch to the
generated "configure" script[1].
[1] https://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/net/fping/patches/patch-configure?rev=1.3;content-type=text%2Fplain
- ci: Removed travis-ci (#446, thanks @gsnw-sebast)
- Performance optimization: reduce number of select calls and use
recvmsg with MSG_DONTWAIT instead (#449)
+- Improved compatibility with NetBSD (#452, thanks @auerswal)
fping 5.5 (2025-12-31)
======================
#include <sys/types.h>
]])
])
-AS_IF([test "x$have_ipv6" == "xyes"], [
+AS_IF([test "x$have_ipv6" = "xyes"], [
dnl Test if IPv6 is supported
AC_CHECK_HEADERS([netinet/ip6.h], [have_ipv6="yes"], [have_ipv6="no"], [[
#include <netinet/in.h>