summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2008-09-03 08:33:08 (GMT)
committerDavid Cournapeau <cournape@gmail.com>2008-09-03 08:33:08 (GMT)
commit9946a5cb4b0e73b12aaec78e2c25a4c3dc81a6a7 (patch)
treee865e10a18958ebf4df03125740b31685951586f /doc
parent0634aae20e1baea6ba5fcbc5d0272e6f927e11c4 (diff)
downloadSCons-9946a5cb4b0e73b12aaec78e2c25a4c3dc81a6a7.zip
SCons-9946a5cb4b0e73b12aaec78e2c25a4c3dc81a6a7.tar.gz
SCons-9946a5cb4b0e73b12aaec78e2c25a4c3dc81a6a7.tar.bz2
Document CheckCC and co in the man.
Diffstat (limited to 'doc')
-rw-r--r--doc/man/scons.144
1 files changed, 44 insertions, 0 deletions
diff --git a/doc/man/scons.1 b/doc/man/scons.1
index 399024a..b0dd1e8 100644
--- a/doc/man/scons.1
+++ b/doc/man/scons.1
@@ -6859,6 +6859,50 @@ or
and selects the compiler to be used for the check;
the default is "C".
+.TP
+.RI Configure.CheckCC( self )
+Checks whether the C compiler (as defined by the CC construction variable) works
+by trying to compile a small source file.
+
+By default, SCons only detects if there is a program with the correct name, not
+if it is a functioning compiler.
+
+This uses the exact same command than the one used by the object builder for C
+source file, so it can be used to detect if a particular compiler flag works or
+not.
+
+.TP
+.RI Configure.CheckCXX( self )
+Checks whether the C++ compiler (as defined by the CXX construction variable)
+works by trying to compile a small source file. By default, SCons only detects
+if there is a program with the correct name, not if it is a functioning compiler.
+
+This uses the exact same command than the one used by the object builder for
+CXX source files, so it can be used to detect if a particular compiler flag
+works or not.
+
+.TP
+.RI Configure.CheckSHCC( self )
+Checks whether the C compiler (as defined by the SHCC construction variable) works
+by trying to compile a small source file. By default, SCons only detects if
+there is a program with the correct name, not if it is a functioning compiler.
+
+This uses the exact same command than the one used by the object builder for C
+source file, so it can be used to detect if a particular compiler flag works or
+not. This does not check whether the object code can be used to build a shared
+library, only that the compilation (not link) succeeds.
+
+.TP
+.RI Configure.CheckSHCXX( self )
+Checks whether the C++ compiler (as defined by the SHCXX construction variable)
+works by trying to compile a small source file. By default, SCons only detects
+if there is a program with the correct name, not if it is a functioning compiler.
+
+This uses the exact same command than the one used by the object builder for
+CXX source files, so it can be used to detect if a particular compiler flag
+works or not. This does not check whether the object code can be used to build
+a shared library, only that the compilation (not link) succeeds.
+
.EE
Example of a typical Configure usage: