summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDavid Carlier <devnexen@gmail.com>2022-01-05 08:29:10 +0000
committerGlenn Strauss <gstrauss@gluelogic.com>2022-01-05 06:52:24 -0500
commitb6bd11c15e62133426cf2acf189886237b97736c (patch)
tree3a7df593325fc5c8347165e2aedba0364163cea1 /configure.ac
parent3d0f64894823476165b7b31d5a508899cbfe2bec (diff)
downloadlighttpd-git-b6bd11c15e62133426cf2acf189886237b97736c.tar.gz
[core] server.core-files support for solaris (fixes #3135)
server.core-files support for solaris based systems. - using setpflags and disable process tracing protection for the current process. (edited: gstrauss) x-ref: "server.core-files support on Solaris based system" https://redmine.lighttpd.net/issues/3135
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index d139ae51..65e12703 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1472,6 +1472,10 @@ AC_CHECK_FUNCS([\
])
AC_CHECK_HEADERS([sys/random.h], [AC_CHECK_FUNCS([getentropy])])
AC_CHECK_HEADERS([linux/random.h], [AC_CHECK_FUNCS([getrandom])])
+case "$host_os" in
+*sunos*|*solaris* ) AC_CHECK_HEADERS([priv.h], [AC_CHECK_FUNCS([setpflags])]) ;;
+* ) ;;
+esac
AC_MSG_NOTICE([----------------------------------------])
AC_MSG_CHECKING([if weak symbols are supported])