Changeset 8bfa671 for configure.in


Ignore:
Timestamp:
11/02/05 10:19:32 (16 years ago)
Author:
Daniel Lawson <dlawson@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
4a605a9
Parents:
1e7434a
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
  • configure.in

    ra3505a8 r8bfa671  
    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.