1diff --git a/Makefile.in b/Makefile.in
2index d040f4c..cc1a8f5 100644
3--- a/Makefile.in
4+++ b/Makefile.in
5@@ -40,7 +40,7 @@ pkg_extlib = @OCAML_PKG_extlib@
6 enable_coverage = @enable_coverage@
7
8 OCAMLCFLAGS = -g
9-OCAMLCPACKAGES =
10+OCAMLCPACKAGES = -package camlp4
11 OCAMLCLIBS = -linkpkg
12 OCAMLOPTFLAGS = $(OCAMLCFLAGS)
13 OCAMLOPTPACKAGES = $(OCAMLCPACKAGES)
14@@ -110,12 +110,13 @@ bitstring_persistent.cmi: bitstring_persistent.mli
15 -I +camlp4 -pp camlp4of -c $<
16
17 pa_bitstring.cmo: pa_bitstring.ml bitstring.cma bitstring_persistent.cma
18- $(OCAMLFIND) ocamlc bitstring.cma -I +camlp4 dynlink.cma camlp4lib.cma \
19+ $(OCAMLFIND) ocamlc $(OCAMLCPACKAGES) \
20+ bitstring.cma -I +camlp4 dynlink.cma camlp4lib.cma \
21 -pp camlp4of -c $< -o $@
22
23 bitstring-objinfo: bitstring_objinfo.cmo bitstring.cma bitstring_persistent.cma
24 $(OCAMLFIND) ocamlc -I +camlp4 unix.cma dynlink.cma camlp4lib.cma \
25- $(OCAMLCFLAGS) $(OCAMLCLIBS) \
26+ $(OCAMLCFLAGS) $(OCAMLCLIBS) $(OCAMLCPACKAGES) \
27 bitstring.cma bitstring_persistent.cma \
28 $< -o $@
29
30@@ -158,12 +159,13 @@ tests/test.bmpp: create_test_pattern
31
32 create_test_pattern: create_test_pattern.cmo
33 $(OCAMLFIND) ocamlc $(OCAMLCFLAGS) -pp camlp4of \
34- unix.cma -I +camlp4 dynlink.cma camlp4lib.cma \
35+ unix.cma -I `ocamlfind query camlp4` dynlink.cma camlp4lib.cma \
36 $(OCAMLCLIBS) \
37 -I . bitstring.cma bitstring_persistent.cma $< -o $@
38
39 create_test_pattern.cmo: create_test_pattern.ml
40 $(OCAMLFIND) ocamlc $(OCAMLCFLAGS) -pp camlp4of \
41+ $(OCAMLCPACKAGES) \
42 unix.cma -I +camlp4 \
43 -I . -c $< -o $@
44