Integrate CheckCC in configure context.
authorcournape <cournape@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Wed, 3 Sep 2008 08:29:19 +0000 (08:29 +0000)
committercournape <cournape@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Wed, 3 Sep 2008 08:29:19 +0000 (08:29 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@3329 fdb21ef1-2011-0410-befe-b5e4ea1792b1

src/engine/SCons/SConf.py

index 130e0d39cbc8bf1f052c4c8b39b3084325642ee9..05dd97e03c1dfb9ae24208786db019e3283c2d11 100644 (file)
@@ -401,6 +401,7 @@ class SConfBase:
 
         # add default tests
         default_tests = {
+                 'CheckCC'            : CheckCC,
                  'CheckFunc'          : CheckFunc,
                  'CheckType'          : CheckType,
                  'CheckTypeSize'      : CheckTypeSize,
@@ -922,6 +923,10 @@ def CheckHeader(context, header, include_quotes = '<>', language = None):
     context.did_show_result = 1
     return not res
 
+def CheckCC(context):
+    res = SCons.Conftest.CheckCC(context)
+    return not res
+
 # Bram: Make this function obsolete?  CheckHeader() is more generic.
 
 def CheckCHeader(context, header, include_quotes = '""'):