1 # generated automatically by aclocal 1.9.6 -*- Autoconf -*-
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4 # 2005 Free Software Foundation, Inc.
5 # This file is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
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
14 # gettext.m4 serial 37 (gettext-0.14.4)
15 dnl Copyright (C) 1995-2005 Free Software Foundation, Inc.
16 dnl This file is free software; the Free Software Foundation
17 dnl gives unlimited permission to copy and/or distribute it,
18 dnl with or without modifications, as long as this notice is preserved.
20 dnl This file can can be used in projects which are not available under
21 dnl the GNU General Public License or the GNU Library General Public
22 dnl License but which still want to provide support for the GNU gettext
24 dnl Please note that the actual code of the GNU gettext library is covered
25 dnl by the GNU Library General Public License, and the rest of the GNU
26 dnl gettext package package is covered by the GNU General Public License.
27 dnl They are *not* in the public domain.
30 dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
31 dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
33 dnl Macro to add for using GNU gettext.
35 dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]).
36 dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The
37 dnl default (if it is not specified or empty) is 'no-libtool'.
38 dnl INTLSYMBOL should be 'external' for packages with no intl directory,
39 dnl and 'no-libtool' or 'use-libtool' for packages with an intl directory.
40 dnl If INTLSYMBOL is 'use-libtool', then a libtool library
41 dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static,
42 dnl depending on --{enable,disable}-{shared,static} and on the presence of
43 dnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library
44 dnl $(top_builddir)/intl/libintl.a will be created.
45 dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext
46 dnl implementations (in libc or libintl) without the ngettext() function
47 dnl will be ignored. If NEEDSYMBOL is specified and is
48 dnl 'need-formatstring-macros', then GNU gettext implementations that don't
49 dnl support the ISO C 99 <inttypes.h> formatstring macros will be ignored.
50 dnl INTLDIR is used to find the intl libraries. If empty,
51 dnl the value `$(top_builddir)/intl/' is used.
53 dnl The result of the configuration is one of three cases:
54 dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled
56 dnl Catalog format: GNU --> install in $(datadir)
57 dnl Catalog extension: .mo after installation, .gmo in source tree
58 dnl 2) GNU gettext has been found in the system's C library.
59 dnl Catalog format: GNU --> install in $(datadir)
60 dnl Catalog extension: .mo after installation, .gmo in source tree
61 dnl 3) No internationalization, always use English msgid.
62 dnl Catalog format: none
63 dnl Catalog extension: none
64 dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur.
65 dnl The use of .gmo is historical (it was needed to avoid overwriting the
66 dnl GNU format catalogs when building on a platform with an X/Open gettext),
67 dnl but we keep it in order not to force irrelevant filename changes on the
70 AC_DEFUN([AM_GNU_GETTEXT],
72 dnl Argument checking.
73 ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], ,
74 [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT
76 ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], ,
77 [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT
79 define([gt_included_intl], ifelse([$1], [external], [no], [yes]))
80 define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], []))
82 AC_REQUIRE([AM_PO_SUBDIRS])dnl
83 ifelse(gt_included_intl, yes, [
84 AC_REQUIRE([AM_INTL_SUBDIR])dnl
87 dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
88 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
89 AC_REQUIRE([AC_LIB_RPATH])
91 dnl Sometimes libintl requires libiconv, so first search for libiconv.
92 dnl Ideally we would do this search only after the
93 dnl if test "$USE_NLS" = "yes"; then
94 dnl if test "$gt_cv_func_gnugettext_libc" != "yes"; then
95 dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT
96 dnl the configure script would need to contain the same shell code
97 dnl again, outside any 'if'. There are two solutions:
98 dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'.
99 dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE.
100 dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not
101 dnl documented, we avoid it.
102 ifelse(gt_included_intl, yes, , [
103 AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
106 dnl Sometimes, on MacOS X, libintl requires linking with CoreFoundation.
112 ifelse(gt_included_intl, yes, [
113 BUILD_INCLUDED_LIBINTL=no
114 USE_INCLUDED_LIBINTL=no
120 dnl If we use NLS figure out what method
121 if test "$USE_NLS" = "yes"; then
122 gt_use_preinstalled_gnugettext=no
123 ifelse(gt_included_intl, yes, [
124 AC_MSG_CHECKING([whether included gettext is requested])
125 AC_ARG_WITH(included-gettext,
126 [ --with-included-gettext use the GNU gettext library included here],
127 nls_cv_force_use_gnu_gettext=$withval,
128 nls_cv_force_use_gnu_gettext=no)
129 AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)
131 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
132 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
134 dnl User does not insist on using GNU NLS library. Figure out what
135 dnl to use. If GNU gettext is available we use this. Else we have
136 dnl to fall back to GNU NLS library.
138 dnl Add a version number to the cache macros.
139 define([gt_api_version], ifelse([$2], [need-formatstring-macros], 3, ifelse([$2], [need-ngettext], 2, 1)))
140 define([gt_cv_func_gnugettext_libc], [gt_cv_func_gnugettext]gt_api_version[_libc])
141 define([gt_cv_func_gnugettext_libintl], [gt_cv_func_gnugettext]gt_api_version[_libintl])
143 AC_CACHE_CHECK([for GNU gettext in libc], gt_cv_func_gnugettext_libc,
144 [AC_TRY_LINK([#include <libintl.h>
145 ]ifelse([$2], [need-formatstring-macros],
146 [#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
147 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
150 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
152 ], [])[extern int _nl_msg_cat_cntr;
153 extern int *_nl_domain_bindings;],
154 [bindtextdomain ("", "");
155 return * gettext ("")]ifelse([$2], [need-ngettext], [ + * ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_domain_bindings],
156 gt_cv_func_gnugettext_libc=yes,
157 gt_cv_func_gnugettext_libc=no)])
159 if test "$gt_cv_func_gnugettext_libc" != "yes"; then
160 dnl Sometimes libintl requires libiconv, so first search for libiconv.
161 ifelse(gt_included_intl, yes, , [
164 dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL
165 dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv])
166 dnl because that would add "-liconv" to LIBINTL and LTLIBINTL
167 dnl even if libiconv doesn't exist.
168 AC_LIB_LINKFLAGS_BODY([intl])
169 AC_CACHE_CHECK([for GNU gettext in libintl],
170 gt_cv_func_gnugettext_libintl,
171 [gt_save_CPPFLAGS="$CPPFLAGS"
172 CPPFLAGS="$CPPFLAGS $INCINTL"
174 LIBS="$LIBS $LIBINTL"
175 dnl Now see whether libintl exists and does not depend on libiconv.
176 AC_TRY_LINK([#include <libintl.h>
177 ]ifelse([$2], [need-formatstring-macros],
178 [#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
179 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
182 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
184 ], [])[extern int _nl_msg_cat_cntr;
189 const char *_nl_expand_alias (const char *);],
190 [bindtextdomain ("", "");
191 return * gettext ("")]ifelse([$2], [need-ngettext], [ + * ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias ("")],
192 gt_cv_func_gnugettext_libintl=yes,
193 gt_cv_func_gnugettext_libintl=no)
194 dnl Now see whether libintl exists and depends on libiconv.
195 if test "$gt_cv_func_gnugettext_libintl" != yes && test -n "$LIBICONV"; then
196 LIBS="$LIBS $LIBICONV"
197 AC_TRY_LINK([#include <libintl.h>
198 ]ifelse([$2], [need-formatstring-macros],
199 [#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
200 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
203 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
205 ], [])[extern int _nl_msg_cat_cntr;
210 const char *_nl_expand_alias (const char *);],
211 [bindtextdomain ("", "");
212 return * gettext ("")]ifelse([$2], [need-ngettext], [ + * ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias ("")],
213 [LIBINTL="$LIBINTL $LIBICONV"
214 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
215 gt_cv_func_gnugettext_libintl=yes
218 CPPFLAGS="$gt_save_CPPFLAGS"
219 LIBS="$gt_save_LIBS"])
222 dnl If an already present or preinstalled GNU gettext() is found,
223 dnl use it. But if this macro is used in GNU gettext, and GNU
224 dnl gettext is already preinstalled in libintl, we update this
225 dnl libintl. (Cf. the install rule in intl/Makefile.in.)
226 if test "$gt_cv_func_gnugettext_libc" = "yes" \
227 || { test "$gt_cv_func_gnugettext_libintl" = "yes" \
228 && test "$PACKAGE" != gettext-runtime \
229 && test "$PACKAGE" != gettext-tools; }; then
230 gt_use_preinstalled_gnugettext=yes
232 dnl Reset the values set by searching for libintl.
238 ifelse(gt_included_intl, yes, [
239 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
240 dnl GNU gettext is not found in the C library.
241 dnl Fall back on included GNU gettext library.
242 nls_cv_use_gnu_gettext=yes
246 if test "$nls_cv_use_gnu_gettext" = "yes"; then
247 dnl Mark actions used to generate GNU NLS library.
248 BUILD_INCLUDED_LIBINTL=yes
249 USE_INCLUDED_LIBINTL=yes
250 LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV"
251 LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV"
252 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
256 if test "$gt_use_preinstalled_gnugettext" = "yes" \
257 || test "$nls_cv_use_gnu_gettext" = "yes"; then
258 dnl Mark actions to use GNU gettext tools.
263 if test -n "$INTL_MACOSX_LIBS"; then
264 if test "$gt_use_preinstalled_gnugettext" = "yes" \
265 || test "$nls_cv_use_gnu_gettext" = "yes"; then
266 dnl Some extra flags are needed during linking.
267 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
268 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
272 if test "$gt_use_preinstalled_gnugettext" = "yes" \
273 || test "$nls_cv_use_gnu_gettext" = "yes"; then
274 AC_DEFINE(ENABLE_NLS, 1,
275 [Define to 1 if translation of program messages to the user's native language
282 AC_MSG_CHECKING([whether to use NLS])
283 AC_MSG_RESULT([$USE_NLS])
284 if test "$USE_NLS" = "yes"; then
285 AC_MSG_CHECKING([where the gettext function comes from])
286 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
287 if test "$gt_cv_func_gnugettext_libintl" = "yes"; then
288 gt_source="external libintl"
293 gt_source="included intl directory"
295 AC_MSG_RESULT([$gt_source])
298 if test "$USE_NLS" = "yes"; then
300 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
301 if test "$gt_cv_func_gnugettext_libintl" = "yes"; then
302 AC_MSG_CHECKING([how to link with libintl])
303 AC_MSG_RESULT([$LIBINTL])
304 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL])
307 dnl For backward compatibility. Some packages may be using this.
308 AC_DEFINE(HAVE_GETTEXT, 1,
309 [Define if the GNU gettext() function is already present or preinstalled.])
310 AC_DEFINE(HAVE_DCGETTEXT, 1,
311 [Define if the GNU dcgettext() function is already present or preinstalled.])
314 dnl We need to process the po/ directory.
318 ifelse(gt_included_intl, yes, [
319 dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL
320 dnl to 'yes' because some of the testsuite requires it.
321 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
322 BUILD_INCLUDED_LIBINTL=yes
325 dnl Make all variables we use known to autoconf.
326 AC_SUBST(BUILD_INCLUDED_LIBINTL)
327 AC_SUBST(USE_INCLUDED_LIBINTL)
330 dnl For backward compatibility. Some configure.ins may be using this.
334 dnl For backward compatibility. Some Makefiles may be using this.
336 AC_SUBST(DATADIRNAME)
338 dnl For backward compatibility. Some Makefiles may be using this.
342 dnl For backward compatibility. Some Makefiles may be using this.
346 dnl For backward compatibility. Some Makefiles may be using this.
348 if test "$USE_INCLUDED_LIBINTL" = yes; then
349 INTLOBJS="\$(GETTOBJS)"
353 dnl Enable libtool support if the surrounding package wishes it.
354 INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix
355 AC_SUBST(INTL_LIBTOOL_SUFFIX_PREFIX)
358 dnl For backward compatibility. Some Makefiles may be using this.
362 dnl Make all documented variables known to autoconf.
369 dnl Checks for all prerequisites of the intl subdirectory,
370 dnl except for INTL_LIBTOOL_SUFFIX_PREFIX (and possibly LIBTOOL), INTLOBJS,
371 dnl USE_INCLUDED_LIBINTL, BUILD_INCLUDED_LIBINTL.
372 AC_DEFUN([AM_INTL_SUBDIR],
374 AC_REQUIRE([AC_PROG_INSTALL])dnl
375 AC_REQUIRE([AM_MKINSTALLDIRS])dnl
376 AC_REQUIRE([AC_PROG_CC])dnl
377 AC_REQUIRE([AC_CANONICAL_HOST])dnl
378 AC_REQUIRE([gt_GLIBC2])dnl
379 AC_REQUIRE([AC_PROG_RANLIB])dnl
380 AC_REQUIRE([AC_ISC_POSIX])dnl
381 AC_REQUIRE([AC_HEADER_STDC])dnl
382 AC_REQUIRE([AC_C_CONST])dnl
383 AC_REQUIRE([bh_C_SIGNED])dnl
384 AC_REQUIRE([AC_C_INLINE])dnl
385 AC_REQUIRE([AC_TYPE_OFF_T])dnl
386 AC_REQUIRE([AC_TYPE_SIZE_T])dnl
387 AC_REQUIRE([gl_AC_TYPE_LONG_LONG])dnl
388 AC_REQUIRE([gt_TYPE_LONGDOUBLE])dnl
389 AC_REQUIRE([gt_TYPE_WCHAR_T])dnl
390 AC_REQUIRE([gt_TYPE_WINT_T])dnl
391 AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
392 AC_REQUIRE([gl_AC_HEADER_STDINT_H])
393 AC_REQUIRE([gt_TYPE_INTMAX_T])
394 AC_REQUIRE([gt_PRINTF_POSIX])
395 AC_REQUIRE([AC_FUNC_ALLOCA])dnl
396 AC_REQUIRE([AC_FUNC_MMAP])dnl
397 AC_REQUIRE([gl_GLIBC21])dnl
398 AC_REQUIRE([gt_INTDIV0])dnl
399 AC_REQUIRE([gl_AC_TYPE_UINTMAX_T])dnl
400 AC_REQUIRE([gt_HEADER_INTTYPES_H])dnl
401 AC_REQUIRE([gt_INTTYPES_PRI])dnl
402 AC_REQUIRE([gl_XSIZE])dnl
403 AC_REQUIRE([gt_INTL_MACOSX])dnl
405 AC_CHECK_TYPE([ptrdiff_t], ,
406 [AC_DEFINE([ptrdiff_t], [long],
407 [Define as the type of the result of subtracting two pointers, if the system doesn't define it.])
409 AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
410 stdlib.h string.h unistd.h sys/param.h])
411 AC_CHECK_FUNCS([asprintf fwprintf getcwd getegid geteuid getgid getuid \
412 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
413 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
416 dnl Use the _snprintf function only if it is declared (because on NetBSD it
417 dnl is defined as a weak alias of snprintf; we prefer to use the latter).
418 gt_CHECK_DECL(_snprintf, [#include <stdio.h>])
419 gt_CHECK_DECL(_snwprintf, [#include <stdio.h>])
421 dnl Use the *_unlocked functions only if they are declared.
422 dnl (because some of them were defined without being declared in Solaris
423 dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built
424 dnl on Solaris 2.5.1 to run on Solaris 2.6).
425 dnl Don't use AC_CHECK_DECLS because it isn't supported in autoconf-2.13.
426 gt_CHECK_DECL(feof_unlocked, [#include <stdio.h>])
427 gt_CHECK_DECL(fgets_unlocked, [#include <stdio.h>])
428 gt_CHECK_DECL(getc_unlocked, [#include <stdio.h>])
430 case $gt_cv_func_printf_posix in
431 *yes) HAVE_POSIX_PRINTF=1 ;;
432 *) HAVE_POSIX_PRINTF=0 ;;
434 AC_SUBST([HAVE_POSIX_PRINTF])
435 if test "$ac_cv_func_asprintf" = yes; then
440 AC_SUBST([HAVE_ASPRINTF])
441 if test "$ac_cv_func_snprintf" = yes; then
446 AC_SUBST([HAVE_SNPRINTF])
447 if test "$ac_cv_func_wprintf" = yes; then
452 AC_SUBST([HAVE_WPRINTF])
456 if test $ac_cv_header_locale_h = yes; then
460 if test -n "$INTL_MACOSX_LIBS"; then
461 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
464 dnl intl/plural.c is generated from intl/plural.y. It requires bison,
465 dnl because plural.y uses bison specific features. It requires at least
466 dnl bison-1.26 because earlier versions generate a plural.c that doesn't
468 dnl bison is only needed for the maintainer (who touches plural.y). But in
469 dnl order to avoid separate Makefiles or --enable-maintainer-mode, we put
470 dnl the rule in general Makefile. Now, some people carelessly touch the
471 dnl files or have a broken "make" program, hence the plural.c rule will
472 dnl sometimes fire. To avoid an error, defines BISON to ":" if it is not
473 dnl present or too old.
474 AC_CHECK_PROGS([INTLBISON], [bison])
475 if test -z "$INTLBISON"; then
478 dnl Found it, now check the version.
479 AC_MSG_CHECKING([version of bison])
480 changequote(<<,>>)dnl
481 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
482 case $ac_prog_version in
483 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
484 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
486 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
487 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
489 AC_MSG_RESULT([$ac_prog_version])
491 if test $ac_verc_fail = yes; then
497 dnl Checks for special options needed on MacOS X.
498 dnl Defines INTL_MACOSX_LIBS.
499 AC_DEFUN([gt_INTL_MACOSX],
501 dnl Check for API introduced in MacOS X 10.2.
502 AC_CACHE_CHECK([for CFPreferencesCopyAppValue],
503 gt_cv_func_CFPreferencesCopyAppValue,
504 [gt_save_CPPFLAGS="$CPPFLAGS"
505 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
507 LIBS="$LIBS -framework CoreFoundation"
508 AC_TRY_LINK([#include <CFPreferences.h>],
509 [CFPreferencesCopyAppValue(NULL, NULL)],
510 [gt_cv_func_CFPreferencesCopyAppValue=yes],
511 [gt_cv_func_CFPreferencesCopyAppValue=no])
512 CPPFLAGS="$gt_save_CPPFLAGS"
513 LIBS="$gt_save_LIBS"])
514 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
515 AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], 1,
516 [Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.])
518 dnl Check for API introduced in MacOS X 10.3.
519 AC_CACHE_CHECK([for CFLocaleCopyCurrent], gt_cv_func_CFLocaleCopyCurrent,
520 [gt_save_CPPFLAGS="$CPPFLAGS"
521 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
523 LIBS="$LIBS -framework CoreFoundation"
524 AC_TRY_LINK([#include <CFLocale.h>], [CFLocaleCopyCurrent();],
525 [gt_cv_func_CFLocaleCopyCurrent=yes],
526 [gt_cv_func_CFLocaleCopyCurrent=no])
527 CPPFLAGS="$gt_save_CPPFLAGS"
528 LIBS="$gt_save_LIBS"])
529 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
530 AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], 1,
531 [Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.])
534 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
535 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
537 AC_SUBST([INTL_MACOSX_LIBS])
541 dnl gt_CHECK_DECL(FUNC, INCLUDES)
542 dnl Check whether a function is declared.
543 AC_DEFUN([gt_CHECK_DECL],
545 AC_CACHE_CHECK([whether $1 is declared], ac_cv_have_decl_$1,
546 [AC_TRY_COMPILE([$2], [
548 char *p = (char *) $1;
550 ], ac_cv_have_decl_$1=yes, ac_cv_have_decl_$1=no)])
551 if test $ac_cv_have_decl_$1 = yes; then
556 AC_DEFINE_UNQUOTED([HAVE_DECL_]translit($1, [a-z], [A-Z]), [$gt_value],
557 [Define to 1 if you have the declaration of `$1', and to 0 if you don't.])
561 dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version])
562 AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])
564 # iconv.m4 serial AM4 (gettext-0.11.3)
565 dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
566 dnl This file is free software; the Free Software Foundation
567 dnl gives unlimited permission to copy and/or distribute it,
568 dnl with or without modifications, as long as this notice is preserved.
570 dnl From Bruno Haible.
572 AC_DEFUN([AM_ICONV_LINKFLAGS_BODY],
574 dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
575 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
576 AC_REQUIRE([AC_LIB_RPATH])
578 dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
580 AC_LIB_LINKFLAGS_BODY([iconv])
583 AC_DEFUN([AM_ICONV_LINK],
585 dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
586 dnl those with the standalone portable GNU libiconv installed).
588 dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
590 AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
592 dnl Add $INCICONV to CPPFLAGS before performing the following checks,
593 dnl because if the user has installed libiconv and not disabled its use
594 dnl via --without-libiconv-prefix, he wants to use it. The first
595 dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed.
596 am_save_CPPFLAGS="$CPPFLAGS"
597 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV])
599 AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [
600 am_cv_func_iconv="no, consider installing GNU libiconv"
602 AC_TRY_LINK([#include <stdlib.h>
604 [iconv_t cd = iconv_open("","");
605 iconv(cd,NULL,NULL,NULL,NULL);
607 am_cv_func_iconv=yes)
608 if test "$am_cv_func_iconv" != yes; then
610 LIBS="$LIBS $LIBICONV"
611 AC_TRY_LINK([#include <stdlib.h>
613 [iconv_t cd = iconv_open("","");
614 iconv(cd,NULL,NULL,NULL,NULL);
617 am_cv_func_iconv=yes)
621 if test "$am_cv_func_iconv" = yes; then
622 AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.])
624 if test "$am_cv_lib_iconv" = yes; then
625 AC_MSG_CHECKING([how to link with libiconv])
626 AC_MSG_RESULT([$LIBICONV])
628 dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV
630 CPPFLAGS="$am_save_CPPFLAGS"
641 if test "$am_cv_func_iconv" = yes; then
642 AC_MSG_CHECKING([for iconv declaration])
643 AC_CACHE_VAL(am_cv_proto_iconv, [
651 #if defined(__STDC__) || defined(__cplusplus)
652 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
656 ], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const")
657 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);"])
658 am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
659 AC_MSG_RESULT([$]{ac_t:-
660 }[$]am_cv_proto_iconv)
661 AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1,
662 [Define as const if the declaration of iconv() needs const.])
666 # lib-ld.m4 serial 3 (gettext-0.13)
667 dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
668 dnl This file is free software; the Free Software Foundation
669 dnl gives unlimited permission to copy and/or distribute it,
670 dnl with or without modifications, as long as this notice is preserved.
672 dnl Subroutines of libtool.m4,
673 dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
676 dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
677 AC_DEFUN([AC_LIB_PROG_LD_GNU],
678 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
679 [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
680 case `$LD -v 2>&1 </dev/null` in
681 *GNU* | *'with BFD'*)
682 acl_cv_prog_gnu_ld=yes ;;
684 acl_cv_prog_gnu_ld=no ;;
686 with_gnu_ld=$acl_cv_prog_gnu_ld
689 dnl From libtool-1.4. Sets the variable LD.
690 AC_DEFUN([AC_LIB_PROG_LD],
692 [ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
693 test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
694 AC_REQUIRE([AC_PROG_CC])dnl
695 AC_REQUIRE([AC_CANONICAL_HOST])dnl
696 # Prepare PATH_SEPARATOR.
697 # The user is always right.
698 if test "${PATH_SEPARATOR+set}" != set; then
699 echo "#! /bin/sh" >conf$$.sh
700 echo "exit 0" >>conf$$.sh
702 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
710 if test "$GCC" = yes; then
711 # Check if gcc -print-prog-name=ld gives a path.
712 AC_MSG_CHECKING([for ld used by GCC])
715 # gcc leaves a trailing carriage return which upsets mingw
716 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
718 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
721 # Accept absolute paths.
722 [[\\/]* | [A-Za-z]:[\\/]*)]
723 [re_direlt='/[^/][^/]*/\.\./']
724 # Canonicalize the path of ld
725 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
726 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
727 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
729 test -z "$LD" && LD="$ac_prog"
732 # If it fails, then pretend we aren't using GCC.
736 # If it is relative, then search for the first ld in PATH.
740 elif test "$with_gnu_ld" = yes; then
741 AC_MSG_CHECKING([for GNU ld])
743 AC_MSG_CHECKING([for non-GNU ld])
745 AC_CACHE_VAL(acl_cv_path_LD,
746 [if test -z "$LD"; then
747 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
748 for ac_dir in $PATH; do
749 test -z "$ac_dir" && ac_dir=.
750 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
751 acl_cv_path_LD="$ac_dir/$ac_prog"
752 # Check to see if the program is GNU ld. I'd rather use --version,
753 # but apparently some GNU ld's only accept -v.
754 # Break only if it was the GNU/non-GNU ld that we prefer.
755 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
756 *GNU* | *'with BFD'*)
757 test "$with_gnu_ld" != no && break ;;
759 test "$with_gnu_ld" != yes && break ;;
765 acl_cv_path_LD="$LD" # Let the user override the test with a path.
768 if test -n "$LD"; then
773 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
777 # lib-link.m4 serial 6 (gettext-0.14.3)
778 dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
779 dnl This file is free software; the Free Software Foundation
780 dnl gives unlimited permission to copy and/or distribute it,
781 dnl with or without modifications, as long as this notice is preserved.
783 dnl From Bruno Haible.
787 dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
788 dnl the libraries corresponding to explicit and implicit dependencies.
789 dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
790 dnl augments the CPPFLAGS variable.
791 AC_DEFUN([AC_LIB_LINKFLAGS],
793 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
794 AC_REQUIRE([AC_LIB_RPATH])
795 define([Name],[translit([$1],[./-], [___])])
796 define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
797 [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
798 AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
799 AC_LIB_LINKFLAGS_BODY([$1], [$2])
800 ac_cv_lib[]Name[]_libs="$LIB[]NAME"
801 ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
802 ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
804 LIB[]NAME="$ac_cv_lib[]Name[]_libs"
805 LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
806 INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
807 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
809 AC_SUBST([LTLIB]NAME)
810 dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
811 dnl results of this search when this library appears as a dependency.
817 dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode)
818 dnl searches for libname and the libraries corresponding to explicit and
819 dnl implicit dependencies, together with the specified include files and
820 dnl the ability to compile and link the specified testcode. If found, it
821 dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and
822 dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and
823 dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
824 dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
825 AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
827 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
828 AC_REQUIRE([AC_LIB_RPATH])
829 define([Name],[translit([$1],[./-], [___])])
830 define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
831 [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
833 dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
835 AC_LIB_LINKFLAGS_BODY([$1], [$2])
837 dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
838 dnl because if the user has installed lib[]Name and not disabled its use
839 dnl via --without-lib[]Name-prefix, he wants to use it.
840 ac_save_CPPFLAGS="$CPPFLAGS"
841 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
843 AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
845 LIBS="$LIBS $LIB[]NAME"
846 AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no])
849 if test "$ac_cv_lib[]Name" = yes; then
851 AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.])
852 AC_MSG_CHECKING([how to link with lib[]$1])
853 AC_MSG_RESULT([$LIB[]NAME])
856 dnl If $LIB[]NAME didn't lead to a usable library, we don't need
857 dnl $INC[]NAME either.
858 CPPFLAGS="$ac_save_CPPFLAGS"
862 AC_SUBST([HAVE_LIB]NAME)
864 AC_SUBST([LTLIB]NAME)
869 dnl Determine the platform dependent parameters needed to use rpath:
870 dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator,
871 dnl hardcode_direct, hardcode_minus_L.
872 AC_DEFUN([AC_LIB_RPATH],
874 dnl Tell automake >= 1.10 to complain if config.rpath is missing.
875 m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
876 AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS
877 AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld
878 AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host
879 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
880 AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [
881 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
882 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
888 libext="$acl_cv_libext"
889 shlibext="$acl_cv_shlibext"
890 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
891 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
892 hardcode_direct="$acl_cv_hardcode_direct"
893 hardcode_minus_L="$acl_cv_hardcode_minus_L"
894 dnl Determine whether the user wants rpath handling at all.
896 [ --disable-rpath do not hardcode runtime library paths],
900 dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
901 dnl the libraries corresponding to explicit and implicit dependencies.
902 dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
903 AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
905 define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
906 [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
907 dnl By default, look in $includedir and $libdir.
909 AC_LIB_WITH_FINAL_PREFIX([
910 eval additional_includedir=\"$includedir\"
911 eval additional_libdir=\"$libdir\"
913 AC_LIB_ARG_WITH([lib$1-prefix],
914 [ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib
915 --without-lib$1-prefix don't search for lib$1 in includedir and libdir],
917 if test "X$withval" = "Xno"; then
920 if test "X$withval" = "X"; then
921 AC_LIB_WITH_FINAL_PREFIX([
922 eval additional_includedir=\"$includedir\"
923 eval additional_libdir=\"$libdir\"
926 additional_includedir="$withval/include"
927 additional_libdir="$withval/lib"
931 dnl Search the library and its dependencies in $additional_libdir and
932 dnl $LDFLAGS. Using breadth-first-seach.
938 names_already_handled=
939 names_next_round='$1 $2'
940 while test -n "$names_next_round"; do
941 names_this_round="$names_next_round"
943 for name in $names_this_round; do
945 for n in $names_already_handled; do
946 if test "$n" = "$name"; then
951 if test -z "$already_handled"; then
952 names_already_handled="$names_already_handled $name"
953 dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
954 dnl or AC_LIB_HAVE_LINKFLAGS call.
955 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
956 eval value=\"\$HAVE_LIB$uppername\"
957 if test -n "$value"; then
958 if test "$value" = yes; then
959 eval value=\"\$LIB$uppername\"
960 test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
961 eval value=\"\$LTLIB$uppername\"
962 test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
964 dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
965 dnl that this library doesn't exist. So just drop it.
969 dnl Search the library lib$name in $additional_libdir and $LDFLAGS
970 dnl and the already constructed $LIBNAME/$LTLIBNAME.
975 if test $use_additional = yes; then
976 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
977 found_dir="$additional_libdir"
978 found_so="$additional_libdir/lib$name.$shlibext"
979 if test -f "$additional_libdir/lib$name.la"; then
980 found_la="$additional_libdir/lib$name.la"
983 if test -f "$additional_libdir/lib$name.$libext"; then
984 found_dir="$additional_libdir"
985 found_a="$additional_libdir/lib$name.$libext"
986 if test -f "$additional_libdir/lib$name.la"; then
987 found_la="$additional_libdir/lib$name.la"
992 if test "X$found_dir" = "X"; then
993 for x in $LDFLAGS $LTLIB[]NAME; do
994 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
997 dir=`echo "X$x" | sed -e 's/^X-L//'`
998 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
1000 found_so="$dir/lib$name.$shlibext"
1001 if test -f "$dir/lib$name.la"; then
1002 found_la="$dir/lib$name.la"
1005 if test -f "$dir/lib$name.$libext"; then
1007 found_a="$dir/lib$name.$libext"
1008 if test -f "$dir/lib$name.la"; then
1009 found_la="$dir/lib$name.la"
1015 if test "X$found_dir" != "X"; then
1020 if test "X$found_dir" != "X"; then
1021 dnl Found the library.
1022 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
1023 if test "X$found_so" != "X"; then
1024 dnl Linking with a shared library. We attempt to hardcode its
1025 dnl directory into the executable's runpath, unless it's the
1026 dnl standard /usr/lib.
1027 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
1028 dnl No hardcoding is needed.
1029 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
1031 dnl Use an explicit option to hardcode DIR into the resulting
1033 dnl Potentially add DIR to ltrpathdirs.
1034 dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
1036 for x in $ltrpathdirs; do
1037 if test "X$x" = "X$found_dir"; then
1042 if test -z "$haveit"; then
1043 ltrpathdirs="$ltrpathdirs $found_dir"
1045 dnl The hardcoding into $LIBNAME is system dependent.
1046 if test "$hardcode_direct" = yes; then
1047 dnl Using DIR/libNAME.so during linking hardcodes DIR into the
1048 dnl resulting binary.
1049 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
1051 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
1052 dnl Use an explicit option to hardcode DIR into the resulting
1054 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
1055 dnl Potentially add DIR to rpathdirs.
1056 dnl The rpathdirs will be appended to $LIBNAME at the end.
1058 for x in $rpathdirs; do
1059 if test "X$x" = "X$found_dir"; then
1064 if test -z "$haveit"; then
1065 rpathdirs="$rpathdirs $found_dir"
1068 dnl Rely on "-L$found_dir".
1069 dnl But don't add it if it's already contained in the LDFLAGS
1070 dnl or the already constructed $LIBNAME
1072 for x in $LDFLAGS $LIB[]NAME; do
1073 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1074 if test "X$x" = "X-L$found_dir"; then
1079 if test -z "$haveit"; then
1080 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
1082 if test "$hardcode_minus_L" != no; then
1083 dnl FIXME: Not sure whether we should use
1084 dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
1086 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
1088 dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH
1089 dnl here, because this doesn't fit in flags passed to the
1090 dnl compiler. So give up. No hardcoding. This affects only
1091 dnl very old systems.
1092 dnl FIXME: Not sure whether we should use
1093 dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
1095 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
1101 if test "X$found_a" != "X"; then
1102 dnl Linking with a static library.
1103 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
1105 dnl We shouldn't come here, but anyway it's good to have a
1107 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
1110 dnl Assume the include files are nearby.
1111 additional_includedir=
1112 case "$found_dir" in
1114 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
1115 additional_includedir="$basedir/include"
1118 if test "X$additional_includedir" != "X"; then
1119 dnl Potentially add $additional_includedir to $INCNAME.
1120 dnl But don't add it
1121 dnl 1. if it's the standard /usr/include,
1122 dnl 2. if it's /usr/local/include and we are using GCC on Linux,
1123 dnl 3. if it's already present in $CPPFLAGS or the already
1124 dnl constructed $INCNAME,
1125 dnl 4. if it doesn't exist as a directory.
1126 if test "X$additional_includedir" != "X/usr/include"; then
1128 if test "X$additional_includedir" = "X/usr/local/include"; then
1129 if test -n "$GCC"; then
1131 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
1135 if test -z "$haveit"; then
1136 for x in $CPPFLAGS $INC[]NAME; do
1137 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1138 if test "X$x" = "X-I$additional_includedir"; then
1143 if test -z "$haveit"; then
1144 if test -d "$additional_includedir"; then
1145 dnl Really add $additional_includedir to $INCNAME.
1146 INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
1152 dnl Look for dependencies.
1153 if test -n "$found_la"; then
1154 dnl Read the .la file. It defines the variables
1155 dnl dlname, library_names, old_library, dependency_libs, current,
1156 dnl age, revision, installed, dlopen, dlpreopen, libdir.
1157 save_libdir="$libdir"
1159 */* | *\\*) . "$found_la" ;;
1160 *) . "./$found_la" ;;
1162 libdir="$save_libdir"
1163 dnl We use only dependency_libs.
1164 for dep in $dependency_libs; do
1167 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
1168 dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
1169 dnl But don't add it
1170 dnl 1. if it's the standard /usr/lib,
1171 dnl 2. if it's /usr/local/lib and we are using GCC on Linux,
1172 dnl 3. if it's already present in $LDFLAGS or the already
1173 dnl constructed $LIBNAME,
1174 dnl 4. if it doesn't exist as a directory.
1175 if test "X$additional_libdir" != "X/usr/lib"; then
1177 if test "X$additional_libdir" = "X/usr/local/lib"; then
1178 if test -n "$GCC"; then
1180 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
1184 if test -z "$haveit"; then
1186 for x in $LDFLAGS $LIB[]NAME; do
1187 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1188 if test "X$x" = "X-L$additional_libdir"; then
1193 if test -z "$haveit"; then
1194 if test -d "$additional_libdir"; then
1195 dnl Really add $additional_libdir to $LIBNAME.
1196 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
1200 for x in $LDFLAGS $LTLIB[]NAME; do
1201 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1202 if test "X$x" = "X-L$additional_libdir"; then
1207 if test -z "$haveit"; then
1208 if test -d "$additional_libdir"; then
1209 dnl Really add $additional_libdir to $LTLIBNAME.
1210 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
1217 dir=`echo "X$dep" | sed -e 's/^X-R//'`
1218 if test "$enable_rpath" != no; then
1219 dnl Potentially add DIR to rpathdirs.
1220 dnl The rpathdirs will be appended to $LIBNAME at the end.
1222 for x in $rpathdirs; do
1223 if test "X$x" = "X$dir"; then
1228 if test -z "$haveit"; then
1229 rpathdirs="$rpathdirs $dir"
1231 dnl Potentially add DIR to ltrpathdirs.
1232 dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
1234 for x in $ltrpathdirs; do
1235 if test "X$x" = "X$dir"; then
1240 if test -z "$haveit"; then
1241 ltrpathdirs="$ltrpathdirs $dir"
1246 dnl Handle this in the next round.
1247 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
1250 dnl Handle this in the next round. Throw away the .la's
1251 dnl directory; it is already contained in a preceding -L
1253 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
1256 dnl Most likely an immediate library name.
1257 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
1258 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
1264 dnl Didn't find the library; assume it is in the system directories
1265 dnl known to the linker and runtime loader. (All the system
1266 dnl directories known to the linker should also be known to the
1267 dnl runtime loader, otherwise the system is severely misconfigured.)
1268 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
1269 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
1275 if test "X$rpathdirs" != "X"; then
1276 if test -n "$hardcode_libdir_separator"; then
1277 dnl Weird platform: only the last -rpath option counts, the user must
1278 dnl pass all path elements in one option. We can arrange that for a
1279 dnl single library, but not when more than one $LIBNAMEs are used.
1281 for found_dir in $rpathdirs; do
1282 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
1284 dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl.
1285 acl_save_libdir="$libdir"
1287 eval flag=\"$hardcode_libdir_flag_spec\"
1288 libdir="$acl_save_libdir"
1289 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
1291 dnl The -rpath options are cumulative.
1292 for found_dir in $rpathdirs; do
1293 acl_save_libdir="$libdir"
1295 eval flag=\"$hardcode_libdir_flag_spec\"
1296 libdir="$acl_save_libdir"
1297 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
1301 if test "X$ltrpathdirs" != "X"; then
1302 dnl When using libtool, the option that works for both libraries and
1303 dnl executables is -R. The -R options are cumulative.
1304 for found_dir in $ltrpathdirs; do
1305 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
1310 dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
1311 dnl unless already present in VAR.
1312 dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
1313 dnl contains two or three consecutive elements that belong together.
1314 AC_DEFUN([AC_LIB_APPENDTOVAR],
1316 for element in [$2]; do
1319 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1320 if test "X$x" = "X$element"; then
1325 if test -z "$haveit"; then
1326 [$1]="${[$1]}${[$1]:+ }$element"
1331 # lib-prefix.m4 serial 4 (gettext-0.14.2)
1332 dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
1333 dnl This file is free software; the Free Software Foundation
1334 dnl gives unlimited permission to copy and/or distribute it,
1335 dnl with or without modifications, as long as this notice is preserved.
1337 dnl From Bruno Haible.
1339 dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
1340 dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
1341 dnl require excessive bracketing.
1342 ifdef([AC_HELP_STRING],
1343 [AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
1344 [AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
1346 dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
1347 dnl to access previously installed libraries. The basic assumption is that
1348 dnl a user will want packages to use other packages he previously installed
1349 dnl with the same --prefix option.
1350 dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
1351 dnl libraries, but is otherwise very convenient.
1352 AC_DEFUN([AC_LIB_PREFIX],
1354 AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
1355 AC_REQUIRE([AC_PROG_CC])
1356 AC_REQUIRE([AC_CANONICAL_HOST])
1357 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
1358 dnl By default, look in $includedir and $libdir.
1360 AC_LIB_WITH_FINAL_PREFIX([
1361 eval additional_includedir=\"$includedir\"
1362 eval additional_libdir=\"$libdir\"
1364 AC_LIB_ARG_WITH([lib-prefix],
1365 [ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
1366 --without-lib-prefix don't search for libraries in includedir and libdir],
1368 if test "X$withval" = "Xno"; then
1371 if test "X$withval" = "X"; then
1372 AC_LIB_WITH_FINAL_PREFIX([
1373 eval additional_includedir=\"$includedir\"
1374 eval additional_libdir=\"$libdir\"
1377 additional_includedir="$withval/include"
1378 additional_libdir="$withval/lib"
1382 if test $use_additional = yes; then
1383 dnl Potentially add $additional_includedir to $CPPFLAGS.
1384 dnl But don't add it
1385 dnl 1. if it's the standard /usr/include,
1386 dnl 2. if it's already present in $CPPFLAGS,
1387 dnl 3. if it's /usr/local/include and we are using GCC on Linux,
1388 dnl 4. if it doesn't exist as a directory.
1389 if test "X$additional_includedir" != "X/usr/include"; then
1391 for x in $CPPFLAGS; do
1392 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1393 if test "X$x" = "X-I$additional_includedir"; then
1398 if test -z "$haveit"; then
1399 if test "X$additional_includedir" = "X/usr/local/include"; then
1400 if test -n "$GCC"; then
1402 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
1406 if test -z "$haveit"; then
1407 if test -d "$additional_includedir"; then
1408 dnl Really add $additional_includedir to $CPPFLAGS.
1409 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
1414 dnl Potentially add $additional_libdir to $LDFLAGS.
1415 dnl But don't add it
1416 dnl 1. if it's the standard /usr/lib,
1417 dnl 2. if it's already present in $LDFLAGS,
1418 dnl 3. if it's /usr/local/lib and we are using GCC on Linux,
1419 dnl 4. if it doesn't exist as a directory.
1420 if test "X$additional_libdir" != "X/usr/lib"; then
1422 for x in $LDFLAGS; do
1423 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1424 if test "X$x" = "X-L$additional_libdir"; then
1429 if test -z "$haveit"; then
1430 if test "X$additional_libdir" = "X/usr/local/lib"; then
1431 if test -n "$GCC"; then
1433 linux*) haveit=yes;;
1437 if test -z "$haveit"; then
1438 if test -d "$additional_libdir"; then
1439 dnl Really add $additional_libdir to $LDFLAGS.
1440 LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
1448 dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
1449 dnl acl_final_exec_prefix, containing the values to which $prefix and
1450 dnl $exec_prefix will expand at the end of the configure script.
1451 AC_DEFUN([AC_LIB_PREPARE_PREFIX],
1453 dnl Unfortunately, prefix and exec_prefix get only finally determined
1454 dnl at the end of configure.
1455 if test "X$prefix" = "XNONE"; then
1456 acl_final_prefix="$ac_default_prefix"
1458 acl_final_prefix="$prefix"
1460 if test "X$exec_prefix" = "XNONE"; then
1461 acl_final_exec_prefix='${prefix}'
1463 acl_final_exec_prefix="$exec_prefix"
1465 acl_save_prefix="$prefix"
1466 prefix="$acl_final_prefix"
1467 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
1468 prefix="$acl_save_prefix"
1471 dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
1472 dnl variables prefix and exec_prefix bound to the values they will have
1473 dnl at the end of the configure script.
1474 AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
1476 acl_save_prefix="$prefix"
1477 prefix="$acl_final_prefix"
1478 acl_save_exec_prefix="$exec_prefix"
1479 exec_prefix="$acl_final_exec_prefix"
1481 exec_prefix="$acl_save_exec_prefix"
1482 prefix="$acl_save_prefix"
1485 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1487 # serial 48 AC_PROG_LIBTOOL
1490 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
1491 # -----------------------------------------------------------
1492 # If this macro is not defined by Autoconf, define it here.
1493 m4_ifdef([AC_PROVIDE_IFELSE],
1495 [m4_define([AC_PROVIDE_IFELSE],
1496 [m4_ifdef([AC_PROVIDE_$1],
1502 AC_DEFUN([AC_PROG_LIBTOOL],
1503 [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
1504 dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
1505 dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
1506 AC_PROVIDE_IFELSE([AC_PROG_CXX],
1508 [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
1510 dnl And a similar setup for Fortran 77 support
1511 AC_PROVIDE_IFELSE([AC_PROG_F77],
1513 [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
1516 dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
1517 dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
1518 dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
1519 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1521 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1523 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
1525 [ifdef([AC_PROG_GCJ],
1526 [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
1527 ifdef([A][M_PROG_GCJ],
1528 [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
1529 ifdef([LT_AC_PROG_GCJ],
1530 [define([LT_AC_PROG_GCJ],
1531 defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
1532 ])])# AC_PROG_LIBTOOL
1537 AC_DEFUN([_AC_PROG_LIBTOOL],
1538 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
1539 AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
1540 AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
1541 AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
1543 # This can be used to rebuild libtool when needed
1544 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
1546 # Always use our own libtool.
1547 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1548 AC_SUBST(LIBTOOL)dnl
1550 # Prevent multiple expansion
1551 define([AC_PROG_LIBTOOL], [])
1552 ])# _AC_PROG_LIBTOOL
1557 AC_DEFUN([AC_LIBTOOL_SETUP],
1559 AC_REQUIRE([AC_ENABLE_SHARED])dnl
1560 AC_REQUIRE([AC_ENABLE_STATIC])dnl
1561 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
1562 AC_REQUIRE([AC_CANONICAL_HOST])dnl
1563 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
1564 AC_REQUIRE([AC_PROG_CC])dnl
1565 AC_REQUIRE([AC_PROG_LD])dnl
1566 AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
1567 AC_REQUIRE([AC_PROG_NM])dnl
1569 AC_REQUIRE([AC_PROG_LN_S])dnl
1570 AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
1571 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1572 AC_REQUIRE([AC_OBJEXT])dnl
1573 AC_REQUIRE([AC_EXEEXT])dnl
1576 AC_LIBTOOL_SYS_MAX_CMD_LEN
1577 AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1580 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1581 _LT_AC_PROG_ECHO_BACKSLASH
1585 # AIX sometimes has problems with the GCC collect2 program. For some
1586 # reason, if we set the COLLECT_NAMES environment variable, the problems
1587 # vanish in a puff of smoke.
1588 if test "X${COLLECT_NAMES+set}" != Xset; then
1590 export COLLECT_NAMES
1595 # Sed substitution that helps us do robust quoting. It backslashifies
1596 # metacharacters that are still active within double-quoted strings.
1597 Xsed='sed -e 1s/^X//'
1598 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
1600 # Same as above, but do not quote variable references.
1601 [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
1603 # Sed substitution to delay expansion of an escaped shell variable in a
1604 # double_quote_subst'ed string.
1605 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1607 # Sed substitution to avoid accidental globbing in evaled expressions
1608 no_glob_subst='s/\*/\\\*/g'
1614 default_ofile=libtool
1615 can_build_shared=yes
1617 # All known linkers require a `.a' archive for static linking (except MSVC,
1618 # which needs '.lib').
1620 ltmain="$ac_aux_dir/ltmain.sh"
1621 ofile="$default_ofile"
1622 with_gnu_ld="$lt_cv_prog_gnu_ld"
1624 AC_CHECK_TOOL(AR, ar, false)
1625 AC_CHECK_TOOL(RANLIB, ranlib, :)
1626 AC_CHECK_TOOL(STRIP, strip, :)
1629 old_CFLAGS="$CFLAGS"
1631 # Set sane defaults for various variables
1632 test -z "$AR" && AR=ar
1633 test -z "$AR_FLAGS" && AR_FLAGS=cru
1634 test -z "$AS" && AS=as
1635 test -z "$CC" && CC=cc
1636 test -z "$LTCC" && LTCC=$CC
1637 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
1638 test -z "$DLLTOOL" && DLLTOOL=dlltool
1639 test -z "$LD" && LD=ld
1640 test -z "$LN_S" && LN_S="ln -s"
1641 test -z "$MAGIC_CMD" && MAGIC_CMD=file
1642 test -z "$NM" && NM=nm
1643 test -z "$SED" && SED=sed
1644 test -z "$OBJDUMP" && OBJDUMP=objdump
1645 test -z "$RANLIB" && RANLIB=:
1646 test -z "$STRIP" && STRIP=:
1647 test -z "$ac_objext" && ac_objext=o
1649 # Determine commands to create old-style static archives.
1650 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
1651 old_postinstall_cmds='chmod 644 $oldlib'
1652 old_postuninstall_cmds=
1654 if test -n "$RANLIB"; then
1657 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1660 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1663 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1666 _LT_CC_BASENAME([$compiler])
1668 # Only perform the check for file, if the check method requires it
1669 case $deplibs_check_method in
1671 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1677 AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
1678 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1679 enable_win32_dll=yes, enable_win32_dll=no)
1681 AC_ARG_ENABLE([libtool-lock],
1682 [AC_HELP_STRING([--disable-libtool-lock],
1683 [avoid locking (might break parallel builds)])])
1684 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1687 [AC_HELP_STRING([--with-pic],
1688 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
1689 [pic_mode="$withval"],
1691 test -z "$pic_mode" && pic_mode=default
1693 # Use C for the default configuration in the libtool script
1695 AC_LIBTOOL_LANG_C_CONFIG
1697 ])# AC_LIBTOOL_SETUP
1700 # _LT_AC_SYS_COMPILER
1701 # -------------------
1702 AC_DEFUN([_LT_AC_SYS_COMPILER],
1703 [AC_REQUIRE([AC_PROG_CC])dnl
1705 # If no C compiler was specified, use CC.
1708 # If no C compiler flags were specified, use CFLAGS.
1709 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1711 # Allow CC to be a program name with arguments.
1713 ])# _LT_AC_SYS_COMPILER
1716 # _LT_CC_BASENAME(CC)
1717 # -------------------
1718 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
1719 AC_DEFUN([_LT_CC_BASENAME],
1720 [for cc_temp in $1""; do
1722 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
1723 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
1728 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1732 # _LT_COMPILER_BOILERPLATE
1733 # ------------------------
1734 # Check for compiler boilerplate output or warnings with
1735 # the simple compiler test code.
1736 AC_DEFUN([_LT_COMPILER_BOILERPLATE],
1737 [ac_outfile=conftest.$ac_objext
1738 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
1739 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1740 _lt_compiler_boilerplate=`cat conftest.err`
1742 ])# _LT_COMPILER_BOILERPLATE
1745 # _LT_LINKER_BOILERPLATE
1746 # ----------------------
1747 # Check for linker boilerplate output or warnings with
1748 # the simple link test code.
1749 AC_DEFUN([_LT_LINKER_BOILERPLATE],
1750 [ac_outfile=conftest.$ac_objext
1751 printf "$lt_simple_link_test_code" >conftest.$ac_ext
1752 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1753 _lt_linker_boilerplate=`cat conftest.err`
1755 ])# _LT_LINKER_BOILERPLATE
1758 # _LT_AC_SYS_LIBPATH_AIX
1759 # ----------------------
1760 # Links a minimal program and checks the executable
1761 # for the system default hardcoded library path. In most cases,
1762 # this is /usr/lib:/lib, but when the MPI compilers are used
1763 # the location of the communication and MPI libs are included too.
1764 # If we don't find anything, use the default library path according
1765 # to the aix ld manual.
1766 AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
1767 [AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1768 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1770 # Check for a 64-bit object if we didn't find anything.
1771 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1773 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1774 ])# _LT_AC_SYS_LIBPATH_AIX
1777 # _LT_AC_SHELL_INIT(ARG)
1778 # ----------------------
1779 AC_DEFUN([_LT_AC_SHELL_INIT],
1780 [ifdef([AC_DIVERSION_NOTICE],
1781 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1782 [AC_DIVERT_PUSH(NOTICE)])
1785 ])# _LT_AC_SHELL_INIT
1788 # _LT_AC_PROG_ECHO_BACKSLASH
1789 # --------------------------
1790 # Add some code to the start of the generated configure script which
1791 # will find an echo command which doesn't interpret backslashes.
1792 AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
1793 [_LT_AC_SHELL_INIT([
1794 # Check that we are running under the correct shell.
1795 SHELL=${CONFIG_SHELL-/bin/sh}
1799 # Remove one level of quotation (which was required for Make).
1800 ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1805 if test "X[$]1" = X--no-reexec; then
1806 # Discard the --no-reexec flag, and continue.
1808 elif test "X[$]1" = X--fallback-echo; then
1809 # Avoid inline document here, it may be left over
1811 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
1812 # Yippee, $echo works!
1815 # Restart under the correct shell.
1816 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1819 if test "X[$]1" = X--fallback-echo; then
1820 # used as fallback echo
1828 # The HP-UX ksh and POSIX shell print the target directory to stdout
1830 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1832 if test -z "$ECHO"; then
1833 if test "X${echo_test_string+set}" != Xset; then
1834 # find a string as large as possible, as long as the shell can cope with it
1835 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1836 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1837 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
1838 echo_test_string=`eval $cmd` &&
1839 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
1846 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1847 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1848 test "X$echo_testing_string" = "X$echo_test_string"; then
1851 # The Solaris, AIX, and Digital Unix default echo programs unquote
1852 # backslashes. This makes it impossible to quote backslashes using
1853 # echo "$something" | sed 's/\\/\\\\/g'
1855 # So, first we look for a working echo in the user's PATH.
1857 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1858 for dir in $PATH /usr/ucb; do
1860 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1861 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1862 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1863 test "X$echo_testing_string" = "X$echo_test_string"; then
1870 if test "X$echo" = Xecho; then
1871 # We didn't find a better echo, so look for alternatives.
1872 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
1873 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
1874 test "X$echo_testing_string" = "X$echo_test_string"; then
1875 # This shell has a builtin print -r that does the trick.
1877 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
1878 test "X$CONFIG_SHELL" != X/bin/ksh; then
1879 # If we have ksh, try running configure again with it.
1880 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1881 export ORIGINAL_CONFIG_SHELL
1882 CONFIG_SHELL=/bin/ksh
1884 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1888 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1889 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1890 test "X$echo_testing_string" = "X$echo_test_string"; then
1891 # Cool, printf works
1893 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1894 test "X$echo_testing_string" = 'X\t' &&
1895 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1896 test "X$echo_testing_string" = "X$echo_test_string"; then
1897 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1899 SHELL="$CONFIG_SHELL"
1901 echo="$CONFIG_SHELL [$]0 --fallback-echo"
1902 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1903 test "X$echo_testing_string" = 'X\t' &&
1904 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1905 test "X$echo_testing_string" = "X$echo_test_string"; then
1906 echo="$CONFIG_SHELL [$]0 --fallback-echo"
1908 # maybe with a smaller string...
1911 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1912 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
1919 if test "$prev" != 'sed 50q "[$]0"'; then
1920 echo_test_string=`eval $prev`
1921 export echo_test_string
1922 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1924 # Oops. We lost completely, so just stick with echo.
1933 # Copy echo and quote the copy suitably for passing to libtool from
1934 # the Makefile, instead of quoting the original, which is used later.
1936 if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1937 ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1941 ])])# _LT_AC_PROG_ECHO_BACKSLASH
1946 AC_DEFUN([_LT_AC_LOCK],
1947 [AC_ARG_ENABLE([libtool-lock],
1948 [AC_HELP_STRING([--disable-libtool-lock],
1949 [avoid locking (might break parallel builds)])])
1950 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1952 # Some flags need to be propagated to the compiler or linker for good
1956 # Find out which ABI we are using.
1957 echo 'int i;' > conftest.$ac_ext
1958 if AC_TRY_EVAL(ac_compile); then
1959 case `/usr/bin/file conftest.$ac_objext` in
1971 # Find out which ABI we are using.
1972 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1973 if AC_TRY_EVAL(ac_compile); then
1974 if test "$lt_cv_prog_gnu_ld" = yes; then
1975 case `/usr/bin/file conftest.$ac_objext` in
1977 LD="${LD-ld} -melf32bsmip"
1980 LD="${LD-ld} -melf32bmipn32"
1983 LD="${LD-ld} -melf64bmip"
1987 case `/usr/bin/file conftest.$ac_objext` in
2003 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2004 # Find out which ABI we are using.
2005 echo 'int i;' > conftest.$ac_ext
2006 if AC_TRY_EVAL(ac_compile); then
2007 case `/usr/bin/file conftest.o` in
2011 LD="${LD-ld} -m elf_i386"
2013 ppc64-*linux*|powerpc64-*linux*)
2014 LD="${LD-ld} -m elf32ppclinux"
2017 LD="${LD-ld} -m elf_s390"
2020 LD="${LD-ld} -m elf32_sparc"
2027 LD="${LD-ld} -m elf_x86_64"
2029 ppc*-*linux*|powerpc*-*linux*)
2030 LD="${LD-ld} -m elf64ppc"
2033 LD="${LD-ld} -m elf64_s390"
2036 LD="${LD-ld} -m elf64_sparc"
2046 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2047 SAVE_CFLAGS="$CFLAGS"
2048 CFLAGS="$CFLAGS -belf"
2049 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
2051 AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
2053 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2054 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2055 CFLAGS="$SAVE_CFLAGS"
2059 # Find out which ABI we are using.
2060 echo 'int i;' > conftest.$ac_ext
2061 if AC_TRY_EVAL(ac_compile); then
2062 case `/usr/bin/file conftest.o` in
2064 case $lt_cv_prog_gnu_ld in
2065 yes*) LD="${LD-ld} -m elf64_sparc" ;;
2066 *) LD="${LD-ld} -64" ;;
2074 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
2075 [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
2076 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
2077 AC_CHECK_TOOL(AS, as, false)
2078 AC_CHECK_TOOL(OBJDUMP, objdump, false)
2083 need_locks="$enable_libtool_lock"
2088 # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2089 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2090 # ----------------------------------------------------------------
2091 # Check whether the given compiler option works
2092 AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
2093 [AC_REQUIRE([LT_AC_PROG_SED])
2094 AC_CACHE_CHECK([$1], [$2],
2096 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
2097 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
2098 lt_compiler_flag="$3"
2099 # Insert the option either (1) after the last *FLAGS variable, or
2100 # (2) before a word containing "conftest.", or (3) at the end.
2101 # Note that $ac_compile itself does not contain backslashes and begins
2102 # with a dollar sign (not a hyphen), so the echo should work correctly.
2103 # The option is referenced via a variable to avoid confusing sed.
2104 lt_compile=`echo "$ac_compile" | $SED \
2105 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2106 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2107 -e 's:$: $lt_compiler_flag:'`
2108 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2109 (eval "$lt_compile" 2>conftest.err)
2111 cat conftest.err >&AS_MESSAGE_LOG_FD
2112 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2113 if (exit $ac_status) && test -s "$ac_outfile"; then
2114 # The compiler can only warn and ignore the option if not recognized
2115 # So say no if there are warnings other than the usual output.
2116 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
2117 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2118 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
2125 if test x"[$]$2" = xyes; then
2126 ifelse([$5], , :, [$5])
2128 ifelse([$6], , :, [$6])
2130 ])# AC_LIBTOOL_COMPILER_OPTION
2133 # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2134 # [ACTION-SUCCESS], [ACTION-FAILURE])
2135 # ------------------------------------------------------------
2136 # Check whether the given compiler option works
2137 AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
2138 [AC_CACHE_CHECK([$1], [$2],
2140 save_LDFLAGS="$LDFLAGS"
2141 LDFLAGS="$LDFLAGS $3"
2142 printf "$lt_simple_link_test_code" > conftest.$ac_ext
2143 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
2144 # The linker can only warn and ignore the option if not recognized
2145 # So say no if there are warnings
2146 if test -s conftest.err; then
2147 # Append any errors to the config.log.
2148 cat conftest.err 1>&AS_MESSAGE_LOG_FD
2149 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
2150 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2151 if diff conftest.exp conftest.er2 >/dev/null; then
2159 LDFLAGS="$save_LDFLAGS"
2162 if test x"[$]$2" = xyes; then
2163 ifelse([$4], , :, [$4])
2165 ifelse([$5], , :, [$5])
2167 ])# AC_LIBTOOL_LINKER_OPTION
2170 # AC_LIBTOOL_SYS_MAX_CMD_LEN
2171 # --------------------------
2172 AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
2173 [# find the maximum length of command line arguments
2174 AC_MSG_CHECKING([the maximum length of command line arguments])
2175 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
2181 # On DJGPP, this test can blow up pretty badly due to problems in libc
2182 # (any single argument exceeding 2000 bytes causes a buffer overrun
2183 # during glob expansion). Even if it were fixed, the result of this
2184 # check would be larger than it should be.
2185 lt_cv_sys_max_cmd_len=12288; # 12K is about right
2189 # Under GNU Hurd, this test is not required because there is
2190 # no limit to the length of command line arguments.
2191 # Libtool will interpret -1 as no limit whatsoever
2192 lt_cv_sys_max_cmd_len=-1;
2196 # On Win9x/ME, this test blows up -- it succeeds, but takes
2197 # about 5 minutes as the teststring grows exponentially.
2198 # Worse, since 9x/ME are not pre-emptively multitasking,
2199 # you end up with a "frozen" computer, even though with patience
2200 # the test eventually succeeds (with a max line length of 256k).
2201 # Instead, let's just punt: use the minimum linelength reported by
2202 # all of the supported platforms: 8192 (on NT/2K/XP).
2203 lt_cv_sys_max_cmd_len=8192;
2207 # On AmigaOS with pdksh, this test takes hours, literally.
2208 # So we just punt and use a minimum line length of 8192.
2209 lt_cv_sys_max_cmd_len=8192;
2212 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
2213 # This has been around since 386BSD, at least. Likely further.
2214 if test -x /sbin/sysctl; then
2215 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
2216 elif test -x /usr/sbin/sysctl; then
2217 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
2219 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
2221 # And add a safety zone
2222 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2223 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2227 # We know the value 262144 and hardcode it with a safety zone (like BSD)
2228 lt_cv_sys_max_cmd_len=196608
2232 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
2233 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
2234 # nice to cause kernel panics so lets avoid the loop below.
2235 # First set a reasonable default.
2236 lt_cv_sys_max_cmd_len=16384
2238 if test -x /sbin/sysconfig; then
2239 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
2240 *1*) lt_cv_sys_max_cmd_len=-1 ;;
2245 lt_cv_sys_max_cmd_len=102400
2247 sysv5* | sco5v6* | sysv4.2uw2*)
2248 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
2249 if test -n "$kargmax"; then
2250 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
2252 lt_cv_sys_max_cmd_len=32768
2256 # If test is not a shell built-in, we'll probably end up computing a
2257 # maximum length that is only half of the actual maximum length, but
2259 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
2260 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
2261 = "XX$teststring") >/dev/null 2>&1 &&
2262 new_result=`expr "X$teststring" : ".*" 2>&1` &&
2263 lt_cv_sys_max_cmd_len=$new_result &&
2264 test $i != 17 # 1/2 MB should be enough
2267 teststring=$teststring$teststring
2270 # Add a significant safety factor because C++ compilers can tack on massive
2271 # amounts of additional arguments before passing them to the linker.
2272 # It appears as though 1/2 is a usable value.
2273 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
2277 if test -n $lt_cv_sys_max_cmd_len ; then
2278 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
2282 ])# AC_LIBTOOL_SYS_MAX_CMD_LEN
2285 # _LT_AC_CHECK_DLFCN
2286 # ------------------
2287 AC_DEFUN([_LT_AC_CHECK_DLFCN],
2288 [AC_CHECK_HEADERS(dlfcn.h)dnl
2289 ])# _LT_AC_CHECK_DLFCN
2292 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2293 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2294 # ---------------------------------------------------------------------
2295 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
2296 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
2297 if test "$cross_compiling" = yes; then :
2300 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2301 lt_status=$lt_dlunknown
2302 cat > conftest.$ac_ext <<EOF
2303 [#line __oline__ "configure"
2304 #include "confdefs.h"
2313 # define LT_DLGLOBAL RTLD_GLOBAL
2316 # define LT_DLGLOBAL DL_GLOBAL
2318 # define LT_DLGLOBAL 0
2322 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
2323 find out it does not work in some platform. */
2324 #ifndef LT_DLLAZY_OR_NOW
2326 # define LT_DLLAZY_OR_NOW RTLD_LAZY
2329 # define LT_DLLAZY_OR_NOW DL_LAZY
2332 # define LT_DLLAZY_OR_NOW RTLD_NOW
2335 # define LT_DLLAZY_OR_NOW DL_NOW
2337 # define LT_DLLAZY_OR_NOW 0
2345 extern "C" void exit (int);
2348 void fnord() { int i=42;}
2351 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2352 int status = $lt_dlunknown;
2356 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
2357 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
2358 /* dlclose (self); */
2366 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
2367 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
2370 x$lt_dlno_uscore) $1 ;;
2371 x$lt_dlneed_uscore) $2 ;;
2372 x$lt_dlunknown|x*) $3 ;;
2375 # compilation failed
2380 ])# _LT_AC_TRY_DLOPEN_SELF
2383 # AC_LIBTOOL_DLOPEN_SELF
2384 # ----------------------
2385 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
2386 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
2387 if test "x$enable_dlopen" != xyes; then
2388 enable_dlopen=unknown
2389 enable_dlopen_self=unknown
2390 enable_dlopen_self_static=unknown
2397 lt_cv_dlopen="load_add_on"
2399 lt_cv_dlopen_self=yes
2403 lt_cv_dlopen="LoadLibrary"
2408 lt_cv_dlopen="dlopen"
2413 # if libdl is installed we need to link against it
2414 AC_CHECK_LIB([dl], [dlopen],
2415 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
2418 lt_cv_dlopen_self=yes
2423 AC_CHECK_FUNC([shl_load],
2424 [lt_cv_dlopen="shl_load"],
2425 [AC_CHECK_LIB([dld], [shl_load],
2426 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
2427 [AC_CHECK_FUNC([dlopen],
2428 [lt_cv_dlopen="dlopen"],
2429 [AC_CHECK_LIB([dl], [dlopen],
2430 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
2431 [AC_CHECK_LIB([svld], [dlopen],
2432 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
2433 [AC_CHECK_LIB([dld], [dld_link],
2434 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
2443 if test "x$lt_cv_dlopen" != xno; then
2449 case $lt_cv_dlopen in
2451 save_CPPFLAGS="$CPPFLAGS"
2452 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2454 save_LDFLAGS="$LDFLAGS"
2455 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
2458 LIBS="$lt_cv_dlopen_libs $LIBS"
2460 AC_CACHE_CHECK([whether a program can dlopen itself],
2461 lt_cv_dlopen_self, [dnl
2462 _LT_AC_TRY_DLOPEN_SELF(
2463 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2464 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2467 if test "x$lt_cv_dlopen_self" = xyes; then
2468 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2469 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2470 lt_cv_dlopen_self_static, [dnl
2471 _LT_AC_TRY_DLOPEN_SELF(
2472 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2473 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
2477 CPPFLAGS="$save_CPPFLAGS"
2478 LDFLAGS="$save_LDFLAGS"
2483 case $lt_cv_dlopen_self in
2484 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2485 *) enable_dlopen_self=unknown ;;
2488 case $lt_cv_dlopen_self_static in
2489 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2490 *) enable_dlopen_self_static=unknown ;;
2493 ])# AC_LIBTOOL_DLOPEN_SELF
2496 # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
2497 # ---------------------------------
2498 # Check to see if options -c and -o are simultaneously supported by compiler
2499 AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
2500 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
2501 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2502 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2503 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2504 $rm -r conftest 2>/dev/null
2508 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
2510 lt_compiler_flag="-o out/conftest2.$ac_objext"
2511 # Insert the option either (1) after the last *FLAGS variable, or
2512 # (2) before a word containing "conftest.", or (3) at the end.
2513 # Note that $ac_compile itself does not contain backslashes and begins
2514 # with a dollar sign (not a hyphen), so the echo should work correctly.
2515 lt_compile=`echo "$ac_compile" | $SED \
2516 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2517 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2518 -e 's:$: $lt_compiler_flag:'`
2519 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2520 (eval "$lt_compile" 2>out/conftest.err)
2522 cat out/conftest.err >&AS_MESSAGE_LOG_FD
2523 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2524 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2526 # The compiler can only warn and ignore the option if not recognized
2527 # So say no if there are warnings
2528 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
2529 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2530 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2531 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2534 chmod u+w . 2>&AS_MESSAGE_LOG_FD
2536 # SGI C++ compiler will create directory out/ii_files/ for
2537 # template instantiation
2538 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
2539 $rm out/* && rmdir out
2544 ])# AC_LIBTOOL_PROG_CC_C_O
2547 # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
2548 # -----------------------------------------
2549 # Check to see if we can do hard links to lock some files if needed
2550 AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
2551 [AC_REQUIRE([_LT_AC_LOCK])dnl
2553 hard_links="nottested"
2554 if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2555 # do not overwrite the value of need_locks provided by the user
2556 AC_MSG_CHECKING([if we can lock with hard links])
2559 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2561 ln conftest.a conftest.b 2>&5 || hard_links=no
2562 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2563 AC_MSG_RESULT([$hard_links])
2564 if test "$hard_links" = no; then
2565 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2571 ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
2576 AC_DEFUN([AC_LIBTOOL_OBJDIR],
2577 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2578 [rm -f .libs 2>/dev/null
2579 mkdir .libs 2>/dev/null
2580 if test -d .libs; then
2583 # MS-DOS does not allow filenames that begin with a dot.
2586 rmdir .libs 2>/dev/null])
2587 objdir=$lt_cv_objdir
2588 ])# AC_LIBTOOL_OBJDIR
2591 # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
2592 # ----------------------------------------------
2593 # Check hardcoding attributes.
2594 AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
2595 [AC_MSG_CHECKING([how to hardcode library paths into programs])
2596 _LT_AC_TAGVAR(hardcode_action, $1)=
2597 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
2598 test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
2599 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2601 # We can hardcode non-existant directories.
2602 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
2603 # If the only mechanism to avoid hardcoding is shlibpath_var, we
2604 # have to relink, otherwise we might link with an installed library
2605 # when we should be linking with a yet-to-be-installed one
2606 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2607 test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
2608 # Linking always hardcodes the temporary library directory.
2609 _LT_AC_TAGVAR(hardcode_action, $1)=relink
2611 # We can link without hardcoding, and we can hardcode nonexisting dirs.
2612 _LT_AC_TAGVAR(hardcode_action, $1)=immediate
2615 # We cannot hardcode anything, or else we can only hardcode existing
2617 _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
2619 AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
2621 if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
2622 # Fast installation is not supported
2623 enable_fast_install=no
2624 elif test "$shlibpath_overrides_runpath" = yes ||
2625 test "$enable_shared" = no; then
2626 # Fast installation is not necessary
2627 enable_fast_install=needless
2629 ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
2632 # AC_LIBTOOL_SYS_LIB_STRIP
2633 # ------------------------
2634 AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
2637 AC_MSG_CHECKING([whether stripping libraries is possible])
2638 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
2639 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2640 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2641 AC_MSG_RESULT([yes])
2643 # FIXME - insert some real tests, host_os isn't really good enough
2646 if test -n "$STRIP" ; then
2647 striplib="$STRIP -x"
2648 AC_MSG_RESULT([yes])
2658 ])# AC_LIBTOOL_SYS_LIB_STRIP
2661 # AC_LIBTOOL_SYS_DYNAMIC_LINKER
2662 # -----------------------------
2663 # PORTME Fill in your ld.so characteristics
2664 AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
2665 [AC_MSG_CHECKING([dynamic linker characteristics])
2667 libname_spec='lib$name'
2675 shlibpath_overrides_runpath=unknown
2677 dynamic_linker="$host_os ld.so"
2678 sys_lib_dlsearch_path_spec="/lib /usr/lib"
2679 if test "$GCC" = yes; then
2680 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2681 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
2682 # if the path contains ";" then we assume it to be the separator
2683 # otherwise default to the standard path separator (i.e. ":") - it is
2684 # assumed that no part of a normal pathname contains ";" but that should
2685 # okay in the real world where ";" in dirpaths is itself problematic.
2686 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2688 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2691 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2693 need_lib_prefix=unknown
2694 hardcode_into_libs=no
2696 # when you set need_version to no, make sure it does not cause -set_version
2697 # flags to be left without arguments
2698 need_version=unknown
2703 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2704 shlibpath_var=LIBPATH
2706 # AIX 3 has no versioning support, so we append a major version to the name.
2707 soname_spec='${libname}${release}${shared_ext}$major'
2714 hardcode_into_libs=yes
2715 if test "$host_cpu" = ia64; then
2716 # AIX 5 supports IA64
2717 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2718 shlibpath_var=LD_LIBRARY_PATH
2720 # With GCC up to 2.95.x, collect2 would create an import file
2721 # for dependence libraries. The import file would start with
2722 # the line `#! .'. This would cause the generated library to
2723 # depend on `.', always an invalid library. This was fixed in
2724 # development snapshots of GCC prior to 3.0.
2726 aix4 | aix4.[[01]] | aix4.[[01]].*)
2727 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2729 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
2736 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2737 # soname into executable. Probably we can add versioning support to
2738 # collect2, so additional links can be useful in future.
2739 if test "$aix_use_runtimelinking" = yes; then
2740 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2741 # instead of lib<name>.a to let people know that these are not
2742 # typical AIX shared libraries.
2743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2745 # We preserve .a as extension for shared libraries through AIX4.2
2746 # and later when we are not doing run time linking.
2747 library_names_spec='${libname}${release}.a $libname.a'
2748 soname_spec='${libname}${release}${shared_ext}$major'
2750 shlibpath_var=LIBPATH
2755 library_names_spec='$libname.ixlibrary $libname.a'
2756 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2757 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
2761 library_names_spec='${libname}${shared_ext}'
2762 dynamic_linker="$host_os ld.so"
2763 shlibpath_var=LIBRARY_PATH
2769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2770 soname_spec='${libname}${release}${shared_ext}$major'
2771 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2772 shlibpath_var=LD_LIBRARY_PATH
2773 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2774 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2775 # the default ld.so.conf also contains /usr/contrib/lib and
2776 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2777 # libtool to hard-code these into programs
2780 cygwin* | mingw* | pw32*)
2781 version_type=windows
2786 case $GCC,$host_os in
2787 yes,cygwin* | yes,mingw* | yes,pw32*)
2788 library_names_spec='$libname.dll.a'
2789 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2790 postinstall_cmds='base_file=`basename \${file}`~
2791 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2792 dldir=$destdir/`dirname \$dlpath`~
2793 test -d \$dldir || mkdir -p \$dldir~
2794 $install_prog $dir/$dlname \$dldir/$dlname~
2795 chmod a+x \$dldir/$dlname'
2796 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2797 dlpath=$dir/\$dldll~
2799 shlibpath_overrides_runpath=yes
2803 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2804 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2805 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2808 # MinGW DLLs use traditional 'lib' prefix
2809 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2810 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2811 if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
2812 # It is most probably a Windows format PATH printed by
2813 # mingw gcc, but we are running on Cygwin. Gcc prints its search
2814 # path with ; separators, and with drive letters. We can handle the
2815 # drive letters (cygwin fileutils understands them), so leave them,
2816 # especially as we might pass files found there to a mingw objdump,
2817 # which wouldn't understand a cygwinified path. Ahh.
2818 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2820 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2824 # pw32 DLLs use 'pw' prefix rather than 'lib'
2825 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2831 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2834 dynamic_linker='Win32 ld.exe'
2835 # FIXME: first we should search . and the directory the executable is in
2839 darwin* | rhapsody*)
2840 dynamic_linker="$host_os dyld"
2844 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2845 soname_spec='${libname}${release}${major}$shared_ext'
2846 shlibpath_overrides_runpath=yes
2847 shlibpath_var=DYLD_LIBRARY_PATH
2848 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2849 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
2850 if test "$GCC" = yes; then
2851 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
2853 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
2855 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2863 soname_spec='${libname}${release}${shared_ext}$major'
2864 shlibpath_var=LD_LIBRARY_PATH
2875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2876 soname_spec='${libname}${release}${shared_ext}$major'
2877 shlibpath_var=LD_LIBRARY_PATH
2878 shlibpath_overrides_runpath=no
2879 hardcode_into_libs=yes
2880 dynamic_linker='GNU ld.so'
2883 freebsd* | dragonfly*)
2884 # DragonFly does not have aout. When/if they implement a new
2885 # versioning mechanism, adjust this.
2886 if test -x /usr/bin/objformat; then
2887 objformat=`/usr/bin/objformat`
2890 freebsd[[123]]*) objformat=aout ;;
2894 version_type=freebsd-$objformat
2895 case $version_type in
2897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2902 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2906 shlibpath_var=LD_LIBRARY_PATH
2909 shlibpath_overrides_runpath=yes
2911 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2912 shlibpath_overrides_runpath=yes
2913 hardcode_into_libs=yes
2915 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2916 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2917 shlibpath_overrides_runpath=no
2918 hardcode_into_libs=yes
2920 freebsd*) # from 4.6 on
2921 shlibpath_overrides_runpath=yes
2922 hardcode_into_libs=yes
2931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2932 soname_spec='${libname}${release}${shared_ext}$major'
2933 shlibpath_var=LD_LIBRARY_PATH
2934 hardcode_into_libs=yes
2937 hpux9* | hpux10* | hpux11*)
2938 # Give a soname corresponding to the major version so that dld.sl refuses to
2939 # link against other versions.
2946 hardcode_into_libs=yes
2947 dynamic_linker="$host_os dld.so"
2948 shlibpath_var=LD_LIBRARY_PATH
2949 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2951 soname_spec='${libname}${release}${shared_ext}$major'
2952 if test "X$HPUX_IA64_MODE" = X32; then
2953 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2955 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2957 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2961 hardcode_into_libs=yes
2962 dynamic_linker="$host_os dld.sl"
2963 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2964 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2966 soname_spec='${libname}${release}${shared_ext}$major'
2967 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2968 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2972 dynamic_linker="$host_os dld.sl"
2973 shlibpath_var=SHLIB_PATH
2974 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2976 soname_spec='${libname}${release}${shared_ext}$major'
2979 # HP-UX runs *really* slowly unless shared libraries are mode 555.
2980 postinstall_cmds='chmod 555 $lib'
2987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2988 soname_spec='${libname}${release}${shared_ext}$major'
2989 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2990 shlibpath_var=LD_LIBRARY_PATH
2991 shlibpath_overrides_runpath=no
2992 hardcode_into_libs=yes
2995 irix5* | irix6* | nonstopux*)
2997 nonstopux*) version_type=nonstopux ;;
2999 if test "$lt_cv_prog_gnu_ld" = yes; then
3007 soname_spec='${libname}${release}${shared_ext}$major'
3008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
3010 irix5* | nonstopux*)
3014 case $LD in # libtool.m4 will add one of these switches to LD
3015 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
3016 libsuff= shlibsuff= libmagic=32-bit;;
3017 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
3018 libsuff=32 shlibsuff=N32 libmagic=N32;;
3019 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
3020 libsuff=64 shlibsuff=64 libmagic=64-bit;;
3021 *) libsuff= shlibsuff= libmagic=never-match;;
3025 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
3026 shlibpath_overrides_runpath=no
3027 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
3028 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
3029 hardcode_into_libs=yes
3032 # No shared lib support for Linux oldld, aout, or coff.
3033 linux*oldld* | linux*aout* | linux*coff*)
3037 # This must be Linux ELF.
3042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3043 soname_spec='${libname}${release}${shared_ext}$major'
3044 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3045 shlibpath_var=LD_LIBRARY_PATH
3046 shlibpath_overrides_runpath=no
3047 # This implies no fast_install, which is unacceptable.
3048 # Some rework will be needed to allow for fast_install
3049 # before this can be enabled.
3050 hardcode_into_libs=yes
3052 # find out which ABI we are using
3055 x86_64*|s390x*|powerpc64*)
3056 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
3057 if AC_TRY_EVAL(ac_compile); then
3058 case `/usr/bin/file conftest.$ac_objext` in
3061 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
3069 # Append ld.so.conf contents to the search path
3070 if test -f /etc/ld.so.conf; then
3071 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
3072 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
3075 # We used to test for /lib/ld.so.1 and disable shared libraries on
3076 # powerpc, because MkLinux only supported shared libraries with the
3077 # GNU dynamic linker. Since this was broken with cross compilers,
3078 # most powerpc-linux boxes support dynamic linking these days and
3079 # people can always --disable-shared, the test was removed, and we
3080 # assume the GNU/Linux dynamic linker is in use.
3081 dynamic_linker='GNU/Linux ld.so'
3088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3089 soname_spec='${libname}${release}${shared_ext}$major'
3090 shlibpath_var=LD_LIBRARY_PATH
3091 shlibpath_overrides_runpath=no
3092 hardcode_into_libs=yes
3093 dynamic_linker='GNU ld.so'
3100 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3102 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3103 dynamic_linker='NetBSD (a.out) ld.so'
3105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3106 soname_spec='${libname}${release}${shared_ext}$major'
3107 dynamic_linker='NetBSD ld.elf_so'
3109 shlibpath_var=LD_LIBRARY_PATH
3110 shlibpath_overrides_runpath=yes
3111 hardcode_into_libs=yes
3116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3117 shlibpath_var=LD_LIBRARY_PATH
3118 shlibpath_overrides_runpath=yes
3125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3126 soname_spec='${libname}${release}${shared_ext}$major'
3127 shlibpath_var=LD_LIBRARY_PATH
3128 shlibpath_overrides_runpath=yes
3133 sys_lib_dlsearch_path_spec="/usr/lib"
3135 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
3137 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
3138 *) need_version=no ;;
3140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3141 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3142 shlibpath_var=LD_LIBRARY_PATH
3143 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3145 openbsd2.[[89]] | openbsd2.[[89]].*)
3146 shlibpath_overrides_runpath=no
3149 shlibpath_overrides_runpath=yes
3153 shlibpath_overrides_runpath=yes
3158 libname_spec='$name'
3161 library_names_spec='$libname${shared_ext} $libname.a'
3162 dynamic_linker='OS/2 ld.exe'
3163 shlibpath_var=LIBPATH
3166 osf3* | osf4* | osf5*)
3170 soname_spec='${libname}${release}${shared_ext}$major'
3171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3172 shlibpath_var=LD_LIBRARY_PATH
3173 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3174 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3182 soname_spec='${libname}${release}${shared_ext}$major'
3183 shlibpath_var=LD_LIBRARY_PATH
3184 shlibpath_overrides_runpath=yes
3185 hardcode_into_libs=yes
3186 # ldd complains unless libraries are executable
3187 postinstall_cmds='chmod +x $lib'
3192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3193 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3194 shlibpath_var=LD_LIBRARY_PATH
3195 shlibpath_overrides_runpath=yes
3196 if test "$with_gnu_ld" = yes; then
3204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3205 soname_spec='${libname}${release}${shared_ext}$major'
3206 shlibpath_var=LD_LIBRARY_PATH
3207 case $host_vendor in
3209 shlibpath_overrides_runpath=no
3211 export_dynamic_flag_spec='${wl}-Blargedynsym'
3212 runpath_var=LD_RUN_PATH
3220 shlibpath_overrides_runpath=no
3221 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3227 if test -d /usr/nec ;then
3229 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3230 soname_spec='$libname${shared_ext}.$major'
3231 shlibpath_var=LD_LIBRARY_PATH
3235 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3236 version_type=freebsd-elf
3239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3240 soname_spec='${libname}${release}${shared_ext}$major'
3241 shlibpath_var=LD_LIBRARY_PATH
3242 hardcode_into_libs=yes
3243 if test "$with_gnu_ld" = yes; then
3244 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3245 shlibpath_overrides_runpath=no
3247 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
3248 shlibpath_overrides_runpath=yes
3251 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3255 sys_lib_dlsearch_path_spec='/usr/lib'
3260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3261 soname_spec='${libname}${release}${shared_ext}$major'
3262 shlibpath_var=LD_LIBRARY_PATH
3269 AC_MSG_RESULT([$dynamic_linker])
3270 test "$dynamic_linker" = no && can_build_shared=no
3272 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3273 if test "$GCC" = yes; then
3274 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3276 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
3281 AC_DEFUN([_LT_AC_TAGCONFIG],
3282 [AC_ARG_WITH([tags],
3283 [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
3284 [include additional configurations @<:@automatic@:>@])],
3285 [tagnames="$withval"])
3287 if test -f "$ltmain" && test -n "$tagnames"; then
3288 if test ! -f "${ofile}"; then
3289 AC_MSG_WARN([output file `$ofile' does not exist])
3292 if test -z "$LTCC"; then
3293 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
3294 if test -z "$LTCC"; then
3295 AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
3297 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
3300 if test -z "$LTCFLAGS"; then
3301 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
3304 # Extract list of available tagged configurations in $ofile.
3305 # Note that this assumes the entire list is on one line.
3306 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
3308 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3309 for tagname in $tagnames; do
3311 # Check whether tagname contains only valid characters
3312 case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
3314 *) AC_MSG_ERROR([invalid tag name: $tagname])
3318 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
3320 AC_MSG_ERROR([tag name \"$tagname\" already exists])
3323 # Update the list of available tags.
3324 if test -n "$tagname"; then
3325 echo appending configuration tag \"$tagname\" to $ofile
3329 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3330 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3331 (test "X$CXX" != "Xg++"))) ; then
3332 AC_LIBTOOL_LANG_CXX_CONFIG
3339 if test -n "$F77" && test "X$F77" != "Xno"; then
3340 AC_LIBTOOL_LANG_F77_CONFIG
3347 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
3348 AC_LIBTOOL_LANG_GCJ_CONFIG
3355 AC_LIBTOOL_LANG_RC_CONFIG
3359 AC_MSG_ERROR([Unsupported tag name: $tagname])
3363 # Append the new tag name to the list of available tags.
3364 if test -n "$tagname" ; then
3365 available_tags="$available_tags $tagname"
3371 # Now substitute the updated list of available tags.
3372 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
3373 mv "${ofile}T" "$ofile"
3377 AC_MSG_ERROR([unable to update list of available tagged configurations.])
3380 ])# _LT_AC_TAGCONFIG
3385 # enable checks for dlopen support
3386 AC_DEFUN([AC_LIBTOOL_DLOPEN],
3387 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
3388 ])# AC_LIBTOOL_DLOPEN
3391 # AC_LIBTOOL_WIN32_DLL
3392 # --------------------
3393 # declare package support for building win32 DLLs
3394 AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
3395 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
3396 ])# AC_LIBTOOL_WIN32_DLL
3399 # AC_ENABLE_SHARED([DEFAULT])
3400 # ---------------------------
3401 # implement the --enable-shared flag
3402 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3403 AC_DEFUN([AC_ENABLE_SHARED],
3404 [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
3405 AC_ARG_ENABLE([shared],
3406 [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
3407 [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
3408 [p=${PACKAGE-default}
3410 yes) enable_shared=yes ;;
3411 no) enable_shared=no ;;
3414 # Look at the argument we got. We use all the common list separators.
3415 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3416 for pkg in $enableval; do
3418 if test "X$pkg" = "X$p"; then
3425 [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
3426 ])# AC_ENABLE_SHARED
3431 # set the default shared flag to --disable-shared
3432 AC_DEFUN([AC_DISABLE_SHARED],
3433 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3434 AC_ENABLE_SHARED(no)
3435 ])# AC_DISABLE_SHARED
3438 # AC_ENABLE_STATIC([DEFAULT])
3439 # ---------------------------
3440 # implement the --enable-static flag
3441 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3442 AC_DEFUN([AC_ENABLE_STATIC],
3443 [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
3444 AC_ARG_ENABLE([static],
3445 [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
3446 [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
3447 [p=${PACKAGE-default}
3449 yes) enable_static=yes ;;
3450 no) enable_static=no ;;
3453 # Look at the argument we got. We use all the common list separators.
3454 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3455 for pkg in $enableval; do
3457 if test "X$pkg" = "X$p"; then
3464 [enable_static=]AC_ENABLE_STATIC_DEFAULT)
3465 ])# AC_ENABLE_STATIC
3470 # set the default static flag to --disable-static
3471 AC_DEFUN([AC_DISABLE_STATIC],
3472 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3473 AC_ENABLE_STATIC(no)
3474 ])# AC_DISABLE_STATIC
3477 # AC_ENABLE_FAST_INSTALL([DEFAULT])
3478 # ---------------------------------
3479 # implement the --enable-fast-install flag
3480 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3481 AC_DEFUN([AC_ENABLE_FAST_INSTALL],
3482 [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
3483 AC_ARG_ENABLE([fast-install],
3484 [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
3485 [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
3486 [p=${PACKAGE-default}
3488 yes) enable_fast_install=yes ;;
3489 no) enable_fast_install=no ;;
3491 enable_fast_install=no
3492 # Look at the argument we got. We use all the common list separators.
3493 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3494 for pkg in $enableval; do
3496 if test "X$pkg" = "X$p"; then
3497 enable_fast_install=yes
3503 [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
3504 ])# AC_ENABLE_FAST_INSTALL
3507 # AC_DISABLE_FAST_INSTALL
3508 # -----------------------
3509 # set the default to --disable-fast-install
3510 AC_DEFUN([AC_DISABLE_FAST_INSTALL],
3511 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3512 AC_ENABLE_FAST_INSTALL(no)
3513 ])# AC_DISABLE_FAST_INSTALL
3516 # AC_LIBTOOL_PICMODE([MODE])
3517 # --------------------------
3518 # implement the --with-pic flag
3519 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
3520 AC_DEFUN([AC_LIBTOOL_PICMODE],
3521 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3522 pic_mode=ifelse($#,1,$1,default)
3523 ])# AC_LIBTOOL_PICMODE
3528 # This is predefined starting with Autoconf 2.54, so this conditional
3529 # definition can be removed once we require Autoconf 2.54 or later.
3530 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
3531 [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
3532 [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3533 then ac_cv_prog_egrep='grep -E'
3534 else ac_cv_prog_egrep='egrep'
3536 EGREP=$ac_cv_prog_egrep
3541 # AC_PATH_TOOL_PREFIX
3542 # -------------------
3543 # find a file program which can recognise shared library
3544 AC_DEFUN([AC_PATH_TOOL_PREFIX],
3545 [AC_REQUIRE([AC_PROG_EGREP])dnl
3546 AC_MSG_CHECKING([for $1])
3547 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3549 [[\\/*] | ?:[\\/]*])
3550 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3553 lt_save_MAGIC_CMD="$MAGIC_CMD"
3554 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3555 dnl $ac_dummy forces splitting on constant user-supplied paths.
3556 dnl POSIX.2 word splitting is done only on the output of word expansions,
3557 dnl not every word. This closes a longstanding sh security hole.
3558 ac_dummy="ifelse([$2], , $PATH, [$2])"
3559 for ac_dir in $ac_dummy; do
3561 test -z "$ac_dir" && ac_dir=.
3562 if test -f $ac_dir/$1; then
3563 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3564 if test -n "$file_magic_test_file"; then
3565 case $deplibs_check_method in
3567 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3568 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3569 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3570 $EGREP "$file_magic_regex" > /dev/null; then
3575 *** Warning: the command libtool uses to detect shared libraries,
3576 *** $file_magic_cmd, produces output that libtool cannot recognize.
3577 *** The result is that libtool may fail to recognize shared libraries
3578 *** as such. This will affect the creation of libtool libraries that
3579 *** depend on shared libraries, but programs linked with such libtool
3580 *** libraries will work regardless of this problem. Nevertheless, you
3581 *** may want to report the problem to your system manager and/or to
3582 *** bug-libtool@gnu.org
3592 MAGIC_CMD="$lt_save_MAGIC_CMD"
3595 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3596 if test -n "$MAGIC_CMD"; then
3597 AC_MSG_RESULT($MAGIC_CMD)
3601 ])# AC_PATH_TOOL_PREFIX
3606 # find a file program which can recognise a shared library
3607 AC_DEFUN([AC_PATH_MAGIC],
3608 [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3609 if test -z "$lt_cv_path_MAGIC_CMD"; then
3610 if test -n "$ac_tool_prefix"; then
3611 AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3621 # find the pathname to the GNU or non-GNU linker
3622 AC_DEFUN([AC_PROG_LD],
3623 [AC_ARG_WITH([gnu-ld],
3624 [AC_HELP_STRING([--with-gnu-ld],
3625 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3626 [test "$withval" = no || with_gnu_ld=yes],
3628 AC_REQUIRE([LT_AC_PROG_SED])dnl
3629 AC_REQUIRE([AC_PROG_CC])dnl
3630 AC_REQUIRE([AC_CANONICAL_HOST])dnl
3631 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3633 if test "$GCC" = yes; then
3634 # Check if gcc -print-prog-name=ld gives a path.
3635 AC_MSG_CHECKING([for ld used by $CC])
3638 # gcc leaves a trailing carriage return which upsets mingw
3639 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3641 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3644 # Accept absolute paths.
3645 [[\\/]]* | ?:[[\\/]]*)
3646 re_direlt='/[[^/]][[^/]]*/\.\./'
3647 # Canonicalize the pathname of ld
3648 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3649 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3650 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3652 test -z "$LD" && LD="$ac_prog"
3655 # If it fails, then pretend we aren't using GCC.
3659 # If it is relative, then search for the first ld in PATH.
3663 elif test "$with_gnu_ld" = yes; then
3664 AC_MSG_CHECKING([for GNU ld])
3666 AC_MSG_CHECKING([for non-GNU ld])
3668 AC_CACHE_VAL(lt_cv_path_LD,
3669 [if test -z "$LD"; then
3670 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3671 for ac_dir in $PATH; do
3673 test -z "$ac_dir" && ac_dir=.
3674 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3675 lt_cv_path_LD="$ac_dir/$ac_prog"
3676 # Check to see if the program is GNU ld. I'd rather use --version,
3677 # but apparently some variants of GNU ld only accept -v.
3678 # Break only if it was the GNU/non-GNU ld that we prefer.
3679 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3680 *GNU* | *'with BFD'*)
3681 test "$with_gnu_ld" != no && break
3684 test "$with_gnu_ld" != yes && break
3691 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3694 if test -n "$LD"; then
3699 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3706 AC_DEFUN([AC_PROG_LD_GNU],
3707 [AC_REQUIRE([AC_PROG_EGREP])dnl
3708 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3709 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
3710 case `$LD -v 2>&1 </dev/null` in
3711 *GNU* | *'with BFD'*)
3712 lt_cv_prog_gnu_ld=yes
3715 lt_cv_prog_gnu_ld=no
3718 with_gnu_ld=$lt_cv_prog_gnu_ld
3722 # AC_PROG_LD_RELOAD_FLAG
3723 # ----------------------
3724 # find reload flag for linker
3725 # -- PORTME Some linkers may need a different reload flag.
3726 AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
3727 [AC_CACHE_CHECK([for $LD option to reload object files],
3728 lt_cv_ld_reload_flag,
3729 [lt_cv_ld_reload_flag='-r'])
3730 reload_flag=$lt_cv_ld_reload_flag
3731 case $reload_flag in
3733 *) reload_flag=" $reload_flag" ;;
3735 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3738 if test "$GCC" = yes; then
3739 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3741 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3745 ])# AC_PROG_LD_RELOAD_FLAG
3748 # AC_DEPLIBS_CHECK_METHOD
3749 # -----------------------
3750 # how to check for library dependencies
3751 # -- PORTME fill in with the dynamic library characteristics
3752 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
3753 [AC_CACHE_CHECK([how to recognise dependent libraries],
3754 lt_cv_deplibs_check_method,
3755 [lt_cv_file_magic_cmd='$MAGIC_CMD'
3756 lt_cv_file_magic_test_file=
3757 lt_cv_deplibs_check_method='unknown'
3758 # Need to set the preceding variable on all platforms that support
3759 # interlibrary dependencies.
3760 # 'none' -- dependencies not supported.
3761 # `unknown' -- same as none, but documents that we really don't know.
3762 # 'pass_all' -- all dependencies passed with no checks.
3763 # 'test_compile' -- check by making test program.
3764 # 'file_magic [[regex]]' -- check by looking for files in library path
3765 # which responds to the $file_magic_cmd with a given extended regex.
3766 # If you have `file' or equivalent on your system and you're not sure
3767 # whether `pass_all' will *always* work, you probably want this one.
3771 lt_cv_deplibs_check_method=pass_all
3775 lt_cv_deplibs_check_method=pass_all
3779 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3780 lt_cv_file_magic_cmd='/usr/bin/file -L'
3781 lt_cv_file_magic_test_file=/shlib/libc.so
3785 # func_win32_libid is a shell function defined in ltmain.sh
3786 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3787 lt_cv_file_magic_cmd='func_win32_libid'
3791 # Base MSYS/MinGW do not provide the 'file' command needed by
3792 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3793 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3794 lt_cv_file_magic_cmd='$OBJDUMP -f'
3797 darwin* | rhapsody*)
3798 lt_cv_deplibs_check_method=pass_all
3801 freebsd* | kfreebsd*-gnu | dragonfly*)
3802 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3805 # Not sure whether the presence of OpenBSD here was a mistake.
3806 # Let's accept both of them until this is cleared up.
3807 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3808 lt_cv_file_magic_cmd=/usr/bin/file
3809 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3813 lt_cv_deplibs_check_method=pass_all
3818 lt_cv_deplibs_check_method=pass_all
3821 hpux10.20* | hpux11*)
3822 lt_cv_file_magic_cmd=/usr/bin/file
3825 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3826 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3829 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
3830 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3833 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3834 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3840 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3841 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3844 irix5* | irix6* | nonstopux*)
3846 *-32|*"-32 ") libmagic=32-bit;;
3847 *-n32|*"-n32 ") libmagic=N32;;
3848 *-64|*"-64 ") libmagic=64-bit;;
3849 *) libmagic=never-match;;
3851 lt_cv_deplibs_check_method=pass_all
3854 # This must be Linux ELF.
3856 lt_cv_deplibs_check_method=pass_all
3860 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3861 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3863 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3868 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3869 lt_cv_file_magic_cmd=/usr/bin/file
3870 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3874 lt_cv_deplibs_check_method=unknown
3878 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3879 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3881 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3885 osf3* | osf4* | osf5*)
3886 lt_cv_deplibs_check_method=pass_all
3890 lt_cv_deplibs_check_method=pass_all
3894 case $host_vendor in
3896 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
3897 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3900 lt_cv_deplibs_check_method=pass_all
3903 lt_cv_file_magic_cmd='/bin/file'
3904 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3907 lt_cv_file_magic_cmd='/bin/file'
3908 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3909 lt_cv_file_magic_test_file=/lib/libc.so
3912 lt_cv_deplibs_check_method=pass_all
3915 lt_cv_deplibs_check_method=pass_all
3920 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3921 lt_cv_deplibs_check_method=pass_all
3925 file_magic_cmd=$lt_cv_file_magic_cmd
3926 deplibs_check_method=$lt_cv_deplibs_check_method
3927 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3928 ])# AC_DEPLIBS_CHECK_METHOD
3933 # find the pathname to a BSD-compatible name lister
3934 AC_DEFUN([AC_PROG_NM],
3935 [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
3936 [if test -n "$NM"; then
3937 # Let the user override the test.
3940 lt_nm_to_check="${ac_tool_prefix}nm"
3941 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3942 lt_nm_to_check="$lt_nm_to_check nm"
3944 for lt_tmp_nm in $lt_nm_to_check; do
3945 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3946 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3948 test -z "$ac_dir" && ac_dir=.
3949 tmp_nm="$ac_dir/$lt_tmp_nm"
3950 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3951 # Check to see if the nm accepts a BSD-compat flag.
3952 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3953 # nm: unknown option "B" ignored
3954 # Tru64's nm complains that /dev/null is an invalid object file
3955 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3956 */dev/null* | *'Invalid file or object type'*)
3957 lt_cv_path_NM="$tmp_nm -B"
3961 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3963 lt_cv_path_NM="$tmp_nm -p"
3967 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3968 continue # so that we can try to find one that supports BSD flags
3977 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3985 # check for math library
3986 AC_DEFUN([AC_CHECK_LIBM],
3987 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3990 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3991 # These system don't have libm, or don't need it
3994 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3995 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3998 AC_CHECK_LIB(m, cos, LIBM="-lm")
4004 # AC_LIBLTDL_CONVENIENCE([DIRECTORY])
4005 # -----------------------------------
4006 # sets LIBLTDL to the link flags for the libltdl convenience library and
4007 # LTDLINCL to the include flags for the libltdl header and adds
4008 # --enable-ltdl-convenience to the configure arguments. Note that
4009 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
4010 # it is assumed to be `libltdl'. LIBLTDL will be prefixed with
4011 # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
4012 # (note the single quotes!). If your package is not flat and you're not
4013 # using automake, define top_builddir and top_srcdir appropriately in
4015 AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
4016 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4017 case $enable_ltdl_convenience in
4018 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
4019 "") enable_ltdl_convenience=yes
4020 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
4022 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
4023 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
4024 # For backwards non-gettext consistent compatibility...
4026 ])# AC_LIBLTDL_CONVENIENCE
4029 # AC_LIBLTDL_INSTALLABLE([DIRECTORY])
4030 # -----------------------------------
4031 # sets LIBLTDL to the link flags for the libltdl installable library and
4032 # LTDLINCL to the include flags for the libltdl header and adds
4033 # --enable-ltdl-install to the configure arguments. Note that
4034 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
4035 # and an installed libltdl is not found, it is assumed to be `libltdl'.
4036 # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
4037 # '${top_srcdir}/' (note the single quotes!). If your package is not
4038 # flat and you're not using automake, define top_builddir and top_srcdir
4039 # appropriately in the Makefiles.
4040 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
4041 AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
4042 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4043 AC_CHECK_LIB(ltdl, lt_dlinit,
4044 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
4045 [if test x"$enable_ltdl_install" = xno; then
4046 AC_MSG_WARN([libltdl not installed, but installation disabled])
4048 enable_ltdl_install=yes
4051 if test x"$enable_ltdl_install" = x"yes"; then
4052 ac_configure_args="$ac_configure_args --enable-ltdl-install"
4053 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
4054 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
4056 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4060 # For backwards non-gettext consistent compatibility...
4062 ])# AC_LIBLTDL_INSTALLABLE
4067 # enable support for C++ libraries
4068 AC_DEFUN([AC_LIBTOOL_CXX],
4069 [AC_REQUIRE([_LT_AC_LANG_CXX])
4075 AC_DEFUN([_LT_AC_LANG_CXX],
4076 [AC_REQUIRE([AC_PROG_CXX])
4077 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
4078 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
4081 # _LT_AC_PROG_CXXCPP
4082 # ------------------
4083 AC_DEFUN([_LT_AC_PROG_CXXCPP],
4085 AC_REQUIRE([AC_PROG_CXX])
4086 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4087 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4088 (test "X$CXX" != "Xg++"))) ; then
4091 ])# _LT_AC_PROG_CXXCPP
4095 # enable support for Fortran 77 libraries
4096 AC_DEFUN([AC_LIBTOOL_F77],
4097 [AC_REQUIRE([_LT_AC_LANG_F77])
4103 AC_DEFUN([_LT_AC_LANG_F77],
4104 [AC_REQUIRE([AC_PROG_F77])
4105 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
4111 # enable support for GCJ libraries
4112 AC_DEFUN([AC_LIBTOOL_GCJ],
4113 [AC_REQUIRE([_LT_AC_LANG_GCJ])
4119 AC_DEFUN([_LT_AC_LANG_GCJ],
4120 [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
4121 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
4122 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
4123 [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
4124 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
4125 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
4126 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
4132 # enable support for Windows resource files
4133 AC_DEFUN([AC_LIBTOOL_RC],
4134 [AC_REQUIRE([LT_AC_PROG_RC])
4135 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
4139 # AC_LIBTOOL_LANG_C_CONFIG
4140 # ------------------------
4141 # Ensure that the configuration vars for the C compiler are
4142 # suitably defined. Those variables are subsequently used by
4143 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4144 AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
4145 AC_DEFUN([_LT_AC_LANG_C_CONFIG],
4149 # Source file extension for C test sources.
4152 # Object file extension for compiled C test sources.
4154 _LT_AC_TAGVAR(objext, $1)=$objext
4156 # Code to be used in simple compile tests
4157 lt_simple_compile_test_code="int some_variable = 0;\n"
4159 # Code to be used in simple link tests
4160 lt_simple_link_test_code='int main(){return(0);}\n'
4164 # save warnings/boilerplate of simple test code
4165 _LT_COMPILER_BOILERPLATE
4166 _LT_LINKER_BOILERPLATE
4168 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4169 AC_LIBTOOL_PROG_COMPILER_PIC($1)
4170 AC_LIBTOOL_PROG_CC_C_O($1)
4171 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4172 AC_LIBTOOL_PROG_LD_SHLIBS($1)
4173 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4174 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4175 AC_LIBTOOL_SYS_LIB_STRIP
4176 AC_LIBTOOL_DLOPEN_SELF
4178 # Report which library types will actually be built
4179 AC_MSG_CHECKING([if libtool supports shared libraries])
4180 AC_MSG_RESULT([$can_build_shared])
4182 AC_MSG_CHECKING([whether to build shared libraries])
4183 test "$can_build_shared" = "no" && enable_shared=no
4185 # On AIX, shared libraries and static libraries use the same namespace, and
4186 # are all built from PIC.
4189 test "$enable_shared" = yes && enable_static=no
4190 if test -n "$RANLIB"; then
4191 archive_cmds="$archive_cmds~\$RANLIB \$lib"
4192 postinstall_cmds='$RANLIB $lib'
4197 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4198 test "$enable_shared" = yes && enable_static=no
4202 AC_MSG_RESULT([$enable_shared])
4204 AC_MSG_CHECKING([whether to build static libraries])
4205 # Make sure either enable_shared or enable_static is yes.
4206 test "$enable_shared" = yes || enable_static=yes
4207 AC_MSG_RESULT([$enable_static])
4209 AC_LIBTOOL_CONFIG($1)
4213 ])# AC_LIBTOOL_LANG_C_CONFIG
4216 # AC_LIBTOOL_LANG_CXX_CONFIG
4217 # --------------------------
4218 # Ensure that the configuration vars for the C compiler are
4219 # suitably defined. Those variables are subsequently used by
4220 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4221 AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
4222 AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
4224 AC_REQUIRE([AC_PROG_CXX])
4225 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
4227 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4228 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
4229 _LT_AC_TAGVAR(always_export_symbols, $1)=no
4230 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4231 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4232 _LT_AC_TAGVAR(hardcode_direct, $1)=no
4233 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4234 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4235 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4236 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4237 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4238 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
4239 _LT_AC_TAGVAR(module_cmds, $1)=
4240 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
4241 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4242 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4243 _LT_AC_TAGVAR(no_undefined_flag, $1)=
4244 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4245 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4247 # Dependencies to place before and after the object being linked:
4248 _LT_AC_TAGVAR(predep_objects, $1)=
4249 _LT_AC_TAGVAR(postdep_objects, $1)=
4250 _LT_AC_TAGVAR(predeps, $1)=
4251 _LT_AC_TAGVAR(postdeps, $1)=
4252 _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
4254 # Source file extension for C++ test sources.
4257 # Object file extension for compiled C++ test sources.
4259 _LT_AC_TAGVAR(objext, $1)=$objext
4261 # Code to be used in simple compile tests
4262 lt_simple_compile_test_code="int some_variable = 0;\n"
4264 # Code to be used in simple link tests
4265 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
4267 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4270 # save warnings/boilerplate of simple test code
4271 _LT_COMPILER_BOILERPLATE
4272 _LT_LINKER_BOILERPLATE
4274 # Allow CC to be a program name with arguments.
4279 lt_save_with_gnu_ld=$with_gnu_ld
4280 lt_save_path_LD=$lt_cv_path_LD
4281 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
4282 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
4284 $as_unset lt_cv_prog_gnu_ld
4286 if test -n "${lt_cv_path_LDCXX+set}"; then
4287 lt_cv_path_LD=$lt_cv_path_LDCXX
4289 $as_unset lt_cv_path_LD
4291 test -z "${LDCXX+set}" || LD=$LDCXX
4294 _LT_AC_TAGVAR(compiler, $1)=$CC
4295 _LT_CC_BASENAME([$compiler])
4297 # We don't want -fno-exception wen compiling C++ code, so set the
4298 # no_builtin_flag separately
4299 if test "$GXX" = yes; then
4300 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4302 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4305 if test "$GXX" = yes; then
4306 # Set up default GNU C++ configuration
4310 # Check if GNU C++ uses GNU ld as the underlying linker, since the
4311 # archiving commands below assume that GNU ld is being used.
4312 if test "$with_gnu_ld" = yes; then
4313 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4314 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4316 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4317 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4319 # If archive_cmds runs LD, not CC, wlarc should be empty
4320 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
4321 # investigate it a little bit more. (MM)
4324 # ancient GNU ld didn't support --whole-archive et. al.
4325 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
4326 grep 'no-whole-archive' > /dev/null; then
4327 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4329 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4335 # A generic and very simple default shared library creation
4336 # command for GNU C++ for the case where it uses the native
4337 # linker, instead of GNU ld. If possible, this setting should
4338 # overridden to take advantage of the native linker features on
4339 # the platform it is being used on.
4340 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4343 # Commands to make compiler produce verbose output that lists
4344 # what "hidden" libraries, object files and flags are used when
4345 # linking a shared library.
4346 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4354 # PORTME: fill in a description of your system's C++ link characteristics
4355 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4356 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
4359 # FIXME: insert proper C++ library support
4360 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4363 if test "$host_cpu" = ia64; then
4364 # On IA64, the linker does run time linking by default, so we don't
4365 # have to do anything special.
4366 aix_use_runtimelinking=no
4367 exp_sym_flag='-Bexport'
4370 aix_use_runtimelinking=no
4372 # Test if we are trying to use run time linking or normal
4373 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4374 # need to do runtime linking.
4375 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
4376 for ld_flag in $LDFLAGS; do
4379 aix_use_runtimelinking=yes
4387 exp_sym_flag='-bexport'
4388 no_entry_flag='-bnoentry'
4391 # When large executables or shared objects are built, AIX ld can
4392 # have problems creating the table of contents. If linking a library
4393 # or program results in "error TOC overflow" add -mminimal-toc to
4394 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
4395 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4397 _LT_AC_TAGVAR(archive_cmds, $1)=''
4398 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4399 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4400 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4402 if test "$GXX" = yes; then
4403 case $host_os in aix4.[[012]]|aix4.[[012]].*)
4404 # We only want to do this on AIX 4.2 and lower, the check
4405 # below for broken collect2 doesn't work under 4.3+
4406 collect2name=`${CC} -print-prog-name=collect2`
4407 if test -f "$collect2name" && \
4408 strings "$collect2name" | grep resolve_lib_name >/dev/null
4410 # We have reworked collect2
4411 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4413 # We have old collect2
4414 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
4415 # It fails to find uninstalled libraries when the uninstalled
4416 # path is not listed in the libpath. Setting hardcode_minus_L
4417 # to unsupported forces relinking
4418 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4419 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4420 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4424 shared_flag='-shared'
4425 if test "$aix_use_runtimelinking" = yes; then
4426 shared_flag="$shared_flag "'${wl}-G'
4430 if test "$host_cpu" = ia64; then
4431 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
4432 # chokes on -Wl,-G. The following line is correct:
4435 if test "$aix_use_runtimelinking" = yes; then
4436 shared_flag='${wl}-G'
4438 shared_flag='${wl}-bM:SRE'
4443 # It seems that -bexpall does not export symbols beginning with
4444 # underscore (_), so it is better to generate a list of symbols to export.
4445 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
4446 if test "$aix_use_runtimelinking" = yes; then
4447 # Warning - without using the other runtime loading flags (-brtl),
4448 # -berok will link without error, but may produce a broken library.
4449 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
4450 # Determine the default libpath from the value encoded in an empty executable.
4451 _LT_AC_SYS_LIBPATH_AIX
4452 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4454 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
4456 if test "$host_cpu" = ia64; then
4457 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
4458 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
4459 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
4461 # Determine the default libpath from the value encoded in an empty executable.
4462 _LT_AC_SYS_LIBPATH_AIX
4463 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4464 # Warning - without using the other run time loading flags,
4465 # -berok will link without error, but may produce a broken library.
4466 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
4467 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4468 # Exported symbols can be pulled into shared objects from archives
4469 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
4470 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
4471 # This is similar to how AIX traditionally builds its shared libraries.
4472 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
4478 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
4479 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4480 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4481 # support --undefined. This deserves some investigation. FIXME
4482 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4484 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4489 case $cc_basename in
4491 # FIXME: insert proper C++ library support
4492 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4497 cygwin* | mingw* | pw32*)
4498 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4499 # as there is no search path for DLLs.
4500 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4501 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4502 _LT_AC_TAGVAR(always_export_symbols, $1)=no
4503 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4505 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
4506 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4507 # If the export-symbols file already is a .def file (1st line
4508 # is EXPORTS), use it as is; otherwise, prepend...
4509 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4510 cp $export_symbols $output_objdir/$soname.def;
4512 echo EXPORTS > $output_objdir/$soname.def;
4513 cat $export_symbols >> $output_objdir/$soname.def;
4515 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4517 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4520 darwin* | rhapsody*)
4522 rhapsody* | darwin1.[[012]])
4523 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
4526 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
4527 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
4529 case ${MACOSX_DEPLOYMENT_TARGET} in
4531 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
4534 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
4540 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4541 _LT_AC_TAGVAR(hardcode_direct, $1)=no
4542 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
4543 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4544 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
4545 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4547 if test "$GXX" = yes ; then
4548 lt_int_apple_cc_single_mod=no
4549 output_verbose_link_cmd='echo'
4550 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
4551 lt_int_apple_cc_single_mod=yes
4553 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
4554 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
4556 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
4558 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4559 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
4560 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
4561 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4563 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4565 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4567 case $cc_basename in
4569 output_verbose_link_cmd='echo'
4570 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
4571 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4572 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
4573 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4574 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4577 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4584 case $cc_basename in
4586 # FIXME: insert proper C++ library support
4587 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4590 # Green Hills C++ Compiler
4591 # FIXME: insert proper C++ library support
4592 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4595 # FIXME: insert proper C++ library support
4596 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4601 # C++ shared libraries reported to be fairly broken before switch to ELF
4602 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4605 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4607 freebsd* | kfreebsd*-gnu | dragonfly*)
4608 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
4610 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
4615 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4616 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4617 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4618 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4619 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4620 # but as the default
4621 # location of the library.
4623 case $cc_basename in
4625 # FIXME: insert proper C++ library support
4626 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4629 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4630 # Commands to make compiler produce verbose output that lists
4631 # what "hidden" libraries, object files and flags are used when
4632 # linking a shared library.
4634 # There doesn't appear to be a way to prevent this compiler from
4635 # explicitly linking system object files so we need to strip them
4636 # from the output so that they don't get included in the library
4638 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4641 if test "$GXX" = yes; then
4642 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4644 # FIXME: insert proper C++ library support
4645 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4651 if test $with_gnu_ld = no; then
4652 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4653 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4657 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
4660 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4666 _LT_AC_TAGVAR(hardcode_direct, $1)=no
4667 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4670 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4671 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4672 # but as the default
4673 # location of the library.
4677 case $cc_basename in
4679 # FIXME: insert proper C++ library support
4680 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4685 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4688 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4691 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4694 # Commands to make compiler produce verbose output that lists
4695 # what "hidden" libraries, object files and flags are used when
4696 # linking a shared library.
4698 # There doesn't appear to be a way to prevent this compiler from
4699 # explicitly linking system object files so we need to strip them
4700 # from the output so that they don't get included in the library
4702 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4705 if test "$GXX" = yes; then
4706 if test $with_gnu_ld = no; then
4709 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4712 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4715 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4720 # FIXME: insert proper C++ library support
4721 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4727 _LT_AC_TAGVAR(hardcode_direct, $1)=no
4728 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4729 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4730 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4731 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4732 # Instead, shared libraries are loaded at an image base (0x10000000 by
4733 # default) and relocated if they conflict, which is a slow very memory
4734 # consuming and fragmenting process. To avoid this, we pick a random,
4735 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4736 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
4737 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4738 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4741 case $cc_basename in
4744 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4746 # Archives containing C++ object files must be created using
4747 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
4748 # necessary to make sure instantiated templates are included
4750 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
4753 if test "$GXX" = yes; then
4754 if test "$with_gnu_ld" = no; then
4755 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4757 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
4760 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4763 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4764 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4767 case $cc_basename in
4769 # Kuck and Associates, Inc. (KAI) C++ Compiler
4771 # KCC will only create a shared library if the output file
4772 # ends with ".so" (or ".sl" for HP-UX), so rename the library
4773 # to its proper name (with version) after linking.
4774 _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
4775 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
4776 # Commands to make compiler produce verbose output that lists
4777 # what "hidden" libraries, object files and flags are used when
4778 # linking a shared library.
4780 # There doesn't appear to be a way to prevent this compiler from
4781 # explicitly linking system object files so we need to strip them
4782 # from the output so that they don't get included in the library
4784 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4786 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
4787 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4789 # Archives containing C++ object files must be created using
4790 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
4791 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4796 # version 8.0 and above of icpc choke on multiply defined symbols
4797 # if we add $predep_objects and $postdep_objects, however 7.1 and
4798 # earlier do not add the objects themselves.
4799 case `$CC -V 2>&1` in
4801 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4802 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4804 *) # Version 8.0 or newer
4807 ia64*) tmp_idyn=' -i_dynamic';;
4809 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4810 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4813 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4814 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4815 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4816 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4819 # Portland Group C++ compiler
4820 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
4821 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
4823 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4824 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4825 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
4829 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4830 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
4832 runpath_var=LD_RUN_PATH
4833 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4834 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4836 # Commands to make compiler produce verbose output that lists
4837 # what "hidden" libraries, object files and flags are used when
4838 # linking a shared library.
4840 # There doesn't appear to be a way to prevent this compiler from
4841 # explicitly linking system object files so we need to strip them
4842 # from the output so that they don't get included in the library
4844 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4849 # FIXME: insert proper C++ library support
4850 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4853 # FIXME: insert proper C++ library support
4854 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4857 case $cc_basename in
4859 # FIXME: insert proper C++ library support
4860 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4863 # FIXME: insert proper C++ library support
4864 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4869 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4870 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4872 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4873 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4874 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4876 # Workaround some broken pre-1.5 toolchains
4877 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
4880 # C++ shared libraries are fairly broken
4881 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4884 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4885 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4886 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4887 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4888 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4889 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
4890 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4891 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4893 output_verbose_link_cmd='echo'
4896 case $cc_basename in
4898 # Kuck and Associates, Inc. (KAI) C++ Compiler
4900 # KCC will only create a shared library if the output file
4901 # ends with ".so" (or ".sl" for HP-UX), so rename the library
4902 # to its proper name (with version) after linking.
4903 _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
4905 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4906 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4908 # Archives containing C++ object files must be created using
4909 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
4910 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4914 # Rational C++ 2.4.1
4915 # FIXME: insert proper C++ library support
4916 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4919 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4920 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4922 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4923 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4925 # Commands to make compiler produce verbose output that lists
4926 # what "hidden" libraries, object files and flags are used when
4927 # linking a shared library.
4929 # There doesn't appear to be a way to prevent this compiler from
4930 # explicitly linking system object files so we need to strip them
4931 # from the output so that they don't get included in the library
4933 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4936 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4937 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4938 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4940 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4941 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4943 # Commands to make compiler produce verbose output that lists
4944 # what "hidden" libraries, object files and flags are used when
4945 # linking a shared library.
4946 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4949 # FIXME: insert proper C++ library support
4950 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4956 case $cc_basename in
4958 # Kuck and Associates, Inc. (KAI) C++ Compiler
4960 # KCC will only create a shared library if the output file
4961 # ends with ".so" (or ".sl" for HP-UX), so rename the library
4962 # to its proper name (with version) after linking.
4963 _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
4965 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4966 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4968 # Archives containing C++ object files must be created using
4969 # the KAI C++ compiler.
4970 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
4973 # Rational C++ 2.4.1
4974 # FIXME: insert proper C++ library support
4975 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4978 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4979 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4980 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
4981 echo "-hidden">> $lib.exp~
4982 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
4985 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4986 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4988 # Commands to make compiler produce verbose output that lists
4989 # what "hidden" libraries, object files and flags are used when
4990 # linking a shared library.
4992 # There doesn't appear to be a way to prevent this compiler from
4993 # explicitly linking system object files so we need to strip them
4994 # from the output so that they don't get included in the library
4996 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4999 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
5000 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5001 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5003 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5004 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5006 # Commands to make compiler produce verbose output that lists
5007 # what "hidden" libraries, object files and flags are used when
5008 # linking a shared library.
5009 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
5012 # FIXME: insert proper C++ library support
5013 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5019 # FIXME: insert proper C++ library support
5020 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5023 case $cc_basename in
5026 # FIXME: insert proper C++ library support
5027 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5031 # FIXME: insert proper C++ library support
5032 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5035 # FIXME: insert proper C++ library support
5036 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5041 case $cc_basename in
5043 # Sun C++ 4.2, 5.x and Centerline C++
5044 _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
5045 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
5046 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5047 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5048 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
5050 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5051 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5053 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5055 # The C++ compiler is used as linker so we must use $wl
5056 # flag to pass the commands to the underlying system
5057 # linker. We must also pass each convience library through
5058 # to the system linker between allextract/defaultextract.
5059 # The C++ compiler will combine linker options so we
5060 # cannot just pass the convience library names through
5062 # Supported since Solaris 2.6 (maybe 2.5.1?)
5063 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
5066 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5068 output_verbose_link_cmd='echo'
5070 # Archives containing C++ object files must be created using
5071 # "CC -xar", where "CC" is the Sun C++ compiler. This is
5072 # necessary to make sure instantiated templates are included
5074 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
5077 # Green Hills C++ Compiler
5078 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
5080 # The C++ compiler must be used to create the archive.
5081 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
5084 # GNU C++ compiler with Solaris linker
5085 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
5086 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
5087 if $CC --version | grep -v '^2\.7' > /dev/null; then
5088 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
5089 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5090 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
5092 # Commands to make compiler produce verbose output that lists
5093 # what "hidden" libraries, object files and flags are used when
5094 # linking a shared library.
5095 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
5097 # g++ 2.7 appears to require `-G' NOT `-shared' on this
5099 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
5100 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5101 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
5103 # Commands to make compiler produce verbose output that lists
5104 # what "hidden" libraries, object files and flags are used when
5105 # linking a shared library.
5106 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
5109 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
5114 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5115 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5116 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5117 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5118 runpath_var='LD_RUN_PATH'
5120 case $cc_basename in
5122 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5123 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5126 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5127 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5131 sysv5* | sco3.2v5* | sco5v6*)
5132 # Note: We can NOT use -z defs as we might desire, because we do not
5133 # link with -lc, and that would cause any symbols used from libc to
5134 # always be unresolved, which means just about no library would
5135 # ever link correctly. If we're not using GNU ld we use -z text
5136 # though, which does catch some bad symbols but isn't as heavy-handed
5138 # For security reasons, it is highly recommended that you always
5139 # use absolute paths for naming shared libraries, and exclude the
5140 # DT_RUNPATH tag from executables and libraries. But doing so
5141 # requires that you compile everything twice, which is a pain.
5142 # So that behaviour is only enabled if SCOABSPATH is set to a
5143 # non-empty value in the environment. Most likely only useful for
5144 # creating official distributions of packages.
5145 # This is a hack until libtool officially supports absolute path
5146 # names for shared libraries.
5147 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5148 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5149 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5150 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5151 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
5152 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
5153 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5154 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5155 runpath_var='LD_RUN_PATH'
5157 case $cc_basename in
5159 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5160 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5163 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5164 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5169 case $cc_basename in
5171 # NonStop-UX NCC 3.20
5172 # FIXME: insert proper C++ library support
5173 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5176 # FIXME: insert proper C++ library support
5177 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5182 # FIXME: insert proper C++ library support
5183 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5186 # FIXME: insert proper C++ library support
5187 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5190 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
5191 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5193 _LT_AC_TAGVAR(GCC, $1)="$GXX"
5194 _LT_AC_TAGVAR(LD, $1)="$LD"
5196 AC_LIBTOOL_POSTDEP_PREDEP($1)
5197 AC_LIBTOOL_PROG_COMPILER_PIC($1)
5198 AC_LIBTOOL_PROG_CC_C_O($1)
5199 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5200 AC_LIBTOOL_PROG_LD_SHLIBS($1)
5201 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5202 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5204 AC_LIBTOOL_CONFIG($1)
5211 with_gnu_ldcxx=$with_gnu_ld
5212 with_gnu_ld=$lt_save_with_gnu_ld
5213 lt_cv_path_LDCXX=$lt_cv_path_LD
5214 lt_cv_path_LD=$lt_save_path_LD
5215 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
5216 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
5217 ])# AC_LIBTOOL_LANG_CXX_CONFIG
5219 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
5220 # ------------------------------------
5221 # Figure out "hidden" library dependencies from verbose
5222 # compiler output when linking a shared library.
5223 # Parse the compiler output and extract the necessary
5224 # objects, libraries and library flags.
5225 AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
5226 dnl we can't use the lt_simple_compile_test_code here,
5227 dnl because it contains code intended for an executable,
5228 dnl not a library. It's possible we should let each
5229 dnl tag define a new lt_????_link_test_code variable,
5230 dnl but it's only used here...
5231 ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
5233 void foo (void) { a = 0; }
5235 ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
5239 Foo (void) { a = 0; }
5244 ],[$1],[F77],[cat > conftest.$ac_ext <<EOF
5252 ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
5255 public void bar (void) {
5261 dnl Parse the compiler output and extract the necessary
5262 dnl objects, libraries and library flags.
5263 if AC_TRY_EVAL(ac_compile); then
5264 # Parse the compiler output and extract the necessary
5265 # objects, libraries and library flags.
5267 # Sentinel used to keep track of whether or not we are before
5268 # the conftest object file.
5269 pre_test_object_deps_done=no
5271 # The `*' in the case matches for architectures that use `case' in
5272 # $output_verbose_cmd can trigger glob expansion during the loop
5273 # eval without this substitution.
5274 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
5276 for p in `eval $output_verbose_link_cmd`; do
5280 # Some compilers place space between "-{L,R}" and the path.
5283 || test $p = "-R"; then
5290 if test "$pre_test_object_deps_done" = no; then
5293 # Internal compiler library paths should come after those
5294 # provided the user. The postdeps already come after the
5295 # user supplied libs so there is no need to process them.
5296 if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
5297 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
5299 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
5302 # The "-l" case would never come before the object being
5303 # linked, so don't bother handling this case.
5306 if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
5307 _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
5309 _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
5315 # This assumes that the test object file only shows up
5316 # once in the compiler output.
5317 if test "$p" = "conftest.$objext"; then
5318 pre_test_object_deps_done=yes
5322 if test "$pre_test_object_deps_done" = no; then
5323 if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
5324 _LT_AC_TAGVAR(predep_objects, $1)="$p"
5326 _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
5329 if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
5330 _LT_AC_TAGVAR(postdep_objects, $1)="$p"
5332 _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
5337 *) ;; # Ignore the rest.
5345 echo "libtool.m4: error: problem compiling $1 test program"
5348 $rm -f confest.$objext
5350 # PORTME: override above test on systems where it is broken
5354 # Interix 3.5 installs completely hosed .la files for C++, so rather than
5355 # hack all around it, let's just trust "g++" to DTRT.
5356 _LT_AC_TAGVAR(predep_objects,$1)=
5357 _LT_AC_TAGVAR(postdep_objects,$1)=
5358 _LT_AC_TAGVAR(postdeps,$1)=
5362 case $cc_basename in
5364 # Adding this requires a known-good setup of shared libraries for
5365 # Sun compiler versions before 5.6, else PIC objects from an old
5366 # archive will be linked into the output, leading to subtle bugs.
5367 _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
5374 case " $_LT_AC_TAGVAR(postdeps, $1) " in
5375 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
5377 ])# AC_LIBTOOL_POSTDEP_PREDEP
5379 # AC_LIBTOOL_LANG_F77_CONFIG
5380 # --------------------------
5381 # Ensure that the configuration vars for the C compiler are
5382 # suitably defined. Those variables are subsequently used by
5383 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5384 AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
5385 AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
5386 [AC_REQUIRE([AC_PROG_F77])
5387 AC_LANG_PUSH(Fortran 77)
5389 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5390 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5391 _LT_AC_TAGVAR(always_export_symbols, $1)=no
5392 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5393 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5394 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5395 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5396 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5397 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5398 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5399 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
5400 _LT_AC_TAGVAR(module_cmds, $1)=
5401 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
5402 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5403 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5404 _LT_AC_TAGVAR(no_undefined_flag, $1)=
5405 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5406 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5408 # Source file extension for f77 test sources.
5411 # Object file extension for compiled f77 test sources.
5413 _LT_AC_TAGVAR(objext, $1)=$objext
5415 # Code to be used in simple compile tests
5416 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
5418 # Code to be used in simple link tests
5419 lt_simple_link_test_code=" program t\n end\n"
5421 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
5424 # save warnings/boilerplate of simple test code
5425 _LT_COMPILER_BOILERPLATE
5426 _LT_LINKER_BOILERPLATE
5428 # Allow CC to be a program name with arguments.
5432 _LT_AC_TAGVAR(compiler, $1)=$CC
5433 _LT_CC_BASENAME([$compiler])
5435 AC_MSG_CHECKING([if libtool supports shared libraries])
5436 AC_MSG_RESULT([$can_build_shared])
5438 AC_MSG_CHECKING([whether to build shared libraries])
5439 test "$can_build_shared" = "no" && enable_shared=no
5441 # On AIX, shared libraries and static libraries use the same namespace, and
5442 # are all built from PIC.
5445 test "$enable_shared" = yes && enable_static=no
5446 if test -n "$RANLIB"; then
5447 archive_cmds="$archive_cmds~\$RANLIB \$lib"
5448 postinstall_cmds='$RANLIB $lib'
5452 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5453 test "$enable_shared" = yes && enable_static=no
5457 AC_MSG_RESULT([$enable_shared])
5459 AC_MSG_CHECKING([whether to build static libraries])
5460 # Make sure either enable_shared or enable_static is yes.
5461 test "$enable_shared" = yes || enable_static=yes
5462 AC_MSG_RESULT([$enable_static])
5464 _LT_AC_TAGVAR(GCC, $1)="$G77"
5465 _LT_AC_TAGVAR(LD, $1)="$LD"
5467 AC_LIBTOOL_PROG_COMPILER_PIC($1)
5468 AC_LIBTOOL_PROG_CC_C_O($1)
5469 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5470 AC_LIBTOOL_PROG_LD_SHLIBS($1)
5471 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5472 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5474 AC_LIBTOOL_CONFIG($1)
5478 ])# AC_LIBTOOL_LANG_F77_CONFIG
5481 # AC_LIBTOOL_LANG_GCJ_CONFIG
5482 # --------------------------
5483 # Ensure that the configuration vars for the C compiler are
5484 # suitably defined. Those variables are subsequently used by
5485 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5486 AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
5487 AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
5490 # Source file extension for Java test sources.
5493 # Object file extension for compiled Java test sources.
5495 _LT_AC_TAGVAR(objext, $1)=$objext
5497 # Code to be used in simple compile tests
5498 lt_simple_compile_test_code="class foo {}\n"
5500 # Code to be used in simple link tests
5501 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
5503 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
5506 # save warnings/boilerplate of simple test code
5507 _LT_COMPILER_BOILERPLATE
5508 _LT_LINKER_BOILERPLATE
5510 # Allow CC to be a program name with arguments.
5514 _LT_AC_TAGVAR(compiler, $1)=$CC
5515 _LT_CC_BASENAME([$compiler])
5517 # GCJ did not exist at the time GCC didn't implicitly link libc in.
5518 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5520 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5522 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
5523 AC_LIBTOOL_PROG_COMPILER_PIC($1)
5524 AC_LIBTOOL_PROG_CC_C_O($1)
5525 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5526 AC_LIBTOOL_PROG_LD_SHLIBS($1)
5527 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5528 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5530 AC_LIBTOOL_CONFIG($1)
5534 ])# AC_LIBTOOL_LANG_GCJ_CONFIG
5537 # AC_LIBTOOL_LANG_RC_CONFIG
5538 # -------------------------
5539 # Ensure that the configuration vars for the Windows resource compiler are
5540 # suitably defined. Those variables are subsequently used by
5541 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5542 AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
5543 AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
5546 # Source file extension for RC test sources.
5549 # Object file extension for compiled RC test sources.
5551 _LT_AC_TAGVAR(objext, $1)=$objext
5553 # Code to be used in simple compile tests
5554 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
5556 # Code to be used in simple link tests
5557 lt_simple_link_test_code="$lt_simple_compile_test_code"
5559 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
5562 # save warnings/boilerplate of simple test code
5563 _LT_COMPILER_BOILERPLATE
5564 _LT_LINKER_BOILERPLATE
5566 # Allow CC to be a program name with arguments.
5570 _LT_AC_TAGVAR(compiler, $1)=$CC
5571 _LT_CC_BASENAME([$compiler])
5572 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
5574 AC_LIBTOOL_CONFIG($1)
5578 ])# AC_LIBTOOL_LANG_RC_CONFIG
5581 # AC_LIBTOOL_CONFIG([TAGNAME])
5582 # ----------------------------
5583 # If TAGNAME is not passed, then create an initial libtool script
5584 # with a default configuration from the untagged config vars. Otherwise
5585 # add code to config.status for appending the configuration named by
5586 # TAGNAME from the matching tagged config vars.
5587 AC_DEFUN([AC_LIBTOOL_CONFIG],
5588 [# The else clause should only fire when bootstrapping the
5589 # libtool distribution, otherwise you forgot to ship ltmain.sh
5590 # with your package, and you will get complaints that there are
5591 # no rules to generate ltmain.sh.
5592 if test -f "$ltmain"; then
5593 # See if we are running on zsh, and set the options which allow our commands through
5594 # without removal of \ escapes.
5595 if test -n "${ZSH_VERSION+set}" ; then
5596 setopt NO_GLOB_SUBST
5598 # Now quote all the things that may contain metacharacters while being
5599 # careful not to overquote the AC_SUBSTed values. We take copies of the
5600 # variables and quote the copies for generation of the libtool script.
5601 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
5603 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
5604 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
5605 deplibs_check_method reload_flag reload_cmds need_locks \
5606 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
5607 lt_cv_sys_global_symbol_to_c_name_address \
5608 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
5609 old_postinstall_cmds old_postuninstall_cmds \
5610 _LT_AC_TAGVAR(compiler, $1) \
5611 _LT_AC_TAGVAR(CC, $1) \
5612 _LT_AC_TAGVAR(LD, $1) \
5613 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
5614 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
5615 _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
5616 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
5617 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
5618 _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
5619 _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
5620 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
5621 _LT_AC_TAGVAR(old_archive_cmds, $1) \
5622 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
5623 _LT_AC_TAGVAR(predep_objects, $1) \
5624 _LT_AC_TAGVAR(postdep_objects, $1) \
5625 _LT_AC_TAGVAR(predeps, $1) \
5626 _LT_AC_TAGVAR(postdeps, $1) \
5627 _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
5628 _LT_AC_TAGVAR(archive_cmds, $1) \
5629 _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
5630 _LT_AC_TAGVAR(postinstall_cmds, $1) \
5631 _LT_AC_TAGVAR(postuninstall_cmds, $1) \
5632 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
5633 _LT_AC_TAGVAR(allow_undefined_flag, $1) \
5634 _LT_AC_TAGVAR(no_undefined_flag, $1) \
5635 _LT_AC_TAGVAR(export_symbols_cmds, $1) \
5636 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
5637 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
5638 _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
5639 _LT_AC_TAGVAR(hardcode_automatic, $1) \
5640 _LT_AC_TAGVAR(module_cmds, $1) \
5641 _LT_AC_TAGVAR(module_expsym_cmds, $1) \
5642 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
5643 _LT_AC_TAGVAR(exclude_expsyms, $1) \
5644 _LT_AC_TAGVAR(include_expsyms, $1); do
5647 _LT_AC_TAGVAR(old_archive_cmds, $1) | \
5648 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
5649 _LT_AC_TAGVAR(archive_cmds, $1) | \
5650 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
5651 _LT_AC_TAGVAR(module_cmds, $1) | \
5652 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
5653 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
5654 _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
5655 extract_expsyms_cmds | reload_cmds | finish_cmds | \
5656 postinstall_cmds | postuninstall_cmds | \
5657 old_postinstall_cmds | old_postuninstall_cmds | \
5658 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5659 # Double-quote double-evaled strings.
5660 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5663 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5669 *'\[$]0 --fallback-echo"')
5670 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
5675 [cfgfile="${ofile}T"
5676 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
5678 AC_MSG_NOTICE([creating $ofile])],
5681 cat <<__EOF__ >> "$cfgfile"
5685 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5686 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5687 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
5689 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
5690 # Free Software Foundation, Inc.
5692 # This file is part of GNU Libtool:
5693 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5695 # This program is free software; you can redistribute it and/or modify
5696 # it under the terms of the GNU General Public License as published by
5697 # the Free Software Foundation; either version 2 of the License, or
5698 # (at your option) any later version.
5700 # This program is distributed in the hope that it will be useful, but
5701 # WITHOUT ANY WARRANTY; without even the implied warranty of
5702 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5703 # General Public License for more details.
5705 # You should have received a copy of the GNU General Public License
5706 # along with this program; if not, write to the Free Software
5707 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
5709 # As a special exception to the GNU General Public License, if you
5710 # distribute this file as part of a program that contains a
5711 # configuration script generated by Autoconf, you may include it under
5712 # the same distribution terms that you use for the rest of that program.
5714 # A sed program that does not truncate output.
5717 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
5718 Xsed="$SED -e 1s/^X//"
5720 # The HP-UX ksh and POSIX shell print the target directory to stdout
5722 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5724 # The names of the tagged configurations supported by this script.
5727 # ### BEGIN LIBTOOL CONFIG],
5728 [# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
5730 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5732 # Shell to use when invoking shell scripts.
5735 # Whether or not to build shared libraries.
5736 build_libtool_libs=$enable_shared
5738 # Whether or not to build static libraries.
5739 build_old_libs=$enable_static
5741 # Whether or not to add -lc for building shared libraries.
5742 build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
5744 # Whether or not to disallow shared libs when runtime libs are static
5745 allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
5747 # Whether or not to optimize for fast installation.
5748 fast_install=$enable_fast_install
5751 host_alias=$host_alias
5756 build_alias=$build_alias
5760 # An echo program that does not interpret backslashes.
5765 AR_FLAGS=$lt_AR_FLAGS
5770 # LTCC compiler flags.
5771 LTCFLAGS=$lt_LTCFLAGS
5773 # A language-specific compiler.
5774 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
5776 # Is the compiler the GNU C compiler?
5777 with_gcc=$_LT_AC_TAGVAR(GCC, $1)
5782 # The linker used to build libraries.
5783 LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
5785 # Whether we need hard or soft links.
5788 # A BSD-compatible nm program.
5791 # A symbol stripping program
5794 # Used to examine libraries when file_magic_cmd begins "file"
5795 MAGIC_CMD=$MAGIC_CMD
5797 # Used on cygwin: DLL creation program.
5800 # Used on cygwin: object dumper.
5803 # Used on cygwin: assembler.
5806 # The name of the directory that contains temporary libtool files.
5809 # How to create reloadable object files.
5810 reload_flag=$lt_reload_flag
5811 reload_cmds=$lt_reload_cmds
5813 # How to pass a linker flag through the compiler.
5814 wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
5816 # Object file suffix (normally "o").
5819 # Old archive suffix (normally "a").
5822 # Shared library suffix (normally ".so").
5823 shrext_cmds='$shrext_cmds'
5825 # Executable file suffix (normally "").
5828 # Additional compiler flags for building library objects.
5829 pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5832 # What is the maximum length of a command?
5833 max_cmd_len=$lt_cv_sys_max_cmd_len
5835 # Does compiler simultaneously support -c and -o options?
5836 compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
5838 # Must we lock files when doing compilation?
5839 need_locks=$lt_need_locks
5841 # Do we need the lib prefix for modules?
5842 need_lib_prefix=$need_lib_prefix
5844 # Do we need a version for libraries?
5845 need_version=$need_version
5847 # Whether dlopen is supported.
5848 dlopen_support=$enable_dlopen
5850 # Whether dlopen of programs is supported.
5851 dlopen_self=$enable_dlopen_self
5853 # Whether dlopen of statically linked programs is supported.
5854 dlopen_self_static=$enable_dlopen_self_static
5856 # Compiler flag to prevent dynamic linking.
5857 link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
5859 # Compiler flag to turn off builtin functions.
5860 no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
5862 # Compiler flag to allow reflexive dlopens.
5863 export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
5865 # Compiler flag to generate shared objects directly from archives.
5866 whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
5868 # Compiler flag to generate thread-safe objects.
5869 thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
5871 # Library versioning type.
5872 version_type=$version_type
5874 # Format of library name prefix.
5875 libname_spec=$lt_libname_spec
5877 # List of archive names. First name is the real one, the rest are links.
5878 # The last name is the one that the linker finds with -lNAME.
5879 library_names_spec=$lt_library_names_spec
5881 # The coded name of the library, if different from the real name.
5882 soname_spec=$lt_soname_spec
5884 # Commands used to build and install an old-style archive.
5886 old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
5887 old_postinstall_cmds=$lt_old_postinstall_cmds
5888 old_postuninstall_cmds=$lt_old_postuninstall_cmds
5890 # Create an old-style archive from a shared archive.
5891 old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
5893 # Create a temporary old-style archive to link instead of a shared archive.
5894 old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
5896 # Commands used to build and install a shared archive.
5897 archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
5898 archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
5899 postinstall_cmds=$lt_postinstall_cmds
5900 postuninstall_cmds=$lt_postuninstall_cmds
5902 # Commands used to build a loadable module (assumed same as above if empty)
5903 module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
5904 module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
5906 # Commands to strip libraries.
5907 old_striplib=$lt_old_striplib
5908 striplib=$lt_striplib
5910 # Dependencies to place before the objects being linked to create a
5912 predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
5914 # Dependencies to place after the objects being linked to create a
5916 postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
5918 # Dependencies to place before the objects being linked to create a
5920 predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
5922 # Dependencies to place after the objects being linked to create a
5924 postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
5926 # The library search path used internally by the compiler when linking
5928 compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
5930 # Method to check whether dependent libraries are shared objects.
5931 deplibs_check_method=$lt_deplibs_check_method
5933 # Command to use when deplibs_check_method == file_magic.
5934 file_magic_cmd=$lt_file_magic_cmd
5936 # Flag that allows shared libraries with undefined symbols to be built.
5937 allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
5939 # Flag that forces no undefined symbols.
5940 no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
5942 # Commands used to finish a libtool library installation in a directory.
5943 finish_cmds=$lt_finish_cmds
5945 # Same as above, but a single script fragment to be evaled but not shown.
5946 finish_eval=$lt_finish_eval
5948 # Take the output of nm and produce a listing of raw symbols and C names.
5949 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
5951 # Transform the output of nm in a proper C declaration
5952 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
5954 # Transform the output of nm in a C name address pair
5955 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
5957 # This is the shared library runtime path variable.
5958 runpath_var=$runpath_var
5960 # This is the shared library path variable.
5961 shlibpath_var=$shlibpath_var
5963 # Is shlibpath searched before the hard-coded library search path?
5964 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5966 # How to hardcode a shared library path into an executable.
5967 hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
5969 # Whether we should hardcode library paths into libraries.
5970 hardcode_into_libs=$hardcode_into_libs
5972 # Flag to hardcode \$libdir into a binary during linking.
5973 # This must work even if \$libdir does not exist.
5974 hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
5976 # If ld is used when linking, flag to hardcode \$libdir into
5977 # a binary during linking. This must work even if \$libdir does
5979 hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
5981 # Whether we need a single -rpath flag with a separated argument.
5982 hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
5984 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
5986 hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
5988 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5990 hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
5992 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5993 # the resulting binary.
5994 hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
5996 # Set to yes if building a shared library automatically hardcodes DIR into the library
5997 # and all subsequent libraries and executables linked against it.
5998 hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
6000 # Variables whose values should be saved in libtool wrapper scripts and
6001 # restored at relink time.
6002 variables_saved_for_relink="$variables_saved_for_relink"
6004 # Whether libtool must link a program against all its dependency libraries.
6005 link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
6007 # Compile-time system search path for libraries
6008 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6010 # Run-time system search path for libraries
6011 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6013 # Fix the shell variable \$srcfile for the compiler.
6014 fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
6016 # Set to yes if exported symbols are required.
6017 always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
6019 # The commands to list exported symbols.
6020 export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
6022 # The commands to extract the exported symbol list from a shared archive.
6023 extract_expsyms_cmds=$lt_extract_expsyms_cmds
6025 # Symbols that should not be listed in the preloaded symbols.
6026 exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
6028 # Symbols that must always be exported.
6029 include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
6032 [# ### END LIBTOOL CONFIG],
6033 [# ### END LIBTOOL TAG CONFIG: $tagname])
6040 cat <<\EOF >> "$cfgfile"
6042 # AIX sometimes has problems with the GCC collect2 program. For some
6043 # reason, if we set the COLLECT_NAMES environment variable, the problems
6044 # vanish in a puff of smoke.
6045 if test "X${COLLECT_NAMES+set}" != Xset; then
6047 export COLLECT_NAMES
6053 # We use sed instead of cat because bash on DJGPP gets confused if
6054 # if finds mixed CR/LF and LF-only lines. Since sed operates in
6055 # text mode, it properly converts lines to CR/LF. This bash problem
6056 # is reportedly fixed, but why not run on old versions too?
6057 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
6059 mv -f "$cfgfile" "$ofile" || \
6060 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
6064 # If there is no Makefile yet, we rely on a make rule to execute
6065 # `config.status --recheck' to rerun these tests and create the
6066 # libtool script then.
6067 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
6068 if test -f "$ltmain_in"; then
6069 test -f Makefile && make "$ltmain"
6072 ])# AC_LIBTOOL_CONFIG
6075 # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
6076 # -------------------------------------------
6077 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
6078 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
6080 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6082 if test "$GCC" = yes; then
6083 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6085 AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
6086 lt_cv_prog_compiler_rtti_exceptions,
6087 [-fno-rtti -fno-exceptions], [],
6088 [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
6090 ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
6093 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
6094 # ---------------------------------
6095 AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
6096 [AC_REQUIRE([AC_CANONICAL_HOST])
6097 AC_REQUIRE([AC_PROG_NM])
6098 AC_REQUIRE([AC_OBJEXT])
6099 # Check for command to grab the raw symbol name followed by C symbol from nm.
6100 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
6101 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
6103 # These are sane defaults that work on at least a few old systems.
6104 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6106 # Character class describing NM global symbol codes.
6107 symcode='[[BCDEGRST]]'
6109 # Regexp to match symbols that can be accessed directly from C.
6110 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
6112 # Transform an extracted symbol line into a proper C declaration
6113 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6115 # Transform an extracted symbol line into symbol name and symbol address
6116 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6118 # Define system-specific variables.
6123 cygwin* | mingw* | pw32*)
6124 symcode='[[ABCDGISTW]]'
6126 hpux*) # Its linker distinguishes data from code symbols
6127 if test "$host_cpu" = ia64; then
6128 symcode='[[ABCDEGRST]]'
6130 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6131 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6134 if test "$host_cpu" = ia64; then
6135 symcode='[[ABCDGIRSTW]]'
6136 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6137 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6141 symcode='[[BCDEGRST]]'
6144 symcode='[[BCDEGQRST]]'
6155 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6159 symcode='[[DFNSTU]]'
6163 # Handle CRLF in mingw tool chain
6167 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6171 # If we're using GNU nm, then use its standard symbol codes.
6172 case `$NM -V 2>&1` in
6173 *GNU* | *'with BFD'*)
6174 symcode='[[ABCDGIRSTW]]' ;;
6177 # Try without a prefix undercore, then with it.
6178 for ac_symprfx in "" "_"; do
6180 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6181 symxfrm="\\1 $ac_symprfx\\2 \\2"
6183 # Write the raw and C identifiers.
6184 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6186 # Check to see that the pipe works correctly.
6190 cat > conftest.$ac_ext <<EOF
6195 void nm_test_func(){}
6199 int main(){nm_test_var='a';nm_test_func();return(0);}
6202 if AC_TRY_EVAL(ac_compile); then
6203 # Now try to grab the symbols.
6205 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
6206 # Try sorting and uniquifying the output.
6207 if sort "$nlist" | uniq > "$nlist"T; then
6208 mv -f "$nlist"T "$nlist"
6213 # Make sure that we snagged all the symbols we need.
6214 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6215 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6216 cat <<EOF > conftest.$ac_ext
6222 # Now generate the symbol file.
6223 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6225 cat <<EOF >> conftest.$ac_ext
6226 #if defined (__STDC__) && __STDC__
6227 # define lt_ptr_t void *
6229 # define lt_ptr_t char *
6233 /* The mapping between symbol names and symbols. */
6238 lt_preloaded_symbols[[]] =
6241 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6242 cat <<\EOF >> conftest.$ac_ext
6250 # Now try linking the two files.
6251 mv conftest.$ac_objext conftstm.$ac_objext
6252 lt_save_LIBS="$LIBS"
6253 lt_save_CFLAGS="$CFLAGS"
6254 LIBS="conftstm.$ac_objext"
6255 CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
6256 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
6259 LIBS="$lt_save_LIBS"
6260 CFLAGS="$lt_save_CFLAGS"
6262 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
6265 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
6268 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
6271 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
6272 cat conftest.$ac_ext >&5
6274 rm -f conftest* conftst*
6276 # Do not use the global_symbol_pipe unless it works.
6277 if test "$pipe_works" = yes; then
6280 lt_cv_sys_global_symbol_pipe=
6284 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6285 lt_cv_sys_global_symbol_to_cdecl=
6287 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6288 AC_MSG_RESULT(failed)
6292 ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
6295 # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
6296 # ---------------------------------------
6297 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
6298 [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
6299 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6300 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
6302 AC_MSG_CHECKING([for $compiler option to produce PIC])
6304 # C++ specific cases for pic, static, wl, etc.
6305 if test "$GXX" = yes; then
6306 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6307 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6311 # All AIX code is PIC.
6312 if test "$host_cpu" = ia64; then
6313 # AIX 5 now supports IA64 processor
6314 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6318 # FIXME: we need at least 68020 code to build shared libraries, but
6319 # adding the `-m68020' flag to GCC prevents building anything better,
6321 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
6323 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6324 # PIC is the default for these OSes.
6326 mingw* | os2* | pw32*)
6327 # This hack is so that the source file can tell whether it is being
6328 # built for inclusion in a dll (and should export symbols for example).
6329 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
6331 darwin* | rhapsody*)
6332 # PIC is the default on this platform
6333 # Common symbols not allowed in MH_DYLIB files
6334 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
6337 # DJGPP does not support shared libraries at all
6338 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6341 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6342 # Instead, we relocate shared libraries at runtime.
6345 if test -d /usr/nec; then
6346 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
6350 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6356 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6361 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6367 # All AIX code is PIC.
6368 if test "$host_cpu" = ia64; then
6369 # AIX 5 now supports IA64 processor
6370 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6372 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
6376 case $cc_basename in
6378 # Green Hills C++ Compiler
6379 # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
6384 # PIC is the default on this platform
6385 # Common symbols not allowed in MH_DYLIB files
6386 case $cc_basename in
6388 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
6389 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6394 case $cc_basename in
6396 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6399 # Green Hills C++ Compiler
6400 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6406 freebsd* | kfreebsd*-gnu | dragonfly*)
6407 # FreeBSD uses GNU C++
6409 hpux9* | hpux10* | hpux11*)
6410 case $cc_basename in
6412 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6413 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6414 if test "$host_cpu" != ia64; then
6415 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6419 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6420 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6426 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6435 # This is c89, which is MS Visual C++ (no shared libs)
6436 # Anyone wants to do a port?
6438 irix5* | irix6* | nonstopux*)
6439 case $cc_basename in
6441 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6442 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6443 # CC pic flag -KPIC is the default.
6450 case $cc_basename in
6453 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
6454 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6458 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6459 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6460 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6463 # Portland Group C++ compiler.
6464 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6465 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6466 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6470 # Make sure the PIC flag is empty. It appears that all Alpha
6471 # Linux and Compaq Tru64 Unix objects are PIC.
6472 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6473 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6484 case $cc_basename in
6486 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
6494 osf3* | osf4* | osf5*)
6495 case $cc_basename in
6497 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
6500 # Rational C++ 2.4.1
6501 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6504 # Digital/Compaq C++
6505 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6506 # Make sure the PIC flag is empty. It appears that all Alpha
6507 # Linux and Compaq Tru64 Unix objects are PIC.
6508 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6509 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6518 case $cc_basename in
6520 # Sun C++ 4.2, 5.x and Centerline C++
6521 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6522 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6523 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6526 # Green Hills C++ Compiler
6527 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6534 case $cc_basename in
6537 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6538 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6542 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6549 case $cc_basename in
6551 # NonStop-UX NCC 3.20
6552 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6558 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6559 case $cc_basename in
6561 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6562 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6563 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6570 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6576 if test "$GCC" = yes; then
6577 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6578 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6582 # All AIX code is PIC.
6583 if test "$host_cpu" = ia64; then
6584 # AIX 5 now supports IA64 processor
6585 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6590 # FIXME: we need at least 68020 code to build shared libraries, but
6591 # adding the `-m68020' flag to GCC prevents building anything better,
6593 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
6596 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6597 # PIC is the default for these OSes.
6600 mingw* | pw32* | os2*)
6601 # This hack is so that the source file can tell whether it is being
6602 # built for inclusion in a dll (and should export symbols for example).
6603 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
6606 darwin* | rhapsody*)
6607 # PIC is the default on this platform
6608 # Common symbols not allowed in MH_DYLIB files
6609 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
6613 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6614 # Instead, we relocate shared libraries at runtime.
6618 # Just because we use GCC doesn't mean we suddenly get shared libraries
6619 # on systems that don't support them.
6620 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6625 if test -d /usr/nec; then
6626 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
6631 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6638 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6644 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6648 # PORTME Check for flag to pass linker flags through the system compiler.
6651 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6652 if test "$host_cpu" = ia64; then
6653 # AIX 5 now supports IA64 processor
6654 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6656 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
6660 # PIC is the default on this platform
6661 # Common symbols not allowed in MH_DYLIB files
6662 case $cc_basename in
6664 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
6665 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6670 mingw* | pw32* | os2*)
6671 # This hack is so that the source file can tell whether it is being
6672 # built for inclusion in a dll (and should export symbols for example).
6673 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
6676 hpux9* | hpux10* | hpux11*)
6677 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6678 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6685 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6688 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6689 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6692 irix5* | irix6* | nonstopux*)
6693 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6694 # PIC (with -KPIC) is the default.
6695 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6699 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6700 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6704 case $cc_basename in
6706 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6707 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6708 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6710 pgcc* | pgf77* | pgf90* | pgf95*)
6711 # Portland Group compilers (*not* the Pentium gcc compiler,
6712 # which looks to be a dead project)
6713 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6714 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6715 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6718 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6719 # All Alpha code is PIC.
6720 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6725 osf3* | osf4* | osf5*)
6726 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6727 # All OSF/1 code is PIC.
6728 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6732 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6733 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6734 case $cc_basename in
6736 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
6738 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
6743 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6744 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6745 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6748 sysv4 | sysv4.2uw2* | sysv4.3*)
6749 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6750 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6751 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6755 if test -d /usr/nec ;then
6756 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
6757 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6761 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6762 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6763 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6764 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6768 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6769 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6773 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6774 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6778 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6783 AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
6786 # Check to make sure the PIC flag actually works.
6788 if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
6789 AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
6790 _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
6791 [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
6792 [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
6794 *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
6796 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6797 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
6800 # For platforms which do not support PIC, -DPIC is meaningless:
6802 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6805 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
6810 # Check to make sure the static flag actually works.
6812 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
6813 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
6814 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
6815 $lt_tmp_static_flag,
6817 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
6821 # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
6822 # ------------------------------------
6823 # See if the linker supports building shared libraries.
6824 AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
6825 [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6827 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6830 # If we're using GNU nm, then we don't want the "-C" option.
6831 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6832 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6833 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
6835 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
6839 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6842 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
6845 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6850 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
6851 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6852 _LT_AC_TAGVAR(archive_cmds, $1)=
6853 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
6854 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
6855 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
6856 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6857 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6858 _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
6859 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6860 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6861 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6862 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6863 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6864 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6865 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
6866 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
6867 _LT_AC_TAGVAR(module_cmds, $1)=
6868 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
6869 _LT_AC_TAGVAR(always_export_symbols, $1)=no
6870 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6871 # include_expsyms should be a list of space-separated symbols to be *always*
6872 # included in the symbol list
6873 _LT_AC_TAGVAR(include_expsyms, $1)=
6874 # exclude_expsyms can be an extended regexp of symbols to exclude
6875 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6876 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6877 # as well as any symbol that contains `d'.
6878 _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
6879 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6880 # platforms (ab)use it in PIC code, but their linkers get confused if
6881 # the symbol is explicitly referenced. Since portable code cannot
6882 # rely on this symbol name, it's probably fine to never include it in
6883 # preloaded symbol tables.
6884 extract_expsyms_cmds=
6885 # Just being paranoid about ensuring that cc_basename is set.
6886 _LT_CC_BASENAME([$compiler])
6888 cygwin* | mingw* | pw32*)
6889 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6890 # When not using gcc, we currently assume that we are using
6891 # Microsoft Visual C++.
6892 if test "$GCC" != yes; then
6897 # we just hope/assume this is gcc and not c89 (= MSVC++)
6905 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
6906 if test "$with_gnu_ld" = yes; then
6907 # If archive_cmds runs LD, not CC, wlarc should be empty
6910 # Set some defaults for GNU ld with shared library support. These
6911 # are reset later if shared libraries are not supported. Putting them
6912 # here allows them to be overridden if necessary.
6913 runpath_var=LD_RUN_PATH
6914 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6915 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6916 # ancient GNU ld didn't support --whole-archive et. al.
6917 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6918 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6920 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6922 supports_anon_versioning=no
6923 case `$LD -v 2>/dev/null` in
6924 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
6925 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6926 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6927 *\ 2.11.*) ;; # other 2.11 versions
6928 *) supports_anon_versioning=yes ;;
6931 # See if GNU ld supports shared libraries.
6933 aix3* | aix4* | aix5*)
6934 # On AIX/PPC, the GNU linker is very broken
6935 if test "$host_cpu" != ia64; then
6936 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6939 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6940 *** to be unable to reliably create shared libraries on AIX.
6941 *** Therefore, libtool is disabling shared libraries support. If you
6942 *** really care for shared libraries, you may want to modify your PATH
6943 *** so that a non-GNU linker is found, and then restart.
6950 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6951 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6952 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6954 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6955 # that the semantics of dynamic libraries on AmigaOS, at least up
6956 # to version 4, is to share data among multiple programs linked
6957 # with the same dynamic library. Since this doesn't match the
6958 # behavior of shared libraries on other platforms, we can't use
6960 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6964 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6965 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6966 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6967 # support --undefined. This deserves some investigation. FIXME
6968 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6970 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6974 cygwin* | mingw* | pw32*)
6975 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6976 # as there is no search path for DLLs.
6977 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6978 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6979 _LT_AC_TAGVAR(always_export_symbols, $1)=no
6980 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6981 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
6983 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6984 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6985 # If the export-symbols file already is a .def file (1st line
6986 # is EXPORTS), use it as is; otherwise, prepend...
6987 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6988 cp $export_symbols $output_objdir/$soname.def;
6990 echo EXPORTS > $output_objdir/$soname.def;
6991 cat $export_symbols >> $output_objdir/$soname.def;
6993 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6995 _LT_AC_TAGVAR(ld_shlibs, $1)=no
7000 _LT_AC_TAGVAR(hardcode_direct, $1)=no
7001 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7002 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7003 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7004 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7005 # Instead, shared libraries are loaded at an image base (0x10000000 by
7006 # default) and relocated if they conflict, which is a slow very memory
7007 # consuming and fragmenting process. To avoid this, we pick a random,
7008 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7009 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7010 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7011 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7015 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7017 case $cc_basename,$host_cpu in
7018 pgcc*) # Portland Group C compiler
7019 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7020 tmp_addflag=' $pic_flag'
7022 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7023 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7024 tmp_addflag=' $pic_flag -Mnomain' ;;
7025 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7026 tmp_addflag=' -i_dynamic' ;;
7027 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7028 tmp_addflag=' -i_dynamic -nofor_main' ;;
7029 ifc* | ifort*) # Intel Fortran compiler
7030 tmp_addflag=' -nofor_main' ;;
7032 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7034 if test $supports_anon_versioning = yes; then
7035 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
7036 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7037 $echo "local: *; };" >> $output_objdir/$libname.ver~
7038 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7041 _LT_AC_TAGVAR(ld_shlibs, $1)=no
7046 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7047 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7050 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7051 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7056 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7057 _LT_AC_TAGVAR(ld_shlibs, $1)=no
7060 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7061 *** create shared libraries on Solaris systems. Therefore, libtool
7062 *** is disabling shared libraries support. We urge you to upgrade GNU
7063 *** binutils to release 2.9.1 or newer. Another option is to modify
7064 *** your PATH or compiler configuration so that the native linker is
7065 *** used, and then restart.
7068 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7069 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7070 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7072 _LT_AC_TAGVAR(ld_shlibs, $1)=no
7076 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7077 case `$LD -v 2>&1` in
7078 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
7079 _LT_AC_TAGVAR(ld_shlibs, $1)=no
7082 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7083 *** reliably create shared libraries on SCO systems. Therefore, libtool
7084 *** is disabling shared libraries support. We urge you to upgrade GNU
7085 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7086 *** your PATH or compiler configuration so that the native linker is
7087 *** used, and then restart.
7092 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7093 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7094 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7095 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7097 _LT_AC_TAGVAR(ld_shlibs, $1)=no
7104 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7106 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7107 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7111 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7112 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7113 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7115 _LT_AC_TAGVAR(ld_shlibs, $1)=no
7120 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
7122 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
7123 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
7124 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
7127 # PORTME fill in a description of your system's linker (not GNU ld)
7130 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7131 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
7132 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
7133 # Note: this linker hardcodes the directories in LIBPATH if there
7134 # are no directories specified by -L.
7135 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7136 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7137 # Neither direct hardcoding nor static linking is supported with a
7139 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
7144 if test "$host_cpu" = ia64; then
7145 # On IA64, the linker does run time linking by default, so we don't
7146 # have to do anything special.
7147 aix_use_runtimelinking=no
7148 exp_sym_flag='-Bexport'
7151 # If we're using GNU nm, then we don't want the "-C" option.
7152 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7153 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7154 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
7156 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
7158 aix_use_runtimelinking=no
7160 # Test if we are trying to use run time linking or normal
7161 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7162 # need to do runtime linking.
7163 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
7164 for ld_flag in $LDFLAGS; do
7165 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7166 aix_use_runtimelinking=yes
7173 exp_sym_flag='-bexport'
7174 no_entry_flag='-bnoentry'
7177 # When large executables or shared objects are built, AIX ld can
7178 # have problems creating the table of contents. If linking a library
7179 # or program results in "error TOC overflow" add -mminimal-toc to
7180 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7181 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7183 _LT_AC_TAGVAR(archive_cmds, $1)=''
7184 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7185 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
7186 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7188 if test "$GCC" = yes; then
7189 case $host_os in aix4.[[012]]|aix4.[[012]].*)
7190 # We only want to do this on AIX 4.2 and lower, the check
7191 # below for broken collect2 doesn't work under 4.3+
7192 collect2name=`${CC} -print-prog-name=collect2`
7193 if test -f "$collect2name" && \
7194 strings "$collect2name" | grep resolve_lib_name >/dev/null
7196 # We have reworked collect2
7197 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7199 # We have old collect2
7200 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
7201 # It fails to find uninstalled libraries when the uninstalled
7202 # path is not listed in the libpath. Setting hardcode_minus_L
7203 # to unsupported forces relinking
7204 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7205 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7206 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
7210 shared_flag='-shared'
7211 if test "$aix_use_runtimelinking" = yes; then
7212 shared_flag="$shared_flag "'${wl}-G'
7216 if test "$host_cpu" = ia64; then
7217 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7218 # chokes on -Wl,-G. The following line is correct:
7221 if test "$aix_use_runtimelinking" = yes; then
7222 shared_flag='${wl}-G'
7224 shared_flag='${wl}-bM:SRE'
7229 # It seems that -bexpall does not export symbols beginning with
7230 # underscore (_), so it is better to generate a list of symbols to export.
7231 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
7232 if test "$aix_use_runtimelinking" = yes; then
7233 # Warning - without using the other runtime loading flags (-brtl),
7234 # -berok will link without error, but may produce a broken library.
7235 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
7236 # Determine the default libpath from the value encoded in an empty executable.
7237 _LT_AC_SYS_LIBPATH_AIX
7238 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7239 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7241 if test "$host_cpu" = ia64; then
7242 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
7243 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
7244 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7246 # Determine the default libpath from the value encoded in an empty executable.
7247 _LT_AC_SYS_LIBPATH_AIX
7248 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7249 # Warning - without using the other run time loading flags,
7250 # -berok will link without error, but may produce a broken library.
7251 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
7252 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
7253 # Exported symbols can be pulled into shared objects from archives
7254 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
7255 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7256 # This is similar to how AIX traditionally builds its shared libraries.
7257 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7263 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7264 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7265 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7266 # see comment about different semantics on the GNU ld section
7267 _LT_AC_TAGVAR(ld_shlibs, $1)=no
7271 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
7274 cygwin* | mingw* | pw32*)
7275 # When not using gcc, we currently assume that we are using
7276 # Microsoft Visual C++.
7277 # hardcode_libdir_flag_spec is actually meaningless, as there is
7278 # no search path for DLLs.
7279 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
7280 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7281 # Tell ltmain to make .lib files, not .a files.
7283 # Tell ltmain to make .dll files, not .so files.
7285 # FIXME: Setting linknames here is a bad hack.
7286 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7287 # The linker will automatically build a .lib file if we build a DLL.
7288 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
7289 # FIXME: Should let the user specify the lib program.
7290 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
7291 _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
7292 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7295 darwin* | rhapsody*)
7297 rhapsody* | darwin1.[[012]])
7298 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
7301 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7302 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7304 case ${MACOSX_DEPLOYMENT_TARGET} in
7306 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7309 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
7315 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7316 _LT_AC_TAGVAR(hardcode_direct, $1)=no
7317 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
7318 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
7319 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
7320 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7321 if test "$GCC" = yes ; then
7322 output_verbose_link_cmd='echo'
7323 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7324 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7325 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7326 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7327 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7329 case $cc_basename in
7331 output_verbose_link_cmd='echo'
7332 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7333 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7334 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7335 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7336 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7339 _LT_AC_TAGVAR(ld_shlibs, $1)=no
7346 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7347 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7348 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7352 _LT_AC_TAGVAR(ld_shlibs, $1)=no
7355 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7356 # support. Future versions do this automatically, but an explicit c++rt0.o
7357 # does not break anything, and helps significantly (at the cost of a little
7360 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7361 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7362 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7363 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7366 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7368 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7369 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7370 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7371 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7374 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7375 freebsd* | kfreebsd*-gnu | dragonfly*)
7376 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7377 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7378 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7379 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7383 if test "$GCC" = yes; then
7384 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7386 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7388 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7389 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7390 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7392 # hardcode_minus_L: Not really in the search PATH,
7393 # but as the default location of the library.
7394 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7395 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7399 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7400 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7402 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7404 if test "$with_gnu_ld" = no; then
7405 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7406 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7408 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7409 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7411 # hardcode_minus_L: Not really in the search PATH,
7412 # but as the default location of the library.
7413 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7418 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7421 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7424 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7427 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7433 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7436 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7439 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7443 if test "$with_gnu_ld" = no; then
7444 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7445 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7449 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
7450 _LT_AC_TAGVAR(hardcode_direct, $1)=no
7451 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7454 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7455 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7457 # hardcode_minus_L: Not really in the search PATH,
7458 # but as the default location of the library.
7459 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7465 irix5* | irix6* | nonstopux*)
7466 if test "$GCC" = yes; then
7467 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7469 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7470 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
7472 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7473 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7474 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7478 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7479 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7481 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7483 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7484 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7485 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7489 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7490 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7491 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7492 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7493 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7497 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7498 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7499 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7500 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7501 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7502 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7503 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7506 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
7507 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7508 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7511 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7512 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7519 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7520 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7521 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7522 _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
7523 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7527 if test "$GCC" = yes; then
7528 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7529 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7531 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7532 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7534 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7535 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7538 osf4* | osf5*) # as osf3* with the addition of -msym flag
7539 if test "$GCC" = yes; then
7540 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7541 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7542 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7544 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7545 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7546 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7547 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7549 # Both c and cxx compiler support -rpath directly
7550 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7552 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7556 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
7557 if test "$GCC" = yes; then
7559 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7560 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7561 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7564 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7565 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7566 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7568 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7569 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7571 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7573 # The compiler driver will combine linker options so we
7574 # cannot just pass the convience library names through
7575 # without $wl, iff we do not link with $LD.
7576 # Luckily, gcc supports the same syntax we need for Sun Studio.
7577 # Supported since Solaris 2.6 (maybe 2.5.1?)
7580 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
7582 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7585 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7589 if test "x$host_vendor" = xsequent; then
7590 # Use $CC to link under sequent, because it throws in some extra .o
7591 # files that make .init and .fini sections work.
7592 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7594 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7596 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7597 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7598 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7599 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7603 case $host_vendor in
7605 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7606 _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
7609 ## LD is ld it makes a PLAMLIB
7610 ## CC just makes a GrossModule.
7611 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7612 _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
7613 _LT_AC_TAGVAR(hardcode_direct, $1)=no
7616 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7617 _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
7620 runpath_var='LD_RUN_PATH'
7621 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7625 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7626 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7627 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
7631 if test -d /usr/nec; then
7632 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7633 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7634 runpath_var=LD_RUN_PATH
7635 hardcode_runpath_var=yes
7636 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
7640 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
7641 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7642 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7643 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7644 runpath_var='LD_RUN_PATH'
7646 if test "$GCC" = yes; then
7647 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7648 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7650 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7651 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7655 sysv5* | sco3.2v5* | sco5v6*)
7656 # Note: We can NOT use -z defs as we might desire, because we do not
7657 # link with -lc, and that would cause any symbols used from libc to
7658 # always be unresolved, which means just about no library would
7659 # ever link correctly. If we're not using GNU ld we use -z text
7660 # though, which does catch some bad symbols but isn't as heavy-handed
7662 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7663 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7664 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7665 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7666 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7667 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
7668 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7669 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7670 runpath_var='LD_RUN_PATH'
7672 if test "$GCC" = yes; then
7673 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7674 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7676 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7677 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7682 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7683 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7684 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7688 _LT_AC_TAGVAR(ld_shlibs, $1)=no
7693 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
7694 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7697 # Do we need to explicitly link libc?
7699 case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
7701 # Assume -lc should be added
7702 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7704 if test "$enable_shared" = yes && test "$GCC" = yes; then
7705 case $_LT_AC_TAGVAR(archive_cmds, $1) in
7707 # FIXME: we may have to deal with multi-command sequences.
7710 # Test whether the compiler implicitly links with -lc since on some
7711 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7712 # to ld, don't add -lc before -lgcc.
7713 AC_MSG_CHECKING([whether -lc should be explicitly linked in])
7715 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7717 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
7720 libobjs=conftest.$ac_objext
7722 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
7723 pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
7729 lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
7730 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
7731 if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
7733 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7735 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7737 _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
7739 cat conftest.err 1>&5
7742 AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
7748 ])# AC_LIBTOOL_PROG_LD_SHLIBS
7751 # _LT_AC_FILE_LTDLL_C
7752 # -------------------
7753 # Be careful that the start marker always follows a newline.
7754 AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
7755 # /* ltdll.c starts here */
7756 # #define WIN32_LEAN_AND_MEAN
7757 # #include <windows.h>
7758 # #undef WIN32_LEAN_AND_MEAN
7759 # #include <stdio.h>
7761 # #ifndef __CYGWIN__
7762 # # ifdef __CYGWIN32__
7763 # # define __CYGWIN__ __CYGWIN32__
7767 # #ifdef __cplusplus
7770 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7771 # #ifdef __cplusplus
7776 # #include <cygwin/cygwin_dll.h>
7777 # DECLARE_CYGWIN_DLL( DllMain );
7779 # HINSTANCE __hDllInstance_base;
7782 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7784 # __hDllInstance_base = hInst;
7787 # /* ltdll.c ends here */
7788 ])# _LT_AC_FILE_LTDLL_C
7791 # _LT_AC_TAGVAR(VARNAME, [TAGNAME])
7792 # ---------------------------------
7793 AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
7797 AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
7798 AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
7799 AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
7800 AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
7801 AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
7802 AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
7803 AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
7805 # This is just to silence aclocal about the macro not being used
7806 ifelse([AC_DISABLE_FAST_INSTALL])
7808 AC_DEFUN([LT_AC_PROG_GCJ],
7809 [AC_CHECK_TOOL(GCJ, gcj, no)
7810 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7814 AC_DEFUN([LT_AC_PROG_RC],
7815 [AC_CHECK_TOOL(RC, windres, no)
7818 # NOTE: This macro has been submitted for inclusion into #
7819 # GNU Autoconf as AC_PROG_SED. When it is available in #
7820 # a released version of Autoconf we should remove this #
7821 # macro and use it instead. #
7824 # Check for a fully-functional sed program, that truncates
7825 # as few characters as possible. Prefer GNU sed if found.
7826 AC_DEFUN([LT_AC_PROG_SED],
7827 [AC_MSG_CHECKING([for a sed that does not truncate output])
7828 AC_CACHE_VAL(lt_cv_path_SED,
7829 [# Loop through the user's path and test for sed and gsed.
7830 # Then use that list of sed's as ones to test for truncation.
7831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835 test -z "$as_dir" && as_dir=.
7836 for lt_ac_prog in sed gsed; do
7837 for ac_exec_ext in '' $ac_executable_extensions; do
7838 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7839 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7846 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
7847 # along with /bin/sed that truncates output.
7848 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7849 test ! -f $lt_ac_sed && continue
7850 cat /dev/null > conftest.in
7852 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7853 # Check for GNU sed and select it if it is found.
7854 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7855 lt_cv_path_SED=$lt_ac_sed
7859 cat conftest.in conftest.in >conftest.tmp
7860 mv conftest.tmp conftest.in
7861 cp conftest.in conftest.nl
7863 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7864 cmp -s conftest.out conftest.nl || break
7865 # 10000 chars as input seems more than enough
7866 test $lt_ac_count -gt 10 && break
7867 lt_ac_count=`expr $lt_ac_count + 1`
7868 if test $lt_ac_count -gt $lt_ac_max; then
7869 lt_ac_max=$lt_ac_count
7870 lt_cv_path_SED=$lt_ac_sed
7876 AC_MSG_RESULT([$SED])
7879 # nls.m4 serial 2 (gettext-0.14.3)
7880 dnl Copyright (C) 1995-2003, 2005 Free Software Foundation, Inc.
7881 dnl This file is free software; the Free Software Foundation
7882 dnl gives unlimited permission to copy and/or distribute it,
7883 dnl with or without modifications, as long as this notice is preserved.
7885 dnl This file can can be used in projects which are not available under
7886 dnl the GNU General Public License or the GNU Library General Public
7887 dnl License but which still want to provide support for the GNU gettext
7889 dnl Please note that the actual code of the GNU gettext library is covered
7890 dnl by the GNU Library General Public License, and the rest of the GNU
7891 dnl gettext package package is covered by the GNU General Public License.
7892 dnl They are *not* in the public domain.
7895 dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
7896 dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
7902 AC_MSG_CHECKING([whether NLS is requested])
7903 dnl Default is enabled NLS
7905 [ --disable-nls do not use Native Language Support],
7906 USE_NLS=$enableval, USE_NLS=yes)
7907 AC_MSG_RESULT($USE_NLS)
7911 AC_DEFUN([AM_MKINSTALLDIRS],
7913 dnl Tell automake >= 1.10 to complain if mkinstalldirs is missing.
7914 m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([mkinstalldirs])])
7915 dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
7916 dnl find the mkinstalldirs script in another subdir but $(top_srcdir).
7917 dnl Try to locate it.
7919 if test -n "$ac_aux_dir"; then
7920 case "$ac_aux_dir" in
7921 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
7922 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
7925 if test -z "$MKINSTALLDIRS"; then
7926 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7928 AC_SUBST(MKINSTALLDIRS)
7931 # po.m4 serial 7 (gettext-0.14.3)
7932 dnl Copyright (C) 1995-2005 Free Software Foundation, Inc.
7933 dnl This file is free software; the Free Software Foundation
7934 dnl gives unlimited permission to copy and/or distribute it,
7935 dnl with or without modifications, as long as this notice is preserved.
7937 dnl This file can can be used in projects which are not available under
7938 dnl the GNU General Public License or the GNU Library General Public
7939 dnl License but which still want to provide support for the GNU gettext
7941 dnl Please note that the actual code of the GNU gettext library is covered
7942 dnl by the GNU Library General Public License, and the rest of the GNU
7943 dnl gettext package package is covered by the GNU General Public License.
7944 dnl They are *not* in the public domain.
7947 dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
7948 dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
7952 dnl Checks for all prerequisites of the po subdirectory.
7953 AC_DEFUN([AM_PO_SUBDIRS],
7955 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
7956 AC_REQUIRE([AC_PROG_INSTALL])dnl
7957 AC_REQUIRE([AM_MKINSTALLDIRS])dnl
7958 AC_REQUIRE([AM_NLS])dnl
7960 dnl Perform the following tests also if --disable-nls has been given,
7961 dnl because they are needed for "make dist" to work.
7963 dnl Search for GNU msgfmt in the PATH.
7964 dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions.
7965 dnl The second test excludes FreeBSD msgfmt.
7966 AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
7967 [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
7968 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
7970 AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
7972 dnl Search for GNU xgettext 0.12 or newer in the PATH.
7973 dnl The first test excludes Solaris xgettext and early GNU xgettext versions.
7974 dnl The second test excludes FreeBSD xgettext.
7975 AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
7976 [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
7977 (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)],
7979 dnl Remove leftover from FreeBSD xgettext call.
7982 dnl Search for GNU msgmerge 0.11 or newer in the PATH.
7983 AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,
7984 [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :)
7986 dnl This could go away some day; the PATH_PROG_WITH_TEST already does it.
7987 dnl Test whether we really found GNU msgfmt.
7988 if test "$GMSGFMT" != ":"; then
7989 dnl If it is no GNU msgfmt we define it as : so that the
7990 dnl Makefiles still can work.
7991 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
7992 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7995 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
7997 [found $GMSGFMT program is not GNU msgfmt; ignore it])
8002 dnl This could go away some day; the PATH_PROG_WITH_TEST already does it.
8003 dnl Test whether we really found GNU xgettext.
8004 if test "$XGETTEXT" != ":"; then
8005 dnl If it is no GNU xgettext we define it as : so that the
8006 dnl Makefiles still can work.
8007 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
8008 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8012 [found xgettext program is not GNU xgettext; ignore it])
8015 dnl Remove leftover from FreeBSD xgettext call.
8019 AC_OUTPUT_COMMANDS([
8020 for ac_file in $CONFIG_FILES; do
8021 # Support "outfile[:infile[:infile...]]"
8023 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8025 # PO directories have a Makefile.in generated from Makefile.in.in.
8026 case "$ac_file" in */Makefile.in)
8027 # Adjust a relative srcdir.
8028 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
8029 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
8030 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
8031 # In autoconf-2.13 it is called $ac_given_srcdir.
8032 # In autoconf-2.50 it is called $srcdir.
8033 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8034 case "$ac_given_srcdir" in
8035 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
8036 /*) top_srcdir="$ac_given_srcdir" ;;
8037 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
8039 # Treat a directory as a PO directory if and only if it has a
8040 # POTFILES.in file. This allows packages to have multiple PO
8041 # directories under different names or in different locations.
8042 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8043 rm -f "$ac_dir/POTFILES"
8044 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8045 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
8046 POMAKEFILEDEPS="POTFILES.in"
8047 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
8048 # on $ac_dir but don't depend on user-specified configuration
8050 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
8051 # The LINGUAS file contains the set of available languages.
8052 if test -n "$OBSOLETE_ALL_LINGUAS"; then
8053 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
8055 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
8056 # Hide the ALL_LINGUAS assigment from automake.
8057 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
8058 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
8060 # The set of available languages was given in configure.in.
8061 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
8064 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
8065 # Compute UPDATEPOFILES
8066 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
8067 # Compute DUMMYPOFILES
8068 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
8070 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
8071 case "$ac_given_srcdir" in
8073 *) srcdirpre='$(srcdir)/' ;;
8079 for lang in $ALL_LINGUAS; do
8080 POFILES="$POFILES $srcdirpre$lang.po"
8081 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
8082 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
8083 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
8085 # CATALOGS depends on both $ac_dir and the user's LINGUAS
8086 # environment variable.
8088 if test -n "$ALL_LINGUAS"; then
8089 for presentlang in $ALL_LINGUAS; do
8091 if test "%UNSET%" != "$LINGUAS"; then
8092 desiredlanguages="$LINGUAS"
8094 desiredlanguages="$ALL_LINGUAS"
8096 for desiredlang in $desiredlanguages; do
8097 # Use the presentlang catalog if desiredlang is
8098 # a. equal to presentlang, or
8099 # b. a variant of presentlang (because in this case,
8100 # presentlang can be used as a fallback for messages
8101 # which are not translated in the desiredlang catalog).
8102 case "$desiredlang" in
8103 "$presentlang"*) useit=yes;;
8106 if test $useit = yes; then
8107 INST_LINGUAS="$INST_LINGUAS $presentlang"
8112 if test -n "$INST_LINGUAS"; then
8113 for lang in $INST_LINGUAS; do
8114 CATALOGS="$CATALOGS $lang.gmo"
8117 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
8118 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"
8119 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
8120 if test -f "$f"; then
8122 *.orig | *.bak | *~) ;;
8123 *) cat "$f" >> "$ac_dir/Makefile" ;;
8131 [# Capture the value of obsolete ALL_LINGUAS because we need it to compute
8132 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
8134 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
8135 # Capture the value of LINGUAS because we need it to compute CATALOGS.
8136 LINGUAS="${LINGUAS-%UNSET%}"
8140 dnl Postprocesses a Makefile in a directory containing PO files.
8141 AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE],
8143 # When this code is run, in config.status, two variables have already been
8145 # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in,
8146 # - LINGUAS is the value of the environment variable LINGUAS at configure
8150 # Adjust a relative srcdir.
8151 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
8152 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
8153 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
8154 # In autoconf-2.13 it is called $ac_given_srcdir.
8155 # In autoconf-2.50 it is called $srcdir.
8156 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8157 case "$ac_given_srcdir" in
8158 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
8159 /*) top_srcdir="$ac_given_srcdir" ;;
8160 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
8163 # Find a way to echo strings without interpreting backslash.
8164 if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then
8167 if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then
8168 gt_echo='printf %s\n'
8179 # A sed script that extracts the value of VARIABLE from a Makefile.
8181 # Test if the hold space is empty.
8186 # Yes it was empty. Look if we have the expected variable definition.
8187 /^[ ]*VARIABLE[ ]*=/{
8188 # Seen the first line of the variable definition.
8189 s/^[ ]*VARIABLE[ ]*=//
8194 # Here we are processing a line from the variable definition.
8195 # Remove comment, more precisely replace it with a space.
8197 # See if the line ends in a backslash.
8201 # Print the line, without the trailing backslash.
8204 # There was no trailing backslash. The end of the variable definition is
8205 # reached. Clear the hold space.
8210 # A trailing backslash means that the variable definition continues in the
8211 # next line. Put a nonempty string into the hold space to indicate this.
8218 # Set POTFILES to the value of the Makefile variable POTFILES.
8219 sed_x_POTFILES="`$gt_echo \"$sed_x_variable\" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'`"
8220 POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"`
8221 # Compute POTFILES_DEPS as
8222 # $(foreach file, $(POTFILES), $(top_srcdir)/$(file))
8224 for file in $POTFILES; do
8225 POTFILES_DEPS="$POTFILES_DEPS "'$(top_srcdir)/'"$file"
8229 if test -n "$OBSOLETE_ALL_LINGUAS"; then
8230 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
8232 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
8233 # The LINGUAS file contains the set of available languages.
8234 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
8235 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
8237 # Set ALL_LINGUAS to the value of the Makefile variable LINGUAS.
8238 sed_x_LINGUAS="`$gt_echo \"$sed_x_variable\" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'`"
8239 ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"`
8241 # Hide the ALL_LINGUAS assigment from automake.
8242 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
8244 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
8245 # Compute UPDATEPOFILES
8246 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
8247 # Compute DUMMYPOFILES
8248 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
8250 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
8251 # Compute PROPERTIESFILES
8252 # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).properties)
8253 # Compute CLASSFILES
8254 # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).class)
8256 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm)
8258 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg)
8259 # Compute RESOURCESDLLFILES
8260 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll)
8261 case "$ac_given_srcdir" in
8263 *) srcdirpre='$(srcdir)/' ;;
8274 for lang in $ALL_LINGUAS; do
8275 POFILES="$POFILES $srcdirpre$lang.po"
8276 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
8277 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
8278 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
8279 PROPERTIESFILES="$PROPERTIESFILES \$(top_srcdir)/\$(DOMAIN)_$lang.properties"
8280 CLASSFILES="$CLASSFILES \$(top_srcdir)/\$(DOMAIN)_$lang.class"
8281 QMFILES="$QMFILES $srcdirpre$lang.qm"
8282 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
8283 MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg"
8284 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/'`
8285 RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll"
8287 # CATALOGS depends on both $ac_dir and the user's LINGUAS
8288 # environment variable.
8290 if test -n "$ALL_LINGUAS"; then
8291 for presentlang in $ALL_LINGUAS; do
8293 if test "%UNSET%" != "$LINGUAS"; then
8294 desiredlanguages="$LINGUAS"
8296 desiredlanguages="$ALL_LINGUAS"
8298 for desiredlang in $desiredlanguages; do
8299 # Use the presentlang catalog if desiredlang is
8300 # a. equal to presentlang, or
8301 # b. a variant of presentlang (because in this case,
8302 # presentlang can be used as a fallback for messages
8303 # which are not translated in the desiredlang catalog).
8304 case "$desiredlang" in
8305 "$presentlang"*) useit=yes;;
8308 if test $useit = yes; then
8309 INST_LINGUAS="$INST_LINGUAS $presentlang"
8318 if test -n "$INST_LINGUAS"; then
8319 for lang in $INST_LINGUAS; do
8320 CATALOGS="$CATALOGS $lang.gmo"
8321 JAVACATALOGS="$JAVACATALOGS \$(DOMAIN)_$lang.properties"
8322 QTCATALOGS="$QTCATALOGS $lang.qm"
8323 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
8324 TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg"
8325 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/'`
8326 CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll"
8330 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"
8331 if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then
8332 # Add dependencies that cannot be formulated as a simple suffix rule.
8333 for lang in $ALL_LINGUAS; do
8334 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
8335 cat >> "$ac_file.tmp" <<EOF
8336 $frobbedlang.msg: $lang.po
8337 @echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \
8338 \$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
8342 if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then
8343 # Add dependencies that cannot be formulated as a simple suffix rule.
8344 for lang in $ALL_LINGUAS; do
8345 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/'`
8346 cat >> "$ac_file.tmp" <<EOF
8347 $frobbedlang/\$(DOMAIN).resources.dll: $lang.po
8348 @echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \
8349 \$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
8353 if test -n "$POMAKEFILEDEPS"; then
8354 cat >> "$ac_file.tmp" <<EOF
8355 Makefile: $POMAKEFILEDEPS
8358 mv "$ac_file.tmp" "$ac_file"
8361 # progtest.m4 serial 4 (gettext-0.14.2)
8362 dnl Copyright (C) 1996-2003, 2005 Free Software Foundation, Inc.
8363 dnl This file is free software; the Free Software Foundation
8364 dnl gives unlimited permission to copy and/or distribute it,
8365 dnl with or without modifications, as long as this notice is preserved.
8367 dnl This file can can be used in projects which are not available under
8368 dnl the GNU General Public License or the GNU Library General Public
8369 dnl License but which still want to provide support for the GNU gettext
8371 dnl Please note that the actual code of the GNU gettext library is covered
8372 dnl by the GNU Library General Public License, and the rest of the GNU
8373 dnl gettext package package is covered by the GNU General Public License.
8374 dnl They are *not* in the public domain.
8377 dnl Ulrich Drepper <drepper@cygnus.com>, 1996.
8381 # Search path for a program which passes the given test.
8383 dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
8384 dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
8385 AC_DEFUN([AM_PATH_PROG_WITH_TEST],
8387 # Prepare PATH_SEPARATOR.
8388 # The user is always right.
8389 if test "${PATH_SEPARATOR+set}" != set; then
8390 echo "#! /bin/sh" >conf$$.sh
8391 echo "exit 0" >>conf$$.sh
8393 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8401 # Find out how to test for executable files. Don't use a zero-byte file,
8402 # as systems may use methods other than mode bits to determine executability.
8403 cat >conf$$.file <<_ASEOF
8407 chmod +x conf$$.file
8408 if test -x conf$$.file >/dev/null 2>&1; then
8409 ac_executable_p="test -x"
8411 ac_executable_p="test -f"
8415 # Extract the first word of "$2", so it can be a program name with args.
8416 set dummy $2; ac_word=[$]2
8417 AC_MSG_CHECKING([for $ac_word])
8418 AC_CACHE_VAL(ac_cv_path_$1,
8420 [[\\/]]* | ?:[[\\/]]*)
8421 ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
8424 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8425 for ac_dir in ifelse([$5], , $PATH, [$5]); do
8427 test -z "$ac_dir" && ac_dir=.
8428 for ac_exec_ext in '' $ac_executable_extensions; do
8429 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8430 echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD
8432 ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext"
8439 dnl If no 4th arg is given, leave the cache variable unset,
8440 dnl so AC_PATH_PROGS will keep looking.
8441 ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
8446 if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
8447 AC_MSG_RESULT([$]$1)
8454 # Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
8456 # This file is free software; the Free Software Foundation
8457 # gives unlimited permission to copy and/or distribute it,
8458 # with or without modifications, as long as this notice is preserved.
8460 # AM_AUTOMAKE_VERSION(VERSION)
8461 # ----------------------------
8462 # Automake X.Y traces this macro to ensure aclocal.m4 has been
8463 # generated from the m4 files accompanying Automake X.Y.
8464 AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
8466 # AM_SET_CURRENT_AUTOMAKE_VERSION
8467 # -------------------------------
8468 # Call AM_AUTOMAKE_VERSION so it can be traced.
8469 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
8470 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
8471 [AM_AUTOMAKE_VERSION([1.9.6])])
8473 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
8475 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
8477 # This file is free software; the Free Software Foundation
8478 # gives unlimited permission to copy and/or distribute it,
8479 # with or without modifications, as long as this notice is preserved.
8481 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
8482 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
8483 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
8485 # Of course, Automake must honor this variable whenever it calls a
8486 # tool from the auxiliary directory. The problem is that $srcdir (and
8487 # therefore $ac_aux_dir as well) can be either absolute or relative,
8488 # depending on how configure is run. This is pretty annoying, since
8489 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
8490 # source directory, any form will work fine, but in subdirectories a
8491 # relative path needs to be adjusted first.
8493 # $ac_aux_dir/missing
8494 # fails when called from a subdirectory if $ac_aux_dir is relative
8495 # $top_srcdir/$ac_aux_dir/missing
8496 # fails if $ac_aux_dir is absolute,
8497 # fails when called from a subdirectory in a VPATH build with
8498 # a relative $ac_aux_dir
8500 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
8501 # are both prefixed by $srcdir. In an in-source build this is usually
8502 # harmless because $srcdir is `.', but things will broke when you
8503 # start a VPATH build or use an absolute $srcdir.
8505 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
8506 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
8507 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
8508 # and then we would define $MISSING as
8509 # MISSING="\${SHELL} $am_aux_dir/missing"
8510 # This will work as long as MISSING is not called from configure, because
8511 # unfortunately $(top_srcdir) has no meaning in configure.
8512 # However there are other variables, like CC, which are often used in
8513 # configure, and could therefore not use this "fixed" $ac_aux_dir.
8515 # Another solution, used here, is to always expand $ac_aux_dir to an
8516 # absolute PATH. The drawback is that using absolute paths prevent a
8517 # configured tree to be moved without reconfiguration.
8519 AC_DEFUN([AM_AUX_DIR_EXPAND],
8520 [dnl Rely on autoconf to set up CDPATH properly.
8521 AC_PREREQ([2.50])dnl
8522 # expand $ac_aux_dir to an absolute path
8523 am_aux_dir=`cd $ac_aux_dir && pwd`
8526 # AM_CONDITIONAL -*- Autoconf -*-
8528 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
8529 # Free Software Foundation, Inc.
8531 # This file is free software; the Free Software Foundation
8532 # gives unlimited permission to copy and/or distribute it,
8533 # with or without modifications, as long as this notice is preserved.
8537 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
8538 # -------------------------------------
8539 # Define a conditional.
8540 AC_DEFUN([AM_CONDITIONAL],
8542 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
8543 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
8545 AC_SUBST([$1_FALSE])
8553 AC_CONFIG_COMMANDS_PRE(
8554 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
8555 AC_MSG_ERROR([[conditional "$1" was never defined.
8556 Usually this means the macro was only invoked conditionally.]])
8560 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
8561 # Free Software Foundation, Inc.
8563 # This file is free software; the Free Software Foundation
8564 # gives unlimited permission to copy and/or distribute it,
8565 # with or without modifications, as long as this notice is preserved.
8569 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
8570 # written in clear, in which case automake, when reading aclocal.m4,
8571 # will think it sees a *use*, and therefore will trigger all it's
8572 # C support machinery. Also note that it means that autoscan, seeing
8573 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
8576 # _AM_DEPENDENCIES(NAME)
8577 # ----------------------
8578 # See how the compiler implements dependency checking.
8579 # NAME is "CC", "CXX", "GCJ", or "OBJC".
8580 # We try a few techniques and use that to set a single cache variable.
8582 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
8583 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
8584 # dependency, and given that the user is not expected to run this macro,
8585 # just rely on AC_PROG_CC.
8586 AC_DEFUN([_AM_DEPENDENCIES],
8587 [AC_REQUIRE([AM_SET_DEPDIR])dnl
8588 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
8589 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
8590 AC_REQUIRE([AM_DEP_TRACK])dnl
8592 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
8593 [$1], CXX, [depcc="$CXX" am_compiler_list=],
8594 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
8595 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
8596 [depcc="$$1" am_compiler_list=])
8598 AC_CACHE_CHECK([dependency style of $depcc],
8599 [am_cv_$1_dependencies_compiler_type],
8600 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8601 # We make a subdir and do the tests there. Otherwise we can end up
8602 # making bogus files that we don't know about and never remove. For
8603 # instance it was reported that on HP-UX the gcc test will end up
8604 # making a dummy file named `D' -- because `-MD' means `put the output
8607 # Copy depcomp to subdir because otherwise we won't find it if we're
8608 # using a relative directory.
8609 cp "$am_depcomp" conftest.dir
8611 # We will build objects and dependencies in a subdirectory because
8612 # it helps to detect inapplicable dependency modes. For instance
8613 # both Tru64's cc and ICC support -MD to output dependencies as a
8614 # side effect of compilation, but ICC will put the dependencies in
8615 # the current directory while Tru64 will put them in the object
8619 am_cv_$1_dependencies_compiler_type=none
8620 if test "$am_compiler_list" = ""; then
8621 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
8623 for depmode in $am_compiler_list; do
8624 # Setup a source with many dependencies, because some compilers
8625 # like to wrap large dependency lists on column 80 (with \), and
8626 # we should not choose a depcomp mode which is confused by this.
8628 # We need to recreate these files for each test, as the compiler may
8629 # overwrite some of them when testing with obscure command lines.
8630 # This happens at least with the AIX C compiler.
8632 for i in 1 2 3 4 5 6; do
8633 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8634 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8635 # Solaris 8's {/usr,}/bin/sh.
8636 touch sub/conftst$i.h
8638 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8642 # after this tag, mechanisms are not by side-effect, so they'll
8643 # only be used when explicitly requested
8644 if test "x$enable_dependency_tracking" = xyes; then
8652 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8653 # mode. It turns out that the SunPro C++ compiler does not properly
8654 # handle `-M -o', and we need to detect this.
8655 if depmode=$depmode \
8656 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8657 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8658 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8659 >/dev/null 2>conftest.err &&
8660 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8661 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8662 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8663 # icc doesn't choke on unknown options, it will just issue warnings
8664 # or remarks (even with -Werror). So we grep stderr for any message
8665 # that says an option was ignored or not supported.
8666 # When given -MP, icc 7.0 and 7.1 complain thusly:
8667 # icc: Command line warning: ignoring option '-M'; no argument required
8668 # The diagnosis changed in icc 8.0:
8669 # icc: Command line remark: option '-MP' not supported
8670 if (grep 'ignoring option' conftest.err ||
8671 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8672 am_cv_$1_dependencies_compiler_type=$depmode
8681 am_cv_$1_dependencies_compiler_type=none
8684 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
8685 AM_CONDITIONAL([am__fastdep$1], [
8686 test "x$enable_dependency_tracking" != xno \
8687 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
8693 # Choose a directory name for dependency files.
8694 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
8695 AC_DEFUN([AM_SET_DEPDIR],
8696 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
8697 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
8703 AC_DEFUN([AM_DEP_TRACK],
8704 [AC_ARG_ENABLE(dependency-tracking,
8705 [ --disable-dependency-tracking speeds up one-time build
8706 --enable-dependency-tracking do not reject slow dependency extractors])
8707 if test "x$enable_dependency_tracking" != xno; then
8708 am_depcomp="$ac_aux_dir/depcomp"
8711 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
8712 AC_SUBST([AMDEPBACKSLASH])
8715 # Generate code to set up dependency tracking. -*- Autoconf -*-
8717 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
8718 # Free Software Foundation, Inc.
8720 # This file is free software; the Free Software Foundation
8721 # gives unlimited permission to copy and/or distribute it,
8722 # with or without modifications, as long as this notice is preserved.
8726 # _AM_OUTPUT_DEPENDENCY_COMMANDS
8727 # ------------------------------
8728 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
8729 [for mf in $CONFIG_FILES; do
8730 # Strip MF so we end up with the name of the file.
8731 mf=`echo "$mf" | sed -e 's/:.*$//'`
8732 # Check whether this is an Automake generated Makefile or not.
8733 # We used to match only the files named `Makefile.in', but
8734 # some people rename them; so instead we look at the file content.
8735 # Grep'ing the first line is not enough: some people post-process
8736 # each Makefile.in and add a new line on top of each file to say so.
8737 # So let's grep whole file.
8738 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8739 dirpart=`AS_DIRNAME("$mf")`
8743 # Extract the definition of DEPDIR, am__include, and am__quote
8744 # from the Makefile without running `make'.
8745 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8746 test -z "$DEPDIR" && continue
8747 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8748 test -z "am__include" && continue
8749 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8750 # When using ansi2knr, U may be empty or an underscore; expand it
8751 U=`sed -n 's/^U = //p' < "$mf"`
8752 # Find all dependency output files, they are included files with
8753 # $(DEPDIR) in their names. We invoke sed twice because it is the
8754 # simplest approach to changing $(DEPDIR) to its actual value in the
8756 for file in `sed -n "
8757 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8758 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8759 # Make sure the directory exists.
8760 test -f "$dirpart/$file" && continue
8761 fdir=`AS_DIRNAME(["$file"])`
8762 AS_MKDIR_P([$dirpart/$fdir])
8763 # echo "creating $dirpart/$file"
8764 echo '# dummy' > "$dirpart/$file"
8767 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
8770 # AM_OUTPUT_DEPENDENCY_COMMANDS
8771 # -----------------------------
8772 # This macro should only be invoked once -- use via AC_REQUIRE.
8774 # This code is only required when automatic dependency tracking
8775 # is enabled. FIXME. This creates each `.P' file that we will
8776 # need in order to bootstrap the dependency handling code.
8777 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
8778 [AC_CONFIG_COMMANDS([depfiles],
8779 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
8780 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
8783 # Do all the work for Automake. -*- Autoconf -*-
8785 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
8786 # Free Software Foundation, Inc.
8788 # This file is free software; the Free Software Foundation
8789 # gives unlimited permission to copy and/or distribute it,
8790 # with or without modifications, as long as this notice is preserved.
8794 # This macro actually does too much. Some checks are only needed if
8795 # your package does certain things. But this isn't really a big deal.
8797 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
8798 # AM_INIT_AUTOMAKE([OPTIONS])
8799 # -----------------------------------------------
8800 # The call with PACKAGE and VERSION arguments is the old style
8801 # call (pre autoconf-2.50), which is being phased out. PACKAGE
8802 # and VERSION should now be passed to AC_INIT and removed from
8803 # the call to AM_INIT_AUTOMAKE.
8804 # We support both call styles for the transition. After
8805 # the next Automake release, Autoconf can make the AC_INIT
8806 # arguments mandatory, and then we can depend on a new Autoconf
8807 # release and drop the old call support.
8808 AC_DEFUN([AM_INIT_AUTOMAKE],
8809 [AC_PREREQ([2.58])dnl
8810 dnl Autoconf wants to disallow AM_ names. We explicitly allow
8811 dnl the ones we care about.
8812 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
8813 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
8814 AC_REQUIRE([AC_PROG_INSTALL])dnl
8815 # test to see if srcdir already configured
8816 if test "`cd $srcdir && pwd`" != "`pwd`" &&
8817 test -f $srcdir/config.status; then
8818 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
8821 # test whether we have cygpath
8822 if test -z "$CYGPATH_W"; then
8823 if (cygpath --version) >/dev/null 2>/dev/null; then
8824 CYGPATH_W='cygpath -w'
8829 AC_SUBST([CYGPATH_W])
8831 # Define the identity of the package.
8832 dnl Distinguish between old-style and new-style calls.
8834 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
8835 AC_SUBST([PACKAGE], [$1])dnl
8836 AC_SUBST([VERSION], [$2])],
8837 [_AM_SET_OPTIONS([$1])dnl
8838 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
8839 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
8841 _AM_IF_OPTION([no-define],,
8842 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
8843 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
8845 # Some tools Automake needs.
8846 AC_REQUIRE([AM_SANITY_CHECK])dnl
8847 AC_REQUIRE([AC_ARG_PROGRAM])dnl
8848 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
8849 AM_MISSING_PROG(AUTOCONF, autoconf)
8850 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
8851 AM_MISSING_PROG(AUTOHEADER, autoheader)
8852 AM_MISSING_PROG(MAKEINFO, makeinfo)
8854 AM_PROG_INSTALL_STRIP
8855 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
8856 # We need awk for the "check" target. The system "awk" is bad on
8858 AC_REQUIRE([AC_PROG_AWK])dnl
8859 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
8860 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
8861 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
8862 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
8863 [_AM_PROG_TAR([v7])])])
8864 _AM_IF_OPTION([no-dependencies],,
8865 [AC_PROVIDE_IFELSE([AC_PROG_CC],
8866 [_AM_DEPENDENCIES(CC)],
8867 [define([AC_PROG_CC],
8868 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
8869 AC_PROVIDE_IFELSE([AC_PROG_CXX],
8870 [_AM_DEPENDENCIES(CXX)],
8871 [define([AC_PROG_CXX],
8872 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
8877 # When config.status generates a header, we must update the stamp-h file.
8878 # This file resides in the same directory as the config header
8879 # that is generated. The stamp files are numbered to have different names.
8881 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
8882 # loop where config.status creates the headers, so we can generate
8883 # our stamp files there.
8884 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
8885 [# Compute $1's index in $config_headers.
8887 for _am_header in $config_headers :; do
8892 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8895 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
8897 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
8899 # This file is free software; the Free Software Foundation
8900 # gives unlimited permission to copy and/or distribute it,
8901 # with or without modifications, as long as this notice is preserved.
8903 # AM_PROG_INSTALL_SH
8904 # ------------------
8905 # Define $install_sh.
8906 AC_DEFUN([AM_PROG_INSTALL_SH],
8907 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
8908 install_sh=${install_sh-"$am_aux_dir/install-sh"}
8909 AC_SUBST(install_sh)])
8911 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
8913 # This file is free software; the Free Software Foundation
8914 # gives unlimited permission to copy and/or distribute it,
8915 # with or without modifications, as long as this notice is preserved.
8919 # Check whether the underlying file-system supports filenames
8920 # with a leading dot. For instance MS-DOS doesn't.
8921 AC_DEFUN([AM_SET_LEADING_DOT],
8922 [rm -rf .tst 2>/dev/null
8923 mkdir .tst 2>/dev/null
8924 if test -d .tst; then
8929 rmdir .tst 2>/dev/null
8930 AC_SUBST([am__leading_dot])])
8932 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
8935 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
8936 # Free Software Foundation, Inc.
8938 # This file is free software; the Free Software Foundation
8939 # gives unlimited permission to copy and/or distribute it,
8940 # with or without modifications, as long as this notice is preserved.
8944 AC_DEFUN([AM_MAINTAINER_MODE],
8945 [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
8946 dnl maintainer-mode is disabled by default
8947 AC_ARG_ENABLE(maintainer-mode,
8948 [ --enable-maintainer-mode enable make rules and dependencies not useful
8949 (and sometimes confusing) to the casual installer],
8950 USE_MAINTAINER_MODE=$enableval,
8951 USE_MAINTAINER_MODE=no)
8952 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
8953 AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
8954 MAINT=$MAINTAINER_MODE_TRUE
8959 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
8961 # Check to see how 'make' treats includes. -*- Autoconf -*-
8963 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
8965 # This file is free software; the Free Software Foundation
8966 # gives unlimited permission to copy and/or distribute it,
8967 # with or without modifications, as long as this notice is preserved.
8973 # Check to see how make treats includes.
8974 AC_DEFUN([AM_MAKE_INCLUDE],
8975 [am_make=${MAKE-make}
8976 cat > confinc << 'END'
8981 # If we don't find an include directive, just comment out the code.
8982 AC_MSG_CHECKING([for style of include used by $am_make])
8986 # First try GNU make style include.
8987 echo "include confinc" > confmf
8988 # We grep out `Entering directory' and `Leaving directory'
8989 # messages which can occur if `w' ends up in MAKEFLAGS.
8990 # In particular we don't look at `^make:' because GNU make might
8991 # be invoked under some other name (usually "gmake"), in which
8992 # case it prints its new name instead of `make'.
8993 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
8998 # Now try BSD make style include.
8999 if test "$am__include" = "#"; then
9000 echo '.include "confinc"' > confmf
9001 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
9002 am__include=.include
9007 AC_SUBST([am__include])
9008 AC_SUBST([am__quote])
9009 AC_MSG_RESULT([$_am_result])
9010 rm -f confinc confmf
9013 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
9015 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
9016 # Free Software Foundation, Inc.
9018 # This file is free software; the Free Software Foundation
9019 # gives unlimited permission to copy and/or distribute it,
9020 # with or without modifications, as long as this notice is preserved.
9024 # AM_MISSING_PROG(NAME, PROGRAM)
9025 # ------------------------------
9026 AC_DEFUN([AM_MISSING_PROG],
9027 [AC_REQUIRE([AM_MISSING_HAS_RUN])
9028 $1=${$1-"${am_missing_run}$2"}
9032 # AM_MISSING_HAS_RUN
9033 # ------------------
9034 # Define MISSING if not defined so far and test if it supports --run.
9035 # If it does, set am_missing_run to use it, otherwise, to nothing.
9036 AC_DEFUN([AM_MISSING_HAS_RUN],
9037 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9038 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
9039 # Use eval to expand $SHELL
9040 if eval "$MISSING --run true"; then
9041 am_missing_run="$MISSING --run "
9044 AC_MSG_WARN([`missing' script is too old or missing])
9048 # Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
9050 # This file is free software; the Free Software Foundation
9051 # gives unlimited permission to copy and/or distribute it,
9052 # with or without modifications, as long as this notice is preserved.
9056 # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
9058 # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
9059 # created by `make install' are always world readable, even if the
9060 # installer happens to have an overly restrictive umask (e.g. 077).
9061 # This was a mistake. There are at least two reasons why we must not
9063 # - it causes special bits like SGID to be ignored,
9064 # - it may be too restrictive (some setups expect 775 directories).
9066 # Do not use -m 0755 and let people choose whatever they expect by
9069 # We cannot accept any implementation of `mkdir' that recognizes `-p'.
9070 # Some implementations (such as Solaris 8's) are not thread-safe: if a
9071 # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
9072 # concurrently, both version can detect that a/ is missing, but only
9073 # one can create it and the other will error out. Consequently we
9074 # restrict ourselves to GNU make (using the --version option ensures
9076 AC_DEFUN([AM_PROG_MKDIR_P],
9077 [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
9078 # We used to keeping the `.' as first argument, in order to
9079 # allow $(mkdir_p) to be used without argument. As in
9080 # $(mkdir_p) $(somedir)
9081 # where $(somedir) is conditionally defined. However this is wrong
9083 # 1. if the package is installed by a user who cannot write `.'
9084 # make install will fail,
9085 # 2. the above comment should most certainly read
9086 # $(mkdir_p) $(DESTDIR)$(somedir)
9087 # so it does not work when $(somedir) is undefined and
9088 # $(DESTDIR) is not.
9089 # To support the latter case, we have to write
9090 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
9091 # so the `.' trick is pointless.
9092 mkdir_p='mkdir -p --'
9094 # On NextStep and OpenStep, the `mkdir' command does not
9095 # recognize any option. It will interpret all options as
9096 # directories to create, and then abort because `.' already
9098 for d in ./-p ./--version;
9100 test -d $d && rmdir $d
9102 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
9103 if test -f "$ac_aux_dir/mkinstalldirs"; then
9104 mkdir_p='$(mkinstalldirs)'
9106 mkdir_p='$(install_sh) -d'
9109 AC_SUBST([mkdir_p])])
9111 # Helper functions for option handling. -*- Autoconf -*-
9113 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
9115 # This file is free software; the Free Software Foundation
9116 # gives unlimited permission to copy and/or distribute it,
9117 # with or without modifications, as long as this notice is preserved.
9121 # _AM_MANGLE_OPTION(NAME)
9122 # -----------------------
9123 AC_DEFUN([_AM_MANGLE_OPTION],
9124 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
9126 # _AM_SET_OPTION(NAME)
9127 # ------------------------------
9128 # Set option NAME. Presently that only means defining a flag for this option.
9129 AC_DEFUN([_AM_SET_OPTION],
9130 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
9132 # _AM_SET_OPTIONS(OPTIONS)
9133 # ----------------------------------
9134 # OPTIONS is a space-separated list of Automake options.
9135 AC_DEFUN([_AM_SET_OPTIONS],
9136 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
9138 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
9139 # -------------------------------------------
9140 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
9141 AC_DEFUN([_AM_IF_OPTION],
9142 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
9144 # Copyright (C) 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2005
9145 # Free Software Foundation, Inc.
9147 # This file is free software; the Free Software Foundation
9148 # gives unlimited permission to copy and/or distribute it,
9149 # with or without modifications, as long as this notice is preserved.
9153 AC_DEFUN([AM_C_PROTOTYPES],
9154 [AC_REQUIRE([AC_C_PROTOTYPES])
9155 if test "$ac_cv_prog_cc_stdc" != no; then
9158 U=_ ANSI2KNR=./ansi2knr
9160 # Ensure some checks needed by ansi2knr itself.
9161 AC_REQUIRE([AC_HEADER_STDC])
9162 AC_CHECK_HEADERS(string.h)
9164 AC_SUBST(ANSI2KNR)dnl
9167 AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES])
9169 # Check to make sure that the build environment is sane. -*- Autoconf -*-
9171 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
9172 # Free Software Foundation, Inc.
9174 # This file is free software; the Free Software Foundation
9175 # gives unlimited permission to copy and/or distribute it,
9176 # with or without modifications, as long as this notice is preserved.
9182 AC_DEFUN([AM_SANITY_CHECK],
9183 [AC_MSG_CHECKING([whether build environment is sane])
9186 echo timestamp > conftest.file
9187 # Do `set' in a subshell so we don't clobber the current shell's
9188 # arguments. Must try -L first in case configure is actually a
9189 # symlink; some systems play weird games with the mod time of symlinks
9190 # (eg FreeBSD returns the mod time of the symlink's containing
9193 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
9194 if test "$[*]" = "X"; then
9196 set X `ls -t $srcdir/configure conftest.file`
9199 if test "$[*]" != "X $srcdir/configure conftest.file" \
9200 && test "$[*]" != "X conftest.file $srcdir/configure"; then
9202 # If neither matched, then we have a broken ls. This can happen
9203 # if, for instance, CONFIG_SHELL is bash and it inherits a
9204 # broken ls alias from the environment. This has actually
9205 # happened. Such a system could not be considered "sane".
9206 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
9207 alias in your environment])
9210 test "$[2]" = conftest.file
9216 AC_MSG_ERROR([newly created file is older than distributed files!
9217 Check your system clock])
9219 AC_MSG_RESULT(yes)])
9221 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
9223 # This file is free software; the Free Software Foundation
9224 # gives unlimited permission to copy and/or distribute it,
9225 # with or without modifications, as long as this notice is preserved.
9227 # AM_PROG_INSTALL_STRIP
9228 # ---------------------
9229 # One issue with vendor `install' (even GNU) is that you can't
9230 # specify the program used to strip binaries. This is especially
9231 # annoying in cross-compiling environments, where the build's strip
9232 # is unlikely to handle the host's binaries.
9233 # Fortunately install-sh will honor a STRIPPROG variable, so we
9234 # always use install-sh in `make install-strip', and initialize
9235 # STRIPPROG with the value of the STRIP variable (set by the user).
9236 AC_DEFUN([AM_PROG_INSTALL_STRIP],
9237 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9238 # Installed binaries are usually stripped using `strip' when the user
9239 # run `make install-strip'. However `strip' might not be the right
9240 # tool to use in cross-compilation environments, therefore Automake
9241 # will honor the `STRIP' environment variable to overrule this program.
9242 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
9243 if test "$cross_compiling" != no; then
9244 AC_CHECK_TOOL([STRIP], [strip], :)
9246 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
9247 AC_SUBST([INSTALL_STRIP_PROGRAM])])
9249 # Check how to create a tarball. -*- Autoconf -*-
9251 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
9253 # This file is free software; the Free Software Foundation
9254 # gives unlimited permission to copy and/or distribute it,
9255 # with or without modifications, as long as this notice is preserved.
9259 # _AM_PROG_TAR(FORMAT)
9260 # --------------------
9261 # Check how to create a tarball in format FORMAT.
9262 # FORMAT should be one of `v7', `ustar', or `pax'.
9264 # Substitute a variable $(am__tar) that is a command
9265 # writing to stdout a FORMAT-tarball containing the directory
9267 # tardir=directory && $(am__tar) > result.tar
9269 # Substitute a variable $(am__untar) that extract such
9270 # a tarball read from stdin.
9271 # $(am__untar) < result.tar
9272 AC_DEFUN([_AM_PROG_TAR],
9273 [# Always define AMTAR for backward compatibility.
9274 AM_MISSING_PROG([AMTAR], [tar])
9276 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
9277 [m4_case([$1], [ustar],, [pax],,
9278 [m4_fatal([Unknown tar format])])
9279 AC_MSG_CHECKING([how to create a $1 tar archive])
9280 # Loop over all known methods to create a tar archive until one works.
9281 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
9282 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
9283 # Do not fold the above two line into one, because Tru64 sh and
9284 # Solaris sh will not grok spaces in the rhs of `-'.
9285 for _am_tool in $_am_tools
9289 for _am_tar in tar gnutar gtar;
9291 AM_RUN_LOG([$_am_tar --version]) && break
9293 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
9294 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
9295 am__untar="$_am_tar -xf -"
9298 # Must skip GNU tar: if it does not support --format= it doesn't create
9299 # ustar tarball either.
9300 (tar --version) >/dev/null 2>&1 && continue
9301 am__tar='tar chf - "$$tardir"'
9302 am__tar_='tar chf - "$tardir"'
9303 am__untar='tar xf -'
9306 am__tar='pax -L -x $1 -w "$$tardir"'
9307 am__tar_='pax -L -x $1 -w "$tardir"'
9311 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
9312 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
9313 am__untar='cpio -i -H $1 -d'
9322 # If the value was cached, stop now. We just wanted to have am__tar
9323 # and am__untar set.
9324 test -n "${am_cv_prog_tar_$1}" && break
9326 # tar/untar a dummy directory, and stop if the command works
9329 echo GrepMe > conftest.dir/file
9330 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
9332 if test -s conftest.tar; then
9333 AM_RUN_LOG([$am__untar <conftest.tar])
9334 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
9339 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
9340 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
9342 AC_SUBST([am__untar])
9345 m4_include([acinclude.m4])