| | 516 | |
| | 517 | dnl 0.9.6 (which is still thinks it is 0.9.5 due to a bug) introduces an important |
| | 518 | dnl fix for OSX. See: http://tcpreplay.synfin.net/trac/ticket/167 |
| | 519 | libpcap_version_096=no |
| | 520 | AC_RUN_IFELSE(AC_LANG_PROGRAM([[ |
| | 521 | #include <string.h> |
| | 522 | #include <stdlib.h> |
| | 523 | #include <stdio.h> |
| | 524 | #include "$LPCAPINC" |
| | 525 | #define PCAP_TEST "0.9.6" |
| | 526 | ]], [[ |
| | 527 | /* |
| | 528 | * simple proggy to test the version of libpcap |
| | 529 | * returns zero if version >= 0.9.6 |
| | 530 | * or one otherwise |
| | 531 | */ |
| | 532 | if (strncmp(pcap_lib_version(), PCAP_TEST, 5) >= 0) |
| | 533 | exit(0); |
| | 534 | |
| | 535 | exit(1); |
| | 536 | ]]), [ |
| | 537 | libpcap_version_096=yes |
| | 538 | ]) |