[librsvg: 2/9] configure: Use AS_CASE to check LIBRSVG_DEBUG




commit 98daab7a752e6d7a9c8c93f7fe5cd4f0755b0e14
Author: Ismael Luceno <ismael iodev co uk>
Date:   Sat Sep 11 17:46:28 2021 +0200

    configure: Use AS_CASE to check LIBRSVG_DEBUG
    
    Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/586>

 configure.ac | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 5feaafe8..1b2bf549 100644
--- a/configure.ac
+++ b/configure.ac
@@ -234,14 +234,9 @@ AC_ARG_ENABLE(debug,
               AC_HELP_STRING([--enable-debug],
                              [Build Rust code with debugging information [default=no]]),
               [debug_release=$enableval],
-             [
-               if test "x$LIBRSVG_DEBUG" = "x"; then
-                 debug_release="no"
-               elif test "x$LIBRSVG_DEBUG" = "xyes"; then
-                 debug_release="yes"
-               elif test "x$LIBRSVG_DEBUG" = "xno"; then
-                 debug_release="no"
-               fi
+             [AS_CASE(["$LIBRSVG_DEBUG"],
+               [yes], [debug_release=yes],
+               [no|''], [debug_release=no])
              ])
 
 AC_MSG_CHECKING(whether to build Rust code with debugging information)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]