File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 237237
238238dnl Detect musl libc
239239AC_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
241241then
242242 AC_MSG_RESULT ( [ yes] )
243243 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
4343
4444dnl Skip pathconf and fpathconf check on musl libc due to limited implementation
4545dnl (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+ [ ] ,
4748 [ AC_CHECK_FUNCS ( [ pathconf fpathconf] ) ] )
4849
4950 AC_CACHE_CHECK ( [ for working ttyname_r() implementation] ,
You can’t perform that action at this time.
0 commit comments