~ubuntu-branches/ubuntu/quantal/transmission/quantal

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Krzysztof Klimonda
  • Date: 2010-07-24 23:31:01 UTC
  • mfrom: (1.1.37 upstream) (2.1.21 sid)
  • Revision ID: james.westby@ubuntu.com-20100724233101-s1w4xpfbt9g10vxo
Tags: 2.03-0ubuntu1
* New upstream release (LP: #599126) 
* Fixes bugs:
  - duplicate quit confirmation dialog on closing transmission (LP: #603426)
  - disk read/write scheduling (LP: #567181)

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
If you have problems, you may need to regenerate the build system entirely.
20
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
21
21
 
22
 
# nls.m4 serial 3 (gettext-0.15)
23
 
dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
 
22
 
 
23
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
 
24
# serial 40 IT_PROG_INTLTOOL
 
25
AC_DEFUN([IT_PROG_INTLTOOL], [
 
26
AC_PREREQ([2.50])dnl
 
27
AC_REQUIRE([AM_NLS])dnl
 
28
 
 
29
case "$am__api_version" in
 
30
    1.[01234])
 
31
        AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
 
32
    ;;
 
33
    *)
 
34
    ;;
 
35
esac
 
36
 
 
37
if test -n "$1"; then
 
38
    AC_MSG_CHECKING([for intltool >= $1])
 
39
 
 
40
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
 
41
    INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
 
42
    [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
 
43
    ]
 
44
    AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
 
45
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
 
46
        AC_MSG_ERROR([Your intltool is too old.  You need intltool $1 or later.])
 
47
fi
 
48
 
 
49
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
 
50
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
 
51
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
 
52
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
 
53
    AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
 
54
fi
 
55
 
 
56
  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
57
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
58
     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
59
     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
60
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
 
61
     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
62
   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
63
    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
64
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
65
       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
66
      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
67
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@' 
 
68
      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
69
      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
70
    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
71
  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
72
    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
73
    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
 
74
   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
 
75
 
 
76
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
 
77
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
 
78
_IT_SUBST(INTLTOOL_KEYS_RULE)
 
79
_IT_SUBST(INTLTOOL_PROP_RULE)
 
80
_IT_SUBST(INTLTOOL_OAF_RULE)
 
81
_IT_SUBST(INTLTOOL_PONG_RULE)
 
82
_IT_SUBST(INTLTOOL_SERVER_RULE)
 
83
_IT_SUBST(INTLTOOL_SHEET_RULE)
 
84
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
 
85
_IT_SUBST(INTLTOOL_UI_RULE)
 
86
_IT_SUBST(INTLTOOL_XAM_RULE)
 
87
_IT_SUBST(INTLTOOL_KBD_RULE)
 
88
_IT_SUBST(INTLTOOL_XML_RULE)
 
89
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
 
90
_IT_SUBST(INTLTOOL_CAVES_RULE)
 
91
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
 
92
_IT_SUBST(INTLTOOL_THEME_RULE)
 
93
_IT_SUBST(INTLTOOL_SERVICE_RULE)
 
94
_IT_SUBST(INTLTOOL_POLICY_RULE)
 
95
 
 
96
# Check the gettext tools to make sure they are GNU
 
97
AC_PATH_PROG(XGETTEXT, xgettext)
 
98
AC_PATH_PROG(MSGMERGE, msgmerge)
 
99
AC_PATH_PROG(MSGFMT, msgfmt)
 
100
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
 
101
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
 
102
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
 
103
fi
 
104
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
 
105
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
 
106
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
 
107
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
 
108
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
 
109
fi
 
110
 
 
111
AC_PATH_PROG(INTLTOOL_PERL, perl)
 
112
if test -z "$INTLTOOL_PERL"; then
 
113
   AC_MSG_ERROR([perl not found])
 
114
fi
 
115
AC_MSG_CHECKING([for perl >= 5.8.1])
 
116
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
 
117
if test $? -ne 0; then
 
118
   AC_MSG_ERROR([perl 5.8.1 is required for intltool])
 
119
else
 
120
   IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
 
121
   AC_MSG_RESULT([$IT_PERL_VERSION])
 
122
fi
 
123
if test "x$2" != "xno-xml"; then
 
124
   AC_MSG_CHECKING([for XML::Parser])
 
125
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
 
126
       AC_MSG_RESULT([ok])
 
127
   else
 
128
       AC_MSG_ERROR([XML::Parser perl module is required for intltool])
 
129
   fi
 
130
fi
 
131
 
 
132
# Substitute ALL_LINGUAS so we can use it in po/Makefile
 
133
AC_SUBST(ALL_LINGUAS)
 
134
 
 
135
# Set DATADIRNAME correctly if it is not set yet
 
136
# (copied from glib-gettext.m4)
 
137
if test -z "$DATADIRNAME"; then
 
138
  AC_LINK_IFELSE(
 
139
    [AC_LANG_PROGRAM([[]],
 
140
                     [[extern int _nl_msg_cat_cntr;
 
141
                       return _nl_msg_cat_cntr]])],
 
142
    [DATADIRNAME=share],
 
143
    [case $host in
 
144
    *-*-solaris*)
 
145
    dnl On Solaris, if bind_textdomain_codeset is in libc,
 
146
    dnl GNU format message catalog is always supported,
 
147
    dnl since both are added to the libc all together.
 
148
    dnl Hence, we'd like to go with DATADIRNAME=share
 
149
    dnl in this case.
 
150
    AC_CHECK_FUNC(bind_textdomain_codeset,
 
151
      [DATADIRNAME=share], [DATADIRNAME=lib])
 
152
    ;;
 
153
    *)
 
154
    [DATADIRNAME=lib]
 
155
    ;;
 
156
    esac])
 
157
fi
 
158
AC_SUBST(DATADIRNAME)
 
159
 
 
160
IT_PO_SUBDIR([po])
 
161
 
 
162
])
 
163
 
 
164
 
 
165
# IT_PO_SUBDIR(DIRNAME)
 
166
# ---------------------
 
167
# All po subdirs have to be declared with this macro; the subdir "po" is
 
168
# declared by IT_PROG_INTLTOOL.
 
169
#
 
170
AC_DEFUN([IT_PO_SUBDIR],
 
171
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
 
172
dnl
 
173
dnl The following CONFIG_COMMANDS should be executed at the very end
 
174
dnl of config.status.
 
175
AC_CONFIG_COMMANDS_PRE([
 
176
  AC_CONFIG_COMMANDS([$1/stamp-it], [
 
177
    if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
 
178
       AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
 
179
    fi
 
180
    rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
 
181
    >"$1/stamp-it.tmp"
 
182
    [sed '/^#/d
 
183
         s/^[[].*] *//
 
184
         /^[    ]*$/d
 
185
        '"s|^|  $ac_top_srcdir/|" \
 
186
      "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
 
187
    ]
 
188
    [sed '/^POTFILES =/,/[^\\]$/ {
 
189
                /^POTFILES =/!d
 
190
                r $1/POTFILES
 
191
          }
 
192
         ' "$1/Makefile.in" >"$1/Makefile"]
 
193
    rm -f "$1/Makefile.tmp"
 
194
    mv "$1/stamp-it.tmp" "$1/stamp-it"
 
195
  ])
 
196
])dnl
 
197
])
 
198
 
 
199
# _IT_SUBST(VARIABLE)
 
200
# -------------------
 
201
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
 
202
#
 
203
AC_DEFUN([_IT_SUBST],
 
204
[
 
205
AC_SUBST([$1])
 
206
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
 
207
]
 
208
)
 
209
 
 
210
# deprecated macros
 
211
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
 
212
# A hint is needed for aclocal from Automake <= 1.9.4:
 
213
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
 
214
 
 
215
 
 
216
# nls.m4 serial 5 (gettext-0.18)
 
217
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
 
218
dnl Inc.
24
219
dnl This file is free software; the Free Software Foundation
25
220
dnl gives unlimited permission to copy and/or distribute it,
26
221
dnl with or without modifications, as long as this notice is preserved.
38
233
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
39
234
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
40
235
 
41
 
AC_PREREQ(2.50)
 
236
AC_PREREQ([2.50])
42
237
 
43
238
AC_DEFUN([AM_NLS],
44
239
[
45
240
  AC_MSG_CHECKING([whether NLS is requested])
46
241
  dnl Default is enabled NLS
47
 
  AC_ARG_ENABLE(nls,
 
242
  AC_ARG_ENABLE([nls],
48
243
    [  --disable-nls           do not use Native Language Support],
49
244
    USE_NLS=$enableval, USE_NLS=yes)
50
 
  AC_MSG_RESULT($USE_NLS)
51
 
  AC_SUBST(USE_NLS)
 
245
  AC_MSG_RESULT([$USE_NLS])
 
246
  AC_SUBST([USE_NLS])
52
247
])
53
248
 
54
249
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
1028
1223
m4_include([m4/acx-pthread.m4])
1029
1224
m4_include([m4/check-ssl.m4])
1030
1225
m4_include([m4/glib-gettext.m4])
1031
 
m4_include([m4/intltool.m4])
1032
1226
m4_include([m4/libtool.m4])
1033
1227
m4_include([m4/ltoptions.m4])
1034
1228
m4_include([m4/ltsugar.m4])