Re: gtk+ configure can't find cairo-pdf



On Sat, 2007-06-09 at 11:51 -0400, Owen Taylor wrote:
> The ^A is actually a bash problem on Windows (or maybe specifically
> with the msys version). It was a couple of years ago that I ran into
> it,
> so I don't remember the details, but it was something involving the
> newline stripping behavior of backticks (``) when run on the output of
> pkg-config.
> 
> I also don't remember how I worked around it ... I think I wrote a 
> wrapper script around pgk-config that either added or removed a
> newline.
> 
> You might want to check that you have the newest versions of msys and
> mingw as a first step. 

Try this script and save it as pkg-config.sh:

#!/bin/sh
if pkg-config "$@" > /dev/null 2>&1 ; then
res=true
else
res=false
fi
pkg-config "$@" | tr -d \\r && $res

Then set an environment var PKG_CONFIG=/path/to/pkg-config.sh




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