summaryrefslogtreecommitdiff
path: root/distsrc/client
diff options
context:
space:
mode:
authorLaszlo Boszormenyi (GCS) <gcs@debian.org>2013-10-18 10:31:13 +0200
committerLaszlo Boszormenyi (GCS) <gcs@debian.org>2013-10-18 10:31:13 +0200
commit65585c90b12d6523bea75a2aebaae2a2fdf9e641 (patch)
treeccb3081edfe67f988844af661a2bf93aa95ae09f /distsrc/client
parente3904bf97e74cbbe5dde6b3abc3e797ad7d26b5d (diff)
Imported Upstream version 2.4.6upstream/2.4.6
Diffstat (limited to 'distsrc/client')
-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: