diff options
author | Lorenz <12514511+RincewindsHat@users.noreply.github.com> | 2023-03-10 11:33:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-10 11:33:25 +0100 |
commit | 5077120a251980b4fafed61b4aa8fa5730a85443 (patch) | |
tree | 8500b8f5dbe774b399cfdc79f5665ba88ef7f255 /configure.ac | |
parent | a3de84594104ac87a91e200d569fb57edacca928 (diff) | |
parent | 269718094177fb8a7e3d3005d1310495009fe8c4 (diff) | |
download | monitoring-plugins-5077120a251980b4fafed61b4aa8fa5730a85443.tar.gz |
Merge branch 'master' into master
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 139 |
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 @@ | |||
1 | dnl Process this file with autoconf to produce a configure script. | 1 | dnl Process this file with autoconf to produce a configure script. |
2 | AC_PREREQ(2.59) | 2 | AC_PREREQ(2.64) |
3 | AC_INIT(monitoring-plugins,2.2) | 3 | AC_INIT(monitoring-plugins,2.3git) |
4 | AC_CONFIG_SRCDIR(NPTest.pm) | 4 | AC_CONFIG_SRCDIR(NPTest.pm) |
5 | AC_CONFIG_FILES([gl/Makefile]) | 5 | AC_CONFIG_FILES([gl/Makefile]) |
6 | AC_CONFIG_AUX_DIR(build-aux) | 6 | AC_CONFIG_AUX_DIR(build-aux) |
7 | AM_INIT_AUTOMAKE([1.8.3]) | 7 | AM_INIT_AUTOMAKE([1.8.3]) |
8 | AM_SILENT_RULES([yes]) | ||
8 | AM_MAINTAINER_MODE([enable]) | 9 | AM_MAINTAINER_MODE([enable]) |
9 | AC_CONFIG_HEADERS([config.h]) | 10 | AC_CONFIG_HEADERS([config.h]) |
10 | AC_CANONICAL_HOST | 11 | AC_CANONICAL_HOST |
@@ -426,7 +427,7 @@ if test "$ac_cv_header_utmpx_h" = "no" -a "$ac_cv_header_wtsapi32_h" = "no" | |||
426 | then | 427 | then |
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 | |||
775 | dnl Using /usr/ucb/ps on Solaris systems, to avoid truncation | 776 | dnl Using /usr/ucb/ps on Solaris systems, to avoid truncation |
776 | dnl Limitation that command name is not available | 777 | dnl Limitation that command name is not available |
777 | dnl elif test "$ac_cv_uname_s" = "SunOS" && /usr/ucb/ps -alxwwn 2>/dev/null | \ | 778 | dnl elif test "$ac_cv_uname_s" = "SunOS" && /usr/ucb/ps -alxwwn 2>/dev/null | \ |
778 | dnl egrep -i ["^ *F +UID +PID +PPID +%C +PRI +NI +SZ +RSS +WCHAN +S +TT +TIME +COMMAND"] > /dev/null | 779 | dnl grep -E -i ["^ *F +UID +PID +PPID +%C +PRI +NI +SZ +RSS +WCHAN +S +TT +TIME +COMMAND"] > /dev/null |
779 | dnl then | 780 | dnl then |
780 | dnl ac_cv_ps_varlist="[&procuid,&procpid,&procppid,&procpcpu,&procvsz,&procrss,procstat,&pos]" | 781 | dnl ac_cv_ps_varlist="[&procuid,&procpid,&procppid,&procpcpu,&procvsz,&procrss,procstat,&pos]" |
781 | dnl ac_cv_ps_command="/usr/ucb/ps -alxwwn" | 782 | dnl 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 | |||
783 | dnl ac_cv_ps_cols=8 | 784 | dnl ac_cv_ps_cols=8 |
784 | dnl AC_MSG_RESULT([$ac_cv_ps_command]) | 785 | dnl AC_MSG_RESULT([$ac_cv_ps_command]) |
785 | 786 | ||
787 | dnl This one is the exact same test as the next one but includes etime | ||
788 | elif 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 | ||
790 | then | ||
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 | |||
786 | dnl Some gnu/linux systems (debian for one) don't like -axwo and need axwo. | 797 | dnl Some gnu/linux systems (debian for one) don't like -axwo and need axwo. |
787 | dnl so test for this first... | 798 | dnl so test for this first... |
788 | elif ps axwo 'stat comm vsz rss user uid pid ppid args' 2>/dev/null | \ | 799 | elif 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 |
790 | then | 801 | then |
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 | |||
798 | dnl Should also work for FreeBSD 5.2.1 and 5.3 | 809 | dnl Should also work for FreeBSD 5.2.1 and 5.3 |
799 | dnl STAT UCOMM VSZ RSS USER PPID COMMAND | 810 | dnl STAT UCOMM VSZ RSS USER PPID COMMAND |
800 | elif ps -axwo 'stat comm vsz rss user uid pid ppid args' 2>/dev/null | \ | 811 | elif 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 |
802 | then | 813 | then |
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. | |||
810 | dnl Limitation: Only first 16 chars returned for ucomm field | 821 | dnl Limitation: Only first 16 chars returned for ucomm field |
811 | dnl Must come before ps -weo | 822 | dnl Must come before ps -weo |
812 | elif ps -axwo 'stat uid pid ppid vsz rss pcpu ucomm command' 2>/dev/null | \ | 823 | elif 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 |
814 | then | 825 | then |
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 | ||
821 | dnl STAT UCOMM VSZ RSS USER UID PPID COMMAND | 832 | dnl STAT UCOMM VSZ RSS USER UID PPID COMMAND |
822 | elif ps -weo 'stat comm vsz rss user uid pid ppid etime args' 2>/dev/null | \ | 833 | elif 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 |
824 | then | 835 | then |
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 | ||
831 | dnl FreeBSD | 842 | dnl FreeBSD |
832 | elif ps waxco 'state command vsz rss uid user pid ppid' 2>/dev/null | \ | 843 | elif 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 |
834 | then | 845 | then |
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 | ||
841 | dnl BSD-like mode in RH 6.1 | 852 | dnl BSD-like mode in RH 6.1 |
842 | elif ps waxno 'state comm vsz rss uid user pid ppid args' 2>/dev/null | \ | 853 | elif 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 |
844 | then | 855 | then |
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: | |||
852 | dnl F UID PID PPID CP PRI NI SZ RSS WCHAN STAT TT TIME COMMAND | 863 | dnl F UID PID PPID CP PRI NI SZ RSS WCHAN STAT TT TIME COMMAND |
853 | dnl Need the head -1 otherwise test will work because arguments are found | 864 | dnl Need the head -1 otherwise test will work because arguments are found |
854 | elif ps -laxnwww 2>/dev/null | head -1 | \ | 865 | elif 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 |
856 | then | 867 | then |
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 | |||
865 | dnl 100 0 1 0 0 0 776 76 c0131c8c S ffff 0:11 init [2] | 876 | dnl 100 0 1 0 0 0 776 76 c0131c8c S ffff 0:11 init [2] |
866 | dnl | 877 | dnl |
867 | elif ps laxnwww 2>/dev/null | \ | 878 | elif 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 |
869 | then | 880 | then |
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 | ||
876 | dnl OpenBSD (needs to come early because -exo appears to work, but does not give all procs) | 887 | dnl OpenBSD (needs to come early because -exo appears to work, but does not give all procs) |
877 | elif ps -axo 'stat comm vsz rss user uid pid ppid args' 2>/dev/null | \ | 888 | elif 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 |
879 | then | 890 | then |
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 | |||
888 | dnl Can't use vsize and rssize because comes back with text (eg, 1.5M instead | 899 | dnl Can't use vsize and rssize because comes back with text (eg, 1.5M instead |
889 | dnl of 1500). Will need big changes to check_procs to support | 900 | dnl of 1500). Will need big changes to check_procs to support |
890 | elif /sbin/ps -eo 'stat uid pid ppid pcpu etime comm args' 2>/dev/null | \ | 901 | elif /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 |
892 | then | 903 | then |
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 | ||
899 | elif ps -eo 's comm vsz rss user uid pid ppid args' 2>/dev/null | \ | 910 | elif 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 |
901 | then | 912 | then |
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 | ||
908 | dnl AIX 4.3.3 and 5.1 do not have an rss field | 919 | dnl AIX 4.3.3 and 5.1 do not have an rss field |
909 | elif ps -eo 'stat uid pid ppid vsz pcpu comm args' 2>/dev/null | \ | 920 | elif 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 |
911 | then | 922 | then |
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 | ||
918 | dnl Solaris 2.6 | 929 | dnl Solaris 2.6 |
919 | elif ps -Ao 's comm vsz rss uid user pid ppid args' 2>/dev/null | \ | 930 | elif 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 |
921 | then | 932 | then |
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 | ||
930 | elif ps -Ao 'status comm vsz rss uid user pid ppid args' 2>/dev/null | \ | 941 | elif 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 |
932 | then | 943 | then |
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 | ||
939 | elif ps -Ao 'state comm vsz rss uid user pid ppid args' 2>/dev/null | \ | 950 | elif 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 |
941 | then | 952 | then |
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 | ||
948 | dnl wonder who takes state instead of stat | 959 | dnl wonder who takes state instead of stat |
949 | elif ps -ao 'state command vsz rss user pid ppid args' 2>/dev/null | \ | 960 | elif 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 |
951 | then | 962 | then |
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 | ||
958 | dnl IRIX 53 | 969 | dnl IRIX 53 |
959 | elif ps -el 2>/dev/null | \ | 970 | elif 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 |
961 | then | 972 | then |
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 | ||
968 | dnl IRIX 63 | 979 | dnl IRIX 63 |
969 | elif ps -el 2>/dev/null | \ | 980 | elif 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 |
971 | then | 982 | then |
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 | |||
980 | dnl S 0 400 root oracle 2805 1 12904 0.00 ora_dism_SEA1X ora_dism_SEA1X | 991 | dnl S 0 400 root oracle 2805 1 12904 0.00 ora_dism_SEA1X ora_dism_SEA1X |
981 | dnl S 400 400 oracle oracle 19261 1 126488 0.00 tnslsnr /u01/app/oracle/product/db/11.2.0.3/bin/tnslsnr LISTENER -inherit | 992 | dnl S 400 400 oracle oracle 19261 1 126488 0.00 tnslsnr /u01/app/oracle/product/db/11.2.0.3/bin/tnslsnr LISTENER -inherit |
982 | elif env UNIX95=1 ps -eo 'state uid ruid user ruser pid ppid vsz pcpu comm args' 2>/dev/null | head -n 1 | \ | 993 | elif 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 |
984 | then | 995 | then |
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: | |||
992 | dnl F S UID PID PPID C PRI NI ADDR SZ RSS WCHAN TTY TIME CMD | 1003 | dnl F S UID PID PPID C PRI NI ADDR SZ RSS WCHAN TTY TIME CMD |
993 | dnl 303 A 0 0 0 120 16 -- 1c07 20 24 - 0:45 swapper | 1004 | dnl 303 A 0 0 0 120 16 -- 1c07 20 24 - 0:45 swapper |
994 | elif ps -el 2>/dev/null | \ | 1005 | elif 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 |
996 | then | 1007 | then |
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 | ||
1003 | dnl AIX? | 1014 | dnl AIX? |
1004 | elif ps glaxen 2>/dev/null | \ | 1015 | elif 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 |
1006 | then | 1017 | then |
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 | |||
1016 | dnl STAT VSZ RSS UID PPID %CPU UCOMM COMMAND | 1027 | dnl STAT VSZ RSS UID PPID %CPU UCOMM COMMAND |
1017 | dnl Ss 52756 22496 501 1 6.9 Window Manager /System/Library/CoreServices/WindowServer -daemon | 1028 | dnl Ss 52756 22496 501 1 6.9 Window Manager /System/Library/CoreServices/WindowServer -daemon |
1018 | elif ps wwaxo 'state vsz rss uid pid ppid pcpu ucomm command' 2>/dev/null | \ | 1029 | elif 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 |
1020 | then | 1031 | then |
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 | ||
1027 | dnl UnixWare | 1038 | dnl UnixWare |
1028 | elif ps -Al 2>/dev/null | \ | 1039 | elif 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 |
1030 | then | 1041 | then |
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 | ||
1095 | elif [[ "z$ac_cv_uname_s" = "zUnixWare" ]] && \ | 1106 | elif [[ "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 |
1098 | then | 1109 | then |
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 | ||
1103 | elif $PATH_TO_PING -4 -n -U -w 10 -c 1 127.0.0.1 2>/dev/null | \ | 1114 | elif $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 |
1105 | then | 1116 | then |
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]) |
1111 | elif $PATH_TO_PING -n -U -w 10 -c 1 127.0.0.1 2>/dev/null | \ | 1122 | elif $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 |
1113 | then | 1124 | then |
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 | ||
1119 | elif $PATH_TO_PING -n -U -c 1 127.0.0.1 2>/dev/null | \ | 1130 | elif $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 |
1121 | then | 1132 | then |
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 | ||
1126 | elif $PATH_TO_PING -n -c 1 127.0.0.1 2>/dev/null | \ | 1137 | elif $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 |
1128 | then | 1139 | then |
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 | ||
1133 | elif $PATH_TO_PING -n 127.0.0.1 -c 1 2>/dev/null | \ | 1144 | elif $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 |
1135 | then | 1146 | then |
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 | ||
1139 | elif $PATH_TO_PING 127.0.0.1 -n 1 2>/dev/null | \ | 1150 | elif $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 |
1141 | then | 1152 | then |
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 | ||
1145 | elif $PATH_TO_PING -n -s 127.0.0.1 56 1 2>/dev/null | \ | 1156 | elif $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 |
1147 | then | 1158 | then |
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 | ||
1151 | elif $PATH_TO_PING -n -h 127.0.0.1 -s 56 -c 1 2>/dev/null | \ | 1162 | elif $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 |
1153 | then | 1164 | then |
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 | ||
1157 | elif $PATH_TO_PING -n -s 56 -c 1 127.0.0.1 2>/dev/null | \ | 1168 | elif $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 |
1159 | then | 1170 | then |
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 | ||
1164 | elif $PATH_TO_PING -n -c 1 127.0.0.1 2>/dev/null | \ | 1175 | elif $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 |
1166 | then | 1177 | then |
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 | |||
1218 | elif test "x$PATH_TO_PING6" != "x"; then | 1229 | elif 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 | |||
1289 | elif test "x$PATH_TO_PING" != "x"; then | 1300 | elif 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) | |||
1604 | if (test -n "$PATH_TO_SWAPINFO") | 1615 | if (test -n "$PATH_TO_SWAPINFO") |
1605 | then | 1616 | then |
1606 | AC_MSG_CHECKING([for $PATH_TO_SWAPINFO format]) | 1617 | AC_MSG_CHECKING([for $PATH_TO_SWAPINFO format]) |
1607 | if [$PATH_TO_SWAPINFO -k 2>&1 | egrep -i "^Device" >/dev/null] | 1618 | if [$PATH_TO_SWAPINFO -k 2>&1 | grep -E -i "^Device" >/dev/null] |
1608 | then | 1619 | then |
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 | ||
1619 | elif [$PATH_TO_SWAPINFO -dfM 2>/dev/null | egrep -i "^TYPE +AVAIL +USED +FREE" >/dev/null] | 1630 | elif [$PATH_TO_SWAPINFO -dfM 2>/dev/null | grep -E -i "^TYPE +AVAIL +USED +FREE" >/dev/null] |
1620 | then | 1631 | then |
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) | |||
1631 | if (test -n "$PATH_TO_LSPS") | 1642 | if (test -n "$PATH_TO_LSPS") |
1632 | then | 1643 | then |
1633 | AC_MSG_CHECKING([for $PATH_TO_LSPS format]) | 1644 | AC_MSG_CHECKING([for $PATH_TO_LSPS format]) |
1634 | if [$PATH_TO_LSPS -a 2>/dev/null | egrep -i "^Page Space" > /dev/null] | 1645 | if [$PATH_TO_LSPS -a 2>/dev/null | grep -E -i "^Page Space" > /dev/null] |
1635 | then | 1646 | then |
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]) |
1835 | if test "$ac_cv_enable_redhat_pthread_workaround" = "test" ; then | 1846 | if 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 |