File mawk-1.3.4-fix-make-check-path-handling.patch of Package mawk

diff -urN mawk-1.3.4.orig/Makefile.in mawk-1.3.4/Makefile.in
--- mawk-1.3.4.orig/Makefile.in	2009-12-18 00:14:20.000000000 +0100
+++ mawk-1.3.4/Makefile.in	2010-02-16 11:44:18.000000000 +0100
@@ -67,13 +67,11 @@
 $(PROG) : $(OBJS)
 	@ECHO_LD@$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
 
-TESTPATH= PATH=`pwd`:`cd $(srcdir);pwd`/test:/bin:/usr/bin; export PATH
-
 mawk_test :  $(PROG)  # test that we have a sane mawk
-	@sh -c '$(TESTPATH); SRCDIR=`cd $(srcdir);pwd`; cd $(srcdir)/test ; echo "** mawktest $$SRCDIR"; mawktest $$SRCDIR'
+	@sh -c 'cd $(srcdir)/test ; echo "** mawktest"; ./mawktest'
 
 fpe_test :  $(PROG) # test FPEs are handled OK
-	@sh -c '$(TESTPATH); cd $(srcdir)/test ; echo "** fpe_test"; fpe_test'
+	@sh -c 'cd $(srcdir)/test ; echo "** fpe_test"; ./fpe_test'
 
 parse.c  : parse.y
 	@echo  expect 4 shift/reduce conflicts
diff -urN mawk-1.3.4.orig/test/fpe_test mawk-1.3.4/test/fpe_test
--- mawk-1.3.4.orig/test/fpe_test	2009-12-19 17:18:19.000000000 +0100
+++ mawk-1.3.4/test/fpe_test	2010-02-16 11:45:16.000000000 +0100
@@ -12,11 +12,12 @@
 # recognize NAN printed as ? for hpux
 #
 
-PROG=mawk
+PROG="${MAWK:-../mawk}"
 
-echo "testing floating point exception handling"
+PATH=/bin:/usr/bin
+export PATH
 
-PATH=.:$PATH
+echo "testing floating point exception handling"
 
 STDOUT=${TMPDIR-/tmp}/mawktest$$
 
diff -urN mawk-1.3.4.orig/test/mawktest mawk-1.3.4/test/mawktest
--- mawk-1.3.4.orig/test/mawktest	2009-12-17 01:21:50.000000000 +0100
+++ mawk-1.3.4/test/mawktest	2010-02-16 11:45:47.000000000 +0100
@@ -9,7 +9,10 @@
 # It needs to be run from  mawk/test
 # and mawk needs to be in mawk/test or in PATH
 
-PROG=mawk
+PROG="${MAWK:-../mawk}"
+
+PATH=/bin:/usr/bin
+export PATH
 
 MAWKBINMODE=7
 export MAWKBINMODE
@@ -27,8 +30,6 @@
 
 trap 'echo mawk_test failed ; rm -f $STDOUT ; exit 1'  0
 
-PATH=.:$PATH
-
 # find out which mawk we're testing
 $PROG -W version