~ubuntu-branches/ubuntu/trusty/patch/trusty-security

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Christoph Berg
  • Date: 2013-06-30 16:14:19 UTC
  • mfrom: (6.1.6 experimental)
  • Revision ID: package-import@ubuntu.com-20130630161419-xg7lwk3vpejzedyc
Tags: 2.7.1-3
* Call 'ed' without a path. Closes: #714423.
* Update copyright for GPL v3. Closes: #664640.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.11 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.11.6 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005, 2006, 2007, 2008, 2009  Free Software Foundation, Inc.
 
4
# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
 
5
# Inc.
5
6
# This file is free software; the Free Software Foundation
6
7
# gives unlimited permission to copy and/or distribute it,
7
8
# with or without modifications, as long as this notice is preserved.
11
12
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
13
# PARTICULAR PURPOSE.
13
14
 
14
 
m4_include([gl/m4/argmatch.m4])
15
 
m4_include([gl/m4/backupfile.m4])
16
 
m4_include([gl/m4/d-ino.m4])
17
 
m4_include([gl/m4/dirname.m4])
18
 
m4_include([gl/m4/dos.m4])
19
 
m4_include([gl/m4/double-slash-root.m4])
20
 
m4_include([gl/m4/error.m4])
21
 
m4_include([gl/m4/exitfail.m4])
22
 
m4_include([gl/m4/extensions.m4])
23
 
m4_include([gl/m4/getopt.m4])
24
 
m4_include([gl/m4/hash.m4])
25
 
m4_include([gl/m4/inline.m4])
26
 
m4_include([gl/m4/malloc.m4])
27
 
m4_include([gl/m4/memchr.m4])
28
 
m4_include([gl/m4/onceonly.m4])
29
 
m4_include([gl/m4/quote.m4])
30
 
m4_include([gl/m4/quotearg.m4])
31
 
m4_include([gl/m4/realloc.m4])
32
 
m4_include([gl/m4/safe-read.m4])
33
 
m4_include([gl/m4/safe-write.m4])
34
 
m4_include([gl/m4/ssize_t.m4])
35
 
m4_include([gl/m4/stdbool.m4])
36
 
m4_include([gl/m4/strcase.m4])
37
 
m4_include([gl/m4/strndup.m4])
38
 
m4_include([gl/m4/strnlen.m4])
39
 
m4_include([gl/m4/unlocked-io.m4])
40
 
m4_include([gl/m4/utimbuf.m4])
41
 
m4_include([gl/m4/xalloc.m4])
42
 
m4_include([gl/m4/xstrndup.m4])
 
15
m4_ifndef([AC_AUTOCONF_VERSION],
 
16
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
17
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
 
18
[m4_warning([this file was generated for autoconf 2.68.
 
19
You have another version of autoconf.  It may work, but is not guaranteed to.
 
20
If you have problems, you may need to regenerate the build system entirely.
 
21
To do so, use the procedure documented by the package, typically `autoreconf'.])])
 
22
 
 
23
# po.m4 serial 17 (gettext-0.18)
 
24
dnl Copyright (C) 1995-2010 Free Software Foundation, Inc.
 
25
dnl This file is free software; the Free Software Foundation
 
26
dnl gives unlimited permission to copy and/or distribute it,
 
27
dnl with or without modifications, as long as this notice is preserved.
 
28
dnl
 
29
dnl This file can can be used in projects which are not available under
 
30
dnl the GNU General Public License or the GNU Library General Public
 
31
dnl License but which still want to provide support for the GNU gettext
 
32
dnl functionality.
 
33
dnl Please note that the actual code of the GNU gettext library is covered
 
34
dnl by the GNU Library General Public License, and the rest of the GNU
 
35
dnl gettext package package is covered by the GNU General Public License.
 
36
dnl They are *not* in the public domain.
 
37
 
 
38
dnl Authors:
 
39
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
 
40
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
 
41
 
 
42
AC_PREREQ([2.50])
 
43
 
 
44
dnl Checks for all prerequisites of the po subdirectory.
 
45
AC_DEFUN([AM_PO_SUBDIRS],
 
46
[
 
47
  AC_REQUIRE([AC_PROG_MAKE_SET])dnl
 
48
  AC_REQUIRE([AC_PROG_INSTALL])dnl
 
49
  AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake
 
50
  AC_REQUIRE([AM_NLS])dnl
 
51
 
 
52
  dnl Release version of the gettext macros. This is used to ensure that
 
53
  dnl the gettext macros and po/Makefile.in.in are in sync.
 
54
  AC_SUBST([GETTEXT_MACRO_VERSION], [0.18])
 
55
 
 
56
  dnl Perform the following tests also if --disable-nls has been given,
 
57
  dnl because they are needed for "make dist" to work.
 
58
 
 
59
  dnl Search for GNU msgfmt in the PATH.
 
60
  dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions.
 
61
  dnl The second test excludes FreeBSD msgfmt.
 
62
  AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
 
63
    [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
 
64
     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
 
65
    :)
 
66
  AC_PATH_PROG([GMSGFMT], [gmsgfmt], [$MSGFMT])
 
67
 
 
68
  dnl Test whether it is GNU msgfmt >= 0.15.
 
69
changequote(,)dnl
 
70
  case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
 
71
    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
 
72
    *) MSGFMT_015=$MSGFMT ;;
 
73
  esac
 
74
changequote([,])dnl
 
75
  AC_SUBST([MSGFMT_015])
 
76
changequote(,)dnl
 
77
  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
 
78
    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
 
79
    *) GMSGFMT_015=$GMSGFMT ;;
 
80
  esac
 
81
changequote([,])dnl
 
82
  AC_SUBST([GMSGFMT_015])
 
83
 
 
84
  dnl Search for GNU xgettext 0.12 or newer in the PATH.
 
85
  dnl The first test excludes Solaris xgettext and early GNU xgettext versions.
 
86
  dnl The second test excludes FreeBSD xgettext.
 
87
  AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
 
88
    [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
 
89
     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
 
90
    :)
 
91
  dnl Remove leftover from FreeBSD xgettext call.
 
92
  rm -f messages.po
 
93
 
 
94
  dnl Test whether it is GNU xgettext >= 0.15.
 
95
changequote(,)dnl
 
96
  case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
 
97
    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
 
98
    *) XGETTEXT_015=$XGETTEXT ;;
 
99
  esac
 
100
changequote([,])dnl
 
101
  AC_SUBST([XGETTEXT_015])
 
102
 
 
103
  dnl Search for GNU msgmerge 0.11 or newer in the PATH.
 
104
  AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,
 
105
    [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :)
 
106
 
 
107
  dnl Installation directories.
 
108
  dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we
 
109
  dnl have to define it here, so that it can be used in po/Makefile.
 
110
  test -n "$localedir" || localedir='${datadir}/locale'
 
111
  AC_SUBST([localedir])
 
112
 
 
113
  dnl Support for AM_XGETTEXT_OPTION.
 
114
  test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
 
115
  AC_SUBST([XGETTEXT_EXTRA_OPTIONS])
 
116
 
 
117
  AC_CONFIG_COMMANDS([po-directories], [[
 
118
    for ac_file in $CONFIG_FILES; do
 
119
      # Support "outfile[:infile[:infile...]]"
 
120
      case "$ac_file" in
 
121
        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
122
      esac
 
123
      # PO directories have a Makefile.in generated from Makefile.in.in.
 
124
      case "$ac_file" in */Makefile.in)
 
125
        # Adjust a relative srcdir.
 
126
        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
 
127
        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
 
128
        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
 
129
        # In autoconf-2.13 it is called $ac_given_srcdir.
 
130
        # In autoconf-2.50 it is called $srcdir.
 
131
        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
 
132
        case "$ac_given_srcdir" in
 
133
          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
 
134
          /*) top_srcdir="$ac_given_srcdir" ;;
 
135
          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
 
136
        esac
 
137
        # Treat a directory as a PO directory if and only if it has a
 
138
        # POTFILES.in file. This allows packages to have multiple PO
 
139
        # directories under different names or in different locations.
 
140
        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
 
141
          rm -f "$ac_dir/POTFILES"
 
142
          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
 
143
          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
 
144
          POMAKEFILEDEPS="POTFILES.in"
 
145
          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
 
146
          # on $ac_dir but don't depend on user-specified configuration
 
147
          # parameters.
 
148
          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
 
149
            # The LINGUAS file contains the set of available languages.
 
150
            if test -n "$OBSOLETE_ALL_LINGUAS"; then
 
151
              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
 
152
            fi
 
153
            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
 
154
            # Hide the ALL_LINGUAS assigment from automake < 1.5.
 
155
            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
 
156
            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
 
157
          else
 
158
            # The set of available languages was given in configure.in.
 
159
            # Hide the ALL_LINGUAS assigment from automake < 1.5.
 
160
            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
 
161
          fi
 
162
          # Compute POFILES
 
163
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
 
164
          # Compute UPDATEPOFILES
 
165
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
 
166
          # Compute DUMMYPOFILES
 
167
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
 
168
          # Compute GMOFILES
 
169
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
 
170
          case "$ac_given_srcdir" in
 
171
            .) srcdirpre= ;;
 
172
            *) srcdirpre='$(srcdir)/' ;;
 
173
          esac
 
174
          POFILES=
 
175
          UPDATEPOFILES=
 
176
          DUMMYPOFILES=
 
177
          GMOFILES=
 
178
          for lang in $ALL_LINGUAS; do
 
179
            POFILES="$POFILES $srcdirpre$lang.po"
 
180
            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
 
181
            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
 
182
            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
 
183
          done
 
184
          # CATALOGS depends on both $ac_dir and the user's LINGUAS
 
185
          # environment variable.
 
186
          INST_LINGUAS=
 
187
          if test -n "$ALL_LINGUAS"; then
 
188
            for presentlang in $ALL_LINGUAS; do
 
189
              useit=no
 
190
              if test "%UNSET%" != "$LINGUAS"; then
 
191
                desiredlanguages="$LINGUAS"
 
192
              else
 
193
                desiredlanguages="$ALL_LINGUAS"
 
194
              fi
 
195
              for desiredlang in $desiredlanguages; do
 
196
                # Use the presentlang catalog if desiredlang is
 
197
                #   a. equal to presentlang, or
 
198
                #   b. a variant of presentlang (because in this case,
 
199
                #      presentlang can be used as a fallback for messages
 
200
                #      which are not translated in the desiredlang catalog).
 
201
                case "$desiredlang" in
 
202
                  "$presentlang"*) useit=yes;;
 
203
                esac
 
204
              done
 
205
              if test $useit = yes; then
 
206
                INST_LINGUAS="$INST_LINGUAS $presentlang"
 
207
              fi
 
208
            done
 
209
          fi
 
210
          CATALOGS=
 
211
          if test -n "$INST_LINGUAS"; then
 
212
            for lang in $INST_LINGUAS; do
 
213
              CATALOGS="$CATALOGS $lang.gmo"
 
214
            done
 
215
          fi
 
216
          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
 
217
          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
 
218
          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
 
219
            if test -f "$f"; then
 
220
              case "$f" in
 
221
                *.orig | *.bak | *~) ;;
 
222
                *) cat "$f" >> "$ac_dir/Makefile" ;;
 
223
              esac
 
224
            fi
 
225
          done
 
226
        fi
 
227
        ;;
 
228
      esac
 
229
    done]],
 
230
   [# Capture the value of obsolete ALL_LINGUAS because we need it to compute
 
231
    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
 
232
    # from automake < 1.5.
 
233
    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
 
234
    # Capture the value of LINGUAS because we need it to compute CATALOGS.
 
235
    LINGUAS="${LINGUAS-%UNSET%}"
 
236
   ])
 
237
])
 
238
 
 
239
dnl Postprocesses a Makefile in a directory containing PO files.
 
240
AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE],
 
241
[
 
242
  # When this code is run, in config.status, two variables have already been
 
243
  # set:
 
244
  # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in,
 
245
  # - LINGUAS is the value of the environment variable LINGUAS at configure
 
246
  #   time.
 
247
 
 
248
changequote(,)dnl
 
249
  # Adjust a relative srcdir.
 
250
  ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
 
251
  ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
 
252
  ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
 
253
  # In autoconf-2.13 it is called $ac_given_srcdir.
 
254
  # In autoconf-2.50 it is called $srcdir.
 
255
  test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
 
256
  case "$ac_given_srcdir" in
 
257
    .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
 
258
    /*) top_srcdir="$ac_given_srcdir" ;;
 
259
    *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
 
260
  esac
 
261
 
 
262
  # Find a way to echo strings without interpreting backslash.
 
263
  if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then
 
264
    gt_echo='echo'
 
265
  else
 
266
    if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then
 
267
      gt_echo='printf %s\n'
 
268
    else
 
269
      echo_func () {
 
270
        cat <<EOT
 
271
$*
 
272
EOT
 
273
      }
 
274
      gt_echo='echo_func'
 
275
    fi
 
276
  fi
 
277
 
 
278
  # A sed script that extracts the value of VARIABLE from a Makefile.
 
279
  sed_x_variable='
 
280
# Test if the hold space is empty.
 
281
x
 
282
s/P/P/
 
283
x
 
284
ta
 
285
# Yes it was empty. Look if we have the expected variable definition.
 
286
/^[      ]*VARIABLE[     ]*=/{
 
287
  # Seen the first line of the variable definition.
 
288
  s/^[   ]*VARIABLE[     ]*=//
 
289
  ba
 
290
}
 
291
bd
 
292
:a
 
293
# Here we are processing a line from the variable definition.
 
294
# Remove comment, more precisely replace it with a space.
 
295
s/#.*$/ /
 
296
# See if the line ends in a backslash.
 
297
tb
 
298
:b
 
299
s/\\$//
 
300
# Print the line, without the trailing backslash.
 
301
p
 
302
tc
 
303
# There was no trailing backslash. The end of the variable definition is
 
304
# reached. Clear the hold space.
 
305
s/^.*$//
 
306
x
 
307
bd
 
308
:c
 
309
# A trailing backslash means that the variable definition continues in the
 
310
# next line. Put a nonempty string into the hold space to indicate this.
 
311
s/^.*$/P/
 
312
x
 
313
:d
 
314
'
 
315
changequote([,])dnl
 
316
 
 
317
  # Set POTFILES to the value of the Makefile variable POTFILES.
 
318
  sed_x_POTFILES=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'`
 
319
  POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"`
 
320
  # Compute POTFILES_DEPS as
 
321
  #   $(foreach file, $(POTFILES), $(top_srcdir)/$(file))
 
322
  POTFILES_DEPS=
 
323
  for file in $POTFILES; do
 
324
    POTFILES_DEPS="$POTFILES_DEPS "'$(top_srcdir)/'"$file"
 
325
  done
 
326
  POMAKEFILEDEPS=""
 
327
 
 
328
  if test -n "$OBSOLETE_ALL_LINGUAS"; then
 
329
    test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
 
330
  fi
 
331
  if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
 
332
    # The LINGUAS file contains the set of available languages.
 
333
    ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
 
334
    POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
 
335
  else
 
336
    # Set ALL_LINGUAS to the value of the Makefile variable LINGUAS.
 
337
    sed_x_LINGUAS=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'`
 
338
    ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"`
 
339
  fi
 
340
  # Hide the ALL_LINGUAS assigment from automake < 1.5.
 
341
  eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
 
342
  # Compute POFILES
 
343
  # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
 
344
  # Compute UPDATEPOFILES
 
345
  # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
 
346
  # Compute DUMMYPOFILES
 
347
  # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
 
348
  # Compute GMOFILES
 
349
  # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
 
350
  # Compute PROPERTIESFILES
 
351
  # as      $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).properties)
 
352
  # Compute CLASSFILES
 
353
  # as      $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).class)
 
354
  # Compute QMFILES
 
355
  # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm)
 
356
  # Compute MSGFILES
 
357
  # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg)
 
358
  # Compute RESOURCESDLLFILES
 
359
  # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll)
 
360
  case "$ac_given_srcdir" in
 
361
    .) srcdirpre= ;;
 
362
    *) srcdirpre='$(srcdir)/' ;;
 
363
  esac
 
364
  POFILES=
 
365
  UPDATEPOFILES=
 
366
  DUMMYPOFILES=
 
367
  GMOFILES=
 
368
  PROPERTIESFILES=
 
369
  CLASSFILES=
 
370
  QMFILES=
 
371
  MSGFILES=
 
372
  RESOURCESDLLFILES=
 
373
  for lang in $ALL_LINGUAS; do
 
374
    POFILES="$POFILES $srcdirpre$lang.po"
 
375
    UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
 
376
    DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
 
377
    GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
 
378
    PROPERTIESFILES="$PROPERTIESFILES \$(top_srcdir)/\$(DOMAIN)_$lang.properties"
 
379
    CLASSFILES="$CLASSFILES \$(top_srcdir)/\$(DOMAIN)_$lang.class"
 
380
    QMFILES="$QMFILES $srcdirpre$lang.qm"
 
381
    frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
 
382
    MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg"
 
383
    frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
 
384
    RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll"
 
385
  done
 
386
  # CATALOGS depends on both $ac_dir and the user's LINGUAS
 
387
  # environment variable.
 
388
  INST_LINGUAS=
 
389
  if test -n "$ALL_LINGUAS"; then
 
390
    for presentlang in $ALL_LINGUAS; do
 
391
      useit=no
 
392
      if test "%UNSET%" != "$LINGUAS"; then
 
393
        desiredlanguages="$LINGUAS"
 
394
      else
 
395
        desiredlanguages="$ALL_LINGUAS"
 
396
      fi
 
397
      for desiredlang in $desiredlanguages; do
 
398
        # Use the presentlang catalog if desiredlang is
 
399
        #   a. equal to presentlang, or
 
400
        #   b. a variant of presentlang (because in this case,
 
401
        #      presentlang can be used as a fallback for messages
 
402
        #      which are not translated in the desiredlang catalog).
 
403
        case "$desiredlang" in
 
404
          "$presentlang"*) useit=yes;;
 
405
        esac
 
406
      done
 
407
      if test $useit = yes; then
 
408
        INST_LINGUAS="$INST_LINGUAS $presentlang"
 
409
      fi
 
410
    done
 
411
  fi
 
412
  CATALOGS=
 
413
  JAVACATALOGS=
 
414
  QTCATALOGS=
 
415
  TCLCATALOGS=
 
416
  CSHARPCATALOGS=
 
417
  if test -n "$INST_LINGUAS"; then
 
418
    for lang in $INST_LINGUAS; do
 
419
      CATALOGS="$CATALOGS $lang.gmo"
 
420
      JAVACATALOGS="$JAVACATALOGS \$(DOMAIN)_$lang.properties"
 
421
      QTCATALOGS="$QTCATALOGS $lang.qm"
 
422
      frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
 
423
      TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg"
 
424
      frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
 
425
      CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll"
 
426
    done
 
427
  fi
 
428
 
 
429
  sed -e "s|@POTFILES_DEPS@|$POTFILES_DEPS|g" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@PROPERTIESFILES@|$PROPERTIESFILES|g" -e "s|@CLASSFILES@|$CLASSFILES|g" -e "s|@QMFILES@|$QMFILES|g" -e "s|@MSGFILES@|$MSGFILES|g" -e "s|@RESOURCESDLLFILES@|$RESOURCESDLLFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@JAVACATALOGS@|$JAVACATALOGS|g" -e "s|@QTCATALOGS@|$QTCATALOGS|g" -e "s|@TCLCATALOGS@|$TCLCATALOGS|g" -e "s|@CSHARPCATALOGS@|$CSHARPCATALOGS|g" -e 's,^#distdir:,distdir:,' < "$ac_file" > "$ac_file.tmp"
 
430
  if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then
 
431
    # Add dependencies that cannot be formulated as a simple suffix rule.
 
432
    for lang in $ALL_LINGUAS; do
 
433
      frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
 
434
      cat >> "$ac_file.tmp" <<EOF
 
435
$frobbedlang.msg: $lang.po
 
436
        @echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \
 
437
        \$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
 
438
EOF
 
439
    done
 
440
  fi
 
441
  if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then
 
442
    # Add dependencies that cannot be formulated as a simple suffix rule.
 
443
    for lang in $ALL_LINGUAS; do
 
444
      frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
 
445
      cat >> "$ac_file.tmp" <<EOF
 
446
$frobbedlang/\$(DOMAIN).resources.dll: $lang.po
 
447
        @echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \
 
448
        \$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
 
449
EOF
 
450
    done
 
451
  fi
 
452
  if test -n "$POMAKEFILEDEPS"; then
 
453
    cat >> "$ac_file.tmp" <<EOF
 
454
Makefile: $POMAKEFILEDEPS
 
455
EOF
 
456
  fi
 
457
  mv "$ac_file.tmp" "$ac_file"
 
458
])
 
459
 
 
460
dnl Initializes the accumulator used by AM_XGETTEXT_OPTION.
 
461
AC_DEFUN([AM_XGETTEXT_OPTION_INIT],
 
462
[
 
463
  XGETTEXT_EXTRA_OPTIONS=
 
464
])
 
465
 
 
466
dnl Registers an option to be passed to xgettext in the po subdirectory.
 
467
AC_DEFUN([AM_XGETTEXT_OPTION],
 
468
[
 
469
  AC_REQUIRE([AM_XGETTEXT_OPTION_INIT])
 
470
  XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS $1"
 
471
])
 
472
 
 
473
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
 
474
# Foundation, Inc.
 
475
#
 
476
# This file is free software; the Free Software Foundation
 
477
# gives unlimited permission to copy and/or distribute it,
 
478
# with or without modifications, as long as this notice is preserved.
 
479
 
 
480
# serial 1
 
481
 
 
482
# AM_AUTOMAKE_VERSION(VERSION)
 
483
# ----------------------------
 
484
# Automake X.Y traces this macro to ensure aclocal.m4 has been
 
485
# generated from the m4 files accompanying Automake X.Y.
 
486
# (This private macro should not be called outside this file.)
 
487
AC_DEFUN([AM_AUTOMAKE_VERSION],
 
488
[am__api_version='1.11'
 
489
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
 
490
dnl require some minimum version.  Point them to the right macro.
 
491
m4_if([$1], [1.11.6], [],
 
492
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 
493
])
 
494
 
 
495
# _AM_AUTOCONF_VERSION(VERSION)
 
496
# -----------------------------
 
497
# aclocal traces this macro to find the Autoconf version.
 
498
# This is a private macro too.  Using m4_define simplifies
 
499
# the logic in aclocal, which can simply ignore this definition.
 
500
m4_define([_AM_AUTOCONF_VERSION], [])
 
501
 
 
502
# AM_SET_CURRENT_AUTOMAKE_VERSION
 
503
# -------------------------------
 
504
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
 
505
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
 
506
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
 
507
[AM_AUTOMAKE_VERSION([1.11.6])dnl
 
508
m4_ifndef([AC_AUTOCONF_VERSION],
 
509
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
510
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
 
511
 
 
512
# Copyright (C) 2011 Free Software Foundation, Inc.
 
513
#
 
514
# This file is free software; the Free Software Foundation
 
515
# gives unlimited permission to copy and/or distribute it,
 
516
# with or without modifications, as long as this notice is preserved.
 
517
 
 
518
# serial 1
 
519
 
 
520
# AM_PROG_AR([ACT-IF-FAIL])
 
521
# -------------------------
 
522
# Try to determine the archiver interface, and trigger the ar-lib wrapper
 
523
# if it is needed.  If the detection of archiver interface fails, run
 
524
# ACT-IF-FAIL (default is to abort configure with a proper error message).
 
525
AC_DEFUN([AM_PROG_AR],
 
526
[AC_BEFORE([$0], [LT_INIT])dnl
 
527
AC_BEFORE([$0], [AC_PROG_LIBTOOL])dnl
 
528
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
529
AC_REQUIRE_AUX_FILE([ar-lib])dnl
 
530
AC_CHECK_TOOLS([AR], [ar lib "link -lib"], [false])
 
531
: ${AR=ar}
 
532
 
 
533
AC_CACHE_CHECK([the archiver ($AR) interface], [am_cv_ar_interface],
 
534
  [am_cv_ar_interface=ar
 
535
   AC_COMPILE_IFELSE([AC_LANG_SOURCE([[int some_variable = 0;]])],
 
536
     [am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
 
537
      AC_TRY_EVAL([am_ar_try])
 
538
      if test "$ac_status" -eq 0; then
 
539
        am_cv_ar_interface=ar
 
540
      else
 
541
        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
 
542
        AC_TRY_EVAL([am_ar_try])
 
543
        if test "$ac_status" -eq 0; then
 
544
          am_cv_ar_interface=lib
 
545
        else
 
546
          am_cv_ar_interface=unknown
 
547
        fi
 
548
      fi
 
549
      rm -f conftest.lib libconftest.a
 
550
     ])
 
551
   ])
 
552
 
 
553
case $am_cv_ar_interface in
 
554
ar)
 
555
  ;;
 
556
lib)
 
557
  # Microsoft lib, so override with the ar-lib wrapper script.
 
558
  # FIXME: It is wrong to rewrite AR.
 
559
  # But if we don't then we get into trouble of one sort or another.
 
560
  # A longer-term fix would be to have automake use am__AR in this case,
 
561
  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
 
562
  # similar.
 
563
  AR="$am_aux_dir/ar-lib $AR"
 
564
  ;;
 
565
unknown)
 
566
  m4_default([$1],
 
567
             [AC_MSG_ERROR([could not determine $AR interface])])
 
568
  ;;
 
569
esac
 
570
AC_SUBST([AR])dnl
 
571
])
 
572
 
 
573
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
 
574
 
 
575
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
 
576
#
 
577
# This file is free software; the Free Software Foundation
 
578
# gives unlimited permission to copy and/or distribute it,
 
579
# with or without modifications, as long as this notice is preserved.
 
580
 
 
581
# serial 1
 
582
 
 
583
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
 
584
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
 
585
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
 
586
#
 
587
# Of course, Automake must honor this variable whenever it calls a
 
588
# tool from the auxiliary directory.  The problem is that $srcdir (and
 
589
# therefore $ac_aux_dir as well) can be either absolute or relative,
 
590
# depending on how configure is run.  This is pretty annoying, since
 
591
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
 
592
# source directory, any form will work fine, but in subdirectories a
 
593
# relative path needs to be adjusted first.
 
594
#
 
595
# $ac_aux_dir/missing
 
596
#    fails when called from a subdirectory if $ac_aux_dir is relative
 
597
# $top_srcdir/$ac_aux_dir/missing
 
598
#    fails if $ac_aux_dir is absolute,
 
599
#    fails when called from a subdirectory in a VPATH build with
 
600
#          a relative $ac_aux_dir
 
601
#
 
602
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
 
603
# are both prefixed by $srcdir.  In an in-source build this is usually
 
604
# harmless because $srcdir is `.', but things will broke when you
 
605
# start a VPATH build or use an absolute $srcdir.
 
606
#
 
607
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
 
608
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
 
609
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
 
610
# and then we would define $MISSING as
 
611
#   MISSING="\${SHELL} $am_aux_dir/missing"
 
612
# This will work as long as MISSING is not called from configure, because
 
613
# unfortunately $(top_srcdir) has no meaning in configure.
 
614
# However there are other variables, like CC, which are often used in
 
615
# configure, and could therefore not use this "fixed" $ac_aux_dir.
 
616
#
 
617
# Another solution, used here, is to always expand $ac_aux_dir to an
 
618
# absolute PATH.  The drawback is that using absolute paths prevent a
 
619
# configured tree to be moved without reconfiguration.
 
620
 
 
621
AC_DEFUN([AM_AUX_DIR_EXPAND],
 
622
[dnl Rely on autoconf to set up CDPATH properly.
 
623
AC_PREREQ([2.50])dnl
 
624
# expand $ac_aux_dir to an absolute path
 
625
am_aux_dir=`cd $ac_aux_dir && pwd`
 
626
])
 
627
 
 
628
# AM_CONDITIONAL                                            -*- Autoconf -*-
 
629
 
 
630
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
 
631
# Free Software Foundation, Inc.
 
632
#
 
633
# This file is free software; the Free Software Foundation
 
634
# gives unlimited permission to copy and/or distribute it,
 
635
# with or without modifications, as long as this notice is preserved.
 
636
 
 
637
# serial 9
 
638
 
 
639
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
 
640
# -------------------------------------
 
641
# Define a conditional.
 
642
AC_DEFUN([AM_CONDITIONAL],
 
643
[AC_PREREQ(2.52)dnl
 
644
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
 
645
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
 
646
AC_SUBST([$1_TRUE])dnl
 
647
AC_SUBST([$1_FALSE])dnl
 
648
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
 
649
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
 
650
m4_define([_AM_COND_VALUE_$1], [$2])dnl
 
651
if $2; then
 
652
  $1_TRUE=
 
653
  $1_FALSE='#'
 
654
else
 
655
  $1_TRUE='#'
 
656
  $1_FALSE=
 
657
fi
 
658
AC_CONFIG_COMMANDS_PRE(
 
659
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
 
660
  AC_MSG_ERROR([[conditional "$1" was never defined.
 
661
Usually this means the macro was only invoked conditionally.]])
 
662
fi])])
 
663
 
 
664
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
 
665
# 2010, 2011 Free Software Foundation, Inc.
 
666
#
 
667
# This file is free software; the Free Software Foundation
 
668
# gives unlimited permission to copy and/or distribute it,
 
669
# with or without modifications, as long as this notice is preserved.
 
670
 
 
671
# serial 12
 
672
 
 
673
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
 
674
# written in clear, in which case automake, when reading aclocal.m4,
 
675
# will think it sees a *use*, and therefore will trigger all it's
 
676
# C support machinery.  Also note that it means that autoscan, seeing
 
677
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
 
678
 
 
679
 
 
680
# _AM_DEPENDENCIES(NAME)
 
681
# ----------------------
 
682
# See how the compiler implements dependency checking.
 
683
# NAME is "CC", "CXX", "GCJ", or "OBJC".
 
684
# We try a few techniques and use that to set a single cache variable.
 
685
#
 
686
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
 
687
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
 
688
# dependency, and given that the user is not expected to run this macro,
 
689
# just rely on AC_PROG_CC.
 
690
AC_DEFUN([_AM_DEPENDENCIES],
 
691
[AC_REQUIRE([AM_SET_DEPDIR])dnl
 
692
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
 
693
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
 
694
AC_REQUIRE([AM_DEP_TRACK])dnl
 
695
 
 
696
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
 
697
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
 
698
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
699
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
 
700
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
 
701
                   [depcc="$$1"   am_compiler_list=])
 
702
 
 
703
AC_CACHE_CHECK([dependency style of $depcc],
 
704
               [am_cv_$1_dependencies_compiler_type],
 
705
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
706
  # We make a subdir and do the tests there.  Otherwise we can end up
 
707
  # making bogus files that we don't know about and never remove.  For
 
708
  # instance it was reported that on HP-UX the gcc test will end up
 
709
  # making a dummy file named `D' -- because `-MD' means `put the output
 
710
  # in D'.
 
711
  rm -rf conftest.dir
 
712
  mkdir conftest.dir
 
713
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
714
  # using a relative directory.
 
715
  cp "$am_depcomp" conftest.dir
 
716
  cd conftest.dir
 
717
  # We will build objects and dependencies in a subdirectory because
 
718
  # it helps to detect inapplicable dependency modes.  For instance
 
719
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
720
  # side effect of compilation, but ICC will put the dependencies in
 
721
  # the current directory while Tru64 will put them in the object
 
722
  # directory.
 
723
  mkdir sub
 
724
 
 
725
  am_cv_$1_dependencies_compiler_type=none
 
726
  if test "$am_compiler_list" = ""; then
 
727
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
 
728
  fi
 
729
  am__universal=false
 
730
  m4_case([$1], [CC],
 
731
    [case " $depcc " in #(
 
732
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
733
     esac],
 
734
    [CXX],
 
735
    [case " $depcc " in #(
 
736
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
737
     esac])
 
738
 
 
739
  for depmode in $am_compiler_list; do
 
740
    # Setup a source with many dependencies, because some compilers
 
741
    # like to wrap large dependency lists on column 80 (with \), and
 
742
    # we should not choose a depcomp mode which is confused by this.
 
743
    #
 
744
    # We need to recreate these files for each test, as the compiler may
 
745
    # overwrite some of them when testing with obscure command lines.
 
746
    # This happens at least with the AIX C compiler.
 
747
    : > sub/conftest.c
 
748
    for i in 1 2 3 4 5 6; do
 
749
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
750
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
751
      # Solaris 8's {/usr,}/bin/sh.
 
752
      touch sub/conftst$i.h
 
753
    done
 
754
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
755
 
 
756
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
757
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
758
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
759
    # versions had trouble with output in subdirs
 
760
    am__obj=sub/conftest.${OBJEXT-o}
 
761
    am__minus_obj="-o $am__obj"
 
762
    case $depmode in
 
763
    gcc)
 
764
      # This depmode causes a compiler race in universal mode.
 
765
      test "$am__universal" = false || continue
 
766
      ;;
 
767
    nosideeffect)
 
768
      # after this tag, mechanisms are not by side-effect, so they'll
 
769
      # only be used when explicitly requested
 
770
      if test "x$enable_dependency_tracking" = xyes; then
 
771
        continue
 
772
      else
 
773
        break
 
774
      fi
 
775
      ;;
 
776
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
777
      # This compiler won't grok `-c -o', but also, the minuso test has
 
778
      # not run yet.  These depmodes are late enough in the game, and
 
779
      # so weak that their functioning should not be impacted.
 
780
      am__obj=conftest.${OBJEXT-o}
 
781
      am__minus_obj=
 
782
      ;;
 
783
    none) break ;;
 
784
    esac
 
785
    if depmode=$depmode \
 
786
       source=sub/conftest.c object=$am__obj \
 
787
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
788
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
789
         >/dev/null 2>conftest.err &&
 
790
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
791
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
792
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
793
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
794
      # icc doesn't choke on unknown options, it will just issue warnings
 
795
      # or remarks (even with -Werror).  So we grep stderr for any message
 
796
      # that says an option was ignored or not supported.
 
797
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
798
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
799
      # The diagnosis changed in icc 8.0:
 
800
      #   icc: Command line remark: option '-MP' not supported
 
801
      if (grep 'ignoring option' conftest.err ||
 
802
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
803
        am_cv_$1_dependencies_compiler_type=$depmode
 
804
        break
 
805
      fi
 
806
    fi
 
807
  done
 
808
 
 
809
  cd ..
 
810
  rm -rf conftest.dir
 
811
else
 
812
  am_cv_$1_dependencies_compiler_type=none
 
813
fi
 
814
])
 
815
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
 
816
AM_CONDITIONAL([am__fastdep$1], [
 
817
  test "x$enable_dependency_tracking" != xno \
 
818
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
 
819
])
 
820
 
 
821
 
 
822
# AM_SET_DEPDIR
 
823
# -------------
 
824
# Choose a directory name for dependency files.
 
825
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
 
826
AC_DEFUN([AM_SET_DEPDIR],
 
827
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
828
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
 
829
])
 
830
 
 
831
 
 
832
# AM_DEP_TRACK
 
833
# ------------
 
834
AC_DEFUN([AM_DEP_TRACK],
 
835
[AC_ARG_ENABLE(dependency-tracking,
 
836
[  --disable-dependency-tracking  speeds up one-time build
 
837
  --enable-dependency-tracking   do not reject slow dependency extractors])
 
838
if test "x$enable_dependency_tracking" != xno; then
 
839
  am_depcomp="$ac_aux_dir/depcomp"
 
840
  AMDEPBACKSLASH='\'
 
841
  am__nodep='_no'
 
842
fi
 
843
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
 
844
AC_SUBST([AMDEPBACKSLASH])dnl
 
845
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
 
846
AC_SUBST([am__nodep])dnl
 
847
_AM_SUBST_NOTMAKE([am__nodep])dnl
 
848
])
 
849
 
 
850
# Generate code to set up dependency tracking.              -*- Autoconf -*-
 
851
 
 
852
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
 
853
# Free Software Foundation, Inc.
 
854
#
 
855
# This file is free software; the Free Software Foundation
 
856
# gives unlimited permission to copy and/or distribute it,
 
857
# with or without modifications, as long as this notice is preserved.
 
858
 
 
859
#serial 5
 
860
 
 
861
# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
862
# ------------------------------
 
863
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
 
864
[{
 
865
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
866
  # are listed without --file.  Let's play safe and only enable the eval
 
867
  # if we detect the quoting.
 
868
  case $CONFIG_FILES in
 
869
  *\'*) eval set x "$CONFIG_FILES" ;;
 
870
  *)   set x $CONFIG_FILES ;;
 
871
  esac
 
872
  shift
 
873
  for mf
 
874
  do
 
875
    # Strip MF so we end up with the name of the file.
 
876
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
877
    # Check whether this is an Automake generated Makefile or not.
 
878
    # We used to match only the files named `Makefile.in', but
 
879
    # some people rename them; so instead we look at the file content.
 
880
    # Grep'ing the first line is not enough: some people post-process
 
881
    # each Makefile.in and add a new line on top of each file to say so.
 
882
    # Grep'ing the whole file is not good either: AIX grep has a line
 
883
    # limit of 2048, but all sed's we know have understand at least 4000.
 
884
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
885
      dirpart=`AS_DIRNAME("$mf")`
 
886
    else
 
887
      continue
 
888
    fi
 
889
    # Extract the definition of DEPDIR, am__include, and am__quote
 
890
    # from the Makefile without running `make'.
 
891
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
892
    test -z "$DEPDIR" && continue
 
893
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
894
    test -z "am__include" && continue
 
895
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
896
    # When using ansi2knr, U may be empty or an underscore; expand it
 
897
    U=`sed -n 's/^U = //p' < "$mf"`
 
898
    # Find all dependency output files, they are included files with
 
899
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
900
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
901
    # expansion.
 
902
    for file in `sed -n "
 
903
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
904
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
905
      # Make sure the directory exists.
 
906
      test -f "$dirpart/$file" && continue
 
907
      fdir=`AS_DIRNAME(["$file"])`
 
908
      AS_MKDIR_P([$dirpart/$fdir])
 
909
      # echo "creating $dirpart/$file"
 
910
      echo '# dummy' > "$dirpart/$file"
 
911
    done
 
912
  done
 
913
}
 
914
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
915
 
 
916
 
 
917
# AM_OUTPUT_DEPENDENCY_COMMANDS
 
918
# -----------------------------
 
919
# This macro should only be invoked once -- use via AC_REQUIRE.
 
920
#
 
921
# This code is only required when automatic dependency tracking
 
922
# is enabled.  FIXME.  This creates each `.P' file that we will
 
923
# need in order to bootstrap the dependency handling code.
 
924
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
 
925
[AC_CONFIG_COMMANDS([depfiles],
 
926
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
 
927
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
 
928
])
 
929
 
 
930
# Do all the work for Automake.                             -*- Autoconf -*-
 
931
 
 
932
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
933
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
 
934
#
 
935
# This file is free software; the Free Software Foundation
 
936
# gives unlimited permission to copy and/or distribute it,
 
937
# with or without modifications, as long as this notice is preserved.
 
938
 
 
939
# serial 16
 
940
 
 
941
# This macro actually does too much.  Some checks are only needed if
 
942
# your package does certain things.  But this isn't really a big deal.
 
943
 
 
944
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
 
945
# AM_INIT_AUTOMAKE([OPTIONS])
 
946
# -----------------------------------------------
 
947
# The call with PACKAGE and VERSION arguments is the old style
 
948
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
 
949
# and VERSION should now be passed to AC_INIT and removed from
 
950
# the call to AM_INIT_AUTOMAKE.
 
951
# We support both call styles for the transition.  After
 
952
# the next Automake release, Autoconf can make the AC_INIT
 
953
# arguments mandatory, and then we can depend on a new Autoconf
 
954
# release and drop the old call support.
 
955
AC_DEFUN([AM_INIT_AUTOMAKE],
 
956
[AC_PREREQ([2.62])dnl
 
957
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
 
958
dnl the ones we care about.
 
959
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
 
960
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
 
961
AC_REQUIRE([AC_PROG_INSTALL])dnl
 
962
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
963
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
964
  # is not polluted with repeated "-I."
 
965
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 
966
  # test to see if srcdir already configured
 
967
  if test -f $srcdir/config.status; then
 
968
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
969
  fi
 
970
fi
 
971
 
 
972
# test whether we have cygpath
 
973
if test -z "$CYGPATH_W"; then
 
974
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
975
    CYGPATH_W='cygpath -w'
 
976
  else
 
977
    CYGPATH_W=echo
 
978
  fi
 
979
fi
 
980
AC_SUBST([CYGPATH_W])
 
981
 
 
982
# Define the identity of the package.
 
983
dnl Distinguish between old-style and new-style calls.
 
984
m4_ifval([$2],
 
985
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
 
986
 AC_SUBST([PACKAGE], [$1])dnl
 
987
 AC_SUBST([VERSION], [$2])],
 
988
[_AM_SET_OPTIONS([$1])dnl
 
989
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 
990
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
991
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
 
992
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
 
993
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
 
994
 
 
995
_AM_IF_OPTION([no-define],,
 
996
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
 
997
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
 
998
 
 
999
# Some tools Automake needs.
 
1000
AC_REQUIRE([AM_SANITY_CHECK])dnl
 
1001
AC_REQUIRE([AC_ARG_PROGRAM])dnl
 
1002
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
 
1003
AM_MISSING_PROG(AUTOCONF, autoconf)
 
1004
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
 
1005
AM_MISSING_PROG(AUTOHEADER, autoheader)
 
1006
AM_MISSING_PROG(MAKEINFO, makeinfo)
 
1007
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
1008
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
 
1009
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
 
1010
# We need awk for the "check" target.  The system "awk" is bad on
 
1011
# some platforms.
 
1012
AC_REQUIRE([AC_PROG_AWK])dnl
 
1013
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
 
1014
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
1015
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
 
1016
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
1017
                             [_AM_PROG_TAR([v7])])])
 
1018
_AM_IF_OPTION([no-dependencies],,
 
1019
[AC_PROVIDE_IFELSE([AC_PROG_CC],
 
1020
                  [_AM_DEPENDENCIES(CC)],
 
1021
                  [define([AC_PROG_CC],
 
1022
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
1023
AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
1024
                  [_AM_DEPENDENCIES(CXX)],
 
1025
                  [define([AC_PROG_CXX],
 
1026
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
1027
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 
1028
                  [_AM_DEPENDENCIES(OBJC)],
 
1029
                  [define([AC_PROG_OBJC],
 
1030
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
 
1031
])
 
1032
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
 
1033
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
 
1034
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
 
1035
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
 
1036
AC_CONFIG_COMMANDS_PRE(dnl
 
1037
[m4_provide_if([_AM_COMPILER_EXEEXT],
 
1038
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
 
1039
])
 
1040
 
 
1041
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
 
1042
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
 
1043
dnl mangled by Autoconf and run in a shell conditional statement.
 
1044
m4_define([_AC_COMPILER_EXEEXT],
 
1045
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
 
1046
 
 
1047
 
 
1048
# When config.status generates a header, we must update the stamp-h file.
 
1049
# This file resides in the same directory as the config header
 
1050
# that is generated.  The stamp files are numbered to have different names.
 
1051
 
 
1052
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
 
1053
# loop where config.status creates the headers, so we can generate
 
1054
# our stamp files there.
 
1055
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
 
1056
[# Compute $1's index in $config_headers.
 
1057
_am_arg=$1
 
1058
_am_stamp_count=1
 
1059
for _am_header in $config_headers :; do
 
1060
  case $_am_header in
 
1061
    $_am_arg | $_am_arg:* )
 
1062
      break ;;
 
1063
    * )
 
1064
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
1065
  esac
 
1066
done
 
1067
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
 
1068
 
 
1069
# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
 
1070
# Inc.
 
1071
#
 
1072
# This file is free software; the Free Software Foundation
 
1073
# gives unlimited permission to copy and/or distribute it,
 
1074
# with or without modifications, as long as this notice is preserved.
 
1075
 
 
1076
# serial 1
 
1077
 
 
1078
# AM_PROG_INSTALL_SH
 
1079
# ------------------
 
1080
# Define $install_sh.
 
1081
AC_DEFUN([AM_PROG_INSTALL_SH],
 
1082
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
1083
if test x"${install_sh}" != xset; then
 
1084
  case $am_aux_dir in
 
1085
  *\ * | *\     *)
 
1086
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
1087
  *)
 
1088
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
1089
  esac
 
1090
fi
 
1091
AC_SUBST(install_sh)])
 
1092
 
 
1093
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
 
1094
#
 
1095
# This file is free software; the Free Software Foundation
 
1096
# gives unlimited permission to copy and/or distribute it,
 
1097
# with or without modifications, as long as this notice is preserved.
 
1098
 
 
1099
# serial 2
 
1100
 
 
1101
# Check whether the underlying file-system supports filenames
 
1102
# with a leading dot.  For instance MS-DOS doesn't.
 
1103
AC_DEFUN([AM_SET_LEADING_DOT],
 
1104
[rm -rf .tst 2>/dev/null
 
1105
mkdir .tst 2>/dev/null
 
1106
if test -d .tst; then
 
1107
  am__leading_dot=.
 
1108
else
 
1109
  am__leading_dot=_
 
1110
fi
 
1111
rmdir .tst 2>/dev/null
 
1112
AC_SUBST([am__leading_dot])])
 
1113
 
 
1114
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
 
1115
 
 
1116
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
 
1117
#
 
1118
# This file is free software; the Free Software Foundation
 
1119
# gives unlimited permission to copy and/or distribute it,
 
1120
# with or without modifications, as long as this notice is preserved.
 
1121
 
 
1122
# serial 4
 
1123
 
 
1124
# AM_MAKE_INCLUDE()
 
1125
# -----------------
 
1126
# Check to see how make treats includes.
 
1127
AC_DEFUN([AM_MAKE_INCLUDE],
 
1128
[am_make=${MAKE-make}
 
1129
cat > confinc << 'END'
 
1130
am__doit:
 
1131
        @echo this is the am__doit target
 
1132
.PHONY: am__doit
 
1133
END
 
1134
# If we don't find an include directive, just comment out the code.
 
1135
AC_MSG_CHECKING([for style of include used by $am_make])
 
1136
am__include="#"
 
1137
am__quote=
 
1138
_am_result=none
 
1139
# First try GNU make style include.
 
1140
echo "include confinc" > confmf
 
1141
# Ignore all kinds of additional output from `make'.
 
1142
case `$am_make -s -f confmf 2> /dev/null` in #(
 
1143
*the\ am__doit\ target*)
 
1144
  am__include=include
 
1145
  am__quote=
 
1146
  _am_result=GNU
 
1147
  ;;
 
1148
esac
 
1149
# Now try BSD make style include.
 
1150
if test "$am__include" = "#"; then
 
1151
   echo '.include "confinc"' > confmf
 
1152
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
1153
   *the\ am__doit\ target*)
 
1154
     am__include=.include
 
1155
     am__quote="\""
 
1156
     _am_result=BSD
 
1157
     ;;
 
1158
   esac
 
1159
fi
 
1160
AC_SUBST([am__include])
 
1161
AC_SUBST([am__quote])
 
1162
AC_MSG_RESULT([$_am_result])
 
1163
rm -f confinc confmf
 
1164
])
 
1165
 
 
1166
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
 
1167
 
 
1168
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
 
1169
# Free Software Foundation, Inc.
 
1170
#
 
1171
# This file is free software; the Free Software Foundation
 
1172
# gives unlimited permission to copy and/or distribute it,
 
1173
# with or without modifications, as long as this notice is preserved.
 
1174
 
 
1175
# serial 6
 
1176
 
 
1177
# AM_MISSING_PROG(NAME, PROGRAM)
 
1178
# ------------------------------
 
1179
AC_DEFUN([AM_MISSING_PROG],
 
1180
[AC_REQUIRE([AM_MISSING_HAS_RUN])
 
1181
$1=${$1-"${am_missing_run}$2"}
 
1182
AC_SUBST($1)])
 
1183
 
 
1184
 
 
1185
# AM_MISSING_HAS_RUN
 
1186
# ------------------
 
1187
# Define MISSING if not defined so far and test if it supports --run.
 
1188
# If it does, set am_missing_run to use it, otherwise, to nothing.
 
1189
AC_DEFUN([AM_MISSING_HAS_RUN],
 
1190
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
1191
AC_REQUIRE_AUX_FILE([missing])dnl
 
1192
if test x"${MISSING+set}" != xset; then
 
1193
  case $am_aux_dir in
 
1194
  *\ * | *\     *)
 
1195
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
1196
  *)
 
1197
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
1198
  esac
 
1199
fi
 
1200
# Use eval to expand $SHELL
 
1201
if eval "$MISSING --run true"; then
 
1202
  am_missing_run="$MISSING --run "
 
1203
else
 
1204
  am_missing_run=
 
1205
  AC_MSG_WARN([`missing' script is too old or missing])
 
1206
fi
 
1207
])
 
1208
 
 
1209
# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
 
1210
# Inc.
 
1211
#
 
1212
# This file is free software; the Free Software Foundation
 
1213
# gives unlimited permission to copy and/or distribute it,
 
1214
# with or without modifications, as long as this notice is preserved.
 
1215
 
 
1216
# serial 1
 
1217
 
 
1218
# AM_PROG_MKDIR_P
 
1219
# ---------------
 
1220
# Check for `mkdir -p'.
 
1221
AC_DEFUN([AM_PROG_MKDIR_P],
 
1222
[AC_PREREQ([2.60])dnl
 
1223
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
1224
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
 
1225
dnl while keeping a definition of mkdir_p for backward compatibility.
 
1226
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
 
1227
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
 
1228
dnl Makefile.ins that do not define MKDIR_P, so we do our own
 
1229
dnl adjustment using top_builddir (which is defined more often than
 
1230
dnl MKDIR_P).
 
1231
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
 
1232
case $mkdir_p in
 
1233
  [[\\/$]]* | ?:[[\\/]]*) ;;
 
1234
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
1235
esac
 
1236
])
 
1237
 
 
1238
# Helper functions for option handling.                     -*- Autoconf -*-
 
1239
 
 
1240
# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
 
1241
# Foundation, Inc.
 
1242
#
 
1243
# This file is free software; the Free Software Foundation
 
1244
# gives unlimited permission to copy and/or distribute it,
 
1245
# with or without modifications, as long as this notice is preserved.
 
1246
 
 
1247
# serial 5
 
1248
 
 
1249
# _AM_MANGLE_OPTION(NAME)
 
1250
# -----------------------
 
1251
AC_DEFUN([_AM_MANGLE_OPTION],
 
1252
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
 
1253
 
 
1254
# _AM_SET_OPTION(NAME)
 
1255
# --------------------
 
1256
# Set option NAME.  Presently that only means defining a flag for this option.
 
1257
AC_DEFUN([_AM_SET_OPTION],
 
1258
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
 
1259
 
 
1260
# _AM_SET_OPTIONS(OPTIONS)
 
1261
# ------------------------
 
1262
# OPTIONS is a space-separated list of Automake options.
 
1263
AC_DEFUN([_AM_SET_OPTIONS],
 
1264
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 
1265
 
 
1266
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
 
1267
# -------------------------------------------
 
1268
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 
1269
AC_DEFUN([_AM_IF_OPTION],
 
1270
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
 
1271
 
 
1272
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
 
1273
 
 
1274
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
 
1275
# Free Software Foundation, Inc.
 
1276
#
 
1277
# This file is free software; the Free Software Foundation
 
1278
# gives unlimited permission to copy and/or distribute it,
 
1279
# with or without modifications, as long as this notice is preserved.
 
1280
 
 
1281
# serial 5
 
1282
 
 
1283
# AM_SANITY_CHECK
 
1284
# ---------------
 
1285
AC_DEFUN([AM_SANITY_CHECK],
 
1286
[AC_MSG_CHECKING([whether build environment is sane])
 
1287
# Just in case
 
1288
sleep 1
 
1289
echo timestamp > conftest.file
 
1290
# Reject unsafe characters in $srcdir or the absolute working directory
 
1291
# name.  Accept space and tab only in the latter.
 
1292
am_lf='
 
1293
'
 
1294
case `pwd` in
 
1295
  *[[\\\"\#\$\&\'\`$am_lf]]*)
 
1296
    AC_MSG_ERROR([unsafe absolute working directory name]);;
 
1297
esac
 
1298
case $srcdir in
 
1299
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
 
1300
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
 
1301
esac
 
1302
 
 
1303
# Do `set' in a subshell so we don't clobber the current shell's
 
1304
# arguments.  Must try -L first in case configure is actually a
 
1305
# symlink; some systems play weird games with the mod time of symlinks
 
1306
# (eg FreeBSD returns the mod time of the symlink's containing
 
1307
# directory).
 
1308
if (
 
1309
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
1310
   if test "$[*]" = "X"; then
 
1311
      # -L didn't work.
 
1312
      set X `ls -t "$srcdir/configure" conftest.file`
 
1313
   fi
 
1314
   rm -f conftest.file
 
1315
   if test "$[*]" != "X $srcdir/configure conftest.file" \
 
1316
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
 
1317
 
 
1318
      # If neither matched, then we have a broken ls.  This can happen
 
1319
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1320
      # broken ls alias from the environment.  This has actually
 
1321
      # happened.  Such a system could not be considered "sane".
 
1322
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
 
1323
alias in your environment])
 
1324
   fi
 
1325
 
 
1326
   test "$[2]" = conftest.file
 
1327
   )
 
1328
then
 
1329
   # Ok.
 
1330
   :
 
1331
else
 
1332
   AC_MSG_ERROR([newly created file is older than distributed files!
 
1333
Check your system clock])
 
1334
fi
 
1335
AC_MSG_RESULT(yes)])
 
1336
 
 
1337
# Copyright (C) 2009, 2011  Free Software Foundation, Inc.
 
1338
#
 
1339
# This file is free software; the Free Software Foundation
 
1340
# gives unlimited permission to copy and/or distribute it,
 
1341
# with or without modifications, as long as this notice is preserved.
 
1342
 
 
1343
# serial 2
 
1344
 
 
1345
# AM_SILENT_RULES([DEFAULT])
 
1346
# --------------------------
 
1347
# Enable less verbose build rules; with the default set to DEFAULT
 
1348
# (`yes' being less verbose, `no' or empty being verbose).
 
1349
AC_DEFUN([AM_SILENT_RULES],
 
1350
[AC_ARG_ENABLE([silent-rules],
 
1351
[  --enable-silent-rules          less verbose build output (undo: `make V=1')
 
1352
  --disable-silent-rules         verbose build output (undo: `make V=0')])
 
1353
case $enable_silent_rules in
 
1354
yes) AM_DEFAULT_VERBOSITY=0;;
 
1355
no)  AM_DEFAULT_VERBOSITY=1;;
 
1356
*)   AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
 
1357
esac
 
1358
dnl
 
1359
dnl A few `make' implementations (e.g., NonStop OS and NextStep)
 
1360
dnl do not support nested variable expansions.
 
1361
dnl See automake bug#9928 and bug#10237.
 
1362
am_make=${MAKE-make}
 
1363
AC_CACHE_CHECK([whether $am_make supports nested variables],
 
1364
   [am_cv_make_support_nested_variables],
 
1365
   [if AS_ECHO([['TRUE=$(BAR$(V))
 
1366
BAR0=false
 
1367
BAR1=true
 
1368
V=1
 
1369
am__doit:
 
1370
        @$(TRUE)
 
1371
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
 
1372
  am_cv_make_support_nested_variables=yes
 
1373
else
 
1374
  am_cv_make_support_nested_variables=no
 
1375
fi])
 
1376
if test $am_cv_make_support_nested_variables = yes; then
 
1377
  dnl Using `$V' instead of `$(V)' breaks IRIX make.
 
1378
  AM_V='$(V)'
 
1379
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 
1380
else
 
1381
  AM_V=$AM_DEFAULT_VERBOSITY
 
1382
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 
1383
fi
 
1384
AC_SUBST([AM_V])dnl
 
1385
AM_SUBST_NOTMAKE([AM_V])dnl
 
1386
AC_SUBST([AM_DEFAULT_V])dnl
 
1387
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
 
1388
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
 
1389
AM_BACKSLASH='\'
 
1390
AC_SUBST([AM_BACKSLASH])dnl
 
1391
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
 
1392
])
 
1393
 
 
1394
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
 
1395
#
 
1396
# This file is free software; the Free Software Foundation
 
1397
# gives unlimited permission to copy and/or distribute it,
 
1398
# with or without modifications, as long as this notice is preserved.
 
1399
 
 
1400
# serial 1
 
1401
 
 
1402
# AM_PROG_INSTALL_STRIP
 
1403
# ---------------------
 
1404
# One issue with vendor `install' (even GNU) is that you can't
 
1405
# specify the program used to strip binaries.  This is especially
 
1406
# annoying in cross-compiling environments, where the build's strip
 
1407
# is unlikely to handle the host's binaries.
 
1408
# Fortunately install-sh will honor a STRIPPROG variable, so we
 
1409
# always use install-sh in `make install-strip', and initialize
 
1410
# STRIPPROG with the value of the STRIP variable (set by the user).
 
1411
AC_DEFUN([AM_PROG_INSTALL_STRIP],
 
1412
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
1413
# Installed binaries are usually stripped using `strip' when the user
 
1414
# run `make install-strip'.  However `strip' might not be the right
 
1415
# tool to use in cross-compilation environments, therefore Automake
 
1416
# will honor the `STRIP' environment variable to overrule this program.
 
1417
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
 
1418
if test "$cross_compiling" != no; then
 
1419
  AC_CHECK_TOOL([STRIP], [strip], :)
 
1420
fi
 
1421
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
1422
AC_SUBST([INSTALL_STRIP_PROGRAM])])
 
1423
 
 
1424
# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
 
1425
#
 
1426
# This file is free software; the Free Software Foundation
 
1427
# gives unlimited permission to copy and/or distribute it,
 
1428
# with or without modifications, as long as this notice is preserved.
 
1429
 
 
1430
# serial 3
 
1431
 
 
1432
# _AM_SUBST_NOTMAKE(VARIABLE)
 
1433
# ---------------------------
 
1434
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
 
1435
# This macro is traced by Automake.
 
1436
AC_DEFUN([_AM_SUBST_NOTMAKE])
 
1437
 
 
1438
# AM_SUBST_NOTMAKE(VARIABLE)
 
1439
# --------------------------
 
1440
# Public sister of _AM_SUBST_NOTMAKE.
 
1441
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
 
1442
 
 
1443
# Check how to create a tarball.                            -*- Autoconf -*-
 
1444
 
 
1445
# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
 
1446
#
 
1447
# This file is free software; the Free Software Foundation
 
1448
# gives unlimited permission to copy and/or distribute it,
 
1449
# with or without modifications, as long as this notice is preserved.
 
1450
 
 
1451
# serial 2
 
1452
 
 
1453
# _AM_PROG_TAR(FORMAT)
 
1454
# --------------------
 
1455
# Check how to create a tarball in format FORMAT.
 
1456
# FORMAT should be one of `v7', `ustar', or `pax'.
 
1457
#
 
1458
# Substitute a variable $(am__tar) that is a command
 
1459
# writing to stdout a FORMAT-tarball containing the directory
 
1460
# $tardir.
 
1461
#     tardir=directory && $(am__tar) > result.tar
 
1462
#
 
1463
# Substitute a variable $(am__untar) that extract such
 
1464
# a tarball read from stdin.
 
1465
#     $(am__untar) < result.tar
 
1466
AC_DEFUN([_AM_PROG_TAR],
 
1467
[# Always define AMTAR for backward compatibility.  Yes, it's still used
 
1468
# in the wild :-(  We should find a proper way to deprecate it ...
 
1469
AC_SUBST([AMTAR], ['$${TAR-tar}'])
 
1470
m4_if([$1], [v7],
 
1471
     [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
 
1472
     [m4_case([$1], [ustar],, [pax],,
 
1473
              [m4_fatal([Unknown tar format])])
 
1474
AC_MSG_CHECKING([how to create a $1 tar archive])
 
1475
# Loop over all known methods to create a tar archive until one works.
 
1476
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 
1477
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
 
1478
# Do not fold the above two line into one, because Tru64 sh and
 
1479
# Solaris sh will not grok spaces in the rhs of `-'.
 
1480
for _am_tool in $_am_tools
 
1481
do
 
1482
  case $_am_tool in
 
1483
  gnutar)
 
1484
    for _am_tar in tar gnutar gtar;
 
1485
    do
 
1486
      AM_RUN_LOG([$_am_tar --version]) && break
 
1487
    done
 
1488
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 
1489
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 
1490
    am__untar="$_am_tar -xf -"
 
1491
    ;;
 
1492
  plaintar)
 
1493
    # Must skip GNU tar: if it does not support --format= it doesn't create
 
1494
    # ustar tarball either.
 
1495
    (tar --version) >/dev/null 2>&1 && continue
 
1496
    am__tar='tar chf - "$$tardir"'
 
1497
    am__tar_='tar chf - "$tardir"'
 
1498
    am__untar='tar xf -'
 
1499
    ;;
 
1500
  pax)
 
1501
    am__tar='pax -L -x $1 -w "$$tardir"'
 
1502
    am__tar_='pax -L -x $1 -w "$tardir"'
 
1503
    am__untar='pax -r'
 
1504
    ;;
 
1505
  cpio)
 
1506
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 
1507
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 
1508
    am__untar='cpio -i -H $1 -d'
 
1509
    ;;
 
1510
  none)
 
1511
    am__tar=false
 
1512
    am__tar_=false
 
1513
    am__untar=false
 
1514
    ;;
 
1515
  esac
 
1516
 
 
1517
  # If the value was cached, stop now.  We just wanted to have am__tar
 
1518
  # and am__untar set.
 
1519
  test -n "${am_cv_prog_tar_$1}" && break
 
1520
 
 
1521
  # tar/untar a dummy directory, and stop if the command works
 
1522
  rm -rf conftest.dir
 
1523
  mkdir conftest.dir
 
1524
  echo GrepMe > conftest.dir/file
 
1525
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 
1526
  rm -rf conftest.dir
 
1527
  if test -s conftest.tar; then
 
1528
    AM_RUN_LOG([$am__untar <conftest.tar])
 
1529
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
1530
  fi
 
1531
done
 
1532
rm -rf conftest.dir
 
1533
 
 
1534
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 
1535
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
1536
AC_SUBST([am__tar])
 
1537
AC_SUBST([am__untar])
 
1538
]) # _AM_PROG_TAR
 
1539
 
 
1540
m4_include([m4/00gnulib.m4])
 
1541
m4_include([m4/alloca.m4])
 
1542
m4_include([m4/backupfile.m4])
 
1543
m4_include([m4/bison.m4])
 
1544
m4_include([m4/canonicalize.m4])
 
1545
m4_include([m4/clock_time.m4])
 
1546
m4_include([m4/close.m4])
 
1547
m4_include([m4/closedir.m4])
 
1548
m4_include([m4/codeset.m4])
 
1549
m4_include([m4/configmake.m4])
 
1550
m4_include([m4/d-ino.m4])
 
1551
m4_include([m4/dirent-safer.m4])
 
1552
m4_include([m4/dirent_h.m4])
 
1553
m4_include([m4/dirfd.m4])
 
1554
m4_include([m4/dirname.m4])
 
1555
m4_include([m4/double-slash-root.m4])
 
1556
m4_include([m4/dup2.m4])
 
1557
m4_include([m4/eealloc.m4])
 
1558
m4_include([m4/environ.m4])
 
1559
m4_include([m4/errno_h.m4])
 
1560
m4_include([m4/error.m4])
 
1561
m4_include([m4/exponentd.m4])
 
1562
m4_include([m4/extensions.m4])
 
1563
m4_include([m4/extern-inline.m4])
 
1564
m4_include([m4/fcntl-o.m4])
 
1565
m4_include([m4/fcntl.m4])
 
1566
m4_include([m4/fcntl_h.m4])
 
1567
m4_include([m4/float_h.m4])
 
1568
m4_include([m4/fstat.m4])
 
1569
m4_include([m4/getdtablesize.m4])
 
1570
m4_include([m4/getopt.m4])
 
1571
m4_include([m4/gettime.m4])
 
1572
m4_include([m4/gettimeofday.m4])
 
1573
m4_include([m4/gl_list.m4])
 
1574
m4_include([m4/glibc21.m4])
 
1575
m4_include([m4/gnulib-common.m4])
 
1576
m4_include([m4/gnulib-comp.m4])
 
1577
m4_include([m4/include_next.m4])
 
1578
m4_include([m4/inline.m4])
 
1579
m4_include([m4/intmax_t.m4])
 
1580
m4_include([m4/inttypes_h.m4])
 
1581
m4_include([m4/largefile.m4])
 
1582
m4_include([m4/lchmod.m4])
 
1583
m4_include([m4/localcharset.m4])
 
1584
m4_include([m4/locale-fr.m4])
 
1585
m4_include([m4/locale-ja.m4])
 
1586
m4_include([m4/locale-zh.m4])
 
1587
m4_include([m4/longlong.m4])
 
1588
m4_include([m4/lstat.m4])
 
1589
m4_include([m4/malloc.m4])
 
1590
m4_include([m4/malloca.m4])
 
1591
m4_include([m4/manywarnings.m4])
 
1592
m4_include([m4/mbrtowc.m4])
 
1593
m4_include([m4/mbsinit.m4])
 
1594
m4_include([m4/mbstate_t.m4])
 
1595
m4_include([m4/memchr.m4])
 
1596
m4_include([m4/minmax.m4])
43
1597
m4_include([m4/mkdir.m4])
 
1598
m4_include([m4/mktime.m4])
 
1599
m4_include([m4/mmap-anon.m4])
 
1600
m4_include([m4/msvc-inval.m4])
 
1601
m4_include([m4/msvc-nothrow.m4])
 
1602
m4_include([m4/multiarch.m4])
 
1603
m4_include([m4/nocrash.m4])
 
1604
m4_include([m4/off_t.m4])
 
1605
m4_include([m4/opendir.m4])
 
1606
m4_include([m4/parse-datetime.m4])
 
1607
m4_include([m4/pathmax.m4])
 
1608
m4_include([m4/printf.m4])
 
1609
m4_include([m4/quote.m4])
 
1610
m4_include([m4/quotearg.m4])
 
1611
m4_include([m4/raise.m4])
 
1612
m4_include([m4/readdir.m4])
 
1613
m4_include([m4/readlink.m4])
 
1614
m4_include([m4/realloc.m4])
 
1615
m4_include([m4/rename.m4])
 
1616
m4_include([m4/rmdir.m4])
 
1617
m4_include([m4/safe-read.m4])
 
1618
m4_include([m4/safe-write.m4])
 
1619
m4_include([m4/setenv.m4])
44
1620
m4_include([m4/setmode.m4])
 
1621
m4_include([m4/signal_h.m4])
 
1622
m4_include([m4/size_max.m4])
 
1623
m4_include([m4/ssize_t.m4])
 
1624
m4_include([m4/stat-time.m4])
 
1625
m4_include([m4/stat.m4])
 
1626
m4_include([m4/stdarg.m4])
 
1627
m4_include([m4/stdbool.m4])
 
1628
m4_include([m4/stddef_h.m4])
 
1629
m4_include([m4/stdint.m4])
 
1630
m4_include([m4/stdint_h.m4])
 
1631
m4_include([m4/stdio_h.m4])
 
1632
m4_include([m4/stdlib_h.m4])
 
1633
m4_include([m4/strerror.m4])
 
1634
m4_include([m4/string_h.m4])
 
1635
m4_include([m4/strndup.m4])
 
1636
m4_include([m4/strnlen.m4])
 
1637
m4_include([m4/symlink.m4])
 
1638
m4_include([m4/sys_socket_h.m4])
 
1639
m4_include([m4/sys_stat_h.m4])
 
1640
m4_include([m4/sys_time_h.m4])
 
1641
m4_include([m4/sys_types_h.m4])
 
1642
m4_include([m4/tempname.m4])
 
1643
m4_include([m4/time_h.m4])
 
1644
m4_include([m4/time_r.m4])
 
1645
m4_include([m4/timespec.m4])
 
1646
m4_include([m4/tm_gmtoff.m4])
 
1647
m4_include([m4/unistd-safer.m4])
 
1648
m4_include([m4/unistd_h.m4])
 
1649
m4_include([m4/unlink.m4])
 
1650
m4_include([m4/utimbuf.m4])
 
1651
m4_include([m4/utimens.m4])
 
1652
m4_include([m4/utimes.m4])
 
1653
m4_include([m4/vasnprintf.m4])
 
1654
m4_include([m4/vasprintf.m4])
 
1655
m4_include([m4/warn-on-use.m4])
 
1656
m4_include([m4/warnings.m4])
 
1657
m4_include([m4/wchar_h.m4])
 
1658
m4_include([m4/wchar_t.m4])
 
1659
m4_include([m4/wctype_h.m4])
 
1660
m4_include([m4/wint_t.m4])
 
1661
m4_include([m4/write.m4])
 
1662
m4_include([m4/xalloc.m4])
 
1663
m4_include([m4/xattr.m4])
 
1664
m4_include([m4/xsize.m4])
 
1665
m4_include([m4/xstrndup.m4])
 
1666
m4_include([m4/xvasprintf.m4])