Subject: bug#14603: 24.3.50; Error while bootstrapping Emacs on Windows

From: Eli Zaretskii <[email-masked]>
Date: Thu, 13 Jun 2013 16:17:12 +0300

> Date: Thu, 13 Jun 2013 11:24:17 +0400
> From: Dmitry Gutov <[email-masked]>
> CC: [email-masked]
> 
> On 13.06.2013 6:43, Eli Zaretskii wrote:
> > Something was wrong during the configure step, because lib/dup2.c is
> > not supposed to be compiled in the MinGW build.  My crystal ball says
> > that somehow the site file nt/mingw-cfg.site was not read by
> > configure.
> 
> The file is there

Its being there does not automatically guarantee that it will be read.

> and I don't see any errors during configure.

That's because the errors are subtle ;-)

Here's one error:

> checking for a BSD-compatible install... /bin/install -c

It should have had this line before the above one:

  configure: loading site script ./nt/mingw-cfg.site

Here's another error:

> checking whether dup2 works... no

It should have said this instead:

  checking whether dup2 works... (cached) yes

And another one:

> checking for library containing acl_get_file... no

which should be

  checking for library containing acl_get_file... (cached) none required

All these, and quite a few more, are arranged by nt/mingw-cfg.site.

How (with what command line) did you invoke the configure script?