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