From 7dc034315fa01d4619b98bfe2eceb29f77c6a6bb Mon Sep 17 00:00:00 2001 From: Alex Lin Date: Thu, 12 May 2016 08:55:59 -0500 Subject: [PATCH] ./configure needs to properly enforce java version dependency Had to change the redirect syntax on the mac. refs #234 --- autoconf/configure.ac | 2 +- configure | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/autoconf/configure.ac b/autoconf/configure.ac index 6cf22f32..554bc1b5 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -163,7 +163,7 @@ AS_IF([test "$ac_cv_path_GNUPLOT" = "nognuplot"],AC_MSG_NOTICE([could not find g dnl AX_COMPARE_VERSION requires awk. AC_PROG_AWK AX_PROG_JAVA_CC(javac) -JAVA_VER=`$JAVA_CC -version |& $ac_cv_path_PERL -ne 'print $& if /\d+\.\d+/'` +JAVA_VER=`$JAVA_CC -version 2>&1 | $ac_cv_path_PERL -ne 'print $& if /\d+\.\d+/'` AC_MSG_CHECKING([$JAVA_CC version >= 1.8]) AX_COMPARE_VERSION([$JAVA_VER],[ge],[1.8], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]) diff --git a/configure b/configure index f0f09a7d..868b3085 100755 --- a/configure +++ b/configure @@ -3842,7 +3842,7 @@ if test "$JAVA_CC" = "gcj"; then fi test -z "$JAVA_CC" && as_fn_error $? "no acceptable java compiler found in \$PATH" "$LINENO" 5 -JAVA_VER=`$JAVA_CC -version |& $ac_cv_path_PERL -ne 'print $& if /\d+\.\d+/'` +JAVA_VER=`$JAVA_CC -version 2>&1 | $ac_cv_path_PERL -ne 'print $& if /\d+\.\d+/'` { $as_echo "$as_me:${as_lineno-$LINENO}: checking $JAVA_CC version >= 1.8" >&5 $as_echo_n "checking $JAVA_CC version >= 1.8... " >&6; }