File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 237
237
238
238
dnl Detect musl libc
239
239
AC_MSG_CHECKING ( [ whether we are using musl libc] )
240
- if command -v ldd >/dev/null && ldd --version 2>&1 | grep -q ^musl
240
+ if command -v ldd >/dev/null && ldd --version 2>&1 | grep ^musl >/dev/null 2>&1
241
241
then
242
242
AC_MSG_RESULT ( [ yes] )
243
243
AC_DEFINE ( [ __MUSL__] , [ 1] , [ Define to 1 when using musl libc.] )
Original file line number Diff line number Diff line change @@ -43,7 +43,8 @@ if test "$PHP_POSIX" = "yes"; then
43
43
44
44
dnl Skip pathconf and fpathconf check on musl libc due to limited implementation
45
45
dnl (first argument is not validated and has different error).
46
- AS_IF ( [ command -v ldd >/dev/null && ldd --version 2>&1 | grep -q "^musl"] ,[ ] ,
46
+ AS_IF ( [ command -v ldd >/dev/null && ldd --version 2>&1 | grep ^musl >/dev/null 2>&1] ,
47
+ [ ] ,
47
48
[ AC_CHECK_FUNCS ( [ pathconf fpathconf] ) ] )
48
49
49
50
AC_CACHE_CHECK ( [ for working ttyname_r() implementation] ,
You can’t perform that action at this time.
0 commit comments