summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 45db95c7..045da8d9 100644
--- a/configure.in
+++ b/configure.in
@@ -415,8 +415,9 @@ fi
415 415
416AC_PATH_PROG(PATH_TO_PS,ps) 416AC_PATH_PROG(PATH_TO_PS,ps)
417dnl For OpenBSD 3.2 & 3.3. Must come before ps -weo 417dnl For OpenBSD 3.2 & 3.3. Must come before ps -weo
418dnl Should also work for FreeBSD 5.2.1 and 5.3
418dnl STAT UCOMM VSZ RSS USER PPID COMMAND 419dnl STAT UCOMM VSZ RSS USER PPID COMMAND
419if ps -axwo 'stat comm vsz rss user uid ppid args' 2>/dev/null | egrep -i ["^ *STAT +UCOMM +VSZ +RSS +USER +UID +PPID +COMMAND"] > /dev/null 420if ps -axwo 'stat comm vsz rss user uid ppid args' 2>/dev/null | egrep -i ["^ *STAT +[UCOMAND]+ +VSZ +RSS +USER +UID +PPID +COMMAND"] > /dev/null
420then 421then
421 AC_DEFINE(USE_PS_VARS,1,[Define if 'ps' will be parsed with sscanf]) 422 AC_DEFINE(USE_PS_VARS,1,[Define if 'ps' will be parsed with sscanf])
422 AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,procprog,&pos],[Variable list for sscanf of 'ps' output]) 423 AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,procprog,&pos],[Variable list for sscanf of 'ps' output])