Skip to content

Conversation

petk
Copy link
Member

@petk petk commented Feb 6, 2024

Autoconf's AC_CHECK_MEMBERS macro (available since Autoconf 2.50) can be used instead of the compile check. This was originally implemented for IRIX compatibility, when Autoconf 2.13 didn't have the struct members checking macro yet.

Macro by default here defines the HAVE_STRUCT_UTSNAME_DOMAINNAME symbol.

Autoconf's AC_CHECK_MEMBERS macro (available since Autoconf 2.50) can be
used instead of the compile check. This was originally implemented for
IRIX compatibility, when Autoconf 2.13 didn't have the struct members
checking macro yet.

Macro by default here defines the HAVE_STRUCT_UTSNAME_DOMAINNAME symbol.
Checking in the configuration step also correctly detects missing struct
member on Darwin systems (macos...).
@petk
Copy link
Member Author

petk commented Feb 6, 2024

@devnexen sorry, I've appended one more commit here - removal of the redundant DARWIN symbol check because on macOS this check already correctly detects missing domainname member.

@petk petk merged commit f9cfd40 into php:master Feb 6, 2024
@petk petk deleted the patch-utsname-domainname branch February 6, 2024 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants