$OpenBSD: patch-configure,v 1.1 2008/10/09 16:56:12 ajacoutot Exp $
--- configure.orig	Tue Oct  7 17:37:23 2008
+++ configure	Tue Oct  7 17:37:15 2008
@@ -7397,12 +7397,12 @@ if test -n "$libpng12_CFLAGS"; then
     pkg_cv_libpng12_CFLAGS="$libpng12_CFLAGS"
  elif test -n "$PKG_CONFIG"; then
     if test -n "$PKG_CONFIG" && \
-    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng12 >= 1.2.0\"") >&5
-  ($PKG_CONFIG --exists --print-errors "libpng12 >= 1.2.0") 2>&5
+    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.2.0\"") >&5
+  ($PKG_CONFIG --exists --print-errors "libpng >= 1.2.0") 2>&5
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); }; then
-  pkg_cv_libpng12_CFLAGS=`$PKG_CONFIG --cflags "libpng12 >= 1.2.0" 2>/dev/null`
+  pkg_cv_libpng12_CFLAGS=`$PKG_CONFIG --cflags "libpng >= 1.2.0" 2>/dev/null`
 else
   pkg_failed=yes
 fi
@@ -7413,12 +7413,12 @@ if test -n "$libpng12_LIBS"; then
     pkg_cv_libpng12_LIBS="$libpng12_LIBS"
  elif test -n "$PKG_CONFIG"; then
     if test -n "$PKG_CONFIG" && \
-    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng12 >= 1.2.0\"") >&5
-  ($PKG_CONFIG --exists --print-errors "libpng12 >= 1.2.0") 2>&5
+    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.2.0\"") >&5
+  ($PKG_CONFIG --exists --print-errors "libpng >= 1.2.0") 2>&5
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); }; then
-  pkg_cv_libpng12_LIBS=`$PKG_CONFIG --libs "libpng12 >= 1.2.0" 2>/dev/null`
+  pkg_cv_libpng12_LIBS=`$PKG_CONFIG --libs "libpng >= 1.2.0" 2>/dev/null`
 else
   pkg_failed=yes
 fi
