Mercurial > hg-old > index.cgi
comparison aclocal.m4 @ 278:7635d6d25d4f 2.4
Added generated files
author | lost |
---|---|
date | Mon, 01 Jun 2009 03:22:04 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
277:cf6d9ed87f58 | 278:7635d6d25d4f |
---|---|
1 # generated automatically by aclocal 1.10.2 -*- Autoconf -*- | |
2 | |
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | |
4 # 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | |
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.63],, | |
17 [m4_warning([this file was generated for autoconf 2.63. | |
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 15 (gettext-0.17) | |
23 dnl Copyright (C) 1995-2007 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.17]) | |
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, 2003, 2005, 2006, 2007, 2008 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 # AM_AUTOMAKE_VERSION(VERSION) | |
479 # ---------------------------- | |
480 # Automake X.Y traces this macro to ensure aclocal.m4 has been | |
481 # generated from the m4 files accompanying Automake X.Y. | |
482 # (This private macro should not be called outside this file.) | |
483 AC_DEFUN([AM_AUTOMAKE_VERSION], | |
484 [am__api_version='1.10' | |
485 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to | |
486 dnl require some minimum version. Point them to the right macro. | |
487 m4_if([$1], [1.10.2], [], | |
488 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl | |
489 ]) | |
490 | |
491 # _AM_AUTOCONF_VERSION(VERSION) | |
492 # ----------------------------- | |
493 # aclocal traces this macro to find the Autoconf version. | |
494 # This is a private macro too. Using m4_define simplifies | |
495 # the logic in aclocal, which can simply ignore this definition. | |
496 m4_define([_AM_AUTOCONF_VERSION], []) | |
497 | |
498 # AM_SET_CURRENT_AUTOMAKE_VERSION | |
499 # ------------------------------- | |
500 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. | |
501 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. | |
502 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], | |
503 [AM_AUTOMAKE_VERSION([1.10.2])dnl | |
504 m4_ifndef([AC_AUTOCONF_VERSION], | |
505 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl | |
506 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) | |
507 | |
508 # AM_AUX_DIR_EXPAND -*- Autoconf -*- | |
509 | |
510 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. | |
511 # | |
512 # This file is free software; the Free Software Foundation | |
513 # gives unlimited permission to copy and/or distribute it, | |
514 # with or without modifications, as long as this notice is preserved. | |
515 | |
516 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets | |
517 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to | |
518 # `$srcdir', `$srcdir/..', or `$srcdir/../..'. | |
519 # | |
520 # Of course, Automake must honor this variable whenever it calls a | |
521 # tool from the auxiliary directory. The problem is that $srcdir (and | |
522 # therefore $ac_aux_dir as well) can be either absolute or relative, | |
523 # depending on how configure is run. This is pretty annoying, since | |
524 # it makes $ac_aux_dir quite unusable in subdirectories: in the top | |
525 # source directory, any form will work fine, but in subdirectories a | |
526 # relative path needs to be adjusted first. | |
527 # | |
528 # $ac_aux_dir/missing | |
529 # fails when called from a subdirectory if $ac_aux_dir is relative | |
530 # $top_srcdir/$ac_aux_dir/missing | |
531 # fails if $ac_aux_dir is absolute, | |
532 # fails when called from a subdirectory in a VPATH build with | |
533 # a relative $ac_aux_dir | |
534 # | |
535 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir | |
536 # are both prefixed by $srcdir. In an in-source build this is usually | |
537 # harmless because $srcdir is `.', but things will broke when you | |
538 # start a VPATH build or use an absolute $srcdir. | |
539 # | |
540 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, | |
541 # iff we strip the leading $srcdir from $ac_aux_dir. That would be: | |
542 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` | |
543 # and then we would define $MISSING as | |
544 # MISSING="\${SHELL} $am_aux_dir/missing" | |
545 # This will work as long as MISSING is not called from configure, because | |
546 # unfortunately $(top_srcdir) has no meaning in configure. | |
547 # However there are other variables, like CC, which are often used in | |
548 # configure, and could therefore not use this "fixed" $ac_aux_dir. | |
549 # | |
550 # Another solution, used here, is to always expand $ac_aux_dir to an | |
551 # absolute PATH. The drawback is that using absolute paths prevent a | |
552 # configured tree to be moved without reconfiguration. | |
553 | |
554 AC_DEFUN([AM_AUX_DIR_EXPAND], | |
555 [dnl Rely on autoconf to set up CDPATH properly. | |
556 AC_PREREQ([2.50])dnl | |
557 # expand $ac_aux_dir to an absolute path | |
558 am_aux_dir=`cd $ac_aux_dir && pwd` | |
559 ]) | |
560 | |
561 # AM_CONDITIONAL -*- Autoconf -*- | |
562 | |
563 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006 | |
564 # Free Software Foundation, Inc. | |
565 # | |
566 # This file is free software; the Free Software Foundation | |
567 # gives unlimited permission to copy and/or distribute it, | |
568 # with or without modifications, as long as this notice is preserved. | |
569 | |
570 # serial 8 | |
571 | |
572 # AM_CONDITIONAL(NAME, SHELL-CONDITION) | |
573 # ------------------------------------- | |
574 # Define a conditional. | |
575 AC_DEFUN([AM_CONDITIONAL], | |
576 [AC_PREREQ(2.52)dnl | |
577 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], | |
578 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl | |
579 AC_SUBST([$1_TRUE])dnl | |
580 AC_SUBST([$1_FALSE])dnl | |
581 _AM_SUBST_NOTMAKE([$1_TRUE])dnl | |
582 _AM_SUBST_NOTMAKE([$1_FALSE])dnl | |
583 if $2; then | |
584 $1_TRUE= | |
585 $1_FALSE='#' | |
586 else | |
587 $1_TRUE='#' | |
588 $1_FALSE= | |
589 fi | |
590 AC_CONFIG_COMMANDS_PRE( | |
591 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then | |
592 AC_MSG_ERROR([[conditional "$1" was never defined. | |
593 Usually this means the macro was only invoked conditionally.]]) | |
594 fi])]) | |
595 | |
596 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 | |
597 # Free Software Foundation, Inc. | |
598 # | |
599 # This file is free software; the Free Software Foundation | |
600 # gives unlimited permission to copy and/or distribute it, | |
601 # with or without modifications, as long as this notice is preserved. | |
602 | |
603 # serial 9 | |
604 | |
605 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be | |
606 # written in clear, in which case automake, when reading aclocal.m4, | |
607 # will think it sees a *use*, and therefore will trigger all it's | |
608 # C support machinery. Also note that it means that autoscan, seeing | |
609 # CC etc. in the Makefile, will ask for an AC_PROG_CC use... | |
610 | |
611 | |
612 # _AM_DEPENDENCIES(NAME) | |
613 # ---------------------- | |
614 # See how the compiler implements dependency checking. | |
615 # NAME is "CC", "CXX", "GCJ", or "OBJC". | |
616 # We try a few techniques and use that to set a single cache variable. | |
617 # | |
618 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was | |
619 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular | |
620 # dependency, and given that the user is not expected to run this macro, | |
621 # just rely on AC_PROG_CC. | |
622 AC_DEFUN([_AM_DEPENDENCIES], | |
623 [AC_REQUIRE([AM_SET_DEPDIR])dnl | |
624 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl | |
625 AC_REQUIRE([AM_MAKE_INCLUDE])dnl | |
626 AC_REQUIRE([AM_DEP_TRACK])dnl | |
627 | |
628 ifelse([$1], CC, [depcc="$CC" am_compiler_list=], | |
629 [$1], CXX, [depcc="$CXX" am_compiler_list=], | |
630 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], | |
631 [$1], UPC, [depcc="$UPC" am_compiler_list=], | |
632 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], | |
633 [depcc="$$1" am_compiler_list=]) | |
634 | |
635 AC_CACHE_CHECK([dependency style of $depcc], | |
636 [am_cv_$1_dependencies_compiler_type], | |
637 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
638 # We make a subdir and do the tests there. Otherwise we can end up | |
639 # making bogus files that we don't know about and never remove. For | |
640 # instance it was reported that on HP-UX the gcc test will end up | |
641 # making a dummy file named `D' -- because `-MD' means `put the output | |
642 # in D'. | |
643 mkdir conftest.dir | |
644 # Copy depcomp to subdir because otherwise we won't find it if we're | |
645 # using a relative directory. | |
646 cp "$am_depcomp" conftest.dir | |
647 cd conftest.dir | |
648 # We will build objects and dependencies in a subdirectory because | |
649 # it helps to detect inapplicable dependency modes. For instance | |
650 # both Tru64's cc and ICC support -MD to output dependencies as a | |
651 # side effect of compilation, but ICC will put the dependencies in | |
652 # the current directory while Tru64 will put them in the object | |
653 # directory. | |
654 mkdir sub | |
655 | |
656 am_cv_$1_dependencies_compiler_type=none | |
657 if test "$am_compiler_list" = ""; then | |
658 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` | |
659 fi | |
660 for depmode in $am_compiler_list; do | |
661 # Setup a source with many dependencies, because some compilers | |
662 # like to wrap large dependency lists on column 80 (with \), and | |
663 # we should not choose a depcomp mode which is confused by this. | |
664 # | |
665 # We need to recreate these files for each test, as the compiler may | |
666 # overwrite some of them when testing with obscure command lines. | |
667 # This happens at least with the AIX C compiler. | |
668 : > sub/conftest.c | |
669 for i in 1 2 3 4 5 6; do | |
670 echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
671 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
672 # Solaris 8's {/usr,}/bin/sh. | |
673 touch sub/conftst$i.h | |
674 done | |
675 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
676 | |
677 case $depmode in | |
678 nosideeffect) | |
679 # after this tag, mechanisms are not by side-effect, so they'll | |
680 # only be used when explicitly requested | |
681 if test "x$enable_dependency_tracking" = xyes; then | |
682 continue | |
683 else | |
684 break | |
685 fi | |
686 ;; | |
687 none) break ;; | |
688 esac | |
689 # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
690 # mode. It turns out that the SunPro C++ compiler does not properly | |
691 # handle `-M -o', and we need to detect this. | |
692 if depmode=$depmode \ | |
693 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
694 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
695 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
696 >/dev/null 2>conftest.err && | |
697 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
698 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
699 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
700 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
701 # icc doesn't choke on unknown options, it will just issue warnings | |
702 # or remarks (even with -Werror). So we grep stderr for any message | |
703 # that says an option was ignored or not supported. | |
704 # When given -MP, icc 7.0 and 7.1 complain thusly: | |
705 # icc: Command line warning: ignoring option '-M'; no argument required | |
706 # The diagnosis changed in icc 8.0: | |
707 # icc: Command line remark: option '-MP' not supported | |
708 if (grep 'ignoring option' conftest.err || | |
709 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
710 am_cv_$1_dependencies_compiler_type=$depmode | |
711 break | |
712 fi | |
713 fi | |
714 done | |
715 | |
716 cd .. | |
717 rm -rf conftest.dir | |
718 else | |
719 am_cv_$1_dependencies_compiler_type=none | |
720 fi | |
721 ]) | |
722 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) | |
723 AM_CONDITIONAL([am__fastdep$1], [ | |
724 test "x$enable_dependency_tracking" != xno \ | |
725 && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) | |
726 ]) | |
727 | |
728 | |
729 # AM_SET_DEPDIR | |
730 # ------------- | |
731 # Choose a directory name for dependency files. | |
732 # This macro is AC_REQUIREd in _AM_DEPENDENCIES | |
733 AC_DEFUN([AM_SET_DEPDIR], | |
734 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl | |
735 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl | |
736 ]) | |
737 | |
738 | |
739 # AM_DEP_TRACK | |
740 # ------------ | |
741 AC_DEFUN([AM_DEP_TRACK], | |
742 [AC_ARG_ENABLE(dependency-tracking, | |
743 [ --disable-dependency-tracking speeds up one-time build | |
744 --enable-dependency-tracking do not reject slow dependency extractors]) | |
745 if test "x$enable_dependency_tracking" != xno; then | |
746 am_depcomp="$ac_aux_dir/depcomp" | |
747 AMDEPBACKSLASH='\' | |
748 fi | |
749 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) | |
750 AC_SUBST([AMDEPBACKSLASH])dnl | |
751 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl | |
752 ]) | |
753 | |
754 # Generate code to set up dependency tracking. -*- Autoconf -*- | |
755 | |
756 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 | |
757 # Free Software Foundation, Inc. | |
758 # | |
759 # This file is free software; the Free Software Foundation | |
760 # gives unlimited permission to copy and/or distribute it, | |
761 # with or without modifications, as long as this notice is preserved. | |
762 | |
763 #serial 5 | |
764 | |
765 # _AM_OUTPUT_DEPENDENCY_COMMANDS | |
766 # ------------------------------ | |
767 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], | |
768 [{ | |
769 # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
770 # are listed without --file. Let's play safe and only enable the eval | |
771 # if we detect the quoting. | |
772 case $CONFIG_FILES in | |
773 *\'*) eval set x "$CONFIG_FILES" ;; | |
774 *) set x $CONFIG_FILES ;; | |
775 esac | |
776 shift | |
777 for mf | |
778 do | |
779 # Strip MF so we end up with the name of the file. | |
780 mf=`echo "$mf" | sed -e 's/:.*$//'` | |
781 # Check whether this is an Automake generated Makefile or not. | |
782 # We used to match only the files named `Makefile.in', but | |
783 # some people rename them; so instead we look at the file content. | |
784 # Grep'ing the first line is not enough: some people post-process | |
785 # each Makefile.in and add a new line on top of each file to say so. | |
786 # Grep'ing the whole file is not good either: AIX grep has a line | |
787 # limit of 2048, but all sed's we know have understand at least 4000. | |
788 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
789 dirpart=`AS_DIRNAME("$mf")` | |
790 else | |
791 continue | |
792 fi | |
793 # Extract the definition of DEPDIR, am__include, and am__quote | |
794 # from the Makefile without running `make'. | |
795 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
796 test -z "$DEPDIR" && continue | |
797 am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
798 test -z "am__include" && continue | |
799 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
800 # When using ansi2knr, U may be empty or an underscore; expand it | |
801 U=`sed -n 's/^U = //p' < "$mf"` | |
802 # Find all dependency output files, they are included files with | |
803 # $(DEPDIR) in their names. We invoke sed twice because it is the | |
804 # simplest approach to changing $(DEPDIR) to its actual value in the | |
805 # expansion. | |
806 for file in `sed -n " | |
807 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
808 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
809 # Make sure the directory exists. | |
810 test -f "$dirpart/$file" && continue | |
811 fdir=`AS_DIRNAME(["$file"])` | |
812 AS_MKDIR_P([$dirpart/$fdir]) | |
813 # echo "creating $dirpart/$file" | |
814 echo '# dummy' > "$dirpart/$file" | |
815 done | |
816 done | |
817 } | |
818 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS | |
819 | |
820 | |
821 # AM_OUTPUT_DEPENDENCY_COMMANDS | |
822 # ----------------------------- | |
823 # This macro should only be invoked once -- use via AC_REQUIRE. | |
824 # | |
825 # This code is only required when automatic dependency tracking | |
826 # is enabled. FIXME. This creates each `.P' file that we will | |
827 # need in order to bootstrap the dependency handling code. | |
828 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], | |
829 [AC_CONFIG_COMMANDS([depfiles], | |
830 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], | |
831 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) | |
832 ]) | |
833 | |
834 # Do all the work for Automake. -*- Autoconf -*- | |
835 | |
836 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | |
837 # 2005, 2006, 2008 Free Software Foundation, Inc. | |
838 # | |
839 # This file is free software; the Free Software Foundation | |
840 # gives unlimited permission to copy and/or distribute it, | |
841 # with or without modifications, as long as this notice is preserved. | |
842 | |
843 # serial 13 | |
844 | |
845 # This macro actually does too much. Some checks are only needed if | |
846 # your package does certain things. But this isn't really a big deal. | |
847 | |
848 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) | |
849 # AM_INIT_AUTOMAKE([OPTIONS]) | |
850 # ----------------------------------------------- | |
851 # The call with PACKAGE and VERSION arguments is the old style | |
852 # call (pre autoconf-2.50), which is being phased out. PACKAGE | |
853 # and VERSION should now be passed to AC_INIT and removed from | |
854 # the call to AM_INIT_AUTOMAKE. | |
855 # We support both call styles for the transition. After | |
856 # the next Automake release, Autoconf can make the AC_INIT | |
857 # arguments mandatory, and then we can depend on a new Autoconf | |
858 # release and drop the old call support. | |
859 AC_DEFUN([AM_INIT_AUTOMAKE], | |
860 [AC_PREREQ([2.60])dnl | |
861 dnl Autoconf wants to disallow AM_ names. We explicitly allow | |
862 dnl the ones we care about. | |
863 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl | |
864 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl | |
865 AC_REQUIRE([AC_PROG_INSTALL])dnl | |
866 if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
867 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
868 # is not polluted with repeated "-I." | |
869 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl | |
870 # test to see if srcdir already configured | |
871 if test -f $srcdir/config.status; then | |
872 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) | |
873 fi | |
874 fi | |
875 | |
876 # test whether we have cygpath | |
877 if test -z "$CYGPATH_W"; then | |
878 if (cygpath --version) >/dev/null 2>/dev/null; then | |
879 CYGPATH_W='cygpath -w' | |
880 else | |
881 CYGPATH_W=echo | |
882 fi | |
883 fi | |
884 AC_SUBST([CYGPATH_W]) | |
885 | |
886 # Define the identity of the package. | |
887 dnl Distinguish between old-style and new-style calls. | |
888 m4_ifval([$2], | |
889 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl | |
890 AC_SUBST([PACKAGE], [$1])dnl | |
891 AC_SUBST([VERSION], [$2])], | |
892 [_AM_SET_OPTIONS([$1])dnl | |
893 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. | |
894 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, | |
895 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl | |
896 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl | |
897 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl | |
898 | |
899 _AM_IF_OPTION([no-define],, | |
900 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) | |
901 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl | |
902 | |
903 # Some tools Automake needs. | |
904 AC_REQUIRE([AM_SANITY_CHECK])dnl | |
905 AC_REQUIRE([AC_ARG_PROGRAM])dnl | |
906 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) | |
907 AM_MISSING_PROG(AUTOCONF, autoconf) | |
908 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) | |
909 AM_MISSING_PROG(AUTOHEADER, autoheader) | |
910 AM_MISSING_PROG(MAKEINFO, makeinfo) | |
911 AM_PROG_INSTALL_SH | |
912 AM_PROG_INSTALL_STRIP | |
913 AC_REQUIRE([AM_PROG_MKDIR_P])dnl | |
914 # We need awk for the "check" target. The system "awk" is bad on | |
915 # some platforms. | |
916 AC_REQUIRE([AC_PROG_AWK])dnl | |
917 AC_REQUIRE([AC_PROG_MAKE_SET])dnl | |
918 AC_REQUIRE([AM_SET_LEADING_DOT])dnl | |
919 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], | |
920 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], | |
921 [_AM_PROG_TAR([v7])])]) | |
922 _AM_IF_OPTION([no-dependencies],, | |
923 [AC_PROVIDE_IFELSE([AC_PROG_CC], | |
924 [_AM_DEPENDENCIES(CC)], | |
925 [define([AC_PROG_CC], | |
926 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl | |
927 AC_PROVIDE_IFELSE([AC_PROG_CXX], | |
928 [_AM_DEPENDENCIES(CXX)], | |
929 [define([AC_PROG_CXX], | |
930 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl | |
931 AC_PROVIDE_IFELSE([AC_PROG_OBJC], | |
932 [_AM_DEPENDENCIES(OBJC)], | |
933 [define([AC_PROG_OBJC], | |
934 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl | |
935 ]) | |
936 ]) | |
937 | |
938 | |
939 # When config.status generates a header, we must update the stamp-h file. | |
940 # This file resides in the same directory as the config header | |
941 # that is generated. The stamp files are numbered to have different names. | |
942 | |
943 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the | |
944 # loop where config.status creates the headers, so we can generate | |
945 # our stamp files there. | |
946 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], | |
947 [# Compute $1's index in $config_headers. | |
948 _am_arg=$1 | |
949 _am_stamp_count=1 | |
950 for _am_header in $config_headers :; do | |
951 case $_am_header in | |
952 $_am_arg | $_am_arg:* ) | |
953 break ;; | |
954 * ) | |
955 _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
956 esac | |
957 done | |
958 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) | |
959 | |
960 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. | |
961 # | |
962 # This file is free software; the Free Software Foundation | |
963 # gives unlimited permission to copy and/or distribute it, | |
964 # with or without modifications, as long as this notice is preserved. | |
965 | |
966 # AM_PROG_INSTALL_SH | |
967 # ------------------ | |
968 # Define $install_sh. | |
969 AC_DEFUN([AM_PROG_INSTALL_SH], | |
970 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
971 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} | |
972 AC_SUBST(install_sh)]) | |
973 | |
974 # Copyright (C) 2003, 2005 Free Software Foundation, Inc. | |
975 # | |
976 # This file is free software; the Free Software Foundation | |
977 # gives unlimited permission to copy and/or distribute it, | |
978 # with or without modifications, as long as this notice is preserved. | |
979 | |
980 # serial 2 | |
981 | |
982 # Check whether the underlying file-system supports filenames | |
983 # with a leading dot. For instance MS-DOS doesn't. | |
984 AC_DEFUN([AM_SET_LEADING_DOT], | |
985 [rm -rf .tst 2>/dev/null | |
986 mkdir .tst 2>/dev/null | |
987 if test -d .tst; then | |
988 am__leading_dot=. | |
989 else | |
990 am__leading_dot=_ | |
991 fi | |
992 rmdir .tst 2>/dev/null | |
993 AC_SUBST([am__leading_dot])]) | |
994 | |
995 # Check to see how 'make' treats includes. -*- Autoconf -*- | |
996 | |
997 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. | |
998 # | |
999 # This file is free software; the Free Software Foundation | |
1000 # gives unlimited permission to copy and/or distribute it, | |
1001 # with or without modifications, as long as this notice is preserved. | |
1002 | |
1003 # serial 3 | |
1004 | |
1005 # AM_MAKE_INCLUDE() | |
1006 # ----------------- | |
1007 # Check to see how make treats includes. | |
1008 AC_DEFUN([AM_MAKE_INCLUDE], | |
1009 [am_make=${MAKE-make} | |
1010 cat > confinc << 'END' | |
1011 am__doit: | |
1012 @echo done | |
1013 .PHONY: am__doit | |
1014 END | |
1015 # If we don't find an include directive, just comment out the code. | |
1016 AC_MSG_CHECKING([for style of include used by $am_make]) | |
1017 am__include="#" | |
1018 am__quote= | |
1019 _am_result=none | |
1020 # First try GNU make style include. | |
1021 echo "include confinc" > confmf | |
1022 # We grep out `Entering directory' and `Leaving directory' | |
1023 # messages which can occur if `w' ends up in MAKEFLAGS. | |
1024 # In particular we don't look at `^make:' because GNU make might | |
1025 # be invoked under some other name (usually "gmake"), in which | |
1026 # case it prints its new name instead of `make'. | |
1027 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
1028 am__include=include | |
1029 am__quote= | |
1030 _am_result=GNU | |
1031 fi | |
1032 # Now try BSD make style include. | |
1033 if test "$am__include" = "#"; then | |
1034 echo '.include "confinc"' > confmf | |
1035 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
1036 am__include=.include | |
1037 am__quote="\"" | |
1038 _am_result=BSD | |
1039 fi | |
1040 fi | |
1041 AC_SUBST([am__include]) | |
1042 AC_SUBST([am__quote]) | |
1043 AC_MSG_RESULT([$_am_result]) | |
1044 rm -f confinc confmf | |
1045 ]) | |
1046 | |
1047 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- | |
1048 | |
1049 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 | |
1050 # Free Software Foundation, Inc. | |
1051 # | |
1052 # This file is free software; the Free Software Foundation | |
1053 # gives unlimited permission to copy and/or distribute it, | |
1054 # with or without modifications, as long as this notice is preserved. | |
1055 | |
1056 # serial 5 | |
1057 | |
1058 # AM_MISSING_PROG(NAME, PROGRAM) | |
1059 # ------------------------------ | |
1060 AC_DEFUN([AM_MISSING_PROG], | |
1061 [AC_REQUIRE([AM_MISSING_HAS_RUN]) | |
1062 $1=${$1-"${am_missing_run}$2"} | |
1063 AC_SUBST($1)]) | |
1064 | |
1065 | |
1066 # AM_MISSING_HAS_RUN | |
1067 # ------------------ | |
1068 # Define MISSING if not defined so far and test if it supports --run. | |
1069 # If it does, set am_missing_run to use it, otherwise, to nothing. | |
1070 AC_DEFUN([AM_MISSING_HAS_RUN], | |
1071 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
1072 AC_REQUIRE_AUX_FILE([missing])dnl | |
1073 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
1074 # Use eval to expand $SHELL | |
1075 if eval "$MISSING --run true"; then | |
1076 am_missing_run="$MISSING --run " | |
1077 else | |
1078 am_missing_run= | |
1079 AC_MSG_WARN([`missing' script is too old or missing]) | |
1080 fi | |
1081 ]) | |
1082 | |
1083 # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
1084 # | |
1085 # This file is free software; the Free Software Foundation | |
1086 # gives unlimited permission to copy and/or distribute it, | |
1087 # with or without modifications, as long as this notice is preserved. | |
1088 | |
1089 # AM_PROG_MKDIR_P | |
1090 # --------------- | |
1091 # Check for `mkdir -p'. | |
1092 AC_DEFUN([AM_PROG_MKDIR_P], | |
1093 [AC_PREREQ([2.60])dnl | |
1094 AC_REQUIRE([AC_PROG_MKDIR_P])dnl | |
1095 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, | |
1096 dnl while keeping a definition of mkdir_p for backward compatibility. | |
1097 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. | |
1098 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of | |
1099 dnl Makefile.ins that do not define MKDIR_P, so we do our own | |
1100 dnl adjustment using top_builddir (which is defined more often than | |
1101 dnl MKDIR_P). | |
1102 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl | |
1103 case $mkdir_p in | |
1104 [[\\/$]]* | ?:[[\\/]]*) ;; | |
1105 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
1106 esac | |
1107 ]) | |
1108 | |
1109 # Helper functions for option handling. -*- Autoconf -*- | |
1110 | |
1111 # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. | |
1112 # | |
1113 # This file is free software; the Free Software Foundation | |
1114 # gives unlimited permission to copy and/or distribute it, | |
1115 # with or without modifications, as long as this notice is preserved. | |
1116 | |
1117 # serial 4 | |
1118 | |
1119 # _AM_MANGLE_OPTION(NAME) | |
1120 # ----------------------- | |
1121 AC_DEFUN([_AM_MANGLE_OPTION], | |
1122 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) | |
1123 | |
1124 # _AM_SET_OPTION(NAME) | |
1125 # ------------------------------ | |
1126 # Set option NAME. Presently that only means defining a flag for this option. | |
1127 AC_DEFUN([_AM_SET_OPTION], | |
1128 [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) | |
1129 | |
1130 # _AM_SET_OPTIONS(OPTIONS) | |
1131 # ---------------------------------- | |
1132 # OPTIONS is a space-separated list of Automake options. | |
1133 AC_DEFUN([_AM_SET_OPTIONS], | |
1134 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) | |
1135 | |
1136 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) | |
1137 # ------------------------------------------- | |
1138 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. | |
1139 AC_DEFUN([_AM_IF_OPTION], | |
1140 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) | |
1141 | |
1142 # Check to make sure that the build environment is sane. -*- Autoconf -*- | |
1143 | |
1144 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 | |
1145 # Free Software Foundation, Inc. | |
1146 # | |
1147 # This file is free software; the Free Software Foundation | |
1148 # gives unlimited permission to copy and/or distribute it, | |
1149 # with or without modifications, as long as this notice is preserved. | |
1150 | |
1151 # serial 4 | |
1152 | |
1153 # AM_SANITY_CHECK | |
1154 # --------------- | |
1155 AC_DEFUN([AM_SANITY_CHECK], | |
1156 [AC_MSG_CHECKING([whether build environment is sane]) | |
1157 # Just in case | |
1158 sleep 1 | |
1159 echo timestamp > conftest.file | |
1160 # Do `set' in a subshell so we don't clobber the current shell's | |
1161 # arguments. Must try -L first in case configure is actually a | |
1162 # symlink; some systems play weird games with the mod time of symlinks | |
1163 # (eg FreeBSD returns the mod time of the symlink's containing | |
1164 # directory). | |
1165 if ( | |
1166 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
1167 if test "$[*]" = "X"; then | |
1168 # -L didn't work. | |
1169 set X `ls -t $srcdir/configure conftest.file` | |
1170 fi | |
1171 rm -f conftest.file | |
1172 if test "$[*]" != "X $srcdir/configure conftest.file" \ | |
1173 && test "$[*]" != "X conftest.file $srcdir/configure"; then | |
1174 | |
1175 # If neither matched, then we have a broken ls. This can happen | |
1176 # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1177 # broken ls alias from the environment. This has actually | |
1178 # happened. Such a system could not be considered "sane". | |
1179 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken | |
1180 alias in your environment]) | |
1181 fi | |
1182 | |
1183 test "$[2]" = conftest.file | |
1184 ) | |
1185 then | |
1186 # Ok. | |
1187 : | |
1188 else | |
1189 AC_MSG_ERROR([newly created file is older than distributed files! | |
1190 Check your system clock]) | |
1191 fi | |
1192 AC_MSG_RESULT(yes)]) | |
1193 | |
1194 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. | |
1195 # | |
1196 # This file is free software; the Free Software Foundation | |
1197 # gives unlimited permission to copy and/or distribute it, | |
1198 # with or without modifications, as long as this notice is preserved. | |
1199 | |
1200 # AM_PROG_INSTALL_STRIP | |
1201 # --------------------- | |
1202 # One issue with vendor `install' (even GNU) is that you can't | |
1203 # specify the program used to strip binaries. This is especially | |
1204 # annoying in cross-compiling environments, where the build's strip | |
1205 # is unlikely to handle the host's binaries. | |
1206 # Fortunately install-sh will honor a STRIPPROG variable, so we | |
1207 # always use install-sh in `make install-strip', and initialize | |
1208 # STRIPPROG with the value of the STRIP variable (set by the user). | |
1209 AC_DEFUN([AM_PROG_INSTALL_STRIP], | |
1210 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl | |
1211 # Installed binaries are usually stripped using `strip' when the user | |
1212 # run `make install-strip'. However `strip' might not be the right | |
1213 # tool to use in cross-compilation environments, therefore Automake | |
1214 # will honor the `STRIP' environment variable to overrule this program. | |
1215 dnl Don't test for $cross_compiling = yes, because it might be `maybe'. | |
1216 if test "$cross_compiling" != no; then | |
1217 AC_CHECK_TOOL([STRIP], [strip], :) | |
1218 fi | |
1219 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
1220 AC_SUBST([INSTALL_STRIP_PROGRAM])]) | |
1221 | |
1222 # Copyright (C) 2006 Free Software Foundation, Inc. | |
1223 # | |
1224 # This file is free software; the Free Software Foundation | |
1225 # gives unlimited permission to copy and/or distribute it, | |
1226 # with or without modifications, as long as this notice is preserved. | |
1227 | |
1228 # _AM_SUBST_NOTMAKE(VARIABLE) | |
1229 # --------------------------- | |
1230 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. | |
1231 # This macro is traced by Automake. | |
1232 AC_DEFUN([_AM_SUBST_NOTMAKE]) | |
1233 | |
1234 # Check how to create a tarball. -*- Autoconf -*- | |
1235 | |
1236 # Copyright (C) 2004, 2005 Free Software Foundation, Inc. | |
1237 # | |
1238 # This file is free software; the Free Software Foundation | |
1239 # gives unlimited permission to copy and/or distribute it, | |
1240 # with or without modifications, as long as this notice is preserved. | |
1241 | |
1242 # serial 2 | |
1243 | |
1244 # _AM_PROG_TAR(FORMAT) | |
1245 # -------------------- | |
1246 # Check how to create a tarball in format FORMAT. | |
1247 # FORMAT should be one of `v7', `ustar', or `pax'. | |
1248 # | |
1249 # Substitute a variable $(am__tar) that is a command | |
1250 # writing to stdout a FORMAT-tarball containing the directory | |
1251 # $tardir. | |
1252 # tardir=directory && $(am__tar) > result.tar | |
1253 # | |
1254 # Substitute a variable $(am__untar) that extract such | |
1255 # a tarball read from stdin. | |
1256 # $(am__untar) < result.tar | |
1257 AC_DEFUN([_AM_PROG_TAR], | |
1258 [# Always define AMTAR for backward compatibility. | |
1259 AM_MISSING_PROG([AMTAR], [tar]) | |
1260 m4_if([$1], [v7], | |
1261 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], | |
1262 [m4_case([$1], [ustar],, [pax],, | |
1263 [m4_fatal([Unknown tar format])]) | |
1264 AC_MSG_CHECKING([how to create a $1 tar archive]) | |
1265 # Loop over all known methods to create a tar archive until one works. | |
1266 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' | |
1267 _am_tools=${am_cv_prog_tar_$1-$_am_tools} | |
1268 # Do not fold the above two line into one, because Tru64 sh and | |
1269 # Solaris sh will not grok spaces in the rhs of `-'. | |
1270 for _am_tool in $_am_tools | |
1271 do | |
1272 case $_am_tool in | |
1273 gnutar) | |
1274 for _am_tar in tar gnutar gtar; | |
1275 do | |
1276 AM_RUN_LOG([$_am_tar --version]) && break | |
1277 done | |
1278 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' | |
1279 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' | |
1280 am__untar="$_am_tar -xf -" | |
1281 ;; | |
1282 plaintar) | |
1283 # Must skip GNU tar: if it does not support --format= it doesn't create | |
1284 # ustar tarball either. | |
1285 (tar --version) >/dev/null 2>&1 && continue | |
1286 am__tar='tar chf - "$$tardir"' | |
1287 am__tar_='tar chf - "$tardir"' | |
1288 am__untar='tar xf -' | |
1289 ;; | |
1290 pax) | |
1291 am__tar='pax -L -x $1 -w "$$tardir"' | |
1292 am__tar_='pax -L -x $1 -w "$tardir"' | |
1293 am__untar='pax -r' | |
1294 ;; | |
1295 cpio) | |
1296 am__tar='find "$$tardir" -print | cpio -o -H $1 -L' | |
1297 am__tar_='find "$tardir" -print | cpio -o -H $1 -L' | |
1298 am__untar='cpio -i -H $1 -d' | |
1299 ;; | |
1300 none) | |
1301 am__tar=false | |
1302 am__tar_=false | |
1303 am__untar=false | |
1304 ;; | |
1305 esac | |
1306 | |
1307 # If the value was cached, stop now. We just wanted to have am__tar | |
1308 # and am__untar set. | |
1309 test -n "${am_cv_prog_tar_$1}" && break | |
1310 | |
1311 # tar/untar a dummy directory, and stop if the command works | |
1312 rm -rf conftest.dir | |
1313 mkdir conftest.dir | |
1314 echo GrepMe > conftest.dir/file | |
1315 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) | |
1316 rm -rf conftest.dir | |
1317 if test -s conftest.tar; then | |
1318 AM_RUN_LOG([$am__untar <conftest.tar]) | |
1319 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break | |
1320 fi | |
1321 done | |
1322 rm -rf conftest.dir | |
1323 | |
1324 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) | |
1325 AC_MSG_RESULT([$am_cv_prog_tar_$1])]) | |
1326 AC_SUBST([am__tar]) | |
1327 AC_SUBST([am__untar]) | |
1328 ]) # _AM_PROG_TAR | |
1329 | |
1330 m4_include([m4/alloca.m4]) | |
1331 m4_include([m4/argp.m4]) | |
1332 m4_include([m4/dirname.m4]) | |
1333 m4_include([m4/dos.m4]) | |
1334 m4_include([m4/double-slash-root.m4]) | |
1335 m4_include([m4/errno_h.m4]) | |
1336 m4_include([m4/error.m4]) | |
1337 m4_include([m4/exitfail.m4]) | |
1338 m4_include([m4/extensions.m4]) | |
1339 m4_include([m4/float_h.m4]) | |
1340 m4_include([m4/getopt.m4]) | |
1341 m4_include([m4/gnulib-common.m4]) | |
1342 m4_include([m4/gnulib-comp.m4]) | |
1343 m4_include([m4/include_next.m4]) | |
1344 m4_include([m4/inline.m4]) | |
1345 m4_include([m4/intmax_t.m4]) | |
1346 m4_include([m4/inttypes_h.m4]) | |
1347 m4_include([m4/longlong.m4]) | |
1348 m4_include([m4/malloc.m4]) | |
1349 m4_include([m4/mempcpy.m4]) | |
1350 m4_include([m4/multiarch.m4]) | |
1351 m4_include([m4/onceonly.m4]) | |
1352 m4_include([m4/printf.m4]) | |
1353 m4_include([m4/rawmemchr.m4]) | |
1354 m4_include([m4/size_max.m4]) | |
1355 m4_include([m4/sleep.m4]) | |
1356 m4_include([m4/stdbool.m4]) | |
1357 m4_include([m4/stdint.m4]) | |
1358 m4_include([m4/stdint_h.m4]) | |
1359 m4_include([m4/stdio_h.m4]) | |
1360 m4_include([m4/stdlib_h.m4]) | |
1361 m4_include([m4/strcase.m4]) | |
1362 m4_include([m4/strchrnul.m4]) | |
1363 m4_include([m4/strerror.m4]) | |
1364 m4_include([m4/string_h.m4]) | |
1365 m4_include([m4/strings_h.m4]) | |
1366 m4_include([m4/strndup.m4]) | |
1367 m4_include([m4/strnlen.m4]) | |
1368 m4_include([m4/sysexits.m4]) | |
1369 m4_include([m4/unistd_h.m4]) | |
1370 m4_include([m4/vasnprintf.m4]) | |
1371 m4_include([m4/vsnprintf.m4]) | |
1372 m4_include([m4/wchar.m4]) | |
1373 m4_include([m4/wchar_t.m4]) | |
1374 m4_include([m4/wint_t.m4]) | |
1375 m4_include([m4/xalloc.m4]) | |
1376 m4_include([m4/xsize.m4]) | |
1377 m4_include([m4/xstrndup.m4]) |