Yahoo Groups archive

Milter-greylist

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

Thread

configure and drac

configure and drac

2006-08-10 by Mach Falko GTZ 0150

configure called with --disable-drac leads to -DUSE_DRAC
(... at least at my system and milter-greylist >=2.1.12).

falko

________________________________________________________


GTZ spotlight 2006: KNOWLEDGE POWERS DEVELOPMENT - sharing experience, shaping the future
http://www.gtz.de/spotlight      http://www.gtz.de/jahresthema

RE: [milter-greylist] configure and drac

2006-08-10 by Mach Falko GTZ 0150

a change of line 7386 in configure from

if test "${enable_drac+set}" = set; then

to

if test $enable_drac = yes; then

would solve this problem for me ...


falko

> -----Original Message-----
> From: milter-greylist@yahoogroups.com 
> [mailto:milter-greylist@yahoogroups.com] On Behalf Of Mach 
> Falko GTZ 0150
> Sent: Thursday, August 10, 2006 3:56 PM
> To: milter-greylist@yahoogroups.com
> Subject: [milter-greylist] configure and drac
> 
> configure called with --disable-drac leads to -DUSE_DRAC
> (... at least at my system and milter-greylist >=2.1.12).
> 
> falko
> 
> ________________________________________________________
> 
> 
> GTZ spotlight 2006: KNOWLEDGE POWERS DEVELOPMENT - sharing 
> experience, shaping the future
> http://www.gtz.de/spotlight      http://www.gtz.de/jahresthema
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 

________________________________________________________


GTZ spotlight 2006: KNOWLEDGE POWERS DEVELOPMENT - sharing experience, shaping the future
http://www.gtz.de/spotlight      http://www.gtz.de/jahresthema

Re: [milter-greylist] configure and drac

2006-08-20 by manu@netbsd.org

Mach Falko GTZ 0150 <Falko.Mach@...> wrote:

> a change of line 7386 in configure from
> 
> if test "${enable_drac+set}" = set; then
> 
> to
> 
> if test $enable_drac = yes; then
> 
> would solve this problem for me ...

Anyone understands the problem and can provide a patch against
configure.ac ?

-- 
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
manu@...

Re: [milter-greylist] configure and drac

2006-08-20 by Fabien Tassin

According to manu@...:
> 
> > a change of line 7386 in configure from
> > 
> > if test "${enable_drac+set}" = set; then
> > 
> > to
> > 
> > if test $enable_drac = yes; then
> > 
> > would solve this problem for me ...
> 
> Anyone understands the problem and can provide a patch against
> configure.ac ?

basically, the test '"${enable_drac+set}" = set' just
checks if either --enable-drac or --disable-drac were used.
Then, it assigns CFLAGS inconditionnaly, it's wrong.
Same problem for --enable-dnsrbl, less visible.

Try that:

--- configure.ac.orig   2006-08-20 21:38:26.000000000 +0200
+++ configure.ac        2006-08-20 21:40:14.000000000 +0200
@@ -327,7 +327,9 @@
 # Check for DRAC
 AC_ARG_ENABLE(drac,
        [  --enable-drac        Enable DRAC support],
-       [CFLAGS=$CFLAGS" -DUSE_DRAC"])
+       [if test x$enableval = xyes; then
+               CFLAGS=$CFLAGS" -DUSE_DRAC"
+        fi])
 
 # Check for libpthread. On FreeBSD, the libc_r does the job.
 # On digitalUNIX, libpthreads (with a trailing s) is the library to use
@@ -645,13 +647,15 @@
 # Check for DNSRBL
 AC_ARG_ENABLE(dnsrbl,
        [  --enable-dnsrbl      Enable DNSRBL support],
-       [if test $rdns = yes; then
-               CFLAGS=$CFLAGS" -DUSE_DNSRBL"
-        else
-               echo "--enable-dnsrbl used but DNS resolver is not thread safe";
-               echo "Try installing BIND9 and using --with-libbind, or if you";
-               echo "know what you are doing, use --with-thread-safe-resolver";
-               exit 1;
+       [if test x$enableval = xyes; then
+               if test $rdns = yes; then
+                       CFLAGS=$CFLAGS" -DUSE_DNSRBL"
+               else
+                       echo "--enable-dnsrbl used but DNS resolver is not thread safe";
+                       echo "Try installing BIND9 and using --with-libbind, or if you";
+                       echo "know what you are doing, use --with-thread-safe-resolver";
+                       exit 1;
+               fi
         fi
        ])
 

/Fabien

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.