| 195 | # # |
---|
| 196 | # # Check if the environment can actually compile c-files by checking for a |
---|
| 197 | # # header shipped with gcc. |
---|
| 198 | # # |
---|
| 199 | # if not conf.CheckHeader( "stdio.h", language="C" ): |
---|
| 200 | # print "It seems as if stdio.h is missing. This probably means that your build environment is broken, please make sure you have a working c-compiler and libstdc installed and usable." |
---|
| 201 | # Exit( 1 ) |
---|
| 202 | # # |
---|
| 203 | # # ... and do the same with a c++-header. Because some distributions have |
---|
| 204 | # # distinct packages for gcc and g++. |
---|
| 205 | # # |
---|
| 206 | # if not conf.CheckHeader( "iostream", language="C++" ): |
---|
| 207 | # print "It seems as if iostream is missing. This probably means that your build environment is broken, please make sure you have a working c++-compiler installed and usable." |
---|
| 208 | # Exit( 1 ) |
---|
| 209 | |
---|
175 | | if not conf.CheckHeader( "stdio.h", language="C" ): |
---|
176 | | print "It seems as if stdio.h is missing. This probably means that your build environment is broken, please make sure you have a working c-compiler and libstdc installed and usable." |
---|
177 | | Exit( 1 ) |
---|
178 | | # |
---|
179 | | # ... and do the same with a c++-header. Because some distributions have |
---|
180 | | # distinct packages for gcc and g++. |
---|
181 | | # |
---|
182 | | if not conf.CheckHeader( "iostream", language="C++" ): |
---|
183 | | print "It seems as if iostream is missing. This probably means that your build environment is broken, please make sure you have a working c++-compiler installed and usable." |
---|
| 213 | if not conf.CompilerCheck(): |
---|
| 214 | print "It seems as if your system isn't even able to compile any C-/C++-programs. Probably you don't have gcc and g++ installed. Compiling a package from source without a working compiler is very hard to do, please install the needed packages (Hint: on *ubuntu you need both gcc- and g++-packages installed)." |
---|