]> The Tcpdump Group git mirrors - tcpdump/commit
Autoconf: Avoid incorrectly include the libpcap's config.h
authorFrancois-Xavier Le Bail <[email protected]>
Wed, 2 Apr 2025 14:16:51 +0000 (16:16 +0200)
committerfxlb <[email protected]>
Fri, 4 Apr 2025 05:21:09 +0000 (05:21 +0000)
commitccee9549f927eb13f869ee0db10c53c445191b8f
treeeb81491642f40ddd502e3b818e14170d3c661ece
parent9beea81f673bd6267a536d9132ca06a3d20a0235
Autoconf: Avoid incorrectly include the libpcap's config.h

Fix the problem when configure like following is done:
./configure CFLAGS='-I../libpcap -I.'
This gives:
CCOPT =  -I../libpcap -I. -W -Wall [...]

See also the GitHub bug report #1313.

In Makefile.in, there is:
INCLS = -I. @V_INCLS@

Put $(INCLS) first in FULL_CFLAGS.
Makefile.in