]> granicus.if.org Git - python/commitdiff
Issue #27453: CPP invocation in configure must use CPPFLAGS.
authorXavier de Gaye <xdegaye@users.sourceforge.net>
Sat, 30 Jul 2016 09:28:35 +0000 (11:28 +0200)
committerXavier de Gaye <xdegaye@users.sourceforge.net>
Sat, 30 Jul 2016 09:28:35 +0000 (11:28 +0200)
Patch by Chi Hsuan Yen.

Misc/ACKS
Misc/NEWS
configure
configure.ac

index a4a4cdc3cb47af7d1551fb19565daf65554e4bb2..150d37a3a322fabf6ac966a89c87fb1d250eff05 100644 (file)
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -1663,3 +1663,4 @@ Gennadiy Zlobin
 Doug Zongker
 Peter Åstrand
 evilzero
+Chi Hsuan Yen
index 243f1263ecad7302d78ff05e9e74f29545eff4e5..6b2b41921fec0c0d245b335c625661654f4b7152 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -145,6 +145,9 @@ Windows
 Build
 -----
 
+- Issue #27453: CPP invocation in configure must use CPPFLAGS. Patch by
+  Chi Hsuan Yen.
+
 - Issue #27490: Do not build pgen when cross-compiling.  Patch by Thomas
   Perl.
 
index f0cf515c28d241ae7d62d1c0cd5029e757cd1187..bb89a5a059bc34043b5a9fda66c04d5c2b608c74 100755 (executable)
--- a/configure
+++ b/configure
@@ -5369,7 +5369,7 @@ cat >> conftest.c <<EOF
 
 EOF
 
-if $CPP conftest.c >conftest.out 2>/dev/null; then
+if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then
   PLATFORM_TRIPLET=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d '       '`
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLATFORM_TRIPLET" >&5
 $as_echo "$PLATFORM_TRIPLET" >&6; }
index bf2a348f8257cbf304d2907ee9f7007441e67461..8135c716f3ce9b8638b7e22d7d9daeba504e464b 100644 (file)
@@ -870,7 +870,7 @@ cat >> conftest.c <<EOF
 
 EOF
 
-if $CPP conftest.c >conftest.out 2>/dev/null; then
+if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then
   PLATFORM_TRIPLET=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d '       '`
   AC_MSG_RESULT([$PLATFORM_TRIPLET])
 else