From a2fe3e58f91fab67f6df86c4643833264761ef5e Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Sat, 24 Feb 2024 22:00:31 +0100 Subject: [PATCH] Simplify openpty Autoconf check This removes redundant symbols HAVE_LIBUTIL and HAVE_LIBBSD. --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 799d36a8383ca..2452d95e8ce41 100644 --- a/configure.ac +++ b/configure.ac @@ -796,7 +796,8 @@ if test "$PHP_VALGRIND" != "no"; then fi dnl Check for openpty. It may require linking against libutil or libbsd. -PHP_CHECK_FUNC(openpty, util, bsd) +AC_CHECK_FUNCS([openpty],, + [AC_SEARCH_LIBS([openpty], [util bsd], [AC_DEFINE([HAVE_OPENPTY], [1])])]) dnl General settings. dnl ----------------------------------------------------------------------------