Преглед на файлове

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