summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-06-18 01:20:39 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-06-18 01:22:55 (EDT)
commitbb7577992d59034b95779bc234156703ec38fa3e (patch)
tree3870efecca550981c844561360c719756f0c1627
parentc589ff445c5a959bb19fefc559fd9042dfb72c8e (diff)
configure.ac: Redirect test output to config.log
-rw-r--r--configure.ac20
1 files changed, 11 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac
index a35eb06..e6c83cd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -135,8 +135,8 @@ AC_ARG_WITH(
]
)
AC_MSG_CHECKING([whether touch accepts -h])
-ln -s conftest.none conftest.link
-if ${TOUCH} -h conftest.link 1>/dev/null 2>&1; then
+ln -s conftest.none conftest.link 1>&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
+if ${TOUCH} -h conftest.link 1>&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD; then
if test -f conftest.none; then
AC_MSG_RESULT([no])
AC_SUBST([HAVE_TOUCH_NODEREF], [false])
@@ -175,14 +175,16 @@ AC_ARG_WITH(
]
)
AC_MSG_CHECKING([whether tar accepts -T and --no-recursion])
-rm -Rf conftest.dir
-mkdir conftest.dir
-touch conftest.dir/foo conftest.dir/bar
+rm -Rf conftest.dir 1>&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
+mkdir conftest.dir 1>&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
+touch conftest.dir/foo conftest.dir/bar \
+ 1>&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
if printf '%s\n' conftest.dir/ conftest.dir/foo | ${TAR} -cf conftest.tar \
- --no-recursion -T -; then
- if ${TAR} -tf conftest.tar | grep -Fq 'foo' && \
- ${TAR} -tf conftest.tar | grep -Fvq 'bar'
- then
+ --no-recursion -T - 1>&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
+then
+ if ${TAR} -tf conftest.tar 2>&AS_MESSAGE_LOG_FD | grep -Fq 'foo' && \
+ ${TAR} -tf conftest.tar 2>&AS_MESSAGE_LOG_FD | \
+ grep -Fvq 'bar'; then
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])