From 74979fb19b2c7220dab4196c0d34e0c29b341b09 Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Sat, 28 Apr 2018 16:41:16 -0700 Subject: Add checking for *sum and unzip Also improve logging (add an ability to log commands/files/environment variables to config.log) Signed-off-by: Alexey Neyman --- m4/ctng_prog_stat.m4 | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'm4/ctng_prog_stat.m4') diff --git a/m4/ctng_prog_stat.m4 b/m4/ctng_prog_stat.m4 index 6bee0760..8a0b26a6 100644 --- a/m4/ctng_prog_stat.m4 +++ b/m4/ctng_prog_stat.m4 @@ -7,9 +7,13 @@ AC_DEFUN([CTNG_PROG_STAT_FORMAT], [ctng_cv_stat_flavor], [touch conftest chmod 642 conftest - attr_bsd=$(stat -f '%Lp' conftest 2>/dev/null) - attr_gnu=$(stat -c '%a' conftest 2>/dev/null) - rm -f conftest + attr_bsd=$(stat -f '%Lp' conftest 2>conftest.stderr.bsd) + CTNG_MSG_LOG_ENVVAR([attr_bsd], [stat -f output]) + CTNG_MSG_LOG_FILE([conftest.stderr.bsd]) + attr_gnu=$(stat -c '%a' conftest 2>conftest.stderr.gnu) + CTNG_MSG_LOG_ENVVAR([attr_gnu], [stat -c output]) + CTNG_MSG_LOG_FILE([conftest.stderr.gnu]) + rm -f conftest conftest.stderr.* AS_IF([test "$attr_bsd" = "642"], [ctng_cv_stat_flavor=BSD], [test "$attr_gnu" = "642"], -- cgit v1.2.3