On Wed, 2010-02-10 at 10:34 -0800, Adam Williamson wrote:
> On Wed, 2010-02-10 at 20:42 +0900, Mamoru Tasaka wrote:
> 
> > You should add "AC_CHECK_LIB(X11, XKeysymToString)" to configure.in,
> > for example.
> 
> It's nicer to use pkg-config for libraries which provide .pc files,
> isn't it? X11 does:
> 
> /usr/lib64/pkgconfig/x11.pc

Yes.  If you do

PKG_CHECK_MODULES(FOO, x11)

then FOO_LIBS and FOO_CFLAGS will be defined to the appropriate
libraries and cflags for libX11.  The second argument can be a list:

PKG_CHECK_MODULES(FOO, x11 xext sm)

will add the right things for all of libX11, libXext, and libSM.

- ajax

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Reply via email to