summaryrefslogtreecommitdiff
path: root/configure.ac
blob: 21c3198fd16c03a8ab4fd50bb393480ddcdd5910 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# This file is processed by autoconf to create a configure script
AC_INIT([gnome-maps],
        [3.19.3],
        [https://bugzilla.gnome.org/enter_bug.cgi?product=gnome-maps],
        [gnome-maps])

AC_CONFIG_HEADERS([config/config.h])
AC_CONFIG_SRCDIR([src/main.js])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([config])
AC_PROG_LN_S

m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])

AC_CANONICAL_TARGET

AM_INIT_AUTOMAKE([1.10 no-define foreign dist-xz no-dist-gzip])
AM_MAINTAINER_MODE([enable])

GETTEXT_PACKAGE=AC_PACKAGE_NAME
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[The name of the gettext domain])
IT_PROG_INTLTOOL(0.40.0)
PKG_PROG_PKG_CONFIG([0.22])

GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
AC_SUBST(GLIB_MKENUMS)

GIO_MIN_VERSION=2.39.3
GJS_MIN_VERSION=1.43.3
GOBJECT_INTROSPECTION_MIN_VERSION=0.10.1
GTK_MIN_VERSION=3.15.9
GEOCLUE_MIN_VERSION=0.12.99

PKG_CHECK_MODULES(GNOME_MAPS, [
    gio-2.0                      >= $GIO_MIN_VERSION
    gjs-1.0                      >= $GJS_MIN_VERSION
    gobject-introspection-1.0    >= $GOBJECT_INTROSPECTION_MIN_VERSION
    gtk+-3.0                     >= $GTK_MIN_VERSION
    geoclue-2.0                  >= $GEOCLUE_MIN_VERSION
])

FOLKS_MIN_VERSION=0.10.0
GEE_MIN_VERSION=0.16.0
GEOCODE_MIN_VERSION=3.15.2
CHAMPLAIN_MIN_VERSION=0.12.9

PKG_CHECK_MODULES(GNOME_MAPS_LIB, [
    gee-0.8                      >= $GEE_MIN_VERSION
    folks                        >= $FOLKS_MIN_VERSION
    geocode-glib-1.0             >= $GEOCODE_MIN_VERSION
    champlain-0.12               >= $CHAMPLAIN_MIN_VERSION
    libxml-2.0
    rest-0.7
])
AC_SUBST(GNOME_MAPS_LIB_CFLAGS)
AC_SUBST(GNOME_MAPS_LIB_LIBS)

AC_PROG_LIBTOOL

GLIB_GSETTINGS

AC_PATH_PROG([GJS],[gjs])

GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable glib_compile_resources gio-2.0`
AC_SUBST(GLIB_COMPILE_RESOURCES)

GOBJECT_INTROSPECTION_CHECK([0.6.3])

AC_CONFIG_FILES([
    Makefile
    lib/Makefile
    src/Makefile
    data/Makefile
    data/icons/Makefile
    po/Makefile.in
])
AC_OUTPUT