From 50f8dfd7dbe71fb4d71bfe8400a3d0f2a434cc04 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 13 May 2019 10:39:34 +0200 Subject: [PATCH] use AS_CASE/AS_IF --- configure.ac | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/configure.ac b/configure.ac index cc558b8e8..b83e5267b 100644 --- a/configure.ac +++ b/configure.ac @@ -835,8 +835,8 @@ AS_IF([test "$extractor" != 1], ]) -if test "$taler_only" != yes -then +AS_IF([test "$taler_only" != yes],[ + # Check for libltdl header (#2999) ltdl=0 @@ -1003,7 +1003,9 @@ AS_IF([test "$enable_shared" = "no"], LIBS=$SAVE_LIBS -fi +# end of taler-only being false +]) + # check for iconv AM_ICONV @@ -1674,12 +1676,9 @@ else [enable_workarounds=${enableval}], [enable_workarounds=no]) AC_MSG_RESULT($enable_workarounds) - if test x$enable_windows_workarounds = "xyes" - then - workarounds=1 - else - workarounds=0 - fi + AS_IF([test x$enable_windows_workarounds = "xyes"], + [workarounds=1], + [workarounds=0]) fi AC_DEFINE_UNQUOTED([ENABLE_WINDOWS_WORKAROUNDS], $workarounds, [enable workarounds used on Windows (only useful for test cases)]) -- 2.25.1