configure: Add stdlib.h #include to CPPFLAGS check helper functions
authorDiego Biurrun <diego@biurrun.de>
Fri, 3 Feb 2017 09:15:40 +0000 (10:15 +0100)
committerDiego Biurrun <diego@biurrun.de>
Mon, 6 Feb 2017 14:43:56 +0000 (15:43 +0100)
This ensures that added CPPFLAGS are validated against libc headers.

configure

index 555dc88..32ab732 100755 (executable)
--- a/configure
+++ b/configure
@@ -872,7 +872,7 @@ check_code(){
 check_cppflags(){
     log check_cppflags "$@"
     check_cpp "$@" <<EOF && append CPPFLAGS "$@"
-int x;
+#include <stdlib.h>;
 EOF
 }
 
@@ -1166,7 +1166,7 @@ check_host_cpp(){
 check_host_cppflags(){
     log check_host_cppflags "$@"
     check_host_cpp "$@" <<EOF && append host_cppflags "$@"
-int x;
+#include <stdlib.h>;
 EOF
 }