--- /dev/null
+diff -purN xhost-1.0.2.orig/configure xhost-1.0.2/configure
+--- xhost-1.0.2.orig/configure 2010-01-27 13:14:51.000000000 +0100
++++ xhost-1.0.2/configure 2010-01-27 13:19:37.000000000 +0100
+@@ -3597,6 +3597,7 @@ pkg_failed=no
+ { echo "$as_me:$LINENO: checking for XHOST" >&5
+ echo $ECHO_N "checking for XHOST... $ECHO_C" >&6; }
+
++if ! test -n "$XHOST_LIBS"; then
+ if test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xmuu xau\"") >&5
+@@ -3625,6 +3626,9 @@ fi
+ else
+ pkg_failed=untried
+ fi
++else
++ pkg_failed=no
++fi
+
+ if test $pkg_failed = yes; then
+ XHOST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11 xmuu xau"`