1## Copyright (c) 2010 Openismus GmbH <http://www.openismus.com/> 2## 3## This file is part of atkmm. 4## 5## atkmm is free software: you can redistribute it and/or modify it 6## under the terms of the GNU Lesser General Public License as published 7## by the Free Software Foundation, either version 2.1 of the License, 8## or (at your option) any later version. 9## 10## atkmm is distributed in the hope that it will be useful, but 11## WITHOUT ANY WARRANTY; without even the implied warranty of 12## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13## See the GNU Lesser General Public License for more details. 14## 15## You should have received a copy of the GNU Lesser General Public License 16## along with this program. If not, see <http://www.gnu.org/licenses/>. 17 18# Although atkmm is no longer part of the gtkmm module, it still has the same 19# pkg-config name as before and is meant to be binary compatible. Thus for the 20# time being, the version number cannot be brought in line with ATK, since that 21# would break compatibility. 22AC_INIT([atkmm], [2.28.0], [https://gitlab.gnome.org/GNOME/atkmm/issues/], 23 [atkmm], [http://www.gtkmm.org/]) 24AC_PREREQ([2.59]) 25 26AC_CONFIG_SRCDIR([atk/atkmm.h]) 27AC_CONFIG_AUX_DIR([build]) 28AC_CONFIG_MACRO_DIR([build]) 29AC_CONFIG_HEADERS([build/config.h atk/atkmmconfig.h]) 30 31AM_INIT_AUTOMAKE([1.9 -Wno-portability dist-bzip2 no-define nostdinc tar-pax]) 32# Support silent build rules. 33# Disable by either passing --disable-silent-rules to configure or passing V=1 to make. 34m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) 35AM_MAINTAINER_MODE 36AC_ARG_VAR([ACLOCAL_FLAGS], [aclocal flags, e.g. -I <macro dir>]) 37 38MM_PREREQ([0.9.10]) 39MM_INIT_MODULE([atkmm-1.6]) 40 41# Copy the mm-common .pl scripts into doc/, and use them from there, 42# so we can dist them to avoid a tarball-build dependency. 43MM_CONFIG_DOCTOOL_DIR([doc]) 44 45# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html 46AC_SUBST([ATKMM_SO_VERSION], [2:0:1]) 47 48AC_PROG_CXX 49MM_AX_CXX_COMPILE_STDCXX([11], [noext], [mandatory]) 50 51AC_DISABLE_STATIC 52LT_INIT([win32-dll]) 53 54AC_SUBST([ATKMM_MODULES], ['atk >= 1.18 glibmm-2.4 >= 2.46.2']) 55PKG_CHECK_MODULES([ATKMM], [$ATKMM_MODULES]) 56 57MM_PKG_CONFIG_SUBST([GTHREAD_CFLAGS], [--cflags-only-other gthread-2.0]) 58MM_PKG_CONFIG_SUBST([GMMPROC_DIR], [--variable=gmmprocdir glibmm-2.4]) 59 60MM_ARG_DISABLE_DEPRECATED_API 61 62MM_ARG_ENABLE_DOCUMENTATION 63MM_ARG_WITH_TAGFILE_DOC([libstdc++.tag], [mm-common-libstdc++]) 64MM_ARG_WITH_TAGFILE_DOC([libsigc++-2.0.tag], [sigc++-2.0]) 65MM_ARG_WITH_TAGFILE_DOC([glibmm-2.4.tag], [glibmm-2.4]) 66 67AC_LANG([C++]) 68MM_ARG_ENABLE_WARNINGS([ATKMM_WXXFLAGS], 69 [-Wall], 70 [-pedantic -Wall -Wextra -Wformat-security -Wsuggest-override -Wshadow -Wno-long-long], 71 [G ATK GLIBMM]) 72 73AC_CONFIG_FILES([Makefile 74 codegen/Makefile 75 atk/${ATKMM_MODULE_NAME}.pc:atk/atkmm.pc.in 76 atk/${ATKMM_MODULE_NAME}-uninstalled.pc:atk/atkmm-uninstalled.pc.in 77 atk/src/Makefile 78 atk/atkmm/Makefile 79 doc/Makefile 80 doc/reference/Doxyfile 81 MSVC_NMake/atkmm/atkmm.rc]) 82 83# Copy the generated configuration headers into the MSVC project directories. 84AC_CONFIG_COMMANDS([MSVC_NMake/atkmm/atkmmconfig.h], 85 [cp -f atk/atkmmconfig.h MSVC_NMake/atkmm/atkmmconfig.h]) 86AC_OUTPUT 87