diff options
-rw-r--r-- | configure.in | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/configure.in b/configure.in index cd0c1186..2dde86eb 100644 --- a/configure.in +++ b/configure.in | |||
@@ -67,6 +67,11 @@ dnl PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/etc:/usr/local/bin:/usr/local/sbin:$ | |||
67 | 67 | ||
68 | LDFLAGS="$LDFLAGS -L." | 68 | LDFLAGS="$LDFLAGS -L." |
69 | 69 | ||
70 | $ac_cv_uname_m=`uname -m` | ||
71 | $ac_cv_uname_s=`uname -s` | ||
72 | $ac_cv_uname_r=`uname -r` | ||
73 | $ac_cv_uname_v=`uname -v` | ||
74 | |||
70 | dnl Checks for programs. | 75 | dnl Checks for programs. |
71 | AC_PATH_PROG(PYTHON,python) | 76 | AC_PATH_PROG(PYTHON,python) |
72 | AC_PATH_PROG(PERL,perl) | 77 | AC_PATH_PROG(PERL,perl) |
@@ -683,6 +688,11 @@ then | |||
683 | then | 688 | then |
684 | AC_DEFINE_UNQUOTED(PING_PACKETS_FIRST,"$PING_COMMAND",[Define if packet count must precede host]) | 689 | AC_DEFINE_UNQUOTED(PING_PACKETS_FIRST,"$PING_COMMAND",[Define if packet count must precede host]) |
685 | fi | 690 | fi |
691 | elif [ "z$ac_cv_uname_s" == "zUnixWare" && ping -n -s 127.0.0.1 56 1 2>/dev/null | egrep -i "^round-trip|^rtt" >/dev/null] | ||
692 | then | ||
693 | PING_COMMAND="$PATH_TO_PING -n -U -c %d %s" | ||
694 | AC_DEFINE_UNQUOTED(PING_PACKETS_FIRST,"$PING_COMMAND",[Define if packet count must precede host]) | ||
695 | echo " ping syntax... $PATH_TO_PING -n -U -c <count> <host>" | ||
686 | elif [ping -n -U -c 1 127.0.0.1 2>/dev/null | egrep -i "^round-trip|^rtt" >/dev/null] | 696 | elif [ping -n -U -c 1 127.0.0.1 2>/dev/null | egrep -i "^round-trip|^rtt" >/dev/null] |
687 | then | 697 | then |
688 | PING_COMMAND="$PATH_TO_PING -n -U -c %d %s" | 698 | PING_COMMAND="$PATH_TO_PING -n -U -c %d %s" |
@@ -871,7 +881,7 @@ then | |||
871 | AC_DEFINE(HAVE_PROC_MEMINFO,1,[Define if we have /proc/meminfo]) | 881 | AC_DEFINE(HAVE_PROC_MEMINFO,1,[Define if we have /proc/meminfo]) |
872 | AC_DEFINE_UNQUOTED(PROC_MEMINFO,"/proc/meminfo",[path to /proc/meminfo if name changes]) | 882 | AC_DEFINE_UNQUOTED(PROC_MEMINFO,"/proc/meminfo",[path to /proc/meminfo if name changes]) |
873 | EXTRAS="$EXTRAS check_swap" | 883 | EXTRAS="$EXTRAS check_swap" |
874 | elif [swap -l 2>&1 | egrep -i "swapfile" >/dev/null] | 884 | elif [swap -l 2>&1 >/dev/null] |
875 | then | 885 | then |
876 | echo "found swap command" | 886 | echo "found swap command" |
877 | AC_DEFINE(HAVE_SWAP,1,[Define if swap/swapinfo command is found]) | 887 | AC_DEFINE(HAVE_SWAP,1,[Define if swap/swapinfo command is found]) |
@@ -884,6 +894,10 @@ then | |||
884 | elif [swap -l 2>/dev/null | egrep -i "^swapfile +dev +swaplo +blocks +free" >/dev/null] | 894 | elif [swap -l 2>/dev/null | egrep -i "^swapfile +dev +swaplo +blocks +free" >/dev/null] |
885 | then | 895 | then |
886 | AC_DEFINE_UNQUOTED(SWAP_FORMAT,["%*s %*[[0-9,-]] %*d %d %d"],[Format string for parsing swap output]) | 896 | AC_DEFINE_UNQUOTED(SWAP_FORMAT,["%*s %*[[0-9,-]] %*d %d %d"],[Format string for parsing swap output]) |
897 | echo " using UnixWare format" | ||
898 | elif [swap -l 2>/dev/null | egrep -i "^path +dev +swaplo +blocks +free" >/dev/null] | ||
899 | then | ||
900 | AC_DEFINE_UNQUOTED(SWAP_FORMAT,["%*s %*[[0-9,-]] %*d %d %d"],[Format string for parsing swap output]) | ||
887 | echo " using Solaris format" | 901 | echo " using Solaris format" |
888 | fi | 902 | fi |
889 | EXTRAS="$EXTRAS check_swap" | 903 | EXTRAS="$EXTRAS check_swap" |