From a946f92195b62234303b04e244169d7f5685dbfc Mon Sep 17 00:00:00 2001
From: Ray Donnelly <mingw.android@gmail.com>
Date: Mon, 27 Jun 2016 02:39:42 +0100
Subject: [PATCH 10/10] configure: Fix typo (CPPLAGS)

This causes our CPPFLAGS to get cleared out and then custom
locations are not searched in for headers.

In this case, the headers for jpeglib (and probably more)
do not get picked up.
---
 configure | 2 +-
 m4/R.m4   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index d79d2ff..bb15e01 100755
--- a/configure
+++ b/configure
@@ -36184,7 +36184,7 @@ if test -n "${CURL_CONFIG}"; then
     CURL_LIBS=`${CURL_CONFIG} --libs`
   fi
 fi
-r_save_CPPFLAGS="${CPPLAGS}"
+r_save_CPPFLAGS="${CPPFLAGS}"
 CPPFLAGS="${CURL_CPPFLAGS} ${CPPFLAGS}"
 r_save_LIBS="${LIBS}"
 LIBS="${CURL_LIBS} ${LIBS}"
diff --git a/m4/R.m4 b/m4/R.m4
index 673b50c..8fb7290 100644
--- a/m4/R.m4
+++ b/m4/R.m4
@@ -4165,7 +4165,7 @@ if test -n "${CURL_CONFIG}"; then
     CURL_LIBS=`${CURL_CONFIG} --libs`
   fi
 fi
-r_save_CPPFLAGS="${CPPLAGS}"
+r_save_CPPFLAGS="${CPPFLAGS}"
 CPPFLAGS="${CURL_CPPFLAGS} ${CPPFLAGS}"
 r_save_LIBS="${LIBS}"
 LIBS="${CURL_LIBS} ${LIBS}"
-- 
2.9.0

