gprofng: fix typo in configure.ac

Message ID 20221110224002.3798725-1-vladimir.mezentsev@oracle.com
State Accepted
Headers
Series gprofng: fix typo in configure.ac |

Checks

Context Check Description
snail/binutils-gdb-check success Github commit url

Commit Message

Vladimir Mezentsev Nov. 10, 2022, 10:40 p.m. UTC
  From: Vladimir Mezentsev <vladimir.mezentsev@oracle.com>

gprofng/ChangeLog
2022-11-10  Vladimir Mezentsev  <vladimir.mezentsev@oracle.com>

	* configure.ac: Fix typo in redirect operator.
	* configure: Rebuild.
---
 gprofng/configure    | 2 +-
 gprofng/configure.ac | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
  

Comments

Mike Frysinger Nov. 11, 2022, 12:49 a.m. UTC | #1
On 10 Nov 2022 14:40, Vladimir Mezentsev via Binutils wrote:
> -      if AC_TRY_COMMAND($JAVAC configtest.java &AS_MESSAGE_LOG_FD 2>&1); then
> +      if AC_TRY_COMMAND($JAVAC configtest.java >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD); then

looks like an obvious fix, so go for it
-mike
  

Patch

diff --git a/gprofng/configure b/gprofng/configure
index c90e36cb1cf..8ad5ebd67be 100755
--- a/gprofng/configure
+++ b/gprofng/configure
@@ -16572,7 +16572,7 @@  class Simple{
   }
 }
 EOF
-      if { ac_try='$JAVAC configtest.java &5 2>&1'
+      if { ac_try='$JAVAC configtest.java >&5 2>&5'
   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   (eval $ac_try) 2>&5
   ac_status=$?
diff --git a/gprofng/configure.ac b/gprofng/configure.ac
index 2d7640dfdc8..bbad953cf4f 100644
--- a/gprofng/configure.ac
+++ b/gprofng/configure.ac
@@ -142,7 +142,7 @@  class Simple{
   }
 }
 EOF
-      if AC_TRY_COMMAND($JAVAC configtest.java &AS_MESSAGE_LOG_FD 2>&1); then
+      if AC_TRY_COMMAND($JAVAC configtest.java >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD); then
 	GPROFNG_BROKEN_JAVAC=no
       else
 	GPROFNG_BROKEN_JAVAC=yes