@@ -179,12 +179,12 @@ ac_user_MPICC=$MPICC
179
179
ac_user_MPICXX=$MPICXX
180
180
ac_user_MPIF77=$MPIF77
181
181
ac_user_MPIF90=$MPIF90
182
- if test "x$MPICC" = x && test "x$CC" != x ; then ac_user_MPICC=$CC ; fi
183
- if test "x$MPICXX" = x && test "x$CXX" != x ; then ac_user_MPICXX=$CXX ; fi
184
- if test "x$MPIF77" = x && test "x$F77" != x ; then ac_user_MPIF77=$F77 ; fi
185
- if test "x$MPIF77" = x && test "x$FC" != x ; then ac_user_MPIF77=$FC ; fi
186
- if test "x$MPIF90" = x && test "x$F90" != x ; then ac_user_MPIF90=$F90 ; fi
187
- if test "x$MPIF90" = x && test "x$FC" != x ; then ac_user_MPIF90=$FC ; fi
182
+ if test "x$MPICC" = x -a "x$CC" != x ; then ac_user_MPICC=$CC ; fi
183
+ if test "x$MPICXX" = x -a "x$CXX" != x ; then ac_user_MPICXX=$CXX ; fi
184
+ if test "x$MPIF77" = x -a "x$F77" != x ; then ac_user_MPIF77=$F77 ; fi
185
+ if test "x$MPIF77" = x -a "x$FC" != x ; then ac_user_MPIF77=$FC ; fi
186
+ if test "x$MPIF90" = x -a "x$F90" != x ; then ac_user_MPIF90=$F90 ; fi
187
+ if test "x$MPIF90" = x -a "x$FC" != x ; then ac_user_MPIF90=$FC ; fi
188
188
189
189
CANDIDATE_MPICC="${MPICC} mpicc mpicc_r"
190
190
CANDIDATE_MPICXX="${MPICXX} mpicxx mpic++ mpiCC mpcxx mpc++ mpicxx_r mpiCC_r mpcxx_r mpic++_r mpc++_r"
@@ -364,7 +364,7 @@ if test "x${enable_cxx}" != xno ; then
364
364
fi
365
365
fi
366
366
367
- if test "x${enable_cxx}" = xno || test "x${MPICXX}" = x ; then
367
+ if test "x${enable_cxx}" = xno -o "x${MPICXX}" = x ; then
368
368
dnl when cxx is explicitly disabled or no MPICXX can be found
369
369
has_mpicxx=no
370
370
else
@@ -651,7 +651,7 @@ AM_CONDITIONAL(HAS_FORTRAN, [test x$has_fortran = xyes])
651
651
AM_CONDITIONAL(HAVE_MPI_MOD, [ test x$mpi_mod = xyes] )
652
652
653
653
if test "x${has_fortran}" = xyes ; then
654
- if test "x${enable_strict}" = xyes && test "x${GFC}" = xyes; then
654
+ if test "x${enable_strict}" = xyes -a "x${GFC}" = xyes; then
655
655
dnl not all Fortran compilers recognize -Wall
656
656
FFLAGS+=" -Wall"
657
657
FCFLAGS+=" -Wall"
@@ -954,8 +954,7 @@ if test "x${debug}" = xyes; then
954
954
AC_CHECK_FUNCS ( [ tsearch tdelete] )
955
955
956
956
dnl check required functions for enabling malloc tracing
957
- if (test "x${ac_cv_func_tsearch}" = xyes) &&
958
- (test "x${ac_cv_func_tdelete}" = xyes) ; then
957
+ if test "x${ac_cv_func_tsearch}" = xyes -a "x${ac_cv_func_tdelete}" = xyes ; then
959
958
AC_DEFINE ( PNC_MALLOC_TRACE )
960
959
fi
961
960
PNETCDF_DEBUG=1
@@ -1129,7 +1128,7 @@ dnl For big Endian, put buffer needs no byte swap and hence can be declared as
1129
1128
dnl INTENT(IN). For little Endian, put buffer may be used for byte swap in
1130
1129
dnl place and hence must be declared as INTENT(INOUT).
1131
1130
dnl This will configure/produce the file src/binding/f90/api.f90
1132
- if test "x${ac_cv_c_bigendian}" = xyes || (test "x${in_place_swap}" = xno) ; then
1131
+ if test "x${ac_cv_c_bigendian}" = xyes -o "x${in_place_swap}" = xno ; then
1133
1132
INTENTV="IN"
1134
1133
else
1135
1134
INTENTV="INOUT"
@@ -1616,7 +1615,7 @@ if test "x${debug}" = xyes; then
1616
1615
echo "\
1617
1616
PnetCDF internal debug mode - enabled"
1618
1617
fi
1619
- if test "x${has_fortran}" = xyes && (test "x${ac_f77_support_freeform}" = xno) ; then
1618
+ if test "x${has_fortran}" = xyes -a "x${ac_f77_support_freeform}" = xno ; then
1620
1619
echo "\
1621
1620
Support free form in Fortran 77 - disabled"
1622
1621
fi
0 commit comments