Lines 24397-24417
Link Here
|
24397 |
else |
24397 |
else |
24398 |
libnet_dir="/usr/include /usr/local/include /sw/include" |
24398 |
libnet_dir="/usr/include /usr/local/include /sw/include" |
24399 |
fi |
24399 |
fi |
24400 |
echo "$as_me:$LINENO: checking \"for libnet.h version 1.0.x\"" >&5 |
24400 |
echo "$as_me:$LINENO: checking \"for libnet-1.0.h version 1.0.x\"" >&5 |
24401 |
echo $ECHO_N "checking \"for libnet.h version 1.0.x\"... $ECHO_C" >&6 |
24401 |
echo $ECHO_N "checking \"for libnet-1.0.h version 1.0.x\"... $ECHO_C" >&6 |
24402 |
for i in $libnet_dir; do |
24402 |
for i in $libnet_dir; do |
24403 |
if test -r $i/libnet.h; then |
24403 |
if test -r $i/libnet-1.0.h; then |
24404 |
LIBNET_INC_DIR=$i |
24404 |
LIBNET_INC_DIR=$i |
24405 |
fi |
24405 |
fi |
24406 |
done |
24406 |
done |
24407 |
|
24407 |
|
24408 |
if test "$LIBNET_INC_DIR" != ""; then |
24408 |
if test "$LIBNET_INC_DIR" != ""; then |
24409 |
if eval "grep LIBNET_VERSION $LIBNET_INC_DIR/libnet.h | grep -v 1.0 >/dev/null"; then |
24409 |
if eval "grep LIBNET_VERSION $LIBNET_INC_DIR/libnet-1.0.h | grep -v 1.0 >/dev/null"; then |
24410 |
|
24410 |
|
24411 |
echo |
24411 |
echo |
24412 |
echo |
24412 |
echo |
24413 |
echo "**********************************************" |
24413 |
echo "**********************************************" |
24414 |
echo " ERROR: unable to find" "libnet 1.0.x (libnet.h)" |
24414 |
echo " ERROR: unable to find" "libnet 1.0.x (libnet-1.0.h)" |
24415 |
echo " checked in the following places" |
24415 |
echo " checked in the following places" |
24416 |
for i in `echo $LIBNET_INC_DIR`; do |
24416 |
for i in `echo $LIBNET_INC_DIR`; do |
24417 |
echo " $i" |
24417 |
echo " $i" |
Lines 24421-24428
Link Here
|
24421 |
exit 1 |
24421 |
exit 1 |
24422 |
|
24422 |
|
24423 |
fi |
24423 |
fi |
24424 |
CFLAGS="${CFLAGS} `libnet-config --defines` `libnet-config --cflags`" |
24424 |
CFLAGS="${CFLAGS} `libnet-1.0-config --defines` `libnet-1.0-config --cflags`" |
24425 |
LIBS="${LIBS} `libnet-config --libs`" |
24425 |
LIBS="${LIBS} `libnet-1.0-config --libs`" |
24426 |
CPPFLAGS="${CPPFLAGS} -I${LIBNET_INC_DIR}" |
24426 |
CPPFLAGS="${CPPFLAGS} -I${LIBNET_INC_DIR}" |
24427 |
echo "$as_me:$LINENO: result: $i" >&5 |
24427 |
echo "$as_me:$LINENO: result: $i" >&5 |
24428 |
echo "${ECHO_T}$i" >&6 |
24428 |
echo "${ECHO_T}$i" >&6 |
Lines 24439-24445
Link Here
|
24439 |
# Check whether --enable-flexresp or --disable-flexresp was given. |
24439 |
# Check whether --enable-flexresp or --disable-flexresp was given. |
24440 |
if test "${enable_flexresp+set}" = set; then |
24440 |
if test "${enable_flexresp+set}" = set; then |
24441 |
enableval="$enable_flexresp" |
24441 |
enableval="$enable_flexresp" |
24442 |
CPPFLAGS="${CPPFLAGS} -DENABLE_RESPONSE `libnet-config --defines --cflags`" LDFLAGS="${LDFLAGS} `libnet-config --libs`" |
24442 |
CPPFLAGS="${CPPFLAGS} -DENABLE_RESPONSE `libnet-1.0-config --defines --cflags`" LDFLAGS="${LDFLAGS} `libnet-1.0-config --libs`" |
24443 |
fi; |
24443 |
fi; |
24444 |
|
24444 |
|
24445 |
|
24445 |
|
Lines 24450-24474
Link Here
|
24450 |
exit |
24450 |
exit |
24451 |
fi |
24451 |
fi |
24452 |
|
24452 |
|
24453 |
if test `libnet-config --cflags | wc -c` = "1"; then |
24453 |
if test `libnet-1.0-config --cflags | wc -c` = "1"; then |
24454 |
CPPFLAGS="${CPPFLAGS} -I/usr/local/include -I/sw/include" |
24454 |
CPPFLAGS="${CPPFLAGS} -I/usr/local/include -I/sw/include" |
24455 |
LIBNET_CONFIG_BROKEN_CFLAGS=yes |
24455 |
LIBNET_CONFIG_BROKEN_CFLAGS=yes |
24456 |
fi |
24456 |
fi |
24457 |
|
24457 |
|
24458 |
if test `libnet-config --libs | wc -c` = "1"; then |
24458 |
if test `libnet-1.0-config --libs | wc -c` = "1"; then |
24459 |
{ echo "$as_me:$LINENO: WARNING: libnet-config --libs is broken on your system. If you" >&5 |
24459 |
{ echo "$as_me:$LINENO: WARNING: libnet-1.0-config --libs is broken on your system. If you" >&5 |
24460 |
echo "$as_me: WARNING: libnet-config --libs is broken on your system. If you" >&2;} |
24460 |
echo "$as_me: WARNING: libnet-1.0-config --libs is broken on your system. If you" >&2;} |
24461 |
{ echo "$as_me:$LINENO: WARNING: are using a precompiled package please notify the" >&5 |
24461 |
{ echo "$as_me:$LINENO: WARNING: are using a precompiled package please notify the" >&5 |
24462 |
echo "$as_me: WARNING: are using a precompiled package please notify the" >&2;} |
24462 |
echo "$as_me: WARNING: are using a precompiled package please notify the" >&2;} |
24463 |
{ echo "$as_me:$LINENO: WARNING: maintainer." >&5 |
24463 |
{ echo "$as_me:$LINENO: WARNING: maintainer." >&5 |
24464 |
echo "$as_me: WARNING: maintainer." >&2;} |
24464 |
echo "$as_me: WARNING: maintainer." >&2;} |
24465 |
LDFLAGS="${LDFLAGS} -L/usr/local/lib -L/sw/lib" |
24465 |
LDFLAGS="${LDFLAGS} -L/usr/local/lib -L/sw/lib" |
24466 |
LIBS="${LIBS} -lnet" |
24466 |
LIBS="${LIBS} -lnet-1.0" |
24467 |
fi |
24467 |
fi |
24468 |
|
24468 |
|
24469 |
LNET="" |
24469 |
LNET="" |
24470 |
|
24470 |
|
24471 |
for ac_header in libnet.h |
24471 |
for ac_header in libnet-1.0.h |
24472 |
do |
24472 |
do |
24473 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
24473 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
24474 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
24474 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
Lines 24637-24654
Link Here
|
24637 |
libnet_dir="/usr/include /usr/local/include /sw/include" |
24637 |
libnet_dir="/usr/include /usr/local/include /sw/include" |
24638 |
fi |
24638 |
fi |
24639 |
else |
24639 |
else |
24640 |
libnet_dir=`libnet-config --cflags | cut -dI -f2` |
24640 |
libnet_dir=`libnet-1.0-config --cflags | cut -dI -f2` |
24641 |
fi |
24641 |
fi |
24642 |
|
24642 |
|
24643 |
LIBNET_INC_DIR="" |
24643 |
LIBNET_INC_DIR="" |
24644 |
for i in $libnet_dir; do |
24644 |
for i in $libnet_dir; do |
24645 |
if test -r $i/libnet.h; then |
24645 |
if test -r $i/libnet-1.0.h; then |
24646 |
LIBNET_INC_DIR=$i |
24646 |
LIBNET_INC_DIR=$i |
24647 |
fi |
24647 |
fi |
24648 |
done |
24648 |
done |
24649 |
|
24649 |
|
24650 |
if test "$LIBNET_INC_DIR" != ""; then |
24650 |
if test "$LIBNET_INC_DIR" != ""; then |
24651 |
if eval "grep LIBNET_VERSION $LIBNET_INC_DIR/libnet.h | grep -v 1.0.2a >/dev/null"; then |
24651 |
if eval "grep LIBNET_VERSION $LIBNET_INC_DIR/libnet-1.0.h | grep -v 1.0.2a >/dev/null"; then |
24652 |
echo "$as_me:$LINENO: result: no" >&5 |
24652 |
echo "$as_me:$LINENO: result: no" >&5 |
24653 |
echo "${ECHO_T}no" >&6 |
24653 |
echo "${ECHO_T}no" >&6 |
24654 |
echo |
24654 |
echo |
Lines 24659-24665
Link Here
|
24659 |
echo |
24659 |
echo |
24660 |
echo |
24660 |
echo |
24661 |
echo "**********************************************" |
24661 |
echo "**********************************************" |
24662 |
echo " ERROR: unable to find" "libnet 1.0.2a (libnet.h)" |
24662 |
echo " ERROR: unable to find" "libnet 1.0.2a (libnet-1.0.h)" |
24663 |
echo " checked in the following places" |
24663 |
echo " checked in the following places" |
24664 |
for i in `echo $LIBNET_INC_DIR`; do |
24664 |
for i in `echo $LIBNET_INC_DIR`; do |
24665 |
echo " $i" |
24665 |
echo " $i" |
Lines 24678-24684
Link Here
|
24678 |
echo |
24678 |
echo |
24679 |
echo |
24679 |
echo |
24680 |
echo "**********************************************" |
24680 |
echo "**********************************************" |
24681 |
echo " ERROR: unable to find" "libnet 1.0.2a (libnet.h)" |
24681 |
echo " ERROR: unable to find" "libnet 1.0.2a (libnet-1.0.h)" |
24682 |
echo " checked in the following places" |
24682 |
echo " checked in the following places" |
24683 |
for i in `echo $libnet_dir`; do |
24683 |
for i in `echo $libnet_dir`; do |
24684 |
echo " $i" |
24684 |
echo " $i" |
Lines 24691-24703
Link Here
|
24691 |
|
24691 |
|
24692 |
LNET="" |
24692 |
LNET="" |
24693 |
|
24693 |
|
24694 |
echo "$as_me:$LINENO: checking for libnet_build_ip in -lnet" >&5 |
24694 |
echo "$as_me:$LINENO: checking for libnet_build_ip in -lnet-1.0" >&5 |
24695 |
echo $ECHO_N "checking for libnet_build_ip in -lnet... $ECHO_C" >&6 |
24695 |
echo $ECHO_N "checking for libnet_build_ip in -lnet-1.0... $ECHO_C" >&6 |
24696 |
if test "${ac_cv_lib_net_libnet_build_ip+set}" = set; then |
24696 |
if test "${ac_cv_lib_net_libnet_build_ip+set}" = set; then |
24697 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
24697 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
24698 |
else |
24698 |
else |
24699 |
ac_check_lib_save_LIBS=$LIBS |
24699 |
ac_check_lib_save_LIBS=$LIBS |
24700 |
LIBS="-lnet $LIBS" |
24700 |
LIBS="-lnet-1.0 $LIBS" |
24701 |
cat >conftest.$ac_ext <<_ACEOF |
24701 |
cat >conftest.$ac_ext <<_ACEOF |
24702 |
/* confdefs.h. */ |
24702 |
/* confdefs.h. */ |
24703 |
_ACEOF |
24703 |
_ACEOF |
Lines 24760-24766
Link Here
|
24760 |
#define HAVE_LIBNET 1 |
24760 |
#define HAVE_LIBNET 1 |
24761 |
_ACEOF |
24761 |
_ACEOF |
24762 |
|
24762 |
|
24763 |
LIBS="-lnet $LIBS" |
24763 |
LIBS="-lnet-1.0 $LIBS" |
24764 |
|
24764 |
|
24765 |
else |
24765 |
else |
24766 |
LNET="no" |
24766 |
LNET="no" |
Lines 25041-25047
Link Here
|
25041 |
# Check whether --enable-react or --disable-react was given. |
25041 |
# Check whether --enable-react or --disable-react was given. |
25042 |
if test "${enable_react+set}" = set; then |
25042 |
if test "${enable_react+set}" = set; then |
25043 |
enableval="$enable_react" |
25043 |
enableval="$enable_react" |
25044 |
CPPFLAGS="${CPPFLAGS} -DENABLE_REACT `libnet-config --defines --cflags`" LDFLAGS="${LDFLAGS} `libnet-config --libs`" |
25044 |
CPPFLAGS="${CPPFLAGS} -DENABLE_REACT `libnet-1.0-config --defines --cflags`" LDFLAGS="${LDFLAGS} `libnet-1.0-config --libs`" |
25045 |
fi; |
25045 |
fi; |
25046 |
|
25046 |
|
25047 |
|
25047 |
|
Lines 25053-25077
Link Here
|
25053 |
exit |
25053 |
exit |
25054 |
fi |
25054 |
fi |
25055 |
|
25055 |
|
25056 |
if test `libnet-config --cflags | wc -c` = "1"; then |
25056 |
if test `libnet-1.0-config --cflags | wc -c` = "1"; then |
25057 |
CPPFLAGS="${CPPFLAGS} -I/usr/local/include -I/sw/include" |
25057 |
CPPFLAGS="${CPPFLAGS} -I/usr/local/include -I/sw/include" |
25058 |
LIBNET_CONFIG_BROKEN_CFLAGS=yes |
25058 |
LIBNET_CONFIG_BROKEN_CFLAGS=yes |
25059 |
fi |
25059 |
fi |
25060 |
|
25060 |
|
25061 |
if test `libnet-config --libs | wc -c` = "1"; then |
25061 |
if test `libnet-1.0-config --libs | wc -c` = "1"; then |
25062 |
{ echo "$as_me:$LINENO: WARNING: libnet-config --libs is broken on your system. If you" >&5 |
25062 |
{ echo "$as_me:$LINENO: WARNING: libnet-1.0-config --libs is broken on your system. If you" >&5 |
25063 |
echo "$as_me: WARNING: libnet-config --libs is broken on your system. If you" >&2;} |
25063 |
echo "$as_me: WARNING: libnet-1.0-config --libs is broken on your system. If you" >&2;} |
25064 |
{ echo "$as_me:$LINENO: WARNING: are using a precompiled package please notify the" >&5 |
25064 |
{ echo "$as_me:$LINENO: WARNING: are using a precompiled package please notify the" >&5 |
25065 |
echo "$as_me: WARNING: are using a precompiled package please notify the" >&2;} |
25065 |
echo "$as_me: WARNING: are using a precompiled package please notify the" >&2;} |
25066 |
{ echo "$as_me:$LINENO: WARNING: maintainer." >&5 |
25066 |
{ echo "$as_me:$LINENO: WARNING: maintainer." >&5 |
25067 |
echo "$as_me: WARNING: maintainer." >&2;} |
25067 |
echo "$as_me: WARNING: maintainer." >&2;} |
25068 |
LDFLAGS="${LDFLAGS} -L/usr/local/lib -L/sw/lib" |
25068 |
LDFLAGS="${LDFLAGS} -L/usr/local/lib -L/sw/lib" |
25069 |
LIBS="${LIBS} -lnet" |
25069 |
LIBS="${LIBS} -lnet-1.0" |
25070 |
fi |
25070 |
fi |
25071 |
|
25071 |
|
25072 |
LNET="" |
25072 |
LNET="" |
25073 |
|
25073 |
|
25074 |
for ac_header in libnet.h |
25074 |
for ac_header in libnet-1.0.h |
25075 |
do |
25075 |
do |
25076 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
25076 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
25077 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
25077 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
Lines 25240-25257
Link Here
|
25240 |
libnet_dir="/usr/include /usr/local/include /sw/include" |
25240 |
libnet_dir="/usr/include /usr/local/include /sw/include" |
25241 |
fi |
25241 |
fi |
25242 |
else |
25242 |
else |
25243 |
libnet_dir=`libnet-config --cflags | cut -dI -f2` |
25243 |
libnet_dir=`libnet-1.0-config --cflags | cut -dI -f2` |
25244 |
fi |
25244 |
fi |
25245 |
|
25245 |
|
25246 |
LIBNET_INC_DIR="" |
25246 |
LIBNET_INC_DIR="" |
25247 |
for i in $libnet_dir; do |
25247 |
for i in $libnet_dir; do |
25248 |
if test -r $i/libnet.h; then |
25248 |
if test -r $i/libnet-1.0.h; then |
25249 |
LIBNET_INC_DIR=$i |
25249 |
LIBNET_INC_DIR=$i |
25250 |
fi |
25250 |
fi |
25251 |
done |
25251 |
done |
25252 |
|
25252 |
|
25253 |
if test "$LIBNET_INC_DIR" != ""; then |
25253 |
if test "$LIBNET_INC_DIR" != ""; then |
25254 |
if eval "grep LIBNET_VERSION $LIBNET_INC_DIR/libnet.h | grep -v 1.0.2a >/dev/null"; then |
25254 |
if eval "grep LIBNET_VERSION $LIBNET_INC_DIR/libnet-1.0.h | grep -v 1.0.2a >/dev/null"; then |
25255 |
echo "$as_me:$LINENO: result: no" >&5 |
25255 |
echo "$as_me:$LINENO: result: no" >&5 |
25256 |
echo "${ECHO_T}no" >&6 |
25256 |
echo "${ECHO_T}no" >&6 |
25257 |
echo |
25257 |
echo |
Lines 25262-25268
Link Here
|
25262 |
echo |
25262 |
echo |
25263 |
echo |
25263 |
echo |
25264 |
echo "**********************************************" |
25264 |
echo "**********************************************" |
25265 |
echo " ERROR: unable to find" "libnet 1.0.2a (libnet.h)" |
25265 |
echo " ERROR: unable to find" "libnet 1.0.2a (libnet-1.0.h)" |
25266 |
echo " checked in the following places" |
25266 |
echo " checked in the following places" |
25267 |
for i in `echo $LIBNET_INC_DIR`; do |
25267 |
for i in `echo $LIBNET_INC_DIR`; do |
25268 |
echo " $i" |
25268 |
echo " $i" |
Lines 25281-25287
Link Here
|
25281 |
echo |
25281 |
echo |
25282 |
echo |
25282 |
echo |
25283 |
echo "**********************************************" |
25283 |
echo "**********************************************" |
25284 |
echo " ERROR: unable to find" "libnet 1.0.2a (libnet.h)" |
25284 |
echo " ERROR: unable to find" "libnet 1.0.2a (libnet-1.0.h)" |
25285 |
echo " checked in the following places" |
25285 |
echo " checked in the following places" |
25286 |
for i in `echo $libnet_dir`; do |
25286 |
for i in `echo $libnet_dir`; do |
25287 |
echo " $i" |
25287 |
echo " $i" |
Lines 25294-25306
Link Here
|
25294 |
|
25294 |
|
25295 |
LNET="" |
25295 |
LNET="" |
25296 |
|
25296 |
|
25297 |
echo "$as_me:$LINENO: checking for libnet_build_ip in -lnet" >&5 |
25297 |
echo "$as_me:$LINENO: checking for libnet_build_ip in -lnet-1.0" >&5 |
25298 |
echo $ECHO_N "checking for libnet_build_ip in -lnet... $ECHO_C" >&6 |
25298 |
echo $ECHO_N "checking for libnet_build_ip in -lnet-1.0... $ECHO_C" >&6 |
25299 |
if test "${ac_cv_lib_net_libnet_build_ip+set}" = set; then |
25299 |
if test "${ac_cv_lib_net_libnet_build_ip+set}" = set; then |
25300 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
25300 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
25301 |
else |
25301 |
else |
25302 |
ac_check_lib_save_LIBS=$LIBS |
25302 |
ac_check_lib_save_LIBS=$LIBS |
25303 |
LIBS="-lnet $LIBS" |
25303 |
LIBS="-lnet-1.0 $LIBS" |
25304 |
cat >conftest.$ac_ext <<_ACEOF |
25304 |
cat >conftest.$ac_ext <<_ACEOF |
25305 |
/* confdefs.h. */ |
25305 |
/* confdefs.h. */ |
25306 |
_ACEOF |
25306 |
_ACEOF |
Lines 25363-25369
Link Here
|
25363 |
#define HAVE_LIBNET 1 |
25363 |
#define HAVE_LIBNET 1 |
25364 |
_ACEOF |
25364 |
_ACEOF |
25365 |
|
25365 |
|
25366 |
LIBS="-lnet $LIBS" |
25366 |
LIBS="-lnet-1.0 $LIBS" |
25367 |
|
25367 |
|
25368 |
else |
25368 |
else |
25369 |
LNET="no" |
25369 |
LNET="no" |