@@ -15388,8 +15388,77 @@ uint64_t val = 0; __atomic_add_fetch(&val, 1, __ATOMIC_RELAXED);
1538815388_ACEOF
1538915389if ac_fn_c_try_link "$LINENO"
1539015390then :
15391- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15391+
15392+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
1539215393printf "%s\n" "no" >&6; }
15394+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing __atomic_load_8" >&5
15395+ printf %s "checking for library containing __atomic_load_8... " >&6; }
15396+ if test ${ac_cv_search___atomic_load_8+y}
15397+ then :
15398+ printf %s "(cached) " >&6
15399+ else case e in #(
15400+ e) ac_func_search_save_LIBS=$LIBS
15401+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15402+ /* end confdefs.h. */
15403+
15404+ /* Override any GCC internal prototype to avoid an error.
15405+ Use char because int might match the return type of a GCC
15406+ builtin and then its argument prototype would still apply.
15407+ The 'extern "C"' is for builds by C++ compilers;
15408+ although this is not generally supported in C code supporting it here
15409+ has little cost and some practical benefit (sr 110532). */
15410+ #ifdef __cplusplus
15411+ extern "C"
15412+ #endif
15413+ char __atomic_load_8 (void);
15414+ int
15415+ main (void)
15416+ {
15417+ return __atomic_load_8 ();
15418+ ;
15419+ return 0;
15420+ }
15421+ _ACEOF
15422+ for ac_lib in '' atomic
15423+ do
15424+ if test -z "$ac_lib"; then
15425+ ac_res="none required"
15426+ else
15427+ ac_res=-l$ac_lib
15428+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15429+ fi
15430+ if ac_fn_c_try_link "$LINENO"
15431+ then :
15432+ ac_cv_search___atomic_load_8=$ac_res
15433+ fi
15434+ rm -f core conftest.err conftest.$ac_objext conftest.beam \
15435+ conftest$ac_exeext
15436+ if test ${ac_cv_search___atomic_load_8+y}
15437+ then :
15438+ break
15439+ fi
15440+ done
15441+ if test ${ac_cv_search___atomic_load_8+y}
15442+ then :
15443+
15444+ else case e in #(
15445+ e) ac_cv_search___atomic_load_8=no ;;
15446+ esac
15447+ fi
15448+ rm conftest.$ac_ext
15449+ LIBS=$ac_func_search_save_LIBS ;;
15450+ esac
15451+ fi
15452+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___atomic_load_8" >&5
15453+ printf "%s\n" "$ac_cv_search___atomic_load_8" >&6; }
15454+ ac_res=$ac_cv_search___atomic_load_8
15455+ if test "$ac_res" != no
15456+ then :
15457+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15458+
15459+ fi
15460+
15461+
1539315462else case e in #(
1539415463 e) LIBS="$LIBS -latomic"
1539515464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0 commit comments