--- p11-kit-0.25.2/configure.ac.orig	2023-11-11 13:01:01.714637700 +0100
+++ p11-kit-0.25.2/configure.ac	2023-11-11 13:01:29.786441200 +0100
@@ -146,7 +147,6 @@
 	AC_CHECK_FUNCS([issetugid])
 	AC_CHECK_FUNCS([isatty])
 	AC_CHECK_FUNCS([readpassphrase])
-	AM_CONDITIONAL([NEED_READPASSPHRASE], [test "$ac_cv_func_readpassphrase" != "yes"])
 
 	AC_CHECK_FUNC(
 		[strerror_r],
@@ -211,6 +211,7 @@
 	               [AC_MSG_RESULT([no])])
 
 fi
+AM_CONDITIONAL([NEED_READPASSPHRASE], [test "$ac_cv_func_readpassphrase" != "yes"])
 
 # These are thngs we can work around
 AC_CHECK_FUNCS([asprintf vasprintf vsnprintf])
