~ubuntu-branches/ubuntu/saucy/parole/saucy-proposed

« back to all changes in this revision

Viewing changes to .pc/01_fix-implicit-dso-linking.patch/configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Yves-Alexis Perez, Lionel Le Folgoc, Yves-Alexis Perez
  • Date: 2011-04-24 16:09:19 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110424160919-rpjwaicrdb8f7un2
Tags: 0.2.0.6-1
[ Lionel Le Folgoc ]
* debian/control:
  - drop unneeded build-dep on xulrunner-dev.   closes: #594073
  - suggests a few useful gstreamer0.10 plugins.
  - build-depends on quilt.
* debian/patches:
  - 01_fix-implicit-dso-linking.patch: added, fixes FTBFS with binutils-gold.
  - series: added.                                            closes: #615760
* debian/rules: pass --with quilt to dh.

[ Yves-Alexis Perez ]
* New upstream release.
* Switch to 3.0 (quilt) source format.
* debian/control:
  - update standards version to 3.9.2.
  - drop browser-plugin-parole package.
  - drop quilt build-dep.
  - add build-dep on hardening-includes
  - bump xfce build-deps to 4.8.
* debian/parole.install updated.
* debian/rules:
  - use --fail-missing and manually remove spurious files.
  - drop quilt addon
  - pick build flags from dpkg-buildflags.
  - add -O1, -z,defs and --as-needed to LDFLAGS.
  - add hardening flags to build flags.
  - stop harcoding the shell to bash, it works fine now.      closes: #623830

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl
 
2
dnl This file was autogenerated from "configure.ac.in".
 
3
dnl Edit that file instead!
 
4
dnl
 
5
 
 
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()])])
 
15
 
 
16
AC_INIT([parole], [parole_version], [aliov@xfce.org])
 
17
AC_PREREQ(2.59c)
 
18
 
 
19
AM_INIT_AUTOMAKE([1.8 dist-bzip2 tar-ustar])
 
20
AM_CONFIG_HEADER([config.h])
 
21
AM_MAINTAINER_MODE()
 
22
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
 
23
 
 
24
AC_USE_SYSTEM_EXTENSIONS()
 
25
 
 
26
# ===================================================== #
 
27
#               Basic compiler settings                 #
 
28
# ===================================================== #
 
29
AC_PROG_CC()
 
30
AC_PROG_CXX()
 
31
AM_PROG_CC_C_O()
 
32
AC_PROG_LD()
 
33
AC_PROG_INSTALL()
 
34
AC_PROG_INTLTOOL([intltool_minimum_version], [no-xml])
 
35
 
 
36
# ===================================================== #
 
37
#               Initialize libtool                      #
 
38
# ===================================================== #
 
39
AC_DISABLE_STATIC()
 
40
AC_PROG_LIBTOOL()
 
41
m4_ifdef([LT_OUTPUT], [LT_OUTPUT])
 
42
 
 
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])
 
56
 
 
57
# ==================================================== #
 
58
#   Check for headers needed for standard interfaces   #
 
59
# ==================================================== #
 
60
AC_HEADER_STDC
 
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 \
 
63
                  unistd.h])
 
64
 
 
65
# ===================================================== #
 
66
#               Check for i18n support                  #
 
67
# ===================================================== #
 
68
 
 
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 ])
 
70
 
 
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])
 
77
 
 
78
m4_define([dbus_minimum_version], [0.60])
 
79
m4_define([dbus_glib_minimum_version], [0.70])
 
80
 
 
81
m4_define([libxfcegui4_minimum_version],[4.6.0])
 
82
m4_define([libxfce4util_minimum_version],[4.6.0])
 
83
 
 
84
m4_define([libnotify_minimum_version], [0.4.1])
 
85
 
 
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])
 
92
 
 
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])
 
97
 
 
98
XDT_CHECK_PACKAGE([DBUS], [dbus-1], [dbus_minimum_version])
 
99
XDT_CHECK_PACKAGE([DBUS_GLIB], [dbus-glib-1], [dbus_glib_minimum_version])
 
100
 
 
101
XDT_CHECK_PACKAGE([LIBXFCE4GUI], [libxfcegui4-1.0],[libxfcegui4_minimum_version])
 
102
XDT_CHECK_PACKAGE([LIBXFCE4UTIL], [libxfce4util-1.0],[libxfce4util_minimum_version])
 
103
 
 
104
#=======================================================#
 
105
#           Check for availability of libnotify         #
 
106
#=======================================================#
 
107
LIBNOTIFY_FOUND="no"
 
108
XDT_CHECK_OPTIONAL_PACKAGE([LIBNOTIFY],
 
109
                       [libnotify], [libnotify_minimum_version],
 
110
                       [libnotify], 
 
111
                       [libnotify library], [yes])
 
112
 
 
113
# Taken from Gnome system tools
 
114
#=======================================================#
 
115
#              Pixmaps  files                           #
 
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"
 
120
else
 
121
  AC_DEFINE_UNQUOTED(PIXMAPS_DIR, "${prefix}/${DATADIRNAME}/${PACKAGE}/pixmaps", [pixmaps directory])
 
122
  pixmapsdir="${prefix}/${DATADIRNAME}/${PACKAGE}/pixmaps"
 
123
fi
 
124
 
 
125
AC_SUBST(pixmapsdir)
 
126
 
 
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])
 
135
fi
 
136
 
 
137
#=======================================================#
 
138
#              TagLib support                           #
 
139
#=======================================================#
 
140
TAGLIB_FOUND="no"
 
141
XDT_CHECK_OPTIONAL_PACKAGE([TAGLIB], 
 
142
    [taglib], [1.4],
 
143
    [taglib], 
 
144
    [tag lib], [yes])
 
145
 
 
146
if test x"$TAGLIB_FOUND" = x"yes"; then
 
147
TAGLIBC_LIBS=""
 
148
TAGLIBC_CFLAGS=""
 
149
AC_CHECK_LIB([tag_c], [taglib_file_new],
 
150
[
 
151
    AC_CHECK_HEADER([taglib/tag_c.h],
 
152
    [
 
153
        TAGLIBC_LIBS="-ltag_c"
 
154
        AC_DEFINE([HAVE_TAGLIBC], [1], [Define to 1 if tag_c is found])
 
155
    ])
 
156
], [-lm])
 
157
AC_SUBST([TAGLIBC_CFLAGS])
 
158
AC_SUBST([TAGLIBC_LIBS])
 
159
fi
 
160
 
 
161
#=======================================================#
 
162
#              Check plugins to build                   #
 
163
#=======================================================#
 
164
 
 
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])
 
172
 
 
173
# Tray 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?
 
181
LIBNOTIFY_FOUND="no"
 
182
if test x"$ac_tray_plugin" = x"yes"; then
 
183
        XDT_CHECK_OPTIONAL_PACKAGE([LIBNOTIFY],
 
184
        [libnotify], [libnotify_minimum_version],
 
185
        [libnotify],
 
186
        [libnotify library], [yes]) 
 
187
fi
 
188
 
 
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])
 
196
 
 
197
# Power Manager
 
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])
 
204
 
 
205
#=======================================================#
 
206
#              Check for debugging support              #
 
207
#=======================================================#
 
208
XDT_FEATURE_DEBUG()
 
209
 
 
210
#=======================================================#
 
211
#              Check for Gtk doc                        #
 
212
#=======================================================#
 
213
GTK_DOC_CHECK(1.9)
 
214
 
 
215
AC_OUTPUT([
 
216
Makefile
 
217
data/Makefile
 
218
data/pixmaps/Makefile
 
219
data/interfaces/Makefile
 
220
data/icons/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
 
226
data/mime/Makefile
 
227
data/desktop/Makefile
 
228
parole/Makefile
 
229
parole/parole.h
 
230
common/Makefile
 
231
gst/Makefile
 
232
dbus/Makefile
 
233
src/Makefile
 
234
plugins/Makefile
 
235
plugins/sample/Makefile
 
236
plugins/properties/Makefile
 
237
plugins/tray/Makefile
 
238
plugins/window-title/Makefile
 
239
plugins/power-manager/Makefile
 
240
docs/Makefile
 
241
docs/plugin-api/version.xml
 
242
docs/plugin-api/Makefile
 
243
po/Makefile.in
 
244
])
 
245
 
 
246
echo "
 
247
------------------------------------------------------
 
248
            Parole Media Player $VERSION
 
249
        ====================================
 
250
        
 
251
        Installation:
 
252
        =============
 
253
        prefix:                         $prefix
 
254
        pixmapsdir:                     $pixmapsdir
 
255
        Debug:                          $enable_debug
 
256
        Building plugin api docs:       ${enable_gtk_doc}
 
257
        
 
258
        Optional dependencies:
 
259
        ======================
 
260
        Libnotify:                      $LIBNOTIFY_FOUND
 
261
        Taglib:                         $TAGLIB_FOUND
 
262
        
 
263
        Plugins to build:
 
264
        =================
 
265
        Stream Properties:              ${ac_properties_plugin}" 
 
266
        if test x${ac_properties_plugin} = x"yes"; then 
 
267
        echo "  (With taglib $TAGLIB_FOUND)" 
 
268
        fi 
 
269
        echo "  
 
270
        System Tray icon:               ${ac_tray_plugin}" 
 
271
        if test x${ac_tray_plugin} = x"yes"; then 
 
272
        echo "  (With notification $LIBNOTIFY_FOUND)" 
 
273
        fi 
 
274
        
 
275
        echo "
 
276
        Window title:                   ${ac_window_title_plugin}
 
277
        Power Manager:                  ${ac_power_manager_plugin}
 
278
 
 
279
------------------------------------------------------
 
280
 
 
281
Configuration finished, type make to compile"