Commit a1bedf14 authored by Hendryk Bockelmann's avatar Hendryk Bockelmann
Browse files

bug fix reported by Sergey Kosukhin for cc_opts handling

parent d7a3bd8b
......@@ -172,9 +172,10 @@ AC_DEFUN_ONCE([_AX_PROG_CC_MPI], [
AC_MSG_WARN([using CC=$CC as MPICC compiler.])
elif test -n "$CC" && test -n "$MPICC"; then
AC_MSG_WARN([overwriting CC=$MPICC. was former '$CC'])
dnl extract found options from CC if overriden by MPICC
cc_opts=${CC##* }
cc_opts="$CC "
cc_opts=${cc_opts#* }
AC_MSG_WARN([overwriting CC='$MPICC $cc_opts'. was CC='$CC' ; MPICC='$MPICC'])
CC="$MPICC $cc_opts"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment