@conf
def find_gdc(conf):
    """
	Finds the program gdc and set the variable *D*
	"""
    conf.find_program('gdc', var='D')
    out = conf.cmd_and_log(conf.env.D + ['--version'])
    if out.find('gdc') == -1:
        conf.fatal('detected compiler is not gdc')
