diff -Naur xbill-2.1/configure xbill-2.1-blambi/configure
--- xbill-2.1/configure	2001-10-17 05:16:48.000000000 +0200
+++ xbill-2.1-blambi/configure	2006-02-26 09:24:41.000000000 +0100
@@ -2437,7 +2437,7 @@
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   ac_save_LIBS="$LIBS"
-LIBS="-lXaw -lXmu -lXt -lXpm -lX11 $LIBS"
+LIBS="-lXaw -lXmu -lXt -lX11 $LIBS"
 cat > conftest.$ac_ext <<EOF
 #line 2443 "configure"
 #include "confdefs.h"
@@ -2491,7 +2491,7 @@
 fi
 
 if test "X$motif" = X"yes" -o "X$athena" = X"yes"; then
-	WIDGET_LIBS="$WIDGET_LIBS -lXt -lX11"
+	WIDGET_LIBS="$WIDGET_LIBS -lXt -lXpm -lX11"
 	WIDGET_OBJS="$WIDGET_OBJS x11.o"
 	
 	
@@ -2505,8 +2505,8 @@
 
 
 if test "$enable_gtk" != "no"; then
-	# Extract the first word of "gtk-config", so it can be a program name with args.
-set dummy gtk-config; ac_word=$2
+	# Extract the first word of "pkg-config", so it can be a program name with args.
+set dummy pkg-config; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 echo "configure:2512: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_GTKCONFIG'+set}'`\" = set"; then
@@ -2541,8 +2541,8 @@
 #define USE_GTK 1
 EOF
 
-		GTK_CFLAGS="`gtk-config --cflags`"
-		WIDGET_LIBS="$WIDGET_LIBS `gtk-config --libs`"
+		GTK_CFLAGS="`pkg-config --cflags gtk+-2.0`"
+		WIDGET_LIBS="$WIDGET_LIBS `pkg-config --libs gtk+-2.0`"
 		WIDGET_OBJS="$WIDGET_OBJS gtk.o"
 	fi
 fi
diff -Naur xbill-2.1/configure.in xbill-2.1-blambi/configure.in
--- xbill-2.1/configure.in	2001-10-17 05:16:48.000000000 +0200
+++ xbill-2.1-blambi/configure.in	2006-02-26 09:24:20.000000000 +0100
@@ -88,12 +88,12 @@
 	[  --enable-gtk            build with the GTK widget set])
 
 if test "$enable_gtk" != "no"; then
-	AC_CHECK_PROG(GTKCONFIG, gtk-config, yes, no)
+	AC_CHECK_PROG(GTKCONFIG, pkg-config, yes, no)
 
 	if test "X$GTKCONFIG" = X"yes"; then
 		AC_DEFINE(USE_GTK)
-		GTK_CFLAGS="`gtk-config --cflags`"
-		WIDGET_LIBS="$WIDGET_LIBS `gtk-config --libs`"
+		GTK_CFLAGS="`pkg-config --cflags gtk+-2.0`"
+		WIDGET_LIBS="$WIDGET_LIBS `pkg-config --libs gtk+-2.0`"
 		WIDGET_OBJS="$WIDGET_OBJS gtk.o"
 	fi
 fi
