Create ac_override_2

This commit is contained in:
Whale 2021-06-02 00:34:25 +08:00 committed by GitHub
parent 22ac543fe7
commit b3cbf9cc37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

18
docker/ac_override_2 Normal file
View File

@ -0,0 +1,18 @@
AC_DEFUN([PHP_CHECK_LIBRARY], [
save_old_LDFLAGS=$LDFLAGS
ac_stuff="$5"
save_ext_shared=$ext_shared
ext_shared=yes
PHP_EVAL_LIBLINE([$]ac_stuff, LDFLAGS)
AC_CHECK_LIB([$1],[$2],[
LDFLAGS=$save_old_LDFLAGS
ext_shared=$save_ext_shared
$3
],[
LDFLAGS=$save_old_LDFLAGS
ext_shared=$save_ext_shared
unset ac_cv_lib_$1[]_$2
$4
])dnl
])