浏览代码

configure.ac: fix when option without-mpicc is set

Nathalie Furmento 7 年之前
父节点
当前提交
c98da578cd
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      configure.ac

+ 3 - 1
configure.ac

@@ -271,13 +271,15 @@ AC_ARG_WITH(mpicc, [AS_HELP_STRING([--with-mpicc[=<path to mpicc>]],
    [
        if test x$withval = xyes; then
            AC_MSG_ERROR(--with-mpicc must be given a pathname)
+       elif test x$withval = xno ; then
+           mpi_requested=no
        else
 	   mpi_requested=yes
            mpicc_path=$withval
        fi
    ],
    [
-       mpi_requested=no
+       mpi_requested=maybe
        if test x$enable_simgrid = xyes ; then
            DEFAULT_MPICC=smpicc
        else