<s> import autoinstall_lib as atl <EOL> from waflib import Logs <EOL> from waflib import Utils , Errors <EOL> import waflib <EOL> import os . path as osp <EOL> def options ( ctx ) : <EOL> atl . add_lib_option ( "<STR_LIT>" , ctx , install = True ) <EOL> twice = False <EOL> def configure ( ctx ) : <EOL> atl . conf_lib ( ctx , "<STR_LIT>" , [ "<STR_LIT>" ] , "<STR_LIT>" , "<STR_LIT>" , msg = "<STR_LIT>" , opt_name = "<STR_LIT>" , uselib = [ "<STR_LIT>" ] , install = install_cfitsio ) <EOL> ctx . env . th = False <EOL> def install_cfitsio ( ctx ) : <EOL> atl . installsmthg_pre ( ctx , "<STR_LIT>" , "<STR_LIT>" ) <EOL> CCMACRO = "<STR_LIT>" % ( ctx . env . CC [ <NUM_LIT:0> ] , ctx . env . mopt ) <EOL> CCMACRO = "<STR_LIT>" % ( CCMACRO , CCMACRO ) <EOL> CPPMACRO = "<STR_LIT>" % ( ctx . env . CC [ <NUM_LIT:0> ] ) <EOL> cmdline = "<STR_LIT>" % ( "<STR_LIT>" , ctx . env . mprefix , "<STR_LIT>" , CCMACRO , CPPMACRO , ctx . options . jobs , ctx . options . jobs ) <EOL> Logs . pprint ( "<STR_LIT>" , cmdline ) <EOL> if ctx . exec_command ( cmdline ) != <NUM_LIT:0> : <EOL> raise Errors . WafError ( "<STR_LIT>" % "<STR_LIT>" ) </s>
