aboutsummaryrefslogtreecommitdiff
path: root/m4/check-libc.m4
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2019-01-01 22:59:47 -0600
committerBrent Cook <busterb@gmail.com>2019-01-07 06:46:03 -0600
commit3f189a24f23d5540441384ad2581f3f4886344df (patch)
treeefde5e041fe0015329fc7a54618fecc43c98c72c /m4/check-libc.m4
parent4eb8da3e07717103fceadf7138a3f377ab1c5110 (diff)
downloadportable-3f189a24f23d5540441384ad2581f3f4886344df.tar.gz
portable-3f189a24f23d5540441384ad2581f3f4886344df.tar.bz2
portable-3f189a24f23d5540441384ad2581f3f4886344df.zip
check if we need to link pthread dynamically
On Linux, bionic and musl for instance do not need libpthread. With bionic, there is not even a stub library for compatibility.
Diffstat (limited to 'm4/check-libc.m4')
-rw-r--r--m4/check-libc.m41
1 files changed, 1 insertions, 0 deletions
diff --git a/m4/check-libc.m4 b/m4/check-libc.m4
index a4df0b7..85d253a 100644
--- a/m4/check-libc.m4
+++ b/m4/check-libc.m4
@@ -130,6 +130,7 @@ AC_CHECK_FUNCS([getauxval])
130AC_SEARCH_LIBS([dl_iterate_phdr],[dl]) 130AC_SEARCH_LIBS([dl_iterate_phdr],[dl])
131AC_CHECK_FUNCS([dl_iterate_phdr]) 131AC_CHECK_FUNCS([dl_iterate_phdr])
132 132
133AC_SEARCH_LIBS([pthread_once],[pthread])
133AC_SEARCH_LIBS([clock_gettime],[rt posix4]) 134AC_SEARCH_LIBS([clock_gettime],[rt posix4])
134AC_CHECK_FUNCS([clock_gettime]) 135AC_CHECK_FUNCS([clock_gettime])
135AM_CONDITIONAL([HAVE_CLOCK_GETTIME], [test "x$ac_cv_func_clock_gettime" = xyes]) 136AM_CONDITIONAL([HAVE_CLOCK_GETTIME], [test "x$ac_cv_func_clock_gettime" = xyes])