]> Savannah Git Hosting - gnulib.git/commitdiff
posix_spawn: Avoid spurious message in configure output.
authorBruno Haible <bruno@clisp.org>
Sun, 29 Oct 2017 01:18:57 +0000 (02:18 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 29 Oct 2017 01:18:57 +0000 (02:18 +0100)
* m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
'cmp' command.

ChangeLog
m4/posix_spawn.m4

index 5db78ca0368a5bee179ad2c4813ffa2486d1ad9a..7d014c5373a34242bfca124ecf4f5f5cb2ed5659 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2017-10-28  Bruno Haible  <bruno@clisp.org>
+
+       posix_spawn: Avoid spurious message in configure output.
+       * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
+       'cmp' command.
+
 2017-10-28  Bruno Haible  <bruno@clisp.org>
 
        inet_ntop, inet_pton: Determine needed library correctly on Haiku.
index 47a6147cfe9165cd1f276fd4634c462719d42d1d..d7d1c86d297c6b553593496f9534077daa6a0193 100644 (file)
@@ -1,4 +1,4 @@
-# posix_spawn.m4 serial 13
+# posix_spawn.m4 serial 14
 dnl Copyright (C) 2008-2017 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -224,7 +224,7 @@ main ()
          [if test -s conftest$ac_exeext \
              && ./conftest$ac_exeext > conftest.out \
              && echo 'This should be seen only once.' > conftest.ok \
-             && cmp conftest.out conftest.ok > /dev/null; then
+             && cmp conftest.out conftest.ok >/dev/null 2>&1; then
             gl_cv_func_posix_spawn_works=yes
           else
             gl_cv_func_posix_spawn_works=no