--- gnucash-2.2.5/src/gnome-utils/Makefile.am~	2008-03-02 14:24:57.000000000 +0100
+++ gnucash-2.2.5/src/gnome-utils/Makefile.am	2008-06-02 19:52:57.000000000 +0200
@@ -193,7 +193,8 @@
   ${QOF_LIBS} \
   ${GOFFICE_LIBS} \
   ${REGEX_LIBS} \
-  ${LIBXML2_LIBS}
+  ${LIBXML2_LIBS} \
+  -lX11
 
 if BUILDING_FROM_SVN
 swig-gnome-utils.c: gnome-utils.i gnc-html.h \
