X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=configure.ac;h=51ea72140fd7d42ce2babdd1b9d894eee9f618c5;hb=7cc3051dd596e662d26cfa66e0a20b4b189d3cb2;hp=a542e701eaa6c0186afffe7a36e2253ac6106c52;hpb=53a2161b3e0ff69420968c0fba82b93800a6b381;p=goals.git diff --git a/configure.ac b/configure.ac index a542e70..51ea721 100644 --- a/configure.ac +++ b/configure.ac @@ -29,6 +29,10 @@ AC_PROG_CPP AC_C_PROTOTYPES test "x$U" != "x" && AC_MSG_ERROR([Compiler not ANSI compliant]) +dnl C headers and functions. +AC_CHECK_HEADERS([sys/sysinfo.h]) +AC_CHECK_FUNCS([get_nprocs]) + dnl Check for basic OCaml environment and findlib. AC_PROG_OCAML if test "x$OCAMLC" = "xno"; then @@ -49,10 +53,19 @@ AC_CHECK_PROG(MENHIR, [menhir], [menhir], [ AC_MSG_ERROR([OCaml menhir parser generator is required]) ]) +AC_CHECK_PROG([POD2MAN], [pod2man], [pod2man], [ + AC_MSG_ERROR([pod2man tool from Perl is required]) +]) + +dnl Substitute OCaml flags and packages. +AC_SUBST([OCAMLFLAGS], ["-g -safe-string -warn-error CDEFLMPSUVYZX+52-3"]) +AC_SUBST([OCAMLPACKAGES], ["-package str,unix,threads -thread"]) + dnl Produce output files. AC_CONFIG_HEADERS([config.h]) AC_CONFIG_FILES([stamp-h], [echo timestamp > stamp-h]) +AC_CONFIG_FILES([run], [chmod +x,-w run]) AC_CONFIG_FILES([Goalfile Makefile - parsing/Goalfile parsing/Makefile]) + src/config.ml]) AC_OUTPUT