aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2017-05-09 16:46:41 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2017-05-09 16:46:41 +0200
commit71652572e35bfeea2f346b7c700a3050bf27e466 (patch)
treea99e6537f21ca774da8ae77bf37c19cbc3b1e2f6 /configure.ac
parent5d6dc93043a0bc77b1e0a71ea8dfe15325024b45 (diff)
downloadbird-71652572e35bfeea2f346b7c700a3050bf27e466.tar.gz
Minor autoconf cleanup and documentation update
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac20
1 files changed, 1 insertions, 19 deletions
diff --git a/configure.ac b/configure.ac
index 2180bcdf..ca8d7690 100644
--- a/configure.ac
+++ b/configure.ac
@@ -241,25 +241,7 @@ case $sysdesc in
esac
AC_CHECK_HEADERS_ONCE([alloca.h syslog.h])
-
-AC_MSG_CHECKING(whether 'struct sockaddr' has sa_len)
-AC_COMPILE_IFELSE([
- AC_LANG_PROGRAM(
- [[
- #include <sys/types.h>
- #include <sys/socket.h>
- ]],
- [[
- static struct sockaddr sa;
- int i = sizeof(sa.sa_len);
- ]]
- )],
- [
- AC_MSG_RESULT(yes)
- AC_DEFINE(HAVE_SIN_LEN,,sin_len)
- ],
- [AC_MSG_RESULT(no)]
-)
+AC_CHECK_MEMBERS([struct sockaddr.sa_len], [], [], [#include <sys/socket.h>])
AC_C_BIGENDIAN(
[AC_DEFINE([CPU_BIG_ENDIAN], [1], [Define to 1 if cpu is big endian])],