From: Bruno Haible Date: Fri, 17 Nov 2023 21:31:15 +0000 (+0100) Subject: build: Obey --disable-threads also regarding msgmerge and OpenMP. X-Git-Tag: v0.23~298 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08da9506b1c7325d6eea8ef1749088a8223e09cc;p=thirdparty%2Fgettext.git build: Obey --disable-threads also regarding msgmerge and OpenMP. * gettext-tools/configure.ac: If --disable-threads was specified, just set OPENMP_CFLAGS to empty. --- diff --git a/gettext-tools/configure.ac b/gettext-tools/configure.ac index a135ae6d0..edb846b97 100644 --- a/gettext-tools/configure.ac +++ b/gettext-tools/configure.ac @@ -214,7 +214,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