X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=configure.ac;h=10d053596d9841fb4bf9d5a76125fcb641339900;hb=156de1e0df4aace1a42957491118cc2174d70c6a;hp=e8fd7e5d95b91cbddd04d4861516a24dc4b4a421;hpb=2a9d33a300ac414c21679c520bc6434d48f499a9;p=goals.git diff --git a/configure.ac b/configure.ac index e8fd7e5..10d0535 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,6 @@ # Goals -# Copyright (C) 2019 Richard W.M. Jones -# Copyright (C) 2019 Red Hat Inc. +# Copyright (C) 2019-2020 Richard W.M. Jones +# Copyright (C) 2019-2020 Red Hat Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -16,9 +16,11 @@ # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -AC_INIT([goals], [0.1]) +AC_INIT([goals], [0.3]) AC_CONFIG_MACRO_DIR([m4]) +AM_INIT_AUTOMAKE(foreign) dnl Do not quote this parameter. + AC_PROG_INSTALL dnl Check for basic C environment. @@ -29,6 +31,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 @@ -53,6 +59,10 @@ AC_CHECK_PROG([POD2MAN], [pod2man], [pod2man], [ AC_MSG_ERROR([pod2man tool from Perl is required]) ]) +AC_CHECK_PROG([POD2TEXT], [pod2text], [pod2text], [ + AC_MSG_ERROR([pod2text 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"]) @@ -62,6 +72,7 @@ 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 + goals.spec src/config.ml]) AC_OUTPUT