@@ -96,10 +96,10 @@ AC_DEFUN([OPAL_SETUP_WRAPPER_INIT],[
9696 # Get the full path to the wrapper compiler. If it doesn't exist
9797 # assume that the path is not currently valid.
9898 wrapper_tmp= " $( type -p " $with_wrapper_cc " ) "
99- WRAPPER_CC= " ${wrapper_tmp:- $with_wrapper_cc } "
10099 if test -z " $wrapper_tmp " ; then
101100 AC_MSG_WARN([could not find \" $with_wrapper_cc \" in path])
102101 fi
102+ WRAPPER_CC= $with_wrapper_cc
103103
104104 AC_MSG_RESULT([$WRAPPER_CC ])
105105
@@ -117,19 +117,19 @@ AC_DEFUN([OPAL_SETUP_WRAPPER_INIT],[
117117 AS_IF([test " $with_wrapper_cflags_prefix " = " yes" || test " $with_wrapper_cflags_prefix " = " no" ],
118118 [AC_MSG_ERROR([--with-wrapper-cflags-prefix must have an argument.])])
119119
120- AC_ARG_WITH([wrapper-cxxflags],
121- [AS_HELP_STRING([--with-wrapper-cxxflags],
122- [Extra flags to add to CXXFLAGS when using mpiCC/mpic++])])
123- AS_IF([test " $with_wrapper_cxxflags " = " yes" || test " $with_wrapper_cxxflags " = " no" ],
124- [AC_MSG_ERROR([--with-wrapper-cxxflags must have an argument.])])
125-
126- AC_ARG_WITH([wrapper-cxxflags-prefix],
127- [AS_HELP_STRING([--with-wrapper-cxxflags-prefix],
128- [Extra flags to add to CXXFLAGS when using mpiCC/mpic++])])
129- AS_IF([test " $with_wrapper_cxxflags_prefix " = " yes" || test " $with_wrapper_cxxflags_prefix " = " no" ],
130- [AC_MSG_ERROR([--with-wrapper-cxxflags-prefix must have an argument.])])
131-
132120 m4_ifdef([project_ompi], [
121+ AC_ARG_WITH([wrapper-cxxflags],
122+ [AS_HELP_STRING([--with-wrapper-cxxflags],
123+ [Extra flags to add to CXXFLAGS when using mpiCC/mpic++])])
124+ AS_IF([test " $with_wrapper_cxxflags " = " yes" || test " $with_wrapper_cxxflags " = " no" ],
125+ [AC_MSG_ERROR([--with-wrapper-cxxflags must have an argument.])])
126+
127+ AC_ARG_WITH([wrapper-cxxflags-prefix],
128+ [AS_HELP_STRING([--with-wrapper-cxxflags-prefix],
129+ [Extra flags to add to CXXFLAGS when using mpiCC/mpic++])])
130+ AS_IF([test " $with_wrapper_cxxflags_prefix " = " yes" || test " $with_wrapper_cxxflags_prefix " = " no" ],
131+ [AC_MSG_ERROR([--with-wrapper-cxxflags-prefix must have an argument.])])
132+
133133 AC_ARG_WITH([wrapper-fcflags],
134134 [AS_HELP_STRING([--with-wrapper-fcflags],
135135 [Extra flags to add to FCFLAGS when using mpifort])])
0 commit comments