]> git.draconx.ca Git - dxcommon.git/commitdiff
DX_PROG_MD5: direct probing error messages to the log file.
authorNick Bowler <nbowler@draconx.ca>
Fri, 18 Nov 2022 03:00:27 +0000 (22:00 -0500)
committerNick Bowler <nbowler@draconx.ca>
Fri, 18 Nov 2022 03:00:27 +0000 (22:00 -0500)
Otherwise we can get a bunch of garbage printed to the terminal when
configuring on some systems.

m4/md5.m4

index ee95794030c9ba12dfee58b0cc3309cd0386b258..d0d4e348092c339690ed11d5e3a6f287c4000390 100644 (file)
--- a/m4/md5.m4
+++ b/m4/md5.m4
@@ -1,4 +1,4 @@
-dnl Copyright © 2021 Nick Bowler
+dnl Copyright © 2021-2022 Nick Bowler
 dnl
 dnl License WTFPL2: Do What The Fuck You Want To Public License, version 2.
 dnl This is free software: you are free to do what the fuck you want to.
@@ -53,7 +53,7 @@ AC_CACHE_CHECK([for $MD5 digest position], [dx_cv_md5_outpos],
 rm -f conftest.in conftest.out])
 
 AC_DEFUN([_DX_MD5_DO_TEST],
-[AS_IF([$1 conftest.in >conftest.out],
+[AS_IF([$1 conftest.in >conftest.out 2>&AS_MESSAGE_LOG_FD],
 [read a b <conftest.out
 AS_IF([test x"$a" = x"d41d8cd98f00b204e9800998ecf8427e"],
   [dx_cv_md5_works=yes dx_cv_md5_outpos=front