[Xlibs] Steps to compile xlibs

Luciano Montanaro mikelima@virgilio.it
Thu, 6 Nov 2003 12:35:21 +0100


On Wednesday 05 November 2003 19:14, Luciano Montanaro wrote:
> I checked out the xlibs module to try it out. While I,
> more or less, managed to obtain a libX11 file out of it, It still has
> problems. I'd like to test the library in an "embeddish" envirionment,
> so I have to cross compile it. However, I'm having difficulties in a
> "simple", "localhost" compilation.
>
> What I'm doing now is:
>
> cd xlibs/Xproto
> ./autogen.sh && ./configure --prefix=/usr/local/X11R6
> cd xlibs/XExtensions
> ./autogen.sh && ./configure --prefix=/usr/local/X11R6
> cd xlibs/xtrans
> ./autogen.sh && ./configure --prefix=/usr/local/X11R6
> cd xlibs/Xau
> ./autogen.sh
>
> this fails with the following error:
>
> ./configure: line 18663: syntax error near unexpected token `XAU,'
> ./configure: line 18663: `PKG_CHECK_MODULES(XAU, xproto)'
>
>
> tools used are the following:
> autoconf (GNU Autoconf) 2.57
> automake (GNU automake) 1.7.6
> ltmain.sh (GNU libtool) 1.5 (1.1220.2.1 2003/04/14 22:48:00)

It happened that I was missing the pkgconfig package.
That let me go a bit further, but I had to change a bit the configure.ac file.
Without the following patch, the xtrans include directory is not added to the
compiler command line.

Luciano

Index: configure.ac
===================================================================
RCS file: /cvs/xlibs/X11/configure.ac,v
retrieving revision 1.17
diff -p -u -r1.17 configure.ac
--- configure.ac        1 Nov 2003 09:11:49 -0000       1.17
+++ configure.ac        6 Nov 2003 11:34:14 -0000
@@ -168,6 +168,7 @@ fi
 X11_DATADIR='${datadir}/X11'

 AC_SUBST(X11_DATADIR)
+AC_SUBST(X11_CFLAGS)

 AC_OUTPUT([Makefile
            include/Makefile




-- 
- I want a  Software  Patents  Free  Europe  too!  And  you? -
--------------------------------------------------------------
 EuropeSwPatentFree - http://EuropeSwPatentFree.internautas.org 
--------------------------------------------------------------