From 6745e1a7b7f9a4fd0469897c64795fc914d29ecb Mon Sep 17 00:00:00 2001 From: George Bosilca Date: Mon, 23 Oct 2006 03:55:52 +0000 Subject: [PATCH] Correctly detect the STDC_HEADERS, before adding flags to the CFLAGS. Now, that we have the STDC_HEADERS we are able to detect when ptrdiff_t is defined. This commit was SVN r12254. --- config/ompi_setup_cc.m4 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/ompi_setup_cc.m4 b/config/ompi_setup_cc.m4 index 8d048faa6b..0cfe71de8b 100644 --- a/config/ompi_setup_cc.m4 +++ b/config/ompi_setup_cc.m4 @@ -32,6 +32,10 @@ AC_DEFUN([OMPI_SETUP_CC],[ OMPI_C_COMPILER_VENDOR([ompi_c_vendor]) + # Check for standard headers, needed here because needed before + # the types checks. + AC_HEADER_STDC + # GNU C and autotools are inconsistent about whether this is # defined so let's make it true everywhere for now... However, IBM # XL compilers on PPC Linux behave really badly when compiled with