2016-11-12 17:58:17 +01:00
|
|
|
## Process this file with autoconf to produce a configure script.
|
|
|
|
|
2017-01-09 00:35:19 +01:00
|
|
|
# Copyright © 2016, 2017 Mathieu Lirzin <mthl@gnu.org>
|
2020-01-18 15:18:00 +01:00
|
|
|
# Copyright © 2017, 2018, 2020 Ludovic Courtès <ludo@gnu.org>
|
2017-07-01 18:41:18 +02:00
|
|
|
# Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
|
2016-11-12 17:58:17 +01:00
|
|
|
#
|
|
|
|
# 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
|
2017-01-09 00:41:13 +01:00
|
|
|
# the Free Software Foundation; either version 3, or (at your option)
|
2016-11-12 17:58:17 +01:00
|
|
|
# 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/>.
|
|
|
|
|
2016-05-11 19:59:47 +02:00
|
|
|
AC_PREREQ([2.61])
|
2016-12-25 12:43:45 +01:00
|
|
|
AC_INIT([Cuirass],
|
|
|
|
m4_esyscmd([build-aux/git-version-gen .tarball-version]),
|
2017-07-01 18:41:18 +02:00
|
|
|
[bug-guix@gnu.org], [cuirass],
|
|
|
|
[https://www.gnu.org/software/guix/])
|
2016-05-11 19:59:47 +02:00
|
|
|
AC_CONFIG_SRCDIR([bin/cuirass.in])
|
|
|
|
AC_CONFIG_AUX_DIR([build-aux])
|
2016-12-25 12:43:45 +01:00
|
|
|
AC_REQUIRE_AUX_FILE([git-version-gen])
|
2016-05-11 19:59:47 +02:00
|
|
|
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
|
2016-11-12 16:23:00 +01:00
|
|
|
AC_PROG_MKDIR_P
|
|
|
|
AC_PROG_SED
|
2016-06-26 17:02:23 +02:00
|
|
|
|
2018-01-22 23:07:10 +01:00
|
|
|
# We need Fibers, which requires 2.2+.
|
2020-01-18 15:18:00 +01:00
|
|
|
GUILE_PKG([3.0 2.2])
|
2017-05-10 16:32:26 +02:00
|
|
|
|
2016-05-11 19:59:47 +02:00
|
|
|
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.])])
|
|
|
|
|
2016-07-25 13:44:25 +02:00
|
|
|
GUILE_MODULE_REQUIRED([guix])
|
2017-07-01 12:29:59 +02:00
|
|
|
GUILE_MODULE_REQUIRED([guix git])
|
2017-07-31 11:08:32 +02:00
|
|
|
GUILE_MODULE_REQUIRED([git])
|
2016-07-30 23:00:41 +02:00
|
|
|
GUILE_MODULE_REQUIRED([json])
|
2021-01-05 10:20:34 +01:00
|
|
|
GUILE_MODULE_REQUIRED([squee])
|
2018-01-22 23:07:10 +01:00
|
|
|
GUILE_MODULE_REQUIRED([fibers])
|
2020-08-25 16:46:20 +02:00
|
|
|
GUILE_MODULE_REQUIRED([zlib])
|
2016-07-19 15:15:02 +02:00
|
|
|
|
2017-07-31 11:08:32 +02:00
|
|
|
# We depend on new Guile-Git errors.
|
|
|
|
GUILE_MODULE_REQUIRED_EXPORT([(git)], git-error-message)
|
|
|
|
|
2016-11-12 16:23:00 +01:00
|
|
|
AC_CONFIG_FILES([Makefile])
|
2016-05-11 19:59:47 +02:00
|
|
|
AC_CONFIG_FILES([pre-inst-env:build-aux/pre-inst-env.in],
|
|
|
|
[chmod +x pre-inst-env])
|
|
|
|
AC_OUTPUT
|