Skip to content

configure check for libpcap is bogus and breaks cross-compilation #2

@rofl0r

Description

@rofl0r
[ if test -f ${prefix}/include/pcap.h; then
     PCAP_CFLAGS="-I${prefix}/include"
     PCAPLIB="-L${exec_prefix}/lib -lpcap"
  elif test -f /usr/include/pcap/pcap.h; then
     PCAP_CFLAGS="-I/usr/include/pcap"
     PCAPLIB="-lpcap"

this leads to -I/usr/include being added to the CFLAGS, breaking crosscompilation, as the host headers get pulled in instead of the target headers.
note that checking existence of a file is completely bogus.
test should just check header availability using http://www.gnu.org/software/autoconf/manual/autoconf.html#Generic-Headers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions