configure: Use check_cpp in CPP flags tests
authorDiego Biurrun <diego@biurrun.de>
Mon, 8 Aug 2016 18:27:43 +0000 (20:27 +0200)
committerDiego Biurrun <diego@biurrun.de>
Wed, 9 Nov 2016 19:51:56 +0000 (20:51 +0100)
configure

index 4cfa066..422036b 100755 (executable)
--- a/configure
+++ b/configure
@@ -865,7 +865,7 @@ check_code(){
 
 check_cppflags(){
     log check_cppflags "$@"
-    check_cc "$@" <<EOF && append CPPFLAGS "$@"
+    check_cpp "$@" <<EOF && append CPPFLAGS "$@"
 int x;
 EOF
 }
@@ -1135,7 +1135,7 @@ check_host_cpp(){
 
 check_host_cppflags(){
     log check_host_cppflags "$@"
-    check_host_cc "$@" <<EOF && append host_cppflags "$@"
+    check_host_cpp "$@" <<EOF && append host_cppflags "$@"
 int x;
 EOF
 }