make message checking .. in locktype start with uppercase

This commit is contained in:
Radim Kolar 2009-08-24 21:09:11 +02:00
parent b2a2c3872e
commit c2e48b6526

View File

@ -1,8 +1,8 @@
# #
# SCons FSP locking type tester # SCons FSP locking type tester
# #
# Version 1.0 # Version 1.1
# 20-Jul-2009 # 24-Aug-2009
# #
from SCons.Script import ARGUMENTS from SCons.Script import ARGUMENTS
@ -14,7 +14,7 @@ def checkForLockingType(check,conf):
fun_shmget=conf.CheckFunc("shmget") fun_shmget=conf.CheckFunc("shmget")
fun_flock=conf.CheckFunc("flock") fun_flock=conf.CheckFunc("flock")
# select locking type # select locking type
check.Message("checking for FSP locking type") check.Message("Checking for FSP locking type")
lt=ARGUMENTS.get('locking', 0) or ARGUMENTS.get("with-locking",0) or ARGUMENTS.get("lock",0) or ARGUMENTS.get("with-lock",0) lt=ARGUMENTS.get('locking', 0) or ARGUMENTS.get("with-locking",0) or ARGUMENTS.get("lock",0) or ARGUMENTS.get("with-lock",0)
if lt == "none": if lt == "none":
conf.env.Append(CPPFLAGS = '-DFSP_NOLOCKING') conf.env.Append(CPPFLAGS = '-DFSP_NOLOCKING')