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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
|
AC_PREREQ(2.52)
m4_define(gnomebt_version_major, 3)
m4_define(gnomebt_version_minor, 18)
m4_define(gnomebt_version_micro, 0)
AC_INIT([gnome-bluetooth],
[gnomebt_version_major.gnomebt_version_minor.gnomebt_version_micro],
[http://bugzilla.gnome.org/enter_bug.cgi?product=gnome-bluetooth])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR([lib/bluetooth-client.c])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([1.8 dist-xz no-dist-gzip check-news tar-ustar])
# Before making a release, the GNOMEBT_LT_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
GNOMEBT_LT_VERSION=13:1:0
AC_SUBST(GNOMEBT_LT_VERSION)
AM_MAINTAINER_MODE
# Support silent build rules, requires at least automake-1.11. Disable
# by either passing --disable-silent-rules to configure or passing V=1
# to make
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AC_LANG_C
AC_PROG_CC
AC_PROG_INSTALL
dnl Initialize libtool
AM_DISABLE_STATIC
AM_PROG_LIBTOOL
# i18n stuff
IT_PROG_INTLTOOL([0.40.0])
GETTEXT_PACKAGE=gnome-bluetooth2
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",
[The name of the gettext domain])
GLIB_GSETTINGS
AC_PATH_PROG([XMLLINT],[xmllint])
AC_CHECK_LIB([m],[sin])
dnl gtk-doc checks
GTK_DOC_CHECK(1.9)
AC_DEFINE_UNQUOTED(LOCALEDIR, "${prefix}/share/locale", [Directory for the localization files])
AC_ARG_ENABLE(desktop-update, AC_HELP_STRING([--disable-desktop-update],
[Disable desktop database update]))
if (test "$enable_desktop_update" != no); then
AC_PATH_PROG(UPDATE_DESKTOP_DATABASE, [update-desktop-database])
fi
AM_CONDITIONAL([DESKTOP_UPDATE], [test -n "$UPDATE_DESKTOP_DATABASE"])
AC_ARG_ENABLE(icon-update, AC_HELP_STRING([--disable-icon-update],
[Disable icon cache update]))
if (test "$enable_icon_update" != no); then
AC_PATH_PROG(UPDATE_ICON_CACHE, [gtk-update-icon-cache])
fi
AM_CONDITIONAL([ICON_UPDATE], [test -n "$UPDATE_ICON_CACHE"])
GTK_REQUIRED=3.12.0
GLIB_REQUIRED=2.38.0
NOTIFY_REQUIRED=0.7.0
NAUTILUS_SENDTO_REQUIRED=2.29.0
NAUTILUS_SENDTO_MAX_REQUIRED=3.7.0
dnl Requires for the sendto app
PKG_CHECK_MODULES(SENDTO,
gtk+-3.0
gio-2.0)
AC_CHECK_LIBM
AC_SUBST(LIBM)
dnl Requires for the input helper
PKG_CHECK_MODULES(INPUT, gdk-3.0 gtk+-3.0)
dnl Requires for the public library
PKG_CHECK_MODULES(LIBGNOMEBT,
gmodule-2.0
gio-unix-2.0
gtk+-3.0 >= $GTK_REQUIRED
libudev
libnotify
libcanberra-gtk3)
GDBUS_CODEGEN="gdbus-codegen"
AC_SUBST(GDBUS_CODEGEN)
GOBJECT_INTROSPECTION_CHECK([0.9.5])
GNOME_DEBUG_CHECK
GNOME_COMPILE_WARNINGS([maximum])
GNOME_CXX_WARNINGS
GNOME_MAINTAINER_MODE_DEFINES
AC_ARG_ENABLE([documentation],
AS_HELP_STRING([--enable-documentation], [enable man pages and HTML]),
[], [enable_documentation=yes])
AM_CONDITIONAL(ENABLE_DOCUMENTATION, test x$enable_documentation = xyes)
AC_OUTPUT(Makefile
gnome-bluetooth-1.0.pc
icons/Makefile
lib/Makefile
sendto/Makefile
sendto/bluetooth-sendto.desktop.in
docs/Makefile
docs/reference/Makefile
docs/reference/libgnome-bluetooth/Makefile
docs/reference/libgnome-bluetooth/version.xml
po/Makefile.in
)
echo "
Configure summary:
Compiler....................: ${CC}
Compiler Flags..............: ${CFLAGS}
Prefix......................: ${prefix}
Documentation...............: ${enable_gtk_doc}
GObject-Introspection.......: ${found_introspection}
"
|