~noskcaj/ubuntu/vivid/xfce4-mpc-plugin/0.4.5

« back to all changes in this revision

Viewing changes to .pc/02_use-exo-1.patch/configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Yves-Alexis Perez
  • Date: 2011-05-06 22:58:07 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110506225807-xa0v6uvjno9h7ys4
Tags: 0.3.6-1
* New upstream release.
* debian/patches:
  - 01_link-with-libxfcegui4, 02_use-exo-1 dropped, included upstream.
* debian/rules:
  - stop running xdt-autogen
  - switch to dh7 tiny rules
  - pick build flags from dpkg-buildflags.
  - add hardening flags to build flags.
  - add -O1, -z,defs and --as-needed to LDFLAGS.
* debian/control:
  - drop cdbs from build-deps, update debhelper build-dep for overrides.
  - drop xfce4-dev-tools and libtool from build-deps.
  - add build-dep on hardening-includes.
* debian/docs added.

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
 
dnl configure.ac
7
 
dnl
8
 
dnl xfce4-mpc-plugin - mpd client plugin for the XFce4 panel
9
 
dnl
10
 
 
11
 
m4_define([mpc_version_major], [0])
12
 
m4_define([mpc_version_minor], [3])
13
 
m4_define([mpc_version_micro], [5])
14
 
m4_define([mpc_version_tag], []) # Leave empty for releases
15
 
m4_define([mpc_version_build], [007b2b1])
16
 
m4_define([mpc_version], [mpc_version_major().mpc_version_minor().mpc_version_micro()ifelse(mpc_version_tag(), [], [], [mpc_version_tag()-mpc_version_build()])])
17
 
 
18
 
AC_INIT([xfce4-mpc-plugin], [mpc_version],
19
 
        [landry@fr.homeunix.org])
20
 
 
21
 
MPC_VERSION=mpc_version()
22
 
AM_INIT_AUTOMAKE([xfce4-mpc-plugin], [$MPC_VERSION], [-Wall -Werror foreign])
23
 
AM_CONFIG_HEADER([config.h])
24
 
dnl AC_CONFIG_HEADERS([config.h])
25
 
 
26
 
AM_MAINTAINER_MODE
27
 
 
28
 
dnl Check for UNIX variants
29
 
AC_AIX
30
 
AC_ISC_POSIX
31
 
AC_MINIX
32
 
 
33
 
dnl Check for basic programs
34
 
AC_PROG_CC
35
 
AC_PROG_INSTALL
36
 
AC_PROG_INTLTOOL
37
 
 
38
 
dnl Check for standard header files
39
 
AC_HEADER_STDC
40
 
 
41
 
dnl configure the panel plugin
42
 
XDT_CHECK_PACKAGE([LIBXFCE4PANEL], [libxfce4panel-1.0], [4.3.22])
43
 
XDT_CHECK_PACKAGE([LIBXFCEGUI4], [libxfcegui4-1.0], [4.4])
44
 
XDT_CHECK_PACKAGE([EXO], [exo-0.3], [0.3.1.1])
45
 
 
46
 
dnl check for libmpd presence
47
 
AC_ARG_WITH(libmpd,
48
 
    AC_HELP_STRING([--with-libmpd=path], [path to libmpd base directory]),
49
 
        LIBMPD_PATH="$withval", LIBMPD_PATH="")
50
 
 
51
 
use_libmpd=false
52
 
AM_CONDITIONAL([HAVE_LIBMPD], [test "$use_libmpd" = true])
53
 
AC_DEFINE([HAVE_LIBMPD], [0], [no libmpd found])
54
 
 
55
 
AC_MSG_CHECKING([whether --with-libmpd was used])
56
 
if test x"$LIBMPD_PATH" != x"" ; then
57
 
   if test x"$LIBMPD_PATH" = x"no" ; then
58
 
      AC_MSG_RESULT([yes, disabled])
59
 
      echo "* Build with libmpd: no, falling back to our implementation"
60
 
   else
61
 
      AC_MSG_RESULT([yes, using $LIBMPD_PATH])
62
 
      LIBMPD_CFLAGS="-I${LIBMPD_PATH}/include/"
63
 
      LIBMPD_LIBS="-L${LIBMPD_PATH}/lib/ -lmpd"
64
 
      AC_DEFINE([HAVE_LIBMPD], [1], [libmpd found])
65
 
      use_libmpd=true
66
 
      AC_SUBST([LIBMPD_CFLAGS])
67
 
      AC_SUBST([LIBMPD_LIBS])
68
 
   fi
69
 
else
70
 
   AC_MSG_RESULT([no, falling back to pkg-config])
71
 
   XDT_CHECK_OPTIONAL_PACKAGE([LIBMPD], [libmpd], [0.12], [libmpd], [libmpd])
72
 
   if test x"$LIBMPD_FOUND" = x"yes"; then
73
 
      AC_DEFINE([HAVE_LIBMPD], [1], [libmpd found])
74
 
      use_libmpd=true
75
 
      echo "* Build with libmpd: yes"
76
 
   else
77
 
      echo "* Build with libmpd: no, falling back to our implementation"
78
 
   fi
79
 
fi
80
 
AM_CONDITIONAL(USE_LIBMPD, [test "$use_libmpd" = true])
81
 
dnl Translations
82
 
XDT_I18N([ar ast ca cs da de en_GB es eu fr gl hu id it ja lv pl pt pt_BR ru sk sq sv tr uk ur ur_PK zh_CN ])
83
 
 
84
 
dnl Check for debugging support
85
 
XDT_FEATURE_DEBUG()
86
 
AC_OUTPUT([
87
 
Makefile
88
 
panel-plugin/Makefile
89
 
po/Makefile.in
90
 
])
91