[cairo] [PATCH] OS/2 backend support files

Jonathon Jongsma jonathon.jongsma at gmail.com
Tue Aug 8 10:08:21 PDT 2006

On 8/8/06, Peter Weilbacher <mozilla at weilbacher.org> wrote:
> Well, the "solution" for me was that I managed to install pkg-config on
> OS/2 and tinker with the respective .pc files until I got configure to
> run through.
> But actually, there has to be another way to make the _{CFLAGS,LIBS}
> variables consistently uppercased, because ./configure --help lists lots
> of other variables that are all uppercase, too (POPPLER_* and FREETYPE_*
> for example). I think I understand too little of autoconf to determine
> why it works for them but not for png_* and xlib_xrender_*.

If I'm not mistaken, it's simply because the pkg-config checks are
written that way.  Take a look at the following snippets from

PKG_CHECK_MODULES(POPPLER, poppler-glib >= 0.4.1 pango gtk+-2.0,
[test_pdf=yes], [test_pdf=no])

Notice the first argument to PKG_CHECK_MODULES is capitalized.  now
take a look at the png check:


Notice the first argument is lowercased.  The PKG_CHECK_MODULES macro
uses the first argument to construct the variables by just appending
_LIBS or _CFLAGS to them.  I don't know if there's another reason why
the 'png' can't be upper-cased here, but you might try playing around
with it.


More information about the cairo mailing list