Skip to content

Commit 62fd7aa

Browse files
authored
Merge pull request #444 from keithc-ca/unrecognised
Fix checking for unrecognised JVM options
2 parents 60b93c7 + 751f417 commit 62fd7aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

make/autoconf/util.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ AC_DEFUN([UTIL_ADD_JVM_ARG_IF_OK],
333333
$ECHO "Check if jvm arg is ok: $1" >&AS_MESSAGE_LOG_FD
334334
$ECHO "Command: $3 $1 -version" >&AS_MESSAGE_LOG_FD
335335
OUTPUT=`$3 $1 $USER_BOOT_JDK_OPTIONS -version 2>&1`
336-
FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i "warn\|unrecognised"`
336+
FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -E -i "warn|unrecognised"`
337337
FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""`
338338
if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
339339
$2="[$]$2 $1"

0 commit comments

Comments
 (0)