Fix usage of --enable-XXX

fix-hash
sfilippone 1 year ago
parent 243fe4e78f
commit 6473cd8a85

@ -380,7 +380,7 @@ AC_ARG_ENABLE(serial,
AS_HELP_STRING([--enable-serial], AS_HELP_STRING([--enable-serial],
[Specify whether to enable a fake mpi library to run in serial mode. ]), [Specify whether to enable a fake mpi library to run in serial mode. ]),
[ [
pac_cv_serial_mpi="yes"; pac_cv_serial_mpi="$enableval";
] ]
dnl , dnl ,
dnl [pac_cv_serial_mpi="no";] dnl [pac_cv_serial_mpi="no";]
@ -388,7 +388,6 @@ dnl [pac_cv_serial_mpi="no";]
if test x"$pac_cv_serial_mpi" == x"yes" ; then if test x"$pac_cv_serial_mpi" == x"yes" ; then
AC_MSG_RESULT([yes.]) AC_MSG_RESULT([yes.])
else else
pac_cv_serial_mpi="no";
AC_MSG_RESULT([no.]) AC_MSG_RESULT([no.])
fi fi
] ]
@ -410,12 +409,8 @@ AC_DEFUN([PAC_ARG_OPENMP],
AC_ARG_ENABLE(openmp, AC_ARG_ENABLE(openmp,
AS_HELP_STRING([--enable-openmp], AS_HELP_STRING([--enable-openmp],
[Specify whether to enable openmp. ]), [Specify whether to enable openmp. ]),
[ [pac_cv_openmp="$enableval";])
pac_cv_openmp="yes"; dnl AC_MSG_NOTICE([Result from test: "x$pac_cv_openmp"])
]
dnl ,
dnl [pac_cv_openmp="no";]
)
if test x"$pac_cv_openmp" == x"yes" ; then if test x"$pac_cv_openmp" == x"yes" ; then
AC_MSG_RESULT([yes.]) AC_MSG_RESULT([yes.])
AC_LANG_PUSH([Fortran]) AC_LANG_PUSH([Fortran])
@ -455,7 +450,7 @@ AC_ARG_ENABLE(long-integers,
AS_HELP_STRING([--enable-long-integers], AS_HELP_STRING([--enable-long-integers],
[Specify usage of 64 bits integers. ]), [Specify usage of 64 bits integers. ]),
[ [
pac_cv_long_integers="yes"; pac_cv_long_integers="$enableval";
] ]
dnl , dnl ,
dnl [pac_cv_long_integers="no";] dnl [pac_cv_long_integers="no";]
@ -2174,11 +2169,9 @@ AC_ARG_ENABLE(cuda,
AS_HELP_STRING([--enable-cuda], AS_HELP_STRING([--enable-cuda],
[Specify whether to enable cuda. ]), [Specify whether to enable cuda. ]),
[ [
pac_cv_cuda="yes"; pac_cv_cuda="$enableval";
] ]
dnl , )
dnl [pac_cv_cuda="no";]
)
] ]
) )
@ -2329,7 +2322,7 @@ AC_ARG_ENABLE(openacc,
AS_HELP_STRING([--enable-openacc], AS_HELP_STRING([--enable-openacc],
[Specify whether to enable openacc. ]), [Specify whether to enable openacc. ]),
[ [
pac_cv_openacc="yes"; pac_cv_openacc="$enableval";
] ]
dnl , dnl ,
dnl [pac_cv_openacc="no";] dnl [pac_cv_openacc="no";]

12
configure vendored

@ -4626,7 +4626,7 @@ printf %s "checking whether we want serial mpi stubs... " >&6; }
if test ${enable_serial+y} if test ${enable_serial+y}
then : then :
enableval=$enable_serial; enableval=$enable_serial;
pac_cv_serial_mpi="yes"; pac_cv_serial_mpi="$enableval";
fi fi
@ -4635,7 +4635,6 @@ if test x"$pac_cv_serial_mpi" == x"yes" ; then
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes." >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes." >&5
printf "%s\n" "yes." >&6; } printf "%s\n" "yes." >&6; }
else else
pac_cv_serial_mpi="no";
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no." >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no." >&5
printf "%s\n" "no." >&6; } printf "%s\n" "no." >&6; }
fi fi
@ -7443,10 +7442,7 @@ printf %s "checking whether we want openmp ... " >&6; }
# Check whether --enable-openmp was given. # Check whether --enable-openmp was given.
if test ${enable_openmp+y} if test ${enable_openmp+y}
then : then :
enableval=$enable_openmp; enableval=$enable_openmp; pac_cv_openmp="$enableval";
pac_cv_openmp="yes";
fi fi
if test x"$pac_cv_openmp" == x"yes" ; then if test x"$pac_cv_openmp" == x"yes" ; then
@ -10380,7 +10376,7 @@ printf %s "checking whether we want cuda ... " >&6; }
if test ${enable_cuda+y} if test ${enable_cuda+y}
then : then :
enableval=$enable_cuda; enableval=$enable_cuda;
pac_cv_cuda="yes"; pac_cv_cuda="$enableval";
fi fi
@ -10668,7 +10664,7 @@ printf %s "checking whether we want openacc ... " >&6; }
if test ${enable_openacc+y} if test ${enable_openacc+y}
then : then :
enableval=$enable_openacc; enableval=$enable_openacc;
pac_cv_openacc="yes"; pac_cv_openacc="$enableval";
fi fi

Loading…
Cancel
Save