Author: brane Date: Sun Jun 1 14:16:45 2025 New Revision: 1926045 URL: http://svn.apache.org/viewvc?rev=1926045&view=rev Log: Follow-up to r1926044.
* SConstruct: GetSConsVersion() was added in SCons 4.8, add a fallback. Modified: serf/trunk/SConstruct Modified: serf/trunk/SConstruct URL: http://svn.apache.org/viewvc/serf/trunk/SConstruct?rev=1926045&r1=1926044&r2=1926045&view=diff ============================================================================== --- serf/trunk/SConstruct (original) +++ serf/trunk/SConstruct Sun Jun 1 14:16:45 2025 @@ -28,10 +28,15 @@ import re EnsureSConsVersion(2,3,0) # SCons 4.7 introduced the arugment list parameter to CheckFunc. -if GetSConsVersion() >= (4, 7): - def CheckFunc(conf, name, code, lang='C', args=''): - return conf.CheckFunc(name, code, lang, args) -else: +# Of course, GetSConsVersion() was added in 4.8, it's more fun that way. +try: + if GetSConsVersion() >= (4, 7): + def CheckFunc(conf, name, code, lang='C', args=''): + return conf.CheckFunc(name, code, lang, args) + have_check_func = True +except NameError: + have_check_func = False +if not have_check_func: def CheckFunc(conf, name, code, lang='C', _=''): return conf.CheckFunc(name, code, lang)