[mpich2-commits] r6642 - mpich2/trunk/src/pm/hydra/tools/bind/hwloc/hwloc/config

balaji at mcs.anl.gov balaji at mcs.anl.gov
Tue May 11 08:32:27 CDT 2010


Author: balaji
Date: 2010-05-11 08:32:27 -0500 (Tue, 11 May 2010)
New Revision: 6642

Modified:
   mpich2/trunk/src/pm/hydra/tools/bind/hwloc/hwloc/config/hwloc.m4
Log:
Bug fix in the check to see if the compiler supports C99. hwloc
requires C99 support, so we force it to fail when the configure
doesn't support it (for example, when we pass the -std=c89 flag) and
disable it.

Modified: mpich2/trunk/src/pm/hydra/tools/bind/hwloc/hwloc/config/hwloc.m4
===================================================================
--- mpich2/trunk/src/pm/hydra/tools/bind/hwloc/hwloc/config/hwloc.m4	2010-05-11 03:46:13 UTC (rev 6641)
+++ mpich2/trunk/src/pm/hydra/tools/bind/hwloc/hwloc/config/hwloc.m4	2010-05-11 13:32:27 UTC (rev 6642)
@@ -225,7 +225,7 @@
     hwloc_CFLAGS_save=$CFLAGS
     AC_PROG_CC_C99
     hwloc_CC_c99_flags=`echo $CC | sed -e s/^$hwloc_CC_save//`
-    if test x"$hwloc_CC_c99_flags" = "x" ; then
+    if test "$ac_cv_prog_cc_c99" = "no" ; then
        AC_ERROR([C99 support required for hwloc])
     fi
     CC=$hwloc_CC_save



More information about the mpich2-commits mailing list