hivex: Use OCaml bytecode compiler for caml_raise_with_args check
authorHilko Bengen <bengen@hilluzination.de>
Wed, 11 May 2011 22:04:18 +0000 (00:04 +0200)
committerRichard W.M. Jones <rjones@redhat.com>
Thu, 12 May 2011 09:50:46 +0000 (10:50 +0100)
commitc9c8f893ecfaa9d646dfd02b1e0f16c549bbb6cd
treeedd49c15d18c30b16a2e656dbdeb3714916b1782
parentec5302e8cc35a60fcb5aa182cffc248a5f1536d2
hivex: Use OCaml bytecode compiler for caml_raise_with_args check

On installations where no native OCaml compiler is available, the
test program can't be compiled and so we get this message:

,----
| checking for function caml_raise_with_args... not found
`----

This breaks building of the OCaml bindings.

,----
| gcc -std=gnu99 -I.. -I/usr/lib/ocaml -I../ocaml -I../lib   -g -O2 -fPIC -Wall -c hivex_c.c
| hivex_c.c:52: error: static declaration of 'caml_raise_with_args' follows non-static declaration
| /usr/lib/ocaml/caml/fail.h:30: note: previous declaration of 'caml_raise_with_args' was here
| make[2]: *** [hivex_c.o] Error 1
`----

(Successfully tested on Debian/unstable on alpha)
configure.ac