dnl
dnl Duane Wessels, wessels@nlanr.net, February 1996 (autoconf v2.9)
dnl
-dnl $Id: configure.in,v 1.81 1997/10/22 19:20:07 wessels Exp $
+dnl $Id: configure.in,v 1.82 1997/10/31 05:15:06 wessels Exp $
dnl
dnl
dnl
AC_INIT(src/main.c)
AC_CONFIG_HEADER(include/autoconf.h)
-AC_REVISION($Revision: 1.81 $)dnl
+AC_REVISION($Revision: 1.82 $)dnl
AC_PREFIX_DEFAULT(/usr/local/squid)
AC_CONFIG_AUX_DIR(aux)
)
AC_C_CONST
+AC_C_BIGENDIAN
AC_MSG_CHECKING(if ANSI prototypes work)
AC_TRY_COMPILE([int foo(char *); int foo (char *bar) {return 1;}],
/*
- * $Id: pinger.cc,v 1.27 1997/10/25 17:22:54 wessels Exp $
+ * $Id: pinger.cc,v 1.28 1997/10/31 05:15:08 wessels Exp $
*
* DEBUG: section 42 ICMP Pinger program
* AUTHOR: Duane Wessels
#if HAVE_IP_HL
iphdrlen = ip->ip_hl << 2;
#else /* HAVE_IP_HL */
-#if BYTE_ORDER == BIG_ENDIAN
+#if WORDS_BIGENDIAN
iphdrlen = (ip->ip_vhl >> 4) << 2;
-#endif
-#if BYTE_ORDER == LITTLE_ENDIAN
+#else
iphdrlen = (ip->ip_vhl & 0xF) << 2;
#endif
#endif /* HAVE_IP_HL */