$NetBSD: patch-ac,v 1.4 2004/09/20 07:58:20 adam Exp $

--- configure.orig	2004-06-03 21:51:27.000000000 +0000
+++ configure
@@ -2405,7 +2405,7 @@ test -z "$INSTALL_DATA" && INSTALL_DATA=
 
 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
-set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
+set dummy `basename ${MAKE-make}`; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
