From e1c160187a186a1f756b3f6d19d99915e0e91c3d Mon Sep 17 00:00:00 2001
From: Sergey Kosukhin <sergey.kosukhin@mpimet.mpg.de>
Date: Wed, 1 Feb 2023 17:56:52 +0100
Subject: [PATCH] Fix silent configuration.

---
 configure         | 4 ++--
 configure.ac      | 2 +-
 m4/acx_options.m4 | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/configure b/configure
index 3750943b1..46a1a79f9 100755
--- a/configure
+++ b/configure
@@ -28585,7 +28585,7 @@ ac_compile="$ac_pwd/libtool --mode=compile --tag=CC $ac_compile"
                LIBS="$PTHREAD_LIBS $LIBS"
                CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
                CC="$PTHREAD_CC"
-               $as_echo "CC:$CC CFLAGS:$CFLAGS LIBS:$LIBS" ;; #(
+               $as_echo "CC:$CC CFLAGS:$CFLAGS LIBS:$LIBS" >&6 ;; #(
   *) :
     THREADS_ROOT=$with_threads
              LDFLAGS="-L$THREADS_ROOT/lib $LDFLAGS"
@@ -35788,7 +35788,7 @@ fi
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: CDI is configured with the following options:" >&5
 $as_echo "$as_me: CDI is configured with the following options:" >&6;}
-cat cdi.settings
+cat cdi.settings >&6
 
 { $as_echo "$as_me:${as_lineno-$LINENO}:
 
diff --git a/configure.ac b/configure.ac
index 11a799591..8a1c04a02 100644
--- a/configure.ac
+++ b/configure.ac
@@ -742,7 +742,7 @@ AC_CONFIG_FILES([
 AC_OUTPUT
 
 AC_MSG_NOTICE([CDI is configured with the following options:])
-cat cdi.settings
+cat cdi.settings >&AS_MESSAGE_FD
 
 AC_MSG_NOTICE([
 
diff --git a/m4/acx_options.m4 b/m4/acx_options.m4
index d51706aee..3cda897d7 100644
--- a/m4/acx_options.m4
+++ b/m4/acx_options.m4
@@ -16,7 +16,7 @@ AS_CASE([$with_threads],
                LIBS="$PTHREAD_LIBS $LIBS"
                CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
                CC="$PTHREAD_CC"
-               AS_ECHO(["CC:$CC CFLAGS:$CFLAGS LIBS:$LIBS"])],
+               AS_ECHO(["CC:$CC CFLAGS:$CFLAGS LIBS:$LIBS"]) >&AS_MESSAGE_FD],
         [*],[THREADS_ROOT=$with_threads
              LDFLAGS="-L$THREADS_ROOT/lib $LDFLAGS"
              CPPFLAGS="-I$THREADS_ROOT/include $CPPFLAGS "
-- 
GitLab