[PATCH libXt 2/2] Add XtErrorDB directory to pkg-config file.

Gaetan Nadon memsize at videotron.ca
Thu Sep 8 15:03:18 PDT 2011


On Thu, 2011-09-08 at 16:44 +0200, Egbert Eich wrote:

> Should anyone ever desire to supply this file externally
> it's location is specified in the pkg-config file.
> 
> Signed-off-by: Egbert Eich <eich at freedesktop.org>
> ---
>  xt.pc.in |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/xt.pc.in b/xt.pc.in
> index 28ce24a..660b2a9 100644
> --- a/xt.pc.in
> +++ b/xt.pc.in
> @@ -3,6 +3,7 @@ exec_prefix=@exec_prefix@
>  libdir=@libdir@
>  includedir=@includedir@
>  appdefaultdir=@appdefaultdir@
> +errordbdir=@ERRORDBDIR@

This can only be done if you use AX_DEFINE_DIR. It does "flatten" the
nested variables:

        prefix=/home/nadon/xorg/src/inst
        exec_prefix=${prefix}
        libdir=${exec_prefix}/lib
        includedir=${prefix}/include


However it is not recommended by Autoconf. The errordb path would be
"hardcoded" at config time but the prefix can be changed at make time.

Without using AX_DEFINE_DIR, you need:

        datarootdir=@datarootdir@
        datadir=@datadir@
        errordbdir=@ERRORDBDIR@


Which expands to:

        datarootdir=${prefix}/share
        datadir=${datarootdir}
        errordbdir=${datarootdir}/X11
        
>  
>  Name: Xt
>  Description: X Toolkit Library



You may also leave it as is and I can clean it later with appdefaultdir

Reviewed-by: Gaetan Nadon <memsize at videotron.ca>



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg-devel/attachments/20110908/e52bb44f/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.x.org/archives/xorg-devel/attachments/20110908/e52bb44f/attachment.pgp>


More information about the xorg-devel mailing list