$NetBSD: patch-ae,v 1.22 2010/05/21 06:34:23 adam Exp $

--- configure.orig	2010-04-29 17:53:45.000000000 +0000
+++ configure
@@ -20275,14 +20275,14 @@ if test "x$ac_cv_file__usr_include_libxm
   CFLAGS="$CFLAGS -I/usr/include/libxml2/"
 else
 
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/local/include/libxml2/libxml" >&5
-$as_echo_n "checking for /usr/local/include/libxml2/libxml... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${PREFIX}/include/libxml2/libxml" >&5
+$as_echo_n "checking for ${PREFIX}/include/libxml2/libxml... " >&6; }
 if test "${ac_cv_file__usr_local_include_libxml2_libxml+set}" = set; then :
   $as_echo_n "(cached) " >&6
 else
   test "$cross_compiling" = yes &&
   as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
-if test -r "/usr/local/include/libxml2/libxml"; then
+if test -r "${PREFIX}/include/libxml2/libxml"; then
   ac_cv_file__usr_local_include_libxml2_libxml=yes
 else
   ac_cv_file__usr_local_include_libxml2_libxml=no
@@ -20291,7 +20291,7 @@ fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_local_include_libxml2_libxml" >&5
 $as_echo "$ac_cv_file__usr_local_include_libxml2_libxml" >&6; }
 if test "x$ac_cv_file__usr_local_include_libxml2_libxml" = x""yes; then :
-  CFLAGS="$CFLAGS -I/usr/local/include -I/usr/local/include/libxml2/"
+  CFLAGS="$CFLAGS -I${PREFIX}/include -I${PREFIX}/include/libxml2/"
 else
   $as_echo "#define _NO_LIBXML 1" >>confdefs.h
 
@@ -22930,7 +22930,7 @@ if test "$gww_has_gettext" = "yes" >/dev
 
  cat </dev/null >$ac_confdir/po/Makefile.in
  echo 'prefix = @prefix@' >> $ac_confdir/po/Makefile.in
- echo 'localedir = $(prefix)/share/locale' >> $ac_confdir/po/Makefile.in
+ echo 'localedir = ${PREFIX}/${PKGLOCALEDIR}/locale' >> $ac_confdir/po/Makefile.in
  echo 'INSTALL = @INSTALL@' >> $ac_confdir/po/Makefile.in
  echo 'INSTALL_DATA = @INSTALL_DATA@' >> $ac_confdir/po/Makefile.in
  echo '' >> $ac_confdir/po/Makefile.in
