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