$NetBSD: patch-aa,v 1.5 2004/01/22 10:11:16 jmmv Exp $

--- configure.orig	2003-12-31 19:10:05.000000000 +0100
+++ configure
@@ -22912,6 +22912,7 @@ VRFY="verify-crypt"
 if test x$enable_authentication_scheme != xcrypt -a \
 	x$enable_authentication_scheme != xshadow ; then
 
+if [ "${USE_PAM}" = "yes" ]; then
 for ac_header in security/pam_appl.h
 do
 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
@@ -23061,6 +23062,7 @@ fi
 done
 
 fi
+fi
 
 GDMASKPASS=
 EXTRA_GDMASKPASS_LIBS=
@@ -25357,6 +25359,10 @@ else
    X_SERVER="/usr/X11R6/bin/X"
    X_CONF_PATH="/usr/bin/X11:/usr/X11R6/bin:/usr/local/bin:/opt/X11R6/bin"
 fi
+X_PATH="${X11BASE}/bin"
+X_SERVER_PATH="${X11BASE}/bin"
+X_SERVER="${X11BASE}/bin/X"
+X_CONF_PATH="${X11BASE}/bin"
 
 
 
@@ -25406,6 +25412,8 @@ prefix=$old_prefix
 exec_prefix=$old_exec_prefix
 
                                                                                                                                                                                                                                                                                                   ac_config_files="$ac_config_files Makefile daemon/Makefile gui/Makefile gui/greeter/Makefile gui/greeter/themes/Makefile gui/greeter/themes/circles/Makefile gui/greeter/themes/happygnome/Makefile gui/greeter/themes/happygnome-list/Makefile gui/modules/Makefile gui/modules/AccessKeyMouseEvents gui/modules/AccessDwellMouseEvents utils/Makefile pixmaps/Makefile config/Makefile po/Makefile.in vicious-extensions/Makefile docs/Makefile docs/C/Makefile config/gdm.conf config/Xsession config/Default config/PreSession config/PostSession daemon/gdm gdm-stop gdm-restart gdm-safe-restart gdmsetup-security gdm.spec"
+# This is to avoid GNU make; may not be needed on a later version..
+ac_config_files="$ac_config_files config/default.desktop config/gnome.desktop config/CDE.desktop"
 cat >confcache <<\_ACEOF
 # This file is a shell script that caches the results of configure
 # tests run on this system so they can be shared between configure
