2021-07-05 18:47:58 +00:00
|
|
|
AC_INIT([Hydra], [m4_esyscmd([echo -n $(cat ./version.txt)$VERSION_SUFFIX])])
|
2016-03-22 12:19:00 +00:00
|
|
|
AC_CONFIG_AUX_DIR(config)
|
2015-04-10 16:16:44 +00:00
|
|
|
AM_INIT_AUTOMAKE([foreign serial-tests])
|
2010-09-30 14:29:15 +00:00
|
|
|
|
2011-01-14 10:52:44 +00:00
|
|
|
AC_LANG([C++])
|
|
|
|
|
2010-09-30 14:29:15 +00:00
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
AC_PROG_LN_S
|
|
|
|
AC_PROG_LIBTOOL
|
|
|
|
AC_PROG_CXX
|
|
|
|
|
2011-07-04 14:48:38 +00:00
|
|
|
AC_PATH_PROG([XSLTPROC], [xsltproc])
|
|
|
|
|
|
|
|
AC_ARG_WITH([docbook-xsl],
|
|
|
|
[AS_HELP_STRING([--with-docbook-xsl=PATH],
|
|
|
|
[path of the DocBook XSL stylesheets])],
|
|
|
|
[docbookxsl="$withval"],
|
|
|
|
[docbookxsl="/docbook-xsl-missing"])
|
|
|
|
AC_SUBST([docbookxsl])
|
2010-09-30 14:29:15 +00:00
|
|
|
|
|
|
|
|
|
|
|
AC_DEFUN([NEED_PROG],
|
|
|
|
[
|
|
|
|
AC_PATH_PROG($1, $2)
|
|
|
|
if test -z "$$1"; then
|
|
|
|
AC_MSG_ERROR([$2 is required])
|
|
|
|
fi
|
|
|
|
])
|
|
|
|
|
|
|
|
NEED_PROG(perl, perl)
|
|
|
|
|
2011-10-04 20:19:14 +00:00
|
|
|
NEED_PROG([NIX_STORE_PROGRAM], [nix-store])
|
2011-10-04 20:03:49 +00:00
|
|
|
|
2011-10-04 20:19:14 +00:00
|
|
|
AC_MSG_CHECKING([whether $NIX_STORE_PROGRAM is recent enough])
|
2011-10-04 20:58:01 +00:00
|
|
|
if test -n "$NIX_STORE" -a -n "$TMPDIR"
|
2011-10-04 20:53:47 +00:00
|
|
|
then
|
|
|
|
# This may be executed from within a build chroot, so pacify
|
|
|
|
# `nix-store' instead of letting it choke while trying to mkdir
|
|
|
|
# /nix/var.
|
|
|
|
NIX_STATE_DIR="$TMPDIR"
|
|
|
|
export NIX_STATE_DIR
|
|
|
|
fi
|
2022-01-15 18:17:25 +00:00
|
|
|
if NIX_REMOTE=daemon PAGER=cat "$NIX_STORE_PROGRAM" --timeout 123 -q; then
|
2011-10-04 20:03:49 +00:00
|
|
|
AC_MSG_RESULT([yes])
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT([no])
|
2011-10-04 20:19:14 +00:00
|
|
|
AC_MSG_ERROR([`$NIX_STORE_PROGRAM' doesn't support `--timeout'; please use a newer version.])
|
2011-10-04 20:03:49 +00:00
|
|
|
fi
|
|
|
|
|
2014-09-18 10:24:05 +00:00
|
|
|
PKG_CHECK_MODULES([NIX], [nix-main nix-expr nix-store])
|
2011-01-14 10:52:44 +00:00
|
|
|
|
2011-03-17 13:25:27 +00:00
|
|
|
testPath="$(dirname $(type -p expr))"
|
|
|
|
AC_SUBST(testPath)
|
|
|
|
|
2022-01-15 18:17:25 +00:00
|
|
|
jobsPath="$(realpath ./t/jobs)"
|
|
|
|
AC_SUBST(jobsPath)
|
|
|
|
|
2017-03-03 11:33:22 +00:00
|
|
|
CXXFLAGS+=" -include nix/config.h"
|
|
|
|
|
2010-09-30 14:29:15 +00:00
|
|
|
AC_CONFIG_FILES([
|
|
|
|
Makefile
|
|
|
|
doc/Makefile
|
|
|
|
doc/manual/Makefile
|
|
|
|
src/Makefile
|
2016-10-13 13:53:05 +00:00
|
|
|
src/hydra-evaluator/Makefile
|
2015-05-26 13:25:21 +00:00
|
|
|
src/hydra-eval-jobs/Makefile
|
2015-05-28 15:39:29 +00:00
|
|
|
src/hydra-queue-runner/Makefile
|
2010-09-30 14:29:15 +00:00
|
|
|
src/sql/Makefile
|
2013-03-04 11:16:13 +00:00
|
|
|
src/ttf/Makefile
|
2010-09-30 14:29:15 +00:00
|
|
|
src/lib/Makefile
|
|
|
|
src/root/Makefile
|
|
|
|
src/script/Makefile
|
2021-03-05 07:35:57 +00:00
|
|
|
t/Makefile
|
|
|
|
t/jobs/config.nix
|
2022-01-15 18:17:25 +00:00
|
|
|
t/jobs/declarative/project.json
|
2010-09-30 14:29:15 +00:00
|
|
|
])
|
2011-03-17 07:39:46 +00:00
|
|
|
|
2020-02-15 14:12:14 +00:00
|
|
|
AC_CONFIG_COMMANDS([executable-scripts], [])
|
2012-08-18 21:47:43 +00:00
|
|
|
|
2015-05-28 15:37:04 +00:00
|
|
|
AC_CONFIG_HEADER([hydra-config.h])
|
|
|
|
|
2010-09-30 14:29:15 +00:00
|
|
|
AC_OUTPUT
|