From 31cfa7d0e00b0086340b38ce1f0989da99557efd Mon Sep 17 00:00:00 2001 From: Marco van Wieringen Date: Wed, 21 Oct 2009 12:40:13 +0200 Subject: [PATCH] Redirect errors to /dev/null and only run uname -p on Linux where we know it works. This is probably the most portable way of doing things. --- bacula/autoconf/configure.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bacula/autoconf/configure.in b/bacula/autoconf/configure.in index 932888cc32..2f1a7fe0b1 100644 --- a/bacula/autoconf/configure.in +++ b/bacula/autoconf/configure.in @@ -225,8 +225,7 @@ dnl --includedir, we set it to the package default of /usr/include. dnl If either --prefix or --includedir is set, we leave includedir dnl alone except to eval it dnl ------------------------------------------------------------------ -os_name=`uname -s` -os_processor=`uname -p` +os_name=`uname -s 2>/dev/null` if test x${prefix} = xNONE ; then if test `eval echo ${sysconfdir}` = NONE/etc ; then sysconfdir=/etc/bacula @@ -235,6 +234,7 @@ if test x${prefix} = xNONE ; then if test `eval echo ${libdir}` = NONE/lib ; then case ${os_name} in Linux) + os_processor=`uname -p 2>/dev/null` case ${os_processor} in x86_64) libdir=/usr/lib64 -- 2.39.5