From 9f2b5e104d14f559adae13ddaf0d8e677c7e208a Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Sun, 30 Jun 2024 23:02:20 +0200 Subject: [PATCH] Autotools: Move openpty check to libraries section 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 --- configure.ac | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 2c7429e7c6d8c..fc88f45a1f7e6 100644 --- a/configure.ac +++ b/configure.ac @@ -369,6 +369,10 @@ AC_SEARCH_LIBS([Pgrab], [proc]) dnl Haiku does not have network api in libc. AC_SEARCH_LIBS([setsockopt], [network]) +dnl Check for openpty. It may require linking against libutil or libbsd. +AC_CHECK_FUNCS([openpty],, + [AC_SEARCH_LIBS([openpty], [util bsd], [AC_DEFINE([HAVE_OPENPTY], [1])])]) + dnl Then headers. dnl ---------------------------------------------------------------------------- @@ -787,10 +791,6 @@ if test "$PHP_VALGRIND" != "no"; then fi fi -dnl Check for openpty. It may require linking against libutil or libbsd. -AC_CHECK_FUNCS([openpty],, - [AC_SEARCH_LIBS([openpty], [util bsd], [AC_DEFINE([HAVE_OPENPTY], [1])])]) - dnl General settings. dnl ---------------------------------------------------------------------------- PHP_CONFIGURE_PART(General settings)