summaryrefslogtreecommitdiff
path: root/configure.ac
blob: 621fe61235451b53ec269b22aaa53d1cb11e8900 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Gash-Utils
# Copyright © 2017, 2018, 2019 Timothy Sample <[email protected]>
# Copyright © 2019 Jan (janneke) Nieuwenhuizen <[email protected]>
#
# This file is part of Gash-Utils.
#
# Gash-Utils 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 of the License, or
# (at your option) any later version.
#
# Gash-Utils 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 Gash-Utils.  If not, see <https://www.gnu.org/licenses/>.

AC_INIT([Gash-Utils],
        m4_esyscmd([build-aux/git-version-gen .tarball-version]),
        [[email protected]],
        [gash-utils])
AC_CONFIG_SRCDIR([gash])
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([color-tests silent-rules -Wall -Werror])
AM_SILENT_RULES([yes])

GUILE_PKG([3.0 2.2 2.0])
GUILE_PROGS

AC_ARG_VAR([GUILD], [guild (Guile compiler) command])
AS_IF([test "x$GUILD" = "x"],
  [PKG_CHECK_VAR([GUILD], [guile-$GUILE_EFFECTIVE_VERSION], [guild], [],
    [AC_MSG_ERROR(m4_normalize([
      'guild' binary not found; please check your Guile installation.]))])])

GUILE_MODULE_AVAILABLE([have_gash], [(gash config)])
if test "x$have_gash" != "xyes"; then
  AC_MSG_ERROR([Gash is missing; please install it.])
fi

AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([gash/commands/config.scm])
AC_CONFIG_FILES([pre-inst-env:build-aux/pre-inst-env.in],
                [chmod +x pre-inst-env])
AC_CONFIG_FILES([tests/run-test-suite], [chmod +x tests/run-test-suite])

AC_OUTPUT