diff options
author | Brent Cook <busterb@gmail.com> | 2021-11-09 22:34:58 -0600 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2021-11-09 22:43:53 -0600 |
commit | f69066726257d07257fce6c5f076bbf27f49b376 (patch) | |
tree | 2153f8ebec920916dec22ee4e3e23185291bfc2e /m4 | |
parent | c29f380d0c604efee33672172929c2e57554924f (diff) | |
download | portable-f69066726257d07257fce6c5f076bbf27f49b376.tar.gz portable-f69066726257d07257fce6c5f076bbf27f49b376.tar.bz2 portable-f69066726257d07257fce6c5f076bbf27f49b376.zip |
Autoconf updates
Move machine/endian.h to endian.h, use AC_HEADER_RESOLV over individual
header checks, and include prerequisites for netinet/ip.h check.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/check-libc.m4 | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/m4/check-libc.m4 b/m4/check-libc.m4 index cca97c3..40df67f 100644 --- a/m4/check-libc.m4 +++ b/m4/check-libc.m4 | |||
@@ -1,7 +1,11 @@ | |||
1 | AC_DEFUN([CHECK_LIBC_COMPAT], [ | 1 | AC_DEFUN([CHECK_LIBC_COMPAT], [ |
2 | # Check for libc headers | 2 | # Check for libc headers |
3 | AC_CHECK_HEADERS([err.h readpassphrase.h]) | 3 | AC_CHECK_HEADERS([endian.h err.h readpassphrase.h]) |
4 | AC_CHECK_HEADERS([arpa/nameser.h endian.h netinet/ip.h resolv.h]) | 4 | AC_CHECK_HEADERS([netinet/ip.h], [], [], |
5 | [#include <sys/types.h> | ||
6 | #include <arpa/inet.h> | ||
7 | ]) | ||
8 | AC_HEADER_RESOLV | ||
5 | # Check for general libc functions | 9 | # Check for general libc functions |
6 | AC_CHECK_FUNCS([asprintf freezero memmem]) | 10 | AC_CHECK_FUNCS([asprintf freezero memmem]) |
7 | AC_CHECK_FUNCS([readpassphrase reallocarray recallocarray]) | 11 | AC_CHECK_FUNCS([readpassphrase reallocarray recallocarray]) |