xref: /freebsd/contrib/lutok/configure.ac (revision 4d846d260e2b9a3d4d0a701462568268cbfe7a5b)
1dnl Copyright 2011 Google Inc.
2dnl All rights reserved.
3dnl
4dnl Redistribution and use in source and binary forms, with or without
5dnl modification, are permitted provided that the following conditions are
6dnl met:
7dnl
8dnl * Redistributions of source code must retain the above copyright
9dnl   notice, this list of conditions and the following disclaimer.
10dnl * Redistributions in binary form must reproduce the above copyright
11dnl   notice, this list of conditions and the following disclaimer in the
12dnl   documentation and/or other materials provided with the distribution.
13dnl * Neither the name of Google Inc. nor the names of its contributors
14dnl   may be used to endorse or promote products derived from this software
15dnl   without specific prior written permission.
16dnl
17dnl THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18dnl "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19dnl LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20dnl A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21dnl OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22dnl SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23dnl LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24dnl DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25dnl THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26dnl (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27dnl OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
29AC_INIT([Lutok], [0.4],
30        [lutok-discuss@googlegroups.com], [lutok],
31        [https://github.com/jmmv/lutok/])
32AC_PREREQ([2.65])
33
34
35AC_COPYRIGHT([Copyright 2011 Google Inc.])
36AC_CONFIG_AUX_DIR([admin])
37AC_CONFIG_FILES([Doxyfile Makefile])
38AC_CONFIG_HEADERS([config.h])
39AC_CONFIG_MACRO_DIR([m4])
40AC_CONFIG_SRCDIR([state.hpp])
41
42
43AM_INIT_AUTOMAKE([1.9 check-news foreign subdir-objects -Wall])
44m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
45LT_INIT
46
47
48AC_LANG([C++])
49AC_PROG_CXX
50KYUA_REQUIRE_CXX
51KYUA_DEVELOPER_MODE([C++])
52
53
54ATF_CHECK_CXX([>= 0.15])
55ATF_CHECK_SH([>= 0.15])
56ATF_ARG_WITH
57KYUA_DOXYGEN
58KYUA_LUA
59
60
61AC_PATH_PROG([KYUA], [kyua])
62AM_CONDITIONAL([HAVE_KYUA], [test -n "${KYUA}"])
63AC_PATH_PROG([GIT], [git])
64
65
66AC_SUBST(pkgconfigdir, \${libdir}/pkgconfig)
67AC_SUBST(testsdir, \${exec_prefix}/tests/lutok)
68
69
70AC_OUTPUT
71