INSTALLATIONS INSTRUCTIONS IN UNIX MACHINES

1- For the compilation, you need the Objective Caml compiler, "ocamlc"
   installed in your machine, and its library "dynlink" installed too
   (which is the default).

2- From the top directory, do:
	./configure
   and follow the instructions

3- If you don't have the fast Ocaml compilers "ocamlc.opt" and "ocamlopt.opt",
   edit the file config/Makefile and change "OCAMLC=ocamlc.opt" by
   "OCAMLC=ocamlc" and "OCAMLOPT=ocamlopt.opt" by "OCAMLOPT=ocamlopt"

4- Do:
	make world
   This builds "camlp4" and some useful files.

5- (Optional) To be sure everything works well, you can try to bootstrap the
   system. Do:
        make bootstrap

6- (Optional) If your platform is supported by the native-code compiler, you
   can build the native-code camlp4 library. To know if it is the case, just
   type:
	ocamlopt -v
   If the answer is "The Objective Caml native-code, etc...", it exists.
   If the answer is something like "command not found", no.
   So, if you have it, you can do:
	make opt

7- You can now install the camlp4 system. This will create the command
   "camlp4" and install library files. Become root and do:
	make install

8- Test the system by pretty printing your Objective Caml source files:
	camlp4o pr_o.cmo foo.ml
   "foo.ml" being one of your Objective Caml source files.

9- (Optional) If you want the extensions for Olabl (alpha test), do:
        cd lablp4
        make
   Then become root and do:
        make install
   This installs the parser "pa_labl.cma" and the ast dumper "pr_ldump.cma".
   Your Olabl programs can be preprocessed by the command:
        olablc -pp "camlp4 pa_labl.cma pr_ldump.cma" -c foo.ml

INSTALLATIONS INSTRUCTIONS IN WINDOWS NT/95

The better way to compile camlp4 is to use Gnu-Win32, a development
tool for Windows NT/95 made by Cygnus. You can find informations and
download it at location:

      http://www.cygnus.com/misc/gnu-win32/

Then edit the file "config/Makefile.tpl" and change the line
      EXE=
into:
      EXE=.exe

Then follow the same instructions than for unix above.

Possible problems:

- When you type "./configure" (point 2 above), the second question may
be skipped without asking. This is a (known) bug of Cygnus Beta 19. To
go around this problem, edit the file "configure" and change the line
"read r" into "read r; read s" and try again.

- When compiling (make world), if you get a message looking like this:
     ../boot/camlp4r -nolib -I ../boot -o stdpp.ppi stdpp.mli
     sh: ../boot/camlp4r: No such file or directory
  edit the file tools/compile.ml and change the lines:
     "../boot/camlp4r -nolib -I ../boot" ^
     "../boot/camlp4 -nolib -I ../boot" ^
  into (resp.):
     "..\\boot\\camlp4r -nolib -I ../boot" ^
     "..\\boot\\camlp4 -nolib -I ../boot" ^
