From: Bruno Haible Date: Sun, 8 Sep 2019 22:46:35 +0000 (+0200) Subject: Clarify that cross-compilation guesses are guesses. X-Git-Tag: v1.0~4669 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=1c58f6921ddfd48b1b39de83999f217e22d62b94;p=gnulib.git Clarify that cross-compilation guesses are guesses. * m4/threads.m4 (gl_THREADS_H): Say "guessing yes" or "guessing no" when cross-compiling. --- diff --git a/ChangeLog b/ChangeLog index db39357740..aeefbf43a9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2019-09-08 Bruno Haible + + Clarify that cross-compilation guesses are guesses. + * m4/threads.m4 (gl_THREADS_H): Say "guessing yes" or "guessing no" when + cross-compiling. + 2019-09-08 Bruno Haible chown: Fix configure output (regression from 2019-03-23). diff --git a/m4/threads.m4 b/m4/threads.m4 index f5f587cbf4..c8f74a1d57 100644 --- a/m4/threads.m4 +++ b/m4/threads.m4 @@ -1,4 +1,4 @@ -# threads.m4 serial 5 +# threads.m4 serial 6 dnl Copyright (C) 2019 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -104,8 +104,18 @@ AC_DEFUN([gl_THREADS_H], ]], [[ x = 42; ]])], - [gl_cv_thread_local_works=yes], - [gl_cv_thread_local_works=no]) + [if test "$cross_compiling" != yes; then + gl_cv_thread_local_works=yes + else + gl_cv_thread_local_works="guessing yes" + fi + ], + [if test "$cross_compiling" != yes; then + gl_cv_thread_local_works=no + else + gl_cv_thread_local_works="guessing no" + fi + ]) fi ]) case "$gl_cv_thread_local_works" in