]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix check for timer_getoverrun
authorAndreas Schwab <schwab@linux-m68k.org>
Sun, 11 Apr 2021 15:23:22 +0000 (17:23 +0200)
committerAndreas Schwab <schwab@linux-m68k.org>
Sun, 11 Apr 2021 15:33:33 +0000 (17:33 +0200)
* configure.ac (timer_getoverrun): Move check after gnulib checks
and use $LIB_TIMER_TIME during check.

configure.ac

index 681c25b052cc87dd241dadb2163d7cf97e98847e..169ffc553415c26271f041b40c1cb359352e0c21 100644 (file)
@@ -4201,7 +4201,7 @@ getrusage get_current_dir_name \
 lrand48 random rint trunc \
 select getpagesize setlocale newlocale \
 getrlimit setrlimit shutdown \
-pthread_sigmask strsignal setitimer timer_getoverrun \
+pthread_sigmask strsignal setitimer \
 sendto recvfrom getsockname getifaddrs freeifaddrs \
 gai_strerror sync \
 getpwent endpwent getgrent endgrent \
@@ -5498,6 +5498,12 @@ gl_INIT
 CFLAGS=$SAVE_CFLAGS
 LIBS=$SAVE_LIBS
 
+# timer_getoverrun needs the same libarary as timer_settime
+OLD_LIBS=$LIBS
+LIBS="$LIB_TIMER_TIME $LIBS"
+AC_CHECK_FUNCS(timer_getoverrun)
+LIBS=$OLD_LIBS
+
 if test "${opsys}" = "mingw32"; then
   CPPFLAGS="$CPPFLAGS -DUSE_CRT_DLL=1 -I \${abs_top_srcdir}/nt/inc"
   # Remove unneeded switches from the value of CC that goes to Makefiles