aboutsummaryrefslogtreecommitdiffstats
path: root/erts/aclocal.m4
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2017-03-03 09:49:23 +0100
committerLukas Larsson <[email protected]>2017-03-03 09:49:23 +0100
commitb03fffab761b99efdac70816af25f4d8df1f2a49 (patch)
tree74251a0cbd85fd7e5be13e7f6b3d98bb7d7592d6 /erts/aclocal.m4
parent60a24d2010c98c44d2bf44faca04756049487ec3 (diff)
parent7b419c0a38bd4dbc749621535a81d0d34f76ec57 (diff)
downloadotp-b03fffab761b99efdac70816af25f4d8df1f2a49.tar.gz
otp-b03fffab761b99efdac70816af25f4d8df1f2a49.tar.bz2
otp-b03fffab761b99efdac70816af25f4d8df1f2a49.zip
Merge branch 'maint'
Diffstat (limited to 'erts/aclocal.m4')
-rw-r--r--erts/aclocal.m415
1 files changed, 11 insertions, 4 deletions
diff --git a/erts/aclocal.m4 b/erts/aclocal.m4
index 5ea4c2ccf3..80bf236188 100644
--- a/erts/aclocal.m4
+++ b/erts/aclocal.m4
@@ -1524,6 +1524,13 @@ ETHR_LIB_NAME=
ethr_modified_default_stack_size=
+AC_ARG_WITH(threadnames,
+AS_HELP_STRING([--with-threadnames], [use pthread_setname to set the thread names (default)])
+AS_HELP_STRING([--without-threadnames],
+ [do not set any thread names]),
+[],
+[with_threadnames=yes])
+
dnl Name of lib where ethread implementation is located
ethr_lib_name=ethread
@@ -1914,12 +1921,12 @@ case "$THR_LIB_NAME" in
[pthread_setname_np("name");],
pthread_setname=darwin)
AC_MSG_RESULT([$pthread_setname])
- case $pthread_setname in
- linux) AC_DEFINE(ETHR_HAVE_PTHREAD_SETNAME_NP_2, 1,
+ case $with_threadnames-$pthread_setname in
+ yes-linux) AC_DEFINE(ETHR_HAVE_PTHREAD_SETNAME_NP_2, 1,
[Define if you have linux style pthread_setname_np]);;
- bsd) AC_DEFINE(ETHR_HAVE_PTHREAD_SET_NAME_NP_2, 1,
+ yes-bsd) AC_DEFINE(ETHR_HAVE_PTHREAD_SET_NAME_NP_2, 1,
[Define if you have bsd style pthread_set_name_np]);;
- darwin) AC_DEFINE(ETHR_HAVE_PTHREAD_SETNAME_NP_1, 1,
+ yes-darwin) AC_DEFINE(ETHR_HAVE_PTHREAD_SETNAME_NP_1, 1,
[Define if you have darwin style pthread_setname_np]);;
*) ;;
esac