summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorLorenz <12514511+RincewindsHat@users.noreply.github.com>2023-03-10 11:33:25 +0100
committerGitHub <noreply@github.com>2023-03-10 11:33:25 +0100
commit5077120a251980b4fafed61b4aa8fa5730a85443 (patch)
tree8500b8f5dbe774b399cfdc79f5665ba88ef7f255 /configure.ac
parenta3de84594104ac87a91e200d569fb57edacca928 (diff)
parent269718094177fb8a7e3d3005d1310495009fe8c4 (diff)
downloadmonitoring-plugins-5077120a251980b4fafed61b4aa8fa5730a85443.tar.gz
Merge branch 'master' into master
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac139
1 files changed, 75 insertions, 64 deletions
diff --git a/configure.ac b/configure.ac
index 4aebc2ad..0c7169e8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,10 +1,11 @@
1dnl Process this file with autoconf to produce a configure script. 1dnl Process this file with autoconf to produce a configure script.
2AC_PREREQ(2.59) 2AC_PREREQ(2.64)
3AC_INIT(monitoring-plugins,2.2) 3AC_INIT(monitoring-plugins,2.3git)
4AC_CONFIG_SRCDIR(NPTest.pm) 4AC_CONFIG_SRCDIR(NPTest.pm)
5AC_CONFIG_FILES([gl/Makefile]) 5AC_CONFIG_FILES([gl/Makefile])
6AC_CONFIG_AUX_DIR(build-aux) 6AC_CONFIG_AUX_DIR(build-aux)
7AM_INIT_AUTOMAKE([1.8.3]) 7AM_INIT_AUTOMAKE([1.8.3])
8AM_SILENT_RULES([yes])
8AM_MAINTAINER_MODE([enable]) 9AM_MAINTAINER_MODE([enable])
9AC_CONFIG_HEADERS([config.h]) 10AC_CONFIG_HEADERS([config.h])
10AC_CANONICAL_HOST 11AC_CANONICAL_HOST
@@ -426,7 +427,7 @@ if test "$ac_cv_header_utmpx_h" = "no" -a "$ac_cv_header_wtsapi32_h" = "no"
426then 427then
427 AC_PATH_PROG(PATH_TO_WHO,who) 428 AC_PATH_PROG(PATH_TO_WHO,who)
428 429
429 if [$PATH_TO_WHO -q 2>/dev/null | egrep -i "^# users=[0-9]+$" >/dev/null] 430 if [$PATH_TO_WHO -q 2>/dev/null | grep -E -i "^# users=[0-9]+$" >/dev/null]
430 then 431 then
431 ac_cv_path_to_who="$PATH_TO_WHO -q" 432 ac_cv_path_to_who="$PATH_TO_WHO -q"
432 else 433 else
@@ -775,7 +776,7 @@ dnl Removing this for the moment - Ton
775dnl Using /usr/ucb/ps on Solaris systems, to avoid truncation 776dnl Using /usr/ucb/ps on Solaris systems, to avoid truncation
776dnl Limitation that command name is not available 777dnl Limitation that command name is not available
777dnl elif test "$ac_cv_uname_s" = "SunOS" && /usr/ucb/ps -alxwwn 2>/dev/null | \ 778dnl elif test "$ac_cv_uname_s" = "SunOS" && /usr/ucb/ps -alxwwn 2>/dev/null | \
778dnl egrep -i ["^ *F +UID +PID +PPID +%C +PRI +NI +SZ +RSS +WCHAN +S +TT +TIME +COMMAND"] > /dev/null 779dnl grep -E -i ["^ *F +UID +PID +PPID +%C +PRI +NI +SZ +RSS +WCHAN +S +TT +TIME +COMMAND"] > /dev/null
779dnl then 780dnl then
780dnl ac_cv_ps_varlist="[&procuid,&procpid,&procppid,&procpcpu,&procvsz,&procrss,procstat,&pos]" 781dnl ac_cv_ps_varlist="[&procuid,&procpid,&procppid,&procpcpu,&procvsz,&procrss,procstat,&pos]"
781dnl ac_cv_ps_command="/usr/ucb/ps -alxwwn" 782dnl ac_cv_ps_command="/usr/ucb/ps -alxwwn"
@@ -783,10 +784,20 @@ dnl ac_cv_ps_format=["%*s %d %d %d %d %*d %*d %d %d%*[ 0123456789abcdef]%[OSRZT
783dnl ac_cv_ps_cols=8 784dnl ac_cv_ps_cols=8
784dnl AC_MSG_RESULT([$ac_cv_ps_command]) 785dnl AC_MSG_RESULT([$ac_cv_ps_command])
785 786
787dnl This one is the exact same test as the next one but includes etime
788elif ps axwo 'stat comm vsz rss user uid pid ppid etime args' 2>/dev/null | \
789 grep -E -i ["^ *STAT +[UCOMAND]+ +VSZ +RSS +USER +UID +PID +PPID +ELAPSED +COMMAND"] > /dev/null
790then
791 ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procetime,procprog,&pos]"
792 ac_cv_ps_command="$PATH_TO_PS axwo 'stat uid pid ppid vsz rss pcpu etime comm args'"
793 ac_cv_ps_format="%s %d %d %d %d %d %f %s %s %n"
794 ac_cv_ps_cols=10
795 AC_MSG_RESULT([$ac_cv_ps_command])
796
786dnl Some gnu/linux systems (debian for one) don't like -axwo and need axwo. 797dnl Some gnu/linux systems (debian for one) don't like -axwo and need axwo.
787dnl so test for this first... 798dnl so test for this first...
788elif ps axwo 'stat comm vsz rss user uid pid ppid args' 2>/dev/null | \ 799elif ps axwo 'stat comm vsz rss user uid pid ppid args' 2>/dev/null | \
789 egrep -i ["^ *STAT +[UCOMAND]+ +VSZ +RSS +USER +UID +PID +PPID +COMMAND"] > /dev/null 800 grep -E -i ["^ *STAT +[UCOMAND]+ +VSZ +RSS +USER +UID +PID +PPID +COMMAND"] > /dev/null
790then 801then
791 ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]" 802 ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]"
792 ac_cv_ps_command="$PATH_TO_PS axwo 'stat uid pid ppid vsz rss pcpu comm args'" 803 ac_cv_ps_command="$PATH_TO_PS axwo 'stat uid pid ppid vsz rss pcpu comm args'"
@@ -798,7 +809,7 @@ dnl For OpenBSD 3.2 & 3.3. Must come before ps -weo
798dnl Should also work for FreeBSD 5.2.1 and 5.3 809dnl Should also work for FreeBSD 5.2.1 and 5.3
799dnl STAT UCOMM VSZ RSS USER PPID COMMAND 810dnl STAT UCOMM VSZ RSS USER PPID COMMAND
800elif ps -axwo 'stat comm vsz rss user uid pid ppid args' 2>/dev/null | \ 811elif ps -axwo 'stat comm vsz rss user uid pid ppid args' 2>/dev/null | \
801 egrep -i ["^ *STAT +[UCOMAND]+ +VSZ +RSS +USER +UID +PID +PPID +COMMAND"] > /dev/null 812 grep -E -i ["^ *STAT +[UCOMAND]+ +VSZ +RSS +USER +UID +PID +PPID +COMMAND"] > /dev/null
802then 813then
803 ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]" 814 ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]"
804 ac_cv_ps_command="$PATH_TO_PS -axwo 'stat uid pid ppid vsz rss pcpu comm args'" 815 ac_cv_ps_command="$PATH_TO_PS -axwo 'stat uid pid ppid vsz rss pcpu comm args'"
@@ -810,7 +821,7 @@ dnl Some *BSDs have different format for ps. This is mainly to catch FreeBSD 4.
810dnl Limitation: Only first 16 chars returned for ucomm field 821dnl Limitation: Only first 16 chars returned for ucomm field
811dnl Must come before ps -weo 822dnl Must come before ps -weo
812elif ps -axwo 'stat uid pid ppid vsz rss pcpu ucomm command' 2>/dev/null | \ 823elif ps -axwo 'stat uid pid ppid vsz rss pcpu ucomm command' 2>/dev/null | \
813 egrep -i ["^ *STAT +UID +PID +PPID +VSZ +RSS +%CPU +UCOMM +COMMAND"] > /dev/null 824 grep -E -i ["^ *STAT +UID +PID +PPID +VSZ +RSS +%CPU +UCOMM +COMMAND"] > /dev/null
814then 825then
815 ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]" 826 ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]"
816 ac_cv_ps_command="$PATH_TO_PS -axwo 'stat uid pid ppid vsz rss pcpu ucomm command'" 827 ac_cv_ps_command="$PATH_TO_PS -axwo 'stat uid pid ppid vsz rss pcpu ucomm command'"
@@ -820,7 +831,7 @@ then
820 831
821dnl STAT UCOMM VSZ RSS USER UID PPID COMMAND 832dnl STAT UCOMM VSZ RSS USER UID PPID COMMAND
822elif ps -weo 'stat comm vsz rss user uid pid ppid etime args' 2>/dev/null | \ 833elif ps -weo 'stat comm vsz rss user uid pid ppid etime args' 2>/dev/null | \
823 egrep -i ["^ *S[TAUES]* +[UCOMDNA]+ +[VSIZE]+ +R[S]+ +U[SER]+ +U[ID]+ +P[ID]+ +P[PID]+ +[ELAPSD]+ +[RGSCOMDNA]+"] >/dev/null 834 grep -E -i ["^ *S[TAUES]* +[UCOMDNA]+ +[VSIZE]+ +R[S]+ +U[SER]+ +U[ID]+ +P[ID]+ +P[PID]+ +[ELAPSD]+ +[RGSCOMDNA]+"] >/dev/null
824then 835then
825 ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procetime,procprog,&pos]" 836 ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procetime,procprog,&pos]"
826 ac_cv_ps_command="$PATH_TO_PS -weo 'stat uid pid ppid vsz rss pcpu etime comm args'" 837 ac_cv_ps_command="$PATH_TO_PS -weo 'stat uid pid ppid vsz rss pcpu etime comm args'"
@@ -830,7 +841,7 @@ then
830 841
831dnl FreeBSD 842dnl FreeBSD
832elif ps waxco 'state command vsz rss uid user pid ppid' 2>/dev/null | \ 843elif ps waxco 'state command vsz rss uid user pid ppid' 2>/dev/null | \
833 egrep -i ["^STAT +COMMAND +VSZ +RSS +UID +USER +PID +PPID"] >/dev/null 844 grep -E -i ["^STAT +COMMAND +VSZ +RSS +UID +USER +PID +PPID"] >/dev/null
834then 845then
835 ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]" 846 ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]"
836 ac_cv_ps_command="$PATH_TO_PS waxco 'state uid pid ppid vsz rss pcpu command command'" 847 ac_cv_ps_command="$PATH_TO_PS waxco 'state uid pid ppid vsz rss pcpu command command'"
@@ -840,7 +851,7 @@ then
840 851
841dnl BSD-like mode in RH 6.1 852dnl BSD-like mode in RH 6.1
842elif ps waxno 'state comm vsz rss uid user pid ppid args' 2>/dev/null | \ 853elif ps waxno 'state comm vsz rss uid user pid ppid args' 2>/dev/null | \
843 egrep -i ["^S +COMMAND +VSZ +RSS +UID +USER +PID +PPID +[RGSCOMDNA]+"] >/dev/null 854 grep -E -i ["^S +COMMAND +VSZ +RSS +UID +USER +PID +PPID +[RGSCOMDNA]+"] >/dev/null
844then 855then
845 ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]" 856 ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]"
846 ac_cv_ps_command="$PATH_TO_PS waxno 'state uid pid ppid vsz rss pcpu comm args'" 857 ac_cv_ps_command="$PATH_TO_PS waxno 'state uid pid ppid vsz rss pcpu comm args'"
@@ -852,7 +863,7 @@ dnl SunOS 4.1.3:
852dnl F UID PID PPID CP PRI NI SZ RSS WCHAN STAT TT TIME COMMAND 863dnl F UID PID PPID CP PRI NI SZ RSS WCHAN STAT TT TIME COMMAND
853dnl Need the head -1 otherwise test will work because arguments are found 864dnl Need the head -1 otherwise test will work because arguments are found
854elif ps -laxnwww 2>/dev/null | head -1 | \ 865elif ps -laxnwww 2>/dev/null | head -1 | \
855 egrep -i ["^ *F(LAGS)? +UID +PID +PPID +CP +PRI +NI +(SZ)|(VSZ)|(SIZE) +RSS +WCHAN +STAT? +TTY? +TIME +COMMAND"] >/dev/null 866 grep -E -i ["^ *F(LAGS)? +UID +PID +PPID +CP +PRI +NI +(SZ)|(VSZ)|(SIZE) +RSS +WCHAN +STAT? +TTY? +TIME +COMMAND"] >/dev/null
856then 867then
857 ac_cv_ps_varlist="[&procuid,&procpid,&procppid,&procvsz,&procrss,procstat,&pos,procprog]" 868 ac_cv_ps_varlist="[&procuid,&procpid,&procppid,&procvsz,&procrss,procstat,&pos,procprog]"
858 ac_cv_ps_command="$PATH_TO_PS -laxnwww" 869 ac_cv_ps_command="$PATH_TO_PS -laxnwww"
@@ -865,7 +876,7 @@ dnl FLAGS UID PID PPID PRI NI SIZE RSS WCHAN STA TTY TIME COMMA
865dnl 100 0 1 0 0 0 776 76 c0131c8c S ffff 0:11 init [2] 876dnl 100 0 1 0 0 0 776 76 c0131c8c S ffff 0:11 init [2]
866dnl 877dnl
867elif ps laxnwww 2>/dev/null | \ 878elif ps laxnwww 2>/dev/null | \
868 egrep -i ["^ *F(LAGS)? +UID +PID +PPID +PRI +NI +(VSZ)|(SIZE) +RSS +WCHAN +STAT? TTY +TIME +COMMAND"] >/dev/null 879 grep -E -i ["^ *F(LAGS)? +UID +PID +PPID +PRI +NI +(VSZ)|(SIZE) +RSS +WCHAN +STAT? TTY +TIME +COMMAND"] >/dev/null
869then 880then
870 ac_cv_ps_varlist="[&procuid,&procpid,&procppid,procstat,&procvsz,&procrss,&pos,procprog]" 881 ac_cv_ps_varlist="[&procuid,&procpid,&procppid,procstat,&procvsz,&procrss,&pos,procprog]"
871 ac_cv_ps_command="$PATH_TO_PS laxnwww" 882 ac_cv_ps_command="$PATH_TO_PS laxnwww"
@@ -875,7 +886,7 @@ then
875 886
876dnl OpenBSD (needs to come early because -exo appears to work, but does not give all procs) 887dnl OpenBSD (needs to come early because -exo appears to work, but does not give all procs)
877elif ps -axo 'stat comm vsz rss user uid pid ppid args' 2>/dev/null | \ 888elif ps -axo 'stat comm vsz rss user uid pid ppid args' 2>/dev/null | \
878 egrep -i ["^ *S[TAUES]* +[UCOMDNA]+ +[VSIZE]+ +R[S]+ +U[SER]+ +U[ID]+ +P[PID]+ +P[PID]+ +[RGSCOMDNA]+"] >/dev/null 889 grep -E -i ["^ *S[TAUES]* +[UCOMDNA]+ +[VSIZE]+ +R[S]+ +U[SER]+ +U[ID]+ +P[PID]+ +P[PID]+ +[RGSCOMDNA]+"] >/dev/null
879then 890then
880 ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]" 891 ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]"
881 ac_cv_ps_command="$PATH_TO_PS -axo 'stat uid pid ppid vsz rss pcpu comm args'" 892 ac_cv_ps_command="$PATH_TO_PS -axo 'stat uid pid ppid vsz rss pcpu comm args'"
@@ -888,7 +899,7 @@ dnl Has /usr/bin/ps and /sbin/ps - force sbin version
888dnl Can't use vsize and rssize because comes back with text (eg, 1.5M instead 899dnl Can't use vsize and rssize because comes back with text (eg, 1.5M instead
889dnl of 1500). Will need big changes to check_procs to support 900dnl of 1500). Will need big changes to check_procs to support
890elif /sbin/ps -eo 'stat uid pid ppid pcpu etime comm args' 2>/dev/null | \ 901elif /sbin/ps -eo 'stat uid pid ppid pcpu etime comm args' 2>/dev/null | \
891 egrep -i ["^ *S +[UID]+ +[PID]+ +[PID]+ +[%CPU]+ +[ELAPSD]+ +[COMMAND]+ +[COMMAND]+"] > /dev/null 902 grep -E -i ["^ *S +[UID]+ +[PID]+ +[PID]+ +[%CPU]+ +[ELAPSD]+ +[COMMAND]+ +[COMMAND]+"] > /dev/null
892then 903then
893 ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procpcpu,procetime,procprog,&pos]" 904 ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procpcpu,procetime,procprog,&pos]"
894 ac_cv_ps_command="/sbin/ps -eo 'stat uid pid ppid pcpu etime comm args'" 905 ac_cv_ps_command="/sbin/ps -eo 'stat uid pid ppid pcpu etime comm args'"
@@ -897,7 +908,7 @@ then
897 AC_MSG_RESULT([$ac_cv_ps_command]) 908 AC_MSG_RESULT([$ac_cv_ps_command])
898 909
899elif ps -eo 's comm vsz rss user uid pid ppid args' 2>/dev/null | \ 910elif ps -eo 's comm vsz rss user uid pid ppid args' 2>/dev/null | \
900 egrep -i ["^S[TAUES]* +C[OMDNA]+ +[VSIZE]+ +U[SER]+ +U[ID]+ +P[PID]+ +P[PID]+ +[RGSCOMDNA]+"] >/dev/null 911 grep -E -i ["^S[TAUES]* +C[OMDNA]+ +[VSIZE]+ +U[SER]+ +U[ID]+ +P[PID]+ +P[PID]+ +[RGSCOMDNA]+"] >/dev/null
901then 912then
902 ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]" 913 ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]"
903 ac_cv_ps_command="$PATH_TO_PS -eo 's uid pid ppid vsz rss pcpu comm args'" 914 ac_cv_ps_command="$PATH_TO_PS -eo 's uid pid ppid vsz rss pcpu comm args'"
@@ -907,7 +918,7 @@ then
907 918
908dnl AIX 4.3.3 and 5.1 do not have an rss field 919dnl AIX 4.3.3 and 5.1 do not have an rss field
909elif ps -eo 'stat uid pid ppid vsz pcpu comm args' 2>/dev/null | \ 920elif ps -eo 'stat uid pid ppid vsz pcpu comm args' 2>/dev/null | \
910 egrep -i ["^ *S[TAUES]* +UID +PID +PPID +VSZ +%CPU +COMMAND +COMMAND"] >/dev/null 921 grep -E -i ["^ *S[TAUES]* +UID +PID +PPID +VSZ +%CPU +COMMAND +COMMAND"] >/dev/null
911then 922then
912 ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procpcpu,procprog,&pos]" 923 ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procpcpu,procprog,&pos]"
913 ac_cv_ps_command="$PATH_TO_PS -eo 'stat uid pid ppid vsz pcpu comm args'" 924 ac_cv_ps_command="$PATH_TO_PS -eo 'stat uid pid ppid vsz pcpu comm args'"
@@ -917,7 +928,7 @@ then
917 928
918dnl Solaris 2.6 929dnl Solaris 2.6
919elif ps -Ao 's comm vsz rss uid user pid ppid args' 2>/dev/null | \ 930elif ps -Ao 's comm vsz rss uid user pid ppid args' 2>/dev/null | \
920 egrep -i ["^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PID +PPID +[RGSCOMDNA]+"] >/dev/null 931 grep -E -i ["^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PID +PPID +[RGSCOMDNA]+"] >/dev/null
921then 932then
922 ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]" 933 ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]"
923 ac_cv_ps_command="$PATH_TO_PS -Ao 's uid pid ppid vsz rss pcpu comm args'" 934 ac_cv_ps_command="$PATH_TO_PS -Ao 's uid pid ppid vsz rss pcpu comm args'"
@@ -928,7 +939,7 @@ then
928 AC_MSG_RESULT([$ac_cv_ps_command]) 939 AC_MSG_RESULT([$ac_cv_ps_command])
929 940
930elif ps -Ao 'status comm vsz rss uid user pid ppid args' 2>/dev/null | \ 941elif ps -Ao 'status comm vsz rss uid user pid ppid args' 2>/dev/null | \
931 egrep -i ["^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PID +PPID +[RGSCOMDNA]+"] >/dev/null 942 grep -E -i ["^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PID +PPID +[RGSCOMDNA]+"] >/dev/null
932then 943then
933 ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]" 944 ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]"
934 ac_cv_ps_command="$PATH_TO_PS -Ao 'status uid pid ppid vsz rss pcpu comm args'" 945 ac_cv_ps_command="$PATH_TO_PS -Ao 'status uid pid ppid vsz rss pcpu comm args'"
@@ -937,7 +948,7 @@ then
937 AC_MSG_RESULT([$ac_cv_ps_command]) 948 AC_MSG_RESULT([$ac_cv_ps_command])
938 949
939elif ps -Ao 'state comm vsz rss uid user pid ppid args' 2>/dev/null | \ 950elif ps -Ao 'state comm vsz rss uid user pid ppid args' 2>/dev/null | \
940 egrep -i ["^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PID +PPID +[RGSCOMDNA]+"] >/dev/null 951 grep -E -i ["^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PID +PPID +[RGSCOMDNA]+"] >/dev/null
941then 952then
942 ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]" 953 ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]"
943 ac_cv_ps_command="$PATH_TO_PS -Ao 'state uid pid ppid vsz rss pcpu comm args'" 954 ac_cv_ps_command="$PATH_TO_PS -Ao 'state uid pid ppid vsz rss pcpu comm args'"
@@ -947,7 +958,7 @@ then
947 958
948dnl wonder who takes state instead of stat 959dnl wonder who takes state instead of stat
949elif ps -ao 'state command vsz rss user pid ppid args' 2>/dev/null | \ 960elif ps -ao 'state command vsz rss user pid ppid args' 2>/dev/null | \
950 egrep -i ["^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PID +PPID +[RGSCOMDNA]+"] >/dev/null 961 grep -E -i ["^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PID +PPID +[RGSCOMDNA]+"] >/dev/null
951then 962then
952 ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]" 963 ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]"
953 ac_cv_ps_command="$PATH_TO_PS -ao 'state uid pid ppid vsz rss pcpu command args'" 964 ac_cv_ps_command="$PATH_TO_PS -ao 'state uid pid ppid vsz rss pcpu command args'"
@@ -957,7 +968,7 @@ then
957 968
958dnl IRIX 53 969dnl IRIX 53
959elif ps -el 2>/dev/null | \ 970elif ps -el 2>/dev/null | \
960 egrep -i ["^ *F +S +UID +PID +PPID +C +PRI +NI +P +SZ +RSS +WCHAN +TTY +TIME +[RGSCOMDNA]+"] >/dev/null 971 grep -E -i ["^ *F +S +UID +PID +PPID +C +PRI +NI +P +SZ +RSS +WCHAN +TTY +TIME +[RGSCOMDNA]+"] >/dev/null
961then 972then
962 ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&pos,procprog]" 973 ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&pos,procprog]"
963 ac_cv_ps_command="$PATH_TO_PS -el (IRIX 53)" 974 ac_cv_ps_command="$PATH_TO_PS -el (IRIX 53)"
@@ -967,7 +978,7 @@ then
967 978
968dnl IRIX 63 979dnl IRIX 63
969elif ps -el 2>/dev/null | \ 980elif ps -el 2>/dev/null | \
970 egrep -i ["^ *F +S +UID +PID +PPID +C +PRI +NI +P +ADDR +SZ +RSS +WCHAN +TTY +TIME +[RGSCOMDNA]+"] >/dev/null 981 grep -E -i ["^ *F +S +UID +PID +PPID +C +PRI +NI +P +ADDR +SZ +RSS +WCHAN +TTY +TIME +[RGSCOMDNA]+"] >/dev/null
971then 982then
972 ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&pos,procprog]" 983 ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&pos,procprog]"
973 ac_cv_ps_command="$PATH_TO_PS -el (IRIX 63)" 984 ac_cv_ps_command="$PATH_TO_PS -el (IRIX 63)"
@@ -980,7 +991,7 @@ dnl S UID RUID USER RUSER PID PPID VSZ %CPU COMMAND
980dnl S 0 400 root oracle 2805 1 12904 0.00 ora_dism_SEA1X ora_dism_SEA1X 991dnl S 0 400 root oracle 2805 1 12904 0.00 ora_dism_SEA1X ora_dism_SEA1X
981dnl S 400 400 oracle oracle 19261 1 126488 0.00 tnslsnr /u01/app/oracle/product/db/11.2.0.3/bin/tnslsnr LISTENER -inherit 992dnl S 400 400 oracle oracle 19261 1 126488 0.00 tnslsnr /u01/app/oracle/product/db/11.2.0.3/bin/tnslsnr LISTENER -inherit
982elif env UNIX95=1 ps -eo 'state uid ruid user ruser pid ppid vsz pcpu comm args' 2>/dev/null | head -n 1 | \ 993elif env UNIX95=1 ps -eo 'state uid ruid user ruser pid ppid vsz pcpu comm args' 2>/dev/null | head -n 1 | \
983 egrep -i ["^ *S +UID +RUID +USER +RUSER +PID +PPID +VSZ +%CPU +COMMAND +COMMAND"] >/dev/null 994 grep -E -i ["^ *S +UID +RUID +USER +RUSER +PID +PPID +VSZ +%CPU +COMMAND +COMMAND"] >/dev/null
984then 995then
985 ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procpcpu,procprog,&pos]" 996 ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procpcpu,procprog,&pos]"
986 ac_cv_ps_command="$PATH_TO_ENV UNIX95=1 $PATH_TO_PS -eo 'state uid pid ppid vsz pcpu comm args'" 997 ac_cv_ps_command="$PATH_TO_ENV UNIX95=1 $PATH_TO_PS -eo 'state uid pid ppid vsz pcpu comm args'"
@@ -992,7 +1003,7 @@ dnl AIX 4.1:
992dnl F S UID PID PPID C PRI NI ADDR SZ RSS WCHAN TTY TIME CMD 1003dnl F S UID PID PPID C PRI NI ADDR SZ RSS WCHAN TTY TIME CMD
993dnl 303 A 0 0 0 120 16 -- 1c07 20 24 - 0:45 swapper 1004dnl 303 A 0 0 0 120 16 -- 1c07 20 24 - 0:45 swapper
994elif ps -el 2>/dev/null | \ 1005elif ps -el 2>/dev/null | \
995 egrep -i ["^ *F +S +UID +PID +PPID +C +PRI +NI +ADDR +SZ +WCHAN +TTY +TIME +[RGSCOMDNA]+"] >/dev/null 1006 grep -E -i ["^ *F +S +UID +PID +PPID +C +PRI +NI +ADDR +SZ +WCHAN +TTY +TIME +[RGSCOMDNA]+"] >/dev/null
996then 1007then
997 ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&pos,procprog]" 1008 ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&pos,procprog]"
998 ac_cv_ps_command="$PATH_TO_PS -el (AIX 4.1 and HP-UX)" 1009 ac_cv_ps_command="$PATH_TO_PS -el (AIX 4.1 and HP-UX)"
@@ -1002,7 +1013,7 @@ then
1002 1013
1003dnl AIX? 1014dnl AIX?
1004elif ps glaxen 2>/dev/null | \ 1015elif ps glaxen 2>/dev/null | \
1005 egrep -i ["^ *F +UID +PID +PPID +PRI +NI +VSZ +RSS +WCHAN +STAT +TTY +TIME +COMMAND"] >/dev/null 1016 grep -E -i ["^ *F +UID +PID +PPID +PRI +NI +VSZ +RSS +WCHAN +STAT +TTY +TIME +COMMAND"] >/dev/null
1006then 1017then
1007 ac_cv_ps_varlist="[&procuid,&procpid,&procppid,&procvsz,&procrss,procstat,&pos,procprog]" 1018 ac_cv_ps_varlist="[&procuid,&procpid,&procppid,&procvsz,&procrss,procstat,&pos,procprog]"
1008 ac_cv_ps_command="$PATH_TO_PS glaxen" 1019 ac_cv_ps_command="$PATH_TO_PS glaxen"
@@ -1016,7 +1027,7 @@ dnl Some truncation will happen in UCOMM column
1016dnl STAT VSZ RSS UID PPID %CPU UCOMM COMMAND 1027dnl STAT VSZ RSS UID PPID %CPU UCOMM COMMAND
1017dnl Ss 52756 22496 501 1 6.9 Window Manager /System/Library/CoreServices/WindowServer -daemon 1028dnl Ss 52756 22496 501 1 6.9 Window Manager /System/Library/CoreServices/WindowServer -daemon
1018elif ps wwaxo 'state vsz rss uid pid ppid pcpu ucomm command' 2>/dev/null | \ 1029elif ps wwaxo 'state vsz rss uid pid ppid pcpu ucomm command' 2>/dev/null | \
1019 egrep -i ["^STAT +VSZ +RSS +UID +PPID +%CPU +UCOMM +COMMAND"] >/dev/null 1030 grep -E -i ["^STAT +VSZ +RSS +UID +PPID +%CPU +UCOMM +COMMAND"] >/dev/null
1020then 1031then
1021 ac_cv_ps_command="$PATH_TO_PS wwaxo 'state vsz rss uid pid ppid pcpu ucomm command'" 1032 ac_cv_ps_command="$PATH_TO_PS wwaxo 'state vsz rss uid pid ppid pcpu ucomm command'"
1022 ac_cv_ps_varlist="[procstat,&procvsz,&procrss,&procuid,&procpid,&procppid,&procpcpu,procprog,&pos]" 1033 ac_cv_ps_varlist="[procstat,&procvsz,&procrss,&procuid,&procpid,&procppid,&procpcpu,procprog,&pos]"
@@ -1026,7 +1037,7 @@ then
1026 1037
1027dnl UnixWare 1038dnl UnixWare
1028elif ps -Al 2>/dev/null | \ 1039elif ps -Al 2>/dev/null | \
1029 egrep -i ["^ *F +S +UID +PID +PPID +CLS +PRI +NI +C +ADDR +SZ +WCHAN +TTY +TIME +COMD"] >/dev/null 1040 grep -E -i ["^ *F +S +UID +PID +PPID +CLS +PRI +NI +C +ADDR +SZ +WCHAN +TTY +TIME +COMD"] >/dev/null
1030then 1041then
1031 ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&pos,procprog]" 1042 ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&pos,procprog]"
1032 ac_cv_ps_command="$PATH_TO_PS -Al" 1043 ac_cv_ps_command="$PATH_TO_PS -Al"
@@ -1094,14 +1105,14 @@ then
1094 1105
1095elif [[ "z$ac_cv_uname_s" = "zUnixWare" ]] && \ 1106elif [[ "z$ac_cv_uname_s" = "zUnixWare" ]] && \
1096 $PATH_TO_PING -n -s 127.0.0.1 56 1 2>/dev/null | \ 1107 $PATH_TO_PING -n -s 127.0.0.1 56 1 2>/dev/null | \
1097 egrep -i "^round-trip|^rtt" >/dev/null 1108 grep -E -i "^round-trip|^rtt" >/dev/null
1098then 1109then
1099 with_ping_command="$PATH_TO_PING -n -U -c %d %s" 1110 with_ping_command="$PATH_TO_PING -n -U -c %d %s"
1100 ac_cv_ping_packets_first=yes 1111 ac_cv_ping_packets_first=yes
1101 AC_MSG_RESULT([$with_ping_command]) 1112 AC_MSG_RESULT([$with_ping_command])
1102 1113
1103elif $PATH_TO_PING -4 -n -U -w 10 -c 1 127.0.0.1 2>/dev/null | \ 1114elif $PATH_TO_PING -4 -n -U -w 10 -c 1 127.0.0.1 2>/dev/null | \
1104 egrep -i "^round-trip|^rtt" >/dev/null 1115 grep -E -i "^round-trip|^rtt" >/dev/null
1105then 1116then
1106 # check if -4 is supported - issue #1550 1117 # check if -4 is supported - issue #1550
1107 with_ping_command="$PATH_TO_PING -4 -n -U -w %d -c %d %s" 1118 with_ping_command="$PATH_TO_PING -4 -n -U -w %d -c %d %s"
@@ -1109,7 +1120,7 @@ then
1109 ac_cv_ping_has_timeout=yes 1120 ac_cv_ping_has_timeout=yes
1110 AC_MSG_RESULT([$with_ping_command]) 1121 AC_MSG_RESULT([$with_ping_command])
1111elif $PATH_TO_PING -n -U -w 10 -c 1 127.0.0.1 2>/dev/null | \ 1122elif $PATH_TO_PING -n -U -w 10 -c 1 127.0.0.1 2>/dev/null | \
1112 egrep -i "^round-trip|^rtt" >/dev/null 1123 grep -E -i "^round-trip|^rtt" >/dev/null
1113then 1124then
1114 with_ping_command="$PATH_TO_PING -n -U -w %d -c %d %s" 1125 with_ping_command="$PATH_TO_PING -n -U -w %d -c %d %s"
1115 ac_cv_ping_packets_first=yes 1126 ac_cv_ping_packets_first=yes
@@ -1117,52 +1128,52 @@ then
1117 AC_MSG_RESULT([$with_ping_command]) 1128 AC_MSG_RESULT([$with_ping_command])
1118 1129
1119elif $PATH_TO_PING -n -U -c 1 127.0.0.1 2>/dev/null | \ 1130elif $PATH_TO_PING -n -U -c 1 127.0.0.1 2>/dev/null | \
1120 egrep -i "^round-trip|^rtt" >/dev/null 1131 grep -E -i "^round-trip|^rtt" >/dev/null
1121then 1132then
1122 with_ping_command="$PATH_TO_PING -n -U -c %d %s" 1133 with_ping_command="$PATH_TO_PING -n -U -c %d %s"
1123 ac_cv_ping_packets_first=yes 1134 ac_cv_ping_packets_first=yes
1124 AC_MSG_RESULT([$with_ping_command]) 1135 AC_MSG_RESULT([$with_ping_command])
1125 1136
1126elif $PATH_TO_PING -n -c 1 127.0.0.1 2>/dev/null | \ 1137elif $PATH_TO_PING -n -c 1 127.0.0.1 2>/dev/null | \
1127 egrep -i "^round-trip|^rtt" >/dev/null 1138 grep -E -i "^round-trip|^rtt" >/dev/null
1128then 1139then
1129 with_ping_command="$PATH_TO_PING -n -c %d %s" 1140 with_ping_command="$PATH_TO_PING -n -c %d %s"
1130 ac_cv_ping_packets_first=yes 1141 ac_cv_ping_packets_first=yes
1131 AC_MSG_RESULT([$with_ping_command]) 1142 AC_MSG_RESULT([$with_ping_command])
1132 1143
1133elif $PATH_TO_PING -n 127.0.0.1 -c 1 2>/dev/null | \ 1144elif $PATH_TO_PING -n 127.0.0.1 -c 1 2>/dev/null | \
1134 egrep -i "^round-trip|^rtt" >/dev/null 1145 grep -E -i "^round-trip|^rtt" >/dev/null
1135then 1146then
1136 with_ping_command="$PATH_TO_PING -n %s -c %d" 1147 with_ping_command="$PATH_TO_PING -n %s -c %d"
1137 AC_MSG_RESULT([$with_ping_command]) 1148 AC_MSG_RESULT([$with_ping_command])
1138 1149
1139elif $PATH_TO_PING 127.0.0.1 -n 1 2>/dev/null | \ 1150elif $PATH_TO_PING 127.0.0.1 -n 1 2>/dev/null | \
1140 egrep -i "^round-trip|^rtt" >/dev/null 1151 grep -E -i "^round-trip|^rtt" >/dev/null
1141then 1152then
1142 with_ping_command="$PATH_TO_PING %s -n %d" 1153 with_ping_command="$PATH_TO_PING %s -n %d"
1143 AC_MSG_RESULT([$with_ping_command]) 1154 AC_MSG_RESULT([$with_ping_command])
1144 1155
1145elif $PATH_TO_PING -n -s 127.0.0.1 56 1 2>/dev/null | \ 1156elif $PATH_TO_PING -n -s 127.0.0.1 56 1 2>/dev/null | \
1146 egrep -i "^round-trip|^rtt" >/dev/null 1157 grep -E -i "^round-trip|^rtt" >/dev/null
1147then 1158then
1148 with_ping_command="$PATH_TO_PING -n -s %s 56 %d" 1159 with_ping_command="$PATH_TO_PING -n -s %s 56 %d"
1149 AC_MSG_RESULT([$with_ping_command]) 1160 AC_MSG_RESULT([$with_ping_command])
1150 1161
1151elif $PATH_TO_PING -n -h 127.0.0.1 -s 56 -c 1 2>/dev/null | \ 1162elif $PATH_TO_PING -n -h 127.0.0.1 -s 56 -c 1 2>/dev/null | \
1152 egrep -i "^round-trip|^rtt" >/dev/null 1163 grep -E -i "^round-trip|^rtt" >/dev/null
1153then 1164then
1154 with_ping_command="$PATH_TO_PING -n -h %s -s 56 -c %d" 1165 with_ping_command="$PATH_TO_PING -n -h %s -s 56 -c %d"
1155 AC_MSG_RESULT([$with_ping_command]) 1166 AC_MSG_RESULT([$with_ping_command])
1156 1167
1157elif $PATH_TO_PING -n -s 56 -c 1 127.0.0.1 2>/dev/null | \ 1168elif $PATH_TO_PING -n -s 56 -c 1 127.0.0.1 2>/dev/null | \
1158 egrep -i "^round-trip|^rtt" >/dev/null 1169 grep -E -i "^round-trip|^rtt" >/dev/null
1159then 1170then
1160 with_ping_command="$PATH_TO_PING -n -s 56 -c %d %s" 1171 with_ping_command="$PATH_TO_PING -n -s 56 -c %d %s"
1161 ac_cv_ping_packets_first=yes 1172 ac_cv_ping_packets_first=yes
1162 AC_MSG_RESULT([$with_ping_command]) 1173 AC_MSG_RESULT([$with_ping_command])
1163 1174
1164elif $PATH_TO_PING -n -c 1 127.0.0.1 2>/dev/null | \ 1175elif $PATH_TO_PING -n -c 1 127.0.0.1 2>/dev/null | \
1165 egrep -i "^round-trip|^rtt" >/dev/null 1176 grep -E -i "^round-trip|^rtt" >/dev/null
1166then 1177then
1167 with_ping_command="$PATH_TO_PING -n -c %d %s" 1178 with_ping_command="$PATH_TO_PING -n -c %d %s"
1168 ac_cv_ping_packets_first=yes 1179 ac_cv_ping_packets_first=yes
@@ -1218,14 +1229,14 @@ elif [[ "z$ac_cv_uname_o" = "zCygwin" -a "x$PATH_TO_PING" != "x" ]]; then
1218elif test "x$PATH_TO_PING6" != "x"; then 1229elif test "x$PATH_TO_PING6" != "x"; then
1219 if [[ "z$ac_cv_uname_s" = "zUnixWare" ]] && \ 1230 if [[ "z$ac_cv_uname_s" = "zUnixWare" ]] && \
1220 $PATH_TO_PING6 -n -s ::1 56 1 2>/dev/null | \ 1231 $PATH_TO_PING6 -n -s ::1 56 1 2>/dev/null | \
1221 egrep -i "^round-trip|^rtt" >/dev/null 1232 grep -E -i "^round-trip|^rtt" >/dev/null
1222 then 1233 then
1223 with_ping6_command="$PATH_TO_PING6 -n -U -c %d %s" 1234 with_ping6_command="$PATH_TO_PING6 -n -U -c %d %s"
1224 ac_cv_ping6_packets_first=yes 1235 ac_cv_ping6_packets_first=yes
1225 AC_MSG_RESULT([$with_ping6_command]) 1236 AC_MSG_RESULT([$with_ping6_command])
1226 1237
1227 elif $PATH_TO_PING6 -n -U -w 10 -c 1 ::1 2>/dev/null | \ 1238 elif $PATH_TO_PING6 -n -U -w 10 -c 1 ::1 2>/dev/null | \
1228 egrep -i "^round-trip|^rtt" >/dev/null 1239 grep -E -i "^round-trip|^rtt" >/dev/null
1229 then 1240 then
1230 with_ping6_command="$PATH_TO_PING6 -n -U -w %d -c %d %s" 1241 with_ping6_command="$PATH_TO_PING6 -n -U -w %d -c %d %s"
1231 ac_cv_ping6_packets_first=yes 1242 ac_cv_ping6_packets_first=yes
@@ -1233,52 +1244,52 @@ elif test "x$PATH_TO_PING6" != "x"; then
1233 AC_MSG_RESULT([$with_ping6_command]) 1244 AC_MSG_RESULT([$with_ping6_command])
1234 1245
1235 elif $PATH_TO_PING6 -n -U -c 1 ::1 2>/dev/null | \ 1246 elif $PATH_TO_PING6 -n -U -c 1 ::1 2>/dev/null | \
1236 egrep -i "^round-trip|^rtt" >/dev/null 1247 grep -E -i "^round-trip|^rtt" >/dev/null
1237 then 1248 then
1238 with_ping6_command="$PATH_TO_PING6 -n -U -c %d %s" 1249 with_ping6_command="$PATH_TO_PING6 -n -U -c %d %s"
1239 ac_cv_ping6_packets_first=yes 1250 ac_cv_ping6_packets_first=yes
1240 AC_MSG_RESULT([$with_ping6_command]) 1251 AC_MSG_RESULT([$with_ping6_command])
1241 1252
1242 elif $PATH_TO_PING6 -n -c 1 ::1 2>/dev/null | \ 1253 elif $PATH_TO_PING6 -n -c 1 ::1 2>/dev/null | \
1243 egrep -i "^round-trip|^rtt" >/dev/null 1254 grep -E -i "^round-trip|^rtt" >/dev/null
1244 then 1255 then
1245 with_ping6_command="$PATH_TO_PING6 -n -c %d %s" 1256 with_ping6_command="$PATH_TO_PING6 -n -c %d %s"
1246 ac_cv_ping6_packets_first=yes 1257 ac_cv_ping6_packets_first=yes
1247 AC_MSG_RESULT([$with_ping6_command]) 1258 AC_MSG_RESULT([$with_ping6_command])
1248 1259
1249 elif $PATH_TO_PING6 -n ::1 -c 1 2>/dev/null | \ 1260 elif $PATH_TO_PING6 -n ::1 -c 1 2>/dev/null | \
1250 egrep -i "^round-trip|^rtt" >/dev/null 1261 grep -E -i "^round-trip|^rtt" >/dev/null
1251 then 1262 then
1252 with_ping6_command="$PATH_TO_PING6 -n %s -c %d" 1263 with_ping6_command="$PATH_TO_PING6 -n %s -c %d"
1253 AC_MSG_RESULT([$with_ping6_command]) 1264 AC_MSG_RESULT([$with_ping6_command])
1254 1265
1255 elif $PATH_TO_PING6 ::1 -n 1 2>/dev/null | \ 1266 elif $PATH_TO_PING6 ::1 -n 1 2>/dev/null | \
1256 egrep -i "^round-trip|^rtt" >/dev/null 1267 grep -E -i "^round-trip|^rtt" >/dev/null
1257 then 1268 then
1258 with_ping6_command="$PATH_TO_PING6 %s -n %d" 1269 with_ping6_command="$PATH_TO_PING6 %s -n %d"
1259 AC_MSG_RESULT([$with_ping6_command]) 1270 AC_MSG_RESULT([$with_ping6_command])
1260 1271
1261 elif $PATH_TO_PING6 -n -s ::1 56 1 2>/dev/null | \ 1272 elif $PATH_TO_PING6 -n -s ::1 56 1 2>/dev/null | \
1262 egrep -i "^round-trip|^rtt" >/dev/null 1273 grep -E -i "^round-trip|^rtt" >/dev/null
1263 then 1274 then
1264 with_ping6_command="$PATH_TO_PING6 -n -s %s 56 %d" 1275 with_ping6_command="$PATH_TO_PING6 -n -s %s 56 %d"
1265 AC_MSG_RESULT([$with_ping6_command]) 1276 AC_MSG_RESULT([$with_ping6_command])
1266 1277
1267 elif $PATH_TO_PING6 -n -h ::1 -s 56 -c 1 2>/dev/null | \ 1278 elif $PATH_TO_PING6 -n -h ::1 -s 56 -c 1 2>/dev/null | \
1268 egrep -i "^round-trip|^rtt" >/dev/null 1279 grep -E -i "^round-trip|^rtt" >/dev/null
1269 then 1280 then
1270 with_ping6_command="$PATH_TO_PING6 -n -h %s -s 56 -c %d" 1281 with_ping6_command="$PATH_TO_PING6 -n -h %s -s 56 -c %d"
1271 AC_MSG_RESULT([$with_ping6_command]) 1282 AC_MSG_RESULT([$with_ping6_command])
1272 1283
1273 elif $PATH_TO_PING6 -n -s 56 -c 1 ::1 2>/dev/null | \ 1284 elif $PATH_TO_PING6 -n -s 56 -c 1 ::1 2>/dev/null | \
1274 egrep -i "^round-trip|^rtt" >/dev/null 1285 grep -E -i "^round-trip|^rtt" >/dev/null
1275 then 1286 then
1276 with_ping6_command="$PATH_TO_PING6 -n -s 56 -c %d %s" 1287 with_ping6_command="$PATH_TO_PING6 -n -s 56 -c %d %s"
1277 ac_cv_ping6_packets_first=yes 1288 ac_cv_ping6_packets_first=yes
1278 AC_MSG_RESULT([$with_ping_command]) 1289 AC_MSG_RESULT([$with_ping_command])
1279 1290
1280 elif $PATH_TO_PING6 -n -c 1 ::1 2>/dev/null | \ 1291 elif $PATH_TO_PING6 -n -c 1 ::1 2>/dev/null | \
1281 egrep -i "^round-trip|^rtt" >/dev/null 1292 grep -E -i "^round-trip|^rtt" >/dev/null
1282 then 1293 then
1283 with_ping6_command="$PATH_TO_PING6 -n -c %d %s" 1294 with_ping6_command="$PATH_TO_PING6 -n -c %d %s"
1284 ac_cv_ping6_packets_first=yes 1295 ac_cv_ping6_packets_first=yes
@@ -1289,59 +1300,59 @@ elif test "x$PATH_TO_PING6" != "x"; then
1289elif test "x$PATH_TO_PING" != "x"; then 1300elif test "x$PATH_TO_PING" != "x"; then
1290 if [[ "z$ac_cv_uname_s" = "zUnixWare" ]] && \ 1301 if [[ "z$ac_cv_uname_s" = "zUnixWare" ]] && \
1291 $PATH_TO_PING -A inet6 -n -s ::1 56 1 2>/dev/null | \ 1302 $PATH_TO_PING -A inet6 -n -s ::1 56 1 2>/dev/null | \
1292 egrep -i "^round-trip|^rtt" >/dev/null 1303 grep -E -i "^round-trip|^rtt" >/dev/null
1293 then 1304 then
1294 with_ping6_command="$PATH_TO_PING -A inet6 -n -U -c %d %s" 1305 with_ping6_command="$PATH_TO_PING -A inet6 -n -U -c %d %s"
1295 ac_cv_ping6_packets_first=yes 1306 ac_cv_ping6_packets_first=yes
1296 AC_MSG_RESULT([$with_ping6_command]) 1307 AC_MSG_RESULT([$with_ping6_command])
1297 1308
1298 elif $PATH_TO_PING -A inet6 -n -U -c 1 ::1 2>/dev/null | \ 1309 elif $PATH_TO_PING -A inet6 -n -U -c 1 ::1 2>/dev/null | \
1299 egrep -i "^round-trip|^rtt" >/dev/null 1310 grep -E -i "^round-trip|^rtt" >/dev/null
1300 then 1311 then
1301 with_ping6_command="$PATH_TO_PING -A inet6 -n -U -c %d %s" 1312 with_ping6_command="$PATH_TO_PING -A inet6 -n -U -c %d %s"
1302 ac_cv_ping6_packets_first=yes 1313 ac_cv_ping6_packets_first=yes
1303 AC_MSG_RESULT([$with_ping6_command]) 1314 AC_MSG_RESULT([$with_ping6_command])
1304 1315
1305 elif $PATH_TO_PING -A inet6 -n -c 1 ::1 2>/dev/null | \ 1316 elif $PATH_TO_PING -A inet6 -n -c 1 ::1 2>/dev/null | \
1306 egrep -i "^round-trip|^rtt" >/dev/null 1317 grep -E -i "^round-trip|^rtt" >/dev/null
1307 then 1318 then
1308 with_ping6_command="$PATH_TO_PING -A inet6 -n -c %d %s" 1319 with_ping6_command="$PATH_TO_PING -A inet6 -n -c %d %s"
1309 ac_cv_ping6_packets_first=yes 1320 ac_cv_ping6_packets_first=yes
1310 AC_MSG_RESULT([$with_ping6_command]) 1321 AC_MSG_RESULT([$with_ping6_command])
1311 1322
1312 elif $PATH_TO_PING -A inet6 -n ::1 -c 1 2>/dev/null | \ 1323 elif $PATH_TO_PING -A inet6 -n ::1 -c 1 2>/dev/null | \
1313 egrep -i "^round-trip|^rtt" >/dev/null 1324 grep -E -i "^round-trip|^rtt" >/dev/null
1314 then 1325 then
1315 with_ping6_command="$PATH_TO_PING -A inet6 -n %s -c %d" 1326 with_ping6_command="$PATH_TO_PING -A inet6 -n %s -c %d"
1316 AC_MSG_RESULT([$with_ping6_command]) 1327 AC_MSG_RESULT([$with_ping6_command])
1317 1328
1318 elif $PATH_TO_PING -A inet6 ::1 -n 1 2>/dev/null | \ 1329 elif $PATH_TO_PING -A inet6 ::1 -n 1 2>/dev/null | \
1319 egrep -i "^round-trip|^rtt" >/dev/null 1330 grep -E -i "^round-trip|^rtt" >/dev/null
1320 then 1331 then
1321 with_ping6_command="$PATH_TO_PING -A inet6 %s -n %d" 1332 with_ping6_command="$PATH_TO_PING -A inet6 %s -n %d"
1322 AC_MSG_RESULT([$with_ping6_command]) 1333 AC_MSG_RESULT([$with_ping6_command])
1323 1334
1324 elif $PATH_TO_PING -A inet6 -n -s ::1 56 1 2>/dev/null | \ 1335 elif $PATH_TO_PING -A inet6 -n -s ::1 56 1 2>/dev/null | \
1325 egrep -i "^round-trip|^rtt" >/dev/null 1336 grep -E -i "^round-trip|^rtt" >/dev/null
1326 then 1337 then
1327 with_ping6_command="$PATH_TO_PING -A inet6 -n -s %s 56 %d" 1338 with_ping6_command="$PATH_TO_PING -A inet6 -n -s %s 56 %d"
1328 AC_MSG_RESULT([$with_ping6_command]) 1339 AC_MSG_RESULT([$with_ping6_command])
1329 1340
1330 elif $PATH_TO_PING -A inet6 -n -h ::1 -s 56 -c 1 2>/dev/null | \ 1341 elif $PATH_TO_PING -A inet6 -n -h ::1 -s 56 -c 1 2>/dev/null | \
1331 egrep -i "^round-trip|^rtt" >/dev/null 1342 grep -E -i "^round-trip|^rtt" >/dev/null
1332 then 1343 then
1333 with_ping6_command="$PATH_TO_PING -A inet6 -n -h %s -s 56 -c %d" 1344 with_ping6_command="$PATH_TO_PING -A inet6 -n -h %s -s 56 -c %d"
1334 AC_MSG_RESULT([$with_ping6_command]) 1345 AC_MSG_RESULT([$with_ping6_command])
1335 1346
1336 elif $PATH_TO_PING -A inet6 -n -s 56 -c 1 ::1 2>/dev/null | \ 1347 elif $PATH_TO_PING -A inet6 -n -s 56 -c 1 ::1 2>/dev/null | \
1337 egrep -i "^round-trip|^rtt" >/dev/null 1348 grep -E -i "^round-trip|^rtt" >/dev/null
1338 then 1349 then
1339 with_ping6_command="$PATH_TO_PING -A inet6 -n -s 56 -c %d %s" 1350 with_ping6_command="$PATH_TO_PING -A inet6 -n -s 56 -c %d %s"
1340 ac_cv_ping6_packets_first=yes 1351 ac_cv_ping6_packets_first=yes
1341 AC_MSG_RESULT([$with_ping_command]) 1352 AC_MSG_RESULT([$with_ping_command])
1342 1353
1343 elif $PATH_TO_PING -A inet6 -n -c 1 ::1 2>/dev/null | \ 1354 elif $PATH_TO_PING -A inet6 -n -c 1 ::1 2>/dev/null | \
1344 egrep -i "^round-trip|^rtt" >/dev/null 1355 grep -E -i "^round-trip|^rtt" >/dev/null
1345 then 1356 then
1346 with_ping6_command="$PATH_TO_PING -A inet6 -n -c %d %s" 1357 with_ping6_command="$PATH_TO_PING -A inet6 -n -c %d %s"
1347 ac_cv_ping6_packets_first=yes 1358 ac_cv_ping6_packets_first=yes
@@ -1578,14 +1589,14 @@ then
1578 ac_cv_have_swap=yes 1589 ac_cv_have_swap=yes
1579 ac_cv_swap_command="$PATH_TO_SWAP -l" 1590 ac_cv_swap_command="$PATH_TO_SWAP -l"
1580 if [$PATH_TO_SWAP -l 2>/dev/null | \ 1591 if [$PATH_TO_SWAP -l 2>/dev/null | \
1581 egrep -i "^lswap +path +pri +swaplo +blocks +free +maxswap" \ 1592 grep -E -i "^lswap +path +pri +swaplo +blocks +free +maxswap" \
1582 >/dev/null] 1593 >/dev/null]
1583 then 1594 then
1584 ac_cv_swap_format=[" %*d %*s %*d,%*d %*d %*d %f %f"] 1595 ac_cv_swap_format=[" %*d %*s %*d,%*d %*d %*d %f %f"]
1585 ac_cv_swap_conv=2048 1596 ac_cv_swap_conv=2048
1586 AC_MSG_RESULT([using IRIX format swap]) 1597 AC_MSG_RESULT([using IRIX format swap])
1587 1598
1588 elif [$PATH_TO_SWAP -l 2>/dev/null | egrep -i "^path +dev +swaplo +blocks +free" >/dev/null] 1599 elif [$PATH_TO_SWAP -l 2>/dev/null | grep -E -i "^path +dev +swaplo +blocks +free" >/dev/null]
1589 then 1600 then
1590 ac_cv_swap_format=["%*s %*[0-9,-] %*d %f %f"] 1601 ac_cv_swap_format=["%*s %*[0-9,-] %*d %f %f"]
1591 ac_cv_swap_conv=2048 1602 ac_cv_swap_conv=2048
@@ -1604,19 +1615,19 @@ AC_PATH_PROG(PATH_TO_SWAPINFO,swapinfo)
1604if (test -n "$PATH_TO_SWAPINFO") 1615if (test -n "$PATH_TO_SWAPINFO")
1605then 1616then
1606AC_MSG_CHECKING([for $PATH_TO_SWAPINFO format]) 1617AC_MSG_CHECKING([for $PATH_TO_SWAPINFO format])
1607if [$PATH_TO_SWAPINFO -k 2>&1 | egrep -i "^Device" >/dev/null] 1618if [$PATH_TO_SWAPINFO -k 2>&1 | grep -E -i "^Device" >/dev/null]
1608then 1619then
1609 ac_cv_have_swap=yes 1620 ac_cv_have_swap=yes
1610 ac_cv_swap_command="$PATH_TO_SWAPINFO -k" 1621 ac_cv_swap_command="$PATH_TO_SWAPINFO -k"
1611 1622
1612 if [$PATH_TO_SWAPINFO -k 2>/dev/null | egrep -i "^Device +1K-blocks +Used +Avail" >/dev/null] 1623 if [$PATH_TO_SWAPINFO -k 2>/dev/null | grep -E -i "^Device +1K-blocks +Used +Avail" >/dev/null]
1613 then 1624 then
1614 ac_cv_swap_format=["%*s %f %*d %f"] 1625 ac_cv_swap_format=["%*s %f %*d %f"]
1615 ac_cv_swap_conv=1024 1626 ac_cv_swap_conv=1024
1616 AC_MSG_RESULT([using FreeBSD format swapinfo]) 1627 AC_MSG_RESULT([using FreeBSD format swapinfo])
1617 fi 1628 fi
1618 1629
1619elif [$PATH_TO_SWAPINFO -dfM 2>/dev/null | egrep -i "^TYPE +AVAIL +USED +FREE" >/dev/null] 1630elif [$PATH_TO_SWAPINFO -dfM 2>/dev/null | grep -E -i "^TYPE +AVAIL +USED +FREE" >/dev/null]
1620then 1631then
1621 ac_cv_have_swap=yes 1632 ac_cv_have_swap=yes
1622 ac_cv_swap_command="$PATH_TO_SWAPINFO -dfM" 1633 ac_cv_swap_command="$PATH_TO_SWAPINFO -dfM"
@@ -1631,7 +1642,7 @@ AC_PATH_PROG(PATH_TO_LSPS,lsps)
1631if (test -n "$PATH_TO_LSPS") 1642if (test -n "$PATH_TO_LSPS")
1632then 1643then
1633AC_MSG_CHECKING([for $PATH_TO_LSPS format]) 1644AC_MSG_CHECKING([for $PATH_TO_LSPS format])
1634if [$PATH_TO_LSPS -a 2>/dev/null | egrep -i "^Page Space" > /dev/null] 1645if [$PATH_TO_LSPS -a 2>/dev/null | grep -E -i "^Page Space" > /dev/null]
1635then 1646then
1636 ac_cv_have_swap=yes 1647 ac_cv_have_swap=yes
1637 ac_cv_swap_command="$PATH_TO_LSPS -a" 1648 ac_cv_swap_command="$PATH_TO_LSPS -a"
@@ -1833,7 +1844,7 @@ AC_ARG_ENABLE(redhat-pthread-workaround,
1833 [ac_cv_enable_redhat_pthread_workaround=$enableval], 1844 [ac_cv_enable_redhat_pthread_workaround=$enableval],
1834 [ac_cv_enable_redhat_pthread_workaround=test]) 1845 [ac_cv_enable_redhat_pthread_workaround=test])
1835if test "$ac_cv_enable_redhat_pthread_workaround" = "test" ; then 1846if test "$ac_cv_enable_redhat_pthread_workaround" = "test" ; then
1836 if echo $ac_cv_uname_r | egrep "\.EL(smp)?$" >/dev/null 2>&1 ; then 1847 if echo $ac_cv_uname_r | grep -E "\.EL(smp)?$" >/dev/null 2>&1 ; then
1837 AC_MSG_NOTICE([See https://www.monitoring-plugins.org/doc/faq/configure-hangs.html if this next part takes a long time]) 1848 AC_MSG_NOTICE([See https://www.monitoring-plugins.org/doc/faq/configure-hangs.html if this next part takes a long time])
1838 AC_MSG_CHECKING(for redhat spopen problem) 1849 AC_MSG_CHECKING(for redhat spopen problem)
1839 ( cd config_test && make && make test ) > /dev/null 2>&1 1850 ( cd config_test && make && make test ) > /dev/null 2>&1