@@ -11635,6 +11635,62 @@ if test "$ac_res" != no; then :
11635
11635
11636
11636
fi
11637
11637
11638
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_barrier_wait" >&5
11639
+ $as_echo_n "checking for library containing pthread_barrier_wait... " >&6; }
11640
+ if ${ac_cv_search_pthread_barrier_wait+:} false; then :
11641
+ $as_echo_n "(cached) " >&6
11642
+ else
11643
+ ac_func_search_save_LIBS=$LIBS
11644
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11645
+ /* end confdefs.h. */
11646
+
11647
+ /* Override any GCC internal prototype to avoid an error.
11648
+ Use char because int might match the return type of a GCC
11649
+ builtin and then its argument prototype would still apply. */
11650
+ #ifdef __cplusplus
11651
+ extern "C"
11652
+ #endif
11653
+ char pthread_barrier_wait ();
11654
+ int
11655
+ main ()
11656
+ {
11657
+ return pthread_barrier_wait ();
11658
+ ;
11659
+ return 0;
11660
+ }
11661
+ _ACEOF
11662
+ for ac_lib in '' pthread; do
11663
+ if test -z "$ac_lib"; then
11664
+ ac_res="none required"
11665
+ else
11666
+ ac_res=-l$ac_lib
11667
+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11668
+ fi
11669
+ if ac_fn_c_try_link "$LINENO"; then :
11670
+ ac_cv_search_pthread_barrier_wait=$ac_res
11671
+ fi
11672
+ rm -f core conftest.err conftest.$ac_objext \
11673
+ conftest$ac_exeext
11674
+ if ${ac_cv_search_pthread_barrier_wait+:} false; then :
11675
+ break
11676
+ fi
11677
+ done
11678
+ if ${ac_cv_search_pthread_barrier_wait+:} false; then :
11679
+
11680
+ else
11681
+ ac_cv_search_pthread_barrier_wait=no
11682
+ fi
11683
+ rm conftest.$ac_ext
11684
+ LIBS=$ac_func_search_save_LIBS
11685
+ fi
11686
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_barrier_wait" >&5
11687
+ $as_echo "$ac_cv_search_pthread_barrier_wait" >&6; }
11688
+ ac_res=$ac_cv_search_pthread_barrier_wait
11689
+ if test "$ac_res" != no; then :
11690
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11691
+
11692
+ fi
11693
+
11638
11694
# Solaris:
11639
11695
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
11640
11696
$as_echo_n "checking for library containing fdatasync... " >&6; }
@@ -15883,6 +15939,19 @@ esac
15883
15939
15884
15940
fi
15885
15941
15942
+ ac_fn_c_check_func "$LINENO" "pthread_barrier_wait" "ac_cv_func_pthread_barrier_wait"
15943
+ if test "x$ac_cv_func_pthread_barrier_wait" = xyes; then :
15944
+ $as_echo "#define HAVE_PTHREAD_BARRIER_WAIT 1" >>confdefs.h
15945
+
15946
+ else
15947
+ case " $LIBOBJS " in
15948
+ *" pthread_barrier_wait.$ac_objext "* ) ;;
15949
+ *) LIBOBJS="$LIBOBJS pthread_barrier_wait.$ac_objext"
15950
+ ;;
15951
+ esac
15952
+
15953
+ fi
15954
+
15886
15955
ac_fn_c_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite"
15887
15956
if test "x$ac_cv_func_pwrite" = xyes; then :
15888
15957
$as_echo "#define HAVE_PWRITE 1" >>confdefs.h
0 commit comments