<commit_before>--- common/autoconf/basics.m4.orig
+++ common/autoconf/basics.m4
@@ -555,10 +555,12 @@ AC_DEFUN([BASIC_CHECK_GNU_MAKE],
   # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky.
   if test "x$MAKE" != x; then
     # User has supplied a make, test it.
-    if test ! -f "$MAKE"; then
-      AC_MSG_ERROR([The specified make (by MAKE=$MAKE) is not found.])
+    if test -a `dirname "$MAKE"` = "." -a ! -f "$MAKE"; then
+      AC_PATH_PROGS(CHECK_MAKE, $MAKE)
+    else
+      CHECK_MAKE="${MAKE}"
     fi
-    BASIC_CHECK_MAKE_VERSION("$MAKE", [user supplied MAKE=$MAKE])
+    BASIC_CHECK_MAKE_VERSION("$CHECK_MAKE", [user supplied MAKE=$MAKE])
     if test "x$FOUND_MAKE" = x; then
       AC_MSG_ERROR([The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer.])
     fi<commit_msg>openjdk-8: fix MAKE detection patch<commit_after>--- common/autoconf/basics.m4.orig
+++ common/autoconf/basics.m4
@@ -555,10 +555,12 @@ AC_DEFUN([BASIC_CHECK_GNU_MAKE],
   # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky.
   if test "x$MAKE" != x; then
     # User has supplied a make, test it.
-    if test ! -f "$MAKE"; then
-      AC_MSG_ERROR([The specified make (by MAKE=$MAKE) is not found.])
+    if test `dirname "$MAKE"` = "." && ! test -f "$MAKE"; then
+      AC_PATH_PROGS(CHECK_MAKE, $MAKE)
+    else
+      CHECK_MAKE="${MAKE}"
     fi
-    BASIC_CHECK_MAKE_VERSION("$MAKE", [user supplied MAKE=$MAKE])
+    BASIC_CHECK_MAKE_VERSION("$CHECK_MAKE", [user supplied MAKE=$MAKE])
     if test "x$FOUND_MAKE" = x; then
       AC_MSG_ERROR([The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer.])
     fi
{'fraction_non_alphanumeric': 0.14906103286384975, 'fraction_numerical': 0.018192488262910797, 'mean_word_length': 3.3494897959183674, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5045286', 'n_tokens_mistral': 667, 'n_tokens_neox': 595, 'n_words': 178}