[Mimedefang] MIMEDefang 2.65 doesn't honor sysconfdir

Jason Englander jason at englanders.us
Fri Sep 12 14:11:51 EDT 2008


On Fri, 12 Sep 2008, Andrea Gabellini wrote:

> Hi,
>
> as usually I compile MD with:
>
> ./configure --sysconfdir=/usr/local/etc --with-confsubdir=mimedefang ....
>
> But 2.65 insist to use /etc/mimedefang as the config directory, and 
> installs default files in it. I recompiled 2.64 (after a make distclean) 
> and it works ok.
>
> I catch a bug or I miss something?
>
> Thanks,
> Andrea

Try this (barely tested) little patch to configure.in
Run make distclean again, apply it, run autoconf, then run configure 
again.


--- configure.in.orig	2008-08-15 14:03:41.000000000 -0400
+++ configure.in	2008-09-12 14:07:03.000000000 -0400
@@ -7,7 +7,12 @@
  dnl supplied on the command line.  Autoconf has no other nice way to set
  dnl the default to other than ${prefix}/etc

-echo $* | fgrep -e '--sysconfdir' > /dev/null 2>&1 || sysconfdir='/etc'
+dnl echo $* | fgrep -e '--sysconfdir' > /dev/null 2>&1 || sysconfdir='/etc'
+AC_MSG_CHECKING([sysconfdir to use])
+if test "$sysconfdir" = '${prefix}/etc' ; then
+   sysconfdir='/etc'
+fi
+AC_MSG_RESULT($sysconfdir)

  AC_PROG_CC                      dnl Find C compiler
  AC_CHECK_PROGS(AR, ar, no)


-- 
Jason Englander <jason at englanders.cc>
394F 7E02 C105 7268 777A  3F5A 0AC0 C618 0675 80CA




More information about the MIMEDefang mailing list