]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
build: Obey --disable-threads also regarding msgmerge and OpenMP.
authorBruno Haible <bruno@clisp.org>
Fri, 17 Nov 2023 21:31:15 +0000 (22:31 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 17 Nov 2023 21:44:12 +0000 (22:44 +0100)
* gettext-tools/configure.ac: If --disable-threads was specified, just set
OPENMP_CFLAGS to empty.

gettext-tools/configure.ac

index 4a4203c767520ccdb65643445460a2dca3dac163..4790ad414fc05a97c00e54c14afa4c383feb991a 100644 (file)
@@ -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