1# generated automatically by aclocal 1.9.6 -*- Autoconf -*- 2 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. 8 9# This program is distributed in the hope that it will be useful, 10# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 11# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 12# PARTICULAR PURPOSE. 13 14# gettext.m4 serial 37 (gettext-0.14.4) 15dnl Copyright (C) 1995-2005 Free Software Foundation, Inc. 16dnl This file is free software; the Free Software Foundation 17dnl gives unlimited permission to copy and/or distribute it, 18dnl with or without modifications, as long as this notice is preserved. 19dnl 20dnl This file can can be used in projects which are not available under 21dnl the GNU General Public License or the GNU Library General Public 22dnl License but which still want to provide support for the GNU gettext 23dnl functionality. 24dnl Please note that the actual code of the GNU gettext library is covered 25dnl by the GNU Library General Public License, and the rest of the GNU 26dnl gettext package package is covered by the GNU General Public License. 27dnl They are *not* in the public domain. 28 29dnl Authors: 30dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. 31dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003. 32 33dnl Macro to add for using GNU gettext. 34 35dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]). 36dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The 37dnl default (if it is not specified or empty) is 'no-libtool'. 38dnl INTLSYMBOL should be 'external' for packages with no intl directory, 39dnl and 'no-libtool' or 'use-libtool' for packages with an intl directory. 40dnl If INTLSYMBOL is 'use-libtool', then a libtool library 41dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static, 42dnl depending on --{enable,disable}-{shared,static} and on the presence of 43dnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library 44dnl $(top_builddir)/intl/libintl.a will be created. 45dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext 46dnl implementations (in libc or libintl) without the ngettext() function 47dnl will be ignored. If NEEDSYMBOL is specified and is 48dnl 'need-formatstring-macros', then GNU gettext implementations that don't 49dnl support the ISO C 99 <inttypes.h> formatstring macros will be ignored. 50dnl INTLDIR is used to find the intl libraries. If empty, 51dnl the value `$(top_builddir)/intl/' is used. 52dnl 53dnl The result of the configuration is one of three cases: 54dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled 55dnl and used. 56dnl Catalog format: GNU --> install in $(datadir) 57dnl Catalog extension: .mo after installation, .gmo in source tree 58dnl 2) GNU gettext has been found in the system's C library. 59dnl Catalog format: GNU --> install in $(datadir) 60dnl Catalog extension: .mo after installation, .gmo in source tree 61dnl 3) No internationalization, always use English msgid. 62dnl Catalog format: none 63dnl Catalog extension: none 64dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur. 65dnl The use of .gmo is historical (it was needed to avoid overwriting the 66dnl GNU format catalogs when building on a platform with an X/Open gettext), 67dnl but we keep it in order not to force irrelevant filename changes on the 68dnl maintainers. 69dnl 70AC_DEFUN([AM_GNU_GETTEXT], 71[ 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 75])])])])]) 76 ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], , 77 [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT 78])])])]) 79 define([gt_included_intl], ifelse([$1], [external], [no], [yes])) 80 define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], [])) 81 82 AC_REQUIRE([AM_PO_SUBDIRS])dnl 83 ifelse(gt_included_intl, yes, [ 84 AC_REQUIRE([AM_INTL_SUBDIR])dnl 85 ]) 86 87 dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. 88 AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) 89 AC_REQUIRE([AC_LIB_RPATH]) 90 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]) 104 ]) 105 106 dnl Sometimes, on MacOS X, libintl requires linking with CoreFoundation. 107 gt_INTL_MACOSX 108 109 dnl Set USE_NLS. 110 AM_NLS 111 112 ifelse(gt_included_intl, yes, [ 113 BUILD_INCLUDED_LIBINTL=no 114 USE_INCLUDED_LIBINTL=no 115 ]) 116 LIBINTL= 117 LTLIBINTL= 118 POSUB= 119 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) 130 131 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 132 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 133 ]) 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. 137 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]) 142 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) 148#endif 149changequote(,)dnl 150typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 151changequote([,])dnl 152], [])[extern int _nl_msg_cat_cntr; 153extern int *_nl_domain_bindings;], 154 [bindtextdomain ("", ""); 155return * 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)]) 158 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, , [ 162 AM_ICONV_LINK 163 ]) 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" 173 gt_save_LIBS="$LIBS" 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) 180#endif 181changequote(,)dnl 182typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 183changequote([,])dnl 184], [])[extern int _nl_msg_cat_cntr; 185extern 186#ifdef __cplusplus 187"C" 188#endif 189const char *_nl_expand_alias (const char *);], 190 [bindtextdomain ("", ""); 191return * 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) 201#endif 202changequote(,)dnl 203typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 204changequote([,])dnl 205], [])[extern int _nl_msg_cat_cntr; 206extern 207#ifdef __cplusplus 208"C" 209#endif 210const char *_nl_expand_alias (const char *);], 211 [bindtextdomain ("", ""); 212return * 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 216 ]) 217 fi 218 CPPFLAGS="$gt_save_CPPFLAGS" 219 LIBS="$gt_save_LIBS"]) 220 fi 221 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 231 else 232 dnl Reset the values set by searching for libintl. 233 LIBINTL= 234 LTLIBINTL= 235 INCINTL= 236 fi 237 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 243 fi 244 fi 245 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/ $//'` 253 fi 254 255 CATOBJEXT= 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. 259 CATOBJEXT=.gmo 260 fi 261 ]) 262 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" 269 fi 270 fi 271 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 276 is requested.]) 277 else 278 USE_NLS=no 279 fi 280 fi 281 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" 289 else 290 gt_source="libc" 291 fi 292 else 293 gt_source="included intl directory" 294 fi 295 AC_MSG_RESULT([$gt_source]) 296 fi 297 298 if test "$USE_NLS" = "yes"; then 299 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]) 305 fi 306 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.]) 312 fi 313 314 dnl We need to process the po/ directory. 315 POSUB=po 316 fi 317 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 323 fi 324 325 dnl Make all variables we use known to autoconf. 326 AC_SUBST(BUILD_INCLUDED_LIBINTL) 327 AC_SUBST(USE_INCLUDED_LIBINTL) 328 AC_SUBST(CATOBJEXT) 329 330 dnl For backward compatibility. Some configure.ins may be using this. 331 nls_cv_header_intl= 332 nls_cv_header_libgt= 333 334 dnl For backward compatibility. Some Makefiles may be using this. 335 DATADIRNAME=share 336 AC_SUBST(DATADIRNAME) 337 338 dnl For backward compatibility. Some Makefiles may be using this. 339 INSTOBJEXT=.mo 340 AC_SUBST(INSTOBJEXT) 341 342 dnl For backward compatibility. Some Makefiles may be using this. 343 GENCAT=gencat 344 AC_SUBST(GENCAT) 345 346 dnl For backward compatibility. Some Makefiles may be using this. 347 INTLOBJS= 348 if test "$USE_INCLUDED_LIBINTL" = yes; then 349 INTLOBJS="\$(GETTOBJS)" 350 fi 351 AC_SUBST(INTLOBJS) 352 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) 356 ]) 357 358 dnl For backward compatibility. Some Makefiles may be using this. 359 INTLLIBS="$LIBINTL" 360 AC_SUBST(INTLLIBS) 361 362 dnl Make all documented variables known to autoconf. 363 AC_SUBST(LIBINTL) 364 AC_SUBST(LTLIBINTL) 365 AC_SUBST(POSUB) 366]) 367 368 369dnl Checks for all prerequisites of the intl subdirectory, 370dnl except for INTL_LIBTOOL_SUFFIX_PREFIX (and possibly LIBTOOL), INTLOBJS, 371dnl USE_INCLUDED_LIBINTL, BUILD_INCLUDED_LIBINTL. 372AC_DEFUN([AM_INTL_SUBDIR], 373[ 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 404 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.]) 408 ]) 409 AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ 410stdlib.h string.h unistd.h sys/param.h]) 411 AC_CHECK_FUNCS([asprintf fwprintf getcwd getegid geteuid getgid getuid \ 412mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ 413strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ 414__fsetlocking]) 415 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>]) 420 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>]) 429 430 case $gt_cv_func_printf_posix in 431 *yes) HAVE_POSIX_PRINTF=1 ;; 432 *) HAVE_POSIX_PRINTF=0 ;; 433 esac 434 AC_SUBST([HAVE_POSIX_PRINTF]) 435 if test "$ac_cv_func_asprintf" = yes; then 436 HAVE_ASPRINTF=1 437 else 438 HAVE_ASPRINTF=0 439 fi 440 AC_SUBST([HAVE_ASPRINTF]) 441 if test "$ac_cv_func_snprintf" = yes; then 442 HAVE_SNPRINTF=1 443 else 444 HAVE_SNPRINTF=0 445 fi 446 AC_SUBST([HAVE_SNPRINTF]) 447 if test "$ac_cv_func_wprintf" = yes; then 448 HAVE_WPRINTF=1 449 else 450 HAVE_WPRINTF=0 451 fi 452 AC_SUBST([HAVE_WPRINTF]) 453 454 AM_ICONV 455 AM_LANGINFO_CODESET 456 if test $ac_cv_header_locale_h = yes; then 457 gt_LC_MESSAGES 458 fi 459 460 if test -n "$INTL_MACOSX_LIBS"; then 461 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers" 462 fi 463 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 467 dnl compile. 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 476 ac_verc_fail=yes 477 else 478 dnl Found it, now check the version. 479 AC_MSG_CHECKING([version of bison]) 480changequote(<<,>>)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].*) 485changequote([,])dnl 486 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; 487 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; 488 esac 489 AC_MSG_RESULT([$ac_prog_version]) 490 fi 491 if test $ac_verc_fail = yes; then 492 INTLBISON=: 493 fi 494]) 495 496 497dnl Checks for special options needed on MacOS X. 498dnl Defines INTL_MACOSX_LIBS. 499AC_DEFUN([gt_INTL_MACOSX], 500[ 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" 506 gt_save_LIBS="$LIBS" 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.]) 517 fi 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" 522 gt_save_LIBS="$LIBS" 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.]) 532 fi 533 INTL_MACOSX_LIBS= 534 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then 535 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 536 fi 537 AC_SUBST([INTL_MACOSX_LIBS]) 538]) 539 540 541dnl gt_CHECK_DECL(FUNC, INCLUDES) 542dnl Check whether a function is declared. 543AC_DEFUN([gt_CHECK_DECL], 544[ 545 AC_CACHE_CHECK([whether $1 is declared], ac_cv_have_decl_$1, 546 [AC_TRY_COMPILE([$2], [ 547#ifndef $1 548 char *p = (char *) $1; 549#endif 550], ac_cv_have_decl_$1=yes, ac_cv_have_decl_$1=no)]) 551 if test $ac_cv_have_decl_$1 = yes; then 552 gt_value=1 553 else 554 gt_value=0 555 fi 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.]) 558]) 559 560 561dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version]) 562AC_DEFUN([AM_GNU_GETTEXT_VERSION], []) 563 564# Copyright (C) 1995-2002 Free Software Foundation, Inc. 565# Copyright (C) 2001-2003,2004 Red Hat, Inc. 566# 567# This file is free software, distributed under the terms of the GNU 568# General Public License. As a special exception to the GNU General 569# Public License, this file may be distributed as part of a program 570# that contains a configuration script generated by Autoconf, under 571# the same distribution terms as the rest of that program. 572# 573# This file can be copied and used freely without restrictions. It can 574# be used in projects which are not available under the GNU Public License 575# but which still want to provide support for the GNU gettext functionality. 576# 577# Macro to add for using GNU gettext. 578# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996 579# 580# Modified to never use included libintl. 581# Owen Taylor <otaylor@redhat.com>, 12/15/1998 582# 583# Major rework to remove unused code 584# Owen Taylor <otaylor@redhat.com>, 12/11/2002 585# 586# Added better handling of ALL_LINGUAS from GNU gettext version 587# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002 588# 589# Modified to require ngettext 590# Matthias Clasen <mclasen@redhat.com> 08/06/2004 591# 592# We need this here as well, since someone might use autoconf-2.5x 593# to configure GLib then an older version to configure a package 594# using AM_GLIB_GNU_GETTEXT 595AC_PREREQ(2.53) 596 597dnl 598dnl We go to great lengths to make sure that aclocal won't 599dnl try to pull in the installed version of these macros 600dnl when running aclocal in the glib directory. 601dnl 602m4_copy([AC_DEFUN],[glib_DEFUN]) 603m4_copy([AC_REQUIRE],[glib_REQUIRE]) 604dnl 605dnl At the end, if we're not within glib, we'll define the public 606dnl definitions in terms of our private definitions. 607dnl 608 609# GLIB_LC_MESSAGES 610#-------------------- 611glib_DEFUN([GLIB_LC_MESSAGES], 612 [AC_CHECK_HEADERS([locale.h]) 613 if test $ac_cv_header_locale_h = yes; then 614 AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, 615 [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES], 616 am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) 617 if test $am_cv_val_LC_MESSAGES = yes; then 618 AC_DEFINE(HAVE_LC_MESSAGES, 1, 619 [Define if your <locale.h> file defines LC_MESSAGES.]) 620 fi 621 fi]) 622 623# GLIB_PATH_PROG_WITH_TEST 624#---------------------------- 625dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, 626dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) 627glib_DEFUN([GLIB_PATH_PROG_WITH_TEST], 628[# Extract the first word of "$2", so it can be a program name with args. 629set dummy $2; ac_word=[$]2 630AC_MSG_CHECKING([for $ac_word]) 631AC_CACHE_VAL(ac_cv_path_$1, 632[case "[$]$1" in 633 /*) 634 ac_cv_path_$1="[$]$1" # Let the user override the test with a path. 635 ;; 636 *) 637 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 638 for ac_dir in ifelse([$5], , $PATH, [$5]); do 639 test -z "$ac_dir" && ac_dir=. 640 if test -f $ac_dir/$ac_word; then 641 if [$3]; then 642 ac_cv_path_$1="$ac_dir/$ac_word" 643 break 644 fi 645 fi 646 done 647 IFS="$ac_save_ifs" 648dnl If no 4th arg is given, leave the cache variable unset, 649dnl so AC_PATH_PROGS will keep looking. 650ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" 651])dnl 652 ;; 653esac])dnl 654$1="$ac_cv_path_$1" 655if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then 656 AC_MSG_RESULT([$]$1) 657else 658 AC_MSG_RESULT(no) 659fi 660AC_SUBST($1)dnl 661]) 662 663# GLIB_WITH_NLS 664#----------------- 665glib_DEFUN([GLIB_WITH_NLS], 666 dnl NLS is obligatory 667 [USE_NLS=yes 668 AC_SUBST(USE_NLS) 669 670 gt_cv_have_gettext=no 671 672 CATOBJEXT=NONE 673 XGETTEXT=: 674 INTLLIBS= 675 676 AC_CHECK_HEADER(libintl.h, 677 [gt_cv_func_dgettext_libintl="no" 678 libintl_extra_libs="" 679 680 # 681 # First check in libc 682 # 683 AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc, 684 [AC_TRY_LINK([ 685#include <libintl.h> 686], 687 [return !ngettext ("","", 1)], 688 gt_cv_func_ngettext_libc=yes, 689 gt_cv_func_ngettext_libc=no) 690 ]) 691 692 if test "$gt_cv_func_ngettext_libc" = "yes" ; then 693 AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc, 694 [AC_TRY_LINK([ 695#include <libintl.h> 696], 697 [return !dgettext ("","")], 698 gt_cv_func_dgettext_libc=yes, 699 gt_cv_func_dgettext_libc=no) 700 ]) 701 fi 702 703 if test "$gt_cv_func_ngettext_libc" = "yes" ; then 704 AC_CHECK_FUNCS(bind_textdomain_codeset) 705 fi 706 707 # 708 # If we don't have everything we want, check in libintl 709 # 710 if test "$gt_cv_func_dgettext_libc" != "yes" \ 711 || test "$gt_cv_func_ngettext_libc" != "yes" \ 712 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then 713 714 AC_CHECK_LIB(intl, bindtextdomain, 715 [AC_CHECK_LIB(intl, ngettext, 716 [AC_CHECK_LIB(intl, dgettext, 717 gt_cv_func_dgettext_libintl=yes)])]) 718 719 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then 720 AC_MSG_CHECKING([if -liconv is needed to use gettext]) 721 AC_MSG_RESULT([]) 722 AC_CHECK_LIB(intl, ngettext, 723 [AC_CHECK_LIB(intl, dcgettext, 724 [gt_cv_func_dgettext_libintl=yes 725 libintl_extra_libs=-liconv], 726 :,-liconv)], 727 :,-liconv) 728 fi 729 730 # 731 # If we found libintl, then check in it for bind_textdomain_codeset(); 732 # we'll prefer libc if neither have bind_textdomain_codeset(), 733 # and both have dgettext and ngettext 734 # 735 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then 736 glib_save_LIBS="$LIBS" 737 LIBS="$LIBS -lintl $libintl_extra_libs" 738 unset ac_cv_func_bind_textdomain_codeset 739 AC_CHECK_FUNCS(bind_textdomain_codeset) 740 LIBS="$glib_save_LIBS" 741 742 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then 743 gt_cv_func_dgettext_libc=no 744 else 745 if test "$gt_cv_func_dgettext_libc" = "yes" \ 746 && test "$gt_cv_func_ngettext_libc" = "yes"; then 747 gt_cv_func_dgettext_libintl=no 748 fi 749 fi 750 fi 751 fi 752 753 if test "$gt_cv_func_dgettext_libc" = "yes" \ 754 || test "$gt_cv_func_dgettext_libintl" = "yes"; then 755 gt_cv_have_gettext=yes 756 fi 757 758 if test "$gt_cv_func_dgettext_libintl" = "yes"; then 759 INTLLIBS="-lintl $libintl_extra_libs" 760 fi 761 762 if test "$gt_cv_have_gettext" = "yes"; then 763 AC_DEFINE(HAVE_GETTEXT,1, 764 [Define if the GNU gettext() function is already present or preinstalled.]) 765 GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, 766 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl 767 if test "$MSGFMT" != "no"; then 768 glib_save_LIBS="$LIBS" 769 LIBS="$LIBS $INTLLIBS" 770 AC_CHECK_FUNCS(dcgettext) 771 AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) 772 GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, 773 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) 774 AC_TRY_LINK(, [extern int _nl_msg_cat_cntr; 775 return _nl_msg_cat_cntr], 776 [CATOBJEXT=.gmo 777 DATADIRNAME=share], 778 [case $host in 779 *-*-solaris*) 780 dnl On Solaris, if bind_textdomain_codeset is in libc, 781 dnl GNU format message catalog is always supported, 782 dnl since both are added to the libc all together. 783 dnl Hence, we'd like to go with DATADIRNAME=share and 784 dnl and CATOBJEXT=.gmo in this case. 785 AC_CHECK_FUNC(bind_textdomain_codeset, 786 [CATOBJEXT=.gmo 787 DATADIRNAME=share], 788 [CATOBJEXT=.mo 789 DATADIRNAME=lib]) 790 ;; 791 *) 792 CATOBJEXT=.mo 793 DATADIRNAME=lib 794 ;; 795 esac]) 796 LIBS="$glib_save_LIBS" 797 INSTOBJEXT=.mo 798 else 799 gt_cv_have_gettext=no 800 fi 801 fi 802 ]) 803 804 if test "$gt_cv_have_gettext" = "yes" ; then 805 AC_DEFINE(ENABLE_NLS, 1, 806 [always defined to indicate that i18n is enabled]) 807 fi 808 809 dnl Test whether we really found GNU xgettext. 810 if test "$XGETTEXT" != ":"; then 811 dnl If it is not GNU xgettext we define it as : so that the 812 dnl Makefiles still can work. 813 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then 814 : ; 815 else 816 AC_MSG_RESULT( 817 [found xgettext program is not GNU xgettext; ignore it]) 818 XGETTEXT=":" 819 fi 820 fi 821 822 # We need to process the po/ directory. 823 POSUB=po 824 825 AC_OUTPUT_COMMANDS( 826 [case "$CONFIG_FILES" in *po/Makefile.in*) 827 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile 828 esac]) 829 830 dnl These rules are solely for the distribution goal. While doing this 831 dnl we only have to keep exactly one list of the available catalogs 832 dnl in configure.in. 833 for lang in $ALL_LINGUAS; do 834 GMOFILES="$GMOFILES $lang.gmo" 835 POFILES="$POFILES $lang.po" 836 done 837 838 dnl Make all variables we use known to autoconf. 839 AC_SUBST(CATALOGS) 840 AC_SUBST(CATOBJEXT) 841 AC_SUBST(DATADIRNAME) 842 AC_SUBST(GMOFILES) 843 AC_SUBST(INSTOBJEXT) 844 AC_SUBST(INTLLIBS) 845 AC_SUBST(PO_IN_DATADIR_TRUE) 846 AC_SUBST(PO_IN_DATADIR_FALSE) 847 AC_SUBST(POFILES) 848 AC_SUBST(POSUB) 849 ]) 850 851# AM_GLIB_GNU_GETTEXT 852# ------------------- 853# Do checks necessary for use of gettext. If a suitable implementation 854# of gettext is found in either in libintl or in the C library, 855# it will set INTLLIBS to the libraries needed for use of gettext 856# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable 857# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST() 858# on various variables needed by the Makefile.in.in installed by 859# glib-gettextize. 860dnl 861glib_DEFUN([GLIB_GNU_GETTEXT], 862 [AC_REQUIRE([AC_PROG_CC])dnl 863 AC_REQUIRE([AC_HEADER_STDC])dnl 864 865 GLIB_LC_MESSAGES 866 GLIB_WITH_NLS 867 868 if test "$gt_cv_have_gettext" = "yes"; then 869 if test "x$ALL_LINGUAS" = "x"; then 870 LINGUAS= 871 else 872 AC_MSG_CHECKING(for catalogs to be installed) 873 NEW_LINGUAS= 874 for presentlang in $ALL_LINGUAS; do 875 useit=no 876 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then 877 desiredlanguages="$LINGUAS" 878 else 879 desiredlanguages="$ALL_LINGUAS" 880 fi 881 for desiredlang in $desiredlanguages; do 882 # Use the presentlang catalog if desiredlang is 883 # a. equal to presentlang, or 884 # b. a variant of presentlang (because in this case, 885 # presentlang can be used as a fallback for messages 886 # which are not translated in the desiredlang catalog). 887 case "$desiredlang" in 888 "$presentlang"*) useit=yes;; 889 esac 890 done 891 if test $useit = yes; then 892 NEW_LINGUAS="$NEW_LINGUAS $presentlang" 893 fi 894 done 895 LINGUAS=$NEW_LINGUAS 896 AC_MSG_RESULT($LINGUAS) 897 fi 898 899 dnl Construct list of names of catalog files to be constructed. 900 if test -n "$LINGUAS"; then 901 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done 902 fi 903 fi 904 905 dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly 906 dnl find the mkinstalldirs script in another subdir but ($top_srcdir). 907 dnl Try to locate is. 908 MKINSTALLDIRS= 909 if test -n "$ac_aux_dir"; then 910 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" 911 fi 912 if test -z "$MKINSTALLDIRS"; then 913 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 914 fi 915 AC_SUBST(MKINSTALLDIRS) 916 917 dnl Generate list of files to be processed by xgettext which will 918 dnl be included in po/Makefile. 919 test -d po || mkdir po 920 if test "x$srcdir" != "x."; then 921 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then 922 posrcprefix="$srcdir/" 923 else 924 posrcprefix="../$srcdir/" 925 fi 926 else 927 posrcprefix="../" 928 fi 929 rm -f po/POTFILES 930 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ 931 < $srcdir/po/POTFILES.in > po/POTFILES 932 ]) 933 934# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE) 935# ------------------------------- 936# Define VARIABLE to the location where catalog files will 937# be installed by po/Makefile. 938glib_DEFUN([GLIB_DEFINE_LOCALEDIR], 939[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl 940glib_save_prefix="$prefix" 941glib_save_exec_prefix="$exec_prefix" 942test "x$prefix" = xNONE && prefix=$ac_default_prefix 943test "x$exec_prefix" = xNONE && exec_prefix=$prefix 944if test "x$CATOBJEXT" = "x.mo" ; then 945 localedir=`eval echo "${libdir}/locale"` 946else 947 localedir=`eval echo "${datadir}/locale"` 948fi 949prefix="$glib_save_prefix" 950exec_prefix="$glib_save_exec_prefix" 951AC_DEFINE_UNQUOTED($1, "$localedir", 952 [Define the location where the catalogs will be installed]) 953]) 954 955dnl 956dnl Now the definitions that aclocal will find 957dnl 958ifdef(glib_configure_in,[],[ 959AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)]) 960AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)]) 961])dnl 962 963 964dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml]) 965# serial 2 IT_PROG_INTLTOOL 966AC_DEFUN([IT_PROG_INTLTOOL], 967[ 968 969if test -n "$1"; then 970 AC_MSG_CHECKING(for intltool >= $1) 971 972 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ printf "%d", $[1] * 100 + $[2]; }'` 973 INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { printf $[2]; }' < ${ac_aux_dir}/intltool-update.in` 974 changequote({{,}}) 975 INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split(${{2}}, VERSION, "."); printf "%d\n", VERSION[1] * 100 + VERSION[2];}' < ${ac_aux_dir}/intltool-update.in` 976 changequote([,]) 977 978 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT"; then 979 AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found]) 980 else 981 AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool $1 or later.]) 982 exit 1 983 fi 984fi 985 986 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 987INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 988 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 989 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 990 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@' 991 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 992 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 993 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 994INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 995 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 996 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 997 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@' 998 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 999 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 1000 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 1001 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 1002 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 1003 1004AC_SUBST(INTLTOOL_DESKTOP_RULE) 1005AC_SUBST(INTLTOOL_DIRECTORY_RULE) 1006AC_SUBST(INTLTOOL_KEYS_RULE) 1007AC_SUBST(INTLTOOL_PROP_RULE) 1008AC_SUBST(INTLTOOL_OAF_RULE) 1009AC_SUBST(INTLTOOL_PONG_RULE) 1010AC_SUBST(INTLTOOL_SERVER_RULE) 1011AC_SUBST(INTLTOOL_SHEET_RULE) 1012AC_SUBST(INTLTOOL_SOUNDLIST_RULE) 1013AC_SUBST(INTLTOOL_UI_RULE) 1014AC_SUBST(INTLTOOL_XAM_RULE) 1015AC_SUBST(INTLTOOL_KBD_RULE) 1016AC_SUBST(INTLTOOL_XML_RULE) 1017AC_SUBST(INTLTOOL_XML_NOMERGE_RULE) 1018AC_SUBST(INTLTOOL_CAVES_RULE) 1019AC_SUBST(INTLTOOL_SCHEMAS_RULE) 1020AC_SUBST(INTLTOOL_THEME_RULE) 1021 1022# Use the tools built into the package, not the ones that are installed. 1023 1024INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract' 1025INTLTOOL_MERGE='$(top_builddir)/intltool-merge' 1026INTLTOOL_UPDATE='$(top_builddir)/intltool-update' 1027 1028AC_SUBST(INTLTOOL_EXTRACT) 1029AC_SUBST(INTLTOOL_MERGE) 1030AC_SUBST(INTLTOOL_UPDATE) 1031 1032AC_PATH_PROG(INTLTOOL_PERL, perl) 1033if test -z "$INTLTOOL_PERL"; then 1034 AC_MSG_ERROR([perl not found; required for intltool]) 1035fi 1036if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then 1037 AC_MSG_ERROR([perl 5.x required for intltool]) 1038fi 1039if test "x$2" != "xno-xml"; then 1040 AC_MSG_CHECKING([for XML::Parser]) 1041 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then 1042 AC_MSG_RESULT([ok]) 1043 else 1044 AC_MSG_ERROR([XML::Parser perl module is required for intltool]) 1045 fi 1046fi 1047 1048AC_PATH_PROG(INTLTOOL_ICONV, iconv, iconv) 1049AC_PATH_PROG(INTLTOOL_MSGFMT, msgfmt, msgfmt) 1050AC_PATH_PROG(INTLTOOL_MSGMERGE, msgmerge, msgmerge) 1051AC_PATH_PROG(INTLTOOL_XGETTEXT, xgettext, xgettext) 1052 1053# Remove file type tags (using []) from po/POTFILES. 1054 1055ifdef([AC_DIVERSION_ICMDS],[ 1056 AC_DIVERT_PUSH(AC_DIVERSION_ICMDS) 1057 changequote(,) 1058 mv -f po/POTFILES po/POTFILES.tmp 1059 sed -e '/\[encoding.*\]/d' -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES 1060 rm -f po/POTFILES.tmp 1061 changequote([,]) 1062 AC_DIVERT_POP() 1063],[ 1064 ifdef([AC_CONFIG_COMMANDS_PRE],[ 1065 AC_CONFIG_COMMANDS_PRE([ 1066 changequote(,) 1067 mv -f po/POTFILES po/POTFILES.tmp 1068 sed -e '/\[encoding.*\]/d' -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES 1069 rm -f po/POTFILES.tmp 1070 changequote([,]) 1071 ]) 1072 ]) 1073 1074if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 1075 # Keeping the `.' argument allows $(mkdir_p) to be used without 1076 # argument. Indeed, we sometimes output rules like 1077 # $(mkdir_p) $(somedir) 1078 # where $(somedir) is conditionally defined. 1079 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more 1080 # expensive solution, as it forces Make to start a sub-shell.) 1081 mkdir_p='mkdir -p -- .' 1082else 1083 # On NextStep and OpenStep, the `mkdir' command does not 1084 # recognize any option. It will interpret all options as 1085 # directories to create, and then abort because `.' already 1086 # exists. 1087 for d in ./-p ./--version; 1088 do 1089 test -d $d && rmdir $d 1090 done 1091 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 1092 if test -f "$ac_aux_dir/mkinstalldirs"; then 1093 mkdir_p='$(mkinstalldirs)' 1094 else 1095 mkdir_p='$(install_sh) -d' 1096 fi 1097fi 1098AC_SUBST([mkdir_p]) 1099]) 1100 1101# Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT. 1102 1103AC_CONFIG_COMMANDS([intltool], [ 1104 1105intltool_edit="-e 's#@INTLTOOL_EXTRACT@#`pwd`/intltool-extract#g' \ 1106 -e 's#@INTLTOOL_ICONV@#${INTLTOOL_ICONV}#g' \ 1107 -e 's#@INTLTOOL_MSGFMT@#${INTLTOOL_MSGFMT}#g' \ 1108 -e 's#@INTLTOOL_MSGMERGE@#${INTLTOOL_MSGMERGE}#g' \ 1109 -e 's#@INTLTOOL_XGETTEXT@#${INTLTOOL_XGETTEXT}#g' \ 1110 -e 's#@INTLTOOL_PERL@#${INTLTOOL_PERL}#g'" 1111 1112eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-extract.in \ 1113 > intltool-extract.out 1114if cmp -s intltool-extract intltool-extract.out 2>/dev/null; then 1115 rm -f intltool-extract.out 1116else 1117 mv -f intltool-extract.out intltool-extract 1118fi 1119chmod ugo+x intltool-extract 1120chmod u+w intltool-extract 1121 1122eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-merge.in \ 1123 > intltool-merge.out 1124if cmp -s intltool-merge intltool-merge.out 2>/dev/null; then 1125 rm -f intltool-merge.out 1126else 1127 mv -f intltool-merge.out intltool-merge 1128fi 1129chmod ugo+x intltool-merge 1130chmod u+w intltool-merge 1131 1132eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-update.in \ 1133 > intltool-update.out 1134if cmp -s intltool-update intltool-update.out 2>/dev/null; then 1135 rm -f intltool-update.out 1136else 1137 mv -f intltool-update.out intltool-update 1138fi 1139chmod ugo+x intltool-update 1140chmod u+w intltool-update 1141 1142], INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir=${ac_aux_dir} 1143INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}' ICONV='${INTLTOOL_ICONV}' 1144MSGFMT='${INTLTOOL_MSGFMT}' MSGMERGE='${INTLTOOL_MSGMERGE}' 1145XGETTEXT='${INTLTOOL_XGETTEXT}') 1146 1147]) 1148 1149# deprecated macros 1150AC_DEFUN([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL($@)]) 1151 1152 1153# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 1154 1155# serial 47 AC_PROG_LIBTOOL 1156 1157 1158# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) 1159# ----------------------------------------------------------- 1160# If this macro is not defined by Autoconf, define it here. 1161m4_ifdef([AC_PROVIDE_IFELSE], 1162 [], 1163 [m4_define([AC_PROVIDE_IFELSE], 1164 [m4_ifdef([AC_PROVIDE_$1], 1165 [$2], [$3])])]) 1166 1167 1168# AC_PROG_LIBTOOL 1169# --------------- 1170AC_DEFUN([AC_PROG_LIBTOOL], 1171[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl 1172dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX 1173dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. 1174 AC_PROVIDE_IFELSE([AC_PROG_CXX], 1175 [AC_LIBTOOL_CXX], 1176 [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX 1177 ])]) 1178dnl And a similar setup for Fortran 77 support 1179 AC_PROVIDE_IFELSE([AC_PROG_F77], 1180 [AC_LIBTOOL_F77], 1181 [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 1182])]) 1183 1184dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. 1185dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run 1186dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. 1187 AC_PROVIDE_IFELSE([AC_PROG_GCJ], 1188 [AC_LIBTOOL_GCJ], 1189 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], 1190 [AC_LIBTOOL_GCJ], 1191 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], 1192 [AC_LIBTOOL_GCJ], 1193 [ifdef([AC_PROG_GCJ], 1194 [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) 1195 ifdef([A][M_PROG_GCJ], 1196 [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) 1197 ifdef([LT_AC_PROG_GCJ], 1198 [define([LT_AC_PROG_GCJ], 1199 defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) 1200])])# AC_PROG_LIBTOOL 1201 1202 1203# _AC_PROG_LIBTOOL 1204# ---------------- 1205AC_DEFUN([_AC_PROG_LIBTOOL], 1206[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl 1207AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl 1208AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl 1209AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl 1210 1211# This can be used to rebuild libtool when needed 1212LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 1213 1214# Always use our own libtool. 1215LIBTOOL='$(SHELL) $(top_builddir)/libtool' 1216AC_SUBST(LIBTOOL)dnl 1217 1218# Prevent multiple expansion 1219define([AC_PROG_LIBTOOL], []) 1220])# _AC_PROG_LIBTOOL 1221 1222 1223# AC_LIBTOOL_SETUP 1224# ---------------- 1225AC_DEFUN([AC_LIBTOOL_SETUP], 1226[AC_PREREQ(2.50)dnl 1227AC_REQUIRE([AC_ENABLE_SHARED])dnl 1228AC_REQUIRE([AC_ENABLE_STATIC])dnl 1229AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl 1230AC_REQUIRE([AC_CANONICAL_HOST])dnl 1231AC_REQUIRE([AC_CANONICAL_BUILD])dnl 1232AC_REQUIRE([AC_PROG_CC])dnl 1233AC_REQUIRE([AC_PROG_LD])dnl 1234AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl 1235AC_REQUIRE([AC_PROG_NM])dnl 1236 1237AC_REQUIRE([AC_PROG_LN_S])dnl 1238AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl 1239# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 1240AC_REQUIRE([AC_OBJEXT])dnl 1241AC_REQUIRE([AC_EXEEXT])dnl 1242dnl 1243 1244AC_LIBTOOL_SYS_MAX_CMD_LEN 1245AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 1246AC_LIBTOOL_OBJDIR 1247 1248AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 1249_LT_AC_PROG_ECHO_BACKSLASH 1250 1251case $host_os in 1252aix3*) 1253 # AIX sometimes has problems with the GCC collect2 program. For some 1254 # reason, if we set the COLLECT_NAMES environment variable, the problems 1255 # vanish in a puff of smoke. 1256 if test "X${COLLECT_NAMES+set}" != Xset; then 1257 COLLECT_NAMES= 1258 export COLLECT_NAMES 1259 fi 1260 ;; 1261esac 1262 1263# Sed substitution that helps us do robust quoting. It backslashifies 1264# metacharacters that are still active within double-quoted strings. 1265Xsed='sed -e 1s/^X//' 1266[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] 1267 1268# Same as above, but do not quote variable references. 1269[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] 1270 1271# Sed substitution to delay expansion of an escaped shell variable in a 1272# double_quote_subst'ed string. 1273delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 1274 1275# Sed substitution to avoid accidental globbing in evaled expressions 1276no_glob_subst='s/\*/\\\*/g' 1277 1278# Constants: 1279rm="rm -f" 1280 1281# Global variables: 1282default_ofile=libtool 1283can_build_shared=yes 1284 1285# All known linkers require a `.a' archive for static linking (except MSVC, 1286# which needs '.lib'). 1287libext=a 1288ltmain="$ac_aux_dir/ltmain.sh" 1289ofile="$default_ofile" 1290with_gnu_ld="$lt_cv_prog_gnu_ld" 1291 1292AC_CHECK_TOOL(AR, ar, false) 1293AC_CHECK_TOOL(RANLIB, ranlib, :) 1294AC_CHECK_TOOL(STRIP, strip, :) 1295 1296old_CC="$CC" 1297old_CFLAGS="$CFLAGS" 1298 1299# Set sane defaults for various variables 1300test -z "$AR" && AR=ar 1301test -z "$AR_FLAGS" && AR_FLAGS=cru 1302test -z "$AS" && AS=as 1303test -z "$CC" && CC=cc 1304test -z "$LTCC" && LTCC=$CC 1305test -z "$DLLTOOL" && DLLTOOL=dlltool 1306test -z "$LD" && LD=ld 1307test -z "$LN_S" && LN_S="ln -s" 1308test -z "$MAGIC_CMD" && MAGIC_CMD=file 1309test -z "$NM" && NM=nm 1310test -z "$SED" && SED=sed 1311test -z "$OBJDUMP" && OBJDUMP=objdump 1312test -z "$RANLIB" && RANLIB=: 1313test -z "$STRIP" && STRIP=: 1314test -z "$ac_objext" && ac_objext=o 1315 1316# Determine commands to create old-style static archives. 1317old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 1318old_postinstall_cmds='chmod 644 $oldlib' 1319old_postuninstall_cmds= 1320 1321if test -n "$RANLIB"; then 1322 case $host_os in 1323 openbsd*) 1324 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 1325 ;; 1326 *) 1327 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 1328 ;; 1329 esac 1330 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 1331fi 1332 1333_LT_CC_BASENAME([$compiler]) 1334 1335# Only perform the check for file, if the check method requires it 1336case $deplibs_check_method in 1337file_magic*) 1338 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 1339 AC_PATH_MAGIC 1340 fi 1341 ;; 1342esac 1343 1344AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) 1345AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], 1346enable_win32_dll=yes, enable_win32_dll=no) 1347 1348AC_ARG_ENABLE([libtool-lock], 1349 [AC_HELP_STRING([--disable-libtool-lock], 1350 [avoid locking (might break parallel builds)])]) 1351test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 1352 1353AC_ARG_WITH([pic], 1354 [AC_HELP_STRING([--with-pic], 1355 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], 1356 [pic_mode="$withval"], 1357 [pic_mode=default]) 1358test -z "$pic_mode" && pic_mode=default 1359 1360# Use C for the default configuration in the libtool script 1361tagname= 1362AC_LIBTOOL_LANG_C_CONFIG 1363_LT_AC_TAGCONFIG 1364])# AC_LIBTOOL_SETUP 1365 1366 1367# _LT_AC_SYS_COMPILER 1368# ------------------- 1369AC_DEFUN([_LT_AC_SYS_COMPILER], 1370[AC_REQUIRE([AC_PROG_CC])dnl 1371 1372# If no C compiler was specified, use CC. 1373LTCC=${LTCC-"$CC"} 1374 1375# Allow CC to be a program name with arguments. 1376compiler=$CC 1377])# _LT_AC_SYS_COMPILER 1378 1379 1380# _LT_CC_BASENAME(CC) 1381# ------------------- 1382# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 1383AC_DEFUN([_LT_CC_BASENAME], 1384[for cc_temp in $1""; do 1385 case $cc_temp in 1386 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 1387 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 1388 \-*) ;; 1389 *) break;; 1390 esac 1391done 1392cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 1393]) 1394 1395 1396# _LT_COMPILER_BOILERPLATE 1397# ------------------------ 1398# Check for compiler boilerplate output or warnings with 1399# the simple compiler test code. 1400AC_DEFUN([_LT_COMPILER_BOILERPLATE], 1401[ac_outfile=conftest.$ac_objext 1402printf "$lt_simple_compile_test_code" >conftest.$ac_ext 1403eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 1404_lt_compiler_boilerplate=`cat conftest.err` 1405$rm conftest* 1406])# _LT_COMPILER_BOILERPLATE 1407 1408 1409# _LT_LINKER_BOILERPLATE 1410# ---------------------- 1411# Check for linker boilerplate output or warnings with 1412# the simple link test code. 1413AC_DEFUN([_LT_LINKER_BOILERPLATE], 1414[ac_outfile=conftest.$ac_objext 1415printf "$lt_simple_link_test_code" >conftest.$ac_ext 1416eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 1417_lt_linker_boilerplate=`cat conftest.err` 1418$rm conftest* 1419])# _LT_LINKER_BOILERPLATE 1420 1421 1422# _LT_AC_SYS_LIBPATH_AIX 1423# ---------------------- 1424# Links a minimal program and checks the executable 1425# for the system default hardcoded library path. In most cases, 1426# this is /usr/lib:/lib, but when the MPI compilers are used 1427# the location of the communication and MPI libs are included too. 1428# If we don't find anything, use the default library path according 1429# to the aix ld manual. 1430AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], 1431[AC_LINK_IFELSE(AC_LANG_PROGRAM,[ 1432aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 1433}'` 1434# Check for a 64-bit object if we didn't find anything. 1435if 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; } 1436}'`; fi],[]) 1437if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 1438])# _LT_AC_SYS_LIBPATH_AIX 1439 1440 1441# _LT_AC_SHELL_INIT(ARG) 1442# ---------------------- 1443AC_DEFUN([_LT_AC_SHELL_INIT], 1444[ifdef([AC_DIVERSION_NOTICE], 1445 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], 1446 [AC_DIVERT_PUSH(NOTICE)]) 1447$1 1448AC_DIVERT_POP 1449])# _LT_AC_SHELL_INIT 1450 1451 1452# _LT_AC_PROG_ECHO_BACKSLASH 1453# -------------------------- 1454# Add some code to the start of the generated configure script which 1455# will find an echo command which doesn't interpret backslashes. 1456AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], 1457[_LT_AC_SHELL_INIT([ 1458# Check that we are running under the correct shell. 1459SHELL=${CONFIG_SHELL-/bin/sh} 1460 1461case X$ECHO in 1462X*--fallback-echo) 1463 # Remove one level of quotation (which was required for Make). 1464 ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` 1465 ;; 1466esac 1467 1468echo=${ECHO-echo} 1469if test "X[$]1" = X--no-reexec; then 1470 # Discard the --no-reexec flag, and continue. 1471 shift 1472elif test "X[$]1" = X--fallback-echo; then 1473 # Avoid inline document here, it may be left over 1474 : 1475elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 1476 # Yippee, $echo works! 1477 : 1478else 1479 # Restart under the correct shell. 1480 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} 1481fi 1482 1483if test "X[$]1" = X--fallback-echo; then 1484 # used as fallback echo 1485 shift 1486 cat <<EOF 1487[$]* 1488EOF 1489 exit 0 1490fi 1491 1492# The HP-UX ksh and POSIX shell print the target directory to stdout 1493# if CDPATH is set. 1494(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 1495 1496if test -z "$ECHO"; then 1497if test "X${echo_test_string+set}" != Xset; then 1498# find a string as large as possible, as long as the shell can cope with it 1499 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do 1500 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 1501 if (echo_test_string=`eval $cmd`) 2>/dev/null && 1502 echo_test_string=`eval $cmd` && 1503 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 1504 then 1505 break 1506 fi 1507 done 1508fi 1509 1510if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 1511 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 1512 test "X$echo_testing_string" = "X$echo_test_string"; then 1513 : 1514else 1515 # The Solaris, AIX, and Digital Unix default echo programs unquote 1516 # backslashes. This makes it impossible to quote backslashes using 1517 # echo "$something" | sed 's/\\/\\\\/g' 1518 # 1519 # So, first we look for a working echo in the user's PATH. 1520 1521 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 1522 for dir in $PATH /usr/ucb; do 1523 IFS="$lt_save_ifs" 1524 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 1525 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 1526 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 1527 test "X$echo_testing_string" = "X$echo_test_string"; then 1528 echo="$dir/echo" 1529 break 1530 fi 1531 done 1532 IFS="$lt_save_ifs" 1533 1534 if test "X$echo" = Xecho; then 1535 # We didn't find a better echo, so look for alternatives. 1536 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 1537 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 1538 test "X$echo_testing_string" = "X$echo_test_string"; then 1539 # This shell has a builtin print -r that does the trick. 1540 echo='print -r' 1541 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 1542 test "X$CONFIG_SHELL" != X/bin/ksh; then 1543 # If we have ksh, try running configure again with it. 1544 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 1545 export ORIGINAL_CONFIG_SHELL 1546 CONFIG_SHELL=/bin/ksh 1547 export CONFIG_SHELL 1548 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} 1549 else 1550 # Try using printf. 1551 echo='printf %s\n' 1552 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 1553 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 1554 test "X$echo_testing_string" = "X$echo_test_string"; then 1555 # Cool, printf works 1556 : 1557 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 1558 test "X$echo_testing_string" = 'X\t' && 1559 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 1560 test "X$echo_testing_string" = "X$echo_test_string"; then 1561 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 1562 export CONFIG_SHELL 1563 SHELL="$CONFIG_SHELL" 1564 export SHELL 1565 echo="$CONFIG_SHELL [$]0 --fallback-echo" 1566 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 1567 test "X$echo_testing_string" = 'X\t' && 1568 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 1569 test "X$echo_testing_string" = "X$echo_test_string"; then 1570 echo="$CONFIG_SHELL [$]0 --fallback-echo" 1571 else 1572 # maybe with a smaller string... 1573 prev=: 1574 1575 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do 1576 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 1577 then 1578 break 1579 fi 1580 prev="$cmd" 1581 done 1582 1583 if test "$prev" != 'sed 50q "[$]0"'; then 1584 echo_test_string=`eval $prev` 1585 export echo_test_string 1586 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} 1587 else 1588 # Oops. We lost completely, so just stick with echo. 1589 echo=echo 1590 fi 1591 fi 1592 fi 1593 fi 1594fi 1595fi 1596 1597# Copy echo and quote the copy suitably for passing to libtool from 1598# the Makefile, instead of quoting the original, which is used later. 1599ECHO=$echo 1600if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then 1601 ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" 1602fi 1603 1604AC_SUBST(ECHO) 1605])])# _LT_AC_PROG_ECHO_BACKSLASH 1606 1607 1608# _LT_AC_LOCK 1609# ----------- 1610AC_DEFUN([_LT_AC_LOCK], 1611[AC_ARG_ENABLE([libtool-lock], 1612 [AC_HELP_STRING([--disable-libtool-lock], 1613 [avoid locking (might break parallel builds)])]) 1614test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 1615 1616# Some flags need to be propagated to the compiler or linker for good 1617# libtool support. 1618case $host in 1619ia64-*-hpux*) 1620 # Find out which ABI we are using. 1621 echo 'int i;' > conftest.$ac_ext 1622 if AC_TRY_EVAL(ac_compile); then 1623 case `/usr/bin/file conftest.$ac_objext` in 1624 *ELF-32*) 1625 HPUX_IA64_MODE="32" 1626 ;; 1627 *ELF-64*) 1628 HPUX_IA64_MODE="64" 1629 ;; 1630 esac 1631 fi 1632 rm -rf conftest* 1633 ;; 1634*-*-irix6*) 1635 # Find out which ABI we are using. 1636 echo '[#]line __oline__ "configure"' > conftest.$ac_ext 1637 if AC_TRY_EVAL(ac_compile); then 1638 if test "$lt_cv_prog_gnu_ld" = yes; then 1639 case `/usr/bin/file conftest.$ac_objext` in 1640 *32-bit*) 1641 LD="${LD-ld} -melf32bsmip" 1642 ;; 1643 *N32*) 1644 LD="${LD-ld} -melf32bmipn32" 1645 ;; 1646 *64-bit*) 1647 LD="${LD-ld} -melf64bmip" 1648 ;; 1649 esac 1650 else 1651 case `/usr/bin/file conftest.$ac_objext` in 1652 *32-bit*) 1653 LD="${LD-ld} -32" 1654 ;; 1655 *N32*) 1656 LD="${LD-ld} -n32" 1657 ;; 1658 *64-bit*) 1659 LD="${LD-ld} -64" 1660 ;; 1661 esac 1662 fi 1663 fi 1664 rm -rf conftest* 1665 ;; 1666 1667x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 1668 # Find out which ABI we are using. 1669 echo 'int i;' > conftest.$ac_ext 1670 if AC_TRY_EVAL(ac_compile); then 1671 case `/usr/bin/file conftest.o` in 1672 *32-bit*) 1673 case $host in 1674 x86_64-*linux*) 1675 LD="${LD-ld} -m elf_i386" 1676 ;; 1677 ppc64-*linux*|powerpc64-*linux*) 1678 LD="${LD-ld} -m elf32ppclinux" 1679 ;; 1680 s390x-*linux*) 1681 LD="${LD-ld} -m elf_s390" 1682 ;; 1683 sparc64-*linux*) 1684 LD="${LD-ld} -m elf32_sparc" 1685 ;; 1686 esac 1687 ;; 1688 *64-bit*) 1689 case $host in 1690 x86_64-*linux*) 1691 LD="${LD-ld} -m elf_x86_64" 1692 ;; 1693 ppc*-*linux*|powerpc*-*linux*) 1694 LD="${LD-ld} -m elf64ppc" 1695 ;; 1696 s390*-*linux*) 1697 LD="${LD-ld} -m elf64_s390" 1698 ;; 1699 sparc*-*linux*) 1700 LD="${LD-ld} -m elf64_sparc" 1701 ;; 1702 esac 1703 ;; 1704 esac 1705 fi 1706 rm -rf conftest* 1707 ;; 1708 1709*-*-sco3.2v5*) 1710 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 1711 SAVE_CFLAGS="$CFLAGS" 1712 CFLAGS="$CFLAGS -belf" 1713 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 1714 [AC_LANG_PUSH(C) 1715 AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 1716 AC_LANG_POP]) 1717 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 1718 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 1719 CFLAGS="$SAVE_CFLAGS" 1720 fi 1721 ;; 1722AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], 1723[*-*-cygwin* | *-*-mingw* | *-*-pw32*) 1724 AC_CHECK_TOOL(DLLTOOL, dlltool, false) 1725 AC_CHECK_TOOL(AS, as, false) 1726 AC_CHECK_TOOL(OBJDUMP, objdump, false) 1727 ;; 1728 ]) 1729esac 1730 1731need_locks="$enable_libtool_lock" 1732 1733])# _LT_AC_LOCK 1734 1735 1736# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 1737# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 1738# ---------------------------------------------------------------- 1739# Check whether the given compiler option works 1740AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], 1741[AC_REQUIRE([LT_AC_PROG_SED]) 1742AC_CACHE_CHECK([$1], [$2], 1743 [$2=no 1744 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 1745 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 1746 lt_compiler_flag="$3" 1747 # Insert the option either (1) after the last *FLAGS variable, or 1748 # (2) before a word containing "conftest.", or (3) at the end. 1749 # Note that $ac_compile itself does not contain backslashes and begins 1750 # with a dollar sign (not a hyphen), so the echo should work correctly. 1751 # The option is referenced via a variable to avoid confusing sed. 1752 lt_compile=`echo "$ac_compile" | $SED \ 1753 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 1754 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 1755 -e 's:$: $lt_compiler_flag:'` 1756 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 1757 (eval "$lt_compile" 2>conftest.err) 1758 ac_status=$? 1759 cat conftest.err >&AS_MESSAGE_LOG_FD 1760 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 1761 if (exit $ac_status) && test -s "$ac_outfile"; then 1762 # The compiler can only warn and ignore the option if not recognized 1763 # So say no if there are warnings other than the usual output. 1764 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 1765 $SED '/^$/d' conftest.err >conftest.er2 1766 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 1767 $2=yes 1768 fi 1769 fi 1770 $rm conftest* 1771]) 1772 1773if test x"[$]$2" = xyes; then 1774 ifelse([$5], , :, [$5]) 1775else 1776 ifelse([$6], , :, [$6]) 1777fi 1778])# AC_LIBTOOL_COMPILER_OPTION 1779 1780 1781# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 1782# [ACTION-SUCCESS], [ACTION-FAILURE]) 1783# ------------------------------------------------------------ 1784# Check whether the given compiler option works 1785AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], 1786[AC_CACHE_CHECK([$1], [$2], 1787 [$2=no 1788 save_LDFLAGS="$LDFLAGS" 1789 LDFLAGS="$LDFLAGS $3" 1790 printf "$lt_simple_link_test_code" > conftest.$ac_ext 1791 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 1792 # The linker can only warn and ignore the option if not recognized 1793 # So say no if there are warnings 1794 if test -s conftest.err; then 1795 # Append any errors to the config.log. 1796 cat conftest.err 1>&AS_MESSAGE_LOG_FD 1797 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp 1798 $SED '/^$/d' conftest.err >conftest.er2 1799 if diff conftest.exp conftest.er2 >/dev/null; then 1800 $2=yes 1801 fi 1802 else 1803 $2=yes 1804 fi 1805 fi 1806 $rm conftest* 1807 LDFLAGS="$save_LDFLAGS" 1808]) 1809 1810if test x"[$]$2" = xyes; then 1811 ifelse([$4], , :, [$4]) 1812else 1813 ifelse([$5], , :, [$5]) 1814fi 1815])# AC_LIBTOOL_LINKER_OPTION 1816 1817 1818# AC_LIBTOOL_SYS_MAX_CMD_LEN 1819# -------------------------- 1820AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], 1821[# find the maximum length of command line arguments 1822AC_MSG_CHECKING([the maximum length of command line arguments]) 1823AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 1824 i=0 1825 teststring="ABCD" 1826 1827 case $build_os in 1828 msdosdjgpp*) 1829 # On DJGPP, this test can blow up pretty badly due to problems in libc 1830 # (any single argument exceeding 2000 bytes causes a buffer overrun 1831 # during glob expansion). Even if it were fixed, the result of this 1832 # check would be larger than it should be. 1833 lt_cv_sys_max_cmd_len=12288; # 12K is about right 1834 ;; 1835 1836 gnu*) 1837 # Under GNU Hurd, this test is not required because there is 1838 # no limit to the length of command line arguments. 1839 # Libtool will interpret -1 as no limit whatsoever 1840 lt_cv_sys_max_cmd_len=-1; 1841 ;; 1842 1843 cygwin* | mingw*) 1844 # On Win9x/ME, this test blows up -- it succeeds, but takes 1845 # about 5 minutes as the teststring grows exponentially. 1846 # Worse, since 9x/ME are not pre-emptively multitasking, 1847 # you end up with a "frozen" computer, even though with patience 1848 # the test eventually succeeds (with a max line length of 256k). 1849 # Instead, let's just punt: use the minimum linelength reported by 1850 # all of the supported platforms: 8192 (on NT/2K/XP). 1851 lt_cv_sys_max_cmd_len=8192; 1852 ;; 1853 1854 amigaos*) 1855 # On AmigaOS with pdksh, this test takes hours, literally. 1856 # So we just punt and use a minimum line length of 8192. 1857 lt_cv_sys_max_cmd_len=8192; 1858 ;; 1859 1860 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 1861 # This has been around since 386BSD, at least. Likely further. 1862 if test -x /sbin/sysctl; then 1863 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 1864 elif test -x /usr/sbin/sysctl; then 1865 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 1866 else 1867 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 1868 fi 1869 # And add a safety zone 1870 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 1871 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 1872 ;; 1873 osf*) 1874 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 1875 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 1876 # nice to cause kernel panics so lets avoid the loop below. 1877 # First set a reasonable default. 1878 lt_cv_sys_max_cmd_len=16384 1879 # 1880 if test -x /sbin/sysconfig; then 1881 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 1882 *1*) lt_cv_sys_max_cmd_len=-1 ;; 1883 esac 1884 fi 1885 ;; 1886 *) 1887 # If test is not a shell built-in, we'll probably end up computing a 1888 # maximum length that is only half of the actual maximum length, but 1889 # we can't tell. 1890 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 1891 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ 1892 = "XX$teststring") >/dev/null 2>&1 && 1893 new_result=`expr "X$teststring" : ".*" 2>&1` && 1894 lt_cv_sys_max_cmd_len=$new_result && 1895 test $i != 17 # 1/2 MB should be enough 1896 do 1897 i=`expr $i + 1` 1898 teststring=$teststring$teststring 1899 done 1900 teststring= 1901 # Add a significant safety factor because C++ compilers can tack on massive 1902 # amounts of additional arguments before passing them to the linker. 1903 # It appears as though 1/2 is a usable value. 1904 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 1905 ;; 1906 esac 1907]) 1908if test -n $lt_cv_sys_max_cmd_len ; then 1909 AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 1910else 1911 AC_MSG_RESULT(none) 1912fi 1913])# AC_LIBTOOL_SYS_MAX_CMD_LEN 1914 1915 1916# _LT_AC_CHECK_DLFCN 1917# -------------------- 1918AC_DEFUN([_LT_AC_CHECK_DLFCN], 1919[AC_CHECK_HEADERS(dlfcn.h)dnl 1920])# _LT_AC_CHECK_DLFCN 1921 1922 1923# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 1924# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 1925# ------------------------------------------------------------------ 1926AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], 1927[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl 1928if test "$cross_compiling" = yes; then : 1929 [$4] 1930else 1931 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 1932 lt_status=$lt_dlunknown 1933 cat > conftest.$ac_ext <<EOF 1934[#line __oline__ "configure" 1935#include "confdefs.h" 1936 1937#if HAVE_DLFCN_H 1938#include <dlfcn.h> 1939#endif 1940 1941#include <stdio.h> 1942 1943#ifdef RTLD_GLOBAL 1944# define LT_DLGLOBAL RTLD_GLOBAL 1945#else 1946# ifdef DL_GLOBAL 1947# define LT_DLGLOBAL DL_GLOBAL 1948# else 1949# define LT_DLGLOBAL 0 1950# endif 1951#endif 1952 1953/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 1954 find out it does not work in some platform. */ 1955#ifndef LT_DLLAZY_OR_NOW 1956# ifdef RTLD_LAZY 1957# define LT_DLLAZY_OR_NOW RTLD_LAZY 1958# else 1959# ifdef DL_LAZY 1960# define LT_DLLAZY_OR_NOW DL_LAZY 1961# else 1962# ifdef RTLD_NOW 1963# define LT_DLLAZY_OR_NOW RTLD_NOW 1964# else 1965# ifdef DL_NOW 1966# define LT_DLLAZY_OR_NOW DL_NOW 1967# else 1968# define LT_DLLAZY_OR_NOW 0 1969# endif 1970# endif 1971# endif 1972# endif 1973#endif 1974 1975#ifdef __cplusplus 1976extern "C" void exit (int); 1977#endif 1978 1979void fnord() { int i=42;} 1980int main () 1981{ 1982 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 1983 int status = $lt_dlunknown; 1984 1985 if (self) 1986 { 1987 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 1988 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 1989 /* dlclose (self); */ 1990 } 1991 1992 exit (status); 1993}] 1994EOF 1995 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then 1996 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null 1997 lt_status=$? 1998 case x$lt_status in 1999 x$lt_dlno_uscore) $1 ;; 2000 x$lt_dlneed_uscore) $2 ;; 2001 x$lt_unknown|x*) $3 ;; 2002 esac 2003 else : 2004 # compilation failed 2005 $3 2006 fi 2007fi 2008rm -fr conftest* 2009])# _LT_AC_TRY_DLOPEN_SELF 2010 2011 2012# AC_LIBTOOL_DLOPEN_SELF 2013# ------------------- 2014AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], 2015[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl 2016if test "x$enable_dlopen" != xyes; then 2017 enable_dlopen=unknown 2018 enable_dlopen_self=unknown 2019 enable_dlopen_self_static=unknown 2020else 2021 lt_cv_dlopen=no 2022 lt_cv_dlopen_libs= 2023 2024 case $host_os in 2025 beos*) 2026 lt_cv_dlopen="load_add_on" 2027 lt_cv_dlopen_libs= 2028 lt_cv_dlopen_self=yes 2029 ;; 2030 2031 mingw* | pw32*) 2032 lt_cv_dlopen="LoadLibrary" 2033 lt_cv_dlopen_libs= 2034 ;; 2035 2036 cygwin*) 2037 lt_cv_dlopen="dlopen" 2038 lt_cv_dlopen_libs= 2039 ;; 2040 2041 darwin*) 2042 # if libdl is installed we need to link against it 2043 AC_CHECK_LIB([dl], [dlopen], 2044 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ 2045 lt_cv_dlopen="dyld" 2046 lt_cv_dlopen_libs= 2047 lt_cv_dlopen_self=yes 2048 ]) 2049 ;; 2050 2051 *) 2052 AC_CHECK_FUNC([shl_load], 2053 [lt_cv_dlopen="shl_load"], 2054 [AC_CHECK_LIB([dld], [shl_load], 2055 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], 2056 [AC_CHECK_FUNC([dlopen], 2057 [lt_cv_dlopen="dlopen"], 2058 [AC_CHECK_LIB([dl], [dlopen], 2059 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], 2060 [AC_CHECK_LIB([svld], [dlopen], 2061 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], 2062 [AC_CHECK_LIB([dld], [dld_link], 2063 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) 2064 ]) 2065 ]) 2066 ]) 2067 ]) 2068 ]) 2069 ;; 2070 esac 2071 2072 if test "x$lt_cv_dlopen" != xno; then 2073 enable_dlopen=yes 2074 else 2075 enable_dlopen=no 2076 fi 2077 2078 case $lt_cv_dlopen in 2079 dlopen) 2080 save_CPPFLAGS="$CPPFLAGS" 2081 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 2082 2083 save_LDFLAGS="$LDFLAGS" 2084 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 2085 2086 save_LIBS="$LIBS" 2087 LIBS="$lt_cv_dlopen_libs $LIBS" 2088 2089 AC_CACHE_CHECK([whether a program can dlopen itself], 2090 lt_cv_dlopen_self, [dnl 2091 _LT_AC_TRY_DLOPEN_SELF( 2092 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, 2093 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) 2094 ]) 2095 2096 if test "x$lt_cv_dlopen_self" = xyes; then 2097 LDFLAGS="$LDFLAGS $link_static_flag" 2098 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 2099 lt_cv_dlopen_self_static, [dnl 2100 _LT_AC_TRY_DLOPEN_SELF( 2101 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, 2102 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) 2103 ]) 2104 fi 2105 2106 CPPFLAGS="$save_CPPFLAGS" 2107 LDFLAGS="$save_LDFLAGS" 2108 LIBS="$save_LIBS" 2109 ;; 2110 esac 2111 2112 case $lt_cv_dlopen_self in 2113 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 2114 *) enable_dlopen_self=unknown ;; 2115 esac 2116 2117 case $lt_cv_dlopen_self_static in 2118 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 2119 *) enable_dlopen_self_static=unknown ;; 2120 esac 2121fi 2122])# AC_LIBTOOL_DLOPEN_SELF 2123 2124 2125# AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) 2126# --------------------------------- 2127# Check to see if options -c and -o are simultaneously supported by compiler 2128AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], 2129[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 2130AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], 2131 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], 2132 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no 2133 $rm -r conftest 2>/dev/null 2134 mkdir conftest 2135 cd conftest 2136 mkdir out 2137 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 2138 2139 lt_compiler_flag="-o out/conftest2.$ac_objext" 2140 # Insert the option either (1) after the last *FLAGS variable, or 2141 # (2) before a word containing "conftest.", or (3) at the end. 2142 # Note that $ac_compile itself does not contain backslashes and begins 2143 # with a dollar sign (not a hyphen), so the echo should work correctly. 2144 lt_compile=`echo "$ac_compile" | $SED \ 2145 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 2146 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 2147 -e 's:$: $lt_compiler_flag:'` 2148 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 2149 (eval "$lt_compile" 2>out/conftest.err) 2150 ac_status=$? 2151 cat out/conftest.err >&AS_MESSAGE_LOG_FD 2152 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 2153 if (exit $ac_status) && test -s out/conftest2.$ac_objext 2154 then 2155 # The compiler can only warn and ignore the option if not recognized 2156 # So say no if there are warnings 2157 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 2158 $SED '/^$/d' out/conftest.err >out/conftest.er2 2159 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 2160 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 2161 fi 2162 fi 2163 chmod u+w . 2>&AS_MESSAGE_LOG_FD 2164 $rm conftest* 2165 # SGI C++ compiler will create directory out/ii_files/ for 2166 # template instantiation 2167 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 2168 $rm out/* && rmdir out 2169 cd .. 2170 rmdir conftest 2171 $rm conftest* 2172]) 2173])# AC_LIBTOOL_PROG_CC_C_O 2174 2175 2176# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) 2177# ----------------------------------------- 2178# Check to see if we can do hard links to lock some files if needed 2179AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], 2180[AC_REQUIRE([_LT_AC_LOCK])dnl 2181 2182hard_links="nottested" 2183if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then 2184 # do not overwrite the value of need_locks provided by the user 2185 AC_MSG_CHECKING([if we can lock with hard links]) 2186 hard_links=yes 2187 $rm conftest* 2188 ln conftest.a conftest.b 2>/dev/null && hard_links=no 2189 touch conftest.a 2190 ln conftest.a conftest.b 2>&5 || hard_links=no 2191 ln conftest.a conftest.b 2>/dev/null && hard_links=no 2192 AC_MSG_RESULT([$hard_links]) 2193 if test "$hard_links" = no; then 2194 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) 2195 need_locks=warn 2196 fi 2197else 2198 need_locks=no 2199fi 2200])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS 2201 2202 2203# AC_LIBTOOL_OBJDIR 2204# ----------------- 2205AC_DEFUN([AC_LIBTOOL_OBJDIR], 2206[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], 2207[rm -f .libs 2>/dev/null 2208mkdir .libs 2>/dev/null 2209if test -d .libs; then 2210 lt_cv_objdir=.libs 2211else 2212 # MS-DOS does not allow filenames that begin with a dot. 2213 lt_cv_objdir=_libs 2214fi 2215rmdir .libs 2>/dev/null]) 2216objdir=$lt_cv_objdir 2217])# AC_LIBTOOL_OBJDIR 2218 2219 2220# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) 2221# ---------------------------------------------- 2222# Check hardcoding attributes. 2223AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], 2224[AC_MSG_CHECKING([how to hardcode library paths into programs]) 2225_LT_AC_TAGVAR(hardcode_action, $1)= 2226if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ 2227 test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ 2228 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then 2229 2230 # We can hardcode non-existant directories. 2231 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && 2232 # If the only mechanism to avoid hardcoding is shlibpath_var, we 2233 # have to relink, otherwise we might link with an installed library 2234 # when we should be linking with a yet-to-be-installed one 2235 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && 2236 test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then 2237 # Linking always hardcodes the temporary library directory. 2238 _LT_AC_TAGVAR(hardcode_action, $1)=relink 2239 else 2240 # We can link without hardcoding, and we can hardcode nonexisting dirs. 2241 _LT_AC_TAGVAR(hardcode_action, $1)=immediate 2242 fi 2243else 2244 # We cannot hardcode anything, or else we can only hardcode existing 2245 # directories. 2246 _LT_AC_TAGVAR(hardcode_action, $1)=unsupported 2247fi 2248AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) 2249 2250if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then 2251 # Fast installation is not supported 2252 enable_fast_install=no 2253elif test "$shlibpath_overrides_runpath" = yes || 2254 test "$enable_shared" = no; then 2255 # Fast installation is not necessary 2256 enable_fast_install=needless 2257fi 2258])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH 2259 2260 2261# AC_LIBTOOL_SYS_LIB_STRIP 2262# ------------------------ 2263AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], 2264[striplib= 2265old_striplib= 2266AC_MSG_CHECKING([whether stripping libraries is possible]) 2267if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 2268 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 2269 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 2270 AC_MSG_RESULT([yes]) 2271else 2272# FIXME - insert some real tests, host_os isn't really good enough 2273 case $host_os in 2274 darwin*) 2275 if test -n "$STRIP" ; then 2276 striplib="$STRIP -x" 2277 AC_MSG_RESULT([yes]) 2278 else 2279 AC_MSG_RESULT([no]) 2280fi 2281 ;; 2282 *) 2283 AC_MSG_RESULT([no]) 2284 ;; 2285 esac 2286fi 2287])# AC_LIBTOOL_SYS_LIB_STRIP 2288 2289 2290# AC_LIBTOOL_SYS_DYNAMIC_LINKER 2291# ----------------------------- 2292# PORTME Fill in your ld.so characteristics 2293AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], 2294[AC_MSG_CHECKING([dynamic linker characteristics]) 2295library_names_spec= 2296libname_spec='lib$name' 2297soname_spec= 2298shrext_cmds=".so" 2299postinstall_cmds= 2300postuninstall_cmds= 2301finish_cmds= 2302finish_eval= 2303shlibpath_var= 2304shlibpath_overrides_runpath=unknown 2305version_type=none 2306dynamic_linker="$host_os ld.so" 2307sys_lib_dlsearch_path_spec="/lib /usr/lib" 2308if test "$GCC" = yes; then 2309 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 2310 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 2311 # if the path contains ";" then we assume it to be the separator 2312 # otherwise default to the standard path separator (i.e. ":") - it is 2313 # assumed that no part of a normal pathname contains ";" but that should 2314 # okay in the real world where ";" in dirpaths is itself problematic. 2315 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 2316 else 2317 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 2318 fi 2319else 2320 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 2321fi 2322need_lib_prefix=unknown 2323hardcode_into_libs=no 2324 2325# when you set need_version to no, make sure it does not cause -set_version 2326# flags to be left without arguments 2327need_version=unknown 2328 2329case $host_os in 2330aix3*) 2331 version_type=linux 2332 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 2333 shlibpath_var=LIBPATH 2334 2335 # AIX 3 has no versioning support, so we append a major version to the name. 2336 soname_spec='${libname}${release}${shared_ext}$major' 2337 ;; 2338 2339aix4* | aix5*) 2340 version_type=linux 2341 need_lib_prefix=no 2342 need_version=no 2343 hardcode_into_libs=yes 2344 if test "$host_cpu" = ia64; then 2345 # AIX 5 supports IA64 2346 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 2347 shlibpath_var=LD_LIBRARY_PATH 2348 else 2349 # With GCC up to 2.95.x, collect2 would create an import file 2350 # for dependence libraries. The import file would start with 2351 # the line `#! .'. This would cause the generated library to 2352 # depend on `.', always an invalid library. This was fixed in 2353 # development snapshots of GCC prior to 3.0. 2354 case $host_os in 2355 aix4 | aix4.[[01]] | aix4.[[01]].*) 2356 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 2357 echo ' yes ' 2358 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 2359 : 2360 else 2361 can_build_shared=no 2362 fi 2363 ;; 2364 esac 2365 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 2366 # soname into executable. Probably we can add versioning support to 2367 # collect2, so additional links can be useful in future. 2368 if test "$aix_use_runtimelinking" = yes; then 2369 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 2370 # instead of lib<name>.a to let people know that these are not 2371 # typical AIX shared libraries. 2372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2373 else 2374 # We preserve .a as extension for shared libraries through AIX4.2 2375 # and later when we are not doing run time linking. 2376 library_names_spec='${libname}${release}.a $libname.a' 2377 soname_spec='${libname}${release}${shared_ext}$major' 2378 fi 2379 shlibpath_var=LIBPATH 2380 fi 2381 ;; 2382 2383amigaos*) 2384 library_names_spec='$libname.ixlibrary $libname.a' 2385 # Create ${libname}_ixlibrary.a entries in /sys/libs. 2386 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' 2387 ;; 2388 2389beos*) 2390 library_names_spec='${libname}${shared_ext}' 2391 dynamic_linker="$host_os ld.so" 2392 shlibpath_var=LIBRARY_PATH 2393 ;; 2394 2395bsdi[[45]]*) 2396 version_type=linux 2397 need_version=no 2398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2399 soname_spec='${libname}${release}${shared_ext}$major' 2400 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 2401 shlibpath_var=LD_LIBRARY_PATH 2402 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 2403 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 2404 # the default ld.so.conf also contains /usr/contrib/lib and 2405 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 2406 # libtool to hard-code these into programs 2407 ;; 2408 2409cygwin* | mingw* | pw32*) 2410 version_type=windows 2411 shrext_cmds=".dll" 2412 need_version=no 2413 need_lib_prefix=no 2414 2415 case $GCC,$host_os in 2416 yes,cygwin* | yes,mingw* | yes,pw32*) 2417 library_names_spec='$libname.dll.a' 2418 # DLL is installed to $(libdir)/../bin by postinstall_cmds 2419 postinstall_cmds='base_file=`basename \${file}`~ 2420 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 2421 dldir=$destdir/`dirname \$dlpath`~ 2422 test -d \$dldir || mkdir -p \$dldir~ 2423 $install_prog $dir/$dlname \$dldir/$dlname~ 2424 chmod a+x \$dldir/$dlname' 2425 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 2426 dlpath=$dir/\$dldll~ 2427 $rm \$dlpath' 2428 shlibpath_overrides_runpath=yes 2429 2430 case $host_os in 2431 cygwin*) 2432 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 2433 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 2434 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 2435 ;; 2436 mingw*) 2437 # MinGW DLLs use traditional 'lib' prefix 2438 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 2439 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 2440 if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then 2441 # It is most probably a Windows format PATH printed by 2442 # mingw gcc, but we are running on Cygwin. Gcc prints its search 2443 # path with ; separators, and with drive letters. We can handle the 2444 # drive letters (cygwin fileutils understands them), so leave them, 2445 # especially as we might pass files found there to a mingw objdump, 2446 # which wouldn't understand a cygwinified path. Ahh. 2447 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 2448 else 2449 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 2450 fi 2451 ;; 2452 pw32*) 2453 # pw32 DLLs use 'pw' prefix rather than 'lib' 2454 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 2455 ;; 2456 esac 2457 ;; 2458 2459 *) 2460 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' 2461 ;; 2462 esac 2463 dynamic_linker='Win32 ld.exe' 2464 # FIXME: first we should search . and the directory the executable is in 2465 shlibpath_var=PATH 2466 ;; 2467 2468darwin* | rhapsody*) 2469 dynamic_linker="$host_os dyld" 2470 version_type=darwin 2471 need_lib_prefix=no 2472 need_version=no 2473 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 2474 soname_spec='${libname}${release}${major}$shared_ext' 2475 shlibpath_overrides_runpath=yes 2476 shlibpath_var=DYLD_LIBRARY_PATH 2477 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 2478 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 2479 if test "$GCC" = yes; then 2480 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"` 2481 else 2482 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 2483 fi 2484 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 2485 ;; 2486 2487dgux*) 2488 version_type=linux 2489 need_lib_prefix=no 2490 need_version=no 2491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 2492 soname_spec='${libname}${release}${shared_ext}$major' 2493 shlibpath_var=LD_LIBRARY_PATH 2494 ;; 2495 2496freebsd1*) 2497 dynamic_linker=no 2498 ;; 2499 2500kfreebsd*-gnu) 2501 version_type=linux 2502 need_lib_prefix=no 2503 need_version=no 2504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 2505 soname_spec='${libname}${release}${shared_ext}$major' 2506 shlibpath_var=LD_LIBRARY_PATH 2507 shlibpath_overrides_runpath=no 2508 hardcode_into_libs=yes 2509 dynamic_linker='GNU ld.so' 2510 ;; 2511 2512freebsd* | dragonfly*) 2513 # DragonFly does not have aout. When/if they implement a new 2514 # versioning mechanism, adjust this. 2515 if test -x /usr/bin/objformat; then 2516 objformat=`/usr/bin/objformat` 2517 else 2518 case $host_os in 2519 freebsd[[123]]*) objformat=aout ;; 2520 *) objformat=elf ;; 2521 esac 2522 fi 2523 version_type=freebsd-$objformat 2524 case $version_type in 2525 freebsd-elf*) 2526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 2527 need_version=no 2528 need_lib_prefix=no 2529 ;; 2530 freebsd-*) 2531 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 2532 need_version=yes 2533 ;; 2534 esac 2535 shlibpath_var=LD_LIBRARY_PATH 2536 case $host_os in 2537 freebsd2*) 2538 shlibpath_overrides_runpath=yes 2539 ;; 2540 freebsd3.[[01]]* | freebsdelf3.[[01]]*) 2541 shlibpath_overrides_runpath=yes 2542 hardcode_into_libs=yes 2543 ;; 2544 *) # from 3.2 on 2545 shlibpath_overrides_runpath=no 2546 hardcode_into_libs=yes 2547 ;; 2548 esac 2549 ;; 2550 2551gnu*) 2552 version_type=linux 2553 need_lib_prefix=no 2554 need_version=no 2555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 2556 soname_spec='${libname}${release}${shared_ext}$major' 2557 shlibpath_var=LD_LIBRARY_PATH 2558 hardcode_into_libs=yes 2559 ;; 2560 2561hpux9* | hpux10* | hpux11*) 2562 # Give a soname corresponding to the major version so that dld.sl refuses to 2563 # link against other versions. 2564 version_type=sunos 2565 need_lib_prefix=no 2566 need_version=no 2567 case $host_cpu in 2568 ia64*) 2569 shrext_cmds='.so' 2570 hardcode_into_libs=yes 2571 dynamic_linker="$host_os dld.so" 2572 shlibpath_var=LD_LIBRARY_PATH 2573 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 2574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2575 soname_spec='${libname}${release}${shared_ext}$major' 2576 if test "X$HPUX_IA64_MODE" = X32; then 2577 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 2578 else 2579 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 2580 fi 2581 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 2582 ;; 2583 hppa*64*) 2584 shrext_cmds='.sl' 2585 hardcode_into_libs=yes 2586 dynamic_linker="$host_os dld.sl" 2587 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 2588 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 2589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2590 soname_spec='${libname}${release}${shared_ext}$major' 2591 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 2592 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 2593 ;; 2594 *) 2595 shrext_cmds='.sl' 2596 dynamic_linker="$host_os dld.sl" 2597 shlibpath_var=SHLIB_PATH 2598 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 2599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2600 soname_spec='${libname}${release}${shared_ext}$major' 2601 ;; 2602 esac 2603 # HP-UX runs *really* slowly unless shared libraries are mode 555. 2604 postinstall_cmds='chmod 555 $lib' 2605 ;; 2606 2607irix5* | irix6* | nonstopux*) 2608 case $host_os in 2609 nonstopux*) version_type=nonstopux ;; 2610 *) 2611 if test "$lt_cv_prog_gnu_ld" = yes; then 2612 version_type=linux 2613 else 2614 version_type=irix 2615 fi ;; 2616 esac 2617 need_lib_prefix=no 2618 need_version=no 2619 soname_spec='${libname}${release}${shared_ext}$major' 2620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 2621 case $host_os in 2622 irix5* | nonstopux*) 2623 libsuff= shlibsuff= 2624 ;; 2625 *) 2626 case $LD in # libtool.m4 will add one of these switches to LD 2627 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 2628 libsuff= shlibsuff= libmagic=32-bit;; 2629 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 2630 libsuff=32 shlibsuff=N32 libmagic=N32;; 2631 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 2632 libsuff=64 shlibsuff=64 libmagic=64-bit;; 2633 *) libsuff= shlibsuff= libmagic=never-match;; 2634 esac 2635 ;; 2636 esac 2637 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 2638 shlibpath_overrides_runpath=no 2639 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 2640 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 2641 hardcode_into_libs=yes 2642 ;; 2643 2644# No shared lib support for Linux oldld, aout, or coff. 2645linux*oldld* | linux*aout* | linux*coff*) 2646 dynamic_linker=no 2647 ;; 2648 2649# This must be Linux ELF. 2650linux*) 2651 version_type=linux 2652 need_lib_prefix=no 2653 need_version=no 2654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2655 soname_spec='${libname}${release}${shared_ext}$major' 2656 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 2657 shlibpath_var=LD_LIBRARY_PATH 2658 shlibpath_overrides_runpath=no 2659 # This implies no fast_install, which is unacceptable. 2660 # Some rework will be needed to allow for fast_install 2661 # before this can be enabled. 2662 hardcode_into_libs=yes 2663 2664 # Append ld.so.conf contents to the search path 2665 if test -f /etc/ld.so.conf; then 2666 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' ' '` 2667 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 2668 fi 2669 2670 # We used to test for /lib/ld.so.1 and disable shared libraries on 2671 # powerpc, because MkLinux only supported shared libraries with the 2672 # GNU dynamic linker. Since this was broken with cross compilers, 2673 # most powerpc-linux boxes support dynamic linking these days and 2674 # people can always --disable-shared, the test was removed, and we 2675 # assume the GNU/Linux dynamic linker is in use. 2676 dynamic_linker='GNU/Linux ld.so' 2677 ;; 2678 2679knetbsd*-gnu) 2680 version_type=linux 2681 need_lib_prefix=no 2682 need_version=no 2683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 2684 soname_spec='${libname}${release}${shared_ext}$major' 2685 shlibpath_var=LD_LIBRARY_PATH 2686 shlibpath_overrides_runpath=no 2687 hardcode_into_libs=yes 2688 dynamic_linker='GNU ld.so' 2689 ;; 2690 2691netbsd*) 2692 version_type=sunos 2693 need_lib_prefix=no 2694 need_version=no 2695 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 2696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 2697 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 2698 dynamic_linker='NetBSD (a.out) ld.so' 2699 else 2700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 2701 soname_spec='${libname}${release}${shared_ext}$major' 2702 dynamic_linker='NetBSD ld.elf_so' 2703 fi 2704 shlibpath_var=LD_LIBRARY_PATH 2705 shlibpath_overrides_runpath=yes 2706 hardcode_into_libs=yes 2707 ;; 2708 2709newsos6) 2710 version_type=linux 2711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2712 shlibpath_var=LD_LIBRARY_PATH 2713 shlibpath_overrides_runpath=yes 2714 ;; 2715 2716nto-qnx*) 2717 version_type=linux 2718 need_lib_prefix=no 2719 need_version=no 2720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2721 soname_spec='${libname}${release}${shared_ext}$major' 2722 shlibpath_var=LD_LIBRARY_PATH 2723 shlibpath_overrides_runpath=yes 2724 ;; 2725 2726openbsd*) 2727 version_type=sunos 2728 need_lib_prefix=no 2729 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 2730 case $host_os in 2731 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 2732 *) need_version=no ;; 2733 esac 2734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 2735 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 2736 shlibpath_var=LD_LIBRARY_PATH 2737 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 2738 case $host_os in 2739 openbsd2.[[89]] | openbsd2.[[89]].*) 2740 shlibpath_overrides_runpath=no 2741 ;; 2742 *) 2743 shlibpath_overrides_runpath=yes 2744 ;; 2745 esac 2746 else 2747 shlibpath_overrides_runpath=yes 2748 fi 2749 ;; 2750 2751os2*) 2752 libname_spec='$name' 2753 shrext_cmds=".dll" 2754 need_lib_prefix=no 2755 library_names_spec='$libname${shared_ext} $libname.a' 2756 dynamic_linker='OS/2 ld.exe' 2757 shlibpath_var=LIBPATH 2758 ;; 2759 2760osf3* | osf4* | osf5*) 2761 version_type=osf 2762 need_lib_prefix=no 2763 need_version=no 2764 soname_spec='${libname}${release}${shared_ext}$major' 2765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2766 shlibpath_var=LD_LIBRARY_PATH 2767 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 2768 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 2769 ;; 2770 2771sco3.2v5*) 2772 version_type=osf 2773 soname_spec='${libname}${release}${shared_ext}$major' 2774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2775 shlibpath_var=LD_LIBRARY_PATH 2776 ;; 2777 2778solaris*) 2779 version_type=linux 2780 need_lib_prefix=no 2781 need_version=no 2782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2783 soname_spec='${libname}${release}${shared_ext}$major' 2784 shlibpath_var=LD_LIBRARY_PATH 2785 shlibpath_overrides_runpath=yes 2786 hardcode_into_libs=yes 2787 # ldd complains unless libraries are executable 2788 postinstall_cmds='chmod +x $lib' 2789 ;; 2790 2791sunos4*) 2792 version_type=sunos 2793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 2794 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 2795 shlibpath_var=LD_LIBRARY_PATH 2796 shlibpath_overrides_runpath=yes 2797 if test "$with_gnu_ld" = yes; then 2798 need_lib_prefix=no 2799 fi 2800 need_version=yes 2801 ;; 2802 2803sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 2804 version_type=linux 2805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2806 soname_spec='${libname}${release}${shared_ext}$major' 2807 shlibpath_var=LD_LIBRARY_PATH 2808 case $host_vendor in 2809 sni) 2810 shlibpath_overrides_runpath=no 2811 need_lib_prefix=no 2812 export_dynamic_flag_spec='${wl}-Blargedynsym' 2813 runpath_var=LD_RUN_PATH 2814 ;; 2815 siemens) 2816 need_lib_prefix=no 2817 ;; 2818 motorola) 2819 need_lib_prefix=no 2820 need_version=no 2821 shlibpath_overrides_runpath=no 2822 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 2823 ;; 2824 esac 2825 ;; 2826 2827sysv4*MP*) 2828 if test -d /usr/nec ;then 2829 version_type=linux 2830 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 2831 soname_spec='$libname${shared_ext}.$major' 2832 shlibpath_var=LD_LIBRARY_PATH 2833 fi 2834 ;; 2835 2836uts4*) 2837 version_type=linux 2838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2839 soname_spec='${libname}${release}${shared_ext}$major' 2840 shlibpath_var=LD_LIBRARY_PATH 2841 ;; 2842 2843*) 2844 dynamic_linker=no 2845 ;; 2846esac 2847AC_MSG_RESULT([$dynamic_linker]) 2848test "$dynamic_linker" = no && can_build_shared=no 2849])# AC_LIBTOOL_SYS_DYNAMIC_LINKER 2850 2851 2852# _LT_AC_TAGCONFIG 2853# ---------------- 2854AC_DEFUN([_LT_AC_TAGCONFIG], 2855[AC_ARG_WITH([tags], 2856 [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], 2857 [include additional configurations @<:@automatic@:>@])], 2858 [tagnames="$withval"]) 2859 2860if test -f "$ltmain" && test -n "$tagnames"; then 2861 if test ! -f "${ofile}"; then 2862 AC_MSG_WARN([output file `$ofile' does not exist]) 2863 fi 2864 2865 if test -z "$LTCC"; then 2866 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 2867 if test -z "$LTCC"; then 2868 AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) 2869 else 2870 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) 2871 fi 2872 fi 2873 2874 # Extract list of available tagged configurations in $ofile. 2875 # Note that this assumes the entire list is on one line. 2876 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 2877 2878 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2879 for tagname in $tagnames; do 2880 IFS="$lt_save_ifs" 2881 # Check whether tagname contains only valid characters 2882 case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in 2883 "") ;; 2884 *) AC_MSG_ERROR([invalid tag name: $tagname]) 2885 ;; 2886 esac 2887 2888 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 2889 then 2890 AC_MSG_ERROR([tag name \"$tagname\" already exists]) 2891 fi 2892 2893 # Update the list of available tags. 2894 if test -n "$tagname"; then 2895 echo appending configuration tag \"$tagname\" to $ofile 2896 2897 case $tagname in 2898 CXX) 2899 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 2900 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 2901 (test "X$CXX" != "Xg++"))) ; then 2902 AC_LIBTOOL_LANG_CXX_CONFIG 2903 else 2904 tagname="" 2905 fi 2906 ;; 2907 2908 F77) 2909 if test -n "$F77" && test "X$F77" != "Xno"; then 2910 AC_LIBTOOL_LANG_F77_CONFIG 2911 else 2912 tagname="" 2913 fi 2914 ;; 2915 2916 GCJ) 2917 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 2918 AC_LIBTOOL_LANG_GCJ_CONFIG 2919 else 2920 tagname="" 2921 fi 2922 ;; 2923 2924 RC) 2925 AC_LIBTOOL_LANG_RC_CONFIG 2926 ;; 2927 2928 *) 2929 AC_MSG_ERROR([Unsupported tag name: $tagname]) 2930 ;; 2931 esac 2932 2933 # Append the new tag name to the list of available tags. 2934 if test -n "$tagname" ; then 2935 available_tags="$available_tags $tagname" 2936 fi 2937 fi 2938 done 2939 IFS="$lt_save_ifs" 2940 2941 # Now substitute the updated list of available tags. 2942 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 2943 mv "${ofile}T" "$ofile" 2944 chmod +x "$ofile" 2945 else 2946 rm -f "${ofile}T" 2947 AC_MSG_ERROR([unable to update list of available tagged configurations.]) 2948 fi 2949fi 2950])# _LT_AC_TAGCONFIG 2951 2952 2953# AC_LIBTOOL_DLOPEN 2954# ----------------- 2955# enable checks for dlopen support 2956AC_DEFUN([AC_LIBTOOL_DLOPEN], 2957 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) 2958])# AC_LIBTOOL_DLOPEN 2959 2960 2961# AC_LIBTOOL_WIN32_DLL 2962# -------------------- 2963# declare package support for building win32 DLLs 2964AC_DEFUN([AC_LIBTOOL_WIN32_DLL], 2965[AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) 2966])# AC_LIBTOOL_WIN32_DLL 2967 2968 2969# AC_ENABLE_SHARED([DEFAULT]) 2970# --------------------------- 2971# implement the --enable-shared flag 2972# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 2973AC_DEFUN([AC_ENABLE_SHARED], 2974[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl 2975AC_ARG_ENABLE([shared], 2976 [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], 2977 [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], 2978 [p=${PACKAGE-default} 2979 case $enableval in 2980 yes) enable_shared=yes ;; 2981 no) enable_shared=no ;; 2982 *) 2983 enable_shared=no 2984 # Look at the argument we got. We use all the common list separators. 2985 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2986 for pkg in $enableval; do 2987 IFS="$lt_save_ifs" 2988 if test "X$pkg" = "X$p"; then 2989 enable_shared=yes 2990 fi 2991 done 2992 IFS="$lt_save_ifs" 2993 ;; 2994 esac], 2995 [enable_shared=]AC_ENABLE_SHARED_DEFAULT) 2996])# AC_ENABLE_SHARED 2997 2998 2999# AC_DISABLE_SHARED 3000# ----------------- 3001#- set the default shared flag to --disable-shared 3002AC_DEFUN([AC_DISABLE_SHARED], 3003[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 3004AC_ENABLE_SHARED(no) 3005])# AC_DISABLE_SHARED 3006 3007 3008# AC_ENABLE_STATIC([DEFAULT]) 3009# --------------------------- 3010# implement the --enable-static flag 3011# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 3012AC_DEFUN([AC_ENABLE_STATIC], 3013[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl 3014AC_ARG_ENABLE([static], 3015 [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], 3016 [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], 3017 [p=${PACKAGE-default} 3018 case $enableval in 3019 yes) enable_static=yes ;; 3020 no) enable_static=no ;; 3021 *) 3022 enable_static=no 3023 # Look at the argument we got. We use all the common list separators. 3024 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3025 for pkg in $enableval; do 3026 IFS="$lt_save_ifs" 3027 if test "X$pkg" = "X$p"; then 3028 enable_static=yes 3029 fi 3030 done 3031 IFS="$lt_save_ifs" 3032 ;; 3033 esac], 3034 [enable_static=]AC_ENABLE_STATIC_DEFAULT) 3035])# AC_ENABLE_STATIC 3036 3037 3038# AC_DISABLE_STATIC 3039# ----------------- 3040# set the default static flag to --disable-static 3041AC_DEFUN([AC_DISABLE_STATIC], 3042[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 3043AC_ENABLE_STATIC(no) 3044])# AC_DISABLE_STATIC 3045 3046 3047# AC_ENABLE_FAST_INSTALL([DEFAULT]) 3048# --------------------------------- 3049# implement the --enable-fast-install flag 3050# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 3051AC_DEFUN([AC_ENABLE_FAST_INSTALL], 3052[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl 3053AC_ARG_ENABLE([fast-install], 3054 [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], 3055 [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], 3056 [p=${PACKAGE-default} 3057 case $enableval in 3058 yes) enable_fast_install=yes ;; 3059 no) enable_fast_install=no ;; 3060 *) 3061 enable_fast_install=no 3062 # Look at the argument we got. We use all the common list separators. 3063 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3064 for pkg in $enableval; do 3065 IFS="$lt_save_ifs" 3066 if test "X$pkg" = "X$p"; then 3067 enable_fast_install=yes 3068 fi 3069 done 3070 IFS="$lt_save_ifs" 3071 ;; 3072 esac], 3073 [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) 3074])# AC_ENABLE_FAST_INSTALL 3075 3076 3077# AC_DISABLE_FAST_INSTALL 3078# ----------------------- 3079# set the default to --disable-fast-install 3080AC_DEFUN([AC_DISABLE_FAST_INSTALL], 3081[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 3082AC_ENABLE_FAST_INSTALL(no) 3083])# AC_DISABLE_FAST_INSTALL 3084 3085 3086# AC_LIBTOOL_PICMODE([MODE]) 3087# -------------------------- 3088# implement the --with-pic flag 3089# MODE is either `yes' or `no'. If omitted, it defaults to `both'. 3090AC_DEFUN([AC_LIBTOOL_PICMODE], 3091[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 3092pic_mode=ifelse($#,1,$1,default) 3093])# AC_LIBTOOL_PICMODE 3094 3095 3096# AC_PROG_EGREP 3097# ------------- 3098# This is predefined starting with Autoconf 2.54, so this conditional 3099# definition can be removed once we require Autoconf 2.54 or later. 3100m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], 3101[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], 3102 [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3103 then ac_cv_prog_egrep='grep -E' 3104 else ac_cv_prog_egrep='egrep' 3105 fi]) 3106 EGREP=$ac_cv_prog_egrep 3107 AC_SUBST([EGREP]) 3108])]) 3109 3110 3111# AC_PATH_TOOL_PREFIX 3112# ------------------- 3113# find a file program which can recognise shared library 3114AC_DEFUN([AC_PATH_TOOL_PREFIX], 3115[AC_REQUIRE([AC_PROG_EGREP])dnl 3116AC_MSG_CHECKING([for $1]) 3117AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, 3118[case $MAGIC_CMD in 3119[[\\/*] | ?:[\\/]*]) 3120 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 3121 ;; 3122*) 3123 lt_save_MAGIC_CMD="$MAGIC_CMD" 3124 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3125dnl $ac_dummy forces splitting on constant user-supplied paths. 3126dnl POSIX.2 word splitting is done only on the output of word expansions, 3127dnl not every word. This closes a longstanding sh security hole. 3128 ac_dummy="ifelse([$2], , $PATH, [$2])" 3129 for ac_dir in $ac_dummy; do 3130 IFS="$lt_save_ifs" 3131 test -z "$ac_dir" && ac_dir=. 3132 if test -f $ac_dir/$1; then 3133 lt_cv_path_MAGIC_CMD="$ac_dir/$1" 3134 if test -n "$file_magic_test_file"; then 3135 case $deplibs_check_method in 3136 "file_magic "*) 3137 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 3138 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 3139 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 3140 $EGREP "$file_magic_regex" > /dev/null; then 3141 : 3142 else 3143 cat <<EOF 1>&2 3144 3145*** Warning: the command libtool uses to detect shared libraries, 3146*** $file_magic_cmd, produces output that libtool cannot recognize. 3147*** The result is that libtool may fail to recognize shared libraries 3148*** as such. This will affect the creation of libtool libraries that 3149*** depend on shared libraries, but programs linked with such libtool 3150*** libraries will work regardless of this problem. Nevertheless, you 3151*** may want to report the problem to your system manager and/or to 3152*** bug-libtool@gnu.org 3153 3154EOF 3155 fi ;; 3156 esac 3157 fi 3158 break 3159 fi 3160 done 3161 IFS="$lt_save_ifs" 3162 MAGIC_CMD="$lt_save_MAGIC_CMD" 3163 ;; 3164esac]) 3165MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 3166if test -n "$MAGIC_CMD"; then 3167 AC_MSG_RESULT($MAGIC_CMD) 3168else 3169 AC_MSG_RESULT(no) 3170fi 3171])# AC_PATH_TOOL_PREFIX 3172 3173 3174# AC_PATH_MAGIC 3175# ------------- 3176# find a file program which can recognise a shared library 3177AC_DEFUN([AC_PATH_MAGIC], 3178[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) 3179if test -z "$lt_cv_path_MAGIC_CMD"; then 3180 if test -n "$ac_tool_prefix"; then 3181 AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) 3182 else 3183 MAGIC_CMD=: 3184 fi 3185fi 3186])# AC_PATH_MAGIC 3187 3188 3189# AC_PROG_LD 3190# ---------- 3191# find the pathname to the GNU or non-GNU linker 3192AC_DEFUN([AC_PROG_LD], 3193[AC_ARG_WITH([gnu-ld], 3194 [AC_HELP_STRING([--with-gnu-ld], 3195 [assume the C compiler uses GNU ld @<:@default=no@:>@])], 3196 [test "$withval" = no || with_gnu_ld=yes], 3197 [with_gnu_ld=no]) 3198AC_REQUIRE([LT_AC_PROG_SED])dnl 3199AC_REQUIRE([AC_PROG_CC])dnl 3200AC_REQUIRE([AC_CANONICAL_HOST])dnl 3201AC_REQUIRE([AC_CANONICAL_BUILD])dnl 3202ac_prog=ld 3203if test "$GCC" = yes; then 3204 # Check if gcc -print-prog-name=ld gives a path. 3205 AC_MSG_CHECKING([for ld used by $CC]) 3206 case $host in 3207 *-*-mingw*) 3208 # gcc leaves a trailing carriage return which upsets mingw 3209 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3210 *) 3211 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3212 esac 3213 case $ac_prog in 3214 # Accept absolute paths. 3215 [[\\/]]* | ?:[[\\/]]*) 3216 re_direlt='/[[^/]][[^/]]*/\.\./' 3217 # Canonicalize the pathname of ld 3218 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3219 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3220 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3221 done 3222 test -z "$LD" && LD="$ac_prog" 3223 ;; 3224 "") 3225 # If it fails, then pretend we aren't using GCC. 3226 ac_prog=ld 3227 ;; 3228 *) 3229 # If it is relative, then search for the first ld in PATH. 3230 with_gnu_ld=unknown 3231 ;; 3232 esac 3233elif test "$with_gnu_ld" = yes; then 3234 AC_MSG_CHECKING([for GNU ld]) 3235else 3236 AC_MSG_CHECKING([for non-GNU ld]) 3237fi 3238AC_CACHE_VAL(lt_cv_path_LD, 3239[if test -z "$LD"; then 3240 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3241 for ac_dir in $PATH; do 3242 IFS="$lt_save_ifs" 3243 test -z "$ac_dir" && ac_dir=. 3244 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3245 lt_cv_path_LD="$ac_dir/$ac_prog" 3246 # Check to see if the program is GNU ld. I'd rather use --version, 3247 # but apparently some variants of GNU ld only accept -v. 3248 # Break only if it was the GNU/non-GNU ld that we prefer. 3249 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3250 *GNU* | *'with BFD'*) 3251 test "$with_gnu_ld" != no && break 3252 ;; 3253 *) 3254 test "$with_gnu_ld" != yes && break 3255 ;; 3256 esac 3257 fi 3258 done 3259 IFS="$lt_save_ifs" 3260else 3261 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3262fi]) 3263LD="$lt_cv_path_LD" 3264if test -n "$LD"; then 3265 AC_MSG_RESULT($LD) 3266else 3267 AC_MSG_RESULT(no) 3268fi 3269test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 3270AC_PROG_LD_GNU 3271])# AC_PROG_LD 3272 3273 3274# AC_PROG_LD_GNU 3275# -------------- 3276AC_DEFUN([AC_PROG_LD_GNU], 3277[AC_REQUIRE([AC_PROG_EGREP])dnl 3278AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 3279[# I'd rather use --version here, but apparently some GNU lds only accept -v. 3280case `$LD -v 2>&1 </dev/null` in 3281*GNU* | *'with BFD'*) 3282 lt_cv_prog_gnu_ld=yes 3283 ;; 3284*) 3285 lt_cv_prog_gnu_ld=no 3286 ;; 3287esac]) 3288with_gnu_ld=$lt_cv_prog_gnu_ld 3289])# AC_PROG_LD_GNU 3290 3291 3292# AC_PROG_LD_RELOAD_FLAG 3293# ---------------------- 3294# find reload flag for linker 3295# -- PORTME Some linkers may need a different reload flag. 3296AC_DEFUN([AC_PROG_LD_RELOAD_FLAG], 3297[AC_CACHE_CHECK([for $LD option to reload object files], 3298 lt_cv_ld_reload_flag, 3299 [lt_cv_ld_reload_flag='-r']) 3300reload_flag=$lt_cv_ld_reload_flag 3301case $reload_flag in 3302"" | " "*) ;; 3303*) reload_flag=" $reload_flag" ;; 3304esac 3305reload_cmds='$LD$reload_flag -o $output$reload_objs' 3306case $host_os in 3307 darwin*) 3308 if test "$GCC" = yes; then 3309 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' 3310 else 3311 reload_cmds='$LD$reload_flag -o $output$reload_objs' 3312 fi 3313 ;; 3314esac 3315])# AC_PROG_LD_RELOAD_FLAG 3316 3317 3318# AC_DEPLIBS_CHECK_METHOD 3319# ----------------------- 3320# how to check for library dependencies 3321# -- PORTME fill in with the dynamic library characteristics 3322AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], 3323[AC_CACHE_CHECK([how to recognise dependent libraries], 3324lt_cv_deplibs_check_method, 3325[lt_cv_file_magic_cmd='$MAGIC_CMD' 3326lt_cv_file_magic_test_file= 3327lt_cv_deplibs_check_method='unknown' 3328# Need to set the preceding variable on all platforms that support 3329# interlibrary dependencies. 3330# 'none' -- dependencies not supported. 3331# `unknown' -- same as none, but documents that we really don't know. 3332# 'pass_all' -- all dependencies passed with no checks. 3333# 'test_compile' -- check by making test program. 3334# 'file_magic [[regex]]' -- check by looking for files in library path 3335# which responds to the $file_magic_cmd with a given extended regex. 3336# If you have `file' or equivalent on your system and you're not sure 3337# whether `pass_all' will *always* work, you probably want this one. 3338 3339case $host_os in 3340aix4* | aix5*) 3341 lt_cv_deplibs_check_method=pass_all 3342 ;; 3343 3344beos*) 3345 lt_cv_deplibs_check_method=pass_all 3346 ;; 3347 3348bsdi[[45]]*) 3349 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 3350 lt_cv_file_magic_cmd='/usr/bin/file -L' 3351 lt_cv_file_magic_test_file=/shlib/libc.so 3352 ;; 3353 3354cygwin*) 3355 # func_win32_libid is a shell function defined in ltmain.sh 3356 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3357 lt_cv_file_magic_cmd='func_win32_libid' 3358 ;; 3359 3360mingw* | pw32*) 3361 # Base MSYS/MinGW do not provide the 'file' command needed by 3362 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 3363 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3364 lt_cv_file_magic_cmd='$OBJDUMP -f' 3365 ;; 3366 3367darwin* | rhapsody*) 3368 lt_cv_deplibs_check_method=pass_all 3369 ;; 3370 3371freebsd* | kfreebsd*-gnu | dragonfly*) 3372 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3373 case $host_cpu in 3374 i*86 ) 3375 # Not sure whether the presence of OpenBSD here was a mistake. 3376 # Let's accept both of them until this is cleared up. 3377 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' 3378 lt_cv_file_magic_cmd=/usr/bin/file 3379 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3380 ;; 3381 esac 3382 else 3383 lt_cv_deplibs_check_method=pass_all 3384 fi 3385 ;; 3386 3387gnu*) 3388 lt_cv_deplibs_check_method=pass_all 3389 ;; 3390 3391hpux10.20* | hpux11*) 3392 lt_cv_file_magic_cmd=/usr/bin/file 3393 case $host_cpu in 3394 ia64*) 3395 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' 3396 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 3397 ;; 3398 hppa*64*) 3399 [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]'] 3400 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 3401 ;; 3402 *) 3403 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' 3404 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3405 ;; 3406 esac 3407 ;; 3408 3409irix5* | irix6* | nonstopux*) 3410 case $LD in 3411 *-32|*"-32 ") libmagic=32-bit;; 3412 *-n32|*"-n32 ") libmagic=N32;; 3413 *-64|*"-64 ") libmagic=64-bit;; 3414 *) libmagic=never-match;; 3415 esac 3416 lt_cv_deplibs_check_method=pass_all 3417 ;; 3418 3419# This must be Linux ELF. 3420linux*) 3421 lt_cv_deplibs_check_method=pass_all 3422 ;; 3423 3424netbsd*) 3425 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3426 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 3427 else 3428 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' 3429 fi 3430 ;; 3431 3432newos6*) 3433 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' 3434 lt_cv_file_magic_cmd=/usr/bin/file 3435 lt_cv_file_magic_test_file=/usr/lib/libnls.so 3436 ;; 3437 3438nto-qnx*) 3439 lt_cv_deplibs_check_method=unknown 3440 ;; 3441 3442openbsd*) 3443 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3444 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' 3445 else 3446 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 3447 fi 3448 ;; 3449 3450osf3* | osf4* | osf5*) 3451 lt_cv_deplibs_check_method=pass_all 3452 ;; 3453 3454sco3.2v5*) 3455 lt_cv_deplibs_check_method=pass_all 3456 ;; 3457 3458solaris*) 3459 lt_cv_deplibs_check_method=pass_all 3460 ;; 3461 3462sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 3463 case $host_vendor in 3464 motorola) 3465 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]]' 3466 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3467 ;; 3468 ncr) 3469 lt_cv_deplibs_check_method=pass_all 3470 ;; 3471 sequent) 3472 lt_cv_file_magic_cmd='/bin/file' 3473 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' 3474 ;; 3475 sni) 3476 lt_cv_file_magic_cmd='/bin/file' 3477 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" 3478 lt_cv_file_magic_test_file=/lib/libc.so 3479 ;; 3480 siemens) 3481 lt_cv_deplibs_check_method=pass_all 3482 ;; 3483 esac 3484 ;; 3485 3486sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*) 3487 lt_cv_deplibs_check_method=pass_all 3488 ;; 3489esac 3490]) 3491file_magic_cmd=$lt_cv_file_magic_cmd 3492deplibs_check_method=$lt_cv_deplibs_check_method 3493test -z "$deplibs_check_method" && deplibs_check_method=unknown 3494])# AC_DEPLIBS_CHECK_METHOD 3495 3496 3497# AC_PROG_NM 3498# ---------- 3499# find the pathname to a BSD-compatible name lister 3500AC_DEFUN([AC_PROG_NM], 3501[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, 3502[if test -n "$NM"; then 3503 # Let the user override the test. 3504 lt_cv_path_NM="$NM" 3505else 3506 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3507 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 3508 IFS="$lt_save_ifs" 3509 test -z "$ac_dir" && ac_dir=. 3510 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 3511 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3512 # Check to see if the nm accepts a BSD-compat flag. 3513 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3514 # nm: unknown option "B" ignored 3515 # Tru64's nm complains that /dev/null is an invalid object file 3516 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3517 */dev/null* | *'Invalid file or object type'*) 3518 lt_cv_path_NM="$tmp_nm -B" 3519 break 3520 ;; 3521 *) 3522 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3523 */dev/null*) 3524 lt_cv_path_NM="$tmp_nm -p" 3525 break 3526 ;; 3527 *) 3528 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3529 continue # so that we can try to find one that supports BSD flags 3530 ;; 3531 esac 3532 esac 3533 fi 3534 done 3535 IFS="$lt_save_ifs" 3536 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3537fi]) 3538NM="$lt_cv_path_NM" 3539])# AC_PROG_NM 3540 3541 3542# AC_CHECK_LIBM 3543# ------------- 3544# check for math library 3545AC_DEFUN([AC_CHECK_LIBM], 3546[AC_REQUIRE([AC_CANONICAL_HOST])dnl 3547LIBM= 3548case $host in 3549*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) 3550 # These system don't have libm, or don't need it 3551 ;; 3552*-ncr-sysv4.3*) 3553 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") 3554 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") 3555 ;; 3556*) 3557 AC_CHECK_LIB(m, cos, LIBM="-lm") 3558 ;; 3559esac 3560])# AC_CHECK_LIBM 3561 3562 3563# AC_LIBLTDL_CONVENIENCE([DIRECTORY]) 3564# ----------------------------------- 3565# sets LIBLTDL to the link flags for the libltdl convenience library and 3566# LTDLINCL to the include flags for the libltdl header and adds 3567# --enable-ltdl-convenience to the configure arguments. Note that 3568# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, 3569# it is assumed to be `libltdl'. LIBLTDL will be prefixed with 3570# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' 3571# (note the single quotes!). If your package is not flat and you're not 3572# using automake, define top_builddir and top_srcdir appropriately in 3573# the Makefiles. 3574AC_DEFUN([AC_LIBLTDL_CONVENIENCE], 3575[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 3576 case $enable_ltdl_convenience in 3577 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; 3578 "") enable_ltdl_convenience=yes 3579 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; 3580 esac 3581 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la 3582 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) 3583 # For backwards non-gettext consistent compatibility... 3584 INCLTDL="$LTDLINCL" 3585])# AC_LIBLTDL_CONVENIENCE 3586 3587 3588# AC_LIBLTDL_INSTALLABLE([DIRECTORY]) 3589# ----------------------------------- 3590# sets LIBLTDL to the link flags for the libltdl installable library and 3591# LTDLINCL to the include flags for the libltdl header and adds 3592# --enable-ltdl-install to the configure arguments. Note that 3593# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, 3594# and an installed libltdl is not found, it is assumed to be `libltdl'. 3595# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with 3596# '${top_srcdir}/' (note the single quotes!). If your package is not 3597# flat and you're not using automake, define top_builddir and top_srcdir 3598# appropriately in the Makefiles. 3599# In the future, this macro may have to be called after AC_PROG_LIBTOOL. 3600AC_DEFUN([AC_LIBLTDL_INSTALLABLE], 3601[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 3602 AC_CHECK_LIB(ltdl, lt_dlinit, 3603 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], 3604 [if test x"$enable_ltdl_install" = xno; then 3605 AC_MSG_WARN([libltdl not installed, but installation disabled]) 3606 else 3607 enable_ltdl_install=yes 3608 fi 3609 ]) 3610 if test x"$enable_ltdl_install" = x"yes"; then 3611 ac_configure_args="$ac_configure_args --enable-ltdl-install" 3612 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la 3613 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) 3614 else 3615 ac_configure_args="$ac_configure_args --enable-ltdl-install=no" 3616 LIBLTDL="-lltdl" 3617 LTDLINCL= 3618 fi 3619 # For backwards non-gettext consistent compatibility... 3620 INCLTDL="$LTDLINCL" 3621])# AC_LIBLTDL_INSTALLABLE 3622 3623 3624# AC_LIBTOOL_CXX 3625# -------------- 3626# enable support for C++ libraries 3627AC_DEFUN([AC_LIBTOOL_CXX], 3628[AC_REQUIRE([_LT_AC_LANG_CXX]) 3629])# AC_LIBTOOL_CXX 3630 3631 3632# _LT_AC_LANG_CXX 3633# --------------- 3634AC_DEFUN([_LT_AC_LANG_CXX], 3635[AC_REQUIRE([AC_PROG_CXX]) 3636AC_REQUIRE([_LT_AC_PROG_CXXCPP]) 3637_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) 3638])# _LT_AC_LANG_CXX 3639 3640# _LT_AC_PROG_CXXCPP 3641# --------------- 3642AC_DEFUN([_LT_AC_PROG_CXXCPP], 3643[ 3644AC_REQUIRE([AC_PROG_CXX]) 3645if test -n "$CXX" && ( test "X$CXX" != "Xno" && 3646 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 3647 (test "X$CXX" != "Xg++"))) ; then 3648 AC_PROG_CXXCPP 3649fi 3650])# _LT_AC_PROG_CXXCPP 3651 3652# AC_LIBTOOL_F77 3653# -------------- 3654# enable support for Fortran 77 libraries 3655AC_DEFUN([AC_LIBTOOL_F77], 3656[AC_REQUIRE([_LT_AC_LANG_F77]) 3657])# AC_LIBTOOL_F77 3658 3659 3660# _LT_AC_LANG_F77 3661# --------------- 3662AC_DEFUN([_LT_AC_LANG_F77], 3663[AC_REQUIRE([AC_PROG_F77]) 3664_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) 3665])# _LT_AC_LANG_F77 3666 3667 3668# AC_LIBTOOL_GCJ 3669# -------------- 3670# enable support for GCJ libraries 3671AC_DEFUN([AC_LIBTOOL_GCJ], 3672[AC_REQUIRE([_LT_AC_LANG_GCJ]) 3673])# AC_LIBTOOL_GCJ 3674 3675 3676# _LT_AC_LANG_GCJ 3677# --------------- 3678AC_DEFUN([_LT_AC_LANG_GCJ], 3679[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], 3680 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], 3681 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], 3682 [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], 3683 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], 3684 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) 3685_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) 3686])# _LT_AC_LANG_GCJ 3687 3688 3689# AC_LIBTOOL_RC 3690# -------------- 3691# enable support for Windows resource files 3692AC_DEFUN([AC_LIBTOOL_RC], 3693[AC_REQUIRE([LT_AC_PROG_RC]) 3694_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) 3695])# AC_LIBTOOL_RC 3696 3697 3698# AC_LIBTOOL_LANG_C_CONFIG 3699# ------------------------ 3700# Ensure that the configuration vars for the C compiler are 3701# suitably defined. Those variables are subsequently used by 3702# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 3703AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) 3704AC_DEFUN([_LT_AC_LANG_C_CONFIG], 3705[lt_save_CC="$CC" 3706AC_LANG_PUSH(C) 3707 3708# Source file extension for C test sources. 3709ac_ext=c 3710 3711# Object file extension for compiled C test sources. 3712objext=o 3713_LT_AC_TAGVAR(objext, $1)=$objext 3714 3715# Code to be used in simple compile tests 3716lt_simple_compile_test_code="int some_variable = 0;\n" 3717 3718# Code to be used in simple link tests 3719lt_simple_link_test_code='int main(){return(0);}\n' 3720 3721_LT_AC_SYS_COMPILER 3722 3723# save warnings/boilerplate of simple test code 3724_LT_COMPILER_BOILERPLATE 3725_LT_LINKER_BOILERPLATE 3726 3727# 3728# Check for any special shared library compilation flags. 3729# 3730_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)= 3731if test "$GCC" = no; then 3732 case $host_os in 3733 sco3.2v5*) 3734 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf' 3735 ;; 3736 esac 3737fi 3738if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then 3739 AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries]) 3740 if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then : 3741 else 3742 AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure]) 3743 _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no 3744 fi 3745fi 3746 3747 3748# 3749# Check to make sure the static flag actually works. 3750# 3751AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works], 3752 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), 3753 $_LT_AC_TAGVAR(lt_prog_compiler_static, $1), 3754 [], 3755 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) 3756 3757 3758AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) 3759AC_LIBTOOL_PROG_COMPILER_PIC($1) 3760AC_LIBTOOL_PROG_CC_C_O($1) 3761AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 3762AC_LIBTOOL_PROG_LD_SHLIBS($1) 3763AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 3764AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 3765AC_LIBTOOL_SYS_LIB_STRIP 3766AC_LIBTOOL_DLOPEN_SELF($1) 3767 3768# Report which librarie types wil actually be built 3769AC_MSG_CHECKING([if libtool supports shared libraries]) 3770AC_MSG_RESULT([$can_build_shared]) 3771 3772AC_MSG_CHECKING([whether to build shared libraries]) 3773test "$can_build_shared" = "no" && enable_shared=no 3774 3775# On AIX, shared libraries and static libraries use the same namespace, and 3776# are all built from PIC. 3777case $host_os in 3778aix3*) 3779 test "$enable_shared" = yes && enable_static=no 3780 if test -n "$RANLIB"; then 3781 archive_cmds="$archive_cmds~\$RANLIB \$lib" 3782 postinstall_cmds='$RANLIB $lib' 3783 fi 3784 ;; 3785 3786aix4* | aix5*) 3787 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 3788 test "$enable_shared" = yes && enable_static=no 3789 fi 3790 ;; 3791esac 3792AC_MSG_RESULT([$enable_shared]) 3793 3794AC_MSG_CHECKING([whether to build static libraries]) 3795# Make sure either enable_shared or enable_static is yes. 3796test "$enable_shared" = yes || enable_static=yes 3797AC_MSG_RESULT([$enable_static]) 3798 3799AC_LIBTOOL_CONFIG($1) 3800 3801AC_LANG_POP 3802CC="$lt_save_CC" 3803])# AC_LIBTOOL_LANG_C_CONFIG 3804 3805 3806# AC_LIBTOOL_LANG_CXX_CONFIG 3807# -------------------------- 3808# Ensure that the configuration vars for the C compiler are 3809# suitably defined. Those variables are subsequently used by 3810# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 3811AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) 3812AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], 3813[AC_LANG_PUSH(C++) 3814AC_REQUIRE([AC_PROG_CXX]) 3815AC_REQUIRE([_LT_AC_PROG_CXXCPP]) 3816 3817_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3818_LT_AC_TAGVAR(allow_undefined_flag, $1)= 3819_LT_AC_TAGVAR(always_export_symbols, $1)=no 3820_LT_AC_TAGVAR(archive_expsym_cmds, $1)= 3821_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 3822_LT_AC_TAGVAR(hardcode_direct, $1)=no 3823_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 3824_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 3825_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 3826_LT_AC_TAGVAR(hardcode_minus_L, $1)=no 3827_LT_AC_TAGVAR(hardcode_automatic, $1)=no 3828_LT_AC_TAGVAR(module_cmds, $1)= 3829_LT_AC_TAGVAR(module_expsym_cmds, $1)= 3830_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown 3831_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 3832_LT_AC_TAGVAR(no_undefined_flag, $1)= 3833_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 3834_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no 3835 3836# Dependencies to place before and after the object being linked: 3837_LT_AC_TAGVAR(predep_objects, $1)= 3838_LT_AC_TAGVAR(postdep_objects, $1)= 3839_LT_AC_TAGVAR(predeps, $1)= 3840_LT_AC_TAGVAR(postdeps, $1)= 3841_LT_AC_TAGVAR(compiler_lib_search_path, $1)= 3842 3843# Source file extension for C++ test sources. 3844ac_ext=cpp 3845 3846# Object file extension for compiled C++ test sources. 3847objext=o 3848_LT_AC_TAGVAR(objext, $1)=$objext 3849 3850# Code to be used in simple compile tests 3851lt_simple_compile_test_code="int some_variable = 0;\n" 3852 3853# Code to be used in simple link tests 3854lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 3855 3856# ltmain only uses $CC for tagged configurations so make sure $CC is set. 3857_LT_AC_SYS_COMPILER 3858 3859# save warnings/boilerplate of simple test code 3860_LT_COMPILER_BOILERPLATE 3861_LT_LINKER_BOILERPLATE 3862 3863# Allow CC to be a program name with arguments. 3864lt_save_CC=$CC 3865lt_save_LD=$LD 3866lt_save_GCC=$GCC 3867GCC=$GXX 3868lt_save_with_gnu_ld=$with_gnu_ld 3869lt_save_path_LD=$lt_cv_path_LD 3870if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 3871 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 3872else 3873 unset lt_cv_prog_gnu_ld 3874fi 3875if test -n "${lt_cv_path_LDCXX+set}"; then 3876 lt_cv_path_LD=$lt_cv_path_LDCXX 3877else 3878 unset lt_cv_path_LD 3879fi 3880test -z "${LDCXX+set}" || LD=$LDCXX 3881CC=${CXX-"c++"} 3882compiler=$CC 3883_LT_AC_TAGVAR(compiler, $1)=$CC 3884_LT_CC_BASENAME([$compiler]) 3885 3886# We don't want -fno-exception wen compiling C++ code, so set the 3887# no_builtin_flag separately 3888if test "$GXX" = yes; then 3889 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 3890else 3891 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 3892fi 3893 3894if test "$GXX" = yes; then 3895 # Set up default GNU C++ configuration 3896 3897 AC_PROG_LD 3898 3899 # Check if GNU C++ uses GNU ld as the underlying linker, since the 3900 # archiving commands below assume that GNU ld is being used. 3901 if test "$with_gnu_ld" = yes; then 3902 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 3903 _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' 3904 3905 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 3906 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 3907 3908 # If archive_cmds runs LD, not CC, wlarc should be empty 3909 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 3910 # investigate it a little bit more. (MM) 3911 wlarc='${wl}' 3912 3913 # ancient GNU ld didn't support --whole-archive et. al. 3914 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 3915 grep 'no-whole-archive' > /dev/null; then 3916 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 3917 else 3918 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 3919 fi 3920 else 3921 with_gnu_ld=no 3922 wlarc= 3923 3924 # A generic and very simple default shared library creation 3925 # command for GNU C++ for the case where it uses the native 3926 # linker, instead of GNU ld. If possible, this setting should 3927 # overridden to take advantage of the native linker features on 3928 # the platform it is being used on. 3929 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 3930 fi 3931 3932 # Commands to make compiler produce verbose output that lists 3933 # what "hidden" libraries, object files and flags are used when 3934 # linking a shared library. 3935 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 3936 3937else 3938 GXX=no 3939 with_gnu_ld=no 3940 wlarc= 3941fi 3942 3943# PORTME: fill in a description of your system's C++ link characteristics 3944AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 3945_LT_AC_TAGVAR(ld_shlibs, $1)=yes 3946case $host_os in 3947 aix3*) 3948 # FIXME: insert proper C++ library support 3949 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3950 ;; 3951 aix4* | aix5*) 3952 if test "$host_cpu" = ia64; then 3953 # On IA64, the linker does run time linking by default, so we don't 3954 # have to do anything special. 3955 aix_use_runtimelinking=no 3956 exp_sym_flag='-Bexport' 3957 no_entry_flag="" 3958 else 3959 aix_use_runtimelinking=no 3960 3961 # Test if we are trying to use run time linking or normal 3962 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 3963 # need to do runtime linking. 3964 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) 3965 for ld_flag in $LDFLAGS; do 3966 case $ld_flag in 3967 *-brtl*) 3968 aix_use_runtimelinking=yes 3969 break 3970 ;; 3971 esac 3972 done 3973 esac 3974 3975 exp_sym_flag='-bexport' 3976 no_entry_flag='-bnoentry' 3977 fi 3978 3979 # When large executables or shared objects are built, AIX ld can 3980 # have problems creating the table of contents. If linking a library 3981 # or program results in "error TOC overflow" add -mminimal-toc to 3982 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 3983 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 3984 3985 _LT_AC_TAGVAR(archive_cmds, $1)='' 3986 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 3987 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 3988 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 3989 3990 if test "$GXX" = yes; then 3991 case $host_os in aix4.[[012]]|aix4.[[012]].*) 3992 # We only want to do this on AIX 4.2 and lower, the check 3993 # below for broken collect2 doesn't work under 4.3+ 3994 collect2name=`${CC} -print-prog-name=collect2` 3995 if test -f "$collect2name" && \ 3996 strings "$collect2name" | grep resolve_lib_name >/dev/null 3997 then 3998 # We have reworked collect2 3999 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 4000 else 4001 # We have old collect2 4002 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported 4003 # It fails to find uninstalled libraries when the uninstalled 4004 # path is not listed in the libpath. Setting hardcode_minus_L 4005 # to unsupported forces relinking 4006 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 4007 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 4008 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 4009 fi 4010 esac 4011 shared_flag='-shared' 4012 if test "$aix_use_runtimelinking" = yes; then 4013 shared_flag="$shared_flag "'${wl}-G' 4014 fi 4015 else 4016 # not using gcc 4017 if test "$host_cpu" = ia64; then 4018 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 4019 # chokes on -Wl,-G. The following line is correct: 4020 shared_flag='-G' 4021 else 4022 if test "$aix_use_runtimelinking" = yes; then 4023 shared_flag='${wl}-G' 4024 else 4025 shared_flag='${wl}-bM:SRE' 4026 fi 4027 fi 4028 fi 4029 4030 # It seems that -bexpall does not export symbols beginning with 4031 # underscore (_), so it is better to generate a list of symbols to export. 4032 _LT_AC_TAGVAR(always_export_symbols, $1)=yes 4033 if test "$aix_use_runtimelinking" = yes; then 4034 # Warning - without using the other runtime loading flags (-brtl), 4035 # -berok will link without error, but may produce a broken library. 4036 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' 4037 # Determine the default libpath from the value encoded in an empty executable. 4038 _LT_AC_SYS_LIBPATH_AIX 4039 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 4040 4041 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 4042 else 4043 if test "$host_cpu" = ia64; then 4044 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 4045 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 4046 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 4047 else 4048 # Determine the default libpath from the value encoded in an empty executable. 4049 _LT_AC_SYS_LIBPATH_AIX 4050 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 4051 # Warning - without using the other run time loading flags, 4052 # -berok will link without error, but may produce a broken library. 4053 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 4054 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 4055 # -bexpall does not export symbols beginning with underscore (_) 4056 _LT_AC_TAGVAR(always_export_symbols, $1)=yes 4057 # Exported symbols can be pulled into shared objects from archives 4058 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' 4059 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 4060 # This is similar to how AIX traditionally builds its shared libraries. 4061 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 4062 fi 4063 fi 4064 ;; 4065 chorus*) 4066 case $cc_basename in 4067 *) 4068 # FIXME: insert proper C++ library support 4069 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4070 ;; 4071 esac 4072 ;; 4073 4074 4075 cygwin* | mingw* | pw32*) 4076 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 4077 # as there is no search path for DLLs. 4078 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 4079 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 4080 _LT_AC_TAGVAR(always_export_symbols, $1)=no 4081 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 4082 4083 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 4084 _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 ${wl}--out-implib,$lib' 4085 # If the export-symbols file already is a .def file (1st line 4086 # is EXPORTS), use it as is; otherwise, prepend... 4087 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 4088 cp $export_symbols $output_objdir/$soname.def; 4089 else 4090 echo EXPORTS > $output_objdir/$soname.def; 4091 cat $export_symbols >> $output_objdir/$soname.def; 4092 fi~ 4093 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib' 4094 else 4095 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4096 fi 4097 ;; 4098 darwin* | rhapsody*) 4099 case $host_os in 4100 rhapsody* | darwin1.[[012]]) 4101 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' 4102 ;; 4103 *) # Darwin 1.3 on 4104 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 4105 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 4106 else 4107 case ${MACOSX_DEPLOYMENT_TARGET} in 4108 10.[[012]]) 4109 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 4110 ;; 4111 10.*) 4112 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' 4113 ;; 4114 esac 4115 fi 4116 ;; 4117 esac 4118 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 4119 _LT_AC_TAGVAR(hardcode_direct, $1)=no 4120 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes 4121 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 4122 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' 4123 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 4124 4125 if test "$GXX" = yes ; then 4126 lt_int_apple_cc_single_mod=no 4127 output_verbose_link_cmd='echo' 4128 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 4129 lt_int_apple_cc_single_mod=yes 4130 fi 4131 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 4132 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 4133 else 4134 _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' 4135 fi 4136 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 4137 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 4138 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 4139 _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}' 4140 else 4141 _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}' 4142 fi 4143 _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}' 4144 else 4145 case $cc_basename in 4146 xlc*) 4147 output_verbose_link_cmd='echo' 4148 _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' 4149 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 4150 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 4151 _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}' 4152 _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}' 4153 ;; 4154 *) 4155 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4156 ;; 4157 esac 4158 fi 4159 ;; 4160 4161 dgux*) 4162 case $cc_basename in 4163 ec++*) 4164 # FIXME: insert proper C++ library support 4165 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4166 ;; 4167 ghcx*) 4168 # Green Hills C++ Compiler 4169 # FIXME: insert proper C++ library support 4170 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4171 ;; 4172 *) 4173 # FIXME: insert proper C++ library support 4174 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4175 ;; 4176 esac 4177 ;; 4178 freebsd[[12]]*) 4179 # C++ shared libraries reported to be fairly broken before switch to ELF 4180 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4181 ;; 4182 freebsd-elf*) 4183 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 4184 ;; 4185 freebsd* | kfreebsd*-gnu | dragonfly*) 4186 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 4187 # conventions 4188 _LT_AC_TAGVAR(ld_shlibs, $1)=yes 4189 ;; 4190 gnu*) 4191 ;; 4192 hpux9*) 4193 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 4194 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 4195 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 4196 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 4197 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 4198 # but as the default 4199 # location of the library. 4200 4201 case $cc_basename in 4202 CC*) 4203 # FIXME: insert proper C++ library support 4204 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4205 ;; 4206 aCC*) 4207 _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' 4208 # Commands to make compiler produce verbose output that lists 4209 # what "hidden" libraries, object files and flags are used when 4210 # linking a shared library. 4211 # 4212 # There doesn't appear to be a way to prevent this compiler from 4213 # explicitly linking system object files so we need to strip them 4214 # from the output so that they don't get included in the library 4215 # dependencies. 4216 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' 4217 ;; 4218 *) 4219 if test "$GXX" = yes; then 4220 _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' 4221 else 4222 # FIXME: insert proper C++ library support 4223 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4224 fi 4225 ;; 4226 esac 4227 ;; 4228 hpux10*|hpux11*) 4229 if test $with_gnu_ld = no; then 4230 case $host_cpu in 4231 hppa*64*) 4232 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 4233 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 4234 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 4235 ;; 4236 ia64*) 4237 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 4238 ;; 4239 *) 4240 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 4241 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 4242 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 4243 ;; 4244 esac 4245 fi 4246 case $host_cpu in 4247 hppa*64*) 4248 _LT_AC_TAGVAR(hardcode_direct, $1)=no 4249 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 4250 ;; 4251 ia64*) 4252 _LT_AC_TAGVAR(hardcode_direct, $1)=no 4253 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 4254 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 4255 # but as the default 4256 # location of the library. 4257 ;; 4258 *) 4259 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 4260 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 4261 # but as the default 4262 # location of the library. 4263 ;; 4264 esac 4265 4266 case $cc_basename in 4267 CC*) 4268 # FIXME: insert proper C++ library support 4269 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4270 ;; 4271 aCC*) 4272 case $host_cpu in 4273 hppa*64*|ia64*) 4274 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 4275 ;; 4276 *) 4277 _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' 4278 ;; 4279 esac 4280 # Commands to make compiler produce verbose output that lists 4281 # what "hidden" libraries, object files and flags are used when 4282 # linking a shared library. 4283 # 4284 # There doesn't appear to be a way to prevent this compiler from 4285 # explicitly linking system object files so we need to strip them 4286 # from the output so that they don't get included in the library 4287 # dependencies. 4288 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' 4289 ;; 4290 *) 4291 if test "$GXX" = yes; then 4292 if test $with_gnu_ld = no; then 4293 case $host_cpu in 4294 ia64*|hppa*64*) 4295 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 4296 ;; 4297 *) 4298 _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' 4299 ;; 4300 esac 4301 fi 4302 else 4303 # FIXME: insert proper C++ library support 4304 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4305 fi 4306 ;; 4307 esac 4308 ;; 4309 irix5* | irix6*) 4310 case $cc_basename in 4311 CC*) 4312 # SGI C++ 4313 _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' 4314 4315 # Archives containing C++ object files must be created using 4316 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 4317 # necessary to make sure instantiated templates are included 4318 # in the archive. 4319 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' 4320 ;; 4321 *) 4322 if test "$GXX" = yes; then 4323 if test "$with_gnu_ld" = no; then 4324 _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' 4325 else 4326 _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' 4327 fi 4328 fi 4329 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 4330 ;; 4331 esac 4332 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 4333 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 4334 ;; 4335 linux*) 4336 case $cc_basename in 4337 KCC*) 4338 # Kuck and Associates, Inc. (KAI) C++ Compiler 4339 4340 # KCC will only create a shared library if the output file 4341 # ends with ".so" (or ".sl" for HP-UX), so rename the library 4342 # to its proper name (with version) after linking. 4343 _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' 4344 _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' 4345 # Commands to make compiler produce verbose output that lists 4346 # what "hidden" libraries, object files and flags are used when 4347 # linking a shared library. 4348 # 4349 # There doesn't appear to be a way to prevent this compiler from 4350 # explicitly linking system object files so we need to strip them 4351 # from the output so that they don't get included in the library 4352 # dependencies. 4353 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' 4354 4355 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' 4356 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 4357 4358 # Archives containing C++ object files must be created using 4359 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 4360 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 4361 ;; 4362 icpc*) 4363 # Intel C++ 4364 with_gnu_ld=yes 4365 # version 8.0 and above of icpc choke on multiply defined symbols 4366 # if we add $predep_objects and $postdep_objects, however 7.1 and 4367 # earlier do not add the objects themselves. 4368 case `$CC -V 2>&1` in 4369 *"Version 7."*) 4370 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 4371 _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' 4372 ;; 4373 *) # Version 8.0 or newer 4374 tmp_idyn= 4375 case $host_cpu in 4376 ia64*) tmp_idyn=' -i_dynamic';; 4377 esac 4378 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4379 _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' 4380 ;; 4381 esac 4382 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 4383 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 4384 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 4385 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 4386 ;; 4387 pgCC*) 4388 # Portland Group C++ compiler 4389 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 4390 _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' 4391 4392 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 4393 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 4394 _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' 4395 ;; 4396 cxx*) 4397 # Compaq C++ 4398 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 4399 _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' 4400 4401 runpath_var=LD_RUN_PATH 4402 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 4403 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 4404 4405 # Commands to make compiler produce verbose output that lists 4406 # what "hidden" libraries, object files and flags are used when 4407 # linking a shared library. 4408 # 4409 # There doesn't appear to be a way to prevent this compiler from 4410 # explicitly linking system object files so we need to strip them 4411 # from the output so that they don't get included in the library 4412 # dependencies. 4413 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' 4414 ;; 4415 esac 4416 ;; 4417 lynxos*) 4418 # FIXME: insert proper C++ library support 4419 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4420 ;; 4421 m88k*) 4422 # FIXME: insert proper C++ library support 4423 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4424 ;; 4425 mvs*) 4426 case $cc_basename in 4427 cxx*) 4428 # FIXME: insert proper C++ library support 4429 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4430 ;; 4431 *) 4432 # FIXME: insert proper C++ library support 4433 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4434 ;; 4435 esac 4436 ;; 4437 netbsd*) 4438 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 4439 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 4440 wlarc= 4441 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 4442 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 4443 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 4444 fi 4445 # Workaround some broken pre-1.5 toolchains 4446 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 4447 ;; 4448 openbsd2*) 4449 # C++ shared libraries are fairly broken 4450 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4451 ;; 4452 openbsd*) 4453 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 4454 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 4455 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 4456 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 4457 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4458 _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' 4459 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 4460 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 4461 fi 4462 output_verbose_link_cmd='echo' 4463 ;; 4464 osf3*) 4465 case $cc_basename in 4466 KCC*) 4467 # Kuck and Associates, Inc. (KAI) C++ Compiler 4468 4469 # KCC will only create a shared library if the output file 4470 # ends with ".so" (or ".sl" for HP-UX), so rename the library 4471 # to its proper name (with version) after linking. 4472 _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' 4473 4474 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 4475 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 4476 4477 # Archives containing C++ object files must be created using 4478 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 4479 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 4480 4481 ;; 4482 RCC*) 4483 # Rational C++ 2.4.1 4484 # FIXME: insert proper C++ library support 4485 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4486 ;; 4487 cxx*) 4488 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 4489 _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' 4490 4491 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 4492 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 4493 4494 # Commands to make compiler produce verbose output that lists 4495 # what "hidden" libraries, object files and flags are used when 4496 # linking a shared library. 4497 # 4498 # There doesn't appear to be a way to prevent this compiler from 4499 # explicitly linking system object files so we need to strip them 4500 # from the output so that they don't get included in the library 4501 # dependencies. 4502 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' 4503 ;; 4504 *) 4505 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 4506 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 4507 _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' 4508 4509 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 4510 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 4511 4512 # Commands to make compiler produce verbose output that lists 4513 # what "hidden" libraries, object files and flags are used when 4514 # linking a shared library. 4515 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 4516 4517 else 4518 # FIXME: insert proper C++ library support 4519 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4520 fi 4521 ;; 4522 esac 4523 ;; 4524 osf4* | osf5*) 4525 case $cc_basename in 4526 KCC*) 4527 # Kuck and Associates, Inc. (KAI) C++ Compiler 4528 4529 # KCC will only create a shared library if the output file 4530 # ends with ".so" (or ".sl" for HP-UX), so rename the library 4531 # to its proper name (with version) after linking. 4532 _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' 4533 4534 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 4535 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 4536 4537 # Archives containing C++ object files must be created using 4538 # the KAI C++ compiler. 4539 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' 4540 ;; 4541 RCC*) 4542 # Rational C++ 2.4.1 4543 # FIXME: insert proper C++ library support 4544 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4545 ;; 4546 cxx*) 4547 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 4548 _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' 4549 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 4550 echo "-hidden">> $lib.exp~ 4551 $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~ 4552 $rm $lib.exp' 4553 4554 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 4555 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 4556 4557 # Commands to make compiler produce verbose output that lists 4558 # what "hidden" libraries, object files and flags are used when 4559 # linking a shared library. 4560 # 4561 # There doesn't appear to be a way to prevent this compiler from 4562 # explicitly linking system object files so we need to strip them 4563 # from the output so that they don't get included in the library 4564 # dependencies. 4565 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' 4566 ;; 4567 *) 4568 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 4569 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 4570 _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' 4571 4572 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 4573 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 4574 4575 # Commands to make compiler produce verbose output that lists 4576 # what "hidden" libraries, object files and flags are used when 4577 # linking a shared library. 4578 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 4579 4580 else 4581 # FIXME: insert proper C++ library support 4582 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4583 fi 4584 ;; 4585 esac 4586 ;; 4587 psos*) 4588 # FIXME: insert proper C++ library support 4589 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4590 ;; 4591 sco*) 4592 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 4593 case $cc_basename in 4594 CC*) 4595 # FIXME: insert proper C++ library support 4596 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4597 ;; 4598 *) 4599 # FIXME: insert proper C++ library support 4600 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4601 ;; 4602 esac 4603 ;; 4604 sunos4*) 4605 case $cc_basename in 4606 CC*) 4607 # Sun C++ 4.x 4608 # FIXME: insert proper C++ library support 4609 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4610 ;; 4611 lcc*) 4612 # Lucid 4613 # FIXME: insert proper C++ library support 4614 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4615 ;; 4616 *) 4617 # FIXME: insert proper C++ library support 4618 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4619 ;; 4620 esac 4621 ;; 4622 solaris*) 4623 case $cc_basename in 4624 CC*) 4625 # Sun C++ 4.2, 5.x and Centerline C++ 4626 _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes 4627 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' 4628 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 4629 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 4630 $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' 4631 4632 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 4633 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 4634 case $host_os in 4635 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 4636 *) 4637 # The C++ compiler is used as linker so we must use $wl 4638 # flag to pass the commands to the underlying system 4639 # linker. We must also pass each convience library through 4640 # to the system linker between allextract/defaultextract. 4641 # The C++ compiler will combine linker options so we 4642 # cannot just pass the convience library names through 4643 # without $wl. 4644 # Supported since Solaris 2.6 (maybe 2.5.1?) 4645 _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' 4646 ;; 4647 esac 4648 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 4649 4650 output_verbose_link_cmd='echo' 4651 4652 # Archives containing C++ object files must be created using 4653 # "CC -xar", where "CC" is the Sun C++ compiler. This is 4654 # necessary to make sure instantiated templates are included 4655 # in the archive. 4656 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 4657 ;; 4658 gcx*) 4659 # Green Hills C++ Compiler 4660 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 4661 4662 # The C++ compiler must be used to create the archive. 4663 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 4664 ;; 4665 *) 4666 # GNU C++ compiler with Solaris linker 4667 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 4668 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' 4669 if $CC --version | grep -v '^2\.7' > /dev/null; then 4670 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 4671 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 4672 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 4673 4674 # Commands to make compiler produce verbose output that lists 4675 # what "hidden" libraries, object files and flags are used when 4676 # linking a shared library. 4677 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 4678 else 4679 # g++ 2.7 appears to require `-G' NOT `-shared' on this 4680 # platform. 4681 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 4682 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 4683 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 4684 4685 # Commands to make compiler produce verbose output that lists 4686 # what "hidden" libraries, object files and flags are used when 4687 # linking a shared library. 4688 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 4689 fi 4690 4691 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' 4692 fi 4693 ;; 4694 esac 4695 ;; 4696 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) 4697 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 4698 ;; 4699 tandem*) 4700 case $cc_basename in 4701 NCC*) 4702 # NonStop-UX NCC 3.20 4703 # FIXME: insert proper C++ library support 4704 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4705 ;; 4706 *) 4707 # FIXME: insert proper C++ library support 4708 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4709 ;; 4710 esac 4711 ;; 4712 vxworks*) 4713 # FIXME: insert proper C++ library support 4714 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4715 ;; 4716 *) 4717 # FIXME: insert proper C++ library support 4718 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4719 ;; 4720esac 4721AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) 4722test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 4723 4724_LT_AC_TAGVAR(GCC, $1)="$GXX" 4725_LT_AC_TAGVAR(LD, $1)="$LD" 4726 4727AC_LIBTOOL_POSTDEP_PREDEP($1) 4728AC_LIBTOOL_PROG_COMPILER_PIC($1) 4729AC_LIBTOOL_PROG_CC_C_O($1) 4730AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 4731AC_LIBTOOL_PROG_LD_SHLIBS($1) 4732AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 4733AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 4734AC_LIBTOOL_SYS_LIB_STRIP 4735AC_LIBTOOL_DLOPEN_SELF($1) 4736 4737AC_LIBTOOL_CONFIG($1) 4738 4739AC_LANG_POP 4740CC=$lt_save_CC 4741LDCXX=$LD 4742LD=$lt_save_LD 4743GCC=$lt_save_GCC 4744with_gnu_ldcxx=$with_gnu_ld 4745with_gnu_ld=$lt_save_with_gnu_ld 4746lt_cv_path_LDCXX=$lt_cv_path_LD 4747lt_cv_path_LD=$lt_save_path_LD 4748lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 4749lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 4750])# AC_LIBTOOL_LANG_CXX_CONFIG 4751 4752# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) 4753# ------------------------ 4754# Figure out "hidden" library dependencies from verbose 4755# compiler output when linking a shared library. 4756# Parse the compiler output and extract the necessary 4757# objects, libraries and library flags. 4758AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[ 4759dnl we can't use the lt_simple_compile_test_code here, 4760dnl because it contains code intended for an executable, 4761dnl not a library. It's possible we should let each 4762dnl tag define a new lt_????_link_test_code variable, 4763dnl but it's only used here... 4764ifelse([$1],[],[cat > conftest.$ac_ext <<EOF 4765int a; 4766void foo (void) { a = 0; } 4767EOF 4768],[$1],[CXX],[cat > conftest.$ac_ext <<EOF 4769class Foo 4770{ 4771public: 4772 Foo (void) { a = 0; } 4773private: 4774 int a; 4775}; 4776EOF 4777],[$1],[F77],[cat > conftest.$ac_ext <<EOF 4778 subroutine foo 4779 implicit none 4780 integer*4 a 4781 a=0 4782 return 4783 end 4784EOF 4785],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF 4786public class foo { 4787 private int a; 4788 public void bar (void) { 4789 a = 0; 4790 } 4791}; 4792EOF 4793]) 4794dnl Parse the compiler output and extract the necessary 4795dnl objects, libraries and library flags. 4796if AC_TRY_EVAL(ac_compile); then 4797 # Parse the compiler output and extract the necessary 4798 # objects, libraries and library flags. 4799 4800 # Sentinel used to keep track of whether or not we are before 4801 # the conftest object file. 4802 pre_test_object_deps_done=no 4803 4804 # The `*' in the case matches for architectures that use `case' in 4805 # $output_verbose_cmd can trigger glob expansion during the loop 4806 # eval without this substitution. 4807 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 4808 4809 for p in `eval $output_verbose_link_cmd`; do 4810 case $p in 4811 4812 -L* | -R* | -l*) 4813 # Some compilers place space between "-{L,R}" and the path. 4814 # Remove the space. 4815 if test $p = "-L" \ 4816 || test $p = "-R"; then 4817 prev=$p 4818 continue 4819 else 4820 prev= 4821 fi 4822 4823 if test "$pre_test_object_deps_done" = no; then 4824 case $p in 4825 -L* | -R*) 4826 # Internal compiler library paths should come after those 4827 # provided the user. The postdeps already come after the 4828 # user supplied libs so there is no need to process them. 4829 if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then 4830 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" 4831 else 4832 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" 4833 fi 4834 ;; 4835 # The "-l" case would never come before the object being 4836 # linked, so don't bother handling this case. 4837 esac 4838 else 4839 if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then 4840 _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}" 4841 else 4842 _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}" 4843 fi 4844 fi 4845 ;; 4846 4847 *.$objext) 4848 # This assumes that the test object file only shows up 4849 # once in the compiler output. 4850 if test "$p" = "conftest.$objext"; then 4851 pre_test_object_deps_done=yes 4852 continue 4853 fi 4854 4855 if test "$pre_test_object_deps_done" = no; then 4856 if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then 4857 _LT_AC_TAGVAR(predep_objects, $1)="$p" 4858 else 4859 _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p" 4860 fi 4861 else 4862 if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then 4863 _LT_AC_TAGVAR(postdep_objects, $1)="$p" 4864 else 4865 _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p" 4866 fi 4867 fi 4868 ;; 4869 4870 *) ;; # Ignore the rest. 4871 4872 esac 4873 done 4874 4875 # Clean up. 4876 rm -f a.out a.exe 4877else 4878 echo "libtool.m4: error: problem compiling $1 test program" 4879fi 4880 4881$rm -f confest.$objext 4882 4883# PORTME: override above test on systems where it is broken 4884ifelse([$1],[CXX], 4885[case $host_os in 4886solaris*) 4887 case $cc_basename in 4888 CC*) 4889 # Adding this requires a known-good setup of shared libraries for 4890 # Sun compiler versions before 5.6, else PIC objects from an old 4891 # archive will be linked into the output, leading to subtle bugs. 4892 _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun' 4893 ;; 4894 esac 4895esac 4896]) 4897 4898case " $_LT_AC_TAGVAR(postdeps, $1) " in 4899*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; 4900esac 4901])# AC_LIBTOOL_POSTDEP_PREDEP 4902 4903# AC_LIBTOOL_LANG_F77_CONFIG 4904# ------------------------ 4905# Ensure that the configuration vars for the C compiler are 4906# suitably defined. Those variables are subsequently used by 4907# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 4908AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)]) 4909AC_DEFUN([_LT_AC_LANG_F77_CONFIG], 4910[AC_REQUIRE([AC_PROG_F77]) 4911AC_LANG_PUSH(Fortran 77) 4912 4913_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 4914_LT_AC_TAGVAR(allow_undefined_flag, $1)= 4915_LT_AC_TAGVAR(always_export_symbols, $1)=no 4916_LT_AC_TAGVAR(archive_expsym_cmds, $1)= 4917_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 4918_LT_AC_TAGVAR(hardcode_direct, $1)=no 4919_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 4920_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 4921_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 4922_LT_AC_TAGVAR(hardcode_minus_L, $1)=no 4923_LT_AC_TAGVAR(hardcode_automatic, $1)=no 4924_LT_AC_TAGVAR(module_cmds, $1)= 4925_LT_AC_TAGVAR(module_expsym_cmds, $1)= 4926_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown 4927_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 4928_LT_AC_TAGVAR(no_undefined_flag, $1)= 4929_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 4930_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no 4931 4932# Source file extension for f77 test sources. 4933ac_ext=f 4934 4935# Object file extension for compiled f77 test sources. 4936objext=o 4937_LT_AC_TAGVAR(objext, $1)=$objext 4938 4939# Code to be used in simple compile tests 4940lt_simple_compile_test_code=" subroutine t\n return\n end\n" 4941 4942# Code to be used in simple link tests 4943lt_simple_link_test_code=" program t\n end\n" 4944 4945# ltmain only uses $CC for tagged configurations so make sure $CC is set. 4946_LT_AC_SYS_COMPILER 4947 4948# save warnings/boilerplate of simple test code 4949_LT_COMPILER_BOILERPLATE 4950_LT_LINKER_BOILERPLATE 4951 4952# Allow CC to be a program name with arguments. 4953lt_save_CC="$CC" 4954CC=${F77-"f77"} 4955compiler=$CC 4956_LT_AC_TAGVAR(compiler, $1)=$CC 4957_LT_CC_BASENAME([$compiler]) 4958 4959AC_MSG_CHECKING([if libtool supports shared libraries]) 4960AC_MSG_RESULT([$can_build_shared]) 4961 4962AC_MSG_CHECKING([whether to build shared libraries]) 4963test "$can_build_shared" = "no" && enable_shared=no 4964 4965# On AIX, shared libraries and static libraries use the same namespace, and 4966# are all built from PIC. 4967case $host_os in 4968aix3*) 4969 test "$enable_shared" = yes && enable_static=no 4970 if test -n "$RANLIB"; then 4971 archive_cmds="$archive_cmds~\$RANLIB \$lib" 4972 postinstall_cmds='$RANLIB $lib' 4973 fi 4974 ;; 4975aix4* | aix5*) 4976 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 4977 test "$enable_shared" = yes && enable_static=no 4978 fi 4979 ;; 4980esac 4981AC_MSG_RESULT([$enable_shared]) 4982 4983AC_MSG_CHECKING([whether to build static libraries]) 4984# Make sure either enable_shared or enable_static is yes. 4985test "$enable_shared" = yes || enable_static=yes 4986AC_MSG_RESULT([$enable_static]) 4987 4988test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 4989 4990_LT_AC_TAGVAR(GCC, $1)="$G77" 4991_LT_AC_TAGVAR(LD, $1)="$LD" 4992 4993AC_LIBTOOL_PROG_COMPILER_PIC($1) 4994AC_LIBTOOL_PROG_CC_C_O($1) 4995AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 4996AC_LIBTOOL_PROG_LD_SHLIBS($1) 4997AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 4998AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 4999AC_LIBTOOL_SYS_LIB_STRIP 5000 5001 5002AC_LIBTOOL_CONFIG($1) 5003 5004AC_LANG_POP 5005CC="$lt_save_CC" 5006])# AC_LIBTOOL_LANG_F77_CONFIG 5007 5008 5009# AC_LIBTOOL_LANG_GCJ_CONFIG 5010# -------------------------- 5011# Ensure that the configuration vars for the C compiler are 5012# suitably defined. Those variables are subsequently used by 5013# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 5014AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)]) 5015AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG], 5016[AC_LANG_SAVE 5017 5018# Source file extension for Java test sources. 5019ac_ext=java 5020 5021# Object file extension for compiled Java test sources. 5022objext=o 5023_LT_AC_TAGVAR(objext, $1)=$objext 5024 5025# Code to be used in simple compile tests 5026lt_simple_compile_test_code="class foo {}\n" 5027 5028# Code to be used in simple link tests 5029lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n' 5030 5031# ltmain only uses $CC for tagged configurations so make sure $CC is set. 5032_LT_AC_SYS_COMPILER 5033 5034# save warnings/boilerplate of simple test code 5035_LT_COMPILER_BOILERPLATE 5036_LT_LINKER_BOILERPLATE 5037 5038# Allow CC to be a program name with arguments. 5039lt_save_CC="$CC" 5040CC=${GCJ-"gcj"} 5041compiler=$CC 5042_LT_AC_TAGVAR(compiler, $1)=$CC 5043_LT_CC_BASENAME([$compiler]) 5044 5045# GCJ did not exist at the time GCC didn't implicitly link libc in. 5046_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 5047 5048_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 5049 5050AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) 5051AC_LIBTOOL_PROG_COMPILER_PIC($1) 5052AC_LIBTOOL_PROG_CC_C_O($1) 5053AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 5054AC_LIBTOOL_PROG_LD_SHLIBS($1) 5055AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 5056AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 5057AC_LIBTOOL_SYS_LIB_STRIP 5058AC_LIBTOOL_DLOPEN_SELF($1) 5059 5060AC_LIBTOOL_CONFIG($1) 5061 5062AC_LANG_RESTORE 5063CC="$lt_save_CC" 5064])# AC_LIBTOOL_LANG_GCJ_CONFIG 5065 5066 5067# AC_LIBTOOL_LANG_RC_CONFIG 5068# -------------------------- 5069# Ensure that the configuration vars for the Windows resource compiler are 5070# suitably defined. Those variables are subsequently used by 5071# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 5072AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)]) 5073AC_DEFUN([_LT_AC_LANG_RC_CONFIG], 5074[AC_LANG_SAVE 5075 5076# Source file extension for RC test sources. 5077ac_ext=rc 5078 5079# Object file extension for compiled RC test sources. 5080objext=o 5081_LT_AC_TAGVAR(objext, $1)=$objext 5082 5083# Code to be used in simple compile tests 5084lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 5085 5086# Code to be used in simple link tests 5087lt_simple_link_test_code="$lt_simple_compile_test_code" 5088 5089# ltmain only uses $CC for tagged configurations so make sure $CC is set. 5090_LT_AC_SYS_COMPILER 5091 5092# save warnings/boilerplate of simple test code 5093_LT_COMPILER_BOILERPLATE 5094_LT_LINKER_BOILERPLATE 5095 5096# Allow CC to be a program name with arguments. 5097lt_save_CC="$CC" 5098CC=${RC-"windres"} 5099compiler=$CC 5100_LT_AC_TAGVAR(compiler, $1)=$CC 5101_LT_CC_BASENAME([$compiler]) 5102_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 5103 5104AC_LIBTOOL_CONFIG($1) 5105 5106AC_LANG_RESTORE 5107CC="$lt_save_CC" 5108])# AC_LIBTOOL_LANG_RC_CONFIG 5109 5110 5111# AC_LIBTOOL_CONFIG([TAGNAME]) 5112# ---------------------------- 5113# If TAGNAME is not passed, then create an initial libtool script 5114# with a default configuration from the untagged config vars. Otherwise 5115# add code to config.status for appending the configuration named by 5116# TAGNAME from the matching tagged config vars. 5117AC_DEFUN([AC_LIBTOOL_CONFIG], 5118[# The else clause should only fire when bootstrapping the 5119# libtool distribution, otherwise you forgot to ship ltmain.sh 5120# with your package, and you will get complaints that there are 5121# no rules to generate ltmain.sh. 5122if test -f "$ltmain"; then 5123 # See if we are running on zsh, and set the options which allow our commands through 5124 # without removal of \ escapes. 5125 if test -n "${ZSH_VERSION+set}" ; then 5126 setopt NO_GLOB_SUBST 5127 fi 5128 # Now quote all the things that may contain metacharacters while being 5129 # careful not to overquote the AC_SUBSTed values. We take copies of the 5130 # variables and quote the copies for generation of the libtool script. 5131 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 5132 SED SHELL STRIP \ 5133 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 5134 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 5135 deplibs_check_method reload_flag reload_cmds need_locks \ 5136 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 5137 lt_cv_sys_global_symbol_to_c_name_address \ 5138 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 5139 old_postinstall_cmds old_postuninstall_cmds \ 5140 _LT_AC_TAGVAR(compiler, $1) \ 5141 _LT_AC_TAGVAR(CC, $1) \ 5142 _LT_AC_TAGVAR(LD, $1) \ 5143 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \ 5144 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \ 5145 _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \ 5146 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \ 5147 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \ 5148 _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \ 5149 _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \ 5150 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \ 5151 _LT_AC_TAGVAR(old_archive_cmds, $1) \ 5152 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \ 5153 _LT_AC_TAGVAR(predep_objects, $1) \ 5154 _LT_AC_TAGVAR(postdep_objects, $1) \ 5155 _LT_AC_TAGVAR(predeps, $1) \ 5156 _LT_AC_TAGVAR(postdeps, $1) \ 5157 _LT_AC_TAGVAR(compiler_lib_search_path, $1) \ 5158 _LT_AC_TAGVAR(archive_cmds, $1) \ 5159 _LT_AC_TAGVAR(archive_expsym_cmds, $1) \ 5160 _LT_AC_TAGVAR(postinstall_cmds, $1) \ 5161 _LT_AC_TAGVAR(postuninstall_cmds, $1) \ 5162 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \ 5163 _LT_AC_TAGVAR(allow_undefined_flag, $1) \ 5164 _LT_AC_TAGVAR(no_undefined_flag, $1) \ 5165 _LT_AC_TAGVAR(export_symbols_cmds, $1) \ 5166 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \ 5167 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \ 5168 _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \ 5169 _LT_AC_TAGVAR(hardcode_automatic, $1) \ 5170 _LT_AC_TAGVAR(module_cmds, $1) \ 5171 _LT_AC_TAGVAR(module_expsym_cmds, $1) \ 5172 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \ 5173 _LT_AC_TAGVAR(exclude_expsyms, $1) \ 5174 _LT_AC_TAGVAR(include_expsyms, $1); do 5175 5176 case $var in 5177 _LT_AC_TAGVAR(old_archive_cmds, $1) | \ 5178 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \ 5179 _LT_AC_TAGVAR(archive_cmds, $1) | \ 5180 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ 5181 _LT_AC_TAGVAR(module_cmds, $1) | \ 5182 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ 5183 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ 5184 _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ 5185 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 5186 postinstall_cmds | postuninstall_cmds | \ 5187 old_postinstall_cmds | old_postuninstall_cmds | \ 5188 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 5189 # Double-quote double-evaled strings. 5190 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 5191 ;; 5192 *) 5193 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 5194 ;; 5195 esac 5196 done 5197 5198 case $lt_echo in 5199 *'\[$]0 --fallback-echo"') 5200 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'` 5201 ;; 5202 esac 5203 5204ifelse([$1], [], 5205 [cfgfile="${ofile}T" 5206 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 5207 $rm -f "$cfgfile" 5208 AC_MSG_NOTICE([creating $ofile])], 5209 [cfgfile="$ofile"]) 5210 5211 cat <<__EOF__ >> "$cfgfile" 5212ifelse([$1], [], 5213[#! $SHELL 5214 5215# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 5216# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 5217# NOTE: Changes made to this file will be lost: look at ltmain.sh. 5218# 5219# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 5220# Free Software Foundation, Inc. 5221# 5222# This file is part of GNU Libtool: 5223# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 5224# 5225# This program is free software; you can redistribute it and/or modify 5226# it under the terms of the GNU General Public License as published by 5227# the Free Software Foundation; either version 2 of the License, or 5228# (at your option) any later version. 5229# 5230# This program is distributed in the hope that it will be useful, but 5231# WITHOUT ANY WARRANTY; without even the implied warranty of 5232# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 5233# General Public License for more details. 5234# 5235# You should have received a copy of the GNU General Public License 5236# along with this program; if not, write to the Free Software 5237# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 5238# 5239# As a special exception to the GNU General Public License, if you 5240# distribute this file as part of a program that contains a 5241# configuration script generated by Autoconf, you may include it under 5242# the same distribution terms that you use for the rest of that program. 5243 5244# A sed program that does not truncate output. 5245SED=$lt_SED 5246 5247# Sed that helps us avoid accidentally triggering echo(1) options like -n. 5248Xsed="$SED -e 1s/^X//" 5249 5250# The HP-UX ksh and POSIX shell print the target directory to stdout 5251# if CDPATH is set. 5252(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 5253 5254# The names of the tagged configurations supported by this script. 5255available_tags= 5256 5257# ### BEGIN LIBTOOL CONFIG], 5258[# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) 5259 5260# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 5261 5262# Shell to use when invoking shell scripts. 5263SHELL=$lt_SHELL 5264 5265# Whether or not to build shared libraries. 5266build_libtool_libs=$enable_shared 5267 5268# Whether or not to build static libraries. 5269build_old_libs=$enable_static 5270 5271# Whether or not to add -lc for building shared libraries. 5272build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1) 5273 5274# Whether or not to disallow shared libs when runtime libs are static 5275allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) 5276 5277# Whether or not to optimize for fast installation. 5278fast_install=$enable_fast_install 5279 5280# The host system. 5281host_alias=$host_alias 5282host=$host 5283host_os=$host_os 5284 5285# The build system. 5286build_alias=$build_alias 5287build=$build 5288build_os=$build_os 5289 5290# An echo program that does not interpret backslashes. 5291echo=$lt_echo 5292 5293# The archiver. 5294AR=$lt_AR 5295AR_FLAGS=$lt_AR_FLAGS 5296 5297# A C compiler. 5298LTCC=$lt_LTCC 5299 5300# A language-specific compiler. 5301CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) 5302 5303# Is the compiler the GNU C compiler? 5304with_gcc=$_LT_AC_TAGVAR(GCC, $1) 5305 5306# An ERE matcher. 5307EGREP=$lt_EGREP 5308 5309# The linker used to build libraries. 5310LD=$lt_[]_LT_AC_TAGVAR(LD, $1) 5311 5312# Whether we need hard or soft links. 5313LN_S=$lt_LN_S 5314 5315# A BSD-compatible nm program. 5316NM=$lt_NM 5317 5318# A symbol stripping program 5319STRIP=$lt_STRIP 5320 5321# Used to examine libraries when file_magic_cmd begins "file" 5322MAGIC_CMD=$MAGIC_CMD 5323 5324# Used on cygwin: DLL creation program. 5325DLLTOOL="$DLLTOOL" 5326 5327# Used on cygwin: object dumper. 5328OBJDUMP="$OBJDUMP" 5329 5330# Used on cygwin: assembler. 5331AS="$AS" 5332 5333# The name of the directory that contains temporary libtool files. 5334objdir=$objdir 5335 5336# How to create reloadable object files. 5337reload_flag=$lt_reload_flag 5338reload_cmds=$lt_reload_cmds 5339 5340# How to pass a linker flag through the compiler. 5341wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) 5342 5343# Object file suffix (normally "o"). 5344objext="$ac_objext" 5345 5346# Old archive suffix (normally "a"). 5347libext="$libext" 5348 5349# Shared library suffix (normally ".so"). 5350shrext_cmds='$shrext_cmds' 5351 5352# Executable file suffix (normally ""). 5353exeext="$exeext" 5354 5355# Additional compiler flags for building library objects. 5356pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) 5357pic_mode=$pic_mode 5358 5359# What is the maximum length of a command? 5360max_cmd_len=$lt_cv_sys_max_cmd_len 5361 5362# Does compiler simultaneously support -c and -o options? 5363compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) 5364 5365# Must we lock files when doing compilation? 5366need_locks=$lt_need_locks 5367 5368# Do we need the lib prefix for modules? 5369need_lib_prefix=$need_lib_prefix 5370 5371# Do we need a version for libraries? 5372need_version=$need_version 5373 5374# Whether dlopen is supported. 5375dlopen_support=$enable_dlopen 5376 5377# Whether dlopen of programs is supported. 5378dlopen_self=$enable_dlopen_self 5379 5380# Whether dlopen of statically linked programs is supported. 5381dlopen_self_static=$enable_dlopen_self_static 5382 5383# Compiler flag to prevent dynamic linking. 5384link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1) 5385 5386# Compiler flag to turn off builtin functions. 5387no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) 5388 5389# Compiler flag to allow reflexive dlopens. 5390export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) 5391 5392# Compiler flag to generate shared objects directly from archives. 5393whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1) 5394 5395# Compiler flag to generate thread-safe objects. 5396thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1) 5397 5398# Library versioning type. 5399version_type=$version_type 5400 5401# Format of library name prefix. 5402libname_spec=$lt_libname_spec 5403 5404# List of archive names. First name is the real one, the rest are links. 5405# The last name is the one that the linker finds with -lNAME. 5406library_names_spec=$lt_library_names_spec 5407 5408# The coded name of the library, if different from the real name. 5409soname_spec=$lt_soname_spec 5410 5411# Commands used to build and install an old-style archive. 5412RANLIB=$lt_RANLIB 5413old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1) 5414old_postinstall_cmds=$lt_old_postinstall_cmds 5415old_postuninstall_cmds=$lt_old_postuninstall_cmds 5416 5417# Create an old-style archive from a shared archive. 5418old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) 5419 5420# Create a temporary old-style archive to link instead of a shared archive. 5421old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) 5422 5423# Commands used to build and install a shared archive. 5424archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1) 5425archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1) 5426postinstall_cmds=$lt_postinstall_cmds 5427postuninstall_cmds=$lt_postuninstall_cmds 5428 5429# Commands used to build a loadable module (assumed same as above if empty) 5430module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1) 5431module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1) 5432 5433# Commands to strip libraries. 5434old_striplib=$lt_old_striplib 5435striplib=$lt_striplib 5436 5437# Dependencies to place before the objects being linked to create a 5438# shared library. 5439predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1) 5440 5441# Dependencies to place after the objects being linked to create a 5442# shared library. 5443postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) 5444 5445# Dependencies to place before the objects being linked to create a 5446# shared library. 5447predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) 5448 5449# Dependencies to place after the objects being linked to create a 5450# shared library. 5451postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) 5452 5453# The library search path used internally by the compiler when linking 5454# a shared library. 5455compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) 5456 5457# Method to check whether dependent libraries are shared objects. 5458deplibs_check_method=$lt_deplibs_check_method 5459 5460# Command to use when deplibs_check_method == file_magic. 5461file_magic_cmd=$lt_file_magic_cmd 5462 5463# Flag that allows shared libraries with undefined symbols to be built. 5464allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1) 5465 5466# Flag that forces no undefined symbols. 5467no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1) 5468 5469# Commands used to finish a libtool library installation in a directory. 5470finish_cmds=$lt_finish_cmds 5471 5472# Same as above, but a single script fragment to be evaled but not shown. 5473finish_eval=$lt_finish_eval 5474 5475# Take the output of nm and produce a listing of raw symbols and C names. 5476global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 5477 5478# Transform the output of nm in a proper C declaration 5479global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 5480 5481# Transform the output of nm in a C name address pair 5482global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 5483 5484# This is the shared library runtime path variable. 5485runpath_var=$runpath_var 5486 5487# This is the shared library path variable. 5488shlibpath_var=$shlibpath_var 5489 5490# Is shlibpath searched before the hard-coded library search path? 5491shlibpath_overrides_runpath=$shlibpath_overrides_runpath 5492 5493# How to hardcode a shared library path into an executable. 5494hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1) 5495 5496# Whether we should hardcode library paths into libraries. 5497hardcode_into_libs=$hardcode_into_libs 5498 5499# Flag to hardcode \$libdir into a binary during linking. 5500# This must work even if \$libdir does not exist. 5501hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) 5502 5503# If ld is used when linking, flag to hardcode \$libdir into 5504# a binary during linking. This must work even if \$libdir does 5505# not exist. 5506hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) 5507 5508# Whether we need a single -rpath flag with a separated argument. 5509hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1) 5510 5511# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 5512# resulting binary. 5513hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1) 5514 5515# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 5516# resulting binary. 5517hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1) 5518 5519# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 5520# the resulting binary. 5521hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1) 5522 5523# Set to yes if building a shared library automatically hardcodes DIR into the library 5524# and all subsequent libraries and executables linked against it. 5525hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1) 5526 5527# Variables whose values should be saved in libtool wrapper scripts and 5528# restored at relink time. 5529variables_saved_for_relink="$variables_saved_for_relink" 5530 5531# Whether libtool must link a program against all its dependency libraries. 5532link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) 5533 5534# Compile-time system search path for libraries 5535sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 5536 5537# Run-time system search path for libraries 5538sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 5539 5540# Fix the shell variable \$srcfile for the compiler. 5541fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)" 5542 5543# Set to yes if exported symbols are required. 5544always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) 5545 5546# The commands to list exported symbols. 5547export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) 5548 5549# The commands to extract the exported symbol list from a shared archive. 5550extract_expsyms_cmds=$lt_extract_expsyms_cmds 5551 5552# Symbols that should not be listed in the preloaded symbols. 5553exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1) 5554 5555# Symbols that must always be exported. 5556include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1) 5557 5558ifelse([$1],[], 5559[# ### END LIBTOOL CONFIG], 5560[# ### END LIBTOOL TAG CONFIG: $tagname]) 5561 5562__EOF__ 5563 5564ifelse([$1],[], [ 5565 case $host_os in 5566 aix3*) 5567 cat <<\EOF >> "$cfgfile" 5568 5569# AIX sometimes has problems with the GCC collect2 program. For some 5570# reason, if we set the COLLECT_NAMES environment variable, the problems 5571# vanish in a puff of smoke. 5572if test "X${COLLECT_NAMES+set}" != Xset; then 5573 COLLECT_NAMES= 5574 export COLLECT_NAMES 5575fi 5576EOF 5577 ;; 5578 esac 5579 5580 # We use sed instead of cat because bash on DJGPP gets confused if 5581 # if finds mixed CR/LF and LF-only lines. Since sed operates in 5582 # text mode, it properly converts lines to CR/LF. This bash problem 5583 # is reportedly fixed, but why not run on old versions too? 5584 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 5585 5586 mv -f "$cfgfile" "$ofile" || \ 5587 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 5588 chmod +x "$ofile" 5589]) 5590else 5591 # If there is no Makefile yet, we rely on a make rule to execute 5592 # `config.status --recheck' to rerun these tests and create the 5593 # libtool script then. 5594 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 5595 if test -f "$ltmain_in"; then 5596 test -f Makefile && make "$ltmain" 5597 fi 5598fi 5599])# AC_LIBTOOL_CONFIG 5600 5601 5602# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) 5603# ------------------------------------------- 5604AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], 5605[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 5606 5607_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 5608 5609if test "$GCC" = yes; then 5610 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 5611 5612 AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], 5613 lt_cv_prog_compiler_rtti_exceptions, 5614 [-fno-rtti -fno-exceptions], [], 5615 [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) 5616fi 5617])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI 5618 5619 5620# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 5621# --------------------------------- 5622AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], 5623[AC_REQUIRE([AC_CANONICAL_HOST]) 5624AC_REQUIRE([AC_PROG_NM]) 5625AC_REQUIRE([AC_OBJEXT]) 5626# Check for command to grab the raw symbol name followed by C symbol from nm. 5627AC_MSG_CHECKING([command to parse $NM output from $compiler object]) 5628AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], 5629[ 5630# These are sane defaults that work on at least a few old systems. 5631# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5632 5633# Character class describing NM global symbol codes. 5634symcode='[[BCDEGRST]]' 5635 5636# Regexp to match symbols that can be accessed directly from C. 5637sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 5638 5639# Transform an extracted symbol line into a proper C declaration 5640lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 5641 5642# Transform an extracted symbol line into symbol name and symbol address 5643lt_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'" 5644 5645# Define system-specific variables. 5646case $host_os in 5647aix*) 5648 symcode='[[BCDT]]' 5649 ;; 5650cygwin* | mingw* | pw32*) 5651 symcode='[[ABCDGISTW]]' 5652 ;; 5653hpux*) # Its linker distinguishes data from code symbols 5654 if test "$host_cpu" = ia64; then 5655 symcode='[[ABCDEGRST]]' 5656 fi 5657 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5658 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'" 5659 ;; 5660linux*) 5661 if test "$host_cpu" = ia64; then 5662 symcode='[[ABCDGIRSTW]]' 5663 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5664 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'" 5665 fi 5666 ;; 5667irix* | nonstopux*) 5668 symcode='[[BCDEGRST]]' 5669 ;; 5670osf*) 5671 symcode='[[BCDEGQRST]]' 5672 ;; 5673solaris* | sysv5*) 5674 symcode='[[BDRT]]' 5675 ;; 5676sysv4) 5677 symcode='[[DFNSTU]]' 5678 ;; 5679esac 5680 5681# Handle CRLF in mingw tool chain 5682opt_cr= 5683case $build_os in 5684mingw*) 5685 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5686 ;; 5687esac 5688 5689# If we're using GNU nm, then use its standard symbol codes. 5690case `$NM -V 2>&1` in 5691*GNU* | *'with BFD'*) 5692 symcode='[[ABCDGIRSTW]]' ;; 5693esac 5694 5695# Try without a prefix undercore, then with it. 5696for ac_symprfx in "" "_"; do 5697 5698 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5699 symxfrm="\\1 $ac_symprfx\\2 \\2" 5700 5701 # Write the raw and C identifiers. 5702 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5703 5704 # Check to see that the pipe works correctly. 5705 pipe_works=no 5706 5707 rm -f conftest* 5708 cat > conftest.$ac_ext <<EOF 5709#ifdef __cplusplus 5710extern "C" { 5711#endif 5712char nm_test_var; 5713void nm_test_func(){} 5714#ifdef __cplusplus 5715} 5716#endif 5717int main(){nm_test_var='a';nm_test_func();return(0);} 5718EOF 5719 5720 if AC_TRY_EVAL(ac_compile); then 5721 # Now try to grab the symbols. 5722 nlist=conftest.nm 5723 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then 5724 # Try sorting and uniquifying the output. 5725 if sort "$nlist" | uniq > "$nlist"T; then 5726 mv -f "$nlist"T "$nlist" 5727 else 5728 rm -f "$nlist"T 5729 fi 5730 5731 # Make sure that we snagged all the symbols we need. 5732 if grep ' nm_test_var$' "$nlist" >/dev/null; then 5733 if grep ' nm_test_func$' "$nlist" >/dev/null; then 5734 cat <<EOF > conftest.$ac_ext 5735#ifdef __cplusplus 5736extern "C" { 5737#endif 5738 5739EOF 5740 # Now generate the symbol file. 5741 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 5742 5743 cat <<EOF >> conftest.$ac_ext 5744#if defined (__STDC__) && __STDC__ 5745# define lt_ptr_t void * 5746#else 5747# define lt_ptr_t char * 5748# define const 5749#endif 5750 5751/* The mapping between symbol names and symbols. */ 5752const struct { 5753 const char *name; 5754 lt_ptr_t address; 5755} 5756lt_preloaded_symbols[[]] = 5757{ 5758EOF 5759 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 5760 cat <<\EOF >> conftest.$ac_ext 5761 {0, (lt_ptr_t) 0} 5762}; 5763 5764#ifdef __cplusplus 5765} 5766#endif 5767EOF 5768 # Now try linking the two files. 5769 mv conftest.$ac_objext conftstm.$ac_objext 5770 lt_save_LIBS="$LIBS" 5771 lt_save_CFLAGS="$CFLAGS" 5772 LIBS="conftstm.$ac_objext" 5773 CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" 5774 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then 5775 pipe_works=yes 5776 fi 5777 LIBS="$lt_save_LIBS" 5778 CFLAGS="$lt_save_CFLAGS" 5779 else 5780 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD 5781 fi 5782 else 5783 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD 5784 fi 5785 else 5786 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD 5787 fi 5788 else 5789 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD 5790 cat conftest.$ac_ext >&5 5791 fi 5792 rm -f conftest* conftst* 5793 5794 # Do not use the global_symbol_pipe unless it works. 5795 if test "$pipe_works" = yes; then 5796 break 5797 else 5798 lt_cv_sys_global_symbol_pipe= 5799 fi 5800done 5801]) 5802if test -z "$lt_cv_sys_global_symbol_pipe"; then 5803 lt_cv_sys_global_symbol_to_cdecl= 5804fi 5805if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5806 AC_MSG_RESULT(failed) 5807else 5808 AC_MSG_RESULT(ok) 5809fi 5810]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 5811 5812 5813# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) 5814# --------------------------------------- 5815AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], 5816[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= 5817_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 5818_LT_AC_TAGVAR(lt_prog_compiler_static, $1)= 5819 5820AC_MSG_CHECKING([for $compiler option to produce PIC]) 5821 ifelse([$1],[CXX],[ 5822 # C++ specific cases for pic, static, wl, etc. 5823 if test "$GXX" = yes; then 5824 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5825 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 5826 5827 case $host_os in 5828 aix*) 5829 # All AIX code is PIC. 5830 if test "$host_cpu" = ia64; then 5831 # AIX 5 now supports IA64 processor 5832 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5833 fi 5834 ;; 5835 amigaos*) 5836 # FIXME: we need at least 68020 code to build shared libraries, but 5837 # adding the `-m68020' flag to GCC prevents building anything better, 5838 # like `-m68040'. 5839 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 5840 ;; 5841 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 5842 # PIC is the default for these OSes. 5843 ;; 5844 mingw* | os2* | pw32*) 5845 # This hack is so that the source file can tell whether it is being 5846 # built for inclusion in a dll (and should export symbols for example). 5847 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' 5848 ;; 5849 darwin* | rhapsody*) 5850 # PIC is the default on this platform 5851 # Common symbols not allowed in MH_DYLIB files 5852 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 5853 ;; 5854 *djgpp*) 5855 # DJGPP does not support shared libraries at all 5856 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 5857 ;; 5858 sysv4*MP*) 5859 if test -d /usr/nec; then 5860 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 5861 fi 5862 ;; 5863 hpux*) 5864 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 5865 # not for PA HP-UX. 5866 case $host_cpu in 5867 hppa*64*|ia64*) 5868 ;; 5869 *) 5870 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5871 ;; 5872 esac 5873 ;; 5874 *) 5875 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5876 ;; 5877 esac 5878 else 5879 case $host_os in 5880 aix4* | aix5*) 5881 # All AIX code is PIC. 5882 if test "$host_cpu" = ia64; then 5883 # AIX 5 now supports IA64 processor 5884 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5885 else 5886 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 5887 fi 5888 ;; 5889 chorus*) 5890 case $cc_basename in 5891 cxch68*) 5892 # Green Hills C++ Compiler 5893 # _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" 5894 ;; 5895 esac 5896 ;; 5897 darwin*) 5898 # PIC is the default on this platform 5899 # Common symbols not allowed in MH_DYLIB files 5900 case $cc_basename in 5901 xlc*) 5902 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' 5903 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5904 ;; 5905 esac 5906 ;; 5907 dgux*) 5908 case $cc_basename in 5909 ec++*) 5910 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5911 ;; 5912 ghcx*) 5913 # Green Hills C++ Compiler 5914 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5915 ;; 5916 *) 5917 ;; 5918 esac 5919 ;; 5920 freebsd* | kfreebsd*-gnu | dragonfly*) 5921 # FreeBSD uses GNU C++ 5922 ;; 5923 hpux9* | hpux10* | hpux11*) 5924 case $cc_basename in 5925 CC*) 5926 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5927 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 5928 if test "$host_cpu" != ia64; then 5929 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 5930 fi 5931 ;; 5932 aCC*) 5933 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5934 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 5935 case $host_cpu in 5936 hppa*64*|ia64*) 5937 # +Z the default 5938 ;; 5939 *) 5940 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 5941 ;; 5942 esac 5943 ;; 5944 *) 5945 ;; 5946 esac 5947 ;; 5948 irix5* | irix6* | nonstopux*) 5949 case $cc_basename in 5950 CC*) 5951 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5952 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5953 # CC pic flag -KPIC is the default. 5954 ;; 5955 *) 5956 ;; 5957 esac 5958 ;; 5959 linux*) 5960 case $cc_basename in 5961 KCC*) 5962 # KAI C++ Compiler 5963 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 5964 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5965 ;; 5966 icpc* | ecpc*) 5967 # Intel C++ 5968 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5969 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5970 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 5971 ;; 5972 pgCC*) 5973 # Portland Group C++ compiler. 5974 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5975 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 5976 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5977 ;; 5978 cxx*) 5979 # Compaq C++ 5980 # Make sure the PIC flag is empty. It appears that all Alpha 5981 # Linux and Compaq Tru64 Unix objects are PIC. 5982 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 5983 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5984 ;; 5985 *) 5986 ;; 5987 esac 5988 ;; 5989 lynxos*) 5990 ;; 5991 m88k*) 5992 ;; 5993 mvs*) 5994 case $cc_basename in 5995 cxx*) 5996 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' 5997 ;; 5998 *) 5999 ;; 6000 esac 6001 ;; 6002 netbsd*) 6003 ;; 6004 osf3* | osf4* | osf5*) 6005 case $cc_basename in 6006 KCC*) 6007 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 6008 ;; 6009 RCC*) 6010 # Rational C++ 2.4.1 6011 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 6012 ;; 6013 cxx*) 6014 # Digital/Compaq C++ 6015 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6016 # Make sure the PIC flag is empty. It appears that all Alpha 6017 # Linux and Compaq Tru64 Unix objects are PIC. 6018 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 6019 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6020 ;; 6021 *) 6022 ;; 6023 esac 6024 ;; 6025 psos*) 6026 ;; 6027 sco*) 6028 case $cc_basename in 6029 CC*) 6030 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6031 ;; 6032 *) 6033 ;; 6034 esac 6035 ;; 6036 solaris*) 6037 case $cc_basename in 6038 CC*) 6039 # Sun C++ 4.2, 5.x and Centerline C++ 6040 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6041 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6042 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 6043 ;; 6044 gcx*) 6045 # Green Hills C++ Compiler 6046 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 6047 ;; 6048 *) 6049 ;; 6050 esac 6051 ;; 6052 sunos4*) 6053 case $cc_basename in 6054 CC*) 6055 # Sun C++ 4.x 6056 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 6057 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6058 ;; 6059 lcc*) 6060 # Lucid 6061 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 6062 ;; 6063 *) 6064 ;; 6065 esac 6066 ;; 6067 tandem*) 6068 case $cc_basename in 6069 NCC*) 6070 # NonStop-UX NCC 3.20 6071 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6072 ;; 6073 *) 6074 ;; 6075 esac 6076 ;; 6077 unixware*) 6078 ;; 6079 vxworks*) 6080 ;; 6081 *) 6082 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 6083 ;; 6084 esac 6085 fi 6086], 6087[ 6088 if test "$GCC" = yes; then 6089 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6090 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 6091 6092 case $host_os in 6093 aix*) 6094 # All AIX code is PIC. 6095 if test "$host_cpu" = ia64; then 6096 # AIX 5 now supports IA64 processor 6097 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6098 fi 6099 ;; 6100 6101 amigaos*) 6102 # FIXME: we need at least 68020 code to build shared libraries, but 6103 # adding the `-m68020' flag to GCC prevents building anything better, 6104 # like `-m68040'. 6105 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 6106 ;; 6107 6108 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6109 # PIC is the default for these OSes. 6110 ;; 6111 6112 mingw* | pw32* | os2*) 6113 # This hack is so that the source file can tell whether it is being 6114 # built for inclusion in a dll (and should export symbols for example). 6115 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' 6116 ;; 6117 6118 darwin* | rhapsody*) 6119 # PIC is the default on this platform 6120 # Common symbols not allowed in MH_DYLIB files 6121 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 6122 ;; 6123 6124 msdosdjgpp*) 6125 # Just because we use GCC doesn't mean we suddenly get shared libraries 6126 # on systems that don't support them. 6127 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 6128 enable_shared=no 6129 ;; 6130 6131 sysv4*MP*) 6132 if test -d /usr/nec; then 6133 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 6134 fi 6135 ;; 6136 6137 hpux*) 6138 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6139 # not for PA HP-UX. 6140 case $host_cpu in 6141 hppa*64*|ia64*) 6142 # +Z the default 6143 ;; 6144 *) 6145 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6146 ;; 6147 esac 6148 ;; 6149 6150 *) 6151 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6152 ;; 6153 esac 6154 else 6155 # PORTME Check for flag to pass linker flags through the system compiler. 6156 case $host_os in 6157 aix*) 6158 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6159 if test "$host_cpu" = ia64; then 6160 # AIX 5 now supports IA64 processor 6161 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6162 else 6163 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 6164 fi 6165 ;; 6166 darwin*) 6167 # PIC is the default on this platform 6168 # Common symbols not allowed in MH_DYLIB files 6169 case $cc_basename in 6170 xlc*) 6171 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' 6172 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6173 ;; 6174 esac 6175 ;; 6176 6177 mingw* | pw32* | os2*) 6178 # This hack is so that the source file can tell whether it is being 6179 # built for inclusion in a dll (and should export symbols for example). 6180 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' 6181 ;; 6182 6183 hpux9* | hpux10* | hpux11*) 6184 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6185 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6186 # not for PA HP-UX. 6187 case $host_cpu in 6188 hppa*64*|ia64*) 6189 # +Z the default 6190 ;; 6191 *) 6192 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 6193 ;; 6194 esac 6195 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6196 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 6197 ;; 6198 6199 irix5* | irix6* | nonstopux*) 6200 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6201 # PIC (with -KPIC) is the default. 6202 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6203 ;; 6204 6205 newsos6) 6206 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6207 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6208 ;; 6209 6210 linux*) 6211 case $cc_basename in 6212 icc* | ecc*) 6213 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6214 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6215 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 6216 ;; 6217 pgcc* | pgf77* | pgf90* | pgf95*) 6218 # Portland Group compilers (*not* the Pentium gcc compiler, 6219 # which looks to be a dead project) 6220 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6221 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 6222 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6223 ;; 6224 ccc*) 6225 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6226 # All Alpha code is PIC. 6227 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6228 ;; 6229 esac 6230 ;; 6231 6232 osf3* | osf4* | osf5*) 6233 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6234 # All OSF/1 code is PIC. 6235 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6236 ;; 6237 6238 sco3.2v5*) 6239 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic' 6240 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn' 6241 ;; 6242 6243 solaris*) 6244 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6245 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6246 case $cc_basename in 6247 f77* | f90* | f95*) 6248 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; 6249 *) 6250 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; 6251 esac 6252 ;; 6253 6254 sunos4*) 6255 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 6256 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 6257 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6258 ;; 6259 6260 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 6261 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6262 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6263 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6264 ;; 6265 6266 sysv4*MP*) 6267 if test -d /usr/nec ;then 6268 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' 6269 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6270 fi 6271 ;; 6272 6273 unicos*) 6274 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6275 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 6276 ;; 6277 6278 uts4*) 6279 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 6280 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6281 ;; 6282 6283 *) 6284 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 6285 ;; 6286 esac 6287 fi 6288]) 6289AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) 6290 6291# 6292# Check to make sure the PIC flag actually works. 6293# 6294if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then 6295 AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], 6296 _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1), 6297 [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [], 6298 [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in 6299 "" | " "*) ;; 6300 *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; 6301 esac], 6302 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 6303 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) 6304fi 6305case $host_os in 6306 # For platforms which do not support PIC, -DPIC is meaningless: 6307 *djgpp*) 6308 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 6309 ;; 6310 *) 6311 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" 6312 ;; 6313esac 6314]) 6315 6316 6317# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) 6318# ------------------------------------ 6319# See if the linker supports building shared libraries. 6320AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], 6321[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 6322ifelse([$1],[CXX],[ 6323 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6324 case $host_os in 6325 aix4* | aix5*) 6326 # If we're using GNU nm, then we don't want the "-C" option. 6327 # -C means demangle to AIX nm, but means don't demangle with GNU nm 6328 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 6329 _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' 6330 else 6331 _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' 6332 fi 6333 ;; 6334 pw32*) 6335 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" 6336 ;; 6337 cygwin* | mingw*) 6338 _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' 6339 ;; 6340 *) 6341 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6342 ;; 6343 esac 6344],[ 6345 runpath_var= 6346 _LT_AC_TAGVAR(allow_undefined_flag, $1)= 6347 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no 6348 _LT_AC_TAGVAR(archive_cmds, $1)= 6349 _LT_AC_TAGVAR(archive_expsym_cmds, $1)= 6350 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= 6351 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= 6352 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 6353 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 6354 _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= 6355 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 6356 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 6357 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 6358 _LT_AC_TAGVAR(hardcode_direct, $1)=no 6359 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no 6360 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 6361 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown 6362 _LT_AC_TAGVAR(hardcode_automatic, $1)=no 6363 _LT_AC_TAGVAR(module_cmds, $1)= 6364 _LT_AC_TAGVAR(module_expsym_cmds, $1)= 6365 _LT_AC_TAGVAR(always_export_symbols, $1)=no 6366 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6367 # include_expsyms should be a list of space-separated symbols to be *always* 6368 # included in the symbol list 6369 _LT_AC_TAGVAR(include_expsyms, $1)= 6370 # exclude_expsyms can be an extended regexp of symbols to exclude 6371 # it will be wrapped by ` (' and `)$', so one must not match beginning or 6372 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 6373 # as well as any symbol that contains `d'. 6374 _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_" 6375 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 6376 # platforms (ab)use it in PIC code, but their linkers get confused if 6377 # the symbol is explicitly referenced. Since portable code cannot 6378 # rely on this symbol name, it's probably fine to never include it in 6379 # preloaded symbol tables. 6380 extract_expsyms_cmds= 6381 # Just being paranoid about ensuring that cc_basename is set. 6382 _LT_CC_BASENAME([$compiler]) 6383 case $host_os in 6384 cygwin* | mingw* | pw32*) 6385 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6386 # When not using gcc, we currently assume that we are using 6387 # Microsoft Visual C++. 6388 if test "$GCC" != yes; then 6389 with_gnu_ld=no 6390 fi 6391 ;; 6392 openbsd*) 6393 with_gnu_ld=no 6394 ;; 6395 esac 6396 6397 _LT_AC_TAGVAR(ld_shlibs, $1)=yes 6398 if test "$with_gnu_ld" = yes; then 6399 # If archive_cmds runs LD, not CC, wlarc should be empty 6400 wlarc='${wl}' 6401 6402 # Set some defaults for GNU ld with shared library support. These 6403 # are reset later if shared libraries are not supported. Putting them 6404 # here allows them to be overridden if necessary. 6405 runpath_var=LD_RUN_PATH 6406 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 6407 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 6408 # ancient GNU ld didn't support --whole-archive et. al. 6409 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 6410 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6411 else 6412 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 6413 fi 6414 supports_anon_versioning=no 6415 case `$LD -v 2>/dev/null` in 6416 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 6417 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 6418 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 6419 *\ 2.11.*) ;; # other 2.11 versions 6420 *) supports_anon_versioning=yes ;; 6421 esac 6422 6423 # See if GNU ld supports shared libraries. 6424 case $host_os in 6425 aix3* | aix4* | aix5*) 6426 # On AIX/PPC, the GNU linker is very broken 6427 if test "$host_cpu" != ia64; then 6428 _LT_AC_TAGVAR(ld_shlibs, $1)=no 6429 cat <<EOF 1>&2 6430 6431*** Warning: the GNU linker, at least up to release 2.9.1, is reported 6432*** to be unable to reliably create shared libraries on AIX. 6433*** Therefore, libtool is disabling shared libraries support. If you 6434*** really care for shared libraries, you may want to modify your PATH 6435*** so that a non-GNU linker is found, and then restart. 6436 6437EOF 6438 fi 6439 ;; 6440 6441 amigaos*) 6442 _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)' 6443 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6444 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 6445 6446 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 6447 # that the semantics of dynamic libraries on AmigaOS, at least up 6448 # to version 4, is to share data among multiple programs linked 6449 # with the same dynamic library. Since this doesn't match the 6450 # behavior of shared libraries on other platforms, we can't use 6451 # them. 6452 _LT_AC_TAGVAR(ld_shlibs, $1)=no 6453 ;; 6454 6455 beos*) 6456 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6457 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 6458 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6459 # support --undefined. This deserves some investigation. FIXME 6460 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6461 else 6462 _LT_AC_TAGVAR(ld_shlibs, $1)=no 6463 fi 6464 ;; 6465 6466 cygwin* | mingw* | pw32*) 6467 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 6468 # as there is no search path for DLLs. 6469 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6470 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 6471 _LT_AC_TAGVAR(always_export_symbols, $1)=no 6472 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6473 _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' 6474 6475 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 6476 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib' 6477 # If the export-symbols file already is a .def file (1st line 6478 # is EXPORTS), use it as is; otherwise, prepend... 6479 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6480 cp $export_symbols $output_objdir/$soname.def; 6481 else 6482 echo EXPORTS > $output_objdir/$soname.def; 6483 cat $export_symbols >> $output_objdir/$soname.def; 6484 fi~ 6485 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib' 6486 else 6487 _LT_AC_TAGVAR(ld_shlibs, $1)=no 6488 fi 6489 ;; 6490 6491 linux*) 6492 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6493 tmp_addflag= 6494 case $cc_basename,$host_cpu in 6495 pgcc*) # Portland Group C compiler 6496 _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' 6497 tmp_addflag=' $pic_flag' 6498 ;; 6499 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 6500 _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' 6501 tmp_addflag=' $pic_flag -Mnomain' ;; 6502 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 6503 tmp_addflag=' -i_dynamic' ;; 6504 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 6505 tmp_addflag=' -i_dynamic -nofor_main' ;; 6506 ifc* | ifort*) # Intel Fortran compiler 6507 tmp_addflag=' -nofor_main' ;; 6508 esac 6509 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6510 6511 if test $supports_anon_versioning = yes; then 6512 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ 6513 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 6514 $echo "local: *; };" >> $output_objdir/$libname.ver~ 6515 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 6516 fi 6517 else 6518 _LT_AC_TAGVAR(ld_shlibs, $1)=no 6519 fi 6520 ;; 6521 6522 netbsd*) 6523 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6524 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 6525 wlarc= 6526 else 6527 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6528 _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' 6529 fi 6530 ;; 6531 6532 solaris* | sysv5*) 6533 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 6534 _LT_AC_TAGVAR(ld_shlibs, $1)=no 6535 cat <<EOF 1>&2 6536 6537*** Warning: The releases 2.8.* of the GNU linker cannot reliably 6538*** create shared libraries on Solaris systems. Therefore, libtool 6539*** is disabling shared libraries support. We urge you to upgrade GNU 6540*** binutils to release 2.9.1 or newer. Another option is to modify 6541*** your PATH or compiler configuration so that the native linker is 6542*** used, and then restart. 6543 6544EOF 6545 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6546 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6547 _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' 6548 else 6549 _LT_AC_TAGVAR(ld_shlibs, $1)=no 6550 fi 6551 ;; 6552 6553 sunos4*) 6554 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6555 wlarc= 6556 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6557 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6558 ;; 6559 6560 *) 6561 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6562 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6563 _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' 6564 else 6565 _LT_AC_TAGVAR(ld_shlibs, $1)=no 6566 fi 6567 ;; 6568 esac 6569 6570 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then 6571 runpath_var= 6572 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 6573 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 6574 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 6575 fi 6576 else 6577 # PORTME fill in a description of your system's linker (not GNU ld) 6578 case $host_os in 6579 aix3*) 6580 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 6581 _LT_AC_TAGVAR(always_export_symbols, $1)=yes 6582 _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' 6583 # Note: this linker hardcodes the directories in LIBPATH if there 6584 # are no directories specified by -L. 6585 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 6586 if test "$GCC" = yes && test -z "$link_static_flag"; then 6587 # Neither direct hardcoding nor static linking is supported with a 6588 # broken collect2. 6589 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported 6590 fi 6591 ;; 6592 6593 aix4* | aix5*) 6594 if test "$host_cpu" = ia64; then 6595 # On IA64, the linker does run time linking by default, so we don't 6596 # have to do anything special. 6597 aix_use_runtimelinking=no 6598 exp_sym_flag='-Bexport' 6599 no_entry_flag="" 6600 else 6601 # If we're using GNU nm, then we don't want the "-C" option. 6602 # -C means demangle to AIX nm, but means don't demangle with GNU nm 6603 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 6604 _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' 6605 else 6606 _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' 6607 fi 6608 aix_use_runtimelinking=no 6609 6610 # Test if we are trying to use run time linking or normal 6611 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 6612 # need to do runtime linking. 6613 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) 6614 for ld_flag in $LDFLAGS; do 6615 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 6616 aix_use_runtimelinking=yes 6617 break 6618 fi 6619 done 6620 esac 6621 6622 exp_sym_flag='-bexport' 6623 no_entry_flag='-bnoentry' 6624 fi 6625 6626 # When large executables or shared objects are built, AIX ld can 6627 # have problems creating the table of contents. If linking a library 6628 # or program results in "error TOC overflow" add -mminimal-toc to 6629 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 6630 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 6631 6632 _LT_AC_TAGVAR(archive_cmds, $1)='' 6633 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6634 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 6635 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 6636 6637 if test "$GCC" = yes; then 6638 case $host_os in aix4.[[012]]|aix4.[[012]].*) 6639 # We only want to do this on AIX 4.2 and lower, the check 6640 # below for broken collect2 doesn't work under 4.3+ 6641 collect2name=`${CC} -print-prog-name=collect2` 6642 if test -f "$collect2name" && \ 6643 strings "$collect2name" | grep resolve_lib_name >/dev/null 6644 then 6645 # We have reworked collect2 6646 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6647 else 6648 # We have old collect2 6649 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported 6650 # It fails to find uninstalled libraries when the uninstalled 6651 # path is not listed in the libpath. Setting hardcode_minus_L 6652 # to unsupported forces relinking 6653 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 6654 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6655 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 6656 fi 6657 esac 6658 shared_flag='-shared' 6659 if test "$aix_use_runtimelinking" = yes; then 6660 shared_flag="$shared_flag "'${wl}-G' 6661 fi 6662 else 6663 # not using gcc 6664 if test "$host_cpu" = ia64; then 6665 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 6666 # chokes on -Wl,-G. The following line is correct: 6667 shared_flag='-G' 6668 else 6669 if test "$aix_use_runtimelinking" = yes; then 6670 shared_flag='${wl}-G' 6671 else 6672 shared_flag='${wl}-bM:SRE' 6673 fi 6674 fi 6675 fi 6676 6677 # It seems that -bexpall does not export symbols beginning with 6678 # underscore (_), so it is better to generate a list of symbols to export. 6679 _LT_AC_TAGVAR(always_export_symbols, $1)=yes 6680 if test "$aix_use_runtimelinking" = yes; then 6681 # Warning - without using the other runtime loading flags (-brtl), 6682 # -berok will link without error, but may produce a broken library. 6683 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' 6684 # Determine the default libpath from the value encoded in an empty executable. 6685 _LT_AC_SYS_LIBPATH_AIX 6686 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 6687 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 6688 else 6689 if test "$host_cpu" = ia64; then 6690 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 6691 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 6692 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 6693 else 6694 # Determine the default libpath from the value encoded in an empty executable. 6695 _LT_AC_SYS_LIBPATH_AIX 6696 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 6697 # Warning - without using the other run time loading flags, 6698 # -berok will link without error, but may produce a broken library. 6699 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 6700 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 6701 # -bexpall does not export symbols beginning with underscore (_) 6702 _LT_AC_TAGVAR(always_export_symbols, $1)=yes 6703 # Exported symbols can be pulled into shared objects from archives 6704 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' 6705 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 6706 # This is similar to how AIX traditionally builds its shared libraries. 6707 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 6708 fi 6709 fi 6710 ;; 6711 6712 amigaos*) 6713 _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)' 6714 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6715 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 6716 # see comment about different semantics on the GNU ld section 6717 _LT_AC_TAGVAR(ld_shlibs, $1)=no 6718 ;; 6719 6720 bsdi[[45]]*) 6721 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 6722 ;; 6723 6724 cygwin* | mingw* | pw32*) 6725 # When not using gcc, we currently assume that we are using 6726 # Microsoft Visual C++. 6727 # hardcode_libdir_flag_spec is actually meaningless, as there is 6728 # no search path for DLLs. 6729 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 6730 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 6731 # Tell ltmain to make .lib files, not .a files. 6732 libext=lib 6733 # Tell ltmain to make .dll files, not .so files. 6734 shrext_cmds=".dll" 6735 # FIXME: Setting linknames here is a bad hack. 6736 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 6737 # The linker will automatically build a .lib file if we build a DLL. 6738 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' 6739 # FIXME: Should let the user specify the lib program. 6740 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' 6741 _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' 6742 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6743 ;; 6744 6745 darwin* | rhapsody*) 6746 case $host_os in 6747 rhapsody* | darwin1.[[012]]) 6748 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' 6749 ;; 6750 *) # Darwin 1.3 on 6751 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 6752 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 6753 else 6754 case ${MACOSX_DEPLOYMENT_TARGET} in 6755 10.[[012]]) 6756 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 6757 ;; 6758 10.*) 6759 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' 6760 ;; 6761 esac 6762 fi 6763 ;; 6764 esac 6765 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 6766 _LT_AC_TAGVAR(hardcode_direct, $1)=no 6767 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes 6768 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 6769 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' 6770 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 6771 if test "$GCC" = yes ; then 6772 output_verbose_link_cmd='echo' 6773 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 6774 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 6775 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 6776 _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}' 6777 _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}' 6778 else 6779 case $cc_basename in 6780 xlc*) 6781 output_verbose_link_cmd='echo' 6782 _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' 6783 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 6784 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 6785 _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}' 6786 _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}' 6787 ;; 6788 *) 6789 _LT_AC_TAGVAR(ld_shlibs, $1)=no 6790 ;; 6791 esac 6792 fi 6793 ;; 6794 6795 dgux*) 6796 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6797 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6798 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6799 ;; 6800 6801 freebsd1*) 6802 _LT_AC_TAGVAR(ld_shlibs, $1)=no 6803 ;; 6804 6805 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 6806 # support. Future versions do this automatically, but an explicit c++rt0.o 6807 # does not break anything, and helps significantly (at the cost of a little 6808 # extra space). 6809 freebsd2.2*) 6810 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 6811 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6812 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6813 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6814 ;; 6815 6816 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 6817 freebsd2*) 6818 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6819 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6820 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 6821 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6822 ;; 6823 6824 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 6825 freebsd* | kfreebsd*-gnu | dragonfly*) 6826 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 6827 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6828 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6829 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6830 ;; 6831 6832 hpux9*) 6833 if test "$GCC" = yes; then 6834 _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' 6835 else 6836 _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' 6837 fi 6838 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 6839 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 6840 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6841 6842 # hardcode_minus_L: Not really in the search PATH, 6843 # but as the default location of the library. 6844 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 6845 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6846 ;; 6847 6848 hpux10* | hpux11*) 6849 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 6850 case $host_cpu in 6851 hppa*64*|ia64*) 6852 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6853 ;; 6854 *) 6855 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 6856 ;; 6857 esac 6858 else 6859 case $host_cpu in 6860 hppa*64*|ia64*) 6861 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 6862 ;; 6863 *) 6864 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 6865 ;; 6866 esac 6867 fi 6868 if test "$with_gnu_ld" = no; then 6869 case $host_cpu in 6870 hppa*64*) 6871 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 6872 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 6873 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 6874 _LT_AC_TAGVAR(hardcode_direct, $1)=no 6875 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6876 ;; 6877 ia64*) 6878 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6879 _LT_AC_TAGVAR(hardcode_direct, $1)=no 6880 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6881 6882 # hardcode_minus_L: Not really in the search PATH, 6883 # but as the default location of the library. 6884 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 6885 ;; 6886 *) 6887 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 6888 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 6889 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6890 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6891 6892 # hardcode_minus_L: Not really in the search PATH, 6893 # but as the default location of the library. 6894 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 6895 ;; 6896 esac 6897 fi 6898 ;; 6899 6900 irix5* | irix6* | nonstopux*) 6901 if test "$GCC" = yes; then 6902 _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' 6903 else 6904 _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' 6905 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' 6906 fi 6907 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6908 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 6909 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 6910 ;; 6911 6912 netbsd*) 6913 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6914 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 6915 else 6916 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 6917 fi 6918 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6919 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6920 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6921 ;; 6922 6923 newsos6) 6924 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6925 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6926 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6927 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 6928 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6929 ;; 6930 6931 openbsd*) 6932 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6933 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6934 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6935 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6936 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 6937 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6938 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6939 else 6940 case $host_os in 6941 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) 6942 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6943 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6944 ;; 6945 *) 6946 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6947 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6948 ;; 6949 esac 6950 fi 6951 ;; 6952 6953 os2*) 6954 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6955 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 6956 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 6957 _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' 6958 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 6959 ;; 6960 6961 osf3*) 6962 if test "$GCC" = yes; then 6963 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 6964 _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' 6965 else 6966 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 6967 _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' 6968 fi 6969 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6970 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 6971 ;; 6972 6973 osf4* | osf5*) # as osf3* with the addition of -msym flag 6974 if test "$GCC" = yes; then 6975 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 6976 _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' 6977 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6978 else 6979 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 6980 _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' 6981 _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~ 6982 $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' 6983 6984 # Both c and cxx compiler support -rpath directly 6985 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 6986 fi 6987 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 6988 ;; 6989 6990 sco3.2v5*) 6991 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6992 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6993 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 6994 runpath_var=LD_RUN_PATH 6995 hardcode_runpath_var=yes 6996 ;; 6997 6998 solaris*) 6999 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' 7000 if test "$GCC" = yes; then 7001 wlarc='${wl}' 7002 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7003 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7004 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 7005 else 7006 wlarc='' 7007 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7008 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7009 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7010 fi 7011 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7012 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 7013 case $host_os in 7014 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 7015 *) 7016 # The compiler driver will combine linker options so we 7017 # cannot just pass the convience library names through 7018 # without $wl, iff we do not link with $LD. 7019 # Luckily, gcc supports the same syntax we need for Sun Studio. 7020 # Supported since Solaris 2.6 (maybe 2.5.1?) 7021 case $wlarc in 7022 '') 7023 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; 7024 *) 7025 _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' ;; 7026 esac ;; 7027 esac 7028 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 7029 ;; 7030 7031 sunos4*) 7032 if test "x$host_vendor" = xsequent; then 7033 # Use $CC to link under sequent, because it throws in some extra .o 7034 # files that make .init and .fini sections work. 7035 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 7036 else 7037 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 7038 fi 7039 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7040 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 7041 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 7042 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 7043 ;; 7044 7045 sysv4) 7046 case $host_vendor in 7047 sni) 7048 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7049 _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? 7050 ;; 7051 siemens) 7052 ## LD is ld it makes a PLAMLIB 7053 ## CC just makes a GrossModule. 7054 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7055 _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' 7056 _LT_AC_TAGVAR(hardcode_direct, $1)=no 7057 ;; 7058 motorola) 7059 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7060 _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie 7061 ;; 7062 esac 7063 runpath_var='LD_RUN_PATH' 7064 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 7065 ;; 7066 7067 sysv4.3*) 7068 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7069 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 7070 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' 7071 ;; 7072 7073 sysv4*MP*) 7074 if test -d /usr/nec; then 7075 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7076 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 7077 runpath_var=LD_RUN_PATH 7078 hardcode_runpath_var=yes 7079 _LT_AC_TAGVAR(ld_shlibs, $1)=yes 7080 fi 7081 ;; 7082 7083 sysv4.2uw2*) 7084 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7085 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 7086 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no 7087 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 7088 hardcode_runpath_var=yes 7089 runpath_var=LD_RUN_PATH 7090 ;; 7091 7092 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) 7093 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text' 7094 if test "$GCC" = yes; then 7095 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7096 else 7097 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7098 fi 7099 runpath_var='LD_RUN_PATH' 7100 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 7101 ;; 7102 7103 sysv5*) 7104 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' 7105 # $CC -shared without GNU ld will not create a library from C++ 7106 # object files and a static libstdc++, better avoid it by now 7107 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7108 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7109 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7110 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 7111 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 7112 runpath_var='LD_RUN_PATH' 7113 ;; 7114 7115 uts4*) 7116 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7117 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7118 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 7119 ;; 7120 7121 *) 7122 _LT_AC_TAGVAR(ld_shlibs, $1)=no 7123 ;; 7124 esac 7125 fi 7126]) 7127AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) 7128test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 7129 7130variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 7131if test "$GCC" = yes; then 7132 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 7133fi 7134 7135# 7136# Do we need to explicitly link libc? 7137# 7138case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in 7139x|xyes) 7140 # Assume -lc should be added 7141 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 7142 7143 if test "$enable_shared" = yes && test "$GCC" = yes; then 7144 case $_LT_AC_TAGVAR(archive_cmds, $1) in 7145 *'~'*) 7146 # FIXME: we may have to deal with multi-command sequences. 7147 ;; 7148 '$CC '*) 7149 # Test whether the compiler implicitly links with -lc since on some 7150 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7151 # to ld, don't add -lc before -lgcc. 7152 AC_MSG_CHECKING([whether -lc should be explicitly linked in]) 7153 $rm conftest* 7154 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7155 7156 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 7157 soname=conftest 7158 lib=conftest 7159 libobjs=conftest.$ac_objext 7160 deplibs= 7161 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) 7162 compiler_flags=-v 7163 linker_flags=-v 7164 verstring= 7165 output_objdir=. 7166 libname=conftest 7167 lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) 7168 _LT_AC_TAGVAR(allow_undefined_flag, $1)= 7169 if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 7170 then 7171 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 7172 else 7173 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 7174 fi 7175 _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag 7176 else 7177 cat conftest.err 1>&5 7178 fi 7179 $rm conftest* 7180 AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)]) 7181 ;; 7182 esac 7183 fi 7184 ;; 7185esac 7186])# AC_LIBTOOL_PROG_LD_SHLIBS 7187 7188 7189# _LT_AC_FILE_LTDLL_C 7190# ------------------- 7191# Be careful that the start marker always follows a newline. 7192AC_DEFUN([_LT_AC_FILE_LTDLL_C], [ 7193# /* ltdll.c starts here */ 7194# #define WIN32_LEAN_AND_MEAN 7195# #include <windows.h> 7196# #undef WIN32_LEAN_AND_MEAN 7197# #include <stdio.h> 7198# 7199# #ifndef __CYGWIN__ 7200# # ifdef __CYGWIN32__ 7201# # define __CYGWIN__ __CYGWIN32__ 7202# # endif 7203# #endif 7204# 7205# #ifdef __cplusplus 7206# extern "C" { 7207# #endif 7208# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); 7209# #ifdef __cplusplus 7210# } 7211# #endif 7212# 7213# #ifdef __CYGWIN__ 7214# #include <cygwin/cygwin_dll.h> 7215# DECLARE_CYGWIN_DLL( DllMain ); 7216# #endif 7217# HINSTANCE __hDllInstance_base; 7218# 7219# BOOL APIENTRY 7220# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) 7221# { 7222# __hDllInstance_base = hInst; 7223# return TRUE; 7224# } 7225# /* ltdll.c ends here */ 7226])# _LT_AC_FILE_LTDLL_C 7227 7228 7229# _LT_AC_TAGVAR(VARNAME, [TAGNAME]) 7230# --------------------------------- 7231AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])]) 7232 7233 7234# old names 7235AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) 7236AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) 7237AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) 7238AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) 7239AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) 7240AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) 7241AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) 7242 7243# This is just to silence aclocal about the macro not being used 7244ifelse([AC_DISABLE_FAST_INSTALL]) 7245 7246AC_DEFUN([LT_AC_PROG_GCJ], 7247[AC_CHECK_TOOL(GCJ, gcj, no) 7248 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" 7249 AC_SUBST(GCJFLAGS) 7250]) 7251 7252AC_DEFUN([LT_AC_PROG_RC], 7253[AC_CHECK_TOOL(RC, windres, no) 7254]) 7255 7256# NOTE: This macro has been submitted for inclusion into # 7257# GNU Autoconf as AC_PROG_SED. When it is available in # 7258# a released version of Autoconf we should remove this # 7259# macro and use it instead. # 7260# LT_AC_PROG_SED 7261# -------------- 7262# Check for a fully-functional sed program, that truncates 7263# as few characters as possible. Prefer GNU sed if found. 7264AC_DEFUN([LT_AC_PROG_SED], 7265[AC_MSG_CHECKING([for a sed that does not truncate output]) 7266AC_CACHE_VAL(lt_cv_path_SED, 7267[# Loop through the user's path and test for sed and gsed. 7268# Then use that list of sed's as ones to test for truncation. 7269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7270for as_dir in $PATH 7271do 7272 IFS=$as_save_IFS 7273 test -z "$as_dir" && as_dir=. 7274 for lt_ac_prog in sed gsed; do 7275 for ac_exec_ext in '' $ac_executable_extensions; do 7276 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 7277 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 7278 fi 7279 done 7280 done 7281done 7282lt_ac_max=0 7283lt_ac_count=0 7284# Add /usr/xpg4/bin/sed as it is typically found on Solaris 7285# along with /bin/sed that truncates output. 7286for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 7287 test ! -f $lt_ac_sed && continue 7288 cat /dev/null > conftest.in 7289 lt_ac_count=0 7290 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 7291 # Check for GNU sed and select it if it is found. 7292 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 7293 lt_cv_path_SED=$lt_ac_sed 7294 break 7295 fi 7296 while true; do 7297 cat conftest.in conftest.in >conftest.tmp 7298 mv conftest.tmp conftest.in 7299 cp conftest.in conftest.nl 7300 echo >>conftest.nl 7301 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 7302 cmp -s conftest.out conftest.nl || break 7303 # 10000 chars as input seems more than enough 7304 test $lt_ac_count -gt 10 && break 7305 lt_ac_count=`expr $lt_ac_count + 1` 7306 if test $lt_ac_count -gt $lt_ac_max; then 7307 lt_ac_max=$lt_ac_count 7308 lt_cv_path_SED=$lt_ac_sed 7309 fi 7310 done 7311done 7312]) 7313SED=$lt_cv_path_SED 7314AC_MSG_RESULT([$SED]) 7315]) 7316 7317# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. 7318# 7319# This file is free software; the Free Software Foundation 7320# gives unlimited permission to copy and/or distribute it, 7321# with or without modifications, as long as this notice is preserved. 7322 7323# AM_AUTOMAKE_VERSION(VERSION) 7324# ---------------------------- 7325# Automake X.Y traces this macro to ensure aclocal.m4 has been 7326# generated from the m4 files accompanying Automake X.Y. 7327AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"]) 7328 7329# AM_SET_CURRENT_AUTOMAKE_VERSION 7330# ------------------------------- 7331# Call AM_AUTOMAKE_VERSION so it can be traced. 7332# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. 7333AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 7334 [AM_AUTOMAKE_VERSION([1.9.6])]) 7335 7336# AM_AUX_DIR_EXPAND -*- Autoconf -*- 7337 7338# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 7339# 7340# This file is free software; the Free Software Foundation 7341# gives unlimited permission to copy and/or distribute it, 7342# with or without modifications, as long as this notice is preserved. 7343 7344# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 7345# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 7346# `$srcdir', `$srcdir/..', or `$srcdir/../..'. 7347# 7348# Of course, Automake must honor this variable whenever it calls a 7349# tool from the auxiliary directory. The problem is that $srcdir (and 7350# therefore $ac_aux_dir as well) can be either absolute or relative, 7351# depending on how configure is run. This is pretty annoying, since 7352# it makes $ac_aux_dir quite unusable in subdirectories: in the top 7353# source directory, any form will work fine, but in subdirectories a 7354# relative path needs to be adjusted first. 7355# 7356# $ac_aux_dir/missing 7357# fails when called from a subdirectory if $ac_aux_dir is relative 7358# $top_srcdir/$ac_aux_dir/missing 7359# fails if $ac_aux_dir is absolute, 7360# fails when called from a subdirectory in a VPATH build with 7361# a relative $ac_aux_dir 7362# 7363# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 7364# are both prefixed by $srcdir. In an in-source build this is usually 7365# harmless because $srcdir is `.', but things will broke when you 7366# start a VPATH build or use an absolute $srcdir. 7367# 7368# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 7369# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 7370# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 7371# and then we would define $MISSING as 7372# MISSING="\${SHELL} $am_aux_dir/missing" 7373# This will work as long as MISSING is not called from configure, because 7374# unfortunately $(top_srcdir) has no meaning in configure. 7375# However there are other variables, like CC, which are often used in 7376# configure, and could therefore not use this "fixed" $ac_aux_dir. 7377# 7378# Another solution, used here, is to always expand $ac_aux_dir to an 7379# absolute PATH. The drawback is that using absolute paths prevent a 7380# configured tree to be moved without reconfiguration. 7381 7382AC_DEFUN([AM_AUX_DIR_EXPAND], 7383[dnl Rely on autoconf to set up CDPATH properly. 7384AC_PREREQ([2.50])dnl 7385# expand $ac_aux_dir to an absolute path 7386am_aux_dir=`cd $ac_aux_dir && pwd` 7387]) 7388 7389# AM_CONDITIONAL -*- Autoconf -*- 7390 7391# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005 7392# Free Software Foundation, Inc. 7393# 7394# This file is free software; the Free Software Foundation 7395# gives unlimited permission to copy and/or distribute it, 7396# with or without modifications, as long as this notice is preserved. 7397 7398# serial 7 7399 7400# AM_CONDITIONAL(NAME, SHELL-CONDITION) 7401# ------------------------------------- 7402# Define a conditional. 7403AC_DEFUN([AM_CONDITIONAL], 7404[AC_PREREQ(2.52)dnl 7405 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 7406 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 7407AC_SUBST([$1_TRUE]) 7408AC_SUBST([$1_FALSE]) 7409if $2; then 7410 $1_TRUE= 7411 $1_FALSE='#' 7412else 7413 $1_TRUE='#' 7414 $1_FALSE= 7415fi 7416AC_CONFIG_COMMANDS_PRE( 7417[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 7418 AC_MSG_ERROR([[conditional "$1" was never defined. 7419Usually this means the macro was only invoked conditionally.]]) 7420fi])]) 7421 7422 7423# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 7424# Free Software Foundation, Inc. 7425# 7426# This file is free software; the Free Software Foundation 7427# gives unlimited permission to copy and/or distribute it, 7428# with or without modifications, as long as this notice is preserved. 7429 7430# serial 8 7431 7432# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 7433# written in clear, in which case automake, when reading aclocal.m4, 7434# will think it sees a *use*, and therefore will trigger all it's 7435# C support machinery. Also note that it means that autoscan, seeing 7436# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 7437 7438 7439# _AM_DEPENDENCIES(NAME) 7440# ---------------------- 7441# See how the compiler implements dependency checking. 7442# NAME is "CC", "CXX", "GCJ", or "OBJC". 7443# We try a few techniques and use that to set a single cache variable. 7444# 7445# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 7446# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 7447# dependency, and given that the user is not expected to run this macro, 7448# just rely on AC_PROG_CC. 7449AC_DEFUN([_AM_DEPENDENCIES], 7450[AC_REQUIRE([AM_SET_DEPDIR])dnl 7451AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 7452AC_REQUIRE([AM_MAKE_INCLUDE])dnl 7453AC_REQUIRE([AM_DEP_TRACK])dnl 7454 7455ifelse([$1], CC, [depcc="$CC" am_compiler_list=], 7456 [$1], CXX, [depcc="$CXX" am_compiler_list=], 7457 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 7458 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 7459 [depcc="$$1" am_compiler_list=]) 7460 7461AC_CACHE_CHECK([dependency style of $depcc], 7462 [am_cv_$1_dependencies_compiler_type], 7463[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 7464 # We make a subdir and do the tests there. Otherwise we can end up 7465 # making bogus files that we don't know about and never remove. For 7466 # instance it was reported that on HP-UX the gcc test will end up 7467 # making a dummy file named `D' -- because `-MD' means `put the output 7468 # in D'. 7469 mkdir conftest.dir 7470 # Copy depcomp to subdir because otherwise we won't find it if we're 7471 # using a relative directory. 7472 cp "$am_depcomp" conftest.dir 7473 cd conftest.dir 7474 # We will build objects and dependencies in a subdirectory because 7475 # it helps to detect inapplicable dependency modes. For instance 7476 # both Tru64's cc and ICC support -MD to output dependencies as a 7477 # side effect of compilation, but ICC will put the dependencies in 7478 # the current directory while Tru64 will put them in the object 7479 # directory. 7480 mkdir sub 7481 7482 am_cv_$1_dependencies_compiler_type=none 7483 if test "$am_compiler_list" = ""; then 7484 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 7485 fi 7486 for depmode in $am_compiler_list; do 7487 # Setup a source with many dependencies, because some compilers 7488 # like to wrap large dependency lists on column 80 (with \), and 7489 # we should not choose a depcomp mode which is confused by this. 7490 # 7491 # We need to recreate these files for each test, as the compiler may 7492 # overwrite some of them when testing with obscure command lines. 7493 # This happens at least with the AIX C compiler. 7494 : > sub/conftest.c 7495 for i in 1 2 3 4 5 6; do 7496 echo '#include "conftst'$i'.h"' >> sub/conftest.c 7497 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 7498 # Solaris 8's {/usr,}/bin/sh. 7499 touch sub/conftst$i.h 7500 done 7501 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 7502 7503 case $depmode in 7504 nosideeffect) 7505 # after this tag, mechanisms are not by side-effect, so they'll 7506 # only be used when explicitly requested 7507 if test "x$enable_dependency_tracking" = xyes; then 7508 continue 7509 else 7510 break 7511 fi 7512 ;; 7513 none) break ;; 7514 esac 7515 # We check with `-c' and `-o' for the sake of the "dashmstdout" 7516 # mode. It turns out that the SunPro C++ compiler does not properly 7517 # handle `-M -o', and we need to detect this. 7518 if depmode=$depmode \ 7519 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 7520 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 7521 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 7522 >/dev/null 2>conftest.err && 7523 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 7524 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 7525 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 7526 # icc doesn't choke on unknown options, it will just issue warnings 7527 # or remarks (even with -Werror). So we grep stderr for any message 7528 # that says an option was ignored or not supported. 7529 # When given -MP, icc 7.0 and 7.1 complain thusly: 7530 # icc: Command line warning: ignoring option '-M'; no argument required 7531 # The diagnosis changed in icc 8.0: 7532 # icc: Command line remark: option '-MP' not supported 7533 if (grep 'ignoring option' conftest.err || 7534 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 7535 am_cv_$1_dependencies_compiler_type=$depmode 7536 break 7537 fi 7538 fi 7539 done 7540 7541 cd .. 7542 rm -rf conftest.dir 7543else 7544 am_cv_$1_dependencies_compiler_type=none 7545fi 7546]) 7547AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 7548AM_CONDITIONAL([am__fastdep$1], [ 7549 test "x$enable_dependency_tracking" != xno \ 7550 && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 7551]) 7552 7553 7554# AM_SET_DEPDIR 7555# ------------- 7556# Choose a directory name for dependency files. 7557# This macro is AC_REQUIREd in _AM_DEPENDENCIES 7558AC_DEFUN([AM_SET_DEPDIR], 7559[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 7560AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 7561]) 7562 7563 7564# AM_DEP_TRACK 7565# ------------ 7566AC_DEFUN([AM_DEP_TRACK], 7567[AC_ARG_ENABLE(dependency-tracking, 7568[ --disable-dependency-tracking speeds up one-time build 7569 --enable-dependency-tracking do not reject slow dependency extractors]) 7570if test "x$enable_dependency_tracking" != xno; then 7571 am_depcomp="$ac_aux_dir/depcomp" 7572 AMDEPBACKSLASH='\' 7573fi 7574AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 7575AC_SUBST([AMDEPBACKSLASH]) 7576]) 7577 7578# Generate code to set up dependency tracking. -*- Autoconf -*- 7579 7580# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 7581# Free Software Foundation, Inc. 7582# 7583# This file is free software; the Free Software Foundation 7584# gives unlimited permission to copy and/or distribute it, 7585# with or without modifications, as long as this notice is preserved. 7586 7587#serial 3 7588 7589# _AM_OUTPUT_DEPENDENCY_COMMANDS 7590# ------------------------------ 7591AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 7592[for mf in $CONFIG_FILES; do 7593 # Strip MF so we end up with the name of the file. 7594 mf=`echo "$mf" | sed -e 's/:.*$//'` 7595 # Check whether this is an Automake generated Makefile or not. 7596 # We used to match only the files named `Makefile.in', but 7597 # some people rename them; so instead we look at the file content. 7598 # Grep'ing the first line is not enough: some people post-process 7599 # each Makefile.in and add a new line on top of each file to say so. 7600 # So let's grep whole file. 7601 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 7602 dirpart=`AS_DIRNAME("$mf")` 7603 else 7604 continue 7605 fi 7606 # Extract the definition of DEPDIR, am__include, and am__quote 7607 # from the Makefile without running `make'. 7608 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 7609 test -z "$DEPDIR" && continue 7610 am__include=`sed -n 's/^am__include = //p' < "$mf"` 7611 test -z "am__include" && continue 7612 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 7613 # When using ansi2knr, U may be empty or an underscore; expand it 7614 U=`sed -n 's/^U = //p' < "$mf"` 7615 # Find all dependency output files, they are included files with 7616 # $(DEPDIR) in their names. We invoke sed twice because it is the 7617 # simplest approach to changing $(DEPDIR) to its actual value in the 7618 # expansion. 7619 for file in `sed -n " 7620 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 7621 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 7622 # Make sure the directory exists. 7623 test -f "$dirpart/$file" && continue 7624 fdir=`AS_DIRNAME(["$file"])` 7625 AS_MKDIR_P([$dirpart/$fdir]) 7626 # echo "creating $dirpart/$file" 7627 echo '# dummy' > "$dirpart/$file" 7628 done 7629done 7630])# _AM_OUTPUT_DEPENDENCY_COMMANDS 7631 7632 7633# AM_OUTPUT_DEPENDENCY_COMMANDS 7634# ----------------------------- 7635# This macro should only be invoked once -- use via AC_REQUIRE. 7636# 7637# This code is only required when automatic dependency tracking 7638# is enabled. FIXME. This creates each `.P' file that we will 7639# need in order to bootstrap the dependency handling code. 7640AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 7641[AC_CONFIG_COMMANDS([depfiles], 7642 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 7643 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 7644]) 7645 7646# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 7647# Free Software Foundation, Inc. 7648# 7649# This file is free software; the Free Software Foundation 7650# gives unlimited permission to copy and/or distribute it, 7651# with or without modifications, as long as this notice is preserved. 7652 7653# serial 8 7654 7655# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. 7656AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) 7657 7658# Do all the work for Automake. -*- Autoconf -*- 7659 7660# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 7661# Free Software Foundation, Inc. 7662# 7663# This file is free software; the Free Software Foundation 7664# gives unlimited permission to copy and/or distribute it, 7665# with or without modifications, as long as this notice is preserved. 7666 7667# serial 12 7668 7669# This macro actually does too much. Some checks are only needed if 7670# your package does certain things. But this isn't really a big deal. 7671 7672# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 7673# AM_INIT_AUTOMAKE([OPTIONS]) 7674# ----------------------------------------------- 7675# The call with PACKAGE and VERSION arguments is the old style 7676# call (pre autoconf-2.50), which is being phased out. PACKAGE 7677# and VERSION should now be passed to AC_INIT and removed from 7678# the call to AM_INIT_AUTOMAKE. 7679# We support both call styles for the transition. After 7680# the next Automake release, Autoconf can make the AC_INIT 7681# arguments mandatory, and then we can depend on a new Autoconf 7682# release and drop the old call support. 7683AC_DEFUN([AM_INIT_AUTOMAKE], 7684[AC_PREREQ([2.58])dnl 7685dnl Autoconf wants to disallow AM_ names. We explicitly allow 7686dnl the ones we care about. 7687m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 7688AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 7689AC_REQUIRE([AC_PROG_INSTALL])dnl 7690# test to see if srcdir already configured 7691if test "`cd $srcdir && pwd`" != "`pwd`" && 7692 test -f $srcdir/config.status; then 7693 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 7694fi 7695 7696# test whether we have cygpath 7697if test -z "$CYGPATH_W"; then 7698 if (cygpath --version) >/dev/null 2>/dev/null; then 7699 CYGPATH_W='cygpath -w' 7700 else 7701 CYGPATH_W=echo 7702 fi 7703fi 7704AC_SUBST([CYGPATH_W]) 7705 7706# Define the identity of the package. 7707dnl Distinguish between old-style and new-style calls. 7708m4_ifval([$2], 7709[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 7710 AC_SUBST([PACKAGE], [$1])dnl 7711 AC_SUBST([VERSION], [$2])], 7712[_AM_SET_OPTIONS([$1])dnl 7713 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 7714 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 7715 7716_AM_IF_OPTION([no-define],, 7717[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 7718 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl 7719 7720# Some tools Automake needs. 7721AC_REQUIRE([AM_SANITY_CHECK])dnl 7722AC_REQUIRE([AC_ARG_PROGRAM])dnl 7723AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) 7724AM_MISSING_PROG(AUTOCONF, autoconf) 7725AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) 7726AM_MISSING_PROG(AUTOHEADER, autoheader) 7727AM_MISSING_PROG(MAKEINFO, makeinfo) 7728AM_PROG_INSTALL_SH 7729AM_PROG_INSTALL_STRIP 7730AC_REQUIRE([AM_PROG_MKDIR_P])dnl 7731# We need awk for the "check" target. The system "awk" is bad on 7732# some platforms. 7733AC_REQUIRE([AC_PROG_AWK])dnl 7734AC_REQUIRE([AC_PROG_MAKE_SET])dnl 7735AC_REQUIRE([AM_SET_LEADING_DOT])dnl 7736_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 7737 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 7738 [_AM_PROG_TAR([v7])])]) 7739_AM_IF_OPTION([no-dependencies],, 7740[AC_PROVIDE_IFELSE([AC_PROG_CC], 7741 [_AM_DEPENDENCIES(CC)], 7742 [define([AC_PROG_CC], 7743 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl 7744AC_PROVIDE_IFELSE([AC_PROG_CXX], 7745 [_AM_DEPENDENCIES(CXX)], 7746 [define([AC_PROG_CXX], 7747 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl 7748]) 7749]) 7750 7751 7752# When config.status generates a header, we must update the stamp-h file. 7753# This file resides in the same directory as the config header 7754# that is generated. The stamp files are numbered to have different names. 7755 7756# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 7757# loop where config.status creates the headers, so we can generate 7758# our stamp files there. 7759AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 7760[# Compute $1's index in $config_headers. 7761_am_stamp_count=1 7762for _am_header in $config_headers :; do 7763 case $_am_header in 7764 $1 | $1:* ) 7765 break ;; 7766 * ) 7767 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 7768 esac 7769done 7770echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) 7771 7772# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 7773# 7774# This file is free software; the Free Software Foundation 7775# gives unlimited permission to copy and/or distribute it, 7776# with or without modifications, as long as this notice is preserved. 7777 7778# AM_PROG_INSTALL_SH 7779# ------------------ 7780# Define $install_sh. 7781AC_DEFUN([AM_PROG_INSTALL_SH], 7782[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 7783install_sh=${install_sh-"$am_aux_dir/install-sh"} 7784AC_SUBST(install_sh)]) 7785 7786# Copyright (C) 2003, 2005 Free Software Foundation, Inc. 7787# 7788# This file is free software; the Free Software Foundation 7789# gives unlimited permission to copy and/or distribute it, 7790# with or without modifications, as long as this notice is preserved. 7791 7792# serial 2 7793 7794# Check whether the underlying file-system supports filenames 7795# with a leading dot. For instance MS-DOS doesn't. 7796AC_DEFUN([AM_SET_LEADING_DOT], 7797[rm -rf .tst 2>/dev/null 7798mkdir .tst 2>/dev/null 7799if test -d .tst; then 7800 am__leading_dot=. 7801else 7802 am__leading_dot=_ 7803fi 7804rmdir .tst 2>/dev/null 7805AC_SUBST([am__leading_dot])]) 7806 7807# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- 7808# From Jim Meyering 7809 7810# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005 7811# Free Software Foundation, Inc. 7812# 7813# This file is free software; the Free Software Foundation 7814# gives unlimited permission to copy and/or distribute it, 7815# with or without modifications, as long as this notice is preserved. 7816 7817# serial 4 7818 7819AC_DEFUN([AM_MAINTAINER_MODE], 7820[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) 7821 dnl maintainer-mode is disabled by default 7822 AC_ARG_ENABLE(maintainer-mode, 7823[ --enable-maintainer-mode enable make rules and dependencies not useful 7824 (and sometimes confusing) to the casual installer], 7825 USE_MAINTAINER_MODE=$enableval, 7826 USE_MAINTAINER_MODE=no) 7827 AC_MSG_RESULT([$USE_MAINTAINER_MODE]) 7828 AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes]) 7829 MAINT=$MAINTAINER_MODE_TRUE 7830 AC_SUBST(MAINT)dnl 7831] 7832) 7833 7834AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) 7835 7836# Check to see how 'make' treats includes. -*- Autoconf -*- 7837 7838# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. 7839# 7840# This file is free software; the Free Software Foundation 7841# gives unlimited permission to copy and/or distribute it, 7842# with or without modifications, as long as this notice is preserved. 7843 7844# serial 3 7845 7846# AM_MAKE_INCLUDE() 7847# ----------------- 7848# Check to see how make treats includes. 7849AC_DEFUN([AM_MAKE_INCLUDE], 7850[am_make=${MAKE-make} 7851cat > confinc << 'END' 7852am__doit: 7853 @echo done 7854.PHONY: am__doit 7855END 7856# If we don't find an include directive, just comment out the code. 7857AC_MSG_CHECKING([for style of include used by $am_make]) 7858am__include="#" 7859am__quote= 7860_am_result=none 7861# First try GNU make style include. 7862echo "include confinc" > confmf 7863# We grep out `Entering directory' and `Leaving directory' 7864# messages which can occur if `w' ends up in MAKEFLAGS. 7865# In particular we don't look at `^make:' because GNU make might 7866# be invoked under some other name (usually "gmake"), in which 7867# case it prints its new name instead of `make'. 7868if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 7869 am__include=include 7870 am__quote= 7871 _am_result=GNU 7872fi 7873# Now try BSD make style include. 7874if test "$am__include" = "#"; then 7875 echo '.include "confinc"' > confmf 7876 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 7877 am__include=.include 7878 am__quote="\"" 7879 _am_result=BSD 7880 fi 7881fi 7882AC_SUBST([am__include]) 7883AC_SUBST([am__quote]) 7884AC_MSG_RESULT([$_am_result]) 7885rm -f confinc confmf 7886]) 7887 7888# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 7889 7890# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005 7891# Free Software Foundation, Inc. 7892# 7893# This file is free software; the Free Software Foundation 7894# gives unlimited permission to copy and/or distribute it, 7895# with or without modifications, as long as this notice is preserved. 7896 7897# serial 4 7898 7899# AM_MISSING_PROG(NAME, PROGRAM) 7900# ------------------------------ 7901AC_DEFUN([AM_MISSING_PROG], 7902[AC_REQUIRE([AM_MISSING_HAS_RUN]) 7903$1=${$1-"${am_missing_run}$2"} 7904AC_SUBST($1)]) 7905 7906 7907# AM_MISSING_HAS_RUN 7908# ------------------ 7909# Define MISSING if not defined so far and test if it supports --run. 7910# If it does, set am_missing_run to use it, otherwise, to nothing. 7911AC_DEFUN([AM_MISSING_HAS_RUN], 7912[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 7913test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 7914# Use eval to expand $SHELL 7915if eval "$MISSING --run true"; then 7916 am_missing_run="$MISSING --run " 7917else 7918 am_missing_run= 7919 AC_MSG_WARN([`missing' script is too old or missing]) 7920fi 7921]) 7922 7923# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. 7924# 7925# This file is free software; the Free Software Foundation 7926# gives unlimited permission to copy and/or distribute it, 7927# with or without modifications, as long as this notice is preserved. 7928 7929# AM_PROG_MKDIR_P 7930# --------------- 7931# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. 7932# 7933# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories 7934# created by `make install' are always world readable, even if the 7935# installer happens to have an overly restrictive umask (e.g. 077). 7936# This was a mistake. There are at least two reasons why we must not 7937# use `-m 0755': 7938# - it causes special bits like SGID to be ignored, 7939# - it may be too restrictive (some setups expect 775 directories). 7940# 7941# Do not use -m 0755 and let people choose whatever they expect by 7942# setting umask. 7943# 7944# We cannot accept any implementation of `mkdir' that recognizes `-p'. 7945# Some implementations (such as Solaris 8's) are not thread-safe: if a 7946# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c' 7947# concurrently, both version can detect that a/ is missing, but only 7948# one can create it and the other will error out. Consequently we 7949# restrict ourselves to GNU make (using the --version option ensures 7950# this.) 7951AC_DEFUN([AM_PROG_MKDIR_P], 7952[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 7953 # We used to keeping the `.' as first argument, in order to 7954 # allow $(mkdir_p) to be used without argument. As in 7955 # $(mkdir_p) $(somedir) 7956 # where $(somedir) is conditionally defined. However this is wrong 7957 # for two reasons: 7958 # 1. if the package is installed by a user who cannot write `.' 7959 # make install will fail, 7960 # 2. the above comment should most certainly read 7961 # $(mkdir_p) $(DESTDIR)$(somedir) 7962 # so it does not work when $(somedir) is undefined and 7963 # $(DESTDIR) is not. 7964 # To support the latter case, we have to write 7965 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 7966 # so the `.' trick is pointless. 7967 mkdir_p='mkdir -p --' 7968else 7969 # On NextStep and OpenStep, the `mkdir' command does not 7970 # recognize any option. It will interpret all options as 7971 # directories to create, and then abort because `.' already 7972 # exists. 7973 for d in ./-p ./--version; 7974 do 7975 test -d $d && rmdir $d 7976 done 7977 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 7978 if test -f "$ac_aux_dir/mkinstalldirs"; then 7979 mkdir_p='$(mkinstalldirs)' 7980 else 7981 mkdir_p='$(install_sh) -d' 7982 fi 7983fi 7984AC_SUBST([mkdir_p])]) 7985 7986# Helper functions for option handling. -*- Autoconf -*- 7987 7988# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. 7989# 7990# This file is free software; the Free Software Foundation 7991# gives unlimited permission to copy and/or distribute it, 7992# with or without modifications, as long as this notice is preserved. 7993 7994# serial 3 7995 7996# _AM_MANGLE_OPTION(NAME) 7997# ----------------------- 7998AC_DEFUN([_AM_MANGLE_OPTION], 7999[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 8000 8001# _AM_SET_OPTION(NAME) 8002# ------------------------------ 8003# Set option NAME. Presently that only means defining a flag for this option. 8004AC_DEFUN([_AM_SET_OPTION], 8005[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) 8006 8007# _AM_SET_OPTIONS(OPTIONS) 8008# ---------------------------------- 8009# OPTIONS is a space-separated list of Automake options. 8010AC_DEFUN([_AM_SET_OPTIONS], 8011[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 8012 8013# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 8014# ------------------------------------------- 8015# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 8016AC_DEFUN([_AM_IF_OPTION], 8017[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 8018 8019# Check to make sure that the build environment is sane. -*- Autoconf -*- 8020 8021# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 8022# Free Software Foundation, Inc. 8023# 8024# This file is free software; the Free Software Foundation 8025# gives unlimited permission to copy and/or distribute it, 8026# with or without modifications, as long as this notice is preserved. 8027 8028# serial 4 8029 8030# AM_SANITY_CHECK 8031# --------------- 8032AC_DEFUN([AM_SANITY_CHECK], 8033[AC_MSG_CHECKING([whether build environment is sane]) 8034# Just in case 8035sleep 1 8036echo timestamp > conftest.file 8037# Do `set' in a subshell so we don't clobber the current shell's 8038# arguments. Must try -L first in case configure is actually a 8039# symlink; some systems play weird games with the mod time of symlinks 8040# (eg FreeBSD returns the mod time of the symlink's containing 8041# directory). 8042if ( 8043 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 8044 if test "$[*]" = "X"; then 8045 # -L didn't work. 8046 set X `ls -t $srcdir/configure conftest.file` 8047 fi 8048 rm -f conftest.file 8049 if test "$[*]" != "X $srcdir/configure conftest.file" \ 8050 && test "$[*]" != "X conftest.file $srcdir/configure"; then 8051 8052 # If neither matched, then we have a broken ls. This can happen 8053 # if, for instance, CONFIG_SHELL is bash and it inherits a 8054 # broken ls alias from the environment. This has actually 8055 # happened. Such a system could not be considered "sane". 8056 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 8057alias in your environment]) 8058 fi 8059 8060 test "$[2]" = conftest.file 8061 ) 8062then 8063 # Ok. 8064 : 8065else 8066 AC_MSG_ERROR([newly created file is older than distributed files! 8067Check your system clock]) 8068fi 8069AC_MSG_RESULT(yes)]) 8070 8071# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 8072# 8073# This file is free software; the Free Software Foundation 8074# gives unlimited permission to copy and/or distribute it, 8075# with or without modifications, as long as this notice is preserved. 8076 8077# AM_PROG_INSTALL_STRIP 8078# --------------------- 8079# One issue with vendor `install' (even GNU) is that you can't 8080# specify the program used to strip binaries. This is especially 8081# annoying in cross-compiling environments, where the build's strip 8082# is unlikely to handle the host's binaries. 8083# Fortunately install-sh will honor a STRIPPROG variable, so we 8084# always use install-sh in `make install-strip', and initialize 8085# STRIPPROG with the value of the STRIP variable (set by the user). 8086AC_DEFUN([AM_PROG_INSTALL_STRIP], 8087[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 8088# Installed binaries are usually stripped using `strip' when the user 8089# run `make install-strip'. However `strip' might not be the right 8090# tool to use in cross-compilation environments, therefore Automake 8091# will honor the `STRIP' environment variable to overrule this program. 8092dnl Don't test for $cross_compiling = yes, because it might be `maybe'. 8093if test "$cross_compiling" != no; then 8094 AC_CHECK_TOOL([STRIP], [strip], :) 8095fi 8096INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 8097AC_SUBST([INSTALL_STRIP_PROGRAM])]) 8098 8099# Check how to create a tarball. -*- Autoconf -*- 8100 8101# Copyright (C) 2004, 2005 Free Software Foundation, Inc. 8102# 8103# This file is free software; the Free Software Foundation 8104# gives unlimited permission to copy and/or distribute it, 8105# with or without modifications, as long as this notice is preserved. 8106 8107# serial 2 8108 8109# _AM_PROG_TAR(FORMAT) 8110# -------------------- 8111# Check how to create a tarball in format FORMAT. 8112# FORMAT should be one of `v7', `ustar', or `pax'. 8113# 8114# Substitute a variable $(am__tar) that is a command 8115# writing to stdout a FORMAT-tarball containing the directory 8116# $tardir. 8117# tardir=directory && $(am__tar) > result.tar 8118# 8119# Substitute a variable $(am__untar) that extract such 8120# a tarball read from stdin. 8121# $(am__untar) < result.tar 8122AC_DEFUN([_AM_PROG_TAR], 8123[# Always define AMTAR for backward compatibility. 8124AM_MISSING_PROG([AMTAR], [tar]) 8125m4_if([$1], [v7], 8126 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], 8127 [m4_case([$1], [ustar],, [pax],, 8128 [m4_fatal([Unknown tar format])]) 8129AC_MSG_CHECKING([how to create a $1 tar archive]) 8130# Loop over all known methods to create a tar archive until one works. 8131_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 8132_am_tools=${am_cv_prog_tar_$1-$_am_tools} 8133# Do not fold the above two line into one, because Tru64 sh and 8134# Solaris sh will not grok spaces in the rhs of `-'. 8135for _am_tool in $_am_tools 8136do 8137 case $_am_tool in 8138 gnutar) 8139 for _am_tar in tar gnutar gtar; 8140 do 8141 AM_RUN_LOG([$_am_tar --version]) && break 8142 done 8143 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 8144 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 8145 am__untar="$_am_tar -xf -" 8146 ;; 8147 plaintar) 8148 # Must skip GNU tar: if it does not support --format= it doesn't create 8149 # ustar tarball either. 8150 (tar --version) >/dev/null 2>&1 && continue 8151 am__tar='tar chf - "$$tardir"' 8152 am__tar_='tar chf - "$tardir"' 8153 am__untar='tar xf -' 8154 ;; 8155 pax) 8156 am__tar='pax -L -x $1 -w "$$tardir"' 8157 am__tar_='pax -L -x $1 -w "$tardir"' 8158 am__untar='pax -r' 8159 ;; 8160 cpio) 8161 am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 8162 am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 8163 am__untar='cpio -i -H $1 -d' 8164 ;; 8165 none) 8166 am__tar=false 8167 am__tar_=false 8168 am__untar=false 8169 ;; 8170 esac 8171 8172 # If the value was cached, stop now. We just wanted to have am__tar 8173 # and am__untar set. 8174 test -n "${am_cv_prog_tar_$1}" && break 8175 8176 # tar/untar a dummy directory, and stop if the command works 8177 rm -rf conftest.dir 8178 mkdir conftest.dir 8179 echo GrepMe > conftest.dir/file 8180 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 8181 rm -rf conftest.dir 8182 if test -s conftest.tar; then 8183 AM_RUN_LOG([$am__untar <conftest.tar]) 8184 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 8185 fi 8186done 8187rm -rf conftest.dir 8188 8189AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 8190AC_MSG_RESULT([$am_cv_prog_tar_$1])]) 8191AC_SUBST([am__tar]) 8192AC_SUBST([am__untar]) 8193]) # _AM_PROG_TAR 8194 8195