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.
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
AC_DEFUN([CHECK_LIBC_COMPAT], [
|
||||
# Check for libc headers
|
||||
AC_CHECK_HEADERS([err.h readpassphrase.h])
|
||||
AC_CHECK_HEADERS([arpa/nameser.h endian.h netinet/ip.h resolv.h])
|
||||
AC_CHECK_HEADERS([endian.h err.h readpassphrase.h])
|
||||
AC_CHECK_HEADERS([netinet/ip.h], [], [],
|
||||
[#include <sys/types.h>
|
||||
#include <arpa/inet.h>
|
||||
])
|
||||
AC_HEADER_RESOLV
|
||||
# Check for general libc functions
|
||||
AC_CHECK_FUNCS([asprintf freezero memmem])
|
||||
AC_CHECK_FUNCS([readpassphrase reallocarray recallocarray])
|
||||
|
Reference in New Issue
Block a user