From: Jean-Marc Lasgouttes Date: Sat, 5 Oct 2024 13:17:37 +0000 (+0200) Subject: Remove configure test for std::call_once X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=02beaa0a7bc4a094fe54a5453a2e585a077a1eb1;p=lyx.git Remove configure test for std::call_once It was not needed anymore since 193cda6e. --- diff --git a/config/lyxinclude.m4 b/config/lyxinclude.m4 index 2138a8482e..2d6ceccb83 100644 --- a/config/lyxinclude.m4 +++ b/config/lyxinclude.m4 @@ -210,32 +210,6 @@ AC_DEFUN([LYX_CXX_CXX11_FLAGS], ]) -dnl Usage: LYX_CXX_USE_CALL_ONCE -dnl check whether we can use std::call_once and set the -dnl LYX_USE_STD_CALL_ONCE macro and conditional accordingly. -AC_DEFUN([LYX_CXX_USE_CALL_ONCE], -[AC_MSG_CHECKING([for std::call_once availability]) - save_CPPFLAGS=$CPPFLAGS - CPPFLAGS="$AM_CPPFLAGS $CPPFLAGS" - save_CXXFLAGS=$CXXFLAGS - CXXFLAGS="$AM_CXXFLAGS $CXXFLAGS" - AC_LINK_IFELSE([AC_LANG_PROGRAM([[ - #include - static std::once_flag flag; - ]], [[ - std::call_once(flag, [](){ return; }); - ]])],[lyx_std_call_once=yes],[lyx_std_call_once=no]) - CXXFLAGS=$save_CXXFLAGS - CPPFLAGS=$save_CPPFLAGS - AC_MSG_RESULT([$lyx_std_call_once]) - - if test $lyx_std_call_once = yes ; then - AC_DEFINE([LYX_USE_STD_CALL_ONCE], 1, [define to 1 if std::call_once is supported by the compiler]) - fi - AM_CONDITIONAL([LYX_USE_STD_CALL_ONCE], test $lyx_std_call_once = yes) -]) - - dnl Usage: LYX_LIB_STDCXX: set lyx_cv_lib_stdcxx to yes if the STL library is libstdc++. AC_DEFUN([LYX_LIB_STDCXX], [AC_CACHE_CHECK([whether STL is libstdc++], @@ -262,7 +236,6 @@ AC_LANG_PUSH(C++) LYX_PROG_CLANG LYX_CXX_CXX11_FLAGS($enable_cxx_mode) LYX_LIB_STDCXX -LYX_CXX_USE_CALL_ONCE AC_LANG_POP(C++) ### We might want to get or shut warnings.