[php-src] PR #13537: Simplify clock_gettime Autoconf check
| From: | petk | Date: | Tue, 27 Feb 2024 19:05:31 +0000 |
| Subject: | [php-src] PR #13537: Simplify clock_gettime Autoconf check | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-25171@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/13537
Author: petk
The clock_gettime() is found in libc on modern systems, except on Solaris <= 10 and possible
similar systems, it is in the rt library.
This checks if clock_gettime() exists in the libc, then it checks if rt library has clock_gettime,
prepends it to LIBS and defines the HAVE_CLOCK_GETTIME symbol with the template from the
AC_CHECK_FUNCS.
The ac_cv_func_clock_gettime is a cache variable set by AC_CHECK_FUNCS.