]> git.jsancho.org Git - guile-irrlicht.git/blob - configure.ac
A lot of things
[guile-irrlicht.git] / configure.ac
1 define(GUILE_IRRLICHT_CONFIGURE_COPYRIGHT, [[
2
3 guile-irrlicht --- GNU Guile bindings for Irrlicht Engine
4
5 Copyright (C) 2020-2021 Javier Sancho <jsf@jsancho.org>
6
7 This file is part of guile-irrlicht.
8
9 guile-irrlicht is free software; you can redistribute it and/or modify
10 it under the terms of the GNU Lesser General Public License as
11 published by the Free Software Foundation; either version 3 of the
12 License, or (at your option) any later version.
13
14 guile-irrlicht is distributed in the hope that it will be useful, but
15 WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17 General Public License for more details.
18
19 You should have received a copy of the GNU Lesser General Public
20 License along with guile-irrlicht. If not, see
21 <http://www.gnu.org/licenses/>.
22
23 ]])
24
25 AC_INIT([guile-irrlicht], [0.1], [jsf@jsancho.org])
26 AC_CONFIG_AUX_DIR([build-aux])
27 AC_CONFIG_MACRO_DIR([m4])
28 AC_COPYRIGHT(GUILE_IRRLICHT_CONFIGURE_COPYRIGHT)
29
30 AM_INIT_AUTOMAKE([color-tests subdir-objects -Wall -Wno-portability foreign])
31 AM_SILENT_RULES([yes])
32 AM_PROG_AR
33 AC_PROG_CXX
34 LT_INIT
35
36 # Check for 'guile'
37 PKG_CHECK_MODULES([GUILE], [guile-3.0],, [
38         PKG_CHECK_MODULES([GUILE], [guile-2.2])
39 ])
40 GUILE_SITE_DIR
41
42 # Check for 'irrlicht'
43 AC_CHECK_LIB(
44         [Irrlicht],
45         [createDevice],
46         [],
47         AC_MSG_ERROR([Missing Irrlicht lib. Try option --with-irrlicht-lib])
48 )
49
50 AC_CONFIG_FILES([Makefile])
51 AC_CONFIG_FILES([pre-inst-env], [chmod +x pre-inst-env])
52
53 AC_OUTPUT