1 --- dante-1.4.2/acinclude.m4.orig 2017-01-23 20:28:08.000000000 +0100
2 +++ dante-1.4.2/acinclude.m4 2017-04-16 11:08:02.385924479 +0200
4 dnl test function that tries to determine if a specified errno error exists
5 m4_define([checkerrno],
6 [AC_MSG_CHECKING(for errno symbol $3)
7 + CPPFLAGS_save="$CPPFLAGS"
8 + CPPFLAGS="$CPPFLAGS -P"
10 [AC_LANG_PROGRAM([[#include <errno.h>]],
15 cat conftest.i | grep errnoval: >>$2],
16 - [AC_MSG_RESULT([no])])])
17 + [AC_MSG_RESULT([no])])
18 + CPPFLAGS="$CPPFLAGS_save"
20 AC_DEFUN([L_CHECKERRNO],
23 @@ -1127,8 +1131,11 @@
24 dnl test function that tries to determine if a specified errno error exists
25 m4_define([checkgaierror],
26 [AC_MSG_CHECKING(for getaddrinfo() error $3)
27 + CPPFLAGS_save="$CPPFLAGS"
28 + CPPFLAGS="$CPPFLAGS -P"
31 +//#define _GNU_SOURCE 1
32 #include <sys/types.h>
33 #include <sys/socket.h>
37 AC_DEFINE(HAVE_ERR_$3, 1, [$3 gai error found])
38 cat conftest.i | grep gaierrval: >>$2],
39 - [AC_MSG_RESULT([no])])])
40 + [AC_MSG_RESULT([no])])
41 + CPPFLAGS="$CPPFLAGS_save"
43 AC_DEFUN([L_CHECKGAIERROR],