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

balaji at mcs.anl.gov balaji at mcs.anl.gov
Wed Nov 24 03:22:32 CST 2010


Author: balaji
Date: 2010-11-24 03:22:32 -0600 (Wed, 24 Nov 2010)
New Revision: 7497

Modified:
   mpich2/trunk/src/pm/hydra/tools/bind/hwloc/hwloc/config/hwloc.m4
Log:
If the compiler doesn't support C99, gracefully abort at configure
time instead of failing at make time.

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-11-24 09:22:21 UTC (rev 7496)
+++ mpich2/trunk/src/pm/hydra/tools/bind/hwloc/hwloc/config/hwloc.m4	2010-11-24 09:22:32 UTC (rev 7497)
@@ -159,6 +159,9 @@
 dnl Same order of parameters form HWLOC-SETUP-CORE
 AC_DEFUN([HWLOC_SETUP_CORE_AFTER_C99],[
     hwloc_CC_c99_flags=`echo $CC | sed -e "s;^$hwloc_CC_save;;"`
+    if test "$ac_cv_prog_cc_c99" = "no" ; then
+       AC_ERROR([C99 support required for hwloc])
+    fi
     CC=$hwloc_CC_save
     CFLAGS=$hwloc_CFLAGS_save
 



More information about the mpich2-commits mailing list