~ubuntu-branches/ubuntu/precise/thunar-media-tags-plugin/precise

« back to all changes in this revision

Viewing changes to .pc/02_port-to-exo-1.patch/configure.in

  • Committer: Package Import Robot
  • Author(s): Yves-Alexis Perez
  • Date: 2011-11-30 22:20:30 UTC
  • mfrom: (1.1.5) (1.2.5 sid)
  • Revision ID: package-import@ubuntu.com-20111130222030-5pjt5dulv5rnriql
Tags: 0.2.0-1
* New upstream release.
* debian/patches:
  - 01_port-to-thunarx-2 and 02_port-to-exo-1,
    03_fix-crash-with-ogg-video-files and 04_fix-implicit-dso-linkin
    dropped, included upstream.
* debian/rules:
  - drop xdt-autogen rules, not needed anymore.
  - use dh9 and dpkg-dev 1.16.1 hardening rules.
  - switch to multiarch paths.
* debian/compat bumped to 9 for hardening support.
* debian/control:
  - update debhelper build-dep for hardening support
  - add dpkg-dev build-dep for hardening support
  - drop build-deps for autoreconf.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl $Id: configure.in.in 2447 2007-01-20 14:30:12Z jannis $
2
 
dnl
3
 
dnl Copyright (c) 2006
4
 
dnl         Jannis Pohlmann <jannis@xfce.org>
5
 
dnl
6
 
 
7
 
dnl ***************************
8
 
dnl *** Version information ***
9
 
dnl ***************************
10
 
m4_define([tap_version_major], [0])
11
 
m4_define([tap_version_minor], [1])
12
 
m4_define([tap_version_micro], [2])
13
 
m4_define([tap_version_build], [r02446])
14
 
m4_define([tap_version_tag], [])
15
 
m4_define([tap_version], [tap_version_major().tap_version_minor().tap_version_micro()ifelse(tap_version_tag(), [], [], [tap_version_tag()-tap_version_build()])])
16
 
 
17
 
dnl *******************************************
18
 
dnl *** Debugging support for SVN snapshots ***
19
 
dnl *******************************************
20
 
m4_define([tap_debug_default], [ifelse(tap_version_tag(), [], [minimum], [yes])])
21
 
 
22
 
dnl ***************************
23
 
dnl *** Initialize autoconf ***
24
 
dnl ***************************
25
 
AC_COPYRIGHT([Copyright (c) 2006-2007 Jannis Pohlmann <jannis@xfce.org>.])
26
 
AC_INIT([thunar-media-tags-plugin], [tap_version()], [thunar-dev@xfce.org])
27
 
AC_PREREQ([2.50])
28
 
AC_CANONICAL_TARGET()
29
 
AC_REVISION([$Id: configure.in.in 2447 2007-01-20 14:30:12Z jannis $])
30
 
 
31
 
dnl ***************************
32
 
dnl *** Initialize automake ***
33
 
dnl ***************************
34
 
AM_INIT_AUTOMAKE([AC_PACKAGE_TARNAME()], [AC_PACKAGE_VERSION()])
35
 
AM_CONFIG_HEADER([config.h])
36
 
AM_MAINTAINER_MODE()
37
 
 
38
 
dnl *******************************
39
 
dnl *** Check for UNIX variants ***
40
 
dnl *******************************
41
 
AC_AIX()
42
 
AC_ISC_POSIX()
43
 
AC_MINIX()
44
 
 
45
 
dnl ********************************
46
 
dnl *** Check for basic programs ***
47
 
dnl ********************************
48
 
AC_PROG_CC()
49
 
AC_PROG_LD()
50
 
AC_PROG_INSTALL()
51
 
AC_PROG_INTLTOOL()
52
 
 
53
 
dnl **************************
54
 
dnl *** Initialize libtool ***
55
 
dnl **************************
56
 
AC_DISABLE_STATIC()
57
 
AC_PROG_LIBTOOL()
58
 
 
59
 
dnl ******************************
60
 
dnl *** Check for i18n support ***
61
 
dnl ******************************
62
 
XDT_I18N([ca cs de el eu fr gl hu ja nl pa pl ru zh_TW])
63
 
 
64
 
dnl ***********************************
65
 
dnl *** Check for required packages ***
66
 
dnl ***********************************
67
 
XDT_CHECK_PACKAGE([EXO], [exo-0.3], [0.3.1.3])
68
 
XDT_CHECK_PACKAGE([THUNARX], [thunarx-2], [1.0.1])
69
 
XDT_CHECK_PACKAGE([TAGLIB], [taglib], [1.4])
70
 
 
71
 
dnl ***********************************
72
 
dnl *** Check for taglib_c          ***
73
 
dnl ***********************************
74
 
TAGLIBC_LIBS=""
75
 
TAGLIBC_CFLAGS=""
76
 
AC_CHECK_LIB([tag_c], [taglib_file_new],
77
 
[
78
 
  AC_CHECK_HEADER([taglib/tag_c.h],
79
 
  [
80
 
    TAGLIBC_LIBS="-ltag_c"
81
 
    AC_DEFINE([HAVE_TAGLIBC], [1], [Define to 1 if tag_c is found])
82
 
  ])
83
 
], [-lm])
84
 
AC_SUBST([TAGLIBC_CFLAGS])
85
 
AC_SUBST([TAGLIBC_LIBS])
86
 
 
87
 
dnl ***********************************
88
 
dnl *** Check for debugging support ***
89
 
dnl ***********************************
90
 
AC_ARG_ENABLE([debug],
91
 
AC_HELP_STRING([--enable-debug=@<:@no/minimum/yes/full@:>@], [Turn on debugging @<:@default=tap_debug_default@:>@]),
92
 
  [], [enable_debug=tap_debug_default])
93
 
AC_MSG_CHECKING([whether to enable debugging support])
94
 
if test x"$enable_debug" = x"full" -o x"$enable_debug" = x"yes"; then
95
 
  dnl Check whether the compiler accepts the -fno-strict-aliasing
96
 
  dnl switch, as certain packages - like Glib - still don't work
97
 
  dnl properly with newer compilers.
98
 
  save_CFLAGS="$CFLAGS"
99
 
  CFLAGS="$CFLAGS -fno-strict-aliasing"
100
 
  AC_MSG_CHECKING([whether $CC accepts -fno-strict-aliasing])
101
 
  AC_COMPILE_IFELSE(AC_LANG_SOURCE([int x;]), [
102
 
    AC_MSG_RESULT([yes])
103
 
    PLATFORM_CFLAGS="$PLATFORM_CFLAGS -fno-strict-aliasing"
104
 
  ], [
105
 
    AC_MSG_RESULT([no])
106
 
  ])
107
 
  CFLAGS="$save_CFLAGS"
108
 
 
109
 
  dnl Make sure we detect possible errors
110
 
  PLATFORM_CFLAGS="$PLATFORM_CFLAGS -Werror -Wall"
111
 
 
112
 
  dnl Paranoia for --enable-debug=full
113
 
  if test x"$enable_debug" = x"full"; then
114
 
    PLATFORM_CFLAGS="$PLATFORM_CFLAGS -O0 -g3"
115
 
    PLATFORM_CPPFLAGS="$PLATFORM_CPPFLAGS -DG_DISABLE_DEPRECATED -DG_ENABLE_DEBUG"
116
 
  fi
117
 
else
118
 
  dnl Disable object cast checks
119
 
  PLATFORM_CPPFLAGS="$PLATFORM_CPPFLAGS -DG_DISABLE_CAST_CHECKS"
120
 
 
121
 
  dnl Disable all checks for --enable-debug=no
122
 
  if test x"$enable_debug" = x"no"; then
123
 
    PLATFORM_CPPFLAGS="$PLATFORM_CPPFLAGS -DG_DISABLE_ASSERT -DG_DISABLE_CHECKS"
124
 
  fi
125
 
fi
126
 
AC_MSG_RESULT([$enable_debug])
127
 
 
128
 
dnl **************************************
129
 
dnl *** Check for linker optimizations ***
130
 
dnl **************************************
131
 
AC_MSG_CHECKING([whether $LD accepts -O1])
132
 
case `$LD -O1 -v 2>&1 </dev/null` in
133
 
*GNU* | *'with BFD'*)
134
 
  PLATFORM_LDFLAGS="$PLATFORM_LDFLAGS -Wl,-O1"
135
 
  AC_MSG_RESULT([yes])
136
 
  ;;
137
 
*)
138
 
  AC_MSG_RESULT([no])
139
 
  ;;
140
 
esac
141
 
 
142
 
dnl *********************************
143
 
dnl *** Substitute platform flags ***
144
 
dnl *********************************
145
 
AC_MSG_CHECKING([PLATFORM_CPPFLAGS])
146
 
AC_MSG_RESULT([$PLATFORM_CPPFLAGS])
147
 
AC_SUBST([PLATFORM_CPPFLAGS])
148
 
AC_MSG_CHECKING([PLATFORM_CFLAGS])
149
 
AC_MSG_RESULT([$PLATFORM_CFLAGS])
150
 
AC_SUBST([PLATFORM_CFLAGS])
151
 
AC_MSG_CHECKING([PLATFORM_LDFLAGS])
152
 
AC_MSG_RESULT([$PLATFORM_LDFLAGS])
153
 
AC_SUBST([PLATFORM_LDFLAGS])
154
 
 
155
 
AC_OUTPUT([
156
 
Makefile
157
 
po/Makefile.in
158
 
thunar-plugin/Makefile
159
 
])
160