summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-11-02 16:54:21 +0000
committerTim Potter <tpot@samba.org>2003-11-02 16:54:21 +0000
commitdb2a7d0a7f1a3f7086ca2b44a1d9f69bbd1a35f0 (patch)
treea59fa87a6352230aba696465afe968fa90adc023
parent1f05df2b36d0782129e8cc4cfb23099ffb1cd775 (diff)
downloadsamba-db2a7d0a7f1a3f7086ca2b44a1d9f69bbd1a35f0.tar.gz
samba-db2a7d0a7f1a3f7086ca2b44a1d9f69bbd1a35f0.tar.bz2
samba-db2a7d0a7f1a3f7086ca2b44a1d9f69bbd1a35f0.zip
Tidy up calls to uname so as not to produce output on stderr if
the command line argument being called isn't valid. (This used to be commit d43922eade02d1826a108b45607f5776266fd05b)
-rw-r--r--source3/configure.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/configure.in b/source3/configure.in
index b2c0cb7c50..578fa7a152 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -266,19 +266,19 @@ if test x"$samba_cv_volatile" = x"yes"; then
AC_DEFINE(HAVE_VOLATILE, 1, [Whether the C compiler understands volatile])
fi
-UNAME_S=`uname -s`
+UNAME_S=`(uname -s) 2>/dev/null` || UNAME_S="unknown"
AC_MSG_CHECKING(uname -s)
AC_MSG_RESULT(${UNAME_S})
-UNAME_R=`uname -r`
+UNAME_R=`(uname -r) 2>/dev/null` || UNAME_R="unknown"
AC_MSG_CHECKING(uname -r)
AC_MSG_RESULT(${UNAME_R})
-UNAME_M=`uname -m`
+UNAME_M=`(uname -m) 2>/dev/null` || UNAME_M="unknown"
AC_MSG_CHECKING(uname -m)
AC_MSG_RESULT(${UNAME_M})
-UNAME_P=`uname -p`
+UNAME_P=`(uname -p) 2>/dev/null` || UNAME_P="unknown"
AC_MSG_CHECKING(uname -p)
AC_MSG_RESULT(${UNAME_P})