Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

Re: [milter-greylist] configure.ac _REENTRANT issue (was: sync.c:local_addr() use)

2005-03-27 by Hajimu UMEMOTO

Hi,

>>> Sun, 27 Mar 2005 21:19:39 +0900,
>>> Hajimu UMEMOTO <ume@...> said:

ranko> If you execute configure as it was you will notice in config.log that
ranko> HAVE_GETADDRINFO and HAVE_GETNAMEINFO do get declared twice in
ranko> confdefs.h as follows:
ranko> #define HAVE_GETADDRINFO
ranko> #define HAVE_GETADDRINFO 1
ranko> #define HAVE_GETNAMEINFO
ranko> #define HAVE_GETNAMEINFO 1

ume> Your patch simply ignores the action.  The following change should be
ume> better, IMHO:

I reworked to use AH_TEMPLATE() macro.  Please use this instead:

Index: configure.ac
diff -u configure.ac.orig configure.ac
--- configure.ac.orig	Sat Mar 19 16:41:09 2005
+++ configure.ac	Mon Mar 28 01:04:28 2005
@@ -152,10 +152,7 @@
 
 # Check for getaddrinfo and getnameinfo
 AC_DEFUN([IPv6_CHECK_FUNC], [
-changequote(, )dnl
-ac_tr_lib=HAVE_`echo $1 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
-  -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
-changequote([, ])dnl
+AH_TEMPLATE(AS_TR_CPP(HAVE_$1), [Define to 1 if you have the `]$1[' function.])
 AC_CHECK_FUNC($1, [dnl
   ac_cv_lib_socket_$1=no
   ac_cv_lib_inet6_$1=no
@@ -209,18 +206,14 @@
   fi
 fi
 if test $ipv6_cv_$1 = yes; then
-  AC_DEFINE_UNQUOTED($ac_tr_lib)
+  AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_$1))
   ifelse([$2], , :, [$2])
 else
   ifelse([$3], , :, [$3])
 fi])
 
-IPv6_CHECK_FUNC(getaddrinfo, 
-    AC_DEFINE([HAVE_GETADDRINFO], [], 
-    [Define to 1 if you have the `getaddrinfo' function.]))
-IPv6_CHECK_FUNC(getnameinfo, 
-    AC_DEFINE([HAVE_GETNAMEINFO], [], 
-    [Define to 1 if you have the `getnameinfo' function.]))
+IPv6_CHECK_FUNC(getaddrinfo)
+IPv6_CHECK_FUNC(getnameinfo)
 
 # Check if <syslog.h> defines LOG_PERROR
 AC_MSG_CHECKING([if <syslog.h> defines LOG_PERROR])


--
Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
ume@...  ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.