monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] configure failing in MinGW


From: Stephen Leake
Subject: Re: [Monotone-devel] configure failing in MinGW
Date: Sun, 21 Oct 2007 06:07:05 -0400
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/22.1 (windows-nt)

Stephen Leake <address@hidden> writes:

> I've just updated to 45c06e2f6d0180bf5d80716d069a76a388f65291, and
> `configure' is failing; I'm using Win32 MinGW.
>
> I did 'autoreconf -i'.
>
> configure is failing on line 11398 (PKG_CHECK_MODULES below):
>
> <snip>
>
> It appears that PKG_PROG_PKG_CONFIG and PKG_CHECK_MODULES are m4
> macros that I don't have?

In cygwin, I found these macros in /usr/share/aclocal/pkg.m4. That
file is part of the pkg-config package.

So if I don't have pkg-config, then I don't have those macros, so they
can't be part of a test for whether I have pkg-config :(.

Neither the MinGW project (http://sourceforge.net/projects/mingw/) nor
the GnuWin32 project (http://sourceforge.net/projects/gnuwin32/) have
packages for pkg-config, so requiring pkg-config would not be simple.

This is the only occurrence of 'PKG_CONFIG' or 'pkg-config' in the
monotone sources. So perhaps this part of monotone configure should
simply ignore pkg-config, as the rest does?

Or we could include pkg.m4 in montone/m4. I've tested that solution;
it allows running 'configure' with MinGW, without
'--without-system-pcre', and the resulting pcre_config.h still has
PCRE_STATIC set to 1. And 'make' succeeds. So this is a workable
solution. 

Or these two macros could be expanded by hand in montone/m4/pcre.m4.
However, there is not much else in pkg.m4, so it would be much cleaner
to just include pkg.m4 in monotone/m4.

pkg-config is an excellent system for assisting in the configuration
of packages. It probably could be ported to MinGW, but we can't do
that before the 0.37 release.

-- 
-- Stephe




reply via email to

[Prev in Thread] Current Thread [Next in Thread]