Changeset 544c680 for configure.in


Ignore:
Timestamp:
12/21/06 11:27:24 (14 years ago)
Author:
Shane Alcock <salcock@…>
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:
496b8e5
Parents:
eb1aab2
Message:

libpcap0.8 is now REQUIRED for libtrace to build - updated configure to do a proper check for pcap0.8 and to fail if it is not present

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.in

    r4e8378f r544c680  
    128128AC_CHECK_LIB(dl, dlopen)
    129129# check pcap
    130 AC_CHECK_LIB(pcap,pcap_open_live)
    131 AC_REPLACE_FUNCS(pcap_open_dead)
    132 AC_REPLACE_FUNCS(pcap_dump_flush)
    133 AC_REPLACE_FUNCS(pcap_next_ex)
     130AC_CHECK_LIB(pcap,pcap_next_ex,pcapfound=1,pcapfound=0)
     131#AC_CHECK_LIB(pcap,pcap_next_ex)
     132#AC_REPLACE_FUNCS(pcap_open_dead)
     133#AC_REPLACE_FUNCS(pcap_dump_flush)
     134#AC_REPLACE_FUNCS(pcap_next_ex)
    134135AC_CHECK_FUNCS(pcap_inject pcap_sendpacket pcap_setnonblock)
    135136AC_CHECK_DECLS([BIOCSETIF],,,[
     
    152153
    153154AC_PROG_CXX
     155
     156if test "$pcapfound" = 0; then
     157        AC_MSG_ERROR(libpcap0.8 or greater is required to compile libtrace. If you have installed it in a non-standard location please use LDFLAGS to specify the location of the library)
     158else
     159        ADD_LIBS="$ADD_LIBS -lpcap"
     160fi
    154161
    155162# configure time options for use of DAG cards
     
    277284echo
    278285AC_MSG_NOTICE([Libtrace version $PACKAGE_VERSION])
    279 reportopt "Compiled with PCAP support" $ac_cv_lib_pcap_pcap_open_live
     286reportopt "Compiled with PCAP 0.8 support" $ac_cv_lib_pcap_pcap_next_ex
    280287reportopt "Compiled with compressed trace (zlib) support" $ac_cv_lib_z_gzopen
    281288if test x"$libtrace_dag" = xtrue; then
Note: See TracChangeset for help on using the changeset viewer.