Commit 5ddcfa01 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

configure: Don't define HAVE_CLOCK_GETTIME on macOS.

Using clock_gettime() on macOS is problematical; see commit 27c71e09 for an explanation. Possible configure tests for this end up being quite ugly, so avoiding it altogether seems simplest. Signed-off-by: 's avatarHuw Davies <huw@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 42ba38c1
...@@ -17688,8 +17688,10 @@ fi ...@@ -17688,8 +17688,10 @@ fi
done done
ac_save_LIBS=$LIBS case $host_os in
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 darwin*|macosx*) ;;
*) ac_save_LIBS=$LIBS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
$as_echo_n "checking for library containing clock_gettime... " >&6; } $as_echo_n "checking for library containing clock_gettime... " >&6; }
if ${ac_cv_search_clock_gettime+:} false; then : if ${ac_cv_search_clock_gettime+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
...@@ -17749,7 +17751,9 @@ $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h ...@@ -17749,7 +17751,9 @@ $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
fi fi
LIBS=$ac_save_LIBS LIBS=$ac_save_LIBS
;;
esac
if test "x$with_ldap" != "xno" if test "x$with_ldap" != "xno"
then then
......
...@@ -2169,11 +2169,15 @@ AC_CHECK_FUNCS(\ ...@@ -2169,11 +2169,15 @@ AC_CHECK_FUNCS(\
) )
dnl Check for clock_gettime which may be in -lrt dnl Check for clock_gettime which may be in -lrt
ac_save_LIBS=$LIBS case $host_os in
AC_SEARCH_LIBS(clock_gettime, rt, darwin*|macosx*) ;;
[AC_DEFINE(HAVE_CLOCK_GETTIME, 1, [Define to 1 if you have the `clock_gettime' function.]) *) ac_save_LIBS=$LIBS
AC_SEARCH_LIBS(clock_gettime, rt,
[AC_DEFINE(HAVE_CLOCK_GETTIME, 1, [Define to 1 if you have the `clock_gettime' function.])
test "$ac_res" = "none required" || AC_SUBST(RT_LIBS,"$ac_res")]) test "$ac_res" = "none required" || AC_SUBST(RT_LIBS,"$ac_res")])
LIBS=$ac_save_LIBS LIBS=$ac_save_LIBS
;;
esac
dnl **** Check for OpenLDAP *** dnl **** Check for OpenLDAP ***
if test "x$with_ldap" != "xno" if test "x$with_ldap" != "xno"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment