From: Francois-Xavier Le Bail Date: Wed, 2 Apr 2025 14:16:51 +0000 (+0200) Subject: Autoconf: Avoid incorrectly include the libpcap's config.h X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/ccee9549f927eb13f869ee0db10c53c445191b8f 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. --- diff --git a/Makefile.in b/Makefile.in index 1aba578e..e265784c 100644 --- a/Makefile.in +++ b/Makefile.in @@ -49,7 +49,7 @@ DEFS = @DEFS@ @CPPFLAGS@ @V_DEFS@ # Standard CFLAGS CFLAGS = @CFLAGS@ -FULL_CFLAGS = $(CCOPT) $(DEFS) $(INCLS) $(CFLAGS) +FULL_CFLAGS = $(INCLS) $(CCOPT) $(DEFS) $(CFLAGS) # Standard LDFLAGS LDFLAGS = @LDFLAGS@