Changeset 96
- Timestamp:
- 23.11.2002 00:46:35 (6 years ago)
- Location:
- trunk
- Files:
-
- 5 modified
-
TODO (modified) (1 diff)
-
configure (modified) (58 diffs)
-
configure.in (modified) (1 diff)
-
source/config.h.in (modified) (1 diff)
-
source/pcap.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/TODO
r94 r96 4 4 - use a pcap filter to select IP packets (integrate patch from Brieuc and do a non regression test) 5 5 - if no packets are received, ipfm does not dump its files. 6 - lex and yacc checks do not work as expected (if no yacc or bison is present, does not stop ./configure) 6 - ./configure lex and yacc checks do not work as expected (if no yacc or bison is present, does not stop ./configure) 7 - add an ipfm.conf option to read packets from a file (to test IPFM without beeing root). 8 - document ./configure options in INSTALL 7 9 8 10 - have a better detection of long command line options (actually, #ifdef LINUX...) -
trunk/configure
r86 r96 14 14 ac_help="$ac_help 15 15 --enable-debug-messages Use debug messages" 16 ac_help="$ac_help 17 --enable-ip-check Additional IP packets checks" 16 18 17 19 # Initialize some variables set by options. … … 531 533 enableval="$enable_debug_messages" 532 534 533 if test $enableval = "no"; then 534 DEBUG_MESSAGES 535 if test $enableval = "yes"; then 536 cat >> confdefs.h <<\EOF 537 #define DEBUG_MESSAGES 1 538 EOF 539 535 540 fi 536 cat >> confdefs.h <<\EOF 537 #define DEBUG_MESSAGES 1 538 EOF 539 541 542 fi 543 544 545 # Check whether --enable-ip-check or --disable-ip-check was given. 546 if test "${enable_ip_check+set}" = set; then 547 enableval="$enable_ip_check" 548 549 if test $enableval = "yes"; then 550 cat >> confdefs.h <<\EOF 551 #define IP_CHECK 1 552 EOF 553 554 fi 540 555 541 556 fi … … 553 568 set dummy uname; ac_word=$2 554 569 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 555 echo "configure:5 56: checking for $ac_word" >&5570 echo "configure:571: checking for $ac_word" >&5 556 571 if eval "test \"`echo '$''{'ac_cv_prog_UNAME'+set}'`\" = set"; then 557 572 echo $ac_n "(cached) $ac_c" 1>&6 … … 587 602 588 603 echo $ac_n "checking your OS""... $ac_c" 1>&6 589 echo "configure: 590: checking your OS" >&5604 echo "configure:605: checking your OS" >&5 590 605 system=`$UNAME` 591 606 case $system in … … 645 660 set dummy gcc; ac_word=$2 646 661 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 647 echo "configure:6 48: checking for $ac_word" >&5662 echo "configure:663: checking for $ac_word" >&5 648 663 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 649 664 echo $ac_n "(cached) $ac_c" 1>&6 … … 675 690 set dummy cc; ac_word=$2 676 691 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 677 echo "configure:6 78: checking for $ac_word" >&5692 echo "configure:693: checking for $ac_word" >&5 678 693 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 679 694 echo $ac_n "(cached) $ac_c" 1>&6 … … 726 741 set dummy cl; ac_word=$2 727 742 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 728 echo "configure:7 29: checking for $ac_word" >&5743 echo "configure:744: checking for $ac_word" >&5 729 744 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 730 745 echo $ac_n "(cached) $ac_c" 1>&6 … … 758 773 759 774 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 760 echo "configure:7 61: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5775 echo "configure:776: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 761 776 762 777 ac_ext=c … … 769 784 cat > conftest.$ac_ext << EOF 770 785 771 #line 7 72"configure"786 #line 787 "configure" 772 787 #include "confdefs.h" 773 788 774 789 main(){return(0);} 775 790 EOF 776 if { (eval echo configure:7 77: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then791 if { (eval echo configure:792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 777 792 ac_cv_prog_cc_works=yes 778 793 # If we can't run a trivial program, we are probably using a cross compiler. … … 800 815 fi 801 816 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 802 echo "configure:8 03: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5817 echo "configure:818: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 803 818 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 804 819 cross_compiling=$ac_cv_prog_cc_cross 805 820 806 821 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 807 echo "configure:8 08: checking whether we are using GNU C" >&5822 echo "configure:823: checking whether we are using GNU C" >&5 808 823 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 809 824 echo $ac_n "(cached) $ac_c" 1>&6 … … 814 829 #endif 815 830 EOF 816 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8 17: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then831 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 817 832 ac_cv_prog_gcc=yes 818 833 else … … 833 848 CFLAGS= 834 849 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 835 echo "configure:8 36: checking whether ${CC-cc} accepts -g" >&5850 echo "configure:851: checking whether ${CC-cc} accepts -g" >&5 836 851 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 837 852 echo $ac_n "(cached) $ac_c" 1>&6 … … 865 880 866 881 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 867 echo "configure:8 68: checking how to run the C preprocessor" >&5882 echo "configure:883: checking how to run the C preprocessor" >&5 868 883 # On Suns, sometimes $CPP names a directory. 869 884 if test -n "$CPP" && test -d "$CPP"; then … … 880 895 # not just through cpp. 881 896 cat > conftest.$ac_ext <<EOF 882 #line 8 83"configure"897 #line 898 "configure" 883 898 #include "confdefs.h" 884 899 #include <assert.h> … … 886 901 EOF 887 902 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 888 { (eval echo configure: 889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }903 { (eval echo configure:904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 889 904 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 890 905 if test -z "$ac_err"; then … … 897 912 CPP="${CC-cc} -E -traditional-cpp" 898 913 cat > conftest.$ac_ext <<EOF 899 #line 9 00"configure"914 #line 915 "configure" 900 915 #include "confdefs.h" 901 916 #include <assert.h> … … 903 918 EOF 904 919 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 905 { (eval echo configure:9 06: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }920 { (eval echo configure:921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 906 921 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 907 922 if test -z "$ac_err"; then … … 914 929 CPP="${CC-cc} -nologo -E" 915 930 cat > conftest.$ac_ext <<EOF 916 #line 9 17"configure"931 #line 932 "configure" 917 932 #include "confdefs.h" 918 933 #include <assert.h> … … 920 935 EOF 921 936 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 922 { (eval echo configure:9 23: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }937 { (eval echo configure:938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 923 938 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 924 939 if test -z "$ac_err"; then … … 975 990 # ./install, which can be erroneously created by make from ./install.sh. 976 991 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 977 echo "configure:9 78: checking for a BSD compatible install" >&5992 echo "configure:993: checking for a BSD compatible install" >&5 978 993 if test -z "$INSTALL"; then 979 994 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then … … 1030 1045 set dummy flex; ac_word=$2 1031 1046 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1032 echo "configure:10 33: checking for $ac_word" >&51047 echo "configure:1048: checking for $ac_word" >&5 1033 1048 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then 1034 1049 echo $ac_n "(cached) $ac_c" 1>&6 … … 1064 1079 esac 1065 1080 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 1066 echo "configure:10 67: checking for yywrap in -l$ac_lib" >&51081 echo "configure:1082: checking for yywrap in -l$ac_lib" >&5 1067 1082 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` 1068 1083 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1072 1087 LIBS="-l$ac_lib $LIBS" 1073 1088 cat > conftest.$ac_ext <<EOF 1074 #line 10 75"configure"1089 #line 1090 "configure" 1075 1090 #include "confdefs.h" 1076 1091 /* Override any gcc2 internal prototype to avoid an error. */ … … 1083 1098 ; return 0; } 1084 1099 EOF 1085 if { (eval echo configure:1 086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1100 if { (eval echo configure:1101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1086 1101 rm -rf conftest* 1087 1102 eval "ac_cv_lib_$ac_lib_var=yes" … … 1108 1123 set dummy ranlib; ac_word=$2 1109 1124 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1110 echo "configure:11 11: checking for $ac_word" >&51125 echo "configure:1126: checking for $ac_word" >&5 1111 1126 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 1112 1127 echo $ac_n "(cached) $ac_c" 1>&6 … … 1140 1155 set dummy $ac_prog; ac_word=$2 1141 1156 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1142 echo "configure:11 43: checking for $ac_word" >&51157 echo "configure:1158: checking for $ac_word" >&5 1143 1158 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then 1144 1159 echo $ac_n "(cached) $ac_c" 1>&6 … … 1173 1188 set dummy ar; ac_word=$2 1174 1189 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1175 echo "configure:11 76: checking for $ac_word" >&51190 echo "configure:1191: checking for $ac_word" >&5 1176 1191 if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then 1177 1192 echo $ac_n "(cached) $ac_c" 1>&6 … … 1212 1227 1213 1228 echo $ac_n "checking for local libpcap""... $ac_c" 1>&6 1214 echo "configure:12 15: checking for local libpcap" >&51229 echo "configure:1230: checking for local libpcap" >&5 1215 1230 pcapdirs=`ls .. | grep libpcap | sed -e 's:/$::' -e 's:^:../:' | tr '\n' ' '` 1216 1231 libpcap=FAIL … … 1228 1243 echo "$ac_t""no" 1>&6 1229 1244 echo $ac_n "checking for main in -lpcap""... $ac_c" 1>&6 1230 echo "configure:12 31: checking for main in -lpcap" >&51245 echo "configure:1246: checking for main in -lpcap" >&5 1231 1246 ac_lib_var=`echo pcap'_'main | sed 'y%./+-%__p_%'` 1232 1247 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1236 1251 LIBS="-lpcap $LIBS" 1237 1252 cat > conftest.$ac_ext <<EOF 1238 #line 12 39"configure"1253 #line 1254 "configure" 1239 1254 #include "confdefs.h" 1240 1255 … … 1243 1258 ; return 0; } 1244 1259 EOF 1245 if { (eval echo configure:12 46: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1260 if { (eval echo configure:1261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1246 1261 rm -rf conftest* 1247 1262 eval "ac_cv_lib_$ac_lib_var=yes" … … 1267 1282 ac_safe=`echo "pcap.h" | sed 'y%./+-%__p_%'` 1268 1283 echo $ac_n "checking for pcap.h""... $ac_c" 1>&6 1269 echo "configure:12 70: checking for pcap.h" >&51284 echo "configure:1285: checking for pcap.h" >&5 1270 1285 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1271 1286 echo $ac_n "(cached) $ac_c" 1>&6 1272 1287 else 1273 1288 cat > conftest.$ac_ext <<EOF 1274 #line 12 75"configure"1289 #line 1290 "configure" 1275 1290 #include "confdefs.h" 1276 1291 #include <pcap.h> 1277 1292 EOF 1278 1293 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1279 { (eval echo configure:12 80: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1294 { (eval echo configure:1295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1280 1295 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1281 1296 if test -z "$ac_err"; then … … 1301 1316 if test "x$NO_PCAP_H" = "x1"; then 1302 1317 echo $ac_n "checking for exotic pcap.h places""... $ac_c" 1>&6 1303 echo "configure:13 04: checking for exotic pcap.h places" >&51318 echo "configure:1319: checking for exotic pcap.h places" >&5 1304 1319 if test -r /usr/include/pcap/pcap.h; then 1305 1320 INCLS="$INCLS -I/usr/include/pcap" … … 1323 1338 1324 1339 echo $ac_n "checking for strftime""... $ac_c" 1>&6 1325 echo "configure:13 26: checking for strftime" >&51340 echo "configure:1341: checking for strftime" >&5 1326 1341 cat > conftest.$ac_ext <<EOF 1327 #line 13 28"configure"1342 #line 1343 "configure" 1328 1343 #include "confdefs.h" 1329 1344 #include <time.h> … … 1332 1347 ; return 0; } 1333 1348 EOF 1334 if { (eval echo configure:13 35: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1349 if { (eval echo configure:1350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1335 1350 rm -rf conftest* 1336 1351 cat >> confdefs.h <<\EOF … … 1348 1363 1349 1364 echo $ac_n "checking for snprintf""... $ac_c" 1>&6 1350 echo "configure:13 51: checking for snprintf" >&51365 echo "configure:1366: checking for snprintf" >&5 1351 1366 cat > conftest.$ac_ext <<EOF 1352 #line 13 53"configure"1367 #line 1368 "configure" 1353 1368 #include "confdefs.h" 1354 1369 #include <stdio.h> … … 1357 1372 ; return 0; } 1358 1373 EOF 1359 if { (eval echo configure:13 60: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1374 if { (eval echo configure:1375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1360 1375 rm -rf conftest* 1361 1376 cat >> confdefs.h <<\EOF … … 1374 1389 lockf_found=yes 1375 1390 echo $ac_n "checking for lockf""... $ac_c" 1>&6 1376 echo "configure:13 77: checking for lockf" >&51391 echo "configure:1392: checking for lockf" >&5 1377 1392 cat > conftest.$ac_ext <<EOF 1378 #line 13 79"configure"1393 #line 1394 "configure" 1379 1394 #include "confdefs.h" 1380 1395 #include <unistd.h> … … 1383 1398 ; return 0; } 1384 1399 EOF 1385 if { (eval echo configure:1 386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1400 if { (eval echo configure:1401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1386 1401 rm -rf conftest* 1387 1402 cat >> confdefs.h <<\EOF … … 1400 1415 flock_found=yes 1401 1416 echo $ac_n "checking for flock""... $ac_c" 1>&6 1402 echo "configure:14 03: checking for flock" >&51417 echo "configure:1418: checking for flock" >&5 1403 1418 cat > conftest.$ac_ext <<EOF 1404 #line 14 05"configure"1419 #line 1420 "configure" 1405 1420 #include "confdefs.h" 1406 1421 #include <fcntl.h> … … 1409 1424 ; return 0; } 1410 1425 EOF 1411 if { (eval echo configure:14 12: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1426 if { (eval echo configure:1427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1412 1427 rm -rf conftest* 1413 1428 cat >> confdefs.h <<\EOF … … 1429 1444 1430 1445 echo $ac_n "checking for daemon""... $ac_c" 1>&6 1431 echo "configure:14 32: checking for daemon" >&51446 echo "configure:1447: checking for daemon" >&5 1432 1447 if eval "test \"`echo '$''{'ac_cv_func_daemon'+set}'`\" = set"; then 1433 1448 echo $ac_n "(cached) $ac_c" 1>&6 1434 1449 else 1435 1450 cat > conftest.$ac_ext <<EOF 1436 #line 14 37"configure"1451 #line 1452 "configure" 1437 1452 #include "confdefs.h" 1438 1453 /* System header to define __stub macros and hopefully few prototypes, … … 1457 1472 ; return 0; } 1458 1473 EOF 1459 if { (eval echo configure:14 60: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1474 if { (eval echo configure:1475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1460 1475 rm -rf conftest* 1461 1476 eval "ac_cv_func_daemon=yes" … … 1478 1493 echo "$ac_t""no" 1>&6 1479 1494 echo $ac_n "checking for daemon in -lbsd""... $ac_c" 1>&6 1480 echo "configure:14 81: checking for daemon in -lbsd" >&51495 echo "configure:1496: checking for daemon in -lbsd" >&5 1481 1496 ac_lib_var=`echo bsd'_'daemon | sed 'y%./+-%__p_%'` 1482 1497 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1486 1501 LIBS="-lbsd $LIBS" 1487 1502 cat > conftest.$ac_ext <<EOF 1488 #line 1 489"configure"1503 #line 1504 "configure" 1489 1504 #include "confdefs.h" 1490 1505 /* Override any gcc2 internal prototype to avoid an error. */ … … 1497 1512 ; return 0; } 1498 1513 EOF 1499 if { (eval echo configure:15 00: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1514 if { (eval echo configure:1515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1500 1515 rm -rf conftest* 1501 1516 eval "ac_cv_lib_$ac_lib_var=yes" … … 1527 1542 do 1528 1543 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1529 echo "configure:15 30: checking for $ac_func" >&51544 echo "configure:1545: checking for $ac_func" >&5 1530 1545 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1531 1546 echo $ac_n "(cached) $ac_c" 1>&6 1532 1547 else 1533 1548 cat > conftest.$ac_ext <<EOF 1534 #line 15 35"configure"1549 #line 1550 "configure" 1535 1550 #include "confdefs.h" 1536 1551 /* System header to define __stub macros and hopefully few prototypes, … … 1555 1570 ; return 0; } 1556 1571 EOF 1557 if { (eval echo configure:15 58: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1572 if { (eval echo configure:1573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1558 1573 rm -rf conftest* 1559 1574 eval "ac_cv_func_$ac_func=yes" … … 1584 1599 1585 1600 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1586 echo "configure:1 587: checking for ANSI C header files" >&51601 echo "configure:1602: checking for ANSI C header files" >&5 1587 1602 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1588 1603 echo $ac_n "(cached) $ac_c" 1>&6 1589 1604 else 1590 1605 cat > conftest.$ac_ext <<EOF 1591 #line 1 592"configure"1606 #line 1607 "configure" 1592 1607 #include "confdefs.h" 1593 1608 #include <stdlib.h> … … 1597 1612 EOF 1598 1613 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1599 { (eval echo configure:16 00: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1614 { (eval echo configure:1615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1600 1615 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1601 1616 if test -z "$ac_err"; then … … 1614 1629 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1615 1630 cat > conftest.$ac_ext <<EOF 1616 #line 16 17"configure"1631 #line 1632 "configure" 1617 1632 #include "confdefs.h" 1618 1633 #include <string.h> … … 1632 1647 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1633 1648 cat > conftest.$ac_ext <<EOF 1634 #line 16 35"configure"1649 #line 1650 "configure" 1635 1650 #include "confdefs.h" 1636 1651 #include <stdlib.h> … … 1653 1668 else 1654 1669 cat > conftest.$ac_ext <<EOF 1655 #line 16 56"configure"1670 #line 1671 "configure" 1656 1671 #include "confdefs.h" 1657 1672 #include <ctype.h> … … 1664 1679 1665 1680 EOF 1666 if { (eval echo configure:16 67: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1681 if { (eval echo configure:1682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1667 1682 then 1668 1683 : … … 1688 1703 1689 1704 echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6 1690 echo "configure:1 691: checking for u_int32_t" >&51705 echo "configure:1706: checking for u_int32_t" >&5 1691 1706 if eval "test \"`echo '$''{'ac_cv_type_u_int32_t'+set}'`\" = set"; then 1692 1707 echo $ac_n "(cached) $ac_c" 1>&6 1693 1708 else 1694 1709 cat > conftest.$ac_ext <<EOF 1695 #line 1 696"configure"1710 #line 1711 "configure" 1696 1711 #include "confdefs.h" 1697 1712 #include <sys/types.h> … … 1722 1737 if test $ac_cv_type_u_int32_t = no; then 1723 1738 echo $ac_n "checking for uint32_t""... $ac_c" 1>&6 1724 echo "configure:17 25: checking for uint32_t" >&51739 echo "configure:1740: checking for uint32_t" >&5 1725 1740 if eval "test \"`echo '$''{'ac_cv_type_uint32_t'+set}'`\" = set"; then 1726 1741 echo $ac_n "(cached) $ac_c" 1>&6 1727 1742 else 1728 1743 cat > conftest.$ac_ext <<EOF 1729 #line 17 30"configure"1744 #line 1745 "configure" 1730 1745 #include "confdefs.h" 1731 1746 #include <sys/types.h> … … 1757 1772 1758 1773 echo $ac_n "checking for u_int8_t""... $ac_c" 1>&6 1759 echo "configure:17 60: checking for u_int8_t" >&51774 echo "configure:1775: checking for u_int8_t" >&5 1760 1775 if eval "test \"`echo '$''{'ac_cv_type_u_int8_t'+set}'`\" = set"; then 1761 1776 echo $ac_n "(cached) $ac_c" 1>&6 1762 1777 else 1763 1778 cat > conftest.$ac_ext <<EOF 1764 #line 17 65"configure"1779 #line 1780 "configure" 1765 1780 #include "confdefs.h" 1766 1781 #include <sys/types.h> … … 1791 1806 if test $ac_cv_type_u_int8_t = no; then 1792 1807 echo $ac_n "checking for uint8_t""... $ac_c" 1>&6 1793 echo "configure:1 794: checking for uint8_t" >&51808 echo "configure:1809: checking for uint8_t" >&5 1794 1809 if eval "test \"`echo '$''{'ac_cv_type_uint8_t'+set}'`\" = set"; then 1795 1810 echo $ac_n "(cached) $ac_c" 1>&6 1796 1811 else 1797 1812 cat > conftest.$ac_ext <<EOF 1798 #line 1 799"configure"1813 #line 1814 "configure" 1799 1814 #include "confdefs.h" 1800 1815 #include <sys/types.h> -
trunk/configure.in
r86 r96 18 18 [ --enable-debug-messages Use debug messages], 19 19 [ 20 if test $enableval = "no"; then 21 DEBUG_MESSAGES 22 fi 23 AC_DEFINE(DEBUG_MESSAGES) 20 if test $enableval = "yes"; then 21 AC_DEFINE(DEBUG_MESSAGES) 22 fi 23 ]) 24 25 AC_ARG_ENABLE([ip-check], 26 [ --enable-ip-check Additional IP packets checks], 27 [ 28 if test $enableval = "yes"; then 29 AC_DEFINE(IP_CHECK) 30 fi 24 31 ]) 25 32 -
trunk/source/config.h.in
r86 r96 78 78 #undef DEBUG_MESSAGES 79 79 80 /* [De]Activate additional IP checks */ 81 #undef IP_CHECK 82 80 83 #endif /* __IPFM__CONFIG_H__ */ 81 84 -
trunk/source/pcap.c
r95 r96 34 34 #include <sys/socket.h> 35 35 #include <sys/types.h> 36 #include <unistd.h> 36 37 37 38 #include "config.h" … … 211 212 offset = 16; 212 213 break; 213 #ifdef 214 #ifdef DLT_LTALK 214 215 case DLT_LTALK: 215 216 offset = 0; … … 261 262 packet = packet + offset; 262 263 264 #ifdef IP_CHECK 265 /* If activated in ./configure, we check if this is a valid IP packet */ 263 266 if ( ((struct ip *) packet)->ip_hl < 5 || ((struct ip *) packet)->ip_v != 4 || iphdr_chksum(packet, ((struct ip *) packet)->ip_hl) != 0 ) { 264 267 /* Not an IP packet */ 268 DEBUG_MSG("getnextippkt : dropped a malformed IP packet"); 265 269 continue; 266 270 } 271 #endif 267 272 268 273 /* handle HUP
