Merge branch 'PHP-8.3'

* PHP-8.3:
  Fix GH-15515: Configure error grep illegal option q (#15516)
This commit is contained in:
Peter Kokot 2024-08-21 15:57:33 +02:00
commit c69d29ebc3
No known key found for this signature in database
GPG key ID: A94800907AA79B36
2 changed files with 3 additions and 2 deletions

View file

@ -237,7 +237,7 @@ esac
dnl Detect musl libc
AC_MSG_CHECKING([whether we are using musl libc])
if command -v ldd >/dev/null && ldd --version 2>&1 | grep -q ^musl
if command -v ldd >/dev/null && ldd --version 2>&1 | grep ^musl >/dev/null 2>&1
then
AC_MSG_RESULT([yes])
AC_DEFINE([__MUSL__], [1], [Define to 1 when using musl libc.])

View file

@ -43,7 +43,8 @@ if test "$PHP_POSIX" = "yes"; then
dnl Skip pathconf and fpathconf check on musl libc due to limited implementation
dnl (first argument is not validated and has different error).
AS_IF([command -v ldd >/dev/null && ldd --version 2>&1 | grep -q "^musl"],[],
AS_IF([command -v ldd >/dev/null && ldd --version 2>&1 | grep ^musl >/dev/null 2>&1],
[],
[AC_CHECK_FUNCS([pathconf fpathconf])])
AC_CACHE_CHECK([for working ttyname_r() implementation],