artifact_id;status_id;status_name;priority;submitter_id;submitter_name;assigned_to_id;assigned_to_name;open_date;close_date;last_modified_date;summary;details;"Component";"Version";"Resolution"
1169;1;"Open";3;918;"William R";100;"Nobody";"2012-06-11 22:10";"";"2012-06-11 22:10";"modify tools search order for cross compilation";"Default search order is from 1 to 8, highest number has priority :
[1-i686-pc-mingw32-ocamlc]
2-ocamlc
[3-i686-pc-mingw32-ocamlopt]
4-ocamlopt
[5-i686-pc-mingw32-ocamlc.opt]
6-ocamlc.opt
[7-i686-pc-mingw32-ocamlopt.opt]
8-ocamlopt.opt

My problem is that if i686-pc-mingw32-ocamlc is not there :
ocamlc is present and captured
i686-pc-mingw32-ocamlopt is present but not captured (version mismatch)
ocamlopt is present and captured

Now, with the patch, it becomes (1 is first searched, with highest priority) :
[1-i686-pc-mingw32-ocamlc.opt]
[2-i686-pc-mingw32-ocamlc]
3-ocamlc.opt
4-ocamlc
[5-i686-pc-mingw32-ocamlopt.opt]
[6-i686-pc-mingw32-ocamlopt]
7-ocamlopt.opt
8-ocamlopt

Other features :
- ac_check_tools instead of ac_check_tool to allow the new more intuitive search order
- ac_check_prog instead of ac_check_tool for camlp4*, ocamllex, ocamlyacc (in cross-compilation mode, those tools are searched as is without the cross prefix)
- ac_subst removed when not needed (after ac_check_prog/tool, when the value is not changed between ac_check_prog/tool and ac_subst)

This patched version is used in mxe to cross-compile cairo-ocaml, lablgtk2 and camlimages.

Regards,
William";"None";"v1.1";"None"