]> sourceware.org Git - systemtap.git/blame - aclocal.m4
Fixed PR18577 by making 'stap -l **' faster.
[systemtap.git] / aclocal.m4
CommitLineData
b0c670f4 1# generated automatically by aclocal 1.14.1 -*- Autoconf -*-
8eef2738 2
b0c670f4 3# Copyright (C) 1996-2013 Free Software Foundation, Inc.
2f1a1aea 4
2f1a1aea
FCE
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
d9e6d90b 14m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
0710d850
DS
15m4_ifndef([AC_AUTOCONF_VERSION],
16 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
8eef2738
LB
17m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
18[m4_warning([this file was generated for autoconf 2.69.
0710d850
DS
19You have another version of autoconf. It may work, but is not guaranteed to.
20If you have problems, you may need to regenerate the build system entirely.
8eef2738 21To do so, use the procedure documented by the package, typically 'autoreconf'.])])
7fbd9d09 22
1f13f639
FL
23# gettext.m4 serial 66 (gettext-0.18.2)
24dnl Copyright (C) 1995-2014 Free Software Foundation, Inc.
25dnl This file is free software; the Free Software Foundation
26dnl gives unlimited permission to copy and/or distribute it,
27dnl with or without modifications, as long as this notice is preserved.
28dnl
29dnl This file can can be used in projects which are not available under
30dnl the GNU General Public License or the GNU Library General Public
31dnl License but which still want to provide support for the GNU gettext
32dnl functionality.
33dnl Please note that the actual code of the GNU gettext library is covered
34dnl by the GNU Library General Public License, and the rest of the GNU
35dnl gettext package package is covered by the GNU General Public License.
36dnl They are *not* in the public domain.
37
38dnl Authors:
39dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
40dnl Bruno Haible <haible@clisp.cons.org>, 2000-2006, 2008-2010.
41
42dnl Macro to add for using GNU gettext.
43
44dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]).
45dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The
46dnl default (if it is not specified or empty) is 'no-libtool'.
47dnl INTLSYMBOL should be 'external' for packages with no intl directory,
48dnl and 'no-libtool' or 'use-libtool' for packages with an intl directory.
49dnl If INTLSYMBOL is 'use-libtool', then a libtool library
50dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static,
51dnl depending on --{enable,disable}-{shared,static} and on the presence of
52dnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library
53dnl $(top_builddir)/intl/libintl.a will be created.
54dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext
55dnl implementations (in libc or libintl) without the ngettext() function
56dnl will be ignored. If NEEDSYMBOL is specified and is
57dnl 'need-formatstring-macros', then GNU gettext implementations that don't
58dnl support the ISO C 99 <inttypes.h> formatstring macros will be ignored.
59dnl INTLDIR is used to find the intl libraries. If empty,
60dnl the value '$(top_builddir)/intl/' is used.
61dnl
62dnl The result of the configuration is one of three cases:
63dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled
64dnl and used.
65dnl Catalog format: GNU --> install in $(datadir)
66dnl Catalog extension: .mo after installation, .gmo in source tree
67dnl 2) GNU gettext has been found in the system's C library.
68dnl Catalog format: GNU --> install in $(datadir)
69dnl Catalog extension: .mo after installation, .gmo in source tree
70dnl 3) No internationalization, always use English msgid.
71dnl Catalog format: none
72dnl Catalog extension: none
73dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur.
74dnl The use of .gmo is historical (it was needed to avoid overwriting the
75dnl GNU format catalogs when building on a platform with an X/Open gettext),
76dnl but we keep it in order not to force irrelevant filename changes on the
77dnl maintainers.
78dnl
79AC_DEFUN([AM_GNU_GETTEXT],
80[
81 dnl Argument checking.
82 ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], ,
83 [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT
84])])])])])
85 ifelse(ifelse([$1], [], [old])[]ifelse([$1], [no-libtool], [old]), [old],
86 [AC_DIAGNOSE([obsolete], [Use of AM_GNU_GETTEXT without [external] argument is deprecated.])])
87 ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], ,
88 [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT
89])])])])
90 define([gt_included_intl],
91 ifelse([$1], [external],
92 ifdef([AM_GNU_GETTEXT_][INTL_SUBDIR], [yes], [no]),
93 [yes]))
94 define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], []))
95 gt_NEEDS_INIT
96 AM_GNU_GETTEXT_NEED([$2])
97
98 AC_REQUIRE([AM_PO_SUBDIRS])dnl
99 ifelse(gt_included_intl, yes, [
100 AC_REQUIRE([AM_INTL_SUBDIR])dnl
101 ])
102
103 dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
104 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
105 AC_REQUIRE([AC_LIB_RPATH])
106
107 dnl Sometimes libintl requires libiconv, so first search for libiconv.
108 dnl Ideally we would do this search only after the
109 dnl if test "$USE_NLS" = "yes"; then
110 dnl if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
111 dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT
112 dnl the configure script would need to contain the same shell code
113 dnl again, outside any 'if'. There are two solutions:
114 dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'.
115 dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE.
116 dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not
117 dnl documented, we avoid it.
118 ifelse(gt_included_intl, yes, , [
119 AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
120 ])
121
122 dnl Sometimes, on Mac OS X, libintl requires linking with CoreFoundation.
123 gt_INTL_MACOSX
124
125 dnl Set USE_NLS.
126 AC_REQUIRE([AM_NLS])
127
128 ifelse(gt_included_intl, yes, [
129 BUILD_INCLUDED_LIBINTL=no
130 USE_INCLUDED_LIBINTL=no
131 ])
132 LIBINTL=
133 LTLIBINTL=
134 POSUB=
135
136 dnl Add a version number to the cache macros.
137 case " $gt_needs " in
138 *" need-formatstring-macros "*) gt_api_version=3 ;;
139 *" need-ngettext "*) gt_api_version=2 ;;
140 *) gt_api_version=1 ;;
141 esac
142 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
143 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
144
145 dnl If we use NLS figure out what method
146 if test "$USE_NLS" = "yes"; then
147 gt_use_preinstalled_gnugettext=no
148 ifelse(gt_included_intl, yes, [
149 AC_MSG_CHECKING([whether included gettext is requested])
150 AC_ARG_WITH([included-gettext],
151 [ --with-included-gettext use the GNU gettext library included here],
152 nls_cv_force_use_gnu_gettext=$withval,
153 nls_cv_force_use_gnu_gettext=no)
154 AC_MSG_RESULT([$nls_cv_force_use_gnu_gettext])
155
156 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
157 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
158 ])
159 dnl User does not insist on using GNU NLS library. Figure out what
160 dnl to use. If GNU gettext is available we use this. Else we have
161 dnl to fall back to GNU NLS library.
162
163 if test $gt_api_version -ge 3; then
164 gt_revision_test_code='
165#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
166#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
167#endif
168changequote(,)dnl
169typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
170changequote([,])dnl
171'
172 else
173 gt_revision_test_code=
174 fi
175 if test $gt_api_version -ge 2; then
176 gt_expression_test_code=' + * ngettext ("", "", 0)'
177 else
178 gt_expression_test_code=
179 fi
180
181 AC_CACHE_CHECK([for GNU gettext in libc], [$gt_func_gnugettext_libc],
182 [AC_LINK_IFELSE(
183 [AC_LANG_PROGRAM(
184 [[
185#include <libintl.h>
186$gt_revision_test_code
187extern int _nl_msg_cat_cntr;
188extern int *_nl_domain_bindings;
189 ]],
190 [[
191bindtextdomain ("", "");
192return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
193 ]])],
194 [eval "$gt_func_gnugettext_libc=yes"],
195 [eval "$gt_func_gnugettext_libc=no"])])
196
197 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
198 dnl Sometimes libintl requires libiconv, so first search for libiconv.
199 ifelse(gt_included_intl, yes, , [
200 AM_ICONV_LINK
201 ])
202 dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL
203 dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv])
204 dnl because that would add "-liconv" to LIBINTL and LTLIBINTL
205 dnl even if libiconv doesn't exist.
206 AC_LIB_LINKFLAGS_BODY([intl])
207 AC_CACHE_CHECK([for GNU gettext in libintl],
208 [$gt_func_gnugettext_libintl],
209 [gt_save_CPPFLAGS="$CPPFLAGS"
210 CPPFLAGS="$CPPFLAGS $INCINTL"
211 gt_save_LIBS="$LIBS"
212 LIBS="$LIBS $LIBINTL"
213 dnl Now see whether libintl exists and does not depend on libiconv.
214 AC_LINK_IFELSE(
215 [AC_LANG_PROGRAM(
216 [[
217#include <libintl.h>
218$gt_revision_test_code
219extern int _nl_msg_cat_cntr;
220extern
221#ifdef __cplusplus
222"C"
223#endif
224const char *_nl_expand_alias (const char *);
225 ]],
226 [[
227bindtextdomain ("", "");
228return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
229 ]])],
230 [eval "$gt_func_gnugettext_libintl=yes"],
231 [eval "$gt_func_gnugettext_libintl=no"])
232 dnl Now see whether libintl exists and depends on libiconv.
233 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
234 LIBS="$LIBS $LIBICONV"
235 AC_LINK_IFELSE(
236 [AC_LANG_PROGRAM(
237 [[
238#include <libintl.h>
239$gt_revision_test_code
240extern int _nl_msg_cat_cntr;
241extern
242#ifdef __cplusplus
243"C"
244#endif
245const char *_nl_expand_alias (const char *);
246 ]],
247 [[
248bindtextdomain ("", "");
249return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
250 ]])],
251 [LIBINTL="$LIBINTL $LIBICONV"
252 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
253 eval "$gt_func_gnugettext_libintl=yes"
254 ])
255 fi
256 CPPFLAGS="$gt_save_CPPFLAGS"
257 LIBS="$gt_save_LIBS"])
258 fi
259
260 dnl If an already present or preinstalled GNU gettext() is found,
261 dnl use it. But if this macro is used in GNU gettext, and GNU
262 dnl gettext is already preinstalled in libintl, we update this
263 dnl libintl. (Cf. the install rule in intl/Makefile.in.)
264 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
265 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
266 && test "$PACKAGE" != gettext-runtime \
267 && test "$PACKAGE" != gettext-tools; }; then
268 gt_use_preinstalled_gnugettext=yes
269 else
270 dnl Reset the values set by searching for libintl.
271 LIBINTL=
272 LTLIBINTL=
273 INCINTL=
274 fi
275
276 ifelse(gt_included_intl, yes, [
277 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
278 dnl GNU gettext is not found in the C library.
279 dnl Fall back on included GNU gettext library.
280 nls_cv_use_gnu_gettext=yes
281 fi
282 fi
283
284 if test "$nls_cv_use_gnu_gettext" = "yes"; then
285 dnl Mark actions used to generate GNU NLS library.
286 BUILD_INCLUDED_LIBINTL=yes
287 USE_INCLUDED_LIBINTL=yes
288 LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV $LIBTHREAD"
289 LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV $LTLIBTHREAD"
290 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
291 fi
292
293 CATOBJEXT=
294 if test "$gt_use_preinstalled_gnugettext" = "yes" \
295 || test "$nls_cv_use_gnu_gettext" = "yes"; then
296 dnl Mark actions to use GNU gettext tools.
297 CATOBJEXT=.gmo
298 fi
299 ])
300
301 if test -n "$INTL_MACOSX_LIBS"; then
302 if test "$gt_use_preinstalled_gnugettext" = "yes" \
303 || test "$nls_cv_use_gnu_gettext" = "yes"; then
304 dnl Some extra flags are needed during linking.
305 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
306 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
307 fi
308 fi
309
310 if test "$gt_use_preinstalled_gnugettext" = "yes" \
311 || test "$nls_cv_use_gnu_gettext" = "yes"; then
312 AC_DEFINE([ENABLE_NLS], [1],
313 [Define to 1 if translation of program messages to the user's native language
314 is requested.])
315 else
316 USE_NLS=no
317 fi
318 fi
319
320 AC_MSG_CHECKING([whether to use NLS])
321 AC_MSG_RESULT([$USE_NLS])
322 if test "$USE_NLS" = "yes"; then
323 AC_MSG_CHECKING([where the gettext function comes from])
324 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
325 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
326 gt_source="external libintl"
327 else
328 gt_source="libc"
329 fi
330 else
331 gt_source="included intl directory"
332 fi
333 AC_MSG_RESULT([$gt_source])
334 fi
335
336 if test "$USE_NLS" = "yes"; then
337
338 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
339 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
340 AC_MSG_CHECKING([how to link with libintl])
341 AC_MSG_RESULT([$LIBINTL])
342 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL])
343 fi
344
345 dnl For backward compatibility. Some packages may be using this.
346 AC_DEFINE([HAVE_GETTEXT], [1],
347 [Define if the GNU gettext() function is already present or preinstalled.])
348 AC_DEFINE([HAVE_DCGETTEXT], [1],
349 [Define if the GNU dcgettext() function is already present or preinstalled.])
350 fi
351
352 dnl We need to process the po/ directory.
353 POSUB=po
354 fi
355
356 ifelse(gt_included_intl, yes, [
357 dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL
358 dnl to 'yes' because some of the testsuite requires it.
359 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
360 BUILD_INCLUDED_LIBINTL=yes
361 fi
362
363 dnl Make all variables we use known to autoconf.
364 AC_SUBST([BUILD_INCLUDED_LIBINTL])
365 AC_SUBST([USE_INCLUDED_LIBINTL])
366 AC_SUBST([CATOBJEXT])
367
368 dnl For backward compatibility. Some configure.ins may be using this.
369 nls_cv_header_intl=
370 nls_cv_header_libgt=
371
372 dnl For backward compatibility. Some Makefiles may be using this.
373 DATADIRNAME=share
374 AC_SUBST([DATADIRNAME])
375
376 dnl For backward compatibility. Some Makefiles may be using this.
377 INSTOBJEXT=.mo
378 AC_SUBST([INSTOBJEXT])
379
380 dnl For backward compatibility. Some Makefiles may be using this.
381 GENCAT=gencat
382 AC_SUBST([GENCAT])
383
384 dnl For backward compatibility. Some Makefiles may be using this.
385 INTLOBJS=
386 if test "$USE_INCLUDED_LIBINTL" = yes; then
387 INTLOBJS="\$(GETTOBJS)"
388 fi
389 AC_SUBST([INTLOBJS])
390
391 dnl Enable libtool support if the surrounding package wishes it.
392 INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix
393 AC_SUBST([INTL_LIBTOOL_SUFFIX_PREFIX])
394 ])
395
396 dnl For backward compatibility. Some Makefiles may be using this.
397 INTLLIBS="$LIBINTL"
398 AC_SUBST([INTLLIBS])
399
400 dnl Make all documented variables known to autoconf.
401 AC_SUBST([LIBINTL])
402 AC_SUBST([LTLIBINTL])
403 AC_SUBST([POSUB])
404])
405
406
407dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized.
408m4_define([gt_NEEDS_INIT],
409[
410 m4_divert_text([DEFAULTS], [gt_needs=])
411 m4_define([gt_NEEDS_INIT], [])
412])
413
414
415dnl Usage: AM_GNU_GETTEXT_NEED([NEEDSYMBOL])
416AC_DEFUN([AM_GNU_GETTEXT_NEED],
417[
418 m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"])
419])
420
421
422dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version])
423AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])
424
425# iconv.m4 serial 19 (gettext-0.18.2)
426dnl Copyright (C) 2000-2002, 2007-2014 Free Software Foundation, Inc.
427dnl This file is free software; the Free Software Foundation
428dnl gives unlimited permission to copy and/or distribute it,
429dnl with or without modifications, as long as this notice is preserved.
430
431dnl From Bruno Haible.
432
433AC_DEFUN([AM_ICONV_LINKFLAGS_BODY],
434[
435 dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
436 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
437 AC_REQUIRE([AC_LIB_RPATH])
438
439 dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
440 dnl accordingly.
441 AC_LIB_LINKFLAGS_BODY([iconv])
442])
443
444AC_DEFUN([AM_ICONV_LINK],
445[
446 dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
447 dnl those with the standalone portable GNU libiconv installed).
448 AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
449
450 dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
451 dnl accordingly.
452 AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
453
454 dnl Add $INCICONV to CPPFLAGS before performing the following checks,
455 dnl because if the user has installed libiconv and not disabled its use
456 dnl via --without-libiconv-prefix, he wants to use it. The first
457 dnl AC_LINK_IFELSE will then fail, the second AC_LINK_IFELSE will succeed.
458 am_save_CPPFLAGS="$CPPFLAGS"
459 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV])
460
461 AC_CACHE_CHECK([for iconv], [am_cv_func_iconv], [
462 am_cv_func_iconv="no, consider installing GNU libiconv"
463 am_cv_lib_iconv=no
464 AC_LINK_IFELSE(
465 [AC_LANG_PROGRAM(
466 [[
467#include <stdlib.h>
468#include <iconv.h>
469 ]],
470 [[iconv_t cd = iconv_open("","");
471 iconv(cd,NULL,NULL,NULL,NULL);
472 iconv_close(cd);]])],
473 [am_cv_func_iconv=yes])
474 if test "$am_cv_func_iconv" != yes; then
475 am_save_LIBS="$LIBS"
476 LIBS="$LIBS $LIBICONV"
477 AC_LINK_IFELSE(
478 [AC_LANG_PROGRAM(
479 [[
480#include <stdlib.h>
481#include <iconv.h>
482 ]],
483 [[iconv_t cd = iconv_open("","");
484 iconv(cd,NULL,NULL,NULL,NULL);
485 iconv_close(cd);]])],
486 [am_cv_lib_iconv=yes]
487 [am_cv_func_iconv=yes])
488 LIBS="$am_save_LIBS"
489 fi
490 ])
491 if test "$am_cv_func_iconv" = yes; then
492 AC_CACHE_CHECK([for working iconv], [am_cv_func_iconv_works], [
493 dnl This tests against bugs in AIX 5.1, AIX 6.1..7.1, HP-UX 11.11,
494 dnl Solaris 10.
495 am_save_LIBS="$LIBS"
496 if test $am_cv_lib_iconv = yes; then
497 LIBS="$LIBS $LIBICONV"
498 fi
499 am_cv_func_iconv_works=no
500 for ac_iconv_const in '' 'const'; do
501 AC_RUN_IFELSE(
502 [AC_LANG_PROGRAM(
503 [[
504#include <iconv.h>
505#include <string.h>
506
507#ifndef ICONV_CONST
508# define ICONV_CONST $ac_iconv_const
509#endif
510 ]],
511 [[int result = 0;
512 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
513 returns. */
514 {
515 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
516 if (cd_utf8_to_88591 != (iconv_t)(-1))
517 {
518 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
519 char buf[10];
520 ICONV_CONST char *inptr = input;
521 size_t inbytesleft = strlen (input);
522 char *outptr = buf;
523 size_t outbytesleft = sizeof (buf);
524 size_t res = iconv (cd_utf8_to_88591,
525 &inptr, &inbytesleft,
526 &outptr, &outbytesleft);
527 if (res == 0)
528 result |= 1;
529 iconv_close (cd_utf8_to_88591);
530 }
531 }
532 /* Test against Solaris 10 bug: Failures are not distinguishable from
533 successful returns. */
534 {
535 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
536 if (cd_ascii_to_88591 != (iconv_t)(-1))
537 {
538 static ICONV_CONST char input[] = "\263";
539 char buf[10];
540 ICONV_CONST char *inptr = input;
541 size_t inbytesleft = strlen (input);
542 char *outptr = buf;
543 size_t outbytesleft = sizeof (buf);
544 size_t res = iconv (cd_ascii_to_88591,
545 &inptr, &inbytesleft,
546 &outptr, &outbytesleft);
547 if (res == 0)
548 result |= 2;
549 iconv_close (cd_ascii_to_88591);
550 }
551 }
552 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
553 {
554 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
555 if (cd_88591_to_utf8 != (iconv_t)(-1))
556 {
557 static ICONV_CONST char input[] = "\304";
558 static char buf[2] = { (char)0xDE, (char)0xAD };
559 ICONV_CONST char *inptr = input;
560 size_t inbytesleft = 1;
561 char *outptr = buf;
562 size_t outbytesleft = 1;
563 size_t res = iconv (cd_88591_to_utf8,
564 &inptr, &inbytesleft,
565 &outptr, &outbytesleft);
566 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
567 result |= 4;
568 iconv_close (cd_88591_to_utf8);
569 }
570 }
571#if 0 /* This bug could be worked around by the caller. */
572 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
573 {
574 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
575 if (cd_88591_to_utf8 != (iconv_t)(-1))
576 {
577 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
578 char buf[50];
579 ICONV_CONST char *inptr = input;
580 size_t inbytesleft = strlen (input);
581 char *outptr = buf;
582 size_t outbytesleft = sizeof (buf);
583 size_t res = iconv (cd_88591_to_utf8,
584 &inptr, &inbytesleft,
585 &outptr, &outbytesleft);
586 if ((int)res > 0)
587 result |= 8;
588 iconv_close (cd_88591_to_utf8);
589 }
590 }
591#endif
592 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
593 provided. */
594 if (/* Try standardized names. */
595 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
596 /* Try IRIX, OSF/1 names. */
597 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
598 /* Try AIX names. */
599 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
600 /* Try HP-UX names. */
601 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
602 result |= 16;
603 return result;
604]])],
605 [am_cv_func_iconv_works=yes], ,
606 [case "$host_os" in
607 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
608 *) am_cv_func_iconv_works="guessing yes" ;;
609 esac])
610 test "$am_cv_func_iconv_works" = no || break
611 done
612 LIBS="$am_save_LIBS"
613 ])
614 case "$am_cv_func_iconv_works" in
615 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
616 *) am_func_iconv=yes ;;
617 esac
618 else
619 am_func_iconv=no am_cv_lib_iconv=no
620 fi
621 if test "$am_func_iconv" = yes; then
622 AC_DEFINE([HAVE_ICONV], [1],
623 [Define if you have the iconv() function and it works.])
624 fi
625 if test "$am_cv_lib_iconv" = yes; then
626 AC_MSG_CHECKING([how to link with libiconv])
627 AC_MSG_RESULT([$LIBICONV])
628 else
629 dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV
630 dnl either.
631 CPPFLAGS="$am_save_CPPFLAGS"
632 LIBICONV=
633 LTLIBICONV=
634 fi
635 AC_SUBST([LIBICONV])
636 AC_SUBST([LTLIBICONV])
637])
638
639dnl Define AM_ICONV using AC_DEFUN_ONCE for Autoconf >= 2.64, in order to
640dnl avoid warnings like
641dnl "warning: AC_REQUIRE: `AM_ICONV' was expanded before it was required".
642dnl This is tricky because of the way 'aclocal' is implemented:
643dnl - It requires defining an auxiliary macro whose name ends in AC_DEFUN.
644dnl Otherwise aclocal's initial scan pass would miss the macro definition.
645dnl - It requires a line break inside the AC_DEFUN_ONCE and AC_DEFUN expansions.
646dnl Otherwise aclocal would emit many "Use of uninitialized value $1"
647dnl warnings.
648m4_define([gl_iconv_AC_DEFUN],
649 m4_version_prereq([2.64],
650 [[AC_DEFUN_ONCE(
651 [$1], [$2])]],
652 [m4_ifdef([gl_00GNULIB],
653 [[AC_DEFUN_ONCE(
654 [$1], [$2])]],
655 [[AC_DEFUN(
656 [$1], [$2])]])]))
657gl_iconv_AC_DEFUN([AM_ICONV],
658[
659 AM_ICONV_LINK
660 if test "$am_cv_func_iconv" = yes; then
661 AC_MSG_CHECKING([for iconv declaration])
662 AC_CACHE_VAL([am_cv_proto_iconv], [
663 AC_COMPILE_IFELSE(
664 [AC_LANG_PROGRAM(
665 [[
666#include <stdlib.h>
667#include <iconv.h>
668extern
669#ifdef __cplusplus
670"C"
671#endif
672#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
673size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
674#else
675size_t iconv();
676#endif
677 ]],
678 [[]])],
679 [am_cv_proto_iconv_arg1=""],
680 [am_cv_proto_iconv_arg1="const"])
681 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"])
682 am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
683 AC_MSG_RESULT([
684 $am_cv_proto_iconv])
685 AC_DEFINE_UNQUOTED([ICONV_CONST], [$am_cv_proto_iconv_arg1],
686 [Define as const if the declaration of iconv() needs const.])
687 dnl Also substitute ICONV_CONST in the gnulib generated <iconv.h>.
688 m4_ifdef([gl_ICONV_H_DEFAULTS],
689 [AC_REQUIRE([gl_ICONV_H_DEFAULTS])
690 if test -n "$am_cv_proto_iconv_arg1"; then
691 ICONV_CONST="const"
692 fi
693 ])
694 fi
695])
696
42f767d0 697# intlmacosx.m4 serial 5 (gettext-0.18.2)
46c282e4 698dnl Copyright (C) 2004-2014 Free Software Foundation, Inc.
42f767d0
JL
699dnl This file is free software; the Free Software Foundation
700dnl gives unlimited permission to copy and/or distribute it,
701dnl with or without modifications, as long as this notice is preserved.
702dnl
703dnl This file can can be used in projects which are not available under
704dnl the GNU General Public License or the GNU Library General Public
705dnl License but which still want to provide support for the GNU gettext
706dnl functionality.
707dnl Please note that the actual code of the GNU gettext library is covered
708dnl by the GNU Library General Public License, and the rest of the GNU
709dnl gettext package package is covered by the GNU General Public License.
710dnl They are *not* in the public domain.
711
712dnl Checks for special options needed on Mac OS X.
713dnl Defines INTL_MACOSX_LIBS.
714AC_DEFUN([gt_INTL_MACOSX],
715[
716 dnl Check for API introduced in Mac OS X 10.2.
717 AC_CACHE_CHECK([for CFPreferencesCopyAppValue],
718 [gt_cv_func_CFPreferencesCopyAppValue],
719 [gt_save_LIBS="$LIBS"
720 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
721 AC_LINK_IFELSE(
722 [AC_LANG_PROGRAM(
723 [[#include <CoreFoundation/CFPreferences.h>]],
724 [[CFPreferencesCopyAppValue(NULL, NULL)]])],
725 [gt_cv_func_CFPreferencesCopyAppValue=yes],
726 [gt_cv_func_CFPreferencesCopyAppValue=no])
727 LIBS="$gt_save_LIBS"])
728 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
729 AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], [1],
730 [Define to 1 if you have the Mac OS X function CFPreferencesCopyAppValue in the CoreFoundation framework.])
731 fi
732 dnl Check for API introduced in Mac OS X 10.3.
733 AC_CACHE_CHECK([for CFLocaleCopyCurrent], [gt_cv_func_CFLocaleCopyCurrent],
734 [gt_save_LIBS="$LIBS"
735 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
736 AC_LINK_IFELSE(
737 [AC_LANG_PROGRAM(
738 [[#include <CoreFoundation/CFLocale.h>]],
739 [[CFLocaleCopyCurrent();]])],
740 [gt_cv_func_CFLocaleCopyCurrent=yes],
741 [gt_cv_func_CFLocaleCopyCurrent=no])
742 LIBS="$gt_save_LIBS"])
743 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
744 AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], [1],
745 [Define to 1 if you have the Mac OS X function CFLocaleCopyCurrent in the CoreFoundation framework.])
746 fi
747 INTL_MACOSX_LIBS=
748 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
749 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
750 fi
751 AC_SUBST([INTL_MACOSX_LIBS])
752])
753
1f13f639
FL
754# lib-ld.m4 serial 6
755dnl Copyright (C) 1996-2003, 2009-2014 Free Software Foundation, Inc.
756dnl This file is free software; the Free Software Foundation
757dnl gives unlimited permission to copy and/or distribute it,
758dnl with or without modifications, as long as this notice is preserved.
759
760dnl Subroutines of libtool.m4,
761dnl with replacements s/_*LT_PATH/AC_LIB_PROG/ and s/lt_/acl_/ to avoid
762dnl collision with libtool.m4.
763
764dnl From libtool-2.4. Sets the variable with_gnu_ld to yes or no.
765AC_DEFUN([AC_LIB_PROG_LD_GNU],
766[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], [acl_cv_prog_gnu_ld],
767[# I'd rather use --version here, but apparently some GNU lds only accept -v.
768case `$LD -v 2>&1 </dev/null` in
769*GNU* | *'with BFD'*)
770 acl_cv_prog_gnu_ld=yes
771 ;;
772*)
773 acl_cv_prog_gnu_ld=no
774 ;;
775esac])
776with_gnu_ld=$acl_cv_prog_gnu_ld
777])
778
779dnl From libtool-2.4. Sets the variable LD.
780AC_DEFUN([AC_LIB_PROG_LD],
781[AC_REQUIRE([AC_PROG_CC])dnl
782AC_REQUIRE([AC_CANONICAL_HOST])dnl
783
784AC_ARG_WITH([gnu-ld],
785 [AS_HELP_STRING([--with-gnu-ld],
786 [assume the C compiler uses GNU ld [default=no]])],
787 [test "$withval" = no || with_gnu_ld=yes],
788 [with_gnu_ld=no])dnl
789
790# Prepare PATH_SEPARATOR.
791# The user is always right.
792if test "${PATH_SEPARATOR+set}" != set; then
793 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
794 # contains only /bin. Note that ksh looks also at the FPATH variable,
795 # so we have to set that as well for the test.
796 PATH_SEPARATOR=:
797 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
798 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
799 || PATH_SEPARATOR=';'
800 }
801fi
802
803ac_prog=ld
804if test "$GCC" = yes; then
805 # Check if gcc -print-prog-name=ld gives a path.
806 AC_MSG_CHECKING([for ld used by $CC])
807 case $host in
808 *-*-mingw*)
809 # gcc leaves a trailing carriage return which upsets mingw
810 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
811 *)
812 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
813 esac
814 case $ac_prog in
815 # Accept absolute paths.
816 [[\\/]]* | ?:[[\\/]]*)
817 re_direlt='/[[^/]][[^/]]*/\.\./'
818 # Canonicalize the pathname of ld
819 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
820 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
821 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
822 done
823 test -z "$LD" && LD="$ac_prog"
824 ;;
825 "")
826 # If it fails, then pretend we aren't using GCC.
827 ac_prog=ld
828 ;;
829 *)
830 # If it is relative, then search for the first ld in PATH.
831 with_gnu_ld=unknown
832 ;;
833 esac
834elif test "$with_gnu_ld" = yes; then
835 AC_MSG_CHECKING([for GNU ld])
836else
837 AC_MSG_CHECKING([for non-GNU ld])
838fi
839AC_CACHE_VAL([acl_cv_path_LD],
840[if test -z "$LD"; then
841 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
842 for ac_dir in $PATH; do
843 IFS="$acl_save_ifs"
844 test -z "$ac_dir" && ac_dir=.
845 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
846 acl_cv_path_LD="$ac_dir/$ac_prog"
847 # Check to see if the program is GNU ld. I'd rather use --version,
848 # but apparently some variants of GNU ld only accept -v.
849 # Break only if it was the GNU/non-GNU ld that we prefer.
850 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
851 *GNU* | *'with BFD'*)
852 test "$with_gnu_ld" != no && break
853 ;;
854 *)
855 test "$with_gnu_ld" != yes && break
856 ;;
857 esac
858 fi
859 done
860 IFS="$acl_save_ifs"
861else
862 acl_cv_path_LD="$LD" # Let the user override the test with a path.
863fi])
864LD="$acl_cv_path_LD"
865if test -n "$LD"; then
866 AC_MSG_RESULT([$LD])
867else
868 AC_MSG_RESULT([no])
869fi
870test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
871AC_LIB_PROG_LD_GNU
872])
873
874# lib-link.m4 serial 26 (gettext-0.18.2)
875dnl Copyright (C) 2001-2014 Free Software Foundation, Inc.
876dnl This file is free software; the Free Software Foundation
877dnl gives unlimited permission to copy and/or distribute it,
878dnl with or without modifications, as long as this notice is preserved.
879
880dnl From Bruno Haible.
881
882AC_PREREQ([2.54])
883
884dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
885dnl the libraries corresponding to explicit and implicit dependencies.
886dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
887dnl augments the CPPFLAGS variable.
888dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname
889dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
890AC_DEFUN([AC_LIB_LINKFLAGS],
891[
892 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
893 AC_REQUIRE([AC_LIB_RPATH])
894 pushdef([Name],[m4_translit([$1],[./+-], [____])])
895 pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
896 [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
897 AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
898 AC_LIB_LINKFLAGS_BODY([$1], [$2])
899 ac_cv_lib[]Name[]_libs="$LIB[]NAME"
900 ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
901 ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
902 ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX"
903 ])
904 LIB[]NAME="$ac_cv_lib[]Name[]_libs"
905 LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
906 INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
907 LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix"
908 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
909 AC_SUBST([LIB]NAME)
910 AC_SUBST([LTLIB]NAME)
911 AC_SUBST([LIB]NAME[_PREFIX])
912 dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
913 dnl results of this search when this library appears as a dependency.
914 HAVE_LIB[]NAME=yes
915 popdef([NAME])
916 popdef([Name])
917])
918
919dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode, [missing-message])
920dnl searches for libname and the libraries corresponding to explicit and
921dnl implicit dependencies, together with the specified include files and
922dnl the ability to compile and link the specified testcode. The missing-message
923dnl defaults to 'no' and may contain additional hints for the user.
924dnl If found, it sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME}
925dnl and LTLIB${NAME} variables and augments the CPPFLAGS variable, and
926dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
927dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
928dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname
929dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
930AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
931[
932 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
933 AC_REQUIRE([AC_LIB_RPATH])
934 pushdef([Name],[m4_translit([$1],[./+-], [____])])
935 pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
936 [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
937
938 dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
939 dnl accordingly.
940 AC_LIB_LINKFLAGS_BODY([$1], [$2])
941
942 dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
943 dnl because if the user has installed lib[]Name and not disabled its use
944 dnl via --without-lib[]Name-prefix, he wants to use it.
945 ac_save_CPPFLAGS="$CPPFLAGS"
946 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
947
948 AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
949 ac_save_LIBS="$LIBS"
950 dnl If $LIB[]NAME contains some -l options, add it to the end of LIBS,
951 dnl because these -l options might require -L options that are present in
952 dnl LIBS. -l options benefit only from the -L options listed before it.
953 dnl Otherwise, add it to the front of LIBS, because it may be a static
954 dnl library that depends on another static library that is present in LIBS.
955 dnl Static libraries benefit only from the static libraries listed after
956 dnl it.
957 case " $LIB[]NAME" in
958 *" -l"*) LIBS="$LIBS $LIB[]NAME" ;;
959 *) LIBS="$LIB[]NAME $LIBS" ;;
960 esac
961 AC_LINK_IFELSE(
962 [AC_LANG_PROGRAM([[$3]], [[$4]])],
963 [ac_cv_lib[]Name=yes],
964 [ac_cv_lib[]Name='m4_if([$5], [], [no], [[$5]])'])
965 LIBS="$ac_save_LIBS"
966 ])
967 if test "$ac_cv_lib[]Name" = yes; then
968 HAVE_LIB[]NAME=yes
969 AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the lib][$1 library.])
970 AC_MSG_CHECKING([how to link with lib[]$1])
971 AC_MSG_RESULT([$LIB[]NAME])
972 else
973 HAVE_LIB[]NAME=no
974 dnl If $LIB[]NAME didn't lead to a usable library, we don't need
975 dnl $INC[]NAME either.
976 CPPFLAGS="$ac_save_CPPFLAGS"
977 LIB[]NAME=
978 LTLIB[]NAME=
979 LIB[]NAME[]_PREFIX=
980 fi
981 AC_SUBST([HAVE_LIB]NAME)
982 AC_SUBST([LIB]NAME)
983 AC_SUBST([LTLIB]NAME)
984 AC_SUBST([LIB]NAME[_PREFIX])
985 popdef([NAME])
986 popdef([Name])
987])
988
989dnl Determine the platform dependent parameters needed to use rpath:
990dnl acl_libext,
991dnl acl_shlibext,
992dnl acl_libname_spec,
993dnl acl_library_names_spec,
994dnl acl_hardcode_libdir_flag_spec,
995dnl acl_hardcode_libdir_separator,
996dnl acl_hardcode_direct,
997dnl acl_hardcode_minus_L.
998AC_DEFUN([AC_LIB_RPATH],
999[
1000 dnl Tell automake >= 1.10 to complain if config.rpath is missing.
1001 m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
1002 AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS
1003 AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld
1004 AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host
1005 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
1006 AC_CACHE_CHECK([for shared library run path origin], [acl_cv_rpath], [
1007 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
1008 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
1009 . ./conftest.sh
1010 rm -f ./conftest.sh
1011 acl_cv_rpath=done
1012 ])
1013 wl="$acl_cv_wl"
1014 acl_libext="$acl_cv_libext"
1015 acl_shlibext="$acl_cv_shlibext"
1016 acl_libname_spec="$acl_cv_libname_spec"
1017 acl_library_names_spec="$acl_cv_library_names_spec"
1018 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
1019 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
1020 acl_hardcode_direct="$acl_cv_hardcode_direct"
1021 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
1022 dnl Determine whether the user wants rpath handling at all.
1023 AC_ARG_ENABLE([rpath],
1024 [ --disable-rpath do not hardcode runtime library paths],
1025 :, enable_rpath=yes)
1026])
1027
1028dnl AC_LIB_FROMPACKAGE(name, package)
1029dnl declares that libname comes from the given package. The configure file
1030dnl will then not have a --with-libname-prefix option but a
1031dnl --with-package-prefix option. Several libraries can come from the same
1032dnl package. This declaration must occur before an AC_LIB_LINKFLAGS or similar
1033dnl macro call that searches for libname.
1034AC_DEFUN([AC_LIB_FROMPACKAGE],
1035[
1036 pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
1037 [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
1038 define([acl_frompackage_]NAME, [$2])
1039 popdef([NAME])
1040 pushdef([PACK],[$2])
1041 pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-],
1042 [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
1043 define([acl_libsinpackage_]PACKUP,
1044 m4_ifdef([acl_libsinpackage_]PACKUP, [m4_defn([acl_libsinpackage_]PACKUP)[, ]],)[lib$1])
1045 popdef([PACKUP])
1046 popdef([PACK])
1047])
1048
1049dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
1050dnl the libraries corresponding to explicit and implicit dependencies.
1051dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
1052dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found
1053dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
1054AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
1055[
1056 AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
1057 pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
1058 [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
1059 pushdef([PACK],[m4_ifdef([acl_frompackage_]NAME, [acl_frompackage_]NAME, lib[$1])])
1060 pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-],
1061 [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
1062 pushdef([PACKLIBS],[m4_ifdef([acl_frompackage_]NAME, [acl_libsinpackage_]PACKUP, lib[$1])])
1063 dnl Autoconf >= 2.61 supports dots in --with options.
1064 pushdef([P_A_C_K],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[m4_translit(PACK,[.],[_])],PACK)])
1065 dnl By default, look in $includedir and $libdir.
1066 use_additional=yes
1067 AC_LIB_WITH_FINAL_PREFIX([
1068 eval additional_includedir=\"$includedir\"
1069 eval additional_libdir=\"$libdir\"
1070 ])
1071 AC_ARG_WITH(P_A_C_K[-prefix],
1072[[ --with-]]P_A_C_K[[-prefix[=DIR] search for ]PACKLIBS[ in DIR/include and DIR/lib
1073 --without-]]P_A_C_K[[-prefix don't search for ]PACKLIBS[ in includedir and libdir]],
1074[
1075 if test "X$withval" = "Xno"; then
1076 use_additional=no
1077 else
1078 if test "X$withval" = "X"; then
1079 AC_LIB_WITH_FINAL_PREFIX([
1080 eval additional_includedir=\"$includedir\"
1081 eval additional_libdir=\"$libdir\"
1082 ])
1083 else
1084 additional_includedir="$withval/include"
1085 additional_libdir="$withval/$acl_libdirstem"
1086 if test "$acl_libdirstem2" != "$acl_libdirstem" \
1087 && ! test -d "$withval/$acl_libdirstem"; then
1088 additional_libdir="$withval/$acl_libdirstem2"
1089 fi
1090 fi
1091 fi
1092])
1093 dnl Search the library and its dependencies in $additional_libdir and
1094 dnl $LDFLAGS. Using breadth-first-seach.
1095 LIB[]NAME=
1096 LTLIB[]NAME=
1097 INC[]NAME=
1098 LIB[]NAME[]_PREFIX=
1099 dnl HAVE_LIB${NAME} is an indicator that LIB${NAME}, LTLIB${NAME} have been
1100 dnl computed. So it has to be reset here.
1101 HAVE_LIB[]NAME=
1102 rpathdirs=
1103 ltrpathdirs=
1104 names_already_handled=
1105 names_next_round='$1 $2'
1106 while test -n "$names_next_round"; do
1107 names_this_round="$names_next_round"
1108 names_next_round=
1109 for name in $names_this_round; do
1110 already_handled=
1111 for n in $names_already_handled; do
1112 if test "$n" = "$name"; then
1113 already_handled=yes
1114 break
1115 fi
1116 done
1117 if test -z "$already_handled"; then
1118 names_already_handled="$names_already_handled $name"
1119 dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
1120 dnl or AC_LIB_HAVE_LINKFLAGS call.
1121 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
1122 eval value=\"\$HAVE_LIB$uppername\"
1123 if test -n "$value"; then
1124 if test "$value" = yes; then
1125 eval value=\"\$LIB$uppername\"
1126 test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
1127 eval value=\"\$LTLIB$uppername\"
1128 test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
1129 else
1130 dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
1131 dnl that this library doesn't exist. So just drop it.
1132 :
1133 fi
1134 else
1135 dnl Search the library lib$name in $additional_libdir and $LDFLAGS
1136 dnl and the already constructed $LIBNAME/$LTLIBNAME.
1137 found_dir=
1138 found_la=
1139 found_so=
1140 found_a=
1141 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
1142 if test -n "$acl_shlibext"; then
1143 shrext=".$acl_shlibext" # typically: shrext=.so
1144 else
1145 shrext=
1146 fi
1147 if test $use_additional = yes; then
1148 dir="$additional_libdir"
1149 dnl The same code as in the loop below:
1150 dnl First look for a shared library.
1151 if test -n "$acl_shlibext"; then
1152 if test -f "$dir/$libname$shrext"; then
1153 found_dir="$dir"
1154 found_so="$dir/$libname$shrext"
1155 else
1156 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
1157 ver=`(cd "$dir" && \
1158 for f in "$libname$shrext".*; do echo "$f"; done \
1159 | sed -e "s,^$libname$shrext\\\\.,," \
1160 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
1161 | sed 1q ) 2>/dev/null`
1162 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
1163 found_dir="$dir"
1164 found_so="$dir/$libname$shrext.$ver"
1165 fi
1166 else
1167 eval library_names=\"$acl_library_names_spec\"
1168 for f in $library_names; do
1169 if test -f "$dir/$f"; then
1170 found_dir="$dir"
1171 found_so="$dir/$f"
1172 break
1173 fi
1174 done
1175 fi
1176 fi
1177 fi
1178 dnl Then look for a static library.
1179 if test "X$found_dir" = "X"; then
1180 if test -f "$dir/$libname.$acl_libext"; then
1181 found_dir="$dir"
1182 found_a="$dir/$libname.$acl_libext"
1183 fi
1184 fi
1185 if test "X$found_dir" != "X"; then
1186 if test -f "$dir/$libname.la"; then
1187 found_la="$dir/$libname.la"
1188 fi
1189 fi
1190 fi
1191 if test "X$found_dir" = "X"; then
1192 for x in $LDFLAGS $LTLIB[]NAME; do
1193 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1194 case "$x" in
1195 -L*)
1196 dir=`echo "X$x" | sed -e 's/^X-L//'`
1197 dnl First look for a shared library.
1198 if test -n "$acl_shlibext"; then
1199 if test -f "$dir/$libname$shrext"; then
1200 found_dir="$dir"
1201 found_so="$dir/$libname$shrext"
1202 else
1203 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
1204 ver=`(cd "$dir" && \
1205 for f in "$libname$shrext".*; do echo "$f"; done \
1206 | sed -e "s,^$libname$shrext\\\\.,," \
1207 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
1208 | sed 1q ) 2>/dev/null`
1209 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
1210 found_dir="$dir"
1211 found_so="$dir/$libname$shrext.$ver"
1212 fi
1213 else
1214 eval library_names=\"$acl_library_names_spec\"
1215 for f in $library_names; do
1216 if test -f "$dir/$f"; then
1217 found_dir="$dir"
1218 found_so="$dir/$f"
1219 break
1220 fi
1221 done
1222 fi
1223 fi
1224 fi
1225 dnl Then look for a static library.
1226 if test "X$found_dir" = "X"; then
1227 if test -f "$dir/$libname.$acl_libext"; then
1228 found_dir="$dir"
1229 found_a="$dir/$libname.$acl_libext"
1230 fi
1231 fi
1232 if test "X$found_dir" != "X"; then
1233 if test -f "$dir/$libname.la"; then
1234 found_la="$dir/$libname.la"
1235 fi
1236 fi
1237 ;;
1238 esac
1239 if test "X$found_dir" != "X"; then
1240 break
1241 fi
1242 done
1243 fi
1244 if test "X$found_dir" != "X"; then
1245 dnl Found the library.
1246 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
1247 if test "X$found_so" != "X"; then
1248 dnl Linking with a shared library. We attempt to hardcode its
1249 dnl directory into the executable's runpath, unless it's the
1250 dnl standard /usr/lib.
1251 if test "$enable_rpath" = no \
1252 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
1253 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
1254 dnl No hardcoding is needed.
1255 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
1256 else
1257 dnl Use an explicit option to hardcode DIR into the resulting
1258 dnl binary.
1259 dnl Potentially add DIR to ltrpathdirs.
1260 dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
1261 haveit=
1262 for x in $ltrpathdirs; do
1263 if test "X$x" = "X$found_dir"; then
1264 haveit=yes
1265 break
1266 fi
1267 done
1268 if test -z "$haveit"; then
1269 ltrpathdirs="$ltrpathdirs $found_dir"
1270 fi
1271 dnl The hardcoding into $LIBNAME is system dependent.
1272 if test "$acl_hardcode_direct" = yes; then
1273 dnl Using DIR/libNAME.so during linking hardcodes DIR into the
1274 dnl resulting binary.
1275 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
1276 else
1277 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
1278 dnl Use an explicit option to hardcode DIR into the resulting
1279 dnl binary.
1280 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
1281 dnl Potentially add DIR to rpathdirs.
1282 dnl The rpathdirs will be appended to $LIBNAME at the end.
1283 haveit=
1284 for x in $rpathdirs; do
1285 if test "X$x" = "X$found_dir"; then
1286 haveit=yes
1287 break
1288 fi
1289 done
1290 if test -z "$haveit"; then
1291 rpathdirs="$rpathdirs $found_dir"
1292 fi
1293 else
1294 dnl Rely on "-L$found_dir".
1295 dnl But don't add it if it's already contained in the LDFLAGS
1296 dnl or the already constructed $LIBNAME
1297 haveit=
1298 for x in $LDFLAGS $LIB[]NAME; do
1299 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1300 if test "X$x" = "X-L$found_dir"; then
1301 haveit=yes
1302 break
1303 fi
1304 done
1305 if test -z "$haveit"; then
1306 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
1307 fi
1308 if test "$acl_hardcode_minus_L" != no; then
1309 dnl FIXME: Not sure whether we should use
1310 dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
1311 dnl here.
1312 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
1313 else
1314 dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH
1315 dnl here, because this doesn't fit in flags passed to the
1316 dnl compiler. So give up. No hardcoding. This affects only
1317 dnl very old systems.
1318 dnl FIXME: Not sure whether we should use
1319 dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
1320 dnl here.
1321 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
1322 fi
1323 fi
1324 fi
1325 fi
1326 else
1327 if test "X$found_a" != "X"; then
1328 dnl Linking with a static library.
1329 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
1330 else
1331 dnl We shouldn't come here, but anyway it's good to have a
1332 dnl fallback.
1333 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
1334 fi
1335 fi
1336 dnl Assume the include files are nearby.
1337 additional_includedir=
1338 case "$found_dir" in
1339 */$acl_libdirstem | */$acl_libdirstem/)
1340 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
1341 if test "$name" = '$1'; then
1342 LIB[]NAME[]_PREFIX="$basedir"
1343 fi
1344 additional_includedir="$basedir/include"
1345 ;;
1346 */$acl_libdirstem2 | */$acl_libdirstem2/)
1347 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
1348 if test "$name" = '$1'; then
1349 LIB[]NAME[]_PREFIX="$basedir"
1350 fi
1351 additional_includedir="$basedir/include"
1352 ;;
1353 esac
1354 if test "X$additional_includedir" != "X"; then
1355 dnl Potentially add $additional_includedir to $INCNAME.
1356 dnl But don't add it
1357 dnl 1. if it's the standard /usr/include,
1358 dnl 2. if it's /usr/local/include and we are using GCC on Linux,
1359 dnl 3. if it's already present in $CPPFLAGS or the already
1360 dnl constructed $INCNAME,
1361 dnl 4. if it doesn't exist as a directory.
1362 if test "X$additional_includedir" != "X/usr/include"; then
1363 haveit=
1364 if test "X$additional_includedir" = "X/usr/local/include"; then
1365 if test -n "$GCC"; then
1366 case $host_os in
1367 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
1368 esac
1369 fi
1370 fi
1371 if test -z "$haveit"; then
1372 for x in $CPPFLAGS $INC[]NAME; do
1373 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1374 if test "X$x" = "X-I$additional_includedir"; then
1375 haveit=yes
1376 break
1377 fi
1378 done
1379 if test -z "$haveit"; then
1380 if test -d "$additional_includedir"; then
1381 dnl Really add $additional_includedir to $INCNAME.
1382 INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
1383 fi
1384 fi
1385 fi
1386 fi
1387 fi
1388 dnl Look for dependencies.
1389 if test -n "$found_la"; then
1390 dnl Read the .la file. It defines the variables
1391 dnl dlname, library_names, old_library, dependency_libs, current,
1392 dnl age, revision, installed, dlopen, dlpreopen, libdir.
1393 save_libdir="$libdir"
1394 case "$found_la" in
1395 */* | *\\*) . "$found_la" ;;
1396 *) . "./$found_la" ;;
1397 esac
1398 libdir="$save_libdir"
1399 dnl We use only dependency_libs.
1400 for dep in $dependency_libs; do
1401 case "$dep" in
1402 -L*)
1403 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
1404 dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
1405 dnl But don't add it
1406 dnl 1. if it's the standard /usr/lib,
1407 dnl 2. if it's /usr/local/lib and we are using GCC on Linux,
1408 dnl 3. if it's already present in $LDFLAGS or the already
1409 dnl constructed $LIBNAME,
1410 dnl 4. if it doesn't exist as a directory.
1411 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
1412 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
1413 haveit=
1414 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
1415 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
1416 if test -n "$GCC"; then
1417 case $host_os in
1418 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
1419 esac
1420 fi
1421 fi
1422 if test -z "$haveit"; then
1423 haveit=
1424 for x in $LDFLAGS $LIB[]NAME; do
1425 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1426 if test "X$x" = "X-L$additional_libdir"; then
1427 haveit=yes
1428 break
1429 fi
1430 done
1431 if test -z "$haveit"; then
1432 if test -d "$additional_libdir"; then
1433 dnl Really add $additional_libdir to $LIBNAME.
1434 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
1435 fi
1436 fi
1437 haveit=
1438 for x in $LDFLAGS $LTLIB[]NAME; do
1439 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1440 if test "X$x" = "X-L$additional_libdir"; then
1441 haveit=yes
1442 break
1443 fi
1444 done
1445 if test -z "$haveit"; then
1446 if test -d "$additional_libdir"; then
1447 dnl Really add $additional_libdir to $LTLIBNAME.
1448 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
1449 fi
1450 fi
1451 fi
1452 fi
1453 ;;
1454 -R*)
1455 dir=`echo "X$dep" | sed -e 's/^X-R//'`
1456 if test "$enable_rpath" != no; then
1457 dnl Potentially add DIR to rpathdirs.
1458 dnl The rpathdirs will be appended to $LIBNAME at the end.
1459 haveit=
1460 for x in $rpathdirs; do
1461 if test "X$x" = "X$dir"; then
1462 haveit=yes
1463 break
1464 fi
1465 done
1466 if test -z "$haveit"; then
1467 rpathdirs="$rpathdirs $dir"
1468 fi
1469 dnl Potentially add DIR to ltrpathdirs.
1470 dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
1471 haveit=
1472 for x in $ltrpathdirs; do
1473 if test "X$x" = "X$dir"; then
1474 haveit=yes
1475 break
1476 fi
1477 done
1478 if test -z "$haveit"; then
1479 ltrpathdirs="$ltrpathdirs $dir"
1480 fi
1481 fi
1482 ;;
1483 -l*)
1484 dnl Handle this in the next round.
1485 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
1486 ;;
1487 *.la)
1488 dnl Handle this in the next round. Throw away the .la's
1489 dnl directory; it is already contained in a preceding -L
1490 dnl option.
1491 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
1492 ;;
1493 *)
1494 dnl Most likely an immediate library name.
1495 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
1496 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
1497 ;;
1498 esac
1499 done
1500 fi
1501 else
1502 dnl Didn't find the library; assume it is in the system directories
1503 dnl known to the linker and runtime loader. (All the system
1504 dnl directories known to the linker should also be known to the
1505 dnl runtime loader, otherwise the system is severely misconfigured.)
1506 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
1507 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
1508 fi
1509 fi
1510 fi
1511 done
1512 done
1513 if test "X$rpathdirs" != "X"; then
1514 if test -n "$acl_hardcode_libdir_separator"; then
1515 dnl Weird platform: only the last -rpath option counts, the user must
1516 dnl pass all path elements in one option. We can arrange that for a
1517 dnl single library, but not when more than one $LIBNAMEs are used.
1518 alldirs=
1519 for found_dir in $rpathdirs; do
1520 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
1521 done
1522 dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl.
1523 acl_save_libdir="$libdir"
1524 libdir="$alldirs"
1525 eval flag=\"$acl_hardcode_libdir_flag_spec\"
1526 libdir="$acl_save_libdir"
1527 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
1528 else
1529 dnl The -rpath options are cumulative.
1530 for found_dir in $rpathdirs; do
1531 acl_save_libdir="$libdir"
1532 libdir="$found_dir"
1533 eval flag=\"$acl_hardcode_libdir_flag_spec\"
1534 libdir="$acl_save_libdir"
1535 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
1536 done
1537 fi
1538 fi
1539 if test "X$ltrpathdirs" != "X"; then
1540 dnl When using libtool, the option that works for both libraries and
1541 dnl executables is -R. The -R options are cumulative.
1542 for found_dir in $ltrpathdirs; do
1543 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
1544 done
1545 fi
1546 popdef([P_A_C_K])
1547 popdef([PACKLIBS])
1548 popdef([PACKUP])
1549 popdef([PACK])
1550 popdef([NAME])
1551])
1552
1553dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
1554dnl unless already present in VAR.
1555dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
1556dnl contains two or three consecutive elements that belong together.
1557AC_DEFUN([AC_LIB_APPENDTOVAR],
1558[
1559 for element in [$2]; do
1560 haveit=
1561 for x in $[$1]; do
1562 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1563 if test "X$x" = "X$element"; then
1564 haveit=yes
1565 break
1566 fi
1567 done
1568 if test -z "$haveit"; then
1569 [$1]="${[$1]}${[$1]:+ }$element"
1570 fi
1571 done
1572])
1573
1574dnl For those cases where a variable contains several -L and -l options
1575dnl referring to unknown libraries and directories, this macro determines the
1576dnl necessary additional linker options for the runtime path.
1577dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL])
1578dnl sets LDADDVAR to linker options needed together with LIBSVALUE.
1579dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed,
1580dnl otherwise linking without libtool is assumed.
1581AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS],
1582[
1583 AC_REQUIRE([AC_LIB_RPATH])
1584 AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
1585 $1=
1586 if test "$enable_rpath" != no; then
1587 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
1588 dnl Use an explicit option to hardcode directories into the resulting
1589 dnl binary.
1590 rpathdirs=
1591 next=
1592 for opt in $2; do
1593 if test -n "$next"; then
1594 dir="$next"
1595 dnl No need to hardcode the standard /usr/lib.
1596 if test "X$dir" != "X/usr/$acl_libdirstem" \
1597 && test "X$dir" != "X/usr/$acl_libdirstem2"; then
1598 rpathdirs="$rpathdirs $dir"
1599 fi
1600 next=
1601 else
1602 case $opt in
1603 -L) next=yes ;;
1604 -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
1605 dnl No need to hardcode the standard /usr/lib.
1606 if test "X$dir" != "X/usr/$acl_libdirstem" \
1607 && test "X$dir" != "X/usr/$acl_libdirstem2"; then
1608 rpathdirs="$rpathdirs $dir"
1609 fi
1610 next= ;;
1611 *) next= ;;
1612 esac
1613 fi
1614 done
1615 if test "X$rpathdirs" != "X"; then
1616 if test -n ""$3""; then
1617 dnl libtool is used for linking. Use -R options.
1618 for dir in $rpathdirs; do
1619 $1="${$1}${$1:+ }-R$dir"
1620 done
1621 else
1622 dnl The linker is used for linking directly.
1623 if test -n "$acl_hardcode_libdir_separator"; then
1624 dnl Weird platform: only the last -rpath option counts, the user
1625 dnl must pass all path elements in one option.
1626 alldirs=
1627 for dir in $rpathdirs; do
1628 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"
1629 done
1630 acl_save_libdir="$libdir"
1631 libdir="$alldirs"
1632 eval flag=\"$acl_hardcode_libdir_flag_spec\"
1633 libdir="$acl_save_libdir"
1634 $1="$flag"
1635 else
1636 dnl The -rpath options are cumulative.
1637 for dir in $rpathdirs; do
1638 acl_save_libdir="$libdir"
1639 libdir="$dir"
1640 eval flag=\"$acl_hardcode_libdir_flag_spec\"
1641 libdir="$acl_save_libdir"
1642 $1="${$1}${$1:+ }$flag"
1643 done
1644 fi
1645 fi
1646 fi
1647 fi
1648 fi
1649 AC_SUBST([$1])
1650])
1651
1652# lib-prefix.m4 serial 7 (gettext-0.18)
1653dnl Copyright (C) 2001-2005, 2008-2014 Free Software Foundation, Inc.
1654dnl This file is free software; the Free Software Foundation
1655dnl gives unlimited permission to copy and/or distribute it,
1656dnl with or without modifications, as long as this notice is preserved.
1657
1658dnl From Bruno Haible.
1659
1660dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
1661dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
1662dnl require excessive bracketing.
1663ifdef([AC_HELP_STRING],
1664[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
1665[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
1666
1667dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
1668dnl to access previously installed libraries. The basic assumption is that
1669dnl a user will want packages to use other packages he previously installed
1670dnl with the same --prefix option.
1671dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
1672dnl libraries, but is otherwise very convenient.
1673AC_DEFUN([AC_LIB_PREFIX],
1674[
1675 AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
1676 AC_REQUIRE([AC_PROG_CC])
1677 AC_REQUIRE([AC_CANONICAL_HOST])
1678 AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
1679 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
1680 dnl By default, look in $includedir and $libdir.
1681 use_additional=yes
1682 AC_LIB_WITH_FINAL_PREFIX([
1683 eval additional_includedir=\"$includedir\"
1684 eval additional_libdir=\"$libdir\"
1685 ])
1686 AC_LIB_ARG_WITH([lib-prefix],
1687[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
1688 --without-lib-prefix don't search for libraries in includedir and libdir],
1689[
1690 if test "X$withval" = "Xno"; then
1691 use_additional=no
1692 else
1693 if test "X$withval" = "X"; then
1694 AC_LIB_WITH_FINAL_PREFIX([
1695 eval additional_includedir=\"$includedir\"
1696 eval additional_libdir=\"$libdir\"
1697 ])
1698 else
1699 additional_includedir="$withval/include"
1700 additional_libdir="$withval/$acl_libdirstem"
1701 fi
1702 fi
1703])
1704 if test $use_additional = yes; then
1705 dnl Potentially add $additional_includedir to $CPPFLAGS.
1706 dnl But don't add it
1707 dnl 1. if it's the standard /usr/include,
1708 dnl 2. if it's already present in $CPPFLAGS,
1709 dnl 3. if it's /usr/local/include and we are using GCC on Linux,
1710 dnl 4. if it doesn't exist as a directory.
1711 if test "X$additional_includedir" != "X/usr/include"; then
1712 haveit=
1713 for x in $CPPFLAGS; do
1714 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1715 if test "X$x" = "X-I$additional_includedir"; then
1716 haveit=yes
1717 break
1718 fi
1719 done
1720 if test -z "$haveit"; then
1721 if test "X$additional_includedir" = "X/usr/local/include"; then
1722 if test -n "$GCC"; then
1723 case $host_os in
1724 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
1725 esac
1726 fi
1727 fi
1728 if test -z "$haveit"; then
1729 if test -d "$additional_includedir"; then
1730 dnl Really add $additional_includedir to $CPPFLAGS.
1731 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
1732 fi
1733 fi
1734 fi
1735 fi
1736 dnl Potentially add $additional_libdir to $LDFLAGS.
1737 dnl But don't add it
1738 dnl 1. if it's the standard /usr/lib,
1739 dnl 2. if it's already present in $LDFLAGS,
1740 dnl 3. if it's /usr/local/lib and we are using GCC on Linux,
1741 dnl 4. if it doesn't exist as a directory.
1742 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
1743 haveit=
1744 for x in $LDFLAGS; do
1745 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1746 if test "X$x" = "X-L$additional_libdir"; then
1747 haveit=yes
1748 break
1749 fi
1750 done
1751 if test -z "$haveit"; then
1752 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
1753 if test -n "$GCC"; then
1754 case $host_os in
1755 linux*) haveit=yes;;
1756 esac
1757 fi
1758 fi
1759 if test -z "$haveit"; then
1760 if test -d "$additional_libdir"; then
1761 dnl Really add $additional_libdir to $LDFLAGS.
1762 LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
1763 fi
1764 fi
1765 fi
1766 fi
1767 fi
1768])
1769
1770dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
1771dnl acl_final_exec_prefix, containing the values to which $prefix and
1772dnl $exec_prefix will expand at the end of the configure script.
1773AC_DEFUN([AC_LIB_PREPARE_PREFIX],
1774[
1775 dnl Unfortunately, prefix and exec_prefix get only finally determined
1776 dnl at the end of configure.
1777 if test "X$prefix" = "XNONE"; then
1778 acl_final_prefix="$ac_default_prefix"
1779 else
1780 acl_final_prefix="$prefix"
1781 fi
1782 if test "X$exec_prefix" = "XNONE"; then
1783 acl_final_exec_prefix='${prefix}'
1784 else
1785 acl_final_exec_prefix="$exec_prefix"
1786 fi
1787 acl_save_prefix="$prefix"
1788 prefix="$acl_final_prefix"
1789 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
1790 prefix="$acl_save_prefix"
1791])
1792
1793dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
1794dnl variables prefix and exec_prefix bound to the values they will have
1795dnl at the end of the configure script.
1796AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
1797[
1798 acl_save_prefix="$prefix"
1799 prefix="$acl_final_prefix"
1800 acl_save_exec_prefix="$exec_prefix"
1801 exec_prefix="$acl_final_exec_prefix"
1802 $1
1803 exec_prefix="$acl_save_exec_prefix"
1804 prefix="$acl_save_prefix"
1805])
1806
1807dnl AC_LIB_PREPARE_MULTILIB creates
1808dnl - a variable acl_libdirstem, containing the basename of the libdir, either
1809dnl "lib" or "lib64" or "lib/64",
1810dnl - a variable acl_libdirstem2, as a secondary possible value for
1811dnl acl_libdirstem, either the same as acl_libdirstem or "lib/sparcv9" or
1812dnl "lib/amd64".
1813AC_DEFUN([AC_LIB_PREPARE_MULTILIB],
1814[
1815 dnl There is no formal standard regarding lib and lib64.
1816 dnl On glibc systems, the current practice is that on a system supporting
1817 dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under
1818 dnl $prefix/lib64 and 32-bit libraries go under $prefix/lib. We determine
1819 dnl the compiler's default mode by looking at the compiler's library search
1820 dnl path. If at least one of its elements ends in /lib64 or points to a
1821 dnl directory whose absolute pathname ends in /lib64, we assume a 64-bit ABI.
1822 dnl Otherwise we use the default, namely "lib".
1823 dnl On Solaris systems, the current practice is that on a system supporting
1824 dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under
1825 dnl $prefix/lib/64 (which is a symlink to either $prefix/lib/sparcv9 or
1826 dnl $prefix/lib/amd64) and 32-bit libraries go under $prefix/lib.
1827 AC_REQUIRE([AC_CANONICAL_HOST])
1828 acl_libdirstem=lib
1829 acl_libdirstem2=
1830 case "$host_os" in
1831 solaris*)
1832 dnl See Solaris 10 Software Developer Collection > Solaris 64-bit Developer's Guide > The Development Environment
1833 dnl <http://docs.sun.com/app/docs/doc/816-5138/dev-env?l=en&a=view>.
1834 dnl "Portable Makefiles should refer to any library directories using the 64 symbolic link."
1835 dnl But we want to recognize the sparcv9 or amd64 subdirectory also if the
1836 dnl symlink is missing, so we set acl_libdirstem2 too.
1837 AC_CACHE_CHECK([for 64-bit host], [gl_cv_solaris_64bit],
1838 [AC_EGREP_CPP([sixtyfour bits], [
1839#ifdef _LP64
1840sixtyfour bits
1841#endif
1842 ], [gl_cv_solaris_64bit=yes], [gl_cv_solaris_64bit=no])
1843 ])
1844 if test $gl_cv_solaris_64bit = yes; then
1845 acl_libdirstem=lib/64
1846 case "$host_cpu" in
1847 sparc*) acl_libdirstem2=lib/sparcv9 ;;
1848 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
1849 esac
1850 fi
1851 ;;
1852 *)
1853 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
1854 if test -n "$searchpath"; then
1855 acl_save_IFS="${IFS= }"; IFS=":"
1856 for searchdir in $searchpath; do
1857 if test -d "$searchdir"; then
1858 case "$searchdir" in
1859 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
1860 */../ | */.. )
1861 # Better ignore directories of this form. They are misleading.
1862 ;;
1863 *) searchdir=`cd "$searchdir" && pwd`
1864 case "$searchdir" in
1865 */lib64 ) acl_libdirstem=lib64 ;;
1866 esac ;;
1867 esac
1868 fi
1869 done
1870 IFS="$acl_save_IFS"
1871 fi
1872 ;;
1873 esac
1874 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
1875])
1876
1877# nls.m4 serial 5 (gettext-0.18)
1878dnl Copyright (C) 1995-2003, 2005-2006, 2008-2014 Free Software Foundation,
1879dnl Inc.
1880dnl This file is free software; the Free Software Foundation
1881dnl gives unlimited permission to copy and/or distribute it,
1882dnl with or without modifications, as long as this notice is preserved.
1883dnl
1884dnl This file can can be used in projects which are not available under
1885dnl the GNU General Public License or the GNU Library General Public
1886dnl License but which still want to provide support for the GNU gettext
1887dnl functionality.
1888dnl Please note that the actual code of the GNU gettext library is covered
1889dnl by the GNU Library General Public License, and the rest of the GNU
1890dnl gettext package package is covered by the GNU General Public License.
1891dnl They are *not* in the public domain.
1892
1893dnl Authors:
1894dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
1895dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
1896
1897AC_PREREQ([2.50])
1898
1899AC_DEFUN([AM_NLS],
1900[
1901 AC_MSG_CHECKING([whether NLS is requested])
1902 dnl Default is enabled NLS
1903 AC_ARG_ENABLE([nls],
1904 [ --disable-nls do not use Native Language Support],
1905 USE_NLS=$enableval, USE_NLS=yes)
1906 AC_MSG_RESULT([$USE_NLS])
1907 AC_SUBST([USE_NLS])
1908])
1909
1087b83f 1910# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
5d4aa1f5 1911# serial 1 (pkg-config-0.24)
1087b83f
TM
1912#
1913# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
1914#
1915# This program is free software; you can redistribute it and/or modify
1916# it under the terms of the GNU General Public License as published by
1917# the Free Software Foundation; either version 2 of the License, or
1918# (at your option) any later version.
1919#
1920# This program is distributed in the hope that it will be useful, but
1921# WITHOUT ANY WARRANTY; without even the implied warranty of
1922# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1923# General Public License for more details.
1924#
1925# You should have received a copy of the GNU General Public License
fcca127c
FCE
1926# along with this program; if not, write to the Free Software
1927# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1087b83f
TM
1928#
1929# As a special exception to the GNU General Public License, if you
1930# distribute this file as part of a program that contains a
1931# configuration script generated by Autoconf, you may include it under
1932# the same distribution terms that you use for the rest of that program.
1933
1934# PKG_PROG_PKG_CONFIG([MIN-VERSION])
1935# ----------------------------------
1936AC_DEFUN([PKG_PROG_PKG_CONFIG],
1937[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
8eef2738
LB
1938m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
1939m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
5d4aa1f5
FCE
1940AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
1941AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
1942AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
1943
1087b83f
TM
1944if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
1945 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
1946fi
1947if test -n "$PKG_CONFIG"; then
1948 _pkg_min_version=m4_default([$1], [0.9.0])
1949 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
1950 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
1951 AC_MSG_RESULT([yes])
1952 else
1953 AC_MSG_RESULT([no])
1954 PKG_CONFIG=""
1955 fi
1087b83f
TM
1956fi[]dnl
1957])# PKG_PROG_PKG_CONFIG
1958
1959# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
1960#
1961# Check to see whether a particular set of modules exists. Similar
1962# to PKG_CHECK_MODULES(), but does not set variables or print errors.
1963#
5d4aa1f5
FCE
1964# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
1965# only at the first occurence in configure.ac, so if the first place
1966# it's called might be skipped (such as if it is within an "if", you
1967# have to call PKG_CHECK_EXISTS manually
1087b83f
TM
1968# --------------------------------------------------------------
1969AC_DEFUN([PKG_CHECK_EXISTS],
1970[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
1971if test -n "$PKG_CONFIG" && \
1972 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
5d4aa1f5 1973 m4_default([$2], [:])
1087b83f
TM
1974m4_ifvaln([$3], [else
1975 $3])dnl
1976fi])
1977
1087b83f
TM
1978# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
1979# ---------------------------------------------
1980m4_define([_PKG_CONFIG],
6462165c
JS
1981[if test -n "$$1"; then
1982 pkg_cv_[]$1="$$1"
1983 elif test -n "$PKG_CONFIG"; then
1984 PKG_CHECK_EXISTS([$3],
8eef2738
LB
1985 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
1986 test "x$?" != "x0" && pkg_failed=yes ],
6462165c
JS
1987 [pkg_failed=yes])
1988 else
1989 pkg_failed=untried
1087b83f
TM
1990fi[]dnl
1991])# _PKG_CONFIG
1992
1993# _PKG_SHORT_ERRORS_SUPPORTED
1994# -----------------------------
1995AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
1996[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
1997if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1998 _pkg_short_errors_supported=yes
1999else
2000 _pkg_short_errors_supported=no
2001fi[]dnl
2002])# _PKG_SHORT_ERRORS_SUPPORTED
2003
2004
2005# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
2006# [ACTION-IF-NOT-FOUND])
2007#
2008#
2009# Note that if there is a possibility the first call to
2010# PKG_CHECK_MODULES might not happen, you should be sure to include an
2011# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
2012#
2013#
2014# --------------------------------------------------------------
2015AC_DEFUN([PKG_CHECK_MODULES],
2016[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
2017AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
2018AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
2019
2020pkg_failed=no
2021AC_MSG_CHECKING([for $1])
2022
2023_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
2024_PKG_CONFIG([$1][_LIBS], [libs], [$2])
2025
2026m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
2027and $1[]_LIBS to avoid the need to call pkg-config.
2028See the pkg-config man page for more details.])
2029
2030if test $pkg_failed = yes; then
5d4aa1f5 2031 AC_MSG_RESULT([no])
1087b83f
TM
2032 _PKG_SHORT_ERRORS_SUPPORTED
2033 if test $_pkg_short_errors_supported = yes; then
8eef2738 2034 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
1087b83f 2035 else
8eef2738 2036 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
1087b83f
TM
2037 fi
2038 # Put the nasty error message in config.log where it belongs
2039 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
2040
5d4aa1f5 2041 m4_default([$4], [AC_MSG_ERROR(
1087b83f
TM
2042[Package requirements ($2) were not met:
2043
2044$$1_PKG_ERRORS
2045
2046Consider adjusting the PKG_CONFIG_PATH environment variable if you
2047installed software in a non-standard prefix.
2048
8eef2738 2049_PKG_TEXT])[]dnl
5d4aa1f5 2050 ])
1087b83f 2051elif test $pkg_failed = untried; then
5d4aa1f5
FCE
2052 AC_MSG_RESULT([no])
2053 m4_default([$4], [AC_MSG_FAILURE(
1087b83f
TM
2054[The pkg-config script could not be found or is too old. Make sure it
2055is in your PATH or set the PKG_CONFIG environment variable to the full
2056path to pkg-config.
2057
2058_PKG_TEXT
2059
8eef2738 2060To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
5d4aa1f5 2061 ])
1087b83f
TM
2062else
2063 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
2064 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
2065 AC_MSG_RESULT([yes])
5d4aa1f5 2066 $3
1087b83f
TM
2067fi[]dnl
2068])# PKG_CHECK_MODULES
2069
8eef2738
LB
2070
2071# PKG_INSTALLDIR(DIRECTORY)
2072# -------------------------
2073# Substitutes the variable pkgconfigdir as the location where a module
2074# should install pkg-config .pc files. By default the directory is
2075# $libdir/pkgconfig, but the default can be changed by passing
2076# DIRECTORY. The user can override through the --with-pkgconfigdir
2077# parameter.
2078AC_DEFUN([PKG_INSTALLDIR],
2079[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
2080m4_pushdef([pkg_description],
2081 [pkg-config installation directory @<:@]pkg_default[@:>@])
2082AC_ARG_WITH([pkgconfigdir],
2083 [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
2084 [with_pkgconfigdir=]pkg_default)
2085AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
2086m4_popdef([pkg_default])
2087m4_popdef([pkg_description])
2088]) dnl PKG_INSTALLDIR
2089
2090
2091# PKG_NOARCH_INSTALLDIR(DIRECTORY)
2092# -------------------------
2093# Substitutes the variable noarch_pkgconfigdir as the location where a
2094# module should install arch-independent pkg-config .pc files. By
2095# default the directory is $datadir/pkgconfig, but the default can be
2096# changed by passing DIRECTORY. The user can override through the
2097# --with-noarch-pkgconfigdir parameter.
2098AC_DEFUN([PKG_NOARCH_INSTALLDIR],
2099[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
2100m4_pushdef([pkg_description],
2101 [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
2102AC_ARG_WITH([noarch-pkgconfigdir],
2103 [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
2104 [with_noarch_pkgconfigdir=]pkg_default)
2105AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
2106m4_popdef([pkg_default])
2107m4_popdef([pkg_description])
2108]) dnl PKG_NOARCH_INSTALLDIR
2109
e4542435
JS
2110
2111# PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
2112# [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
2113# -------------------------------------------
2114# Retrieves the value of the pkg-config variable for the given module.
2115AC_DEFUN([PKG_CHECK_VAR],
2116[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
2117AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
2118
2119_PKG_CONFIG([$1], [variable="][$3]["], [$2])
2120AS_VAR_COPY([$1], [pkg_cv_][$1])
2121
2122AS_VAR_IF([$1], [""], [$5], [$4])dnl
2123])# PKG_CHECK_VAR
2124
1f13f639
FL
2125# po.m4 serial 24 (gettext-0.19)
2126dnl Copyright (C) 1995-2014 Free Software Foundation, Inc.
2127dnl This file is free software; the Free Software Foundation
2128dnl gives unlimited permission to copy and/or distribute it,
2129dnl with or without modifications, as long as this notice is preserved.
2130dnl
2131dnl This file can can be used in projects which are not available under
2132dnl the GNU General Public License or the GNU Library General Public
2133dnl License but which still want to provide support for the GNU gettext
2134dnl functionality.
2135dnl Please note that the actual code of the GNU gettext library is covered
2136dnl by the GNU Library General Public License, and the rest of the GNU
2137dnl gettext package package is covered by the GNU General Public License.
2138dnl They are *not* in the public domain.
2139
2140dnl Authors:
2141dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
2142dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
2143
2144AC_PREREQ([2.60])
2145
2146dnl Checks for all prerequisites of the po subdirectory.
2147AC_DEFUN([AM_PO_SUBDIRS],
2148[
2149 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
2150 AC_REQUIRE([AC_PROG_INSTALL])dnl
2151 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
2152 AC_REQUIRE([AC_PROG_SED])dnl
2153 AC_REQUIRE([AM_NLS])dnl
2154
2155 dnl Release version of the gettext macros. This is used to ensure that
2156 dnl the gettext macros and po/Makefile.in.in are in sync.
2157 AC_SUBST([GETTEXT_MACRO_VERSION], [0.19])
2158
2159 dnl Perform the following tests also if --disable-nls has been given,
2160 dnl because they are needed for "make dist" to work.
2161
2162 dnl Search for GNU msgfmt in the PATH.
2163 dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions.
2164 dnl The second test excludes FreeBSD msgfmt.
2165 AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
2166 [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
2167 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
2168 :)
2169 AC_PATH_PROG([GMSGFMT], [gmsgfmt], [$MSGFMT])
2170
2171 dnl Test whether it is GNU msgfmt >= 0.15.
2172changequote(,)dnl
2173 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
2174 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
2175 *) MSGFMT_015=$MSGFMT ;;
2176 esac
2177changequote([,])dnl
2178 AC_SUBST([MSGFMT_015])
2179changequote(,)dnl
2180 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
2181 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
2182 *) GMSGFMT_015=$GMSGFMT ;;
2183 esac
2184changequote([,])dnl
2185 AC_SUBST([GMSGFMT_015])
2186
2187 dnl Search for GNU xgettext 0.12 or newer in the PATH.
2188 dnl The first test excludes Solaris xgettext and early GNU xgettext versions.
2189 dnl The second test excludes FreeBSD xgettext.
2190 AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
2191 [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
2192 (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)],
2193 :)
2194 dnl Remove leftover from FreeBSD xgettext call.
2195 rm -f messages.po
2196
2197 dnl Test whether it is GNU xgettext >= 0.15.
2198changequote(,)dnl
2199 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
2200 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
2201 *) XGETTEXT_015=$XGETTEXT ;;
2202 esac
2203changequote([,])dnl
2204 AC_SUBST([XGETTEXT_015])
2205
2206 dnl Search for GNU msgmerge 0.11 or newer in the PATH.
2207 AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,
2208 [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :)
2209
2210 dnl Installation directories.
2211 dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we
2212 dnl have to define it here, so that it can be used in po/Makefile.
2213 test -n "$localedir" || localedir='${datadir}/locale'
2214 AC_SUBST([localedir])
2215
2216 dnl Support for AM_XGETTEXT_OPTION.
2217 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
2218 AC_SUBST([XGETTEXT_EXTRA_OPTIONS])
2219
2220 AC_CONFIG_COMMANDS([po-directories], [[
2221 for ac_file in $CONFIG_FILES; do
2222 # Support "outfile[:infile[:infile...]]"
2223 case "$ac_file" in
2224 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2225 esac
2226 # PO directories have a Makefile.in generated from Makefile.in.in.
2227 case "$ac_file" in */Makefile.in)
2228 # Adjust a relative srcdir.
2229 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
2230 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
2231 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
2232 # In autoconf-2.13 it is called $ac_given_srcdir.
2233 # In autoconf-2.50 it is called $srcdir.
2234 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
2235 case "$ac_given_srcdir" in
2236 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
2237 /*) top_srcdir="$ac_given_srcdir" ;;
2238 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
2239 esac
2240 # Treat a directory as a PO directory if and only if it has a
2241 # POTFILES.in file. This allows packages to have multiple PO
2242 # directories under different names or in different locations.
2243 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
2244 rm -f "$ac_dir/POTFILES"
2245 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
2246 gt_tab=`printf '\t'`
2247 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
2248 POMAKEFILEDEPS="POTFILES.in"
2249 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
2250 # on $ac_dir but don't depend on user-specified configuration
2251 # parameters.
2252 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
2253 # The LINGUAS file contains the set of available languages.
2254 if test -n "$OBSOLETE_ALL_LINGUAS"; then
2255 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
2256 fi
2257 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
2258 # Hide the ALL_LINGUAS assignment from automake < 1.5.
2259 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
2260 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
2261 else
2262 # The set of available languages was given in configure.in.
2263 # Hide the ALL_LINGUAS assignment from automake < 1.5.
2264 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
2265 fi
2266 # Compute POFILES
2267 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
2268 # Compute UPDATEPOFILES
2269 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
2270 # Compute DUMMYPOFILES
2271 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
2272 # Compute GMOFILES
2273 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
2274 case "$ac_given_srcdir" in
2275 .) srcdirpre= ;;
2276 *) srcdirpre='$(srcdir)/' ;;
2277 esac
2278 POFILES=
2279 UPDATEPOFILES=
2280 DUMMYPOFILES=
2281 GMOFILES=
2282 for lang in $ALL_LINGUAS; do
2283 POFILES="$POFILES $srcdirpre$lang.po"
2284 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
2285 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
2286 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
2287 done
2288 # CATALOGS depends on both $ac_dir and the user's LINGUAS
2289 # environment variable.
2290 INST_LINGUAS=
2291 if test -n "$ALL_LINGUAS"; then
2292 for presentlang in $ALL_LINGUAS; do
2293 useit=no
2294 if test "%UNSET%" != "$LINGUAS"; then
2295 desiredlanguages="$LINGUAS"
2296 else
2297 desiredlanguages="$ALL_LINGUAS"
2298 fi
2299 for desiredlang in $desiredlanguages; do
2300 # Use the presentlang catalog if desiredlang is
2301 # a. equal to presentlang, or
2302 # b. a variant of presentlang (because in this case,
2303 # presentlang can be used as a fallback for messages
2304 # which are not translated in the desiredlang catalog).
2305 case "$desiredlang" in
2306 "$presentlang"*) useit=yes;;
2307 esac
2308 done
2309 if test $useit = yes; then
2310 INST_LINGUAS="$INST_LINGUAS $presentlang"
2311 fi
2312 done
2313 fi
2314 CATALOGS=
2315 if test -n "$INST_LINGUAS"; then
2316 for lang in $INST_LINGUAS; do
2317 CATALOGS="$CATALOGS $lang.gmo"
2318 done
2319 fi
2320 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
2321 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"
2322 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
2323 if test -f "$f"; then
2324 case "$f" in
2325 *.orig | *.bak | *~) ;;
2326 *) cat "$f" >> "$ac_dir/Makefile" ;;
2327 esac
2328 fi
2329 done
2330 fi
2331 ;;
2332 esac
2333 done]],
2334 [# Capture the value of obsolete ALL_LINGUAS because we need it to compute
2335 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
2336 # from automake < 1.5.
2337 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
2338 # Capture the value of LINGUAS because we need it to compute CATALOGS.
2339 LINGUAS="${LINGUAS-%UNSET%}"
2340 ])
2341])
2342
2343dnl Postprocesses a Makefile in a directory containing PO files.
2344AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE],
2345[
2346 # When this code is run, in config.status, two variables have already been
2347 # set:
2348 # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in,
2349 # - LINGUAS is the value of the environment variable LINGUAS at configure
2350 # time.
2351
2352changequote(,)dnl
2353 # Adjust a relative srcdir.
2354 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
2355 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
2356 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
2357 # In autoconf-2.13 it is called $ac_given_srcdir.
2358 # In autoconf-2.50 it is called $srcdir.
2359 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
2360 case "$ac_given_srcdir" in
2361 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
2362 /*) top_srcdir="$ac_given_srcdir" ;;
2363 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
2364 esac
2365
2366 # Find a way to echo strings without interpreting backslash.
2367 if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then
2368 gt_echo='echo'
2369 else
2370 if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then
2371 gt_echo='printf %s\n'
2372 else
2373 echo_func () {
2374 cat <<EOT
2375$*
2376EOT
2377 }
2378 gt_echo='echo_func'
2379 fi
2380 fi
2381
2382 # A sed script that extracts the value of VARIABLE from a Makefile.
2383 tab=`printf '\t'`
2384 sed_x_variable='
2385# Test if the hold space is empty.
2386x
2387s/P/P/
2388x
2389ta
2390# Yes it was empty. Look if we have the expected variable definition.
2391/^['"${tab}"' ]*VARIABLE['"${tab}"' ]*=/{
2392 # Seen the first line of the variable definition.
2393 s/^['"${tab}"' ]*VARIABLE['"${tab}"' ]*=//
2394 ba
2395}
2396bd
2397:a
2398# Here we are processing a line from the variable definition.
2399# Remove comment, more precisely replace it with a space.
2400s/#.*$/ /
2401# See if the line ends in a backslash.
2402tb
2403:b
2404s/\\$//
2405# Print the line, without the trailing backslash.
2406p
2407tc
2408# There was no trailing backslash. The end of the variable definition is
2409# reached. Clear the hold space.
2410s/^.*$//
2411x
2412bd
2413:c
2414# A trailing backslash means that the variable definition continues in the
2415# next line. Put a nonempty string into the hold space to indicate this.
2416s/^.*$/P/
2417x
2418:d
2419'
2420changequote([,])dnl
2421
2422 # Set POTFILES to the value of the Makefile variable POTFILES.
2423 sed_x_POTFILES=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'`
2424 POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"`
2425 # Compute POTFILES_DEPS as
2426 # $(foreach file, $(POTFILES), $(top_srcdir)/$(file))
2427 POTFILES_DEPS=
2428 for file in $POTFILES; do
2429 POTFILES_DEPS="$POTFILES_DEPS "'$(top_srcdir)/'"$file"
2430 done
2431 POMAKEFILEDEPS=""
2432
2433 if test -n "$OBSOLETE_ALL_LINGUAS"; then
2434 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
2435 fi
2436 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
2437 # The LINGUAS file contains the set of available languages.
2438 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
2439 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
2440 else
2441 # Set ALL_LINGUAS to the value of the Makefile variable LINGUAS.
2442 sed_x_LINGUAS=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'`
2443 ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"`
2444 fi
2445 # Hide the ALL_LINGUAS assignment from automake < 1.5.
2446 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
2447 # Compute POFILES
2448 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
2449 # Compute UPDATEPOFILES
2450 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
2451 # Compute DUMMYPOFILES
2452 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
2453 # Compute GMOFILES
2454 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
2455 # Compute PROPERTIESFILES
2456 # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).properties)
2457 # Compute CLASSFILES
2458 # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).class)
2459 # Compute QMFILES
2460 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm)
2461 # Compute MSGFILES
2462 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg)
2463 # Compute RESOURCESDLLFILES
2464 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll)
2465 case "$ac_given_srcdir" in
2466 .) srcdirpre= ;;
2467 *) srcdirpre='$(srcdir)/' ;;
2468 esac
2469 POFILES=
2470 UPDATEPOFILES=
2471 DUMMYPOFILES=
2472 GMOFILES=
2473 PROPERTIESFILES=
2474 CLASSFILES=
2475 QMFILES=
2476 MSGFILES=
2477 RESOURCESDLLFILES=
2478 for lang in $ALL_LINGUAS; do
2479 POFILES="$POFILES $srcdirpre$lang.po"
2480 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
2481 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
2482 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
2483 PROPERTIESFILES="$PROPERTIESFILES \$(top_srcdir)/\$(DOMAIN)_$lang.properties"
2484 CLASSFILES="$CLASSFILES \$(top_srcdir)/\$(DOMAIN)_$lang.class"
2485 QMFILES="$QMFILES $srcdirpre$lang.qm"
2486 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
2487 MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg"
2488 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/'`
2489 RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll"
2490 done
2491 # CATALOGS depends on both $ac_dir and the user's LINGUAS
2492 # environment variable.
2493 INST_LINGUAS=
2494 if test -n "$ALL_LINGUAS"; then
2495 for presentlang in $ALL_LINGUAS; do
2496 useit=no
2497 if test "%UNSET%" != "$LINGUAS"; then
2498 desiredlanguages="$LINGUAS"
2499 else
2500 desiredlanguages="$ALL_LINGUAS"
2501 fi
2502 for desiredlang in $desiredlanguages; do
2503 # Use the presentlang catalog if desiredlang is
2504 # a. equal to presentlang, or
2505 # b. a variant of presentlang (because in this case,
2506 # presentlang can be used as a fallback for messages
2507 # which are not translated in the desiredlang catalog).
2508 case "$desiredlang" in
2509 "$presentlang"*) useit=yes;;
2510 esac
2511 done
2512 if test $useit = yes; then
2513 INST_LINGUAS="$INST_LINGUAS $presentlang"
2514 fi
2515 done
2516 fi
2517 CATALOGS=
2518 JAVACATALOGS=
2519 QTCATALOGS=
2520 TCLCATALOGS=
2521 CSHARPCATALOGS=
2522 if test -n "$INST_LINGUAS"; then
2523 for lang in $INST_LINGUAS; do
2524 CATALOGS="$CATALOGS $lang.gmo"
2525 JAVACATALOGS="$JAVACATALOGS \$(DOMAIN)_$lang.properties"
2526 QTCATALOGS="$QTCATALOGS $lang.qm"
2527 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
2528 TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg"
2529 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/'`
2530 CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll"
2531 done
2532 fi
2533
2534 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"
2535 tab=`printf '\t'`
2536 if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then
2537 # Add dependencies that cannot be formulated as a simple suffix rule.
2538 for lang in $ALL_LINGUAS; do
2539 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
2540 cat >> "$ac_file.tmp" <<EOF
2541$frobbedlang.msg: $lang.po
2542${tab}@echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \
2543${tab}\$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
2544EOF
2545 done
2546 fi
2547 if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then
2548 # Add dependencies that cannot be formulated as a simple suffix rule.
2549 for lang in $ALL_LINGUAS; do
2550 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/'`
2551 cat >> "$ac_file.tmp" <<EOF
2552$frobbedlang/\$(DOMAIN).resources.dll: $lang.po
2553${tab}@echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \
2554${tab}\$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
2555EOF
2556 done
2557 fi
2558 if test -n "$POMAKEFILEDEPS"; then
2559 cat >> "$ac_file.tmp" <<EOF
2560Makefile: $POMAKEFILEDEPS
2561EOF
2562 fi
2563 mv "$ac_file.tmp" "$ac_file"
2564])
2565
2566dnl Initializes the accumulator used by AM_XGETTEXT_OPTION.
2567AC_DEFUN([AM_XGETTEXT_OPTION_INIT],
2568[
2569 XGETTEXT_EXTRA_OPTIONS=
2570])
2571
2572dnl Registers an option to be passed to xgettext in the po subdirectory.
2573AC_DEFUN([AM_XGETTEXT_OPTION],
2574[
2575 AC_REQUIRE([AM_XGETTEXT_OPTION_INIT])
2576 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS $1"
2577])
2578
2579# progtest.m4 serial 7 (gettext-0.18.2)
2580dnl Copyright (C) 1996-2003, 2005, 2008-2014 Free Software Foundation, Inc.
2581dnl This file is free software; the Free Software Foundation
2582dnl gives unlimited permission to copy and/or distribute it,
2583dnl with or without modifications, as long as this notice is preserved.
2584dnl
2585dnl This file can can be used in projects which are not available under
2586dnl the GNU General Public License or the GNU Library General Public
2587dnl License but which still want to provide support for the GNU gettext
2588dnl functionality.
2589dnl Please note that the actual code of the GNU gettext library is covered
2590dnl by the GNU Library General Public License, and the rest of the GNU
2591dnl gettext package package is covered by the GNU General Public License.
2592dnl They are *not* in the public domain.
2593
2594dnl Authors:
2595dnl Ulrich Drepper <drepper@cygnus.com>, 1996.
2596
2597AC_PREREQ([2.50])
2598
2599# Search path for a program which passes the given test.
2600
2601dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
2602dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
2603AC_DEFUN([AM_PATH_PROG_WITH_TEST],
2604[
2605# Prepare PATH_SEPARATOR.
2606# The user is always right.
2607if test "${PATH_SEPARATOR+set}" != set; then
2608 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
2609 # contains only /bin. Note that ksh looks also at the FPATH variable,
2610 # so we have to set that as well for the test.
2611 PATH_SEPARATOR=:
2612 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
2613 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
2614 || PATH_SEPARATOR=';'
2615 }
2616fi
2617
2618# Find out how to test for executable files. Don't use a zero-byte file,
2619# as systems may use methods other than mode bits to determine executability.
2620cat >conf$$.file <<_ASEOF
2621#! /bin/sh
2622exit 0
2623_ASEOF
2624chmod +x conf$$.file
2625if test -x conf$$.file >/dev/null 2>&1; then
2626 ac_executable_p="test -x"
2627else
2628 ac_executable_p="test -f"
2629fi
2630rm -f conf$$.file
2631
2632# Extract the first word of "$2", so it can be a program name with args.
2633set dummy $2; ac_word=[$]2
2634AC_MSG_CHECKING([for $ac_word])
2635AC_CACHE_VAL([ac_cv_path_$1],
2636[case "[$]$1" in
2637 [[\\/]]* | ?:[[\\/]]*)
2638 ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
2639 ;;
2640 *)
2641 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2642 for ac_dir in ifelse([$5], , $PATH, [$5]); do
2643 IFS="$ac_save_IFS"
2644 test -z "$ac_dir" && ac_dir=.
2645 for ac_exec_ext in '' $ac_executable_extensions; do
2646 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2647 echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD
2648 if [$3]; then
2649 ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext"
2650 break 2
2651 fi
2652 fi
2653 done
2654 done
2655 IFS="$ac_save_IFS"
2656dnl If no 4th arg is given, leave the cache variable unset,
2657dnl so AC_PATH_PROGS will keep looking.
2658ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
2659])dnl
2660 ;;
2661esac])dnl
2662$1="$ac_cv_path_$1"
2663if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
2664 AC_MSG_RESULT([$][$1])
2665else
2666 AC_MSG_RESULT([no])
2667fi
2668AC_SUBST([$1])dnl
2669])
2670
b0c670f4 2671# Copyright (C) 2002-2013 Free Software Foundation, Inc.
1ae2c0cd
RM
2672#
2673# This file is free software; the Free Software Foundation
2674# gives unlimited permission to copy and/or distribute it,
2675# with or without modifications, as long as this notice is preserved.
2f1a1aea
FCE
2676
2677# AM_AUTOMAKE_VERSION(VERSION)
2678# ----------------------------
2679# Automake X.Y traces this macro to ensure aclocal.m4 has been
2680# generated from the m4 files accompanying Automake X.Y.
7fbd9d09
FCE
2681# (This private macro should not be called outside this file.)
2682AC_DEFUN([AM_AUTOMAKE_VERSION],
b0c670f4 2683[am__api_version='1.14'
7fbd9d09
FCE
2684dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
2685dnl require some minimum version. Point them to the right macro.
b0c670f4 2686m4_if([$1], [1.14.1], [],
7fbd9d09
FCE
2687 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
2688])
2689
2690# _AM_AUTOCONF_VERSION(VERSION)
2691# -----------------------------
2692# aclocal traces this macro to find the Autoconf version.
2693# This is a private macro too. Using m4_define simplifies
2694# the logic in aclocal, which can simply ignore this definition.
2695m4_define([_AM_AUTOCONF_VERSION], [])
2f1a1aea
FCE
2696
2697# AM_SET_CURRENT_AUTOMAKE_VERSION
2698# -------------------------------
7fbd9d09 2699# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
0710d850 2700# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
2f1a1aea 2701AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
b0c670f4 2702[AM_AUTOMAKE_VERSION([1.14.1])dnl
0710d850
DS
2703m4_ifndef([AC_AUTOCONF_VERSION],
2704 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
2705_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
2f1a1aea 2706
1ae2c0cd 2707# AM_AUX_DIR_EXPAND -*- Autoconf -*-
2f1a1aea 2708
b0c670f4 2709# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1ae2c0cd
RM
2710#
2711# This file is free software; the Free Software Foundation
2712# gives unlimited permission to copy and/or distribute it,
2713# with or without modifications, as long as this notice is preserved.
2f1a1aea
FCE
2714
2715# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
8eef2738
LB
2716# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
2717# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
2f1a1aea
FCE
2718#
2719# Of course, Automake must honor this variable whenever it calls a
2720# tool from the auxiliary directory. The problem is that $srcdir (and
2721# therefore $ac_aux_dir as well) can be either absolute or relative,
2722# depending on how configure is run. This is pretty annoying, since
2723# it makes $ac_aux_dir quite unusable in subdirectories: in the top
2724# source directory, any form will work fine, but in subdirectories a
2725# relative path needs to be adjusted first.
2726#
2727# $ac_aux_dir/missing
2728# fails when called from a subdirectory if $ac_aux_dir is relative
2729# $top_srcdir/$ac_aux_dir/missing
2730# fails if $ac_aux_dir is absolute,
2731# fails when called from a subdirectory in a VPATH build with
2732# a relative $ac_aux_dir
2733#
2734# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
2735# are both prefixed by $srcdir. In an in-source build this is usually
8eef2738 2736# harmless because $srcdir is '.', but things will broke when you
2f1a1aea
FCE
2737# start a VPATH build or use an absolute $srcdir.
2738#
2739# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
2740# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
2741# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
2742# and then we would define $MISSING as
2743# MISSING="\${SHELL} $am_aux_dir/missing"
2744# This will work as long as MISSING is not called from configure, because
2745# unfortunately $(top_srcdir) has no meaning in configure.
2746# However there are other variables, like CC, which are often used in
2747# configure, and could therefore not use this "fixed" $ac_aux_dir.
2748#
2749# Another solution, used here, is to always expand $ac_aux_dir to an
2750# absolute PATH. The drawback is that using absolute paths prevent a
2751# configured tree to be moved without reconfiguration.
2752
2753AC_DEFUN([AM_AUX_DIR_EXPAND],
b0c670f4
FCE
2754[dnl Rely on autoconf to set up CDPATH properly.
2755AC_PREREQ([2.50])dnl
2756# expand $ac_aux_dir to an absolute path
2757am_aux_dir=`cd $ac_aux_dir && pwd`
2f1a1aea
FCE
2758])
2759
1ae2c0cd 2760# AM_CONDITIONAL -*- Autoconf -*-
2f1a1aea 2761
b0c670f4 2762# Copyright (C) 1997-2013 Free Software Foundation, Inc.
1ae2c0cd
RM
2763#
2764# This file is free software; the Free Software Foundation
2765# gives unlimited permission to copy and/or distribute it,
2766# with or without modifications, as long as this notice is preserved.
8129fd92 2767
2f1a1aea
FCE
2768# AM_CONDITIONAL(NAME, SHELL-CONDITION)
2769# -------------------------------------
2770# Define a conditional.
2771AC_DEFUN([AM_CONDITIONAL],
8eef2738
LB
2772[AC_PREREQ([2.52])dnl
2773 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
2774 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
7fbd9d09
FCE
2775AC_SUBST([$1_TRUE])dnl
2776AC_SUBST([$1_FALSE])dnl
2777_AM_SUBST_NOTMAKE([$1_TRUE])dnl
2778_AM_SUBST_NOTMAKE([$1_FALSE])dnl
0710d850 2779m4_define([_AM_COND_VALUE_$1], [$2])dnl
2f1a1aea
FCE
2780if $2; then
2781 $1_TRUE=
2782 $1_FALSE='#'
2783else
2784 $1_TRUE='#'
2785 $1_FALSE=
2786fi
2787AC_CONFIG_COMMANDS_PRE(
2788[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
2789 AC_MSG_ERROR([[conditional "$1" was never defined.
2790Usually this means the macro was only invoked conditionally.]])
2791fi])])
2792
b0c670f4 2793# Copyright (C) 1999-2013 Free Software Foundation, Inc.
1ae2c0cd
RM
2794#
2795# This file is free software; the Free Software Foundation
2796# gives unlimited permission to copy and/or distribute it,
2797# with or without modifications, as long as this notice is preserved.
2f1a1aea 2798
2f1a1aea 2799
8eef2738 2800# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
2f1a1aea
FCE
2801# written in clear, in which case automake, when reading aclocal.m4,
2802# will think it sees a *use*, and therefore will trigger all it's
2803# C support machinery. Also note that it means that autoscan, seeing
2804# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
2805
2806
2f1a1aea
FCE
2807# _AM_DEPENDENCIES(NAME)
2808# ----------------------
2809# See how the compiler implements dependency checking.
8eef2738 2810# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
2f1a1aea
FCE
2811# We try a few techniques and use that to set a single cache variable.
2812#
2813# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
2814# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
2815# dependency, and given that the user is not expected to run this macro,
2816# just rely on AC_PROG_CC.
2817AC_DEFUN([_AM_DEPENDENCIES],
2818[AC_REQUIRE([AM_SET_DEPDIR])dnl
2819AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
2820AC_REQUIRE([AM_MAKE_INCLUDE])dnl
2821AC_REQUIRE([AM_DEP_TRACK])dnl
2822
8eef2738
LB
2823m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
2824 [$1], [CXX], [depcc="$CXX" am_compiler_list=],
2825 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
2826 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
2827 [$1], [UPC], [depcc="$UPC" am_compiler_list=],
2828 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
2829 [depcc="$$1" am_compiler_list=])
2f1a1aea
FCE
2830
2831AC_CACHE_CHECK([dependency style of $depcc],
2832 [am_cv_$1_dependencies_compiler_type],
2833[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2834 # We make a subdir and do the tests there. Otherwise we can end up
2835 # making bogus files that we don't know about and never remove. For
2836 # instance it was reported that on HP-UX the gcc test will end up
8eef2738
LB
2837 # making a dummy file named 'D' -- because '-MD' means "put the output
2838 # in D".
c66be968 2839 rm -rf conftest.dir
2f1a1aea
FCE
2840 mkdir conftest.dir
2841 # Copy depcomp to subdir because otherwise we won't find it if we're
2842 # using a relative directory.
2843 cp "$am_depcomp" conftest.dir
2844 cd conftest.dir
2845 # We will build objects and dependencies in a subdirectory because
2846 # it helps to detect inapplicable dependency modes. For instance
2847 # both Tru64's cc and ICC support -MD to output dependencies as a
2848 # side effect of compilation, but ICC will put the dependencies in
2849 # the current directory while Tru64 will put them in the object
2850 # directory.
2851 mkdir sub
2852
2853 am_cv_$1_dependencies_compiler_type=none
2854 if test "$am_compiler_list" = ""; then
2855 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
2856 fi
0710d850
DS
2857 am__universal=false
2858 m4_case([$1], [CC],
2859 [case " $depcc " in #(
2860 *\ -arch\ *\ -arch\ *) am__universal=true ;;
2861 esac],
2862 [CXX],
2863 [case " $depcc " in #(
2864 *\ -arch\ *\ -arch\ *) am__universal=true ;;
2865 esac])
2866
2f1a1aea
FCE
2867 for depmode in $am_compiler_list; do
2868 # Setup a source with many dependencies, because some compilers
2869 # like to wrap large dependency lists on column 80 (with \), and
2870 # we should not choose a depcomp mode which is confused by this.
2871 #
2872 # We need to recreate these files for each test, as the compiler may
2873 # overwrite some of them when testing with obscure command lines.
2874 # This happens at least with the AIX C compiler.
2875 : > sub/conftest.c
2876 for i in 1 2 3 4 5 6; do
2877 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8eef2738
LB
2878 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
2879 # Solaris 10 /bin/sh.
2880 echo '/* dummy */' > sub/conftst$i.h
2f1a1aea
FCE
2881 done
2882 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2883
8eef2738 2884 # We check with '-c' and '-o' for the sake of the "dashmstdout"
0710d850 2885 # mode. It turns out that the SunPro C++ compiler does not properly
8eef2738
LB
2886 # handle '-M -o', and we need to detect this. Also, some Intel
2887 # versions had trouble with output in subdirs.
0710d850
DS
2888 am__obj=sub/conftest.${OBJEXT-o}
2889 am__minus_obj="-o $am__obj"
2f1a1aea 2890 case $depmode in
0710d850
DS
2891 gcc)
2892 # This depmode causes a compiler race in universal mode.
2893 test "$am__universal" = false || continue
2894 ;;
2f1a1aea 2895 nosideeffect)
8eef2738
LB
2896 # After this tag, mechanisms are not by side-effect, so they'll
2897 # only be used when explicitly requested.
2f1a1aea
FCE
2898 if test "x$enable_dependency_tracking" = xyes; then
2899 continue
2900 else
2901 break
2902 fi
2903 ;;
c66be968 2904 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
8eef2738 2905 # This compiler won't grok '-c -o', but also, the minuso test has
0710d850
DS
2906 # not run yet. These depmodes are late enough in the game, and
2907 # so weak that their functioning should not be impacted.
2908 am__obj=conftest.${OBJEXT-o}
2909 am__minus_obj=
2910 ;;
2f1a1aea
FCE
2911 none) break ;;
2912 esac
2f1a1aea 2913 if depmode=$depmode \
0710d850 2914 source=sub/conftest.c object=$am__obj \
2f1a1aea 2915 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
0710d850 2916 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
2f1a1aea 2917 >/dev/null 2>conftest.err &&
7fbd9d09 2918 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2f1a1aea 2919 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
0710d850 2920 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
2f1a1aea
FCE
2921 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2922 # icc doesn't choke on unknown options, it will just issue warnings
2923 # or remarks (even with -Werror). So we grep stderr for any message
2924 # that says an option was ignored or not supported.
2925 # When given -MP, icc 7.0 and 7.1 complain thusly:
2926 # icc: Command line warning: ignoring option '-M'; no argument required
2927 # The diagnosis changed in icc 8.0:
2928 # icc: Command line remark: option '-MP' not supported
2929 if (grep 'ignoring option' conftest.err ||
2930 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2931 am_cv_$1_dependencies_compiler_type=$depmode
2932 break
2933 fi
2934 fi
2935 done
2936
2937 cd ..
2938 rm -rf conftest.dir
2939else
2940 am_cv_$1_dependencies_compiler_type=none
2941fi
2942])
2943AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
2944AM_CONDITIONAL([am__fastdep$1], [
2945 test "x$enable_dependency_tracking" != xno \
2946 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
2947])
2948
2949
2950# AM_SET_DEPDIR
2951# -------------
2952# Choose a directory name for dependency files.
8eef2738 2953# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
2f1a1aea
FCE
2954AC_DEFUN([AM_SET_DEPDIR],
2955[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
2956AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
2957])
2958
2959
2960# AM_DEP_TRACK
2961# ------------
2962AC_DEFUN([AM_DEP_TRACK],
8eef2738
LB
2963[AC_ARG_ENABLE([dependency-tracking], [dnl
2964AS_HELP_STRING(
2965 [--enable-dependency-tracking],
2966 [do not reject slow dependency extractors])
2967AS_HELP_STRING(
2968 [--disable-dependency-tracking],
2969 [speeds up one-time build])])
2f1a1aea
FCE
2970if test "x$enable_dependency_tracking" != xno; then
2971 am_depcomp="$ac_aux_dir/depcomp"
2972 AMDEPBACKSLASH='\'
c66be968 2973 am__nodep='_no'
2f1a1aea
FCE
2974fi
2975AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
7fbd9d09
FCE
2976AC_SUBST([AMDEPBACKSLASH])dnl
2977_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
c66be968
JS
2978AC_SUBST([am__nodep])dnl
2979_AM_SUBST_NOTMAKE([am__nodep])dnl
2f1a1aea
FCE
2980])
2981
1ae2c0cd 2982# Generate code to set up dependency tracking. -*- Autoconf -*-
8129fd92 2983
b0c670f4 2984# Copyright (C) 1999-2013 Free Software Foundation, Inc.
1ae2c0cd
RM
2985#
2986# This file is free software; the Free Software Foundation
2987# gives unlimited permission to copy and/or distribute it,
2988# with or without modifications, as long as this notice is preserved.
8129fd92 2989
2f1a1aea
FCE
2990
2991# _AM_OUTPUT_DEPENDENCY_COMMANDS
2992# ------------------------------
2993AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
0710d850 2994[{
d9e6d90b 2995 # Older Autoconf quotes --file arguments for eval, but not when files
0710d850
DS
2996 # are listed without --file. Let's play safe and only enable the eval
2997 # if we detect the quoting.
2998 case $CONFIG_FILES in
2999 *\'*) eval set x "$CONFIG_FILES" ;;
3000 *) set x $CONFIG_FILES ;;
3001 esac
3002 shift
3003 for mf
3004 do
3005 # Strip MF so we end up with the name of the file.
3006 mf=`echo "$mf" | sed -e 's/:.*$//'`
3007 # Check whether this is an Automake generated Makefile or not.
8eef2738 3008 # We used to match only the files named 'Makefile.in', but
0710d850
DS
3009 # some people rename them; so instead we look at the file content.
3010 # Grep'ing the first line is not enough: some people post-process
3011 # each Makefile.in and add a new line on top of each file to say so.
3012 # Grep'ing the whole file is not good either: AIX grep has a line
3013 # limit of 2048, but all sed's we know have understand at least 4000.
3014 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
3015 dirpart=`AS_DIRNAME("$mf")`
3016 else
3017 continue
3018 fi
3019 # Extract the definition of DEPDIR, am__include, and am__quote
8eef2738 3020 # from the Makefile without running 'make'.
0710d850
DS
3021 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
3022 test -z "$DEPDIR" && continue
3023 am__include=`sed -n 's/^am__include = //p' < "$mf"`
d9e6d90b 3024 test -z "$am__include" && continue
0710d850 3025 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
0710d850
DS
3026 # Find all dependency output files, they are included files with
3027 # $(DEPDIR) in their names. We invoke sed twice because it is the
3028 # simplest approach to changing $(DEPDIR) to its actual value in the
3029 # expansion.
3030 for file in `sed -n "
3031 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8eef2738 3032 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
0710d850
DS
3033 # Make sure the directory exists.
3034 test -f "$dirpart/$file" && continue
3035 fdir=`AS_DIRNAME(["$file"])`
3036 AS_MKDIR_P([$dirpart/$fdir])
3037 # echo "creating $dirpart/$file"
3038 echo '# dummy' > "$dirpart/$file"
3039 done
2f1a1aea 3040 done
0710d850 3041}
2f1a1aea
FCE
3042])# _AM_OUTPUT_DEPENDENCY_COMMANDS
3043
3044
3045# AM_OUTPUT_DEPENDENCY_COMMANDS
3046# -----------------------------
3047# This macro should only be invoked once -- use via AC_REQUIRE.
3048#
3049# This code is only required when automatic dependency tracking
8eef2738 3050# is enabled. FIXME. This creates each '.P' file that we will
2f1a1aea
FCE
3051# need in order to bootstrap the dependency handling code.
3052AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
3053[AC_CONFIG_COMMANDS([depfiles],
3054 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
3055 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
3056])
3057
1ae2c0cd 3058# Do all the work for Automake. -*- Autoconf -*-
2f1a1aea 3059
b0c670f4 3060# Copyright (C) 1996-2013 Free Software Foundation, Inc.
1ae2c0cd
RM
3061#
3062# This file is free software; the Free Software Foundation
3063# gives unlimited permission to copy and/or distribute it,
3064# with or without modifications, as long as this notice is preserved.
2f1a1aea 3065
1ae2c0cd
RM
3066# This macro actually does too much. Some checks are only needed if
3067# your package does certain things. But this isn't really a big deal.
2f1a1aea 3068
46c282e4
FCE
3069dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
3070m4_define([AC_PROG_CC],
3071m4_defn([AC_PROG_CC])
3072[_AM_PROG_CC_C_O
3073])
3074
2f1a1aea
FCE
3075# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
3076# AM_INIT_AUTOMAKE([OPTIONS])
3077# -----------------------------------------------
3078# The call with PACKAGE and VERSION arguments is the old style
3079# call (pre autoconf-2.50), which is being phased out. PACKAGE
3080# and VERSION should now be passed to AC_INIT and removed from
3081# the call to AM_INIT_AUTOMAKE.
3082# We support both call styles for the transition. After
3083# the next Automake release, Autoconf can make the AC_INIT
3084# arguments mandatory, and then we can depend on a new Autoconf
3085# release and drop the old call support.
3086AC_DEFUN([AM_INIT_AUTOMAKE],
d9e6d90b 3087[AC_PREREQ([2.65])dnl
2f1a1aea
FCE
3088dnl Autoconf wants to disallow AM_ names. We explicitly allow
3089dnl the ones we care about.
3090m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
3091AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
3092AC_REQUIRE([AC_PROG_INSTALL])dnl
7fbd9d09
FCE
3093if test "`cd $srcdir && pwd`" != "`pwd`"; then
3094 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3095 # is not polluted with repeated "-I."
3096 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
3097 # test to see if srcdir already configured
3098 if test -f $srcdir/config.status; then
3099 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
3100 fi
2f1a1aea
FCE
3101fi
3102
3103# test whether we have cygpath
3104if test -z "$CYGPATH_W"; then
3105 if (cygpath --version) >/dev/null 2>/dev/null; then
3106 CYGPATH_W='cygpath -w'
3107 else
3108 CYGPATH_W=echo
3109 fi
3110fi
3111AC_SUBST([CYGPATH_W])
3112
3113# Define the identity of the package.
3114dnl Distinguish between old-style and new-style calls.
3115m4_ifval([$2],
8eef2738 3116[AC_DIAGNOSE([obsolete],
d9e6d90b 3117 [$0: two- and three-arguments forms are deprecated.])
8eef2738 3118m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
2f1a1aea
FCE
3119 AC_SUBST([PACKAGE], [$1])dnl
3120 AC_SUBST([VERSION], [$2])],
3121[_AM_SET_OPTIONS([$1])dnl
7fbd9d09 3122dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
8eef2738
LB
3123m4_if(
3124 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
3125 [ok:ok],,
7fbd9d09 3126 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
2f1a1aea
FCE
3127 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
3128 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
3129
3130_AM_IF_OPTION([no-define],,
8eef2738
LB
3131[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
3132 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
2f1a1aea
FCE
3133
3134# Some tools Automake needs.
3135AC_REQUIRE([AM_SANITY_CHECK])dnl
3136AC_REQUIRE([AC_ARG_PROGRAM])dnl
8eef2738
LB
3137AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
3138AM_MISSING_PROG([AUTOCONF], [autoconf])
3139AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
3140AM_MISSING_PROG([AUTOHEADER], [autoheader])
3141AM_MISSING_PROG([MAKEINFO], [makeinfo])
0710d850
DS
3142AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
3143AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
8eef2738
LB
3144AC_REQUIRE([AC_PROG_MKDIR_P])dnl
3145# For better backward compatibility. To be removed once Automake 1.9.x
3146# dies out for good. For more background, see:
3147# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3148# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3149AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
b0c670f4
FCE
3150# We need awk for the "check" target. The system "awk" is bad on
3151# some platforms.
2f1a1aea
FCE
3152AC_REQUIRE([AC_PROG_AWK])dnl
3153AC_REQUIRE([AC_PROG_MAKE_SET])dnl
3154AC_REQUIRE([AM_SET_LEADING_DOT])dnl
3155_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
0710d850
DS
3156 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
3157 [_AM_PROG_TAR([v7])])])
2f1a1aea
FCE
3158_AM_IF_OPTION([no-dependencies],,
3159[AC_PROVIDE_IFELSE([AC_PROG_CC],
8eef2738
LB
3160 [_AM_DEPENDENCIES([CC])],
3161 [m4_define([AC_PROG_CC],
3162 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
2f1a1aea 3163AC_PROVIDE_IFELSE([AC_PROG_CXX],
8eef2738
LB
3164 [_AM_DEPENDENCIES([CXX])],
3165 [m4_define([AC_PROG_CXX],
3166 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
7fbd9d09 3167AC_PROVIDE_IFELSE([AC_PROG_OBJC],
8eef2738
LB
3168 [_AM_DEPENDENCIES([OBJC])],
3169 [m4_define([AC_PROG_OBJC],
3170 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
d9e6d90b 3171AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
8eef2738
LB
3172 [_AM_DEPENDENCIES([OBJCXX])],
3173 [m4_define([AC_PROG_OBJCXX],
d9e6d90b 3174 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
2f1a1aea 3175])
d9e6d90b
WC
3176AC_REQUIRE([AM_SILENT_RULES])dnl
3177dnl The testsuite driver may need to know about EXEEXT, so add the
3178dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
3179dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
0710d850
DS
3180AC_CONFIG_COMMANDS_PRE(dnl
3181[m4_provide_if([_AM_COMPILER_EXEEXT],
3182 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
46c282e4
FCE
3183
3184# POSIX will say in a future version that running "rm -f" with no argument
3185# is OK; and we want to be able to make that assumption in our Makefile
3186# recipes. So use an aggressive probe to check that the usage we want is
3187# actually supported "in the wild" to an acceptable degree.
3188# See automake bug#10828.
3189# To make any issue more visible, cause the running configure to be aborted
3190# by default if the 'rm' program in use doesn't match our expectations; the
3191# user can still override this though.
3192if rm -f && rm -fr && rm -rf; then : OK; else
3193 cat >&2 <<'END'
3194Oops!
3195
3196Your 'rm' program seems unable to run without file operands specified
3197on the command line, even when the '-f' option is present. This is contrary
3198to the behaviour of most rm programs out there, and not conforming with
3199the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3200
3201Please tell bug-automake@gnu.org about your system, including the value
3202of your $PATH and any error possibly output before this message. This
3203can help us improve future automake versions.
3204
3205END
3206 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3207 echo 'Configuration will proceed anyway, since you have set the' >&2
3208 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3209 echo >&2
3210 else
3211 cat >&2 <<'END'
3212Aborting the configuration process, to ensure you take notice of the issue.
3213
3214You can download and install GNU coreutils to get an 'rm' implementation
3215that behaves properly: <http://www.gnu.org/software/coreutils/>.
3216
3217If you want to complete the configuration process using your problematic
3218'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3219to "yes", and re-run configure.
3220
3221END
3222 AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
3223 fi
b0c670f4 3224fi])
2f1a1aea 3225
8eef2738 3226dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
0710d850
DS
3227dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
3228dnl mangled by Autoconf and run in a shell conditional statement.
3229m4_define([_AC_COMPILER_EXEEXT],
3230m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
3231
2f1a1aea
FCE
3232# When config.status generates a header, we must update the stamp-h file.
3233# This file resides in the same directory as the config header
3234# that is generated. The stamp files are numbered to have different names.
3235
3236# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
3237# loop where config.status creates the headers, so we can generate
3238# our stamp files there.
3239AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
3240[# Compute $1's index in $config_headers.
0710d850 3241_am_arg=$1
2f1a1aea
FCE
3242_am_stamp_count=1
3243for _am_header in $config_headers :; do
3244 case $_am_header in
0710d850 3245 $_am_arg | $_am_arg:* )
2f1a1aea
FCE
3246 break ;;
3247 * )
3248 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
3249 esac
3250done
0710d850 3251echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
2f1a1aea 3252
b0c670f4 3253# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1ae2c0cd
RM
3254#
3255# This file is free software; the Free Software Foundation
3256# gives unlimited permission to copy and/or distribute it,
3257# with or without modifications, as long as this notice is preserved.
3258
2f1a1aea
FCE
3259# AM_PROG_INSTALL_SH
3260# ------------------
3261# Define $install_sh.
2f1a1aea
FCE
3262AC_DEFUN([AM_PROG_INSTALL_SH],
3263[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
b0c670f4 3264if test x"${install_sh}" != xset; then
0710d850
DS
3265 case $am_aux_dir in
3266 *\ * | *\ *)
3267 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3268 *)
3269 install_sh="\${SHELL} $am_aux_dir/install-sh"
3270 esac
3271fi
8eef2738 3272AC_SUBST([install_sh])])
2f1a1aea 3273
b0c670f4 3274# Copyright (C) 2003-2013 Free Software Foundation, Inc.
1ae2c0cd
RM
3275#
3276# This file is free software; the Free Software Foundation
3277# gives unlimited permission to copy and/or distribute it,
3278# with or without modifications, as long as this notice is preserved.
8129fd92 3279
2f1a1aea
FCE
3280# Check whether the underlying file-system supports filenames
3281# with a leading dot. For instance MS-DOS doesn't.
3282AC_DEFUN([AM_SET_LEADING_DOT],
3283[rm -rf .tst 2>/dev/null
3284mkdir .tst 2>/dev/null
3285if test -d .tst; then
3286 am__leading_dot=.
3287else
3288 am__leading_dot=_
3289fi
3290rmdir .tst 2>/dev/null
3291AC_SUBST([am__leading_dot])])
3292
1ae2c0cd 3293# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
2f1a1aea
FCE
3294# From Jim Meyering
3295
b0c670f4 3296# Copyright (C) 1996-2013 Free Software Foundation, Inc.
1ae2c0cd
RM
3297#
3298# This file is free software; the Free Software Foundation
3299# gives unlimited permission to copy and/or distribute it,
3300# with or without modifications, as long as this notice is preserved.
2f1a1aea 3301
0710d850
DS
3302# AM_MAINTAINER_MODE([DEFAULT-MODE])
3303# ----------------------------------
3304# Control maintainer-specific portions of Makefiles.
8eef2738
LB
3305# Default is to disable them, unless 'enable' is passed literally.
3306# For symmetry, 'disable' may be passed as well. Anyway, the user
0710d850 3307# can override the default with the --enable/--disable switch.
2f1a1aea 3308AC_DEFUN([AM_MAINTAINER_MODE],
0710d850
DS
3309[m4_case(m4_default([$1], [disable]),
3310 [enable], [m4_define([am_maintainer_other], [disable])],
3311 [disable], [m4_define([am_maintainer_other], [enable])],
3312 [m4_define([am_maintainer_other], [enable])
3313 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
c66be968 3314AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
0710d850
DS
3315 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
3316 AC_ARG_ENABLE([maintainer-mode],
8eef2738
LB
3317 [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
3318 am_maintainer_other[ make rules and dependencies not useful
3319 (and sometimes confusing) to the casual installer])],
3320 [USE_MAINTAINER_MODE=$enableval],
3321 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
2f1a1aea 3322 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
0710d850 3323 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
2f1a1aea 3324 MAINT=$MAINTAINER_MODE_TRUE
0710d850 3325 AC_SUBST([MAINT])dnl
2f1a1aea
FCE
3326]
3327)
3328
1ae2c0cd 3329# Check to see how 'make' treats includes. -*- Autoconf -*-
8129fd92 3330
b0c670f4 3331# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1ae2c0cd
RM
3332#
3333# This file is free software; the Free Software Foundation
3334# gives unlimited permission to copy and/or distribute it,
3335# with or without modifications, as long as this notice is preserved.
8129fd92 3336
2f1a1aea
FCE
3337# AM_MAKE_INCLUDE()
3338# -----------------
3339# Check to see how make treats includes.
3340AC_DEFUN([AM_MAKE_INCLUDE],
3341[am_make=${MAKE-make}
3342cat > confinc << 'END'
3343am__doit:
0710d850 3344 @echo this is the am__doit target
2f1a1aea
FCE
3345.PHONY: am__doit
3346END
3347# If we don't find an include directive, just comment out the code.
3348AC_MSG_CHECKING([for style of include used by $am_make])
3349am__include="#"
3350am__quote=
3351_am_result=none
3352# First try GNU make style include.
3353echo "include confinc" > confmf
8eef2738 3354# Ignore all kinds of additional output from 'make'.
0710d850
DS
3355case `$am_make -s -f confmf 2> /dev/null` in #(
3356*the\ am__doit\ target*)
3357 am__include=include
3358 am__quote=
3359 _am_result=GNU
3360 ;;
3361esac
2f1a1aea
FCE
3362# Now try BSD make style include.
3363if test "$am__include" = "#"; then
3364 echo '.include "confinc"' > confmf
0710d850
DS
3365 case `$am_make -s -f confmf 2> /dev/null` in #(
3366 *the\ am__doit\ target*)
3367 am__include=.include
3368 am__quote="\""
3369 _am_result=BSD
3370 ;;
3371 esac
2f1a1aea
FCE
3372fi
3373AC_SUBST([am__include])
3374AC_SUBST([am__quote])
3375AC_MSG_RESULT([$_am_result])
3376rm -f confinc confmf
3377])
3378
1ae2c0cd 3379# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
8129fd92 3380
b0c670f4 3381# Copyright (C) 1997-2013 Free Software Foundation, Inc.
1ae2c0cd
RM
3382#
3383# This file is free software; the Free Software Foundation
3384# gives unlimited permission to copy and/or distribute it,
3385# with or without modifications, as long as this notice is preserved.
8129fd92 3386
2f1a1aea
FCE
3387# AM_MISSING_PROG(NAME, PROGRAM)
3388# ------------------------------
3389AC_DEFUN([AM_MISSING_PROG],
3390[AC_REQUIRE([AM_MISSING_HAS_RUN])
3391$1=${$1-"${am_missing_run}$2"}
3392AC_SUBST($1)])
3393
2f1a1aea
FCE
3394# AM_MISSING_HAS_RUN
3395# ------------------
d9e6d90b
WC
3396# Define MISSING if not defined so far and test if it is modern enough.
3397# If it is, set am_missing_run to use it, otherwise, to nothing.
2f1a1aea
FCE
3398AC_DEFUN([AM_MISSING_HAS_RUN],
3399[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7fbd9d09 3400AC_REQUIRE_AUX_FILE([missing])dnl
0710d850
DS
3401if test x"${MISSING+set}" != xset; then
3402 case $am_aux_dir in
3403 *\ * | *\ *)
3404 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3405 *)
3406 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3407 esac
3408fi
2f1a1aea 3409# Use eval to expand $SHELL
d9e6d90b
WC
3410if eval "$MISSING --is-lightweight"; then
3411 am_missing_run="$MISSING "
2f1a1aea
FCE
3412else
3413 am_missing_run=
8eef2738 3414 AC_MSG_WARN(['missing' script is too old or missing])
2f1a1aea
FCE
3415fi
3416])
3417
d9e6d90b
WC
3418# -*- Autoconf -*-
3419# Obsolete and "removed" macros, that must however still report explicit
3420# error messages when used, to smooth transition.
3421#
b0c670f4 3422# Copyright (C) 1996-2013 Free Software Foundation, Inc.
d9e6d90b
WC
3423#
3424# This file is free software; the Free Software Foundation
3425# gives unlimited permission to copy and/or distribute it,
3426# with or without modifications, as long as this notice is preserved.
3427
3428AC_DEFUN([AM_CONFIG_HEADER],
3429[AC_DIAGNOSE([obsolete],
3430['$0': this macro is obsolete.
3431You should use the 'AC][_CONFIG_HEADERS' macro instead.])dnl
3432AC_CONFIG_HEADERS($@)])
3433
3434AC_DEFUN([AM_PROG_CC_STDC],
3435[AC_PROG_CC
3436am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
3437AC_DIAGNOSE([obsolete],
3438['$0': this macro is obsolete.
3439You should simply use the 'AC][_PROG_CC' macro instead.
3440Also, your code should no longer depend upon 'am_cv_prog_cc_stdc',
3441but upon 'ac_cv_prog_cc_stdc'.])])
3442
3443AC_DEFUN([AM_C_PROTOTYPES],
3444 [AC_FATAL([automatic de-ANSI-fication support has been removed])])
3445AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES])
3446
1ae2c0cd 3447# Helper functions for option handling. -*- Autoconf -*-
8129fd92 3448
b0c670f4 3449# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1ae2c0cd
RM
3450#
3451# This file is free software; the Free Software Foundation
3452# gives unlimited permission to copy and/or distribute it,
3453# with or without modifications, as long as this notice is preserved.
8129fd92 3454
2f1a1aea
FCE
3455# _AM_MANGLE_OPTION(NAME)
3456# -----------------------
3457AC_DEFUN([_AM_MANGLE_OPTION],
3458[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
3459
3460# _AM_SET_OPTION(NAME)
c66be968 3461# --------------------
2f1a1aea
FCE
3462# Set option NAME. Presently that only means defining a flag for this option.
3463AC_DEFUN([_AM_SET_OPTION],
8eef2738 3464[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
2f1a1aea
FCE
3465
3466# _AM_SET_OPTIONS(OPTIONS)
c66be968 3467# ------------------------
2f1a1aea
FCE
3468# OPTIONS is a space-separated list of Automake options.
3469AC_DEFUN([_AM_SET_OPTIONS],
0710d850 3470[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
2f1a1aea
FCE
3471
3472# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
3473# -------------------------------------------
3474# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
3475AC_DEFUN([_AM_IF_OPTION],
3476[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
3477
b0c670f4 3478# Copyright (C) 1999-2013 Free Software Foundation, Inc.
46c282e4
FCE
3479#
3480# This file is free software; the Free Software Foundation
3481# gives unlimited permission to copy and/or distribute it,
3482# with or without modifications, as long as this notice is preserved.
3483
3484# _AM_PROG_CC_C_O
3485# ---------------
3486# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
3487# to automatically call this.
3488AC_DEFUN([_AM_PROG_CC_C_O],
3489[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
3490AC_REQUIRE_AUX_FILE([compile])dnl
3491AC_LANG_PUSH([C])dnl
3492AC_CACHE_CHECK(
3493 [whether $CC understands -c and -o together],
3494 [am_cv_prog_cc_c_o],
3495 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
3496 # Make sure it works both with $CC and with simple cc.
3497 # Following AC_PROG_CC_C_O, we do the test twice because some
3498 # compilers refuse to overwrite an existing .o file with -o,
3499 # though they will create one.
3500 am_cv_prog_cc_c_o=yes
3501 for am_i in 1 2; do
3502 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
3503 && test -f conftest2.$ac_objext; then
3504 : OK
3505 else
3506 am_cv_prog_cc_c_o=no
3507 break
3508 fi
3509 done
3510 rm -f core conftest*
3511 unset am_i])
3512if test "$am_cv_prog_cc_c_o" != yes; then
3513 # Losing compiler, so override with the script.
3514 # FIXME: It is wrong to rewrite CC.
3515 # But if we don't then we get into trouble of one sort or another.
3516 # A longer-term fix would be to have automake use am__CC in this case,
3517 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3518 CC="$am_aux_dir/compile $CC"
3519fi
3520AC_LANG_POP([C])])
3521
3522# For backward compatibility.
3523AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
3524
b0c670f4 3525# Copyright (C) 2001-2013 Free Software Foundation, Inc.
46c282e4
FCE
3526#
3527# This file is free software; the Free Software Foundation
3528# gives unlimited permission to copy and/or distribute it,
3529# with or without modifications, as long as this notice is preserved.
3530
3531# AM_RUN_LOG(COMMAND)
3532# -------------------
3533# Run COMMAND, save the exit status in ac_status, and log it.
3534# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
3535AC_DEFUN([AM_RUN_LOG],
3536[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
3537 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
3538 ac_status=$?
3539 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
3540 (exit $ac_status); }])
3541
1ae2c0cd 3542# Check to make sure that the build environment is sane. -*- Autoconf -*-
8129fd92 3543
b0c670f4 3544# Copyright (C) 1996-2013 Free Software Foundation, Inc.
1ae2c0cd
RM
3545#
3546# This file is free software; the Free Software Foundation
3547# gives unlimited permission to copy and/or distribute it,
3548# with or without modifications, as long as this notice is preserved.
2f1a1aea 3549
2f1a1aea
FCE
3550# AM_SANITY_CHECK
3551# ---------------
3552AC_DEFUN([AM_SANITY_CHECK],
3553[AC_MSG_CHECKING([whether build environment is sane])
0710d850
DS
3554# Reject unsafe characters in $srcdir or the absolute working directory
3555# name. Accept space and tab only in the latter.
3556am_lf='
3557'
3558case `pwd` in
3559 *[[\\\"\#\$\&\'\`$am_lf]]*)
3560 AC_MSG_ERROR([unsafe absolute working directory name]);;
3561esac
3562case $srcdir in
3563 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
8eef2738 3564 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
0710d850
DS
3565esac
3566
8eef2738 3567# Do 'set' in a subshell so we don't clobber the current shell's
2f1a1aea
FCE
3568# arguments. Must try -L first in case configure is actually a
3569# symlink; some systems play weird games with the mod time of symlinks
3570# (eg FreeBSD returns the mod time of the symlink's containing
3571# directory).
3572if (
8eef2738
LB
3573 am_has_slept=no
3574 for am_try in 1 2; do
3575 echo "timestamp, slept: $am_has_slept" > conftest.file
3576 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3577 if test "$[*]" = "X"; then
3578 # -L didn't work.
3579 set X `ls -t "$srcdir/configure" conftest.file`
3580 fi
3581 if test "$[*]" != "X $srcdir/configure conftest.file" \
3582 && test "$[*]" != "X conftest.file $srcdir/configure"; then
3583
3584 # If neither matched, then we have a broken ls. This can happen
3585 # if, for instance, CONFIG_SHELL is bash and it inherits a
3586 # broken ls alias from the environment. This has actually
3587 # happened. Such a system could not be considered "sane".
3588 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
3589 alias in your environment])
3590 fi
3591 if test "$[2]" = conftest.file || test $am_try -eq 2; then
3592 break
3593 fi
3594 # Just in case.
3595 sleep 1
3596 am_has_slept=yes
3597 done
2f1a1aea
FCE
3598 test "$[2]" = conftest.file
3599 )
3600then
3601 # Ok.
3602 :
3603else
3604 AC_MSG_ERROR([newly created file is older than distributed files!
3605Check your system clock])
3606fi
8eef2738
LB
3607AC_MSG_RESULT([yes])
3608# If we didn't sleep, we still need to ensure time stamps of config.status and
3609# generated files are strictly newer.
3610am_sleep_pid=
3611if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3612 ( sleep 1 ) &
3613 am_sleep_pid=$!
3614fi
3615AC_CONFIG_COMMANDS_PRE(
3616 [AC_MSG_CHECKING([that generated files are newer than configure])
3617 if test -n "$am_sleep_pid"; then
3618 # Hide warnings about reused PIDs.
3619 wait $am_sleep_pid 2>/dev/null
3620 fi
3621 AC_MSG_RESULT([done])])
3622rm -f conftest.file
3623])
2f1a1aea 3624
b0c670f4 3625# Copyright (C) 2009-2013 Free Software Foundation, Inc.
0710d850
DS
3626#
3627# This file is free software; the Free Software Foundation
3628# gives unlimited permission to copy and/or distribute it,
3629# with or without modifications, as long as this notice is preserved.
3630
0710d850
DS
3631# AM_SILENT_RULES([DEFAULT])
3632# --------------------------
3633# Enable less verbose build rules; with the default set to DEFAULT
8eef2738 3634# ("yes" being less verbose, "no" or empty being verbose).
0710d850 3635AC_DEFUN([AM_SILENT_RULES],
8eef2738
LB
3636[AC_ARG_ENABLE([silent-rules], [dnl
3637AS_HELP_STRING(
3638 [--enable-silent-rules],
3639 [less verbose build output (undo: "make V=1")])
3640AS_HELP_STRING(
3641 [--disable-silent-rules],
3642 [verbose build output (undo: "make V=0")])dnl
3643])
3644case $enable_silent_rules in @%:@ (((
3645 yes) AM_DEFAULT_VERBOSITY=0;;
3646 no) AM_DEFAULT_VERBOSITY=1;;
3647 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
0710d850 3648esac
c66be968 3649dnl
8eef2738 3650dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
c66be968
JS
3651dnl do not support nested variable expansions.
3652dnl See automake bug#9928 and bug#10237.
3653am_make=${MAKE-make}
3654AC_CACHE_CHECK([whether $am_make supports nested variables],
3655 [am_cv_make_support_nested_variables],
3656 [if AS_ECHO([['TRUE=$(BAR$(V))
3657BAR0=false
3658BAR1=true
3659V=1
3660am__doit:
3661 @$(TRUE)
3662.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
3663 am_cv_make_support_nested_variables=yes
3664else
3665 am_cv_make_support_nested_variables=no
3666fi])
3667if test $am_cv_make_support_nested_variables = yes; then
8eef2738 3668 dnl Using '$V' instead of '$(V)' breaks IRIX make.
c66be968
JS
3669 AM_V='$(V)'
3670 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3671else
3672 AM_V=$AM_DEFAULT_VERBOSITY
3673 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3674fi
3675AC_SUBST([AM_V])dnl
3676AM_SUBST_NOTMAKE([AM_V])dnl
3677AC_SUBST([AM_DEFAULT_V])dnl
3678AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
0710d850
DS
3679AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
3680AM_BACKSLASH='\'
3681AC_SUBST([AM_BACKSLASH])dnl
3682_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
3683])
3684
b0c670f4 3685# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1ae2c0cd
RM
3686#
3687# This file is free software; the Free Software Foundation
3688# gives unlimited permission to copy and/or distribute it,
3689# with or without modifications, as long as this notice is preserved.
8129fd92 3690
1ae2c0cd
RM
3691# AM_PROG_INSTALL_STRIP
3692# ---------------------
8eef2738 3693# One issue with vendor 'install' (even GNU) is that you can't
2f1a1aea
FCE
3694# specify the program used to strip binaries. This is especially
3695# annoying in cross-compiling environments, where the build's strip
3696# is unlikely to handle the host's binaries.
3697# Fortunately install-sh will honor a STRIPPROG variable, so we
8eef2738 3698# always use install-sh in "make install-strip", and initialize
2f1a1aea
FCE
3699# STRIPPROG with the value of the STRIP variable (set by the user).
3700AC_DEFUN([AM_PROG_INSTALL_STRIP],
3701[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
8eef2738
LB
3702# Installed binaries are usually stripped using 'strip' when the user
3703# run "make install-strip". However 'strip' might not be the right
2f1a1aea 3704# tool to use in cross-compilation environments, therefore Automake
8eef2738
LB
3705# will honor the 'STRIP' environment variable to overrule this program.
3706dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
2f1a1aea
FCE
3707if test "$cross_compiling" != no; then
3708 AC_CHECK_TOOL([STRIP], [strip], :)
3709fi
7fbd9d09 3710INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2f1a1aea
FCE
3711AC_SUBST([INSTALL_STRIP_PROGRAM])])
3712
b0c670f4 3713# Copyright (C) 2006-2013 Free Software Foundation, Inc.
7fbd9d09
FCE
3714#
3715# This file is free software; the Free Software Foundation
3716# gives unlimited permission to copy and/or distribute it,
3717# with or without modifications, as long as this notice is preserved.
3718
3719# _AM_SUBST_NOTMAKE(VARIABLE)
3720# ---------------------------
0710d850 3721# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
7fbd9d09
FCE
3722# This macro is traced by Automake.
3723AC_DEFUN([_AM_SUBST_NOTMAKE])
3724
0710d850 3725# AM_SUBST_NOTMAKE(VARIABLE)
c66be968 3726# --------------------------
0710d850
DS
3727# Public sister of _AM_SUBST_NOTMAKE.
3728AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
3729
2f1a1aea
FCE
3730# Check how to create a tarball. -*- Autoconf -*-
3731
b0c670f4 3732# Copyright (C) 2004-2013 Free Software Foundation, Inc.
1ae2c0cd
RM
3733#
3734# This file is free software; the Free Software Foundation
3735# gives unlimited permission to copy and/or distribute it,
3736# with or without modifications, as long as this notice is preserved.
2f1a1aea 3737
2f1a1aea
FCE
3738# _AM_PROG_TAR(FORMAT)
3739# --------------------
3740# Check how to create a tarball in format FORMAT.
8eef2738 3741# FORMAT should be one of 'v7', 'ustar', or 'pax'.
2f1a1aea
FCE
3742#
3743# Substitute a variable $(am__tar) that is a command
3744# writing to stdout a FORMAT-tarball containing the directory
3745# $tardir.
3746# tardir=directory && $(am__tar) > result.tar
3747#
3748# Substitute a variable $(am__untar) that extract such
3749# a tarball read from stdin.
3750# $(am__untar) < result.tar
d9e6d90b 3751#
2f1a1aea 3752AC_DEFUN([_AM_PROG_TAR],
c66be968
JS
3753[# Always define AMTAR for backward compatibility. Yes, it's still used
3754# in the wild :-( We should find a proper way to deprecate it ...
3755AC_SUBST([AMTAR], ['$${TAR-tar}'])
d9e6d90b
WC
3756
3757# We'll loop over all known methods to create a tar archive until one works.
2f1a1aea 3758_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
2f1a1aea 3759
d9e6d90b
WC
3760m4_if([$1], [v7],
3761 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
3762
3763 [m4_case([$1],
3764 [ustar],
3765 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
3766 # There is notably a 21 bits limit for the UID and the GID. In fact,
3767 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3768 # and bug#13588).
3769 am_max_uid=2097151 # 2^21 - 1
3770 am_max_gid=$am_max_uid
3771 # The $UID and $GID variables are not portable, so we need to resort
3772 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3773 # below are definitely unexpected, so allow the users to see them
3774 # (that is, avoid stderr redirection).
3775 am_uid=`id -u || echo unknown`
3776 am_gid=`id -g || echo unknown`
3777 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
3778 if test $am_uid -le $am_max_uid; then
3779 AC_MSG_RESULT([yes])
3780 else
3781 AC_MSG_RESULT([no])
3782 _am_tools=none
3783 fi
3784 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
3785 if test $am_gid -le $am_max_gid; then
3786 AC_MSG_RESULT([yes])
3787 else
3788 AC_MSG_RESULT([no])
3789 _am_tools=none
3790 fi],
3791
3792 [pax],
3793 [],
3794
3795 [m4_fatal([Unknown tar format])])
3796
3797 AC_MSG_CHECKING([how to create a $1 tar archive])
3798
3799 # Go ahead even if we have the value already cached. We do so because we
3800 # need to set the values for the 'am__tar' and 'am__untar' variables.
3801 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
3802
3803 for _am_tool in $_am_tools; do
3804 case $_am_tool in
3805 gnutar)
3806 for _am_tar in tar gnutar gtar; do
3807 AM_RUN_LOG([$_am_tar --version]) && break
3808 done
3809 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
3810 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
3811 am__untar="$_am_tar -xf -"
3812 ;;
3813 plaintar)
3814 # Must skip GNU tar: if it does not support --format= it doesn't create
3815 # ustar tarball either.
3816 (tar --version) >/dev/null 2>&1 && continue
3817 am__tar='tar chf - "$$tardir"'
3818 am__tar_='tar chf - "$tardir"'
3819 am__untar='tar xf -'
3820 ;;
3821 pax)
3822 am__tar='pax -L -x $1 -w "$$tardir"'
3823 am__tar_='pax -L -x $1 -w "$tardir"'
3824 am__untar='pax -r'
3825 ;;
3826 cpio)
3827 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
3828 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
3829 am__untar='cpio -i -H $1 -d'
3830 ;;
3831 none)
3832 am__tar=false
3833 am__tar_=false
3834 am__untar=false
3835 ;;
3836 esac
2f1a1aea 3837
d9e6d90b
WC
3838 # If the value was cached, stop now. We just wanted to have am__tar
3839 # and am__untar set.
3840 test -n "${am_cv_prog_tar_$1}" && break
3841
3842 # tar/untar a dummy directory, and stop if the command works.
3843 rm -rf conftest.dir
3844 mkdir conftest.dir
3845 echo GrepMe > conftest.dir/file
3846 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
3847 rm -rf conftest.dir
3848 if test -s conftest.tar; then
3849 AM_RUN_LOG([$am__untar <conftest.tar])
3850 AM_RUN_LOG([cat conftest.dir/file])
3851 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3852 fi
3853 done
94eb87d1 3854 rm -rf conftest.dir
2f1a1aea 3855
d9e6d90b
WC
3856 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
3857 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
3858
2f1a1aea
FCE
3859AC_SUBST([am__tar])
3860AC_SUBST([am__untar])
3861]) # _AM_PROG_TAR
3862
This page took 0.508606 seconds and 5 git commands to generate.