From c3a4057a21c87cabbc03692b170e9e78badd9e5c Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 23 Dec 2011 21:37:57 +0100 Subject: [PATCH 1/1] libreplace: Don't check for standards.h on darwin (Lion) standards.h on Lion holds a #warning that standards.h will be removed. This is annoying during the build. --- lib/replace/libreplace_cc.m4 | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/replace/libreplace_cc.m4 b/lib/replace/libreplace_cc.m4 index 48d9e84a326..7ddc19f14bb 100644 --- a/lib/replace/libreplace_cc.m4 +++ b/lib/replace/libreplace_cc.m4 @@ -102,9 +102,17 @@ case "$host_os" in ;; esac +# Do not check for standards.h on darwin, we get nasty warnings on +# OS/X Lion. Probably a positive-list of OS'es like IRIX and AIX +# would be the better choice, but this seems to work fine - -AC_CHECK_HEADERS([standards.h]) +case "$host_os" in + *darwin*) + ;; + *) + AC_CHECK_HEADERS([standards.h]) + ;; +esac # Solaris needs HAVE_LONG_LONG defined AC_CHECK_TYPES(long long) -- 2.34.1