Skip to content

Commit

Permalink
Fix library append check with AS_CASE
Browse files Browse the repository at this point in the history
The ac_cv_search_shm_open is either "no", "none required" or "-lrt".
This appends it only when some library containing shm_open is found.
  • Loading branch information
petk committed Sep 2, 2024
1 parent 5d07d25 commit fbf6417
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ if test "$PHP_APCU" != "no"; then
LIBS_SAVED=$LIBS; LIBS=
AC_SEARCH_LIBS([shm_open], [rt])
LIBS=$LIBS_SAVED
AS_VAR_IF([ac_cv_search_shm_open], ["none required"], [],
AS_CASE([$ac_cv_search_shm_open], ["none required"|no], [],
[PHP_ADD_LIBRARY([rt], [], [APCU_SHARED_LIBADD])])

PHP_NEW_EXTENSION([apcu], [$apc_sources], [$ext_shared],, [$APCU_CFLAGS])
Expand Down

0 comments on commit fbf6417

Please sign in to comment.