forked from nzjrs/osm-gps-map
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigure.ac
74 lines (62 loc) · 1.79 KB
/
configure.ac
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
AC_PREREQ([2.62])
AC_INIT([osm-gps-map],
[0.7.1],
[http://github.com/nzjrs/osm-gps-map/issues],
[osm-gps-map])
AM_INIT_AUTOMAKE([1.10])
AC_CONFIG_HEADER([config.h])
AC_CONFIG_SRCDIR([src/osm-gps-map.h])
AC_CONFIG_MACRO_DIR([m4])
AM_MAINTAINER_MODE
AM_PROG_CC_C_O
AC_LIBTOOL_WIN32_DLL
AM_PROG_LIBTOOL
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.16])
PKG_CHECK_MODULES(GTK, [gtk+-2.0])
PKG_CHECK_MODULES(CAIRO, [cairo >= 1.6])
PKG_CHECK_MODULES(SOUP24, libsoup-2.4,
soup_ver=2.4, [
PKG_CHECK_MODULES(SOUP22, libsoup-2.2, [
soup_ver=2.2
AC_DEFINE(USE_LIBSOUP22, 1, Use libsoup 2.2 instead of libsoup-2.4 to download tiles)],
AC_ERROR([libsoup-2.4 (preferred) or libsoup-2.2 not found]))])
AC_MSG_CHECKING([for Win32])
case "$host" in
*-*-mingw*)
os_win32=yes
;;
*)
os_win32=no
;;
esac
AC_MSG_RESULT([$os_win32])
AM_CONDITIONAL(OS_WIN32, [test $os_win32 = yes])
# Before making a release, the LT_VERSION_INFO 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
LT_VERSION_INFO=2:0:0
AC_SUBST(LT_VERSION_INFO)
GTK_DOC_CHECK([1.12])
GOBJECT_INTROSPECTION_CHECK([0.6.7])
GNOME_COMPILE_WARNINGS([maximum])
GNOME_MAINTAINER_MODE_DEFINES
AC_OUTPUT([
osmgpsmap.pc
Makefile
src/Makefile
docs/Makefile
examples/Makefile
docs/reference/Makefile
docs/reference/version.xml
])
echo
echo $PACKAGE v$VERSION
echo
echo Prefix............... : $prefix
echo libsoup.............. : $soup_ver
echo