<<< Date Index >>>     <<< Thread Index >>>

Re: [1.5.9 and Cygwin] Build problem related to HAVE_CONFIG_H



On Monday, 14 March 2005 at 20:58, Brendan Cully wrote:
> On Monday, 14 March 2005 at 17:02, Rudy Taraschi wrote:
> > Hi folks,
> > 
> > I just tried building mutt 1.5.9 under Cygwin and came across the
> > following buglet.  It seems that the -DHAVE_CONFIG_H is *NOT* passed
> > to the makedoc rule in the Makefile (see below).  If I compile this
> > step manually, then the make proceeds without incident to the end.
> > FYI: same problem as in 1.5.8.  Cygwin environment with gcc 3.3.3.
> 
> I can't reproduce this either with CVS or the 1.5.9 tarball. All the
> defines seem to be getting passed in here. Is this from the tarball
> or have you run autoconf/automake yourself? And if the latter, what
> versions are they?

I think I've figured out what's happening: on cygwin, the program
targets have .exe at the end. So the Makefile has a target for
makedoc.exe, but not makedoc. So when make in the doc directory needs
makedoc, it does (cd ..; make makedoc), can't find a rule for
makedoc, and uses a default rule.

Try the attached patch. Converting doc to automake might be
worthwhile.
Index: doc/Makefile.in
===================================================================
RCS file: /home/roessler/cvs/mutt/doc/Makefile.in,v
retrieving revision 3.5
diff -u -p -r3.5 Makefile.in
--- doc/Makefile.in     15 Feb 2005 19:28:24 -0000      3.5
+++ doc/Makefile.in     15 Mar 2005 07:33:10 -0000
@@ -21,6 +21,7 @@ VPATH = @srcdir@
 INSTALL = @INSTALL@
 CC = @CC@
 CPP = @CPP@
+EXEEXT = @EXEEXT@
 XCPPFLAGS = -I. @CPPFLAGS@
 CFLAGS = @CFLAGS@ $(XCPPFLAGS)
 LDFLAGS = @LDFLAGS@
@@ -150,7 +151,7 @@ dist distdir: Makefile $(DISTFILES)
        done
 
 ../makedoc: $(top_srcdir)/makedoc.c
-       (cd .. && $(MAKE) makedoc)
+       (cd .. && $(MAKE) makedoc$(EXEEXT))
 
 # hack around autoconf mixing up patterns.
 at = @

Attachment: pgp8w3x3ewac2.pgp
Description: PGP signature