]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
build: Use «yes» instead of «true» for AC_CHECK_FUNCS cache value
authorGuillem Jover <guillem@hadrons.org>
Wed, 23 Nov 2022 22:42:49 +0000 (23:42 +0100)
committerGuillem Jover <guillem@hadrons.org>
Wed, 23 Nov 2022 22:42:49 +0000 (23:42 +0100)
This autoconf macro sets the ac_cv_func_ cached variable to «yes» not
«true» so we were checking for an impossible condition.

configure.ac

index 17d113c5e0315b9f636fc039f7763c97c1219882..842f5d67145fc8b49b7018f00005a5f95e4c49b9 100644 (file)
@@ -246,7 +246,7 @@ AC_LINK_IFELSE(
 AC_CHECK_FUNCS([clearenv dirfd fopencookie __fpurge \
                 getauxval getentropy getexecname getline \
                 pstat_getproc sysconf])
-AM_CONDITIONAL([HAVE_GETENTROPY], [test "x$ac_cv_func_getentropy" = "xtrue"])
+AM_CONDITIONAL([HAVE_GETENTROPY], [test "x$ac_cv_func_getentropy" = "xyes"])
 
 AC_SUBST([MD5_LIBS])
 AC_SUBST([LIBBSD_LIBS])