From d5024c838929e3343e578a89151b48698a94b573 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 17 Nov 2023 22:31:15 +0100 Subject: [PATCH] build: Obey --disable-threads also regarding msgmerge and OpenMP. * gettext-tools/configure.ac: If --disable-threads was specified, just set OPENMP_CFLAGS to empty. --- gettext-tools/configure.ac | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gettext-tools/configure.ac b/gettext-tools/configure.ac index 4a4203c76..4790ad414 100644 --- a/gettext-tools/configure.ac +++ b/gettext-tools/configure.ac @@ -213,7 +213,11 @@ fi AC_SUBST([MSGMERGE_LIBM]) dnl Test whether msgmerge can make use of OpenMP. -AC_OPENMP +if test "$gl_use_threads" != no; then + AC_OPENMP +else + OPENMP_CFLAGS= +fi dnl Checks for header files, functions and declarations. gl_INIT -- 2.47.2