From 31644c972af32a7f0d2997cf89b20f5de55863f6 Mon Sep 17 00:00:00 2001 From: sfilippone Date: Wed, 19 Mar 2025 14:33:32 +0100 Subject: [PATCH] Fix usage of --enable-XXX --- config/pac.m4 | 12 ++++-------- configure | 6 +++--- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/config/pac.m4 b/config/pac.m4 index 099c5a41..180e3817 100644 --- a/config/pac.m4 +++ b/config/pac.m4 @@ -1211,16 +1211,14 @@ AC_ARG_ENABLE(serial, AS_HELP_STRING([--enable-serial], [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 [pac_cv_serial_mpi="no";] ) if test x"$pac_cv_serial_mpi" == x"yes" ; then AC_MSG_RESULT([yes.]) else - pac_cv_serial_mpi="no"; - AC_MSG_RESULT([no.]) + pac_cv_serial_mpi="no"; + AC_MSG_RESULT([no.]) fi ] ) @@ -1317,10 +1315,8 @@ AC_ARG_ENABLE(long-integers, AS_HELP_STRING([--enable-long-integers], [Specify usage of 64 bits integers. ]), [ -pac_cv_long_integers="yes"; +pac_cv_long_integers="$enableval"; ] -dnl , -dnl [pac_cv_long_integers="no";] ) if test x"$pac_cv_long_integers" == x"yes" ; then AC_MSG_RESULT([yes.]) diff --git a/configure b/configure index 599e83b8..c309c298 100755 --- a/configure +++ b/configure @@ -5754,7 +5754,7 @@ printf %s "checking whether we want serial mpi stubs... " >&6; } if test ${enable_serial+y} then : enableval=$enable_serial; -pac_cv_serial_mpi="yes"; +pac_cv_serial_mpi="$enableval"; fi @@ -5763,8 +5763,8 @@ if test x"$pac_cv_serial_mpi" == x"yes" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes." >&5 printf "%s\n" "yes." >&6; } else - pac_cv_serial_mpi="no"; - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no." >&5 + pac_cv_serial_mpi="no"; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no." >&5 printf "%s\n" "no." >&6; } fi