Add some new bears from Thomas Adam
[cteddy.git] / configure.ac
blobf6ae5acc489433899145179b927fd1117bc88fbf
1 dnl Copyright 2008-2009 Philip Allison <sane@not.co.uk>
3 dnl    This file is part of cteddy.
4 dnl
5 dnl    cteddy is free software: you can redistribute it and/or modify
6 dnl    it under the terms of the GNU General Public License as published by
7 dnl    the Free Software Foundation, either version 3 of the License, or
8 dnl    (at your option) any later version.
9 dnl
10 dnl    cteddy is distributed in the hope that it will be useful,
11 dnl    but WITHOUT ANY WARRANTY; without even the implied warranty of
12 dnl    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 dnl    GNU General Public License for more details.
14 dnl
15 dnl    You should have received a copy of the GNU General Public License
16 dnl    along with cteddy.  If not, see <http://www.gnu.org/licenses/>.
18 dnl # Specify autoconf version requirements
19 dnl # Not strictly necessary - but it's the version on my system,
20 dnl # so for now, we'll pretend it's the required version.
21 AC_PREREQ([2.59])
23 dnl # Initialise autoconf and automake
24 dnl # Also specify automake version requirements (again, the version used
25 dnl # development will suffice for now).
26 AC_INIT([cteddy], [0.3], [sane@not.co.uk])
27 AC_CONFIG_SRCDIR([src/cteddy.cxx])
28 AM_INIT_AUTOMAKE([1.8.5])
30 dnl # cteddy is written in C++, of course.  :)
31 AC_PROG_CXX
32 AC_PROG_CXXCPP
33 AC_LANG([C++])
35 dnl # Make config.h from config.h.in.  (`autoheader' generates the latter.)
36 AC_CONFIG_HEADERS([config.h])
38 dnl # Output the command-line options given to this script
39 AC_DEFINE_UNQUOTED([CONFIGURE_OPTS],["$ac_configure_args"],[Options given to ./configure])
41 dnl # cteddy uses GTK+ and Cairo
42 PKG_PROG_PKG_CONFIG
43 PKG_CHECK_MODULES([CTEDDY], [gtk+-2.0 >= 2.10 cairo])
45 dnl # Optional X11 session management support
46 AC_ARG_ENABLE(sm, AS_HELP_STRING([--disable-sm], [Disable X11 session management support]),
47         [
48                 if test "x$enableval" = "xyes"; then
49                         enable_sm="yes"
50                 else
51                         enable_sm="no"
52                 fi
53         ],
54         enable_sm="yes"
56 if test "x$enable_sm" = "xyes"; then
57         PKG_CHECK_MODULES([SM], [sm])
58         AC_DEFINE([__USE_SM], 1, [Define if X11 session management support is enabled])
61 dnl # All done.  Spit out the result.
62 AC_CONFIG_FILES([
63         Makefile
64         src/Makefile
65         data/Makefile
66         doc/Makefile
68 AC_OUTPUT