From f36403b1c96534f88bad6fda52f82942b84daf4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Thu, 23 Jun 2016 12:21:56 +0200 Subject: [PATCH] Build [Configure]: Hide some irrelevant output. Hides the output from type when it fails to find binaries. --- src/aclocal.m4 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/aclocal.m4 b/src/aclocal.m4 index bb5a7f93b9..81c670e9bc 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -1640,19 +1640,19 @@ AC_DEFUN(PIKE_CHECK_ABI_DIR, ;; *archive*) # Try looking deeper into the archive. - if type elffile >/dev/null; then + if type elffile 2>/dev/null >/dev/null; then # Solaris 11 or later. # Typical output: # i386: "current ar archive, 32-bit symbol table, ELF 32-bit LSB relocatable 80386 Version 1" # amd64: "current ar archive, 32-bit symbol table, ELF 64-bit LSB relocatable AMD64 Version 1" filetype="`POSIXLY_CORRECT=yes elffile $f 2>/dev/null`" - elif type elfdump >/dev/null; then + elif type elfdump 2>/dev/null >/dev/null; then # Solaris 10 or earlier. # Typical output: # i386: "ei_class: ELFCLASS32 ei_data: ELFDATA2LSB" (repeated) # amd64: "ei_class: ELFCLASS64 ei_data: ELFDATA2LSB" (repeated) filetype="`POSIXLY_CORRECT=yes elfdump -e $f 2>/dev/null | grep ELFCLASS`" - elif type readelf >/dev/null; then + elif type readelf 2>/dev/null >/dev/null; then # GNU binutils. # Typical output: # x86: "Class: ELF32" -- GitLab