X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=configure.ac;h=bf57ebbc085ca80aeb0671df2c42aea62adaf8f0;hb=a859ccb1809e6514a9e0119f1cb6be2862237680;hp=380a734881b63d5e5c573efdd2e89cb6ba746c97;hpb=1c0b762f3e440d492bd061a718afdf1c5adbcbc1;p=goals.git diff --git a/configure.ac b/configure.ac index 380a734..bf57ebb 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. @@ -49,20 +51,23 @@ if test "x$OCAMLLEX" = "xno"; then AC_MSG_ERROR([OCaml ocamllex lexical generator tool is required]) fi -AC_CHECK_PROG(MENHIR, [menhir], [menhir], [ +AC_CHECK_PROG([MENHIR], [menhir], [menhir], [no]) +if test "x$MENHIR" = "xno"; then AC_MSG_ERROR([OCaml menhir parser generator is required]) -]) +fi -AC_CHECK_PROG([POD2MAN], [pod2man], [pod2man], [ +AC_CHECK_PROG([POD2MAN], [pod2man], [pod2man], [no]) +if test "x$POD2MAN" = "xno"; then AC_MSG_ERROR([pod2man tool from Perl is required]) -]) +fi -AC_CHECK_PROG([POD2TEXT], [pod2text], [pod2text], [ +AC_CHECK_PROG([POD2TEXT], [pod2text], [pod2text], [no]) +if test "x$POD2TEXT" = "xno"; then AC_MSG_ERROR([pod2text tool from Perl is required]) -]) +fi dnl Substitute OCaml flags and packages. -AC_SUBST([OCAMLFLAGS], ["-g -safe-string -warn-error CDEFLMPSUVYZX+52-3"]) +AC_SUBST([OCAMLFLAGS], ["-g -safe-string -warn-error +C+D+E+F+L+M+P+S+U+V+Y+Z+X+52-3"]) AC_SUBST([OCAMLPACKAGES], ["-package str,unix,threads -thread"]) dnl Produce output files. @@ -70,6 +75,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