chiark / gitweb /
gremlin/gremlin.in: Use `https' scheme for Wikipedia link.
[autoys] / configure.ac
CommitLineData
d7a24df8
MW
1dnl -*-autoconf-*-
2dnl
3dnl Configuration script for `autoys'
4dnl
5dnl (c) 2016 Mark Wooding
6dnl
7
8dnl----- Licensing notice ---------------------------------------------------
9dnl
10dnl This file is part of the `autoys' audio tools collection.
11dnl
12dnl `autoys' is free software; you can redistribute it and/or modify
13dnl it under the terms of the GNU General Public License as published by
14dnl the Free Software Foundation; either version 2 of the License, or
15dnl (at your option) any later version.
16dnl
17dnl `autoys' is distributed in the hope that it will be useful,
18dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
19dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20dnl GNU General Public License for more details.
21dnl
22dnl You should have received a copy of the GNU General Public License
23dnl along with `autoys'; if not, write to the Free Software Foundation,
24dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25
26dnl--------------------------------------------------------------------------
27dnl Initialization.
28
29mdw_AUTO_VERSION
30AC_INIT([autoys], AUTO_VERSION, [mdw@distorted.org.uk])
d4a7d7b5 31AC_CONFIG_SRCDIR([gremlin/gremlin.in])
d7a24df8
MW
32AC_CONFIG_AUX_DIR([config])
33AM_INIT_AUTOMAKE([foreign])
34mdw_SILENT_RULES
35
36dnl--------------------------------------------------------------------------
37dnl C programming environment.
38
39AC_PROG_CC
40AX_FLAGS_WARN_ALL
41
42dnl--------------------------------------------------------------------------
43dnl Various scripting languages.
44
45## Python
46AM_PATH_PYTHON([2.5], [have_python=yes], [have_python=no])
47AM_CONDITIONAL([HAVE_PYTHON], [test $have_python = yes])
48
49## Bash.
50case "$BASH" in /bin/sh) unset BASH ;; esac
51AC_ARG_VAR([BASH], [Path to the Bourne Again Shell.])
52AC_PATH_PROG([BASH], [bash], [false])
53AC_MSG_CHECKING([bash version])
54bashver=$("$BASH" -c 'echo $BASH_VERSION')
55if "$BASH" 2>/dev/null -c '[[[ ${BASH_VERSINFO[0]} -ge 3 ]]]'; then
56 have_bash=yes
57 AC_MSG_RESULT([$bashver])
58else
59 have_bash=no
60 AC_MSG_RESULT([too old ($bashver)])
61fi
62AM_CONDITIONAL([HAVE_BASH], [test $have_bash = yes])
63
64dnl--------------------------------------------------------------------------
65dnl Output.
66
d4a7d7b5
MW
67AC_CONFIG_FILES(
68 [Makefile]
69 [gremlin/Makefile])
d7a24df8
MW
70AC_OUTPUT
71
72dnl----- That's all, folks --------------------------------------------------