From 5517c5fe3da6eab1ccddea6fbd7fde1aefdab25c Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Thu, 25 Sep 2025 11:41:27 +0900 Subject: build: Avoid using -o for test(1). * configure.ac: Use || in shell level, instead of -o of test. -- GnuPG-bug-id: 7807 Signed-off-by: NIIBE Yutaka --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index f07b480a..9f97fe6e 100644 --- a/configure.ac +++ b/configure.ac @@ -334,7 +334,7 @@ AC_ARG_ENABLE([languages], tr ',:' ' ' | tr '[A-Z]' '[a-z]'`], [enabled_languages="maybe"]) if test "x$enabled_languages" = "x" \ - -o "$enabled_languages" = "no"; then + || test "$enabled_languages" = "no"; then enabled_languages= fi @@ -553,7 +553,7 @@ fi # Try to find a thread-safe version of getenv(). have_thread_safe_getenv=no jm_GLIBC21 -if test $GLIBC21 = yes -o $have_w32_system = yes; then +if test $GLIBC21 = yes || test $have_w32_system = yes; then have_thread_safe_getenv=yes fi if test $have_thread_safe_getenv = yes; then -- cgit v1.2.3