Changeset 1839 for trunk/configure.in

Show
Ignore:
Timestamp:
04/22/07 15:22:54 (21 months ago)
Author:
aturner
Message:

don't use pcap_findalldevs() on OS X. refs #167

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/configure.in

    r1824 r1839  
    1111dnl Set version info here! 
    1212MAJOR_VERSION=3 
    13 MINOR_VERSION=0 
     13MINOR_VERSION=1 
    1414MICRO_VERSION=0 
    1515TCPREPLAY_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION 
     
    983983dnl No 'make test' when cross compile 
    984984 
    985 AC_MSG_CHECKING( for 'make test' profile) 
     985AC_MSG_CHECKING(for 'make test' profile) 
    986986if test "$host" != "$build" ; then 
    987987        AC_MSG_WARN(Unable to do tests when cross-compiling) 
     
    995995      AC_MSG_RESULT([Using --with-testnic=$withval])], 
    996996    [ 
     997 
     998dnl There's a bug in OS X which causes pcap_findalldevs() to make the wifi NIC to disassociate 
     999dnl so under OSX we disable the interface list feature 
     1000disable_pcap_findalldevs=no 
     1001 
     1002 
    9971003dnl these need to be dynamic based on OS 
    9981004case $host in 
     
    10181024        nic1=en0 
    10191025        nic2=en0 
     1026        disable_pcap_findalldevs=yes 
    10201027        AC_MSG_RESULT(Apple OS X) 
    10211028        ;; 
     
    10491056AC_SUBST(nic1) 
    10501057AC_SUBST(nic2) 
     1058 
     1059 
     1060AC_MSG_CHECKING([if it's ok to use pcap_findalldevs()]) 
     1061if test x$disable_pcap_findalldevs = xno ; then 
     1062        AC_DEFINE([ENABLE_PCAP_FINDALLDEVS], [1], [Enable use of pcap_findalldevs()]) 
     1063        AC_MSG_RESULT(yes) 
     1064else 
     1065        AC_MSG_RESULT(no) 
     1066fi 
    10511067 
    10521068LIBOPTS_CHECK 
     
    10701086        AC_MSG_WARN([OS X <= 10.4.9 has a serious problem.  Please see: http://tcpreplay.synfin.net/trac/ticket/142]) 
    10711087        ;; 
     1088         
     1089        *-*-cygwin) 
     1090        AC_MSG_WARN([Windows/Cygwin support is still somewhat experimental.  Please report any bugs!]) 
     1091        ;; 
    10721092esac