def find_clang(conf):
    """
    Find the program clang, and if present, try to detect its version number
    """
    cc = conf.find_program(['clang', 'cc'], var='CC')
    cc = conf.cmd_to_list(cc)
    conf.get_cc_version(cc, gcc=True)
    conf.env.CC_NAME = 'clang'
    conf.env.CC      = cc