Re: gtk+ configure can't find cairo-pdf
- Date: Sat, 09 Jun 2007 11:29:11 -0500
- From: Cody Russell <bratsche@xxxxxxxxx>
- Subject: 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
_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-devel-list