1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Simplify openpty Autoconf check (#13494)

This removes redundant symbols HAVE_LIBUTIL and HAVE_LIBBSD.
This commit is contained in:
Peter Kokot
2024-02-28 20:14:24 +01:00
committed by GitHub
parent acb677cbcf
commit 154517eba9

View File

@@ -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 ----------------------------------------------------------------------------