Skip to content

Commit

Permalink
Merge pull request #1 from cheese1/master
Browse files Browse the repository at this point in the history
python3 instead of python2 in SConstruct
  • Loading branch information
jaqx0r authored Oct 29, 2020
2 parents a60770b + a01fdf9 commit a396557
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -14,44 +14,44 @@ if not env.GetOption("clean"):
if conf.CheckCHeader('GL/gl.h'):
conf.env.AppendUnique(CPPFLAGS=['-DHAVE_GL'])
else:
print "GL header file not found!"
print("GL header file not found!")
Exit(1)
else:
print "GL library not found!"
print("GL library not found!")
Exit(1)
# check for GLU
if conf.CheckLib('GLU', 'gluOrtho2D'):
if conf.CheckCHeader('GL/glu.h'):
conf.env.AppendUnique(CPPFLAGS=['-DHAVE_GLU'])
else:
print "GLU header file not found!"
print("GLU header file not found!")
Exit(1)
else:
print "GLU library not found!"
print("GLU library not found!")
Exit(1)
# check for GLUT
if conf.CheckLib('glut', 'glutMainLoop'):
if conf.CheckCHeader('GL/glut.h'):
conf.env.AppendUnique(CPPFLAGS=['-DHAVE_GLUT'])
else:
print "GLUT header file not found!"
print("GLUT header file not found!")
Exit(1)
else:
print "GLUT library not found!"
print("GLUT library not found!")
Exit(1)
# check for libm
if conf.CheckLib('m', 'fmod'):
if conf.CheckCHeader('math.h'):
conf.env.AppendUnique(CPPFLAGS=['-DHAVE_GLUT'])
else:
print "GLUT header file not found!"
print("GLUT header file not found!")
Exit(1)
else:
print "GLUT library not found!"
print("GLUT library not found!")
Exit(1)

# check whether gettimeofday() exists, and how many arguments it has
print "Checking for gettimeofday() semantics...",
print("Checking for gettimeofday() semantics...", end=' ')
if conf.TryCompile("""#include <stdlib.h>
#include <sys/time.h>
int main() {
Expand All @@ -62,18 +62,18 @@ int main() {
""", '.c'):
conf.env.AppendUnique(CPPFLAGS=['-DHAVE_GETTIMEOFDAY',
'-DGETTIMEOFDAY_TWO_ARGS'])
print "two args"
print("two args")
else:
if conf.TryCompile("""#include <stdlib.h>
#include <sys/time.h>
int main() {
struct timeval tv; gettimeofday(&tv);
}""", '.c'):
conf.env.AppendUnique(CPPFLAGS=['-DHAVE_GETTIMEOFDAY'])
print "one arg"
print("one arg")
else:
print "unknown"
print "gettimeofday() has unknown number of arguments"
print("unknown")
print("gettimeofday() has unknown number of arguments")
Exit(1)

# set warning flags
Expand Down

0 comments on commit a396557

Please sign in to comment.