I have a Makefile.am
for compiling Ocaml source code with ocamlbuild
. However, even
though I have
AM_INIT_AUTOMAKE([foreign no-dependencies])
in my configure.ac
, automake thinks that a C compiler must be present to install exectuables. That is, if I put in Makefile.am
a target executable under bin_PROGRAMS
that is to be built with ocamlbuild, autoreconf (version 1.11.3) tells me:
Makefile.am: C source seen but `CC' is undefined
Makefile.am: The usual way to define `CC' is to add `AC_PROG_CC'
Makefile.am: to `configure.ac' and run `autoconf' again.
autoreconf: automake failed with exit status: 1
I do not want to include AC_PROG_CC
because my source code includes no C. It is pure Ocaml. What can I do? (I have the same problem with libexec_PROGRAMS
.)
AC_PROG_CC
will probably add unneeded tests, slowing downconfigure
. – Mudlark