Changeset 467


Ignore:
Timestamp:
11/02/05 10:19:32 (8 years ago)
Author:
dlawson
Message:

fixed tests for pcap_open_dead etc, so that they only test if we actually have pcap installed anyway

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.in

    r465 r467  
    9999fi       
    100100 
    101 # Earlier versions of pcap don't have pcap_open_dead. EG: the one OpenBSD 
    102 # ships with. Even Debian Woody is more up to date. 
    103 AC_CHECK_LIB(pcap,pcap_open_dead, 
    104         have_pcap_open_dead=true, 
    105         have_pcap_open_dead=false) 
    106  
    107 if test "$have_pcap_open_dead" = false; then 
    108         AC_REPLACE_FUNCS(pcap_open_dead) 
    109 fi 
     101# Only test for these functions if we have PCAP installed 
     102        if test "$libtrace_pcap" = true; then 
     103        # Earlier versions of pcap don't have pcap_open_dead. EG: the one  
     104        # OpenBSD ships with. Even Debian Woody is more up to date. 
     105        AC_CHECK_LIB(pcap,pcap_open_dead, 
     106                have_pcap_open_dead=true, 
     107                have_pcap_open_dead=false) 
     108 
     109        if test "$have_pcap_open_dead" = false; then 
     110                AC_REPLACE_FUNCS(pcap_open_dead) 
     111        fi 
    110112    
    111 # Versions of libpcap earlier than 0.8 don't have pcap_dump_flush 
    112 AC_CHECK_LIB(pcap,pcap_dump_flush, 
    113              have_pcap_dump_flush=true, 
    114              have_pcap_dump_flush=false) 
    115  
    116 if test "$have_pcap_dump_flush" = false; then 
    117         AC_REPLACE_FUNCS(pcap_dump_flush) 
     113        # Versions of libpcap earlier than 0.8 don't have pcap_dump_flush 
     114        AC_CHECK_LIB(pcap,pcap_dump_flush, 
     115                     have_pcap_dump_flush=true, 
     116                     have_pcap_dump_flush=false) 
     117 
     118        if test "$have_pcap_dump_flush" = false; then 
     119                AC_REPLACE_FUNCS(pcap_dump_flush) 
     120        fi 
    118121fi 
    119122 
Note: See TracChangeset for help on using the changeset viewer.