tcpdump mailing list archives
[PATCH] Avoid losing CPPFLAGS in configure.in
From: Romain Francoise <rfrancoise () debian org>
Date: Sat, 03 Mar 2012 17:51:04 +0100
Hi,
Simon Ruderich <simon () ruderich org> found that tcpdump's configure script
loses the value of CPPFLAGS because the save/restore code has a typo.
He provided the following patch to fix the problem:
diff --git a/configure.in b/configure.in
index 4ac664e..2bf219c 100644
--- a/configure.in
+++ b/configure.in
@@ -732,7 +732,7 @@ if test $ac_cv_func_pcap_findalldevs = "yes" ; then
dnl Check for Mac OS X, which may ship pcap.h from 0.6 but libpcap may
dnl be 0.8; this means that lib has pcap_findalldevs but header doesn't
dnl have pcap_if_t.
- savedppflags="$CPPLAGS"
+ savedcppflags="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $V_INCLS"
AC_CHECK_TYPES(pcap_if_t, , , [#include <pcap.h>])
CPPFLAGS="$savedcppflags"
--
Romain Francoise <rfrancoise () debian org>
http://people.debian.org/~rfrancoise/
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.
Current thread:
- [PATCH] Avoid losing CPPFLAGS in configure.in Romain Francoise (Mar 03)
- Re: [PATCH] Avoid losing CPPFLAGS in configure.in Guy Harris (Mar 03)
- Re: [PATCH] Avoid losing CPPFLAGS in configure.in Romain Francoise (Mar 04)
- Re: [PATCH] Avoid losing CPPFLAGS in configure.in Guy Harris (Mar 05)
- Re: [PATCH] Avoid losing CPPFLAGS in configure.in Romain Francoise (Mar 04)
- Re: [PATCH] Avoid losing CPPFLAGS in configure.in Guy Harris (Mar 03)
