diff options
author | Jeremy T. Bouse <undrgrid@users.sourceforge.net> | 2003-03-11 18:32:08 (GMT) |
---|---|---|
committer | Jeremy T. Bouse <undrgrid@users.sourceforge.net> | 2003-03-11 18:32:08 (GMT) |
commit | aad5b084913ee29cdda1849a11cd10090274b824 (patch) | |
tree | 9b8dbe4b968a1c5228a040a35a77f579f71c7aaf | |
parent | 261b267e0965febb4f41237d79d7cb580a4fc029 (diff) | |
download | monitoring-plugins-aad5b084913ee29cdda1849a11cd10090274b824.tar.gz |
Minor change to Karl's statfs check
Inclusion of ICMPv6 ping tests to define PING6_COMMAND
Minor fix to ps syntax checking to fix bug I introduced last nite
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@394 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r-- | configure.in | 221 |
1 files changed, 182 insertions, 39 deletions
diff --git a/configure.in b/configure.in index 1cad0d9..179fd25 100644 --- a/configure.in +++ b/configure.in | |||
@@ -42,8 +42,10 @@ choke -- this is a workaround for a Sun-specific problem | |||
42 | #include <sys/types.h> | 42 | #include <sys/types.h> |
43 | #include <sys/vfs.h>], | 43 | #include <sys/vfs.h>], |
44 | [struct statfs t; long c = *(t.f_spare);], | 44 | [struct statfs t; long c = *(t.f_spare);], |
45 | fu_cv_sys_truncating_statfs=yes, | 45 | fu_cv_sys_truncating_statfs=yes |
46 | fu_cv_sys_truncating_statfs=no, | 46 | AC_MSG_RESULT(yes), |
47 | fu_cv_sys_truncating_statfs=no | ||
48 | AC_MSG_RESULT(no), | ||
47 | )]) | 49 | )]) |
48 | if test $fu_cv_sys_truncating_statfs = yes; then | 50 | if test $fu_cv_sys_truncating_statfs = yes; then |
49 | AC_DEFINE(STATFS_TRUNCATES_BLOCK_COUNTS, 1, | 51 | AC_DEFINE(STATFS_TRUNCATES_BLOCK_COUNTS, 1, |
@@ -596,8 +598,7 @@ ac_cv_use_ps_vars=no | |||
596 | AC_MSG_CHECKING(for ps syntax) | 598 | AC_MSG_CHECKING(for ps syntax) |
597 | dnl STAT UCOMM VSZ RSS USER UID PPID COMMAND | 599 | dnl STAT UCOMM VSZ RSS USER UID PPID COMMAND |
598 | if ps -weo 'stat comm vsz rss user uid ppid args' 2>/dev/null | \ | 600 | if ps -weo 'stat comm vsz rss user uid ppid args' 2>/dev/null | \ |
599 | egrep -i ["^ *S[TAUES]* +[UCOMDNA]+ +[VSIZE]+ +R[S]+ +U[SER]+ +U[ID]+ \ | 601 | egrep -i ["^ *S[TAUES]* +[UCOMDNA]+ +[VSIZE]+ +R[S]+ +U[SER]+ +U[ID]+ +P[PID]+ +[RGSCOMDNA]+"] >/dev/null |
600 | +P[PID]+ +[RGSCOMDNA]+"] >/dev/null | ||
601 | then | 602 | then |
602 | ac_cv_use_ps_vars=yes | 603 | ac_cv_use_ps_vars=yes |
603 | ac_cv_ps_varlist="[procstat,&procuid,&procppid,procprog,&pos]" | 604 | ac_cv_ps_varlist="[procstat,&procuid,&procppid,procprog,&pos]" |
@@ -629,8 +630,7 @@ then | |||
629 | 630 | ||
630 | dnl BSD-like mode in RH 6.1 | 631 | dnl BSD-like mode in RH 6.1 |
631 | elif ps waxno 'state comm vsz rss uid user ppid args' 2>/dev/null | \ | 632 | elif ps waxno 'state comm vsz rss uid user ppid args' 2>/dev/null | \ |
632 | egrep -i ["^S +COMMAND +VSZ +RSS +UID +USER +PPID +[RGSCOMDNA]+"] \ | 633 | egrep -i ["^S +COMMAND +VSZ +RSS +UID +USER +PPID +[RGSCOMDNA]+"] >/dev/null |
633 | >/dev/null | ||
634 | then | 634 | then |
635 | ac_cv_use_ps_vars=yes | 635 | ac_cv_use_ps_vars=yes |
636 | ac_cv_ps_varlist="[procstat,&procuid,&procppid,procprog,&pos]" | 636 | ac_cv_ps_varlist="[procstat,&procuid,&procppid,procprog,&pos]" |
@@ -646,9 +646,8 @@ then | |||
646 | 646 | ||
647 | dnl SunOS 4.1.3: | 647 | dnl SunOS 4.1.3: |
648 | dnl F UID PID PPID CP PRI NI SZ RSS WCHAN STAT TT TIME COMMAND | 648 | dnl F UID PID PPID CP PRI NI SZ RSS WCHAN STAT TT TIME COMMAND |
649 | elif ps -laxnwww 2>/dev/null | egrep -i ["^ *F(LAGS)? +UID +PID +PPID \ | 649 | elif ps -laxnwww 2>/dev/null | \ |
650 | +CP +PRI +NI +(SZ)|(VSZ)|(SIZE) +RSS +WCHAN +STAT? +TTY? +TIME \ | 650 | egrep -i ["^ *F(LAGS)? +UID +PID +PPID +CP +PRI +NI +(SZ)|(VSZ)|(SIZE) +RSS +WCHAN +STAT? +TTY? +TIME +COMMAND"] >/dev/null |
651 | +COMMAND"] >/dev/null | ||
652 | then | 651 | then |
653 | ac_cv_use_ps_vars=yes | 652 | ac_cv_use_ps_vars=yes |
654 | ac_cv_ps_raw_command="$PATH_TO_PS laxnwww" | 653 | ac_cv_ps_raw_command="$PATH_TO_PS laxnwww" |
@@ -666,8 +665,8 @@ dnl Debian Linux / procps v1.2.9: | |||
666 | dnl FLAGS UID PID PPID PRI NI SIZE RSS WCHAN STA TTY TIME COMMAND | 665 | dnl FLAGS UID PID PPID PRI NI SIZE RSS WCHAN STA TTY TIME COMMAND |
667 | dnl 100 0 1 0 0 0 776 76 c0131c8c S ffff 0:11 init [2] | 666 | dnl 100 0 1 0 0 0 776 76 c0131c8c S ffff 0:11 init [2] |
668 | dnl | 667 | dnl |
669 | elif ps laxnwww 2>/dev/null | egrep -i ["^ *F(LAGS)? +UID +PID +PPID +PRI \ | 668 | elif ps laxnwww 2>/dev/null | \ |
670 | +NI +(VSZ)|(SIZE) +RSS +WCHAN +STAT? TTY +TIME +COMMAND"] >/dev/null | 669 | egrep -i ["^ *F(LAGS)? +UID +PID +PPID +PRI +NI +(VSZ)|(SIZE) +RSS +WCHAN +STAT? TTY +TIME +COMMAND"] >/dev/null |
671 | then | 670 | then |
672 | ac_cv_use_ps_vars=yes | 671 | ac_cv_use_ps_vars=yes |
673 | ac_cv_ps_raw_command="$PATH_TO_PS laxnwww" | 672 | ac_cv_ps_raw_command="$PATH_TO_PS laxnwww" |
@@ -683,8 +682,7 @@ then | |||
683 | 682 | ||
684 | dnl OpenBSD (needs to come early because -exo appears to work, but does not give all procs) | 683 | dnl OpenBSD (needs to come early because -exo appears to work, but does not give all procs) |
685 | elif ps -axo 'stat comm vsz rss user uid ppid args' 2>/dev/null | \ | 684 | elif ps -axo 'stat comm vsz rss user uid ppid args' 2>/dev/null | \ |
686 | egrep -i ["^ *S[TAUES]* +[UCOMDNA]+ +[VSIZE]+ +R[S]+ +U[SER]+ \ | 685 | egrep -i ["^ *S[TAUES]* +[UCOMDNA]+ +[VSIZE]+ +R[S]+ +U[SER]+ +U[ID]+ +P[PID]+ +[RGSCOMDNA]+"] >/dev/null |
687 | +U[ID]+ +P[PID]+ +[RGSCOMDNA]+"] >/dev/null | ||
688 | then | 686 | then |
689 | ac_cv_use_ps_vars=yes | 687 | ac_cv_use_ps_vars=yes |
690 | ac_cv_ps_varlist="[procstat,&procuid,&procppid,procprog,&pos]" | 688 | ac_cv_ps_varlist="[procstat,&procuid,&procppid,procprog,&pos]" |
@@ -700,8 +698,7 @@ then | |||
700 | 698 | ||
701 | dnl AIX 4.3.3 - needs verification. This works for Tru64 - needs %*[ +] in PS_FORMAT | 699 | dnl AIX 4.3.3 - needs verification. This works for Tru64 - needs %*[ +] in PS_FORMAT |
702 | elif ps -ao 'stat comm vsz rss user uid ppid args' 2>/dev/null | \ | 700 | elif ps -ao 'stat comm vsz rss user uid ppid args' 2>/dev/null | \ |
703 | egrep -i ["^ *S[TAUES]* +[UCOMDNA]+ +[VSIZE]+ +R[S]+ +U[SER]+ \ | 701 | egrep -i ["^ *S[TAUES]* +[UCOMDNA]+ +[VSIZE]+ +R[S]+ +U[SER]+ +U[ID]+ +P[PID]+ +[RGSCOMDNA]+"] >/dev/null |
704 | +U[ID]+ +P[PID]+ +[RGSCOMDNA]+"] >/dev/null | ||
705 | then | 702 | then |
706 | ac_cv_use_ps_vars=yes | 703 | ac_cv_use_ps_vars=yes |
707 | ac_cv_ps_varlist="[procstat,&procuid,&procppid,procprog,&pos]" | 704 | ac_cv_ps_varlist="[procstat,&procuid,&procppid,procprog,&pos]" |
@@ -716,8 +713,7 @@ then | |||
716 | AC_MSG_RESULT([$ac_cv_ps_command]) | 713 | AC_MSG_RESULT([$ac_cv_ps_command]) |
717 | 714 | ||
718 | elif ps -eo 's comm vsz rss user uid ppid args' 2>/dev/null | \ | 715 | elif ps -eo 's comm vsz rss user uid ppid args' 2>/dev/null | \ |
719 | egrep -i ["^S[TAUES]* +C[OMDNA]+ +[VSIZE]+ +U[SER]+ +U[ID]+ \ | 716 | egrep -i ["^S[TAUES]* +C[OMDNA]+ +[VSIZE]+ +U[SER]+ +U[ID]+ +P[PID]+ +[RGSCOMDNA]+"] >/dev/null |
720 | +P[PID]+ +[RGSCOMDNA]+"] >/dev/null | ||
721 | then | 717 | then |
722 | ac_cv_use_ps_vars=yes | 718 | ac_cv_use_ps_vars=yes |
723 | ac_cv_ps_varlist="[procstat,&procuid,&procppid,procprog,&pos]" | 719 | ac_cv_ps_varlist="[procstat,&procuid,&procppid,procprog,&pos]" |
@@ -732,8 +728,7 @@ then | |||
732 | AC_MSG_RESULT([$ac_cv_ps_command]) | 728 | AC_MSG_RESULT([$ac_cv_ps_command]) |
733 | 729 | ||
734 | elif ps -Ao 's comm vsz rss uid user ppid args' 2>/dev/null | \ | 730 | elif ps -Ao 's comm vsz rss uid user ppid args' 2>/dev/null | \ |
735 | egrep -i ["^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER \ | 731 | egrep -i ["^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PPID +[RGSCOMDNA]+"] >/dev/null |
736 | +PPID +[RGSCOMDNA]+"] >/dev/null | ||
737 | then | 732 | then |
738 | ac_cv_use_ps_vars=yes | 733 | ac_cv_use_ps_vars=yes |
739 | ac_cv_ps_varlist="[procstat,&procuid,&procppid,procprog,&pos]" | 734 | ac_cv_ps_varlist="[procstat,&procuid,&procppid,procprog,&pos]" |
@@ -748,8 +743,7 @@ then | |||
748 | AC_MSG_RESULT([$ac_cv_ps_command]) | 743 | AC_MSG_RESULT([$ac_cv_ps_command]) |
749 | 744 | ||
750 | elif ps -Ao 'status comm vsz rss uid user ppid args' 2>/dev/null | \ | 745 | elif ps -Ao 'status comm vsz rss uid user ppid args' 2>/dev/null | \ |
751 | egrep -i ["^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER \ | 746 | egrep -i ["^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PPID +[RGSCOMDNA]+"] >/dev/null |
752 | +PPID +[RGSCOMDNA]+"] >/dev/null | ||
753 | then | 747 | then |
754 | ac_cv_use_ps_vars=yes | 748 | ac_cv_use_ps_vars=yes |
755 | ac_cv_ps_varlist="[procstat,&procuid,&procppid,procprog,&pos]" | 749 | ac_cv_ps_varlist="[procstat,&procuid,&procppid,procprog,&pos]" |
@@ -764,8 +758,7 @@ then | |||
764 | AC_MSG_RESULT([$ac_cv_ps_command]) | 758 | AC_MSG_RESULT([$ac_cv_ps_command]) |
765 | 759 | ||
766 | elif ps -Ao 'state comm vsz rss uid user ppid args' 2>/dev/null | \ | 760 | elif ps -Ao 'state comm vsz rss uid user ppid args' 2>/dev/null | \ |
767 | egrep -i ["^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER \ | 761 | egrep -i ["^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PPID +[RGSCOMDNA]+"] >/dev/null |
768 | +PPID +[RGSCOMDNA]+"] >/dev/null | ||
769 | then | 762 | then |
770 | ac_cv_use_ps_vars=yes | 763 | ac_cv_use_ps_vars=yes |
771 | ac_cv_ps_varlist="[procstat,&procuid,&procppid,procprog,&pos]" | 764 | ac_cv_ps_varlist="[procstat,&procuid,&procppid,procprog,&pos]" |
@@ -781,8 +774,7 @@ then | |||
781 | 774 | ||
782 | dnl wonder who takes state instead of stat | 775 | dnl wonder who takes state instead of stat |
783 | elif ps -ao 'state command vsz rss user ppid args' 2>/dev/null | \ | 776 | elif ps -ao 'state command vsz rss user ppid args' 2>/dev/null | \ |
784 | egrep -i ["^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER \ | 777 | egrep -i ["^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PPID +[RGSCOMDNA]+"] >/dev/null |
785 | +PPID +[RGSCOMDNA]+"] >/dev/null | ||
786 | then | 778 | then |
787 | ac_cv_use_ps_vars=yes | 779 | ac_cv_use_ps_vars=yes |
788 | ac_cv_ps_varlist="[procstat,&procuid,&procppid,procprog,&pos]" | 780 | ac_cv_ps_varlist="[procstat,&procuid,&procppid,procprog,&pos]" |
@@ -797,8 +789,8 @@ then | |||
797 | AC_MSG_RESULT([$ac_cv_ps_command]) | 789 | AC_MSG_RESULT([$ac_cv_ps_command]) |
798 | 790 | ||
799 | dnl IRIX 53 | 791 | dnl IRIX 53 |
800 | elif ps -el 2>/dev/null | egrep -i ["^ *F +S +UID +PID +PPID +C +PRI \ | 792 | elif ps -el 2>/dev/null | \ |
801 | +NI +P +SZ +RSS +WCHAN +TTY +TIME +[RGSCOMDNA]+"] >/dev/null | 793 | egrep -i ["^ *F +S +UID +PID +PPID +C +PRI +NI +P +SZ +RSS +WCHAN +TTY +TIME +[RGSCOMDNA]+"] >/dev/null |
802 | then | 794 | then |
803 | ac_cv_use_ps_vars=yes | 795 | ac_cv_use_ps_vars=yes |
804 | ac_cv_ps_varlist="[procstat,&procuid,&procppid,&pos,procprog]" | 796 | ac_cv_ps_varlist="[procstat,&procuid,&procppid,&pos,procprog]" |
@@ -811,8 +803,8 @@ then | |||
811 | AC_MSG_RESULT([$ac_cv_ps_command]) | 803 | AC_MSG_RESULT([$ac_cv_ps_command]) |
812 | 804 | ||
813 | dnl IRIX 63 | 805 | dnl IRIX 63 |
814 | elif ps -el 2>/dev/null | egrep -i ["^ *F +S +UID +PID +PPID +C +PRI \ | 806 | elif ps -el 2>/dev/null | \ |
815 | +NI +P +ADDR +SZ +RSS +WCHAN +TTY +TIME +[RGSCOMDNA]+"] >/dev/null | 807 | egrep -i ["^ *F +S +UID +PID +PPID +C +PRI +NI +P +ADDR +SZ +RSS +WCHAN +TTY +TIME +[RGSCOMDNA]+"] >/dev/null |
816 | then | 808 | then |
817 | ac_cv_use_ps_vars=yes | 809 | ac_cv_use_ps_vars=yes |
818 | ac_cv_ps_varlist="[procstat,&procuid,&procppid,&pos,procprog]" | 810 | ac_cv_ps_varlist="[procstat,&procuid,&procppid,&pos,procprog]" |
@@ -827,8 +819,8 @@ then | |||
827 | dnl AIX 4.1: | 819 | dnl AIX 4.1: |
828 | dnl F S UID PID PPID C PRI NI ADDR SZ RSS WCHAN TTY TIME CMD | 820 | dnl F S UID PID PPID C PRI NI ADDR SZ RSS WCHAN TTY TIME CMD |
829 | dnl 303 A 0 0 0 120 16 -- 1c07 20 24 - 0:45 swapper | 821 | dnl 303 A 0 0 0 120 16 -- 1c07 20 24 - 0:45 swapper |
830 | elif ps -el 2>/dev/null | egrep -i ["^ *F +S +UID +PID +PPID +C +PRI \ | 822 | elif ps -el 2>/dev/null | \ |
831 | +NI +ADDR +SZ +WCHAN +TTY +TIME +[RGSCOMDNA]+"] >/dev/null | 823 | egrep -i ["^ *F +S +UID +PID +PPID +C +PRI +NI +ADDR +SZ +WCHAN +TTY +TIME +[RGSCOMDNA]+"] >/dev/null |
832 | then | 824 | then |
833 | ac_cv_use_ps_vars=yes | 825 | ac_cv_use_ps_vars=yes |
834 | ac_cv_ps_varlist="[procstat,&procuid,&procppid,&pos,procprog]" | 826 | ac_cv_ps_varlist="[procstat,&procuid,&procppid,&pos,procprog]" |
@@ -841,8 +833,8 @@ then | |||
841 | AC_MSG_RESULT([$ac_cv_ps_command]) | 833 | AC_MSG_RESULT([$ac_cv_ps_command]) |
842 | 834 | ||
843 | dnl AIX? | 835 | dnl AIX? |
844 | elif ps glaxen 2>/dev/null | egrep -i ["^ *F +UID +PID +PPID +PRI +NI \ | 836 | elif ps glaxen 2>/dev/null | \ |
845 | +VSZ +RSS +WCHAN +STAT +TTY +TIME +COMMAND"] >/dev/null | 837 | egrep -i ["^ *F +UID +PID +PPID +PRI +NI +VSZ +RSS +WCHAN +STAT +TTY +TIME +COMMAND"] >/dev/null |
846 | then | 838 | then |
847 | ac_cv_use_ps_vars=yes | 839 | ac_cv_use_ps_vars=yes |
848 | ac_cv_ps_varlist="[&procuid,&procppid,procstat,&pos,procprog]" | 840 | ac_cv_ps_varlist="[&procuid,&procppid,procstat,&pos,procprog]" |
@@ -874,8 +866,8 @@ then | |||
874 | AC_MSG_RESULT([$ac_cv_ps_command]) | 866 | AC_MSG_RESULT([$ac_cv_ps_command]) |
875 | 867 | ||
876 | dnl UnixWare | 868 | dnl UnixWare |
877 | elif ps -Al 2>/dev/null | egrep -i ["^ *F +S +UID +PID +PPID +CLS +PRI \ | 869 | elif ps -Al 2>/dev/null | \ |
878 | +NI +C +ADDR +SZ +WCHAN +TTY +TIME +COMD"] >/dev/null | 870 | egrep -i ["^ *F +S +UID +PID +PPID +CLS +PRI +NI +C +ADDR +SZ +WCHAN +TTY +TIME +COMD"] >/dev/null |
879 | then | 871 | then |
880 | ac_cv_use_ps_vars=yes | 872 | ac_cv_use_ps_vars=yes |
881 | ac_cv_ps_varlist="[procstat,&procuid,&procppid,&pos,procprog]" | 873 | ac_cv_ps_varlist="[procstat,&procuid,&procppid,&pos,procprog]" |
@@ -961,11 +953,12 @@ AC_ARG_WITH(ping_command, | |||
961 | [sets syntax for ICMP ping]), | 953 | [sets syntax for ICMP ping]), |
962 | ac_cv_ping_command=$withval,) | 954 | ac_cv_ping_command=$withval,) |
963 | 955 | ||
964 | AC_MSG_CHECKING(for ping syntax) | 956 | AC_MSG_CHECKING(for ICMP ping syntax) |
957 | ac_cv_ping_packets_first=no | ||
965 | if test -n "$ac_cv_ping_command" | 958 | if test -n "$ac_cv_ping_command" |
966 | then | 959 | then |
967 | AC_MSG_RESULT([(command-line) $ac_cv_ping_command]) | 960 | AC_MSG_RESULT([(command-line) $ac_cv_ping_command]) |
968 | if test -n "$PING_PACKETS_FIRST" | 961 | if test -n "$ac_cv_ping_packets_first" |
969 | then | 962 | then |
970 | ac_cv_ping_packets_first=yes | 963 | ac_cv_ping_packets_first=yes |
971 | dnl AC_DEFINE_UNQUOTED(PING_PACKETS_FIRST,"$ac_cv_ping_command", | 964 | dnl AC_DEFINE_UNQUOTED(PING_PACKETS_FIRST,"$ac_cv_ping_command", |
@@ -1039,7 +1032,7 @@ fi | |||
1039 | AC_DEFINE_UNQUOTED(PING_COMMAND,"$ac_cv_ping_command", | 1032 | AC_DEFINE_UNQUOTED(PING_COMMAND,"$ac_cv_ping_command", |
1040 | [path and args for ICMP ping command]) | 1033 | [path and args for ICMP ping command]) |
1041 | 1034 | ||
1042 | if test x$ac_cv_ping_packets_first != xno | 1035 | if test "x$ac_cv_ping_packets_first" != "xno" |
1043 | then | 1036 | then |
1044 | AC_DEFINE(PING_PACKETS_FIRST,1, | 1037 | AC_DEFINE(PING_PACKETS_FIRST,1, |
1045 | [Define if packet count must precede host]) | 1038 | [Define if packet count must precede host]) |
@@ -1048,7 +1041,157 @@ fi | |||
1048 | AC_ARG_WITH(ping6_command, | 1041 | AC_ARG_WITH(ping6_command, |
1049 | ACX_HELP_STRING([--with-ping6-command=SYNTAX], | 1042 | ACX_HELP_STRING([--with-ping6-command=SYNTAX], |
1050 | [sets syntax for ICMPv6 ping]), | 1043 | [sets syntax for ICMPv6 ping]), |
1051 | PING6_COMMAND=$withval,) | 1044 | ac_cv_ping6_command=$withval,) |
1045 | |||
1046 | AC_MSG_CHECKING(for ICMPv6 ping syntax) | ||
1047 | ac_cv_ping6_packets_first=no | ||
1048 | if test -n "$ac_cv_ping6_command" | ||
1049 | then | ||
1050 | AC_MSG_RESULT([(command-line) $ac_cv_ping6_command]) | ||
1051 | if test -n "$ac_cv_ping6_packets_first" | ||
1052 | then | ||
1053 | ac_cv_ping6_packets_first=yes | ||
1054 | fi | ||
1055 | |||
1056 | elif test "x$PATH_TO_PING6" != "x"; then | ||
1057 | if [[ "z$ac_cv_uname_s" = "zUnixWare" ]] && \ | ||
1058 | $PATH_TO_PING6 -n -s ::1 56 1 2>/dev/null | \ | ||
1059 | egrep -i "^round-trip|^rtt" >/dev/null | ||
1060 | then | ||
1061 | ac_cv_ping6_command="$PATH_TO_PING6 -n -U -c %d %s" | ||
1062 | ac_cv_ping6_packets_first=yes | ||
1063 | AC_MSG_RESULT([$ac_cv_ping6_command]) | ||
1064 | |||
1065 | elif $PATH_TO_PING6 -n -U -c 1 ::1 2>/dev/null | \ | ||
1066 | egrep -i "^round-trip|^rtt" >/dev/null | ||
1067 | then | ||
1068 | ac_cv_ping6_command="$PATH_TO_PING6 -n -U -c %d %s" | ||
1069 | ac_cv_ping6_packets_first=yes | ||
1070 | AC_MSG_RESULT([$ac_cv_ping6_command]) | ||
1071 | |||
1072 | elif $PATH_TO_PING6 -n -c 1 ::1 2>/dev/null | \ | ||
1073 | egrep -i "^round-trip|^rtt" >/dev/null | ||
1074 | then | ||
1075 | ac_cv_ping6_command="$PATH_TO_PING6 -n -c %d %s" | ||
1076 | ac_cv_ping6_packets_first=yes | ||
1077 | AC_MSG_RESULT([$ac_cv_ping6_command]) | ||
1078 | |||
1079 | elif $PATH_TO_PING6 -n ::1 -c 1 2>/dev/null | \ | ||
1080 | egrep -i "^round-trip|^rtt" >/dev/null | ||
1081 | then | ||
1082 | ac_cv_ping6_command="$PATH_TO_PING6 -n %s -c %d" | ||
1083 | AC_MSG_RESULT([$ac_cv_ping6_command]) | ||
1084 | |||
1085 | elif $PATH_TO_PING6 ::1 -n 1 2>/dev/null | \ | ||
1086 | egrep -i "^round-trip|^rtt" >/dev/null | ||
1087 | then | ||
1088 | ac_cv_ping6_command="$PATH_TO_PING6 %s -n %d" | ||
1089 | AC_MSG_RESULT([$ac_cv_ping6_command]) | ||
1090 | |||
1091 | elif $PATH_TO_PING6 -n -s ::1 56 1 2>/dev/null | \ | ||
1092 | egrep -i "^round-trip|^rtt" >/dev/null | ||
1093 | then | ||
1094 | ac_cv_ping6_command="$PATH_TO_PING6 -n -s %s 56 %d" | ||
1095 | AC_MSG_RESULT([$ac_cv_ping6_command]) | ||
1096 | |||
1097 | elif $PATH_TO_PING6 -n -h ::1 -s 56 -c 1 2>/dev/null | \ | ||
1098 | egrep -i "^round-trip|^rtt" >/dev/null | ||
1099 | then | ||
1100 | ac_cv_ping6_command="$PATH_TO_PING6 -n -h %s -s 56 -c %d" | ||
1101 | AC_MSG_RESULT([$ac_cv_ping6_command]) | ||
1102 | |||
1103 | elif $PATH_TO_PING6 -n -s 56 -c 1 ::1 2>/dev/null | \ | ||
1104 | egrep -i "^round-trip|^rtt" >/dev/null | ||
1105 | then | ||
1106 | ac_cv_ping_command="$PATH_TO_PING6 -n -s 56 -c %d %s" | ||
1107 | ac_cv_ping_packets_first=yes | ||
1108 | AC_MSG_RESULT([$ac_cv_ping_command]) | ||
1109 | |||
1110 | elif $PATH_TO_PING6 -n -c 1 ::1 2>/dev/null | \ | ||
1111 | egrep -i "^round-trip|^rtt" >/dev/null | ||
1112 | then | ||
1113 | ac_cv_ping6_command="$PATH_TO_PING6 -n -c %d %s" | ||
1114 | ac_cv_ping6_packets_first=yes | ||
1115 | AC_MSG_RESULT([$ac_cv_ping6_command]) | ||
1116 | |||
1117 | fi | ||
1118 | |||
1119 | elif test "x$PATH_TO_PING" != "x"; then | ||
1120 | if [[ "z$ac_cv_uname_s" = "zUnixWare" ]] && \ | ||
1121 | $PATH_TO_PING -A inet6 -n -s ::1 56 1 2>/dev/null | \ | ||
1122 | egrep -i "^round-trip|^rtt" >/dev/null | ||
1123 | then | ||
1124 | ac_cv_ping6_command="$PATH_TO_PING -A inet6 -n -U -c %d %s" | ||
1125 | ac_cv_ping6_packets_first=yes | ||
1126 | AC_MSG_RESULT([$ac_cv_ping6_command]) | ||
1127 | |||
1128 | elif $PATH_TO_PING -A inet6 -n -U -c 1 ::1 2>/dev/null | \ | ||
1129 | egrep -i "^round-trip|^rtt" >/dev/null | ||
1130 | then | ||
1131 | ac_cv_ping6_command="$PATH_TO_PING -A inet6 -n -U -c %d %s" | ||
1132 | ac_cv_ping6_packets_first=yes | ||
1133 | AC_MSG_RESULT([$ac_cv_ping6_command]) | ||
1134 | |||
1135 | elif $PATH_TO_PING -A inet6 -n -c 1 ::1 2>/dev/null | \ | ||
1136 | egrep -i "^round-trip|^rtt" >/dev/null | ||
1137 | then | ||
1138 | ac_cv_ping6_command="$PATH_TO_PING -A inet6 -n -c %d %s" | ||
1139 | ac_cv_ping6_packets_first=yes | ||
1140 | AC_MSG_RESULT([$ac_cv_ping6_command]) | ||
1141 | |||
1142 | elif $PATH_TO_PING -A inet6 -n ::1 -c 1 2>/dev/null | \ | ||
1143 | egrep -i "^round-trip|^rtt" >/dev/null | ||
1144 | then | ||
1145 | ac_cv_ping6_command="$PATH_TO_PING -A inet6 -n %s -c %d" | ||
1146 | AC_MSG_RESULT([$ac_cv_ping6_command]) | ||
1147 | |||
1148 | elif $PATH_TO_PING -A inet6 ::1 -n 1 2>/dev/null | \ | ||
1149 | egrep -i "^round-trip|^rtt" >/dev/null | ||
1150 | then | ||
1151 | ac_cv_ping6_command="$PATH_TO_PING -A inet6 %s -n %d" | ||
1152 | AC_MSG_RESULT([$ac_cv_ping6_command]) | ||
1153 | |||
1154 | elif $PATH_TO_PING -A inet6 -n -s ::1 56 1 2>/dev/null | \ | ||
1155 | egrep -i "^round-trip|^rtt" >/dev/null | ||
1156 | then | ||
1157 | ac_cv_ping6_command="$PATH_TO_PING -A inet6 -n -s %s 56 %d" | ||
1158 | AC_MSG_RESULT([$ac_cv_ping6_command]) | ||
1159 | |||
1160 | elif $PATH_TO_PING -A inet6 -n -h ::1 -s 56 -c 1 2>/dev/null | \ | ||
1161 | egrep -i "^round-trip|^rtt" >/dev/null | ||
1162 | then | ||
1163 | ac_cv_ping6_command="$PATH_TO_PING -A inet6 -n -h %s -s 56 -c %d" | ||
1164 | AC_MSG_RESULT([$ac_cv_ping6_command]) | ||
1165 | |||
1166 | elif $PATH_TO_PING -A inet6 -n -s 56 -c 1 ::1 2>/dev/null | \ | ||
1167 | egrep -i "^round-trip|^rtt" >/dev/null | ||
1168 | then | ||
1169 | ac_cv_ping_command="$PATH_TO_PING -A inet6 -n -s 56 -c %d %s" | ||
1170 | ac_cv_ping_packets_first=yes | ||
1171 | AC_MSG_RESULT([$ac_cv_ping_command]) | ||
1172 | |||
1173 | elif $PATH_TO_PING -A inet6 -n -c 1 ::1 2>/dev/null | \ | ||
1174 | egrep -i "^round-trip|^rtt" >/dev/null | ||
1175 | then | ||
1176 | ac_cv_ping6_command="$PATH_TO_PING -A inet6 -n -c %d %s" | ||
1177 | ac_cv_ping6_packets_first=yes | ||
1178 | AC_MSG_RESULT([$ac_cv_ping6_command]) | ||
1179 | |||
1180 | fi | ||
1181 | |||
1182 | fi | ||
1183 | |||
1184 | if test "x$ac_cv_ping6_command" != "x"; then | ||
1185 | AC_DEFINE_UNQUOTED(PING6_COMMAND,"$ac_cv_ping6_command", | ||
1186 | [path and args for ICMPv6 ping command]) | ||
1187 | else | ||
1188 | AC_MSG_RESULT([none]) | ||
1189 | fi | ||
1190 | |||
1191 | if test "x$ac_cv_ping6_packets_first" != "xno"; then | ||
1192 | AC_DEFINE(PING6_PACKETS_FIRST,1, | ||
1193 | [Define if packet count must precede host]) | ||
1194 | fi | ||
1052 | 1195 | ||
1053 | AC_PATH_PROG(PATH_TO_NSLOOKUP,nslookup) | 1196 | AC_PATH_PROG(PATH_TO_NSLOOKUP,nslookup) |
1054 | 1197 | ||