-lX11 is added in a wrong place

Pavel.Roskin at ecsoft.co.uk Pavel.Roskin at ecsoft.co.uk
Thu Jul 16 08:56:13 PDT 1998




Hello!

I haven't yet successfully compiled Kaffe on HP-UX (hppa1.0), but I beleive
that following patch could be useful for many systems. AC_PATH_X macro in
configure.in may return $have_x==yes but $x_libraries empty, if no
additional path is necessary for gcc. In this case we still need -lX11in
$X_LIBRARIES because compiling agains libX11 is still needed. However, in
the unlikely situation if $have_x==no but $x_libraries is not empty we
don't need -lX11. Because of that we should apply following patch:
=======================================
--- kaffe-snap/configure.in.orig        Wed Jul 15 00:49:44 1998
+++ kaffe-snap/configure.in     Thu Jul 16 16:09:07 1998
@@ -412,10 +412,10 @@
 AC_PATH_X
 if test "$have_x" = "yes" ; then
        AC_DEFINE(HAVE_X)
+       X_LIBRARIES="$X_LIBRARIES -lX11"
 fi
 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
        X_LIBRARIES=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
-       X_LIBRARIES="$X_LIBRARIES -lX11"
 fi
 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
        X_INCLUDES=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
=======================================

Pavel Roskin
ECsoft
London, UK




More information about the kaffe mailing list