Changeset dea6547 for configure.in


Ignore:
Timestamp:
10/18/04 23:09:39 (17 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:
4fd12ac
Parents:
d7d0d3a
Message:

configure time checks for pcpa-bpf.h/ net/bpf.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.in

    r4eb5172 rdea6547  
    1818AC_HEADER_STDC
    1919dnl AC_CHECK_HEADERS(errno.h stdlib.h stdio.h assert.h string.h netinet/in.h assert.h errno.h fcntl.h net/ethernet.h netdb.h pcap.h stdio.h stdlib.h string.h sys/stat.h sys/types.h sys/socket.h sys/un.h unistd.h time.h sys/ioctl.h net/bpf.h pcap.h zlib.h pcap-bpf.h)
    20 AC_CHECK_HEADERS(pcap.h zlib.h pcap-bpf.h net/bpf.h sys/limits.h stddef.h stdint.h limits.h)
     20AC_CHECK_HEADERS(pcap.h pcap-bpf.h net/bpf.h zlib.h sys/limits.h stddef.h stdint.h limits.h)
     21       
     22dnl Checking for the right bpf header to include
     23AC_MSG_CHECKING([where the bpf headers are kept])
     24echo ""
     25bpfh=no
     26AC_CHECK_HEADER(pcap-bpf.h,
     27        [AC_DEFINE([HAVE_PCAP_BPF_H]) bpfh=pcap-bpf.h])
     28if test $bpfh = no; then
     29AC_CHECK_HEADER(net/bpf.h,
     30        [AC_DEFINE([HAVE_NET_BPF_H]) bpfh=net/bpf.h])
     31fi
     32
     33if test $bpfh = no; then
     34  AC_MSG_ERROR([Missing BPF header file])
     35fi
     36AC_MSG_RESULT([Using $bpfh])
     37
    2138
    2239dnl Checks for typedefs, structures, and compiler characteristics.
     
    86103AC_SUBST([LIBZ_PATH])
    87104
     105
     106dnl and finally, output our Makefiles
    88107AC_OUTPUT(Makefile lib/Makefile)
Note: See TracChangeset for help on using the changeset viewer.