--- configure.ac.orig	2005-07-28 06:48:39.000000000 +1000
+++ configure.ac	2010-01-09 05:46:40.000000000 +1100
@@ -56,7 +56,7 @@ dnl Initialize automake stuff
 AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define)
 
 # Specify a configuration file
-AM_CONFIG_HEADER(wmfconfig.h)
+AC_CONFIG_HEADERS([wmfconfig.h])
 
 AH_TOP([
 #ifndef LIBWMF_CONFIG_H
@@ -742,14 +742,6 @@
 GDK_PIXBUF_LIBS=""
 GDK_PIXBUF_DIR=""
 
-if test $LIBWMF_BUILDSTYLE != lite; then
-	PKG_CHECK_MODULES(GDK_PIXBUF,gdk-pixbuf-2.0 >= 2.1.2,[
-		GTK_VERSION=`$PKG_CONFIG --variable=gtk_binary_version gtk+-2.0`
-		GDK_PIXBUF_DIR="gtk-2.0/$GTK_VERSION/loaders"
-		wmf_gdk_pixbuf=yes
-	],[	wmf_gdk_pixbuf=no
-	])
-fi
 AM_CONDITIONAL(LIBWMF_GDK_PIXBUF,[test $wmf_gdk_pixbuf = yes])
 
 AC_SUBST(GDK_PIXBUF_CFLAGS)