Skip to content

Commit 154517e

Browse files
authored
Simplify openpty Autoconf check (#13494)
This removes redundant symbols HAVE_LIBUTIL and HAVE_LIBBSD.
1 parent acb677c commit 154517e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

configure.ac

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,8 @@ if test "$PHP_VALGRIND" != "no"; then
796796
fi
797797

798798
dnl Check for openpty. It may require linking against libutil or libbsd.
799-
PHP_CHECK_FUNC(openpty, util, bsd)
799+
AC_CHECK_FUNCS([openpty],,
800+
[AC_SEARCH_LIBS([openpty], [util bsd], [AC_DEFINE([HAVE_OPENPTY], [1])])])
800801

801802
dnl General settings.
802803
dnl ----------------------------------------------------------------------------

0 commit comments

Comments
 (0)