소스 검색

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