--- config_office/configure.in.orig 2009-01-09 08:47:42.000000000 +0100 +++ config_office/configure.in 2009-01-09 09:42:18.000000000 +0100 @@ -4348,7 +4348,10 @@ fi AC_SUBST(XINC) if test "$x_libraries" = "default_x_libraries"; then - XLIB="/usr/lib" + XLIB=`$PKG_CONFIG --variable=libdir x11` + if test "x$XLIB" = x; then + XLIB="/usr/lib" + fi else XLIB="$x_libraries" fi