#NEWLINE# def check_blas_lapack( context ) : #NEWLINE# #INDENT# conf = context . waf_context #NEWLINE# order = list ( get_blas_lapack_order ( context ) ) #NEWLINE# ( o , a ) = context . options_context . parser . parse_args ( context . command_argv ) #NEWLINE# if o . blas_lapack_libdir : #NEWLINE# #INDENT# context . waf_context . env . append_value ( 'LIBPATH' , o . blas_lapack_libdir ) #NEWLINE# #UNINDENT# for blas_lapack_name in order : #NEWLINE# #INDENT# check_cblas ( context , blas_lapack_name ) #NEWLINE# if conf . env . HAS_CBLAS : #NEWLINE# #INDENT# order . remove ( blas_lapack_name ) #NEWLINE# order . insert ( 0 , blas_lapack_name ) #NEWLINE# break #NEWLINE# #UNINDENT# #UNINDENT# for blas_lapack_name in order : #NEWLINE# #INDENT# check_blas ( context , blas_lapack_name ) #NEWLINE# if conf . env . HAS_BLAS : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# #UNINDENT# for blas_lapack_name in order : #NEWLINE# #INDENT# check_lapack ( context , blas_lapack_name ) #NEWLINE# if conf . env . HAS_LAPACK : #NEWLINE# #INDENT# break