summaryrefslogtreecommitdiff
path: root/distsrc/client/SConstruct
diff options
context:
space:
mode:
Diffstat (limited to 'distsrc/client/SConstruct')
-rwxr-xr-xdistsrc/client/SConstruct7
1 files changed, 7 insertions, 0 deletions
diff --git a/distsrc/client/SConstruct b/distsrc/client/SConstruct
index 17fa954fc9d..c8d95630ea6 100755
--- a/distsrc/client/SConstruct
+++ b/distsrc/client/SConstruct
@@ -93,6 +93,13 @@ for lib in boostLibs:
env['MONGO_BUILD_SASL_CLIENT'] = conf.CheckLibWithHeader(
"sasl2", "sasl/sasl.h", "C", "sasl_version_info(0, 0, 0, 0, 0, 0);", autoadd=False)
+if (conf.CheckCXXHeader( "execinfo.h" ) and
+ conf.CheckDeclaration('backtrace', includes='#include <execinfo.h>') and
+ conf.CheckDeclaration('backtrace_symbols', includes='#include <execinfo.h>') and
+ conf.CheckDeclaration('backtrace_symbols_fd', includes='#include <execinfo.h>')):
+
+ env.Append( CPPDEFINES=[ "MONGO_HAVE_EXECINFO_BACKTRACE" ] )
+
conf.Finish()
class InstallSetup: