$NetBSD: patch-ab,v 1.3 2011/12/14 04:05:33 sbd Exp $ --- configure.orig 1999-12-22 08:51:48.000000000 +0000 +++ configure @@ -1360,6 +1360,8 @@ then LDFLAGS="$LDFLAGS -L$PCAP_LIBPATH" fi +if false +then echo $ac_n "checking for local libnet library""... $ac_c" 1>&6 echo "configure:1365: checking for local libnet library" >&5 libnet=FAIL @@ -1389,19 +1391,8 @@ if test "x$LIBNET_LIBPATH" != "x" then LDFLAGS="$LDFLAGS -L$LIBNET_LIBPATH" fi - -if test "x$ac_cv_c_bigendian" = "xyes"; then - cat >> confdefs.h <<\EOF -#define LIBNET_BIG_ENDIAN 1 -EOF - -else - cat >> confdefs.h <<\EOF -#define LIBNET_LIL_ENDIAN 1 -EOF - fi - + for ac_func in gethostbyname getservbyname do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 @@ -1877,6 +1868,18 @@ EOF fi +if test "x$ac_cv_c_bigendian" = "xyes"; then + cat >> confdefs.h <<\EOF +#define LIBNET_BIG_ENDIAN 1 +EOF + +else + cat >> confdefs.h <<\EOF +#define LIBNET_LIL_ENDIAN 1 +EOF + +fi + for ac_func in bzero bcopy bcmp strdup qsort snprintf usleep strerror strtol strtoul dlopen scandir do