$NetBSD: patch-aa,v 1.6 2007/09/14 15:04:49 tnn Exp $

--- configure.in.orig	2007-09-14 16:36:00.000000000 +0200
+++ configure.in
@@ -58,7 +58,7 @@ esac
 
 sawfishdir='${datadir}/sawfish'
 lispdir='${sawfishdir}/${version}/lisp'
-localedir='${datadir}/locale'
+localedir='${prefix}/${PKGLOCALEDIR}/locale'
 sawfishexecdir='${libexecdir}/sawfish/${version}/${host_type}'
 
 dnl Checks for programs.
@@ -159,7 +159,7 @@ cat >conftest <<EOF
   (error
     (throw 'quit 1)))
 EOF
-if REP_GTK_DONT_INITIALIZE=1 rep ./conftest 2>&5; then
+if env REP_GTK_DONT_INITIALIZE=1 ${REP_ENV_PKGSRC} rep ./conftest 2>&5; then
   AC_MSG_RESULT([yes])
 else
   AC_MSG_RESULT([no])
@@ -264,7 +264,7 @@ AC_ARG_ENABLE(themer,
 if test "$enable_themer" = yes; then
   dnl configure redirects &5 to config.log
   AC_MSG_CHECKING([for rep-gtk libglade wrapper])
-  if REP_GTK_DONT_INITIALIZE=1 rep --batch -l gui.gtk.libglade 2>&5; then 
+  if env REP_GTK_DONT_INITIALIZE=1 ${REP_ENV_PKGSRC} rep --batch -l gui.gtk.libglade 2>&5; then 
     AC_MSG_RESULT([yes])
     add_subdir "themer"
   else 
@@ -280,7 +280,7 @@ AC_ARG_ENABLE(gnome-widgets,
 
 if test "$enable_gnome_widgets" != "no"; then
   AC_MSG_CHECKING([for rep-gtk GNOME wrappers])
-  if REP_GTK_DONT_INITIALIZE=1 rep --batch -l gui.gtk-2.gnome-ui 2>&5; then 
+  if env REP_GTK_DONT_INITIALIZE=1 ${REP_ENV_PKGSRC} rep --batch -l gui.gtk-2.gnome-ui 2>&5; then 
     AC_MSG_RESULT([yes])
     REP_GTK_GNOME=yes
   else 
