Changeset 1871 for trunk/configure.in

Show
Ignore:
Timestamp:
06/23/07 17:56:46 (19 months ago)
Author:
aturner
Message:

detect libpcap >= 0.9.6 which fixes wlan disassociation issue under OS X.
fixes #167

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/configure.in

    r1870 r1871  
    514514dnl reduced quite a bit more if we chose too 
    515515AC_MSG_CHECKING(for libpcap version) 
     516 
     517dnl 0.9.6 (which is still thinks it is 0.9.5 due to a bug) introduces an important 
     518dnl fix for OSX.  See: http://tcpreplay.synfin.net/trac/ticket/167 
     519libpcap_version_096=no 
     520AC_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]) 
    516539 
    517540AC_RUN_IFELSE(AC_LANG_PROGRAM([[ 
     
    10371060        nic1=en0 
    10381061        nic2=en0 
    1039         disable_pcap_findalldevs=yes 
     1062        if test x$libpcap_version_096 = xno ; then 
     1063        disable_pcap_findalldevs=yes 
     1064    fi 
    10401065        AC_MSG_RESULT(Apple OS X) 
    10411066        ;;