summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorIra Cooper <ira@samba.org>2012-03-14 12:56:02 -0400
committerIra Cooper <ira@samba.org>2012-03-15 05:55:03 +0100
commitb990279304b5e2b2ee0f64480cb09eda33f76beb (patch)
tree99620a21f1ec21f02e320298fba30f306e9f15ef /source3
parent48c2f803e8550a1d321d7312563a6f08bb89f096 (diff)
downloadsamba-b990279304b5e2b2ee0f64480cb09eda33f76beb.tar.gz
samba-b990279304b5e2b2ee0f64480cb09eda33f76beb.tar.bz2
samba-b990279304b5e2b2ee0f64480cb09eda33f76beb.zip
util: Add --disable-fault-handling.
On some platforms you can not debug coredumps after the default signal handler gets done dumping core. This allows waf to have an option to disable our default signal handler.
Diffstat (limited to 'source3')
-rw-r--r--source3/configure.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/configure.in b/source3/configure.in
index 611e1d8fb6..51e163dfb1 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -6799,6 +6799,7 @@ if test x"$enable_pthreadpool" = x"yes" -a x"$samba_cv_HAVE_PTHREAD" = x"yes"; t
fi
fi
+
#################################################
# Check to see if we should use the included iniparser
@@ -6834,6 +6835,12 @@ AC_SUBST(BUILD_INIPARSER)
AC_SUBST(INIPARSERLIBS)
AC_SUBST(FLAGS1)
+AC_ARG_ENABLE(fault-handler,[AS_HELP_STRING([--disable-fault-handler], [Disable the default handler])])
+
+if test x"$enable_fault_handler" = x"no"; then
+ AC_DEFINE(HAVE_DISABLE_FAULT_HANDLER, 1, [Disable the default signal handler])
+fi
+
###################################################
# Check for different/missing (set|get|end)netgrent prototypes
CFLAGS_SAVE=$CFLAGS