<s> import os <EOL> import os . path as osp <EOL> import waflib . Utils <EOL> import waflib . Logs as msg <EOL> from waflib . Configure import conf <EOL> _heptooldir = osp . dirname ( osp . abspath ( __file__ ) ) <EOL> def options ( opt ) : <EOL> opt . load ( '<STR_LIT>' , tooldir = _heptooldir ) <EOL> opt . add_option ( <EOL> '<STR_LIT>' , <EOL> default = None , <EOL> help = "<STR_LIT>" ) <EOL> return <EOL> def configure ( conf ) : <EOL> conf . load ( '<STR_LIT>' , tooldir = _heptooldir ) <EOL> return <EOL> @ conf <EOL> def find_xrootd ( ctx , ** kwargs ) : <EOL> if not ctx . env . HWAF_FOUND_C_COMPILER : <EOL> ctx . fatal ( '<STR_LIT>' ) <EOL> pass <EOL> if not ctx . env . HWAF_FOUND_CXX_COMPILER : <EOL> ctx . fatal ( '<STR_LIT>' ) <EOL> pass <EOL> extra_paths = waflib . Utils . to_list ( kwargs . get ( '<STR_LIT>' , [ ] ) ) <EOL> if getattr ( ctx . options , '<STR_LIT>' , None ) : <EOL> topdir = ctx . options . with_xrootd <EOL> topdir = ctx . hwaf_subst_vars ( topdir ) <EOL> extra_paths . append ( topdir ) <EOL> pass <EOL> kwargs [ '<STR_LIT>' ] = extra_paths <EOL> ctx . check_with ( <EOL> ctx . check , <EOL> "<STR_LIT>" , <EOL> features = '<STR_LIT>' , <EOL> header_name = "<STR_LIT>" , <EOL> uselib_store = '<STR_LIT>' , <EOL> ** kwargs <EOL> ) <EOL> bindir = osp . join ( ctx . env . get_flat ( '<STR_LIT>' ) , '<STR_LIT>' ) <EOL> libdir = osp . join ( ctx . env . get_flat ( '<STR_LIT>' ) , kwargs . get ( '<STR_LIT>' , '<STR_LIT>' ) ) <EOL> incdir = osp . join ( ctx . env . get_flat ( '<STR_LIT>' ) , '<STR_LIT>' ) <EOL> ctx . hwaf_define_uselib ( <EOL> name = "<STR_LIT>" , <EOL> libpath = libdir , <EOL> libname = "<STR_LIT>" , <EOL> incpath = incdir , <EOL> incname = "<STR_LIT>" , <EOL> ) <EOL> ctx . hwaf_define_uselib ( <EOL> name = "<STR_LIT>" , <EOL> libpath = libdir , <EOL> libname = "<STR_LIT>" , <EOL> incpath = incdir , <EOL> incname = "<STR_LIT>" , <EOL> ) <EOL> ctx . hwaf_define_uselib ( <EOL> name = "<STR_LIT>" , <EOL> libpath = libdir , <EOL> libname = "<STR_LIT>" , <EOL> incpath = incdir , <EOL> incname = "<STR_LIT>" , <EOL> ) <EOL> ctx . find_program ( <EOL> "<STR_LIT>" , <EOL> var = "<STR_LIT>" , <EOL> ** kwargs ) <EOL> kwargs [ '<STR_LIT>' ] = False <EOL> ctx . find_program ( <EOL> "<STR_LIT>" , <EOL> var = "<STR_LIT>" , <EOL> ** kwargs ) <EOL> version = ctx . check_cxx ( <EOL> msg = "<STR_LIT>" , <EOL> okmsg = "<STR_LIT>" , <EOL> fragment = '''<STR_LIT>''' , <EOL> use = "<STR_LIT>" , <EOL> define_name = "<STR_LIT>" , <EOL> define_ret = True , <EOL> execute = True , <EOL> ) <EOL> ctx . start_msg ( "<STR_LIT>" ) <EOL> ctx . end_msg ( version ) <EOL> ctx . env . XROOTD_VERSION = version <EOL> ctx . env . HWAF_FOUND_XROOTD = <NUM_LIT:1> <EOL> return </s>
