From 23e6726e0b9fb5e777bf66a1076f3d382dbf7041 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Tue, 22 Jan 2019 18:29:29 +0100 Subject: [PATCH] Redirect output of $AR check to /dev/null ./configure logs this on Mac OS: checking whether ar supports D option... /Library/Developer/CommandLineTools/usr/bin/ar: illegal option -- D usage: ar -d [-TLsv] archive file ... ar -m [-TLsv] archive file ... ar -m [-abiTLsv] position archive file ... ar -p [-TLsv] archive [file ...] ar -q [-cTLsv] archive file ... ar -r [-cuTLsv] archive file ... ar -r [-abciuTLsv] position archive file ... ar -t [-TLsv] archive [file ...] ar -x [-ouTLsv] archive [file ...] no This is quite noisy and we're only interested in the result of the check, not the output. Signed-off-by: Ruben Kerkhof --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 7f08e8e764..0636177e85 100755 --- a/configure.ac +++ b/configure.ac @@ -346,7 +346,7 @@ AM_CONDITIONAL([STATIC_BIN], [test "x$enable_static_bin" = "xyes"]) dnl $AR and $RANLIB are set by LT_INIT above AC_MSG_CHECKING([whether $AR supports D option]) -if $AR crD conftest.a; then +if $AR crD conftest.a >/dev/null 2>/dev/null; then AC_MSG_RESULT([yes]) dnl ARFLAGS is for automake, AR_FLAGS for libtool m-( ARFLAGS="crD"