This commit makes it possible to build the OCaml compiler according to
its configuration by simply runnning make. There is no need to specify
neither world nor world.opt explicitly, although the two targets
remain available.
This commit also introduces (and starts making use of) the
NATIVE_COMPILER build variable whosse value is true when the native
compiler is enabled and false otherwise.
Note: Typos found with https://github.com/codespell-project/codespell
Here is the (semi-manual) command used to get (and correct) the typos:
$ codespell -i 3 -w --skip=".png,.gif,./ocaml/boot,./ocaml/.git,./ocaml/manual/styles,./ocaml/manual/manual/htmlman" -L minimise,instal,contructor,"o'caml",cristal,pres,clos,cmo,uint,iff,te,objext,nto,nd,mut,upto,larg,exten,leage,mthod,delte,tim,atleast,langage,hten,iwth,mke,contant,succint,methids,eles,valu,clas,modul,que,classe,missings,froms,defaut,correspondance,differents,configury,reachs,cas,approche,normale,dur,millon,amin,oje,transfert
A few tests rely on a Testing module located in testsuite/lib.
The legacy testing infrastructure links it into the programs that
use it as a module, but in the context of ocamltest it seems better
to provide testing as a library.
This commit thus modifies the build system of the testsuite to
also build testing as a library, both in bytecode and native formats.
Since, Makefile.tools is used by both the testsuite and the manual, it
should be moved to the first common ancestor of the two subdirectories:
the root directory.
Note: also remove testsuite/lib/empty and use noinit when invoking the
ocaml interpreter.