diff options
author | Hilko Bengen <bengen@hilluzination.de> | 2011-05-12 00:04:19 +0200 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-05-12 10:50:48 +0100 |
commit | 5cf4fc2caa34ccb3a1e01bbec912158127dcd169 (patch) | |
tree | 299f294c47786cbba104521fb7f0796d71a634ec /ocaml | |
parent | c9c8f893ecfaa9d646dfd02b1e0f16c549bbb6cd (diff) | |
download | hivex-5cf4fc2caa34ccb3a1e01bbec912158127dcd169.tar.gz hivex-5cf4fc2caa34ccb3a1e01bbec912158127dcd169.tar.xz hivex-5cf4fc2caa34ccb3a1e01bbec912158127dcd169.zip |
hivex: check for presence of OCaml native compiler
Only compile bytecode otherwise, avoiding ocamlfind's helpful error
message "ocamlfind: Not supported in your configuration: ocamlopt"
(Successfully tested on Debian/unstable on alpha)
Diffstat (limited to 'ocaml')
-rw-r--r-- | ocaml/Makefile.am | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ocaml/Makefile.am b/ocaml/Makefile.am index b9451e3..fee3b88 100644 --- a/ocaml/Makefile.am +++ b/ocaml/Makefile.am @@ -31,7 +31,11 @@ AM_CPPFLAGS = \ if HAVE_OCAML -noinst_DATA = mlhivex.cma mlhivex.cmxa META +noinst_DATA = mlhivex.cma META + +if HAVE_OCAMLOPT +noinst_DATA += mlhivex.cmxa +endif OBJS = hivex_c.o hivex.cmo XOBJS = $(OBJS:.cmo=.cmx) |