Commit 632f4ed1 authored by Jiří Techet's avatar Jiří Techet

Merge branch 'autotools_remove'

parents b5ffed6a b2e9bcd7
Pipeline #77211 passed with stages
in 6 minutes and 51 seconds
# prefix the meson build directory with _ to get it ignored
_*
Makefile
Makefile.in
aclocal.m4
autom4te.cache
*.pc
.deps
.libs
*.o
*.lo
*.la
*.stamp
*.gir
*.vapi
*.typelib
*.gi
*~
*#*
*.sw?
*.pyc
champlain-gtk/champlain-gtk-marshal.c
champlain-gtk/champlain-gtk-marshal.h
champlain-gtk/stamp-marshal
champlain-gtk/champlain-gtk-enum-types.c
champlain-gtk/champlain-gtk-enum-types.h
champlain-gtk/stamp-enum-types
champlain/champlain-marshal.c
champlain/champlain-marshal.h
champlain/stamp-marshal
champlain/champlain-enum-types.c
champlain/champlain-enum-types.h
champlain/stamp-enum-types
champlain/champlain-version.h
champlain/champlain-features.h
compile
config.guess
config.h
config.h.in
config.log
config.status
config.sub
configure
demos/animated-marker
demos/launcher
demos/launcher-gtk
demos/polygons
demos/url-marker
demos/local-rendering
demos/minimal
demos/minimal-gtk
demos/create-destroy-test
demos/launcher-vala
demos/launcher-vala.c
demos/markers-vala.c
depcomp
compile
docs/reference/version.xml
docs/reference/champlain-undeclared.txt
docs/reference/champlain-undocumented.txt
docs/reference/champlain-unused.txt
docs/reference/champlain.args
docs/reference/champlain.hierarchy
docs/reference/champlain.interfaces
docs/reference/champlain.prerequisites
docs/reference/champlain.signals
docs/reference/champlain-decl-list.txt
docs/reference/champlain-decl.txt
docs/reference/champlain-overrides.txt
docs/reference/champlain-types.txt
docs/reference/html/*.*
docs/reference/tmpl/*.*
docs/reference/xml/*.*
gtk-doc.make
install-sh
libtool
ltmain.sh
missing
stamp-h1
tags
INSTALL
m4/libtool.m4
m4/ltoptions.m4
m4/ltsugar.m4
m4/ltversion.m4
m4/lt~obsolete.m4
m4/gtk-doc.m4
Use 'git log' on the repo cloned from https://gitlab.gnome.org/GNOME/libchamplain
Jiří Techet <techet@gmail.com>
SUBDIRS = build champlain
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
pcfiles = champlain-@CHAMPLAIN_API_VERSION@.pc
other_pcfiles = champlain-@CHAMPLAIN_API_VERSION@-uninstalled.pc
if ENABLE_GTK
SUBDIRS += champlain-gtk
pcfiles += champlain-gtk-@CHAMPLAIN_API_VERSION@.pc
other_pcfiles += champlain-gtk-@CHAMPLAIN_API_VERSION@-uninstalled.pc
endif
pkgconfig_DATA = $(pcfiles)
pkgconfigdir = $(libdir)/pkgconfig
DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc --enable-gtk --enable-introspection --enable-vala-demos --disable-memphis
EXTRA_DIST = \
README.md \
champlain-gtk.pc.in \
champlain-gtk-uninstalled.pc.in \
champlain.pc.in \
champlain-uninstalled.pc.in
DISTCLEANFILES = $(pcfiles) $(other_pcfiles)
all: $(other_pcfiles)
# Have the demos build at the end as they depend on optional parts
SUBDIRS += docs demos
See README.md
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
PKG_NAME="libchamplain"
(test -f $srcdir/configure.ac) || {
echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
echo " top-level $PKG_NAME directory"
exit 1
}
which gnome-autogen.sh || {
echo "You need to install gnome-common module and make"
echo "sure the gnome-autogen.sh script is in your \$PATH."
exit 1
}
. gnome-autogen.sh
EXTRA_DIST = \
Makefile.am.marshal \
Makefile.am.enums
# Rules for generating enumeration types using glib-mkenums
#
# Define:
# glib_enum_h = header template file
# glib_enum_c = source template file
# glib_enum_headers = list of headers to parse
#
# before including Makefile.am.enums. You will also need to have
# the following targets already defined:
#
# CLEANFILES
# DISTCLEANFILES
# BUILT_SOURCES
# EXTRA_DIST
#
# Author: Emmanuele Bassi <ebassi@linux.intel.com>
enum_tmpl_h=$(glib_enum_h:.h=.h.in)
enum_tmpl_c=$(glib_enum_c:.c=.c.in)
CLEANFILES += stamp-enum-types
DISTCLEANFILES += $(glib_enum_h) $(glib_enum_c)
BUILT_SOURCES += $(glib_enum_h) $(glib_enum_c)
EXTRA_DIST += $(srcdir)/$(enum_tmpl_h) $(srcdir)/$(enum_tmpl_c)
stamp-enum-types: $(glib_enum_headers) $(srcdir)/$(enum_tmpl_h)
$(AM_V_GEN) $(GLIB_MKENUMS) \
--template $(srcdir)/$(enum_tmpl_h) \
$(glib_enum_headers) > xgen-eh \
&& (cmp -s xgen-eh $(glib_enum_h) || cp -f xgen-eh $(glib_enum_h)) \
&& rm -f xgen-eh \
&& echo timestamp > $(@F)
$(glib_enum_h): stamp-enum-types
@true
$(glib_enum_c): $(glib_enum_h) $(srcdir)/$(enum_tmpl_c)
$(AM_V_GEN) $(GLIB_MKENUMS) \
--template $(srcdir)/$(enum_tmpl_c) \
$(glib_enum_headers) > xgen-ec \
&& cp -f xgen-ec $(glib_enum_c) \
&& rm -f xgen-ec
# Rules for generating marshal files using glib-genmarshal
#
# Define:
# glib_marshal_list = marshal list file
# glib_marshal_prefix = prefix for marshal functions
#
# before including Makefile.am.marshal. You will also need to have
# the following targets already defined:
#
# CLEANFILES
# DISTCLEANFILES
# BUILT_SOURCES
# EXTRA_DIST
#
# Author: Emmanuele Bassi <ebassi@linux.intel.com>
marshal_h = $(glib_marshal_list:.list=.h)
marshal_c = $(glib_marshal_list:.list=.c)
CLEANFILES += stamp-marshal
DISTCLEANFILES += $(marshal_h) $(marshal_c)
BUILT_SOURCES += $(marshal_h) $(marshal_c)
EXTRA_DIST += $(srcdir)/$(glib_marshal_list)
stamp-marshal: $(glib_marshal_list)
$(AM_V_GEN)$(GLIB_GENMARSHAL) \
--prefix=$(glib_marshal_prefix) \
--header \
$(srcdir)/$(glib_marshal_list) > xgen-mh \
&& (cmp -s xgen-mh $(marshal_h) || cp -f xgen-mh $(marshal_h)) \
&& rm -f xgen-mh \
&& echo timestamp > $(@F)
$(marshal_h): stamp-marshal
@true
$(marshal_c): $(marshal_h)
$(AM_V_GEN)(echo "#include \"$(marshal_h)\"" ; \
$(GLIB_GENMARSHAL) \
--prefix=$(glib_marshal_prefix) \
--body \
$(srcdir)/$(glib_marshal_list)) > xgen-mc \
&& cp xgen-mc $(marshal_c) \
&& rm -f xgen-mc
prefix=
exec_prefix=
abs_top_srcdir=@abs_top_srcdir@
abs_top_builddir=@abs_top_builddir@
Name: libchamplain-gtk (uninstalled copy)
Description: Gtk+ Widget wrapper for libchamplain
Version: @VERSION@
Libs: ${abs_top_builddir}/champlain-gtk/libchamplain-gtk-@CHAMPLAIN_API_VERSION@.la
Cflags: -I${abs_top_srcdir} -I${abs_top_builddir}
Requires: champlain-@CHAMPLAIN_API_VERSION@-uninstalled clutter-gtk-1.0 gtk+-3.0
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: libchamplain-gtk
Description: Gtk+ Widget wrapper for libchamplain
Version: @VERSION@
Libs: -L${libdir} -lchamplain-gtk-@CHAMPLAIN_API_VERSION@
Cflags: -I${includedir}/libchamplain-gtk-@CHAMPLAIN_API_VERSION@
Requires: clutter-gtk-1.0 champlain-@CHAMPLAIN_API_VERSION@ gtk+-3.0
BUILT_SOURCES =
CLEANFILES =
DISTCLEANFILES =
EXTRA_DIST =
libchamplain_gtk_headers_public = \
$(srcdir)/gtk-champlain-embed.h \
$(srcdir)/champlain-gtk.h
libchamplain_gtk_sources = \
gtk-champlain-embed.c
libchamplain_gtk_@CHAMPLAIN_API_VERSION@_la_SOURCES = \
$(libchamplain_gtk_headers_public) \
$(libchamplain_gtk_sources)
libchamplain_gtk_@CHAMPLAIN_API_VERSION@_la_LIBADD = \
$(GTK_LIBS) \
$(top_builddir)/champlain/libchamplain-@CHAMPLAIN_API_VERSION@.la
libchamplain_gtk_@CHAMPLAIN_API_VERSION@_la_LDFLAGS= \
-version-info $(LIBRARY_VERSION) \
-no-undefined \
-export-symbols-regex ^gtk_champlain_.*
AM_CPPFLAGS = $(DEPS_CFLAGS) $(GTK_CFLAGS) $(WARN_CFLAGS) -I$(top_srcdir) -DCHAMPLAIN_GTK_COMPILATION
lib_LTLIBRARIES = libchamplain-gtk-@CHAMPLAIN_API_VERSION@.la
libchamplain_gtkdir=$(includedir)/libchamplain-gtk-@CHAMPLAIN_API_VERSION@/champlain-gtk
libchamplain_gtk_HEADERS = $(libchamplain_gtk_headers_public)
# Make the g-ir-scanner to find the not yet installed pkg-config files.
PKG_CONFIG_PATH := $(top_builddir):$(PKG_CONFIG_PATH)
if HAVE_INTROSPECTION
-include $(INTROSPECTION_MAKEFILE)
INTROSPECTION_GIRS =
INTROSPECTION_SCANNER_ARGS = --warn-all --add-include-path=$(top_builddir)/champlain
INTROSPECTION_COMPILER_ARGS = --includedir=$(top_builddir)/champlain
introspection_sources = $(libchamplain_gtk_@CHAMPLAIN_API_VERSION@_la_SOURCES)
GtkChamplain-@CHAMPLAIN_API_VERSION@.gir: libchamplain-gtk-@CHAMPLAIN_API_VERSION@.la
GtkChamplain_@CHAMPLAIN_API_VERSION_NORM@_gir_NAMESPACE = GtkChamplain
GtkChamplain_@CHAMPLAIN_API_VERSION_NORM@_gir_VERSION = @CHAMPLAIN_API_VERSION@
GtkChamplain_@CHAMPLAIN_API_VERSION_NORM@_gir_LIBS = libchamplain-gtk-@CHAMPLAIN_API_VERSION@.la
GtkChamplain_@CHAMPLAIN_API_VERSION_NORM@_gir_PACKAGES = gobject-2.0 gtk+-3.0 pangocairo
GtkChamplain_@CHAMPLAIN_API_VERSION_NORM@_gir_FILES = $(introspection_sources)
GtkChamplain_@CHAMPLAIN_API_VERSION_NORM@_gir_INCLUDES = Clutter-1.0 Gtk-3.0
GtkChamplain_@CHAMPLAIN_API_VERSION_NORM@_gir_EXPORT_PACKAGES = champlain-gtk-@CHAMPLAIN_API_VERSION@
GtkChamplain_@CHAMPLAIN_API_VERSION_NORM@_gir_SCANNERFLAGS = \
--library-path=$(top_builddir)/champlain \
--identifier-prefix=GtkChamplain \
--symbol-prefix=gtk_champlain \
--c-include="champlain-gtk/champlain-gtk.h" \
--include-uninstalled=$(top_builddir)/champlain/Champlain-@CHAMPLAIN_API_VERSION@.gir
GtkChamplain_@CHAMPLAIN_API_VERSION_NORM@_gir_CFLAGS = \
$(GTK_CFLAGS) $(DEPS_CFLAGS) \
-I$(top_srcdir) -I$(top_builddir)\
-DCHAMPLAIN_COMPILATION -DCHAMPLAIN_GTK_COMPILATION
INTROSPECTION_GIRS += GtkChamplain-@CHAMPLAIN_API_VERSION@.gir
girdir = $(datadir)/gir-1.0
gir_DATA = $(INTROSPECTION_GIRS)
typelibdir = $(libdir)/girepository-1.0
typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
CLEANFILES += $(gir_DATA) $(typelib_DATA)
endif
if ENABLE_VALA
vapidir = $(datadir)/vala/vapi
vapi_DATA = champlain-gtk-@CHAMPLAIN_API_VERSION@.vapi
CLEANFILES += $(vapi_DATA)
champlain-gtk-@CHAMPLAIN_API_VERSION@.vapi: GtkChamplain-@CHAMPLAIN_API_VERSION@.gir
$(AM_V_GEN) ( $(VAPIGEN) --library champlain-gtk-@CHAMPLAIN_API_VERSION@ --vapidir=$(top_builddir)/champlain --pkg champlain-@CHAMPLAIN_API_VERSION@ --pkg clutter-gtk-1.0 --pkg cogl-pango-1.0 --pkg gtk+-3.0 --pkg atk --pkg pangocairo --girdir=$(top_builddir)/champlain $(builddir)/GtkChamplain-@CHAMPLAIN_API_VERSION@.gir )
endif
prefix=
exec_prefix=
abs_top_srcdir=@abs_top_srcdir@
abs_top_builddir=@abs_top_builddir@
Name: libchamplain (uninstalled copy)
Description: Map View for Clutter
Version: @VERSION@
Libs: ${abs_top_builddir}/champlain/libchamplain-@CHAMPLAIN_API_VERSION@.la
Cflags: -I${abs_top_srcdir} -I${abs_top_builddir}
Requires: gobject-2.0 glib-2.0 clutter-1.0
Requires.private: gdk-3.0 gio-2.0 cairo sqlite3 libsoup-2.4
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: libchamplain
Description: Map View for Clutter
Version: @VERSION@
Libs: -L${libdir} -lchamplain-@CHAMPLAIN_API_VERSION@
Cflags: -I${includedir}/libchamplain-@CHAMPLAIN_API_VERSION@
Requires: gobject-2.0 glib-2.0 clutter-1.0
Requires.private: gdk-3.0 gio-2.0 cairo sqlite3 libsoup-2.4
BUILT_SOURCES = champlain-version.h
CLEANFILES = $(BUILT_SOURCES)
DISTCLEANFILES =
EXTRA_DIST = champlain-version.h.in
if ENABLE_MEMPHIS
memphis_headers = \
$(srcdir)/champlain-memphis-renderer.h
endif
libchamplain_headers_public = \
$(memphis_headers) \
champlain-version.h \
$(srcdir)/champlain.h \
$(srcdir)/champlain-defines.h \
$(srcdir)/champlain-point.h \
$(srcdir)/champlain-custom-marker.h \
$(srcdir)/champlain-view.h \
$(srcdir)/champlain-layer.h \
$(srcdir)/champlain-marker-layer.h \
$(srcdir)/champlain-path-layer.h \
$(srcdir)/champlain-location.h \
$(srcdir)/champlain-coordinate.h \
$(srcdir)/champlain-marker.h \
$(srcdir)/champlain-label.h \
$(srcdir)/champlain-scale.h \
$(srcdir)/champlain-license.h \
$(srcdir)/champlain-tile.h \
$(srcdir)/champlain-map-source.h \
$(srcdir)/champlain-map-source-chain.h \
$(srcdir)/champlain-tile-source.h \
$(srcdir)/champlain-tile-cache.h \
$(srcdir)/champlain-memory-cache.h \
$(srcdir)/champlain-network-tile-source.h \
$(srcdir)/champlain-file-cache.h \
$(srcdir)/champlain-map-source-factory.h \
$(srcdir)/champlain-map-source-desc.h \
$(srcdir)/champlain-renderer.h \
$(srcdir)/champlain-image-renderer.h \
$(srcdir)/champlain-error-tile-renderer.h \
$(srcdir)/champlain-file-tile-source.h \
$(srcdir)/champlain-null-tile-source.h \
$(srcdir)/champlain-network-bbox-tile-source.h \
$(srcdir)/champlain-adjustment.h \
$(srcdir)/champlain-kinetic-scroll-view.h \
$(srcdir)/champlain-viewport.h \
$(srcdir)/champlain-bounding-box.h \
$(srcdir)/champlain-exportable.h
libchamplain_headers_private = \
$(srcdir)/champlain-debug.h \
$(srcdir)/champlain-private.h
if ENABLE_MEMPHIS
memphis_sources = \
champlain-memphis-renderer.c
endif
libchamplain_sources = \
$(memphis_sources) \
champlain-debug.c \
champlain-view.c \
champlain-layer.c \
champlain-marker-layer.c \
champlain-path-layer.c \
champlain-location.c \
champlain-coordinate.c \
champlain-marker.c \
champlain-label.c \
champlain-scale.c \
champlain-license.c \
champlain-tile.c \
champlain-map-source.c \
champlain-map-source-chain.c \
champlain-tile-source.c \
champlain-tile-cache.c \
champlain-memory-cache.c \
champlain-network-tile-source.c \
champlain-file-cache.c \
champlain-map-source-factory.c \
champlain-map-source-desc.c \
champlain-point.c \
champlain-custom-marker.c \
champlain-renderer.c \
champlain-image-renderer.c \
champlain-error-tile-renderer.c \
champlain-file-tile-source.c \
champlain-null-tile-source.c \
champlain-network-bbox-tile-source.c \
champlain-adjustment.c \
champlain-kinetic-scroll-view.c \
champlain-viewport.c \
champlain-bounding-box.c \
champlain-exportable.c
champlain-features.h: $(top_builddir)/config.status
$(AM_V_GEN) ( cd $(top_builddir) && ./config.status champlain/$@ )
BUILT_SOURCES += champlain-features.h
CLEANFILES += champlain-features.h
# glib-mkenums rules
glib_enum_h = champlain-enum-types.h
glib_enum_c = champlain-enum-types.c
glib_enum_headers = $(filter-out champlain-version.h,$(libchamplain_headers_public))
include $(top_srcdir)/build/Makefile.am.enums
libchamplain_headers_built = \
champlain-features.h \
champlain-enum-types.h
libchamplain_sources_built = \
champlain-enum-types.c
libchamplain_@CHAMPLAIN_API_VERSION@_la_SOURCES = \
$(libchamplain_headers_public) \
$(libchamplain_headers_private) \
$(libchamplain_sources)
nodist_libchamplain_@CHAMPLAIN_API_VERSION@_la_SOURCES = \
$(libchamplain_headers_built) \
$(libchamplain_sources_built)
libchamplain_@CHAMPLAIN_API_VERSION@_la_LIBADD = $(DEPS_LIBS) $(MEMPHIS_LIBS) $(LIBM)
libchamplain_@CHAMPLAIN_API_VERSION@_la_LDFLAGS = \
-version-info $(LIBRARY_VERSION)\
-no-undefined \
-export-symbols-regex ^champlain_.*
AM_CPPFLAGS = \
$(DEPS_CFLAGS) \
$(MEMPHIS_CFLAGS) \
-DDATADIR=\""$(datadir)"\" \
-I$(top_srcdir) \
-DCHAMPLAIN_COMPILATION \
-DG_LOG_DOMAIN=\"$(PACKAGE_NAME)\" \
$(WARN_CFLAGS)
lib_LTLIBRARIES = libchamplain-@CHAMPLAIN_API_VERSION@.la
libchamplaindir = $(includedir)/libchamplain-@CHAMPLAIN_API_VERSION@/champlain
libchamplain_HEADERS = $(libchamplain_headers_public)
nodist_libchamplain_HEADERS = $(libchamplain_headers_built)
if HAVE_INTROSPECTION
-include $(INTROSPECTION_MAKEFILE)
INTROSPECTION_GIRS =
INTROSPECTION_SCANNER_ARGS = --warn-all
INTROSPECTION_COMPILER_ARGS =
introspection_sources = \
$(filter-out $(srcdir)/champlain-version.h,$(libchamplain_headers_public)) \
champlain-enum-types.h \
$(libchamplain_sources)
if ENABLE_MEMPHIS
memphis_gir_include = Memphis-0.2
memphis_package = champlain-memphis-@CHAMPLAIN_API_VERSION@
endif
Champlain-@CHAMPLAIN_API_VERSION@.gir: libchamplain-@CHAMPLAIN_API_VERSION@.la
Champlain_@CHAMPLAIN_API_VERSION_NORM@_gir_NAMESPACE = Champlain
Champlain_@CHAMPLAIN_API_VERSION_NORM@_gir_VERSION = @CHAMPLAIN_API_VERSION@
Champlain_@CHAMPLAIN_API_VERSION_NORM@_gir_LIBS = libchamplain-@CHAMPLAIN_API_VERSION@.la
Champlain_@CHAMPLAIN_API_VERSION_NORM@_gir_PACKAGES = gobject-2.0 cogl-pango-1.0
Champlain_@CHAMPLAIN_API_VERSION_NORM@_gir_FILES = $(introspection_sources)
Champlain_@CHAMPLAIN_API_VERSION_NORM@_gir_INCLUDES = Clutter-1.0 $(memphis_gir_include)
Champlain_@CHAMPLAIN_API_VERSION_NORM@_gir_EXPORT_PACKAGES = champlain-@CHAMPLAIN_API_VERSION@ $(memphis_package)
Champlain_@CHAMPLAIN_API_VERSION_NORM@_gir_SCANNERFLAGS = --identifier-prefix=Champlain --symbol-prefix=champlain --c-include="champlain/champlain.h"
Champlain_@CHAMPLAIN_API_VERSION_NORM@_gir_CFLAGS = \
$(DEPS_CFLAGS) $(MEMPHIS_CFLAGS) \
-I$(top_srcdir) -I$(top_builddir) \
-DCHAMPLAIN_COMPILATION
INTROSPECTION_GIRS += Champlain-@CHAMPLAIN_API_VERSION@.gir
girdir = $(datadir)/gir-1.0
gir_DATA = $(INTROSPECTION_GIRS)
typelibdir = $(libdir)/girepository-1.0
typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
CLEANFILES += $(gir_DATA) $(typelib_DATA)
endif
if ENABLE_VALA
vapidir = $(datadir)/vala/vapi
vapi_DATA = champlain-@CHAMPLAIN_API_VERSION@.vapi
CLEANFILES += $(vapi_DATA)
champlain-@CHAMPLAIN_API_VERSION@.vapi: Champlain-@CHAMPLAIN_API_VERSION@.gir
$(AM_V_GEN) ( $(VAPIGEN) --library champlain-@CHAMPLAIN_API_VERSION@ --pkg clutter-1.0 --pkg cogl-pango-1.0 --pkg atk --pkg pangocairo $(builddir)/Champlain-@CHAMPLAIN_API_VERSION@.gir )
endif
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
m4_define([champlain_major_version], [0])
m4_define([champlain_minor_version], [12])
m4_define([champlain_micro_version], [20])
m4_define([champlain_version],
[champlain_major_version.champlain_minor_version.champlain_micro_version])
m4_define([champlain_minor_api_version], [m4_eval(champlain_minor_version + champlain_minor_version%2)])
m4_define([champlain_api_version],
[champlain_major_version.champlain_minor_api_version])
AC_PREREQ([2.64])
AC_INIT([libchamplain],
[champlain_version],
[https://gitlab.gnome.org/GNOME/libchamplain/issues],
[libchamplain],
[https://wiki.gnome.org/Projects/libchamplain])
AC_CONFIG_SRCDIR([champlain/champlain.h])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([-Wno-portability no-dist-gzip dist-xz])
LT_PREREQ([2.2.6])
LT_INIT([dlopen])
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
# Checks for programs.
AC_PROG_CC
AM_PROG_CC_C_O
# Before making a release, the LIBRARY_VERSION string should be modified.
# The string is of the form C:R:A.
# - If interfaces have been changed or added, but binary compatibility has
# been preserved, change to C+1:0:A+1
# - If binary compatibility has been broken (eg removed or changed interfaces)
# change to C+1:0:0
# - If the interface is the same as the previous version, change to C:R+1:A
LIBRARY_VERSION=11:9:11
CHAMPLAIN_API_VERSION=champlain_api_version
CHAMPLAIN_API_VERSION_NORM=champlain_major_version[_]champlain_minor_api_version
CHAMPLAIN_MAJOR_VERSION=champlain_major_version
CHAMPLAIN_MINOR_VERSION=champlain_minor_version
CHAMPLAIN_MICRO_VERSION=champlain_micro_version
CHAMPLAIN_VERSION=champlain_version
CHAMPLAIN_MAJORMINOR=champlain_api_version
AC_SUBST(CHAMPLAIN_API_VERSION)
AC_SUBST(CHAMPLAIN_API_VERSION_NORM)
AC_SUBST(CHAMPLAIN_MAJOR_VERSION)
AC_SUBST(CHAMPLAIN_MINOR_VERSION)
AC_SUBST(CHAMPLAIN_MICRO_VERSION)
AC_SUBST(CHAMPLAIN_VERSION)
AC_SUBST(CHAMPLAIN_MAJORMINOR)
AC_SUBST(LIBRARY_VERSION)
# Checks for libraries.
AC_CHECK_LIBM
AC_SUBST(LIBM)
PKG_CHECK_MODULES(DEPS,
[ glib-2.0 >= 2.38
gobject-2.0 >= 2.38
gio-2.0 >= 2.38
gdk-3.0 >= 3.0
clutter-1.0 >= 1.24
cairo >= 1.4
sqlite3 >= 3.0
libsoup-2.4 >= 2.42
]
)
AC_SUBST(DEPS_CFLAGS)
AC_SUBST(DEPS_LIBS)
AM_PATH_GLIB_2_0(2.38.0,,gobject gthread gio)
# check for gtk-doc
GTK_DOC_CHECK(1.15)
GNOME_COMPILE_WARNINGS([maximum])
GNOME_MAINTAINER_MODE_DEFINES
GOBJECT_INTROSPECTION_CHECK([0.6.3])
# -----------------------------------------------------------
# Enable debug
# -----------------------------------------------------------
AC_ARG_ENABLE(debug,
AS_HELP_STRING([--disable-debug],[compile without debug code]),
enable_debug=$enableval, enable_debug=yes )
if test x$enable_debug = xyes; then
AC_DEFINE(ENABLE_DEBUG, [], [Enable debug code])
fi
# -----------------------------------------------------------
# Enable gtk
# -----------------------------------------------------------
AC_ARG_ENABLE(gtk,
AS_HELP_STRING([--disable-gtk],[Do not compile Gtk+ embedded view]),
enable_gtk=$enableval, enable_gtk=yes )
if test x$enable_gtk = xyes; then
PKG_CHECK_MODULES(GTK,
[ gtk+-3.0 >= 3.0
clutter-gtk-1.0 >= 1.0
]
)
AC_SUBST(GTK_CFLAGS)
AC_SUBST(GTK_LIBS)
fi
AM_CONDITIONAL(ENABLE_GTK, test "x$enable_gtk" = "xyes")
# -----------------------------------------------------------
# Enable memphis
# -----------------------------------------------------------
AC_ARG_ENABLE(memphis,
AS_HELP_STRING([--disable-memphis],[Disable support of local rendering using libmemphis]),
enable_memphis=$enableval, enable_memphis=no)
if test "x$enable_memphis" = "xyes"; then
PKG_CHECK_MODULES(MEMPHIS, [memphis-0.2 >= 0.2.1])
fi
AC_SUBST(MEMPHIS_CFLAGS)
AC_SUBST(MEMPHIS_LIBS)
AM_CONDITIONAL(ENABLE_MEMPHIS, test "x$enable_memphis" = "xyes")
# -----------------------------------------------------------
# Enable vala bindings (default to "no")
# -----------------------------------------------------------
AC_ARG_ENABLE(vala,
AS_HELP_STRING([--enable-vala], [Build Vala bindings [default=no]]),
enable_vala=$enableval, enable_vala=no )
if test "x$enable_vala" = "xyes"; then
if test "x$enable_introspection" = "xno"; then
AC_MSG_ERROR([Cannot build vala bindings without gobject introspection])
fi
AC_PATH_PROG(VAPIGEN, vapigen, vapigen)
AC_SUBST(VAPIGEN)
fi
AM_CONDITIONAL(ENABLE_VALA, test "x$enable_vala" = "xyes")
# -----------------------------------------------------------
# Enable vala demos (default to "no")
# -----------------------------------------------------------
AC_ARG_ENABLE(vala-demos,
AS_HELP_STRING([--enable-vala-demos],[Build vala demos [default=no]]),
enable_vala_demos=$enableval, enable_vala_demos=no )
if test "x$enable_vala_demos" = "xyes"; then
AM_PROG_VALAC([0.11.0])
if test "x$VALAC" = "x" ; then
AC_MSG_ERROR([Cannot find the "valac" compiler in your PATH])
fi
fi
AM_CONDITIONAL(ENABLE_VALA_DEMOS, test "x$enable_vala_demos" = "xyes")