Lines 94-99
Link Here
|
94 |
PKG_ARCH=`uname -p` |
94 |
PKG_ARCH=`uname -p` |
95 |
REV_DATESTAMP=`date '+%Y.%m.%d.%H.%M'` |
95 |
REV_DATESTAMP=`date '+%Y.%m.%d.%H.%M'` |
96 |
REV_TIMESTAMP=`date '+%Y%m%d%H%M%S'` |
96 |
REV_TIMESTAMP=`date '+%Y%m%d%H%M%S'` |
|
|
97 |
first_ip=`/sbin/ifconfig | egrep "inet addr:" | sed -n '1p' | sed 's/ Bcast.*$//' | sed 's/^\s*inet addr://'` |
98 |
|
97 |
|
99 |
|
98 |
AC_SUBST(PKG_ARCH) |
100 |
AC_SUBST(PKG_ARCH) |
99 |
AC_SUBST(REV_DATESTAMP) |
101 |
AC_SUBST(REV_DATESTAMP) |
Lines 869-882
Link Here
|
869 |
fi |
871 |
fi |
870 |
|
872 |
|
871 |
elif [[ "z$ac_cv_uname_s" = "zUnixWare" ]] && \ |
873 |
elif [[ "z$ac_cv_uname_s" = "zUnixWare" ]] && \ |
872 |
$PATH_TO_PING -n -s 127.0.0.1 56 1 2>/dev/null | \ |
874 |
$PATH_TO_PING -n -s $first_ip 56 1 2>/dev/null | \ |
873 |
egrep -i "^round-trip|^rtt" >/dev/null |
875 |
egrep -i "^round-trip|^rtt" >/dev/null |
874 |
then |
876 |
then |
875 |
with_ping_command="$PATH_TO_PING -n -U -c %d %s" |
877 |
with_ping_command="$PATH_TO_PING -n -U -c %d %s" |
876 |
ac_cv_ping_packets_first=yes |
878 |
ac_cv_ping_packets_first=yes |
877 |
AC_MSG_RESULT([$with_ping_command]) |
879 |
AC_MSG_RESULT([$with_ping_command]) |
878 |
|
880 |
|
879 |
elif $PATH_TO_PING -n -U -w 10 -c 1 127.0.0.1 2>/dev/null | \ |
881 |
elif $PATH_TO_PING -n -U -w 10 -c 1 $first_ip 2>/dev/null | \ |
880 |
egrep -i "^round-trip|^rtt" >/dev/null |
882 |
egrep -i "^round-trip|^rtt" >/dev/null |
881 |
then |
883 |
then |
882 |
with_ping_command="$PATH_TO_PING -n -U -w %d -c %d %s" |
884 |
with_ping_command="$PATH_TO_PING -n -U -w %d -c %d %s" |
Lines 884-935
Link Here
|
884 |
ac_cv_ping_has_timeout=yes |
886 |
ac_cv_ping_has_timeout=yes |
885 |
AC_MSG_RESULT([$with_ping_command]) |
887 |
AC_MSG_RESULT([$with_ping_command]) |
886 |
|
888 |
|
887 |
elif $PATH_TO_PING -n -U -c 1 127.0.0.1 2>/dev/null | \ |
889 |
elif $PATH_TO_PING -n -U -c 1 $first_ip 2>/dev/null | \ |
888 |
egrep -i "^round-trip|^rtt" >/dev/null |
890 |
egrep -i "^round-trip|^rtt" >/dev/null |
889 |
then |
891 |
then |
890 |
with_ping_command="$PATH_TO_PING -n -U -c %d %s" |
892 |
with_ping_command="$PATH_TO_PING -n -U -c %d %s" |
891 |
ac_cv_ping_packets_first=yes |
893 |
ac_cv_ping_packets_first=yes |
892 |
AC_MSG_RESULT([$with_ping_command]) |
894 |
AC_MSG_RESULT([$with_ping_command]) |
893 |
|
895 |
|
894 |
elif $PATH_TO_PING -n -c 1 127.0.0.1 2>/dev/null | \ |
896 |
elif $PATH_TO_PING -n -c 1 $first_ip 2>/dev/null | \ |
895 |
egrep -i "^round-trip|^rtt" >/dev/null |
897 |
egrep -i "^round-trip|^rtt" >/dev/null |
896 |
then |
898 |
then |
897 |
with_ping_command="$PATH_TO_PING -n -c %d %s" |
899 |
with_ping_command="$PATH_TO_PING -n -c %d %s" |
898 |
ac_cv_ping_packets_first=yes |
900 |
ac_cv_ping_packets_first=yes |
899 |
AC_MSG_RESULT([$with_ping_command]) |
901 |
AC_MSG_RESULT([$with_ping_command]) |
900 |
|
902 |
|
901 |
elif $PATH_TO_PING -n 127.0.0.1 -c 1 2>/dev/null | \ |
903 |
elif $PATH_TO_PING -n $first_ip -c 1 2>/dev/null | \ |
902 |
egrep -i "^round-trip|^rtt" >/dev/null |
904 |
egrep -i "^round-trip|^rtt" >/dev/null |
903 |
then |
905 |
then |
904 |
with_ping_command="$PATH_TO_PING -n %s -c %d" |
906 |
with_ping_command="$PATH_TO_PING -n %s -c %d" |
905 |
AC_MSG_RESULT([$with_ping_command]) |
907 |
AC_MSG_RESULT([$with_ping_command]) |
906 |
|
908 |
|
907 |
elif $PATH_TO_PING 127.0.0.1 -n 1 2>/dev/null | \ |
909 |
elif $PATH_TO_PING $first_ip -n 1 2>/dev/null | \ |
908 |
egrep -i "^round-trip|^rtt" >/dev/null |
910 |
egrep -i "^round-trip|^rtt" >/dev/null |
909 |
then |
911 |
then |
910 |
with_ping_command="$PATH_TO_PING %s -n %d" |
912 |
with_ping_command="$PATH_TO_PING %s -n %d" |
911 |
AC_MSG_RESULT([$with_ping_command]) |
913 |
AC_MSG_RESULT([$with_ping_command]) |
912 |
|
914 |
|
913 |
elif $PATH_TO_PING -n -s 127.0.0.1 56 1 2>/dev/null | \ |
915 |
elif $PATH_TO_PING -n -s $first_ip 56 1 2>/dev/null | \ |
914 |
egrep -i "^round-trip|^rtt" >/dev/null |
916 |
egrep -i "^round-trip|^rtt" >/dev/null |
915 |
then |
917 |
then |
916 |
with_ping_command="$PATH_TO_PING -n -s %s 56 %d" |
918 |
with_ping_command="$PATH_TO_PING -n -s %s 56 %d" |
917 |
AC_MSG_RESULT([$with_ping_command]) |
919 |
AC_MSG_RESULT([$with_ping_command]) |
918 |
|
920 |
|
919 |
elif $PATH_TO_PING -n -h 127.0.0.1 -s 56 -c 1 2>/dev/null | \ |
921 |
elif $PATH_TO_PING -n -h $first_ip -s 56 -c 1 2>/dev/null | \ |
920 |
egrep -i "^round-trip|^rtt" >/dev/null |
922 |
egrep -i "^round-trip|^rtt" >/dev/null |
921 |
then |
923 |
then |
922 |
with_ping_command="$PATH_TO_PING -n -h %s -s 56 -c %d" |
924 |
with_ping_command="$PATH_TO_PING -n -h %s -s 56 -c %d" |
923 |
AC_MSG_RESULT([$with_ping_command]) |
925 |
AC_MSG_RESULT([$with_ping_command]) |
924 |
|
926 |
|
925 |
elif $PATH_TO_PING -n -s 56 -c 1 127.0.0.1 2>/dev/null | \ |
927 |
elif $PATH_TO_PING -n -s 56 -c 1 $first_ip 2>/dev/null | \ |
926 |
egrep -i "^round-trip|^rtt" >/dev/null |
928 |
egrep -i "^round-trip|^rtt" >/dev/null |
927 |
then |
929 |
then |
928 |
with_ping_command="$PATH_TO_PING -n -s 56 -c %d %s" |
930 |
with_ping_command="$PATH_TO_PING -n -s 56 -c %d %s" |
929 |
ac_cv_ping_packets_first=yes |
931 |
ac_cv_ping_packets_first=yes |
930 |
AC_MSG_RESULT([$with_ping_command]) |
932 |
AC_MSG_RESULT([$with_ping_command]) |
931 |
|
933 |
|
932 |
elif $PATH_TO_PING -n -c 1 127.0.0.1 2>/dev/null | \ |
934 |
elif $PATH_TO_PING -n -c 1 $first_ip 2>/dev/null | \ |
933 |
egrep -i "^round-trip|^rtt" >/dev/null |
935 |
egrep -i "^round-trip|^rtt" >/dev/null |
934 |
then |
936 |
then |
935 |
with_ping_command="$PATH_TO_PING -n -c %d %s" |
937 |
with_ping_command="$PATH_TO_PING -n -c %d %s" |
Lines 1132-1138
Link Here
|
1132 |
if test -n "$PATH_TO_NSLOOKUP" |
1134 |
if test -n "$PATH_TO_NSLOOKUP" |
1133 |
then |
1135 |
then |
1134 |
AC_MSG_CHECKING(for nslookup syntax) |
1136 |
AC_MSG_CHECKING(for nslookup syntax) |
1135 |
if $PATH_TO_NSLOOKUP -sil 127.0.0.1 2>&1 | grep ["Invalid option: sil"] >/dev/null |
1137 |
if $PATH_TO_NSLOOKUP -sil $first_ip 2>&1 | grep ["Invalid option: sil"] >/dev/null |
1136 |
then |
1138 |
then |
1137 |
ac_cv_nslookup_command="$PATH_TO_NSLOOKUP" |
1139 |
ac_cv_nslookup_command="$PATH_TO_NSLOOKUP" |
1138 |
AC_MSG_RESULT([$ac_cv_nslookup_command]) |
1140 |
AC_MSG_RESULT([$ac_cv_nslookup_command]) |