]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
update acx_nlnetlabs.m4
authorWouter Wijngaards <wouter@NLnetLabs.nl>
Fri, 20 Jan 2012 14:38:37 +0000 (14:38 +0000)
committerWouter Wijngaards <wouter@NLnetLabs.nl>
Fri, 20 Jan 2012 14:38:37 +0000 (14:38 +0000)
acx_nlnetlabs.m4

index 279b20fc29d471a74f99dffb45d229b38505a828..3a2e350823eed0e2ec46c65ca4161e365790bbbb 100644 (file)
@@ -2,7 +2,8 @@
 # Copyright 2009, Wouter Wijngaards, NLnet Labs.   
 # BSD licensed.
 #
-# Version 19
+# Version 20
+# 2012-01-20 Fix COMPILER_FLAGS_UNBOUND for gcc 4.6.2 assigned-not-used-warns.
 # 2011-12-05 Fix getaddrinfowithincludes on windows with fedora16 mingw32-gcc.
 #           Fix ACX_MALLOC for redefined malloc error.
 #           Fix GETADDRINFO_WITH_INCLUDES to add -lws2_32
@@ -259,6 +260,8 @@ int test() {
        a = getopt(2, opts, "a");
        a = isascii(32);
        str = gai_strerror(0);
+       if(str && t && tv.tv_usec && msg.msg_control)
+               a = 0;
        return a;
 }
 ], [CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE"])
@@ -294,6 +297,8 @@ int test() {
        a = getopt(2, opts, "a");
        a = isascii(32);
        str = gai_strerror(0);
+       if(str && t && tv.tv_usec && msg.msg_control)
+               a = 0;
        return a;
 }
 ], [CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"])
@@ -360,6 +365,8 @@ int test() {
        const char* str = NULL;
         t = ctime_r(&time, buf);
        str = gai_strerror(0);
+       if(t && str)
+               a = 0;
         return a;
 }
 ], [CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"])
@@ -386,6 +393,8 @@ int test() {
         srandom(32);
         a = getopt(2, opts, "a");
         a = isascii(32);
+       if(tv.tv_usec)
+               a = 0;
         return a;
 }
 ], [CFLAGS="$CFLAGS -D__EXTENSIONS__"])