chiark / gitweb /
src/{builtin,final,frontent}.lisp: `clear-the-decks' makes builtin module.
[sod] / configure.ac
CommitLineData
97a9a385
MW
1dnl -*-autoconf-*-
2dnl
3dnl Configuration script for SOD
4dnl
5dnl (c) 2015 Straylight/Edgeware
6dnl
7
8dnl----- Licensing notice ---------------------------------------------------
9dnl
10dnl This file is part of the Sensble Object Design, an object system for C.
11dnl
12dnl SOD 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 SOD 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 SOD; 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([sod], AUTO_VERSION, [mdw@distorted.org.uk])
31AC_CONFIG_SRCDIR([lib/sod.h])
32AC_CONFIG_AUX_DIR([config])
33AM_INIT_AUTOMAKE([foreign])
34mdw_SILENT_RULES
35
36AC_PROG_CC
37AM_PROG_LIBTOOL
38AX_CFLAGS_WARN_ALL
39mdw_LIBTOOL_VERSION_INFO
40
41dnl--------------------------------------------------------------------------
42dnl Common Lisp things.
43
44AC_ARG_WITH([lisp-system],
45 [AS_HELP_STRING([--with-lisp-system=SYSTEMS],
46 [preference order of cl-launch Lisp systems])],
47 [], [with_lisp_system="sbcl clisp"])
48
49AC_CHECK_PROGS([CL_LAUNCH], [cl-launch], [not-found])
50case "$CL_LAUNCH" in
51 not-found) AC_MSG_ERROR([\`cl-launch' not found]) ;;
52esac
53
54AC_MSG_CHECKING([for best choice of Lisp system])
55if ! LISPSYS=$($CL_LAUNCH -l "$with_lisp_system" \
56 -ip '(string-downcase (lisp-implementation-type))'); then
57 AC_MSG_ERROR([cl-launch didn't like any Lisp system])
58fi
59AC_SUBST([LISPSYS])
60AC_MSG_RESULT([$LISPSYS])
61
62AC_MSG_CHECKING([FASL file extension])
5e6bcea3 63fasl=$($CL_LAUNCH -l $LISPSYS -ip \
97a9a385 64 '(pathname-type (compile-file-pathname "foo.lisp"))')
5e6bcea3
MW
65AC_SUBST([fasl])
66AC_MSG_RESULT([.$fasl])
97a9a385
MW
67
68AC_ARG_WITH([lisp-source-dir],
69 [AS_HELP_STRING([--with-lisp-source-dir=DIR],
70 [where to install Common Lisp source files])],
71 [], [with_lisp_source_dir='${datadir}/common-lisp/source'])
72AC_ARG_WITH([lisp-system-dir],
73 [AS_HELP_STRING([--with-lisp-system-dir=DIR],
74 [where to install ASDF system links])],
75 [], [with_lisp_system_dir='${datadir}/common-lisp/systems'])
76AC_SUBST([lispsrcdir], [$with_lisp_source_dir])
77AC_SUBST([lispsysdir], [$with_lisp_system_dir])
78
79dnl--------------------------------------------------------------------------
80dnl Output.
81
8d1d7d3e 82AC_CONFIG_FILES([Makefile src/Makefile lib/Makefile test/Makefile])
97a9a385
MW
83AC_OUTPUT
84
85dnl----- That's all, folks --------------------------------------------------