diff --git a/configure.ac b/configure.ac index afec2f2df25..f7c43fb8c72 100644 --- a/configure.ac +++ b/configure.ac @@ -2668,27 +2668,6 @@ AC_PATH_PROG(BASH_SHELL,bash) # compliation scripts) by taking advantage of the array features in # bash. bashWorks=no -if test -x "$BASH_SHELL" ; then -changequote(%%,::)dnl - cat >>conftest <&1 >/dev/null ; then - bashWorks=yes - else - bashWorks=no - fi - rm -f conftest* - AC_MSG_RESULT($bashWorks) -fi dnl BUILD_BASH_SCRIPTS used to be an AC_SUBST AM_CONDITIONAL([BUILD_BASH_SCRIPTS], [test "x$bashWorks" = xyes]) diff --git a/src/env/mpicc.sh.in b/src/env/mpicc.sh.in index 764a2427ae7..f3345c68eba 100644 --- a/src/env/mpicc.sh.in +++ b/src/env/mpicc.sh.in @@ -101,7 +101,6 @@ static_mpi=no for arg in "$@" ; do # Set addarg to no if this arg should be ignored by the C compiler addarg=yes - qarg=$arg case $arg in # ---------------------------------------------------------------- # Compiler options that affect whether we are linking or no @@ -184,24 +183,11 @@ for arg in "$@" ; do fi fi exit 0 - ;; - # ----------------------------------------------------------------- - # Other arguments. We are careful to handle arguments with - # quotes (we try to quote all arguments in case they include - # any spaces) - *\"*) - qarg="'"$arg"'" - ;; - *\'*) - qarg='\"'"$arg"'\"' - ;; - *) - qarg="'$arg'" ;; esac if [ $addarg = yes ] ; then - allargs="$allargs $qarg" + allargs="$allargs $arg" fi done @@ -257,18 +243,18 @@ fi # suppressing linking, such as -c or -M. if [ "$linking" = yes ] ; then if [ "$nativelinking" = yes ] ; then - $Show $CC ${final_cppflags} $PROFILE_INCPATHS ${final_cflags} ${final_ldflags} $allargs -I$includedir + $Show $CC ${final_cppflags} $PROFILE_INCPATHS ${final_cflags} ${final_ldflags} ${allargs} -I$includedir rc=$? else if [ "$static_mpi" = no ] ; then - $Show $CC ${final_cppflags} $PROFILE_INCPATHS ${final_cflags} ${final_ldflags} "${allargs[@]}" -I$includedir -L$libdir $PROFILE_PRELIB $PROFILE_FOO ${wrapper_dl_type_flags} -l@MPILIBNAME@ @LPMPILIBNAME@ $PROFILE_POSTLIB ${final_libs} + $Show $CC ${final_cppflags} $PROFILE_INCPATHS ${final_cflags} ${final_ldflags} ${allargs} -I$includedir -L$libdir $PROFILE_PRELIB $PROFILE_FOO ${wrapper_dl_type_flags} -l@MPILIBNAME@ @LPMPILIBNAME@ $PROFILE_POSTLIB ${final_libs} else - $Show $CC ${final_cppflags} $PROFILE_INCPATHS ${final_cflags} ${final_ldflags} "${allargs[@]}" -I$includedir -L$libdir $PROFILE_PRELIB $PROFILE_FOO ${wrapper_dl_type_flags} $libdir/lib@MPILIBNAME@.a @LPMPILIBNAME@ $PROFILE_POSTLIB ${final_libs} + $Show $CC ${final_cppflags} $PROFILE_INCPATHS ${final_cflags} ${final_ldflags} ${allargs} -I$includedir -L$libdir $PROFILE_PRELIB $PROFILE_FOO ${wrapper_dl_type_flags} $libdir/lib@MPILIBNAME@.a @LPMPILIBNAME@ $PROFILE_POSTLIB ${final_libs} fi rc=$? fi else - $Show $CC ${final_cppflags} $PROFILE_INCPATHS ${final_cflags} $allargs -I$includedir + $Show $CC ${final_cppflags} $PROFILE_INCPATHS ${final_cflags} ${allargs} -I$includedir rc=$? fi diff --git a/src/env/mpicxx.sh.in b/src/env/mpicxx.sh.in index 1d393111fc8..dd8d5d23b81 100644 --- a/src/env/mpicxx.sh.in +++ b/src/env/mpicxx.sh.in @@ -98,7 +98,6 @@ static_mpi=no for arg in "$@" ; do # Set addarg to no if this arg should be ignored by the C compiler addarg=yes - qarg=$arg case $arg in # ---------------------------------------------------------------- # Compiler options that affect whether we are linking or no @@ -186,24 +185,11 @@ for arg in "$@" ; do fi fi exit 0 - ;; - # ----------------------------------------------------------------- - # Other arguments. We are careful to handle arguments with - # quotes (we try to quote all arguments in case they include - # any spaces) - *\"*) - qarg="'"$arg"'" - ;; - *\'*) - qarg='\"'"$arg"'\"' - ;; - *) - qarg="'$arg'" ;; esac if [ $addarg = yes ] ; then - allargs="$allargs $qarg" + allargs="$allargs $arg" fi done @@ -255,18 +241,18 @@ fi # libraries if [ "$linking" = yes ] ; then if [ "$nativelinking" = yes ] ; then - $Show $CXX ${final_cppflags} $PROFILE_INCPATHS ${final_cxxflags} ${final_ldflags} $allargs -I$includedir + $Show $CXX ${final_cppflags} $PROFILE_INCPATHS ${final_cxxflags} ${final_ldflags} ${allargs} -I$includedir rc=$? else if [ "$static_mpi" = no ] ; then - $Show $CXX ${final_cppflags} $PROFILE_INCPATHS ${final_cxxflags} ${final_ldflags} "${allargs[@]}" -I$includedir -L$libdir $cxxlibs $PROFILE_PRELIB $PROFILE_FOO ${wrapper_dl_type_flags} -l@MPILIBNAME@ @LPMPILIBNAME@ $PROFILE_POSTLIB ${final_libs} + $Show $CXX ${final_cppflags} $PROFILE_INCPATHS ${final_cxxflags} ${final_ldflags} ${allargs} -I$includedir -L$libdir $cxxlibs $PROFILE_PRELIB $PROFILE_FOO ${wrapper_dl_type_flags} -l@MPILIBNAME@ @LPMPILIBNAME@ $PROFILE_POSTLIB ${final_libs} else - $Show $CXX ${final_cppflags} $PROFILE_INCPATHS ${final_cxxflags} ${final_ldflags} "${allargs[@]}" -I$includedir -L$libdir $cxxlibs $PROFILE_PRELIB $PROFILE_FOO ${wrapper_dl_type_flags} $libdir/lib@MPILIBNAME@.a @LPMPILIBNAME@ $PROFILE_POSTLIB ${final_libs} + $Show $CXX ${final_cppflags} $PROFILE_INCPATHS ${final_cxxflags} ${final_ldflags} ${allargs} -I$includedir -L$libdir $cxxlibs $PROFILE_PRELIB $PROFILE_FOO ${wrapper_dl_type_flags} $libdir/lib@MPILIBNAME@.a @LPMPILIBNAME@ $PROFILE_POSTLIB ${final_libs} fi rc=$? fi else - $Show $CXX ${final_cppflags} $PROFILE_INCPATHS ${final_cxxflags} $allargs -I$includedir + $Show $CXX ${final_cppflags} $PROFILE_INCPATHS ${final_cxxflags} ${allargs} -I$includedir rc=$? fi diff --git a/src/env/mpif77.sh.in b/src/env/mpif77.sh.in index 6b1115b4f25..e0441ae788d 100644 --- a/src/env/mpif77.sh.in +++ b/src/env/mpif77.sh.in @@ -104,7 +104,6 @@ static_mpi=no for arg in "$@" ; do # Set addarg to no if this arg should be ignored by the C compiler addarg=yes - qarg=$arg case $arg in # ---------------------------------------------------------------- # Compiler options that affect whether we are linking or no @@ -195,26 +194,6 @@ for arg in "$@" ; do fi fi exit 0 - ;; - # ----------------------------------------------------------------- - # Other arguments. We are careful to handle arguments with - # quotes (we try to quote all arguments in case they include - # any spaces) - *\"*) - qarg="'"$arg"'" - case $arg in - -D*) - cppflags="$cppflags $qarg" - ;; - esac - ;; - *\'*) - qarg='\"'"$arg"'\"' - case $arg in - -D*) - cppflags="$cppflags $qarg" - ;; - esac ;; # The following are special args used to handle .F files when the @@ -262,13 +241,9 @@ for arg in "$@" ; do ;; # - end of special handling for .F files - *) - qarg="'$arg'" - ;; - esac if [ $addarg = yes ] ; then - allargs="$allargs $qarg" + allargs="$allargs $arg" fi done @@ -320,18 +295,18 @@ fi # if [ "$linking" = yes ] ; then if [ "$nativelinking" = yes ] ; then - $Show $F77 $PROFILE_INCPATHS ${final_fflags} ${final_ldflags} $allargs -I$includedir + $Show $F77 $PROFILE_INCPATHS ${final_fflags} ${final_ldflags} ${allargs} -I$includedir rc=$? else if [ "$static_mpi" = no ] ; then - $Show $F77 $PROFILE_INCPATHS ${final_fflags} ${final_ldflags} "${allargs[@]}" -I$includedir -L$libdir $f77libs $PROFILE_PRELIB $PROFILE_FOO ${wrapper_dl_type_flags} -l@MPILIBNAME@ @LPMPILIBNAME@ $PROFILE_POSTLIB ${final_libs} @F77_OTHER_LIBS@ + $Show $F77 $PROFILE_INCPATHS ${final_fflags} ${final_ldflags} ${allargs} -I$includedir -L$libdir $f77libs $PROFILE_PRELIB $PROFILE_FOO ${wrapper_dl_type_flags} -l@MPILIBNAME@ @LPMPILIBNAME@ $PROFILE_POSTLIB ${final_libs} @F77_OTHER_LIBS@ else - $Show $F77 $PROFILE_INCPATHS ${final_fflags} ${final_ldflags} "${allargs[@]}" -I$includedir -L$libdir $f77libs $PROFILE_PRELIB $PROFILE_FOO ${wrapper_dl_type_flags} $libdir/lib@MPILIBNAME@.a @LPMPILIBNAME@ $PROFILE_POSTLIB ${final_libs} @F77_OTHER_LIBS@ + $Show $F77 $PROFILE_INCPATHS ${final_fflags} ${final_ldflags} ${allargs} -I$includedir -L$libdir $f77libs $PROFILE_PRELIB $PROFILE_FOO ${wrapper_dl_type_flags} $libdir/lib@MPILIBNAME@.a @LPMPILIBNAME@ $PROFILE_POSTLIB ${final_libs} @F77_OTHER_LIBS@ fi rc=$? fi else - $Show $F77 $PROFILE_INCPATHS ${final_fflags} $allargs -I$includedir + $Show $F77 $PROFILE_INCPATHS ${final_fflags} ${allargs} -I$includedir rc=$? fi if [ -n "$rmfiles" ] ; then diff --git a/src/env/mpifort.sh.in b/src/env/mpifort.sh.in index a5a15223a98..3166a9481f7 100644 --- a/src/env/mpifort.sh.in +++ b/src/env/mpifort.sh.in @@ -117,7 +117,6 @@ static_mpi=no for arg in "$@" ; do # Set addarg to no if this arg should be ignored by the C compiler addarg=yes - qarg=$arg case $arg in # ---------------------------------------------------------------- # Compiler options that affect whether we are linking or no @@ -204,26 +203,6 @@ for arg in "$@" ; do fi fi exit 0 - ;; - # ----------------------------------------------------------------- - # Other arguments. We are careful to handle arguments with - # quotes (we try to quote all arguments in case they include - # any spaces) - *\"*) - qarg="'"$arg"'" - case $arg in - -D*) - cppflags="$cppflags $qarg" - ;; - esac - ;; - *\'*) - qarg='\"'"$arg"'\"' - case $arg in - -D*) - cppflags="$cppflags $qarg" - ;; - esac ;; # The following are special args used to handle .F files when the # Fortran compiler itself does not handle these options @@ -271,13 +250,9 @@ for arg in "$@" ; do ;; # - end of special handling for .F files - *) - qarg="'$arg'" - ;; - esac if [ $addarg = yes ] ; then - allargs="$allargs $qarg" + allargs="$allargs $arg" fi done @@ -355,18 +330,18 @@ fi # libraries if [ "$linking" = yes ] ; then if [ "$nativelinking" = yes ] ; then - $Show $FC $PROFILE_INCPATHS ${final_fcflags} ${final_ldflags} $allargs + $Show $FC $PROFILE_INCPATHS ${final_fcflags} ${final_ldflags} ${allargs} rc=$? else if [ "$static_mpi" = no ] ; then - $Show $FC $PROFILE_INCPATHS ${final_fcflags} ${final_ldflags} "${allargs[@]}" $FCINCDIRS $FCMODDIRS -L$libdir -l@MPIFCLIBNAME@ $PROFILE_PRELIB $PROFILE_FOO ${wrapper_dl_type_flags} -l@MPILIBNAME@ @LPMPILIBNAME@ $PROFILE_POSTLIB ${final_libs} @FC_OTHER_LIBS@ + $Show $FC $PROFILE_INCPATHS ${final_fcflags} ${final_ldflags} ${allargs} $FCINCDIRS $FCMODDIRS -L$libdir -l@MPIFCLIBNAME@ $PROFILE_PRELIB $PROFILE_FOO ${wrapper_dl_type_flags} -l@MPILIBNAME@ @LPMPILIBNAME@ $PROFILE_POSTLIB ${final_libs} @FC_OTHER_LIBS@ else - $Show $FC $PROFILE_INCPATHS ${final_fcflags} ${final_ldflags} "${allargs[@]}" $FCINCDIRS $FCMODDIRS -L$libdir -l@MPIFCLIBNAME@ $PROFILE_PRELIB $PROFILE_FOO ${wrapper_dl_type_flags} $libdir/lib@MPILIBNAME@.a @LPMPILIBNAME@ $PROFILE_POSTLIB ${final_libs} @FC_OTHER_LIBS@ + $Show $FC $PROFILE_INCPATHS ${final_fcflags} ${final_ldflags} ${allargs} $FCINCDIRS $FCMODDIRS -L$libdir -l@MPIFCLIBNAME@ $PROFILE_PRELIB $PROFILE_FOO ${wrapper_dl_type_flags} $libdir/lib@MPILIBNAME@.a @LPMPILIBNAME@ $PROFILE_POSTLIB ${final_libs} @FC_OTHER_LIBS@ fi rc=$? fi else - $Show $FC $PROFILE_INCPATHS ${final_fcflags} $allargs $FCINCDIRS $FCMODDIRS + $Show $FC $PROFILE_INCPATHS ${final_fcflags} ${allargs} $FCINCDIRS $FCMODDIRS rc=$? fi if [ -n "$rmfiles" ] ; then