]> Savannah Git Hosting - gnulib.git/commitdiff
sigprocmask: Fix configuration failure on Solaris 10 (regr. 2020-07-25).
authorBruno Haible <bruno@clisp.org>
Thu, 17 Sep 2020 20:52:00 +0000 (22:52 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 17 Sep 2020 20:54:44 +0000 (22:54 +0200)
* m4/gnulib-common.m4 (GL_TMP_FD): New macro.
(gl_SILENT): Use 'exec', not a compound statement, to redirect
AS_MESSAGE_FD.

ChangeLog
m4/gnulib-common.m4

index a3a8ab1e22c164c23301be19e83a031af846e336..a489d5fa7fbd1a945b2189b3b9d05562c6e5b5f4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2020-09-17  Bruno Haible  <bruno@clisp.org>
+
+       sigprocmask: Fix configuration failure on Solaris 10 (regr. 2020-07-25).
+       * m4/gnulib-common.m4 (GL_TMP_FD): New macro.
+       (gl_SILENT): Use 'exec', not a compound statement, to redirect
+       AS_MESSAGE_FD.
+
 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
 
        intprops, xalloc: avoid __builtin_mul_overflow_p with Clang
index 33e56faa98ea0472c3031f760a3dae2003952bf0..35be4d3c430217db2d3a3271ffabf707db2b99f0 100644 (file)
@@ -1,4 +1,4 @@
-# gnulib-common.m4 serial 57
+# gnulib-common.m4 serial 58
 dnl Copyright (C) 2007-2020 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -630,13 +630,18 @@ AC_DEFUN([gl_BIGENDIAN],
   AC_C_BIGENDIAN
 ])
 
+# A temporary file descriptor.
+# Must be less than 10, because dash 0.5.8 does not support redirections
+# with multi-digit file descriptors.
+m4_define([GL_TMP_FD], 9)
+
 # gl_SILENT(command)
 # executes command, but without the normal configure output.
 AC_DEFUN([gl_SILENT],
 [
-  {
-    $1
-  } AS_MESSAGE_FD>/dev/null
+  exec GL_TMP_FD>&AS_MESSAGE_FD AS_MESSAGE_FD>/dev/null
+  $1
+  exec AS_MESSAGE_FD>&GL_TMP_FD AS_MESSAGE_FD>&-
 ])
 
 # gl_CACHE_VAL_SILENT(cache-id, command-to-set-it)