summaryrefslogtreecommitdiff
path: root/libeio.m4
diff options
context:
space:
mode:
authorroot <root>2011-07-24 05:53:34 +0000
committerroot <root>2011-07-24 05:53:34 +0000
commitf5975d60cfe2e7d1b6c259f5ad800a823ee682c3 (patch)
treef2a4b2445d10952a74a0905dee513524303a6163 /libeio.m4
parent95c2bf9fb4cfcbceebac121d5a5a0d702af25cef (diff)
*** empty log message ***
Diffstat (limited to 'libeio.m4')
-rw-r--r--libeio.m412
1 files changed, 11 insertions, 1 deletions
diff --git a/libeio.m4 b/libeio.m4
index fb6591b..59151f5 100644
--- a/libeio.m4
+++ b/libeio.m4
@@ -1,6 +1,6 @@
dnl openbsd in it's neverending brokenness requires stdint.h for intptr_t,
dnl but that header isn't very portable...
-AC_CHECK_HEADERS([stdint.h sys/syscall.h])
+AC_CHECK_HEADERS([stdint.h sys/syscall.h sys/prctl.h])
AC_SEARCH_LIBS(
pthread_create,
@@ -148,6 +148,16 @@ int main (void)
],ac_cv_sys_syncfs=yes,ac_cv_sys_syncfs=no)])
test $ac_cv_sys_syncfs = yes && AC_DEFINE(HAVE_SYS_SYNCFS, 1, syscall(__NR_syncfs) is available)
+AC_CACHE_CHECK(for prctl_set_name, ac_cv_prctl_set_name, [AC_LINK_IFELSE([
+#include <sys/prctl.h>
+int main (void)
+{
+ char name[] = "test123";
+ int res = prctl (PR_SET_NAME, (unsigned long)name, 0, 0, 0);
+}
+],ac_cv_prctl_set_name=yes,ac_cv_prctl_set_name=no)])
+test $ac_cv_prctl_set_name = yes && AC_DEFINE(HAVE_PRCTL_SET_NAME, 1, prctl(PR_SET_NAME) is available)
+
dnl #############################################################################
dnl # these checks exist for the benefit of IO::AIO