summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYouness Alaoui <youness.alaoui@collabora.co.uk>2011-12-12 23:50:34 (GMT)
committerYouness Alaoui <youness.alaoui@collabora.co.uk>2011-12-12 23:50:34 (GMT)
commit7429fbc1b979412cabce01afd805ab39675bbf62 (patch)
tree231b3474fc701821d09e1fde9cabbd19d955ca2b
parent1fe527bef1f52b96cbbd755db8bbcab93bed49f8 (diff)
downloadlibnice-7429fbc1b979412cabce01afd805ab39675bbf62.tar.gz
libnice-7429fbc1b979412cabce01afd805ab39675bbf62.tar.xz
Set HAVE_GETIFADDRS only if ifaddrs.h is found, not if any of arpa/inet.h net/in.h and ifaddrs.h are found
-rw-r--r--configure.ac3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 694af48..570f79d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -79,7 +79,8 @@ AC_HEADER_ASSERT
AC_HEADER_STDBOOL
AC_DEFINE([_FORTIFY_SOURCE], [2], [Define to `2' to get GNU/libc warnings.])
AC_DEFINE([NICEAPI_EXPORT], [ ], [Public library function implementation])
-AC_CHECK_HEADERS([arpa/inet.h net/in.h ifaddrs.h], \
+AC_CHECK_HEADERS([arpa/inet.h net/in.h])
+AC_CHECK_HEADERS([ifaddrs.h], \
[AC_DEFINE(HAVE_GETIFADDRS, [1], \
[Whether getifaddrs() is available on the system])])