-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigure.ac
95 lines (74 loc) · 2.72 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
AC_PREREQ(2.52)
AC_INIT([gnome-bluetooth-applet], [3.6.0])
AC_CONFIG_SRCDIR([applet/main.c])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([1.11 foreign dist-xz no-dist-gzip 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=11:0: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-bluetooth-applet
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",
[The name of the gettext domain])
AC_DEFINE_UNQUOTED(LOCALEDIR, "${prefix}/share/locale", [Directory for the localization files])
GTK_REQUIRED=2.91.3
GLIB_REQUIRED=2.29.90
GNOME_BLUETOOTH_REQUIRED=3.8.0
NOTIFY_REQUIRED=0.7.0
dnl Requires for the applet
PKG_CHECK_MODULES(APPLET,
gmodule-export-2.0
glib-2.0 >= $GLIB_REQUIRED
gnome-bluetooth-1.0 >= $GNOME_BLUETOOTH_REQUIRED
gtk+-3.0 >= $GTK_REQUIRED
libnotify >= $NOTIFY_REQUIRED)
AC_MSG_CHECKING([for gnome-bluetooth-applet])
PKG_CHECK_EXISTS([gnome-bluetooth-1.0 >= 3.9.0],
[GNOME_BLUETOOTH_APPLET_DIR=`$PKG_CONFIG --variable=applet_libdir gnome-bluetooth-1.0`
GNOME_BLUETOOTH_APPLET_LIBS=`$PKG_CONFIG --variable=applet_libs gnome-bluetooth-1.0`
AC_SUBST([GNOME_BLUETOOTH_APPLET_LIBS],["$GNOME_BLUETOOTH_APPLET_LIBS"])
AC_SUBST([GNOME_BLUETOOTH_APPLET_DIR],["$GNOME_BLUETOOTH_APPLET_DIR"])
AC_DEFINE_UNQUOTED([GNOME_BLUETOOTH_APPLET_DIR],["$GNOME_BLUETOOTH_APPLET_DIR"],[Path to installed GnomeBluetooth typelib and library])
AC_DEFINE([HAVE_BLUETOOTH],[1],[Define if you have libgnome-bluetooth-applet])
AC_SUBST([HAVE_BLUETOOTH],[1])
AC_MSG_RESULT([yes])],
[AC_DEFINE([HAVE_BLUETOOTH],[0])
AC_SUBST([HAVE_BLUETOOTH],[0])
AC_MSG_RESULT([no])])
AC_CHECK_LIBM
AC_SUBST(LIBM)
GNOME_COMMON_INIT
GNOME_DEBUG_CHECK
GNOME_COMPILE_WARNINGS([maximum])
GNOME_CXX_WARNINGS
GNOME_MAINTAINER_MODE_DEFINES
AC_OUTPUT(Makefile
applet/Makefile
applet/bluetooth-applet.desktop.in
po/Makefile.in
)
echo "
Configure summary:
Compiler....................: ${CC}
Compiler Flags..............: ${CFLAGS}
Prefix......................: ${prefix}
"