>>>> "Heiko" == Heiko Muenkel
<muenkel(a)tnt.uni-hannover.de> writes:
Martin> Does a very simple `./configure; make' work?
Heiko> No. The reason for using --site-libraries=${LD_LIBRARY_PATH} and
Heiko> --site-includes=${C_INCLUDE_PATH} is, that I've an old version of
Heiko> libpng in /usr/X11R6/* and a newer one at another place. In such cases
Heiko> it seems to be hard under Linux (it's no problem under Solaris) to get
Heiko> the right versions. One reason is the file /etc/ld.so.conf, which
Heiko> overwrites the settings of the LD_LIBRARY_PATH. Therefore it is hard
Heiko> (or impossible?) for a normal user to install a XEmacs with private
Heiko> versions of needed libraries like the png. I got the right version
Heiko> during the installation by using --site-includes and --site-libraries,
Heiko> but I'm not sure, which version I'll get during runing the XEmacs. Any
Heiko> ideas how to test that?
I recommend building a NON-shared personal version of libpng, then
using --site-includes and --site-libraries to link with that. No
runtime problems that way. Most external libraries have an option to
be built non-shared.
If you DO decide to link with a shared library, you can use the poorly
named --site-runtime-libraries flag to specify the exact path to
search at runtime. Under Linux, there may be some disagreement in
different distributions about whether the RPATH baked into the
executable overrides the system default in /etc/ld.so.conf.
Martin