pkg-config vs X11

Alexander Toresson alexander.toresson at
Thu Oct 16 01:14:21 CEST 2008

On Wed, Oct 15, 2008 at 11:00 PM, Anders F Björklund <afb at> wrote:
> Hi, I'm having some trouble with "xfce4-settings" trying
> to find X11 and friends by using pkg-config on Darwin...
> My trouble is that for older versions like Mac OS X 10.4,
> there are no .pc files for the required libraries - even
> if the libraries themselves are installed in /usr/X11R6.
> So currently I had to patch the configure file for that.
> Is there a way to make it work "out-of-the-box" perhaps ?
> XDT_CHECK_PACKAGE([XI], [xi], [1.0.0])
> XDT_CHECK_PACKAGE([LIBX11], [x11], [1.0.0])
> XDT_CHECK_PACKAGE([XRANDR], [xrandr], [1.1.0])
> Newer versions, like Mac OS X 10.5, do have the pkgconfig
> files (in /usr/X11) so there it should work just fine...
> --anders
> PS. The program seems to work just fine with the libs.

You could always create .pc files for the libraries in question.
If you haven't got them, you have to either do that, or patch the
configure scripts -- XDT_CHECK_PACKAGE relies exclusively on
pkg-config for checking whether a library is installed.

// Alexander

More information about the Xfce4-dev mailing list