From f15c06951bb91eb0a4ab54f6707b6e21448945f9 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Mon, 13 Dec 2021 14:22:44 +0900 Subject: build: Fix have_lock_optimization code for 'guessing yes'. * configure.ac: Support 'guessing yes' for gl_cv_have_weak. -- Signed-off-by: NIIBE Yutaka --- configure.ac | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 35c0324..f9f317e 100644 --- a/configure.ac +++ b/configure.ac @@ -635,9 +635,13 @@ AM_CONDITIONAL(HAVE_GENERATED_LOCK_OBJ_H, test x$lock_obj_h_generated = xyes) have_lock_optimization=no if test "$gl_threads_api" = posix; then - if test x$ac_cv_header_sys_single_threaded_h = xyes \ - -o x$gl_cv_have_weak = xyes; then + if test x$ac_cv_header_sys_single_threaded_h = xyes; then have_lock_optimization=yes + else + case "$gl_cv_have_weak" in + *yes) have_lock_optimization=yes ;; + * ) ;; + esac fi fi AM_CONDITIONAL(HAVE_LOCK_OPTIMIZATION, test "$have_lock_optimization" = yes) -- cgit v1.2.1