]> 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)
committerFrancois-Xavier Le Bail <[email protected]>
Sat, 5 Apr 2025 07:26:59 +0000 (09:26 +0200)
commit501c733428c8c2a2d46748aa56d1f466f449bd37
tree2ca849b25f3f1eb3dc11043b75afc4366ecb7a3b
parente5dd3795fd472ed79e0f72fbb09971469fc43d2b
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.

(cherry picked from commit ccee9549f927eb13f869ee0db10c53c445191b8f)
Makefile.in