parameters: (conf)
docstring: Detect the program *msgfmt* and set *conf.env.MSGFMT*.
  	Detect the program *intltool-merge* and set *conf.env.INTLTOOL*.
  	It is possible to set INTLTOOL in the environment, but it must not have spaces in it::
  
  		$ INTLTOOL="/path/to/the program/intltool" waf configure
  
  	If a C/C++ compiler is present, execute a compilation test to find the header *locale.h*.
docstring_summary: Detect the program *msgfmt* and set *conf.env.MSGFMT*.
  	Detect the program *intltool-merge* and set *conf.env.INTLTOOL*.
  	It is possible to set INTLTOOL in the environment, but it must not have spaces in it::
docstring_tokens: Detect the program * msgfmt * and set * conf . env . MSGFMT * . Detect the program * intltool - merge * and set * conf . env . INTLTOOL * . It is possible to set INTLTOOL in the environment but it must not have spaces in it ::
function: def configure(conf):
  	"""
  	Detect the program *msgfmt* and set *conf.env.MSGFMT*.
  	Detect the program *intltool-merge* and set *conf.env.INTLTOOL*.
  	It is possible to set INTLTOOL in the environment, but it must not have spaces in it::
  
  		$ INTLTOOL="/path/to/the program/intltool" waf configure
  
  	If a C/C++ compiler is present, execute a compilation test to find the header *locale.h*.
  	"""
  	conf.find_program('msgfmt', var='MSGFMT')
  	conf.find_perl_program('intltool-merge', var='INTLTOOL')
  
  	prefix  = conf.env.PREFIX
  	datadir = conf.env.DATADIR
  	if not datadir:
  		datadir = os.path.join(prefix,'share')
  
  	conf.define('LOCALEDIR', os.path.join(datadir, 'locale').replace('\\', '\\\\'))
  	conf.define('DATADIR', datadir.replace('\\', '\\\\'))
  
  	if conf.env.CC or conf.env.CXX:
  		conf.check(header_name='locale.h')
function_tokens: def configure ( conf ) : conf . find_program ( 'msgfmt' , var = 'MSGFMT' ) conf . find_perl_program ( 'intltool-merge' , var = 'INTLTOOL' ) prefix = conf . env . PREFIX datadir = conf . env . DATADIR if not datadir : datadir = os . path . join ( prefix , 'share' ) conf . define ( 'LOCALEDIR' , os . path . join ( datadir , 'locale' ) . replace ( '\\' , '\\\\' ) ) conf . define ( 'DATADIR' , datadir . replace ( '\\' , '\\\\' ) ) if conf . env . CC or conf . env . CXX : conf . check ( header_name = 'locale.h' )