libreplace: Don't check for standards.h on darwin (Lion)
authorVolker Lendecke <vl@samba.org>
Fri, 23 Dec 2011 20:37:57 +0000 (21:37 +0100)
committerVolker Lendecke <vl@samba.org>
Sun, 25 Dec 2011 12:31:58 +0000 (13:31 +0100)
standards.h on Lion holds a #warning that standards.h will be removed. This is
annoying during the build.

lib/replace/libreplace_cc.m4

index 48d9e84a326d0322c547ffdd1b3d445cf1990fae..7ddc19f14bb47d4c9690e73a48f1923c42f52600 100644 (file)
@@ -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)