Skip to content

Check for library functions on one place in Zend.m4 #14635

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions Zend/Zend.m4
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,18 @@ _LT_AC_TRY_DLOPEN_SELF([
], [])
])

dnl Checks for library functions.
AC_CHECK_FUNCS(getpid kill pthread_getattr_np pthread_attr_get_np pthread_get_stackaddr_np pthread_attr_getstack pthread_stackseg_np gettid)
dnl Check for library functions.
AC_CHECK_FUNCS(m4_normalize([
getpid
gettid
kill
mremap
pthread_attr_get_np
pthread_attr_getstack
pthread_get_stackaddr_np
pthread_getattr_np
pthread_stackseg_np
]))

dnl Check for sigsetjmp. If it's defined as a macro, AC_CHECK_FUNCS won't work.
AC_CHECK_FUNCS([sigsetjmp],,
Expand Down Expand Up @@ -279,8 +289,6 @@ int main(void)

AC_MSG_RESULT(done)

AC_CHECK_FUNCS(mremap)

AC_ARG_ENABLE([zend-signals],
[AS_HELP_STRING([--disable-zend-signals],
[whether to enable zend signal handling])],
Expand Down
Loading