OSDN Git Service

Check compiler presense in SConscript.
authorrelan <relan@users.noreply.github.com>
Wed, 19 Dec 2012 06:19:14 +0000 (06:19 +0000)
committerrelan <relan@users.noreply.github.com>
Mon, 24 Aug 2015 05:26:15 +0000 (08:26 +0300)
SConstruct

index 30e5208..8fef6dd 100644 (file)
@@ -74,6 +74,12 @@ if not env.GetOption('clean'):
                conf.env.Append(CPPPATH = ['/usr/local/include'])
                conf.env.Append(LIBPATH = ['/usr/local/lib'])
 
+       if not conf.CheckCC():
+               print '''
+       A working C compiler is needed very much.
+'''
+               Exit(1)
+
        if not conf.CheckTypeSize('off_t', '#include <sys/types.h>', 'C', 8):
                print '''
        The size of off_t type must be 64 bits. File systems larger than