2
dnl This file was autogenerated from "configure.ac.in".
3
dnl Edit that file instead!
6
m4_define([intltool_minimum_version], [0.31])
7
m4_define([parole_verinfo], [0:2:0])
8
m4_define([parole_version_api], [0])
9
m4_define([parole_version_major], [0])
10
m4_define([parole_version_minor], [2])
11
m4_define([parole_version_micro], [0.6])
12
m4_define([parole_version_build], [])
13
m4_define([parole_version_tag], [])
14
m4_define([parole_version], [parole_version_major().parole_version_minor().parole_version_micro()ifelse(parole_version_tag(), [git], [parole_version_tag().parole_version_build()], [parole_version_tag()])])
16
AC_INIT([parole], [parole_version], [aliov@xfce.org])
19
AM_INIT_AUTOMAKE([1.8 dist-bzip2 tar-ustar])
20
AM_CONFIG_HEADER([config.h])
22
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
24
AC_USE_SYSTEM_EXTENSIONS()
26
# ===================================================== #
27
# Basic compiler settings #
28
# ===================================================== #
34
AC_PROG_INTLTOOL([intltool_minimum_version], [no-xml])
36
# ===================================================== #
37
# Initialize libtool #
38
# ===================================================== #
41
m4_ifdef([LT_OUTPUT], [LT_OUTPUT])
43
# ===================================================== #
44
# Version information #
45
# ===================================================== #
46
PAROLE_VERINFO=parole_verinfo()
47
PAROLE_VERSION_API=parole_version_api()
48
PAROLE_VERSION_MAJOR=parole_version_major()
49
PAROLE_VERSION_MINOR=parole_version_minor()
50
PAROLE_VERSION_MICRO=parole_version_micro()
51
AC_SUBST([PAROLE_VERINFO])
52
AC_SUBST([PAROLE_VERSION_API])
53
AC_SUBST([PAROLE_VERSION_MAJOR])
54
AC_SUBST([PAROLE_VERSION_MINOR])
55
AC_SUBST([PAROLE_VERSION_MICRO])
57
# ==================================================== #
58
# Check for headers needed for standard interfaces #
59
# ==================================================== #
61
AC_CHECK_HEADERS([errno.h signal.h stddef.h sys/ioctl.h fcntl.h\
62
string.h sys/stat.h sys/types.h sys/wait.h time.h \
65
# ===================================================== #
66
# Check for i18n support #
67
# ===================================================== #
69
XDT_I18N([ast ca cs da de el en_GB es eu fr gl hu id it ja lv nl pt_BR pt ru sk sv tr ug uk zh_CN ])
71
#==================================================== #
72
# Check for required packages #
73
#=====================================================#
74
m4_define([gtk_minimum_version], [2.16.0])
75
m4_define([glib_minimum_version], [2.16.0])
76
m4_define([gstreamer_minimum_version], [0.10.11])
78
m4_define([dbus_minimum_version], [0.60])
79
m4_define([dbus_glib_minimum_version], [0.70])
81
m4_define([libxfcegui4_minimum_version],[4.6.0])
82
m4_define([libxfce4util_minimum_version],[4.6.0])
84
m4_define([libnotify_minimum_version], [0.4.1])
86
XDT_CHECK_PACKAGE([GTK], [gtk+-2.0], [gtk_minimum_version])
87
XDT_CHECK_PACKAGE([GLIB], [glib-2.0], [glib_minimum_version])
88
XDT_CHECK_PACKAGE([GOBJECT], [gobject-2.0], [glib_minimum_version])
89
XDT_CHECK_PACKAGE([GTHREAD], [gthread-2.0], [glib_minimum_version])
90
XDT_CHECK_PACKAGE([GMODULE], [gmodule-2.0], [glib_minimum_version])
91
XDT_CHECK_PACKAGE([GIO], [gio-2.0], [glib_minimum_version])
93
XDT_CHECK_PACKAGE([GST], [gstreamer-0.10], [gstreamer_minimum_version])
94
XDT_CHECK_PACKAGE([GST_BASE], [gstreamer-base-0.10], [gstreamer_minimum_version])
95
XDT_CHECK_PACKAGE([GST_VIDEO], [gstreamer-video-0.10], [gstreamer_minimum_version])
96
XDT_CHECK_PACKAGE([GST_INTERFACES], [gstreamer-interfaces-0.10], [gstreamer_minimum_version])
98
XDT_CHECK_PACKAGE([DBUS], [dbus-1], [dbus_minimum_version])
99
XDT_CHECK_PACKAGE([DBUS_GLIB], [dbus-glib-1], [dbus_glib_minimum_version])
101
XDT_CHECK_PACKAGE([LIBXFCE4GUI], [libxfcegui4-1.0],[libxfcegui4_minimum_version])
102
XDT_CHECK_PACKAGE([LIBXFCE4UTIL], [libxfce4util-1.0],[libxfce4util_minimum_version])
104
#=======================================================#
105
# Check for availability of libnotify #
106
#=======================================================#
108
XDT_CHECK_OPTIONAL_PACKAGE([LIBNOTIFY],
109
[libnotify], [libnotify_minimum_version],
111
[libnotify library], [yes])
113
# Taken from Gnome system tools
114
#=======================================================#
116
#=======================================================#
117
if test "x${prefix}" = "xNONE"; then
118
AC_DEFINE_UNQUOTED(PIXMAPS_DIR, "${ac_default_prefix}/${DATADIRNAME}/${PACKAGE}/pixmaps", [pixmaps directory])
119
pixmapsdir="${ac_default_prefix}/${DATADIRNAME}/${PACKAGE}/pixmaps"
121
AC_DEFINE_UNQUOTED(PIXMAPS_DIR, "${prefix}/${DATADIRNAME}/${PACKAGE}/pixmaps", [pixmaps directory])
122
pixmapsdir="${prefix}/${DATADIRNAME}/${PACKAGE}/pixmaps"
127
#=======================================================#
128
# Check XF86keysysm #
129
#=======================================================#
130
# Check for the AudioPlay sym other should exist
131
# if this one exists.
132
AC_CHECK_DECL(XF86XK_AudioPlay,have_XF86XK_AudioPlay=1,have_XF86XK_AudioPlay=0,[#include <X11/XF86keysym.h>])
133
if test "x${ac_cv_have_decl_XF86XK_AudioPlay}" != "xno"; then
134
AC_DEFINE(HAVE_XF86_KEYSYM, 1, [Define if XF86keysysm.h is available])
137
#=======================================================#
139
#=======================================================#
141
XDT_CHECK_OPTIONAL_PACKAGE([TAGLIB],
146
if test x"$TAGLIB_FOUND" = x"yes"; then
149
AC_CHECK_LIB([tag_c], [taglib_file_new],
151
AC_CHECK_HEADER([taglib/tag_c.h],
153
TAGLIBC_LIBS="-ltag_c"
154
AC_DEFINE([HAVE_TAGLIBC], [1], [Define to 1 if tag_c is found])
157
AC_SUBST([TAGLIBC_CFLAGS])
158
AC_SUBST([TAGLIBC_LIBS])
161
#=======================================================#
162
# Check plugins to build #
163
#=======================================================#
165
# Stream Properties plugin.
166
#--------------------------
167
AC_ARG_ENABLE([properties-plugin], AC_HELP_STRING([--disable-properties-plugin], [Don't build parole stream properties plugin]),
168
[ac_properties_plugin=$enableval], [ac_properties_plugin=yes])
169
AC_MSG_CHECKING([whether to build the Parole stream properties plugin])
170
AM_CONDITIONAL([PAROLE_PROPERTIES_PLUGIN], [test x"$ac_properties_plugin" = x"yes"])
171
AC_MSG_RESULT([$ac_properties_plugin])
174
#--------------------------
175
AC_ARG_ENABLE([tray-plugin], AC_HELP_STRING([--disable-tray-plugin], [Don't build parole tray icon plugin]),
176
[ac_tray_plugin=$enableval], [ac_tray_plugin=yes])
177
AC_MSG_CHECKING([whether to build the system tray plugin])
178
AM_CONDITIONAL([PAROLE_TRAY_PLUGIN], [test x"$ac_tray_plugin" = x"yes"])
179
AC_MSG_RESULT([$ac_tray_plugin])
180
# Should we build the tray icon with notification support?
182
if test x"$ac_tray_plugin" = x"yes"; then
183
XDT_CHECK_OPTIONAL_PACKAGE([LIBNOTIFY],
184
[libnotify], [libnotify_minimum_version],
186
[libnotify library], [yes])
189
# Window title plugin.
190
#--------------------------
191
AC_ARG_ENABLE([window-title-plugin], AC_HELP_STRING([--disable-window-title-plugin], [Don't build the window title plugin]),
192
[ac_window_title_plugin=$enableval], [ac_window_title_plugin=yes])
193
AC_MSG_CHECKING([whether to build the window title plugin])
194
AM_CONDITIONAL([WINDOW_TITLE_PLUGIN], [test x"$ac_window_title_plugin" = x"yes"])
195
AC_MSG_RESULT([$ac_window_title_plugin])
198
#--------------------------
199
AC_ARG_ENABLE([power-manager-plugin], AC_HELP_STRING([--disable-power-manager-plugin], [Don't build the power manager plugin]),
200
[ac_power_manager_plugin=$enableval], [ac_power_manager_plugin=yes])
201
AC_MSG_CHECKING([whether to build the power manager plugin])
202
AM_CONDITIONAL([POWER_MANAGER_PLUGIN], [test x"$ac_power_manager_plugin" = x"yes"])
203
AC_MSG_RESULT([$ac_power_manager_plugin])
205
#=======================================================#
206
# Check for debugging support #
207
#=======================================================#
210
#=======================================================#
211
# Check for Gtk doc #
212
#=======================================================#
218
data/pixmaps/Makefile
219
data/interfaces/Makefile
221
data/icons/16x16/Makefile
222
data/icons/22x22/Makefile
223
data/icons/32x32/Makefile
224
data/icons/48x48/Makefile
225
data/icons/scalable/Makefile
227
data/desktop/Makefile
235
plugins/sample/Makefile
236
plugins/properties/Makefile
237
plugins/tray/Makefile
238
plugins/window-title/Makefile
239
plugins/power-manager/Makefile
241
docs/plugin-api/version.xml
242
docs/plugin-api/Makefile
247
------------------------------------------------------
248
Parole Media Player $VERSION
249
====================================
254
pixmapsdir: $pixmapsdir
256
Building plugin api docs: ${enable_gtk_doc}
258
Optional dependencies:
259
======================
260
Libnotify: $LIBNOTIFY_FOUND
261
Taglib: $TAGLIB_FOUND
265
Stream Properties: ${ac_properties_plugin}"
266
if test x${ac_properties_plugin} = x"yes"; then
267
echo " (With taglib $TAGLIB_FOUND)"
270
System Tray icon: ${ac_tray_plugin}"
271
if test x${ac_tray_plugin} = x"yes"; then
272
echo " (With notification $LIBNOTIFY_FOUND)"
276
Window title: ${ac_window_title_plugin}
277
Power Manager: ${ac_power_manager_plugin}
279
------------------------------------------------------
281
Configuration finished, type make to compile"