Compiling & installing programs as user: finding headers

Federico Zenith <[email protected]>
Newsgroups gmane.comp.gnu.utils
Organization Max-Planck-Institut
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,
I have a problem with the configuration of a Autotools-powered package
(in this example Wine 1.0, but I have the same problem with other ones).

My situation is that I cannot be root on my system, and my
administrators are a bit slow in answering to software-installation
requests (bureaucracy, I suppose), so I have to compile & install some
programs as a user.

Wine, specifically, can make use of a few libraries that I do not have
on my system; one of these is libxml2. So, I compiled and installed
libxml2 thusly:

libxml2-2.6.32 $ ./configure --prefix=/home/me/usr
libxml2-2.6.32 $ make
libxml2-2.6.32 $ make install

and everything looks just fine.

However, when I try to configure Wine, the configure script does not
notice the presence of libxml2.

[...]
checking libxml/parser.h usability... no
checking libxml/parser.h presence... no
checking for libxml/parser.h... no
[...]

But, I do have /home/me/usr/include/libxml2/libxml/parser.h, and
/home/me/usr was indeed specified as a prefix to the configure script.

1) I also do have /home/me/usr/bin in my PATH; maybe there is a similar
variable for includes?
2) I also tried with LDFLAGS, as in:
wine-1.0 $ LDFLAGS="-L/home/me/usr/lib" ./configure --prefix=/home/me/usr/
   but that does not change anything, since LDFLAGS is only for the
linker, not for the configure script.

So, how do I tell the configure script to look up headers where they are?

Thanks in advance for any suggestions!
- -Federico
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFIW10dBIpu+y7DlLcRAqS7AJ4mprO2ibOlRghGymfXkum9+ePISACeI3HB
0HlqJuV8mAZACC6hPGGPe0U=
=fgWi
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.