Code

grep(1) "-q" isn't portable (e.g., it won't work on Solaris 8), redirect
authorHolger Weiss <hweiss@users.sourceforge.net>
Tue, 30 Jan 2007 02:22:28 +0000 (02:22 +0000)
committerHolger Weiss <hweiss@users.sourceforge.net>
Tue, 30 Jan 2007 02:22:28 +0000 (02:22 +0000)
output to /dev/null instead.

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1595 f882894a-f735-0410-b71e-b25c423dba1c

configure.in

index f540671a8c96bb65cc4934669aa2aeb3d09430d7..af8278e67c10761d1c72d177975aae847aaa4f44 100644 (file)
@@ -762,7 +762,7 @@ if test -n "$ac_cv_ps_varlist" ; then
        AC_DEFINE_UNQUOTED(PS_COLS,$ac_cv_ps_cols,
                [Number of columns in ps command])
        EXTRAS="$EXTRAS check_procs check_nagios"
-       if echo "$ac_cv_ps_varlist" | grep -q "procetime"; then
+       if echo "$ac_cv_ps_varlist" | grep "procetime" >/dev/null; then
                AC_DEFINE(PS_USES_PROCETIME,"yes",
                          [Whether the ps utility uses the "procetime" field])
        fi