mirror of
git://git.savannah.gnu.org/guix/guix-cuirass.git
synced 2023-12-14 06:03:04 +01:00
e4233a94ea
* configure.ac: Require 2.71. * Makefile.am (do_subst): Substitute $(runstatedir). * src/cuirass/config.scm.in (%runstatedir): New variable. * src/cuirass/base.scm (%cuirass-run-state-directory): New variable. * guix.scm <native-inputs>: Use AUTOCONF-2.71.
88 lines
3 KiB
Text
88 lines
3 KiB
Text
## Process this file with autoconf to produce a configure script.
|
|
|
|
# Copyright © 2016, 2017 Mathieu Lirzin <mthl@gnu.org>
|
|
# Copyright © 2017, 2018, 2020, 2023 Ludovic Courtès <ludo@gnu.org>
|
|
# Copyright © 2017 Mathieu Othacehe <othacehe@gnu.org>
|
|
#
|
|
# This file is part of Cuirass.
|
|
#
|
|
# Cuirass is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 3, or (at your option)
|
|
# any later version.
|
|
#
|
|
# Cuirass is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with Cuirass. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
AC_PREREQ([2.71])
|
|
AC_INIT([Cuirass],
|
|
m4_esyscmd([build-aux/git-version-gen .tarball-version]),
|
|
[bug-guix@gnu.org], [cuirass],
|
|
[https://guix.gnu.org/en/cuirass/])
|
|
AC_CONFIG_SRCDIR([bin/cuirass.in])
|
|
AC_CONFIG_AUX_DIR([build-aux])
|
|
AC_REQUIRE_AUX_FILE([git-version-gen])
|
|
AC_REQUIRE_AUX_FILE([test-driver.scm])
|
|
AM_INIT_AUTOMAKE([foreign subdir-objects -Wall])
|
|
AM_SILENT_RULES([yes]) # enables silent rules by default
|
|
|
|
AC_CANONICAL_HOST
|
|
AC_PROG_MKDIR_P
|
|
AC_PROG_SED
|
|
|
|
GUILE_PKG([3.0])
|
|
|
|
dnl Guile 3.0.6 introduced 'read' in Scheme, which cooperates with
|
|
dnl Fibers (it can be suspended).
|
|
PKG_CHECK_MODULES([GUILE], [guile-3.0 >= 3.0.6])
|
|
|
|
AC_PATH_PROG([GUILE], [guile])
|
|
AC_PATH_PROG([GUILD], [guild])
|
|
AS_IF([test -z "$ac_cv_path_GUILD"],
|
|
[AC_MSG_ERROR(['guild' program cannot be found.])])
|
|
|
|
GUILE_MODULE_REQUIRED([avahi])
|
|
GUILE_MODULE_REQUIRED([fibers])
|
|
|
|
GUILE_MODULE_AVAILABLE([have_recent_fibers], [(fibers scheduler)])
|
|
if test "x$have_recent_fibers" != "xyes"; then
|
|
AC_MSG_ERROR([Fibers appears to be too old; please install version 1.1.0 or later.])
|
|
fi
|
|
|
|
GUILE_MODULE_REQUIRED([guix])
|
|
GUILE_MODULE_REQUIRED([guix git])
|
|
GUILE_MODULE_REQUIRED([guix config])
|
|
GUILE_MODULE_REQUIRED([git])
|
|
GUILE_MODULE_REQUIRED([json])
|
|
GUILE_MODULE_REQUIRED([mailutils mailutils])
|
|
GUILE_MODULE_REQUIRED([mastodon])
|
|
GUILE_MODULE_REQUIRED([simple-zmq])
|
|
GUILE_MODULE_REQUIRED([squee])
|
|
GUILE_MODULE_REQUIRED([zlib])
|
|
|
|
# We depend on new Guile-Git errors.
|
|
GUILE_MODULE_REQUIRED_EXPORT([(git)], git-error-message)
|
|
|
|
# We need a recent-enough Squee where 'exec-query' is non-blocking:
|
|
# https://notabug.org/cwebber/guile-squee/commit/67bd6c3679dcd9cf8f2837848ec9cb2b53186614
|
|
AC_MSG_CHECKING([whether (squee) is recent enough])
|
|
squee_file="$($GUILE -c '(display (search-path %load-path "squee.scm"))')"
|
|
if grep -q current-read-waiter "$squee_file"; then
|
|
AC_MSG_RESULT([yes])
|
|
else
|
|
AC_MSG_RESULT([no])
|
|
AC_MSG_ERROR([Guile-Squee is too old; please get a newer one from https://notabug.org/cwebber/guile-squee/])
|
|
fi
|
|
|
|
guix_localstatedir="$($GUILE -c '(import (guix config)) (display %localstatedir)')"
|
|
AC_SUBST(guix_localstatedir)
|
|
|
|
AC_CONFIG_FILES([Makefile])
|
|
AC_CONFIG_FILES([pre-inst-env:build-aux/pre-inst-env.in],
|
|
[chmod +x pre-inst-env])
|
|
AC_OUTPUT
|