Skip to content

Commit 9674a42

Browse files
authored
Autotools: Move openpty check to libraries section (#14737)
This is just a sync and alignment with Autoconf documentation style order of checks in configure.ac ("Standard configure.ac Layout"): https://www.gnu.org/software/autoconf/manual/autoconf-2.72/autoconf.html#Autoconf-Input-Layout
1 parent 2e756e0 commit 9674a42

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

configure.ac

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,10 @@ AC_SEARCH_LIBS([Pgrab], [proc])
369369
dnl Haiku does not have network api in libc.
370370
AC_SEARCH_LIBS([setsockopt], [network])
371371

372+
dnl Check for openpty. It may require linking against libutil or libbsd.
373+
AC_CHECK_FUNCS([openpty],,
374+
[AC_SEARCH_LIBS([openpty], [util bsd], [AC_DEFINE([HAVE_OPENPTY], [1])])])
375+
372376
dnl Then headers.
373377
dnl ----------------------------------------------------------------------------
374378

@@ -780,10 +784,6 @@ AS_VAR_IF([PHP_VALGRIND], [no],,
780784
AC_DEFINE([HAVE_VALGRIND], [1],
781785
[Define to 1 if Valgrind is enabled and supported.])])])
782786

783-
dnl Check for openpty. It may require linking against libutil or libbsd.
784-
AC_CHECK_FUNCS([openpty],,
785-
[AC_SEARCH_LIBS([openpty], [util bsd], [AC_DEFINE([HAVE_OPENPTY], [1])])])
786-
787787
dnl General settings.
788788
dnl ----------------------------------------------------------------------------
789789
PHP_CONFIGURE_PART(General settings)

0 commit comments

Comments
 (0)