1# generated automatically by aclocal 1.11.1 -*- Autoconf -*- 2 3# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 4# 2005, 2006, 2007, 2008, 2009 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 14m4_ifndef([AC_AUTOCONF_VERSION], 15 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 16m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.67],, 17[m4_warning([this file was generated for autoconf 2.67. 18You have another version of autoconf. It may work, but is not guaranteed to. 19If you have problems, you may need to regenerate the build system entirely. 20To do so, use the procedure documented by the package, typically `autoreconf'.])]) 21 22# gettext.m4 serial 63 (gettext-0.18) 23dnl Copyright (C) 1995-2010 Free Software Foundation, Inc. 24dnl This file is free software; the Free Software Foundation 25dnl gives unlimited permission to copy and/or distribute it, 26dnl with or without modifications, as long as this notice is preserved. 27dnl 28dnl This file can can be used in projects which are not available under 29dnl the GNU General Public License or the GNU Library General Public 30dnl License but which still want to provide support for the GNU gettext 31dnl functionality. 32dnl Please note that the actual code of the GNU gettext library is covered 33dnl by the GNU Library General Public License, and the rest of the GNU 34dnl gettext package package is covered by the GNU General Public License. 35dnl They are *not* in the public domain. 36 37dnl Authors: 38dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. 39dnl Bruno Haible <haible@clisp.cons.org>, 2000-2006, 2008-2010. 40 41dnl Macro to add for using GNU gettext. 42 43dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]). 44dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The 45dnl default (if it is not specified or empty) is 'no-libtool'. 46dnl INTLSYMBOL should be 'external' for packages with no intl directory, 47dnl and 'no-libtool' or 'use-libtool' for packages with an intl directory. 48dnl If INTLSYMBOL is 'use-libtool', then a libtool library 49dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static, 50dnl depending on --{enable,disable}-{shared,static} and on the presence of 51dnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library 52dnl $(top_builddir)/intl/libintl.a will be created. 53dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext 54dnl implementations (in libc or libintl) without the ngettext() function 55dnl will be ignored. If NEEDSYMBOL is specified and is 56dnl 'need-formatstring-macros', then GNU gettext implementations that don't 57dnl support the ISO C 99 <inttypes.h> formatstring macros will be ignored. 58dnl INTLDIR is used to find the intl libraries. If empty, 59dnl the value `$(top_builddir)/intl/' is used. 60dnl 61dnl The result of the configuration is one of three cases: 62dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled 63dnl and used. 64dnl Catalog format: GNU --> install in $(datadir) 65dnl Catalog extension: .mo after installation, .gmo in source tree 66dnl 2) GNU gettext has been found in the system's C library. 67dnl Catalog format: GNU --> install in $(datadir) 68dnl Catalog extension: .mo after installation, .gmo in source tree 69dnl 3) No internationalization, always use English msgid. 70dnl Catalog format: none 71dnl Catalog extension: none 72dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur. 73dnl The use of .gmo is historical (it was needed to avoid overwriting the 74dnl GNU format catalogs when building on a platform with an X/Open gettext), 75dnl but we keep it in order not to force irrelevant filename changes on the 76dnl maintainers. 77dnl 78AC_DEFUN([AM_GNU_GETTEXT], 79[ 80 dnl Argument checking. 81 ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], , 82 [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT 83])])])])]) 84 ifelse(ifelse([$1], [], [old])[]ifelse([$1], [no-libtool], [old]), [old], 85 [AC_DIAGNOSE([obsolete], [Use of AM_GNU_GETTEXT without [external] argument is deprecated.])]) 86 ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], , 87 [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT 88])])])]) 89 define([gt_included_intl], 90 ifelse([$1], [external], 91 ifdef([AM_GNU_GETTEXT_][INTL_SUBDIR], [yes], [no]), 92 [yes])) 93 define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], [])) 94 gt_NEEDS_INIT 95 AM_GNU_GETTEXT_NEED([$2]) 96 97 AC_REQUIRE([AM_PO_SUBDIRS])dnl 98 ifelse(gt_included_intl, yes, [ 99 AC_REQUIRE([AM_INTL_SUBDIR])dnl 100 ]) 101 102 dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. 103 AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) 104 AC_REQUIRE([AC_LIB_RPATH]) 105 106 dnl Sometimes libintl requires libiconv, so first search for libiconv. 107 dnl Ideally we would do this search only after the 108 dnl if test "$USE_NLS" = "yes"; then 109 dnl if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 110 dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT 111 dnl the configure script would need to contain the same shell code 112 dnl again, outside any 'if'. There are two solutions: 113 dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'. 114 dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE. 115 dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not 116 dnl documented, we avoid it. 117 ifelse(gt_included_intl, yes, , [ 118 AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) 119 ]) 120 121 dnl Sometimes, on MacOS X, libintl requires linking with CoreFoundation. 122 gt_INTL_MACOSX 123 124 dnl Set USE_NLS. 125 AC_REQUIRE([AM_NLS]) 126 127 ifelse(gt_included_intl, yes, [ 128 BUILD_INCLUDED_LIBINTL=no 129 USE_INCLUDED_LIBINTL=no 130 ]) 131 LIBINTL= 132 LTLIBINTL= 133 POSUB= 134 135 dnl Add a version number to the cache macros. 136 case " $gt_needs " in 137 *" need-formatstring-macros "*) gt_api_version=3 ;; 138 *" need-ngettext "*) gt_api_version=2 ;; 139 *) gt_api_version=1 ;; 140 esac 141 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" 142 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" 143 144 dnl If we use NLS figure out what method 145 if test "$USE_NLS" = "yes"; then 146 gt_use_preinstalled_gnugettext=no 147 ifelse(gt_included_intl, yes, [ 148 AC_MSG_CHECKING([whether included gettext is requested]) 149 AC_ARG_WITH([included-gettext], 150 [ --with-included-gettext use the GNU gettext library included here], 151 nls_cv_force_use_gnu_gettext=$withval, 152 nls_cv_force_use_gnu_gettext=no) 153 AC_MSG_RESULT([$nls_cv_force_use_gnu_gettext]) 154 155 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 156 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 157 ]) 158 dnl User does not insist on using GNU NLS library. Figure out what 159 dnl to use. If GNU gettext is available we use this. Else we have 160 dnl to fall back to GNU NLS library. 161 162 if test $gt_api_version -ge 3; then 163 gt_revision_test_code=' 164#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 165#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 166#endif 167changequote(,)dnl 168typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 169changequote([,])dnl 170' 171 else 172 gt_revision_test_code= 173 fi 174 if test $gt_api_version -ge 2; then 175 gt_expression_test_code=' + * ngettext ("", "", 0)' 176 else 177 gt_expression_test_code= 178 fi 179 180 AC_CACHE_CHECK([for GNU gettext in libc], [$gt_func_gnugettext_libc], 181 [AC_TRY_LINK([#include <libintl.h> 182$gt_revision_test_code 183extern int _nl_msg_cat_cntr; 184extern int *_nl_domain_bindings;], 185 [bindtextdomain ("", ""); 186return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings], 187 [eval "$gt_func_gnugettext_libc=yes"], 188 [eval "$gt_func_gnugettext_libc=no"])]) 189 190 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 191 dnl Sometimes libintl requires libiconv, so first search for libiconv. 192 ifelse(gt_included_intl, yes, , [ 193 AM_ICONV_LINK 194 ]) 195 dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL 196 dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv]) 197 dnl because that would add "-liconv" to LIBINTL and LTLIBINTL 198 dnl even if libiconv doesn't exist. 199 AC_LIB_LINKFLAGS_BODY([intl]) 200 AC_CACHE_CHECK([for GNU gettext in libintl], 201 [$gt_func_gnugettext_libintl], 202 [gt_save_CPPFLAGS="$CPPFLAGS" 203 CPPFLAGS="$CPPFLAGS $INCINTL" 204 gt_save_LIBS="$LIBS" 205 LIBS="$LIBS $LIBINTL" 206 dnl Now see whether libintl exists and does not depend on libiconv. 207 AC_TRY_LINK([#include <libintl.h> 208$gt_revision_test_code 209extern int _nl_msg_cat_cntr; 210extern 211#ifdef __cplusplus 212"C" 213#endif 214const char *_nl_expand_alias (const char *);], 215 [bindtextdomain ("", ""); 216return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")], 217 [eval "$gt_func_gnugettext_libintl=yes"], 218 [eval "$gt_func_gnugettext_libintl=no"]) 219 dnl Now see whether libintl exists and depends on libiconv. 220 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then 221 LIBS="$LIBS $LIBICONV" 222 AC_TRY_LINK([#include <libintl.h> 223$gt_revision_test_code 224extern int _nl_msg_cat_cntr; 225extern 226#ifdef __cplusplus 227"C" 228#endif 229const char *_nl_expand_alias (const char *);], 230 [bindtextdomain ("", ""); 231return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")], 232 [LIBINTL="$LIBINTL $LIBICONV" 233 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 234 eval "$gt_func_gnugettext_libintl=yes" 235 ]) 236 fi 237 CPPFLAGS="$gt_save_CPPFLAGS" 238 LIBS="$gt_save_LIBS"]) 239 fi 240 241 dnl If an already present or preinstalled GNU gettext() is found, 242 dnl use it. But if this macro is used in GNU gettext, and GNU 243 dnl gettext is already preinstalled in libintl, we update this 244 dnl libintl. (Cf. the install rule in intl/Makefile.in.) 245 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ 246 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ 247 && test "$PACKAGE" != gettext-runtime \ 248 && test "$PACKAGE" != gettext-tools; }; then 249 gt_use_preinstalled_gnugettext=yes 250 else 251 dnl Reset the values set by searching for libintl. 252 LIBINTL= 253 LTLIBINTL= 254 INCINTL= 255 fi 256 257 ifelse(gt_included_intl, yes, [ 258 if test "$gt_use_preinstalled_gnugettext" != "yes"; then 259 dnl GNU gettext is not found in the C library. 260 dnl Fall back on included GNU gettext library. 261 nls_cv_use_gnu_gettext=yes 262 fi 263 fi 264 265 if test "$nls_cv_use_gnu_gettext" = "yes"; then 266 dnl Mark actions used to generate GNU NLS library. 267 BUILD_INCLUDED_LIBINTL=yes 268 USE_INCLUDED_LIBINTL=yes 269 LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV $LIBTHREAD" 270 LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV $LTLIBTHREAD" 271 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` 272 fi 273 274 CATOBJEXT= 275 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 276 || test "$nls_cv_use_gnu_gettext" = "yes"; then 277 dnl Mark actions to use GNU gettext tools. 278 CATOBJEXT=.gmo 279 fi 280 ]) 281 282 if test -n "$INTL_MACOSX_LIBS"; then 283 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 284 || test "$nls_cv_use_gnu_gettext" = "yes"; then 285 dnl Some extra flags are needed during linking. 286 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 287 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 288 fi 289 fi 290 291 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 292 || test "$nls_cv_use_gnu_gettext" = "yes"; then 293 AC_DEFINE([ENABLE_NLS], [1], 294 [Define to 1 if translation of program messages to the user's native language 295 is requested.]) 296 else 297 USE_NLS=no 298 fi 299 fi 300 301 AC_MSG_CHECKING([whether to use NLS]) 302 AC_MSG_RESULT([$USE_NLS]) 303 if test "$USE_NLS" = "yes"; then 304 AC_MSG_CHECKING([where the gettext function comes from]) 305 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 306 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 307 gt_source="external libintl" 308 else 309 gt_source="libc" 310 fi 311 else 312 gt_source="included intl directory" 313 fi 314 AC_MSG_RESULT([$gt_source]) 315 fi 316 317 if test "$USE_NLS" = "yes"; then 318 319 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 320 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 321 AC_MSG_CHECKING([how to link with libintl]) 322 AC_MSG_RESULT([$LIBINTL]) 323 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL]) 324 fi 325 326 dnl For backward compatibility. Some packages may be using this. 327 AC_DEFINE([HAVE_GETTEXT], [1], 328 [Define if the GNU gettext() function is already present or preinstalled.]) 329 AC_DEFINE([HAVE_DCGETTEXT], [1], 330 [Define if the GNU dcgettext() function is already present or preinstalled.]) 331 fi 332 333 dnl We need to process the po/ directory. 334 POSUB=po 335 fi 336 337 ifelse(gt_included_intl, yes, [ 338 dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL 339 dnl to 'yes' because some of the testsuite requires it. 340 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then 341 BUILD_INCLUDED_LIBINTL=yes 342 fi 343 344 dnl Make all variables we use known to autoconf. 345 AC_SUBST([BUILD_INCLUDED_LIBINTL]) 346 AC_SUBST([USE_INCLUDED_LIBINTL]) 347 AC_SUBST([CATOBJEXT]) 348 349 dnl For backward compatibility. Some configure.ins may be using this. 350 nls_cv_header_intl= 351 nls_cv_header_libgt= 352 353 dnl For backward compatibility. Some Makefiles may be using this. 354 DATADIRNAME=share 355 AC_SUBST([DATADIRNAME]) 356 357 dnl For backward compatibility. Some Makefiles may be using this. 358 INSTOBJEXT=.mo 359 AC_SUBST([INSTOBJEXT]) 360 361 dnl For backward compatibility. Some Makefiles may be using this. 362 GENCAT=gencat 363 AC_SUBST([GENCAT]) 364 365 dnl For backward compatibility. Some Makefiles may be using this. 366 INTLOBJS= 367 if test "$USE_INCLUDED_LIBINTL" = yes; then 368 INTLOBJS="\$(GETTOBJS)" 369 fi 370 AC_SUBST([INTLOBJS]) 371 372 dnl Enable libtool support if the surrounding package wishes it. 373 INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix 374 AC_SUBST([INTL_LIBTOOL_SUFFIX_PREFIX]) 375 ]) 376 377 dnl For backward compatibility. Some Makefiles may be using this. 378 INTLLIBS="$LIBINTL" 379 AC_SUBST([INTLLIBS]) 380 381 dnl Make all documented variables known to autoconf. 382 AC_SUBST([LIBINTL]) 383 AC_SUBST([LTLIBINTL]) 384 AC_SUBST([POSUB]) 385]) 386 387 388dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized. 389m4_define([gt_NEEDS_INIT], 390[ 391 m4_divert_text([DEFAULTS], [gt_needs=]) 392 m4_define([gt_NEEDS_INIT], []) 393]) 394 395 396dnl Usage: AM_GNU_GETTEXT_NEED([NEEDSYMBOL]) 397AC_DEFUN([AM_GNU_GETTEXT_NEED], 398[ 399 m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"]) 400]) 401 402 403dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version]) 404AC_DEFUN([AM_GNU_GETTEXT_VERSION], []) 405 406# iconv.m4 serial 11 (gettext-0.18.1) 407dnl Copyright (C) 2000-2002, 2007-2010 Free Software Foundation, Inc. 408dnl This file is free software; the Free Software Foundation 409dnl gives unlimited permission to copy and/or distribute it, 410dnl with or without modifications, as long as this notice is preserved. 411 412dnl From Bruno Haible. 413 414AC_DEFUN([AM_ICONV_LINKFLAGS_BODY], 415[ 416 dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. 417 AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) 418 AC_REQUIRE([AC_LIB_RPATH]) 419 420 dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV 421 dnl accordingly. 422 AC_LIB_LINKFLAGS_BODY([iconv]) 423]) 424 425AC_DEFUN([AM_ICONV_LINK], 426[ 427 dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and 428 dnl those with the standalone portable GNU libiconv installed). 429 AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles 430 431 dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV 432 dnl accordingly. 433 AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) 434 435 dnl Add $INCICONV to CPPFLAGS before performing the following checks, 436 dnl because if the user has installed libiconv and not disabled its use 437 dnl via --without-libiconv-prefix, he wants to use it. The first 438 dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed. 439 am_save_CPPFLAGS="$CPPFLAGS" 440 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV]) 441 442 AC_CACHE_CHECK([for iconv], [am_cv_func_iconv], [ 443 am_cv_func_iconv="no, consider installing GNU libiconv" 444 am_cv_lib_iconv=no 445 AC_TRY_LINK([#include <stdlib.h> 446#include <iconv.h>], 447 [iconv_t cd = iconv_open("",""); 448 iconv(cd,NULL,NULL,NULL,NULL); 449 iconv_close(cd);], 450 [am_cv_func_iconv=yes]) 451 if test "$am_cv_func_iconv" != yes; then 452 am_save_LIBS="$LIBS" 453 LIBS="$LIBS $LIBICONV" 454 AC_TRY_LINK([#include <stdlib.h> 455#include <iconv.h>], 456 [iconv_t cd = iconv_open("",""); 457 iconv(cd,NULL,NULL,NULL,NULL); 458 iconv_close(cd);], 459 [am_cv_lib_iconv=yes] 460 [am_cv_func_iconv=yes]) 461 LIBS="$am_save_LIBS" 462 fi 463 ]) 464 if test "$am_cv_func_iconv" = yes; then 465 AC_CACHE_CHECK([for working iconv], [am_cv_func_iconv_works], [ 466 dnl This tests against bugs in AIX 5.1, HP-UX 11.11, Solaris 10. 467 am_save_LIBS="$LIBS" 468 if test $am_cv_lib_iconv = yes; then 469 LIBS="$LIBS $LIBICONV" 470 fi 471 AC_TRY_RUN([ 472#include <iconv.h> 473#include <string.h> 474int main () 475{ 476 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful 477 returns. */ 478 { 479 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 480 if (cd_utf8_to_88591 != (iconv_t)(-1)) 481 { 482 static const char input[] = "\342\202\254"; /* EURO SIGN */ 483 char buf[10]; 484 const char *inptr = input; 485 size_t inbytesleft = strlen (input); 486 char *outptr = buf; 487 size_t outbytesleft = sizeof (buf); 488 size_t res = iconv (cd_utf8_to_88591, 489 (char **) &inptr, &inbytesleft, 490 &outptr, &outbytesleft); 491 if (res == 0) 492 return 1; 493 } 494 } 495 /* Test against Solaris 10 bug: Failures are not distinguishable from 496 successful returns. */ 497 { 498 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 499 if (cd_ascii_to_88591 != (iconv_t)(-1)) 500 { 501 static const char input[] = "\263"; 502 char buf[10]; 503 const char *inptr = input; 504 size_t inbytesleft = strlen (input); 505 char *outptr = buf; 506 size_t outbytesleft = sizeof (buf); 507 size_t res = iconv (cd_ascii_to_88591, 508 (char **) &inptr, &inbytesleft, 509 &outptr, &outbytesleft); 510 if (res == 0) 511 return 1; 512 } 513 } 514#if 0 /* This bug could be worked around by the caller. */ 515 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 516 { 517 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 518 if (cd_88591_to_utf8 != (iconv_t)(-1)) 519 { 520 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 521 char buf[50]; 522 const char *inptr = input; 523 size_t inbytesleft = strlen (input); 524 char *outptr = buf; 525 size_t outbytesleft = sizeof (buf); 526 size_t res = iconv (cd_88591_to_utf8, 527 (char **) &inptr, &inbytesleft, 528 &outptr, &outbytesleft); 529 if ((int)res > 0) 530 return 1; 531 } 532 } 533#endif 534 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 535 provided. */ 536 if (/* Try standardized names. */ 537 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) 538 /* Try IRIX, OSF/1 names. */ 539 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) 540 /* Try AIX names. */ 541 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) 542 /* Try HP-UX names. */ 543 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) 544 return 1; 545 return 0; 546}], [am_cv_func_iconv_works=yes], [am_cv_func_iconv_works=no], 547 [case "$host_os" in 548 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 549 *) am_cv_func_iconv_works="guessing yes" ;; 550 esac]) 551 LIBS="$am_save_LIBS" 552 ]) 553 case "$am_cv_func_iconv_works" in 554 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 555 *) am_func_iconv=yes ;; 556 esac 557 else 558 am_func_iconv=no am_cv_lib_iconv=no 559 fi 560 if test "$am_func_iconv" = yes; then 561 AC_DEFINE([HAVE_ICONV], [1], 562 [Define if you have the iconv() function and it works.]) 563 fi 564 if test "$am_cv_lib_iconv" = yes; then 565 AC_MSG_CHECKING([how to link with libiconv]) 566 AC_MSG_RESULT([$LIBICONV]) 567 else 568 dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV 569 dnl either. 570 CPPFLAGS="$am_save_CPPFLAGS" 571 LIBICONV= 572 LTLIBICONV= 573 fi 574 AC_SUBST([LIBICONV]) 575 AC_SUBST([LTLIBICONV]) 576]) 577 578dnl Define AM_ICONV using AC_DEFUN_ONCE for Autoconf >= 2.64, in order to 579dnl avoid warnings like 580dnl "warning: AC_REQUIRE: `AM_ICONV' was expanded before it was required". 581dnl This is tricky because of the way 'aclocal' is implemented: 582dnl - It requires defining an auxiliary macro whose name ends in AC_DEFUN. 583dnl Otherwise aclocal's initial scan pass would miss the macro definition. 584dnl - It requires a line break inside the AC_DEFUN_ONCE and AC_DEFUN expansions. 585dnl Otherwise aclocal would emit many "Use of uninitialized value $1" 586dnl warnings. 587m4_define([gl_iconv_AC_DEFUN], 588 m4_version_prereq([2.64], 589 [[AC_DEFUN_ONCE( 590 [$1], [$2])]], 591 [[AC_DEFUN( 592 [$1], [$2])]])) 593gl_iconv_AC_DEFUN([AM_ICONV], 594[ 595 AM_ICONV_LINK 596 if test "$am_cv_func_iconv" = yes; then 597 AC_MSG_CHECKING([for iconv declaration]) 598 AC_CACHE_VAL([am_cv_proto_iconv], [ 599 AC_TRY_COMPILE([ 600#include <stdlib.h> 601#include <iconv.h> 602extern 603#ifdef __cplusplus 604"C" 605#endif 606#if defined(__STDC__) || defined(__cplusplus) 607size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 608#else 609size_t iconv(); 610#endif 611], [], [am_cv_proto_iconv_arg1=""], [am_cv_proto_iconv_arg1="const"]) 612 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"]) 613 am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 614 AC_MSG_RESULT([ 615 $am_cv_proto_iconv]) 616 AC_DEFINE_UNQUOTED([ICONV_CONST], [$am_cv_proto_iconv_arg1], 617 [Define as const if the declaration of iconv() needs const.]) 618 fi 619]) 620 621# intlmacosx.m4 serial 3 (gettext-0.18) 622dnl Copyright (C) 2004-2010 Free Software Foundation, Inc. 623dnl This file is free software; the Free Software Foundation 624dnl gives unlimited permission to copy and/or distribute it, 625dnl with or without modifications, as long as this notice is preserved. 626dnl 627dnl This file can can be used in projects which are not available under 628dnl the GNU General Public License or the GNU Library General Public 629dnl License but which still want to provide support for the GNU gettext 630dnl functionality. 631dnl Please note that the actual code of the GNU gettext library is covered 632dnl by the GNU Library General Public License, and the rest of the GNU 633dnl gettext package package is covered by the GNU General Public License. 634dnl They are *not* in the public domain. 635 636dnl Checks for special options needed on MacOS X. 637dnl Defines INTL_MACOSX_LIBS. 638AC_DEFUN([gt_INTL_MACOSX], 639[ 640 dnl Check for API introduced in MacOS X 10.2. 641 AC_CACHE_CHECK([for CFPreferencesCopyAppValue], 642 [gt_cv_func_CFPreferencesCopyAppValue], 643 [gt_save_LIBS="$LIBS" 644 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 645 AC_TRY_LINK([#include <CoreFoundation/CFPreferences.h>], 646 [CFPreferencesCopyAppValue(NULL, NULL)], 647 [gt_cv_func_CFPreferencesCopyAppValue=yes], 648 [gt_cv_func_CFPreferencesCopyAppValue=no]) 649 LIBS="$gt_save_LIBS"]) 650 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 651 AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], [1], 652 [Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.]) 653 fi 654 dnl Check for API introduced in MacOS X 10.3. 655 AC_CACHE_CHECK([for CFLocaleCopyCurrent], [gt_cv_func_CFLocaleCopyCurrent], 656 [gt_save_LIBS="$LIBS" 657 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 658 AC_TRY_LINK([#include <CoreFoundation/CFLocale.h>], [CFLocaleCopyCurrent();], 659 [gt_cv_func_CFLocaleCopyCurrent=yes], 660 [gt_cv_func_CFLocaleCopyCurrent=no]) 661 LIBS="$gt_save_LIBS"]) 662 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then 663 AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], [1], 664 [Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.]) 665 fi 666 INTL_MACOSX_LIBS= 667 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then 668 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 669 fi 670 AC_SUBST([INTL_MACOSX_LIBS]) 671]) 672 673# lib-ld.m4 serial 4 (gettext-0.18) 674dnl Copyright (C) 1996-2003, 2009-2010 Free Software Foundation, Inc. 675dnl This file is free software; the Free Software Foundation 676dnl gives unlimited permission to copy and/or distribute it, 677dnl with or without modifications, as long as this notice is preserved. 678 679dnl Subroutines of libtool.m4, 680dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision 681dnl with libtool.m4. 682 683dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no. 684AC_DEFUN([AC_LIB_PROG_LD_GNU], 685[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], [acl_cv_prog_gnu_ld], 686[# I'd rather use --version here, but apparently some GNU ld's only accept -v. 687case `$LD -v 2>&1 </dev/null` in 688*GNU* | *'with BFD'*) 689 acl_cv_prog_gnu_ld=yes ;; 690*) 691 acl_cv_prog_gnu_ld=no ;; 692esac]) 693with_gnu_ld=$acl_cv_prog_gnu_ld 694]) 695 696dnl From libtool-1.4. Sets the variable LD. 697AC_DEFUN([AC_LIB_PROG_LD], 698[AC_ARG_WITH([gnu-ld], 699[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]], 700test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no) 701AC_REQUIRE([AC_PROG_CC])dnl 702AC_REQUIRE([AC_CANONICAL_HOST])dnl 703# Prepare PATH_SEPARATOR. 704# The user is always right. 705if test "${PATH_SEPARATOR+set}" != set; then 706 echo "#! /bin/sh" >conf$$.sh 707 echo "exit 0" >>conf$$.sh 708 chmod +x conf$$.sh 709 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 710 PATH_SEPARATOR=';' 711 else 712 PATH_SEPARATOR=: 713 fi 714 rm -f conf$$.sh 715fi 716ac_prog=ld 717if test "$GCC" = yes; then 718 # Check if gcc -print-prog-name=ld gives a path. 719 AC_MSG_CHECKING([for ld used by GCC]) 720 case $host in 721 *-*-mingw*) 722 # gcc leaves a trailing carriage return which upsets mingw 723 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 724 *) 725 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 726 esac 727 case $ac_prog in 728 # Accept absolute paths. 729 [[\\/]* | [A-Za-z]:[\\/]*)] 730 [re_direlt='/[^/][^/]*/\.\./'] 731 # Canonicalize the path of ld 732 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 733 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 734 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 735 done 736 test -z "$LD" && LD="$ac_prog" 737 ;; 738 "") 739 # If it fails, then pretend we aren't using GCC. 740 ac_prog=ld 741 ;; 742 *) 743 # If it is relative, then search for the first ld in PATH. 744 with_gnu_ld=unknown 745 ;; 746 esac 747elif test "$with_gnu_ld" = yes; then 748 AC_MSG_CHECKING([for GNU ld]) 749else 750 AC_MSG_CHECKING([for non-GNU ld]) 751fi 752AC_CACHE_VAL([acl_cv_path_LD], 753[if test -z "$LD"; then 754 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 755 for ac_dir in $PATH; do 756 test -z "$ac_dir" && ac_dir=. 757 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 758 acl_cv_path_LD="$ac_dir/$ac_prog" 759 # Check to see if the program is GNU ld. I'd rather use --version, 760 # but apparently some GNU ld's only accept -v. 761 # Break only if it was the GNU/non-GNU ld that we prefer. 762 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in 763 *GNU* | *'with BFD'*) 764 test "$with_gnu_ld" != no && break ;; 765 *) 766 test "$with_gnu_ld" != yes && break ;; 767 esac 768 fi 769 done 770 IFS="$ac_save_ifs" 771else 772 acl_cv_path_LD="$LD" # Let the user override the test with a path. 773fi]) 774LD="$acl_cv_path_LD" 775if test -n "$LD"; then 776 AC_MSG_RESULT([$LD]) 777else 778 AC_MSG_RESULT([no]) 779fi 780test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 781AC_LIB_PROG_LD_GNU 782]) 783 784# lib-link.m4 serial 21 (gettext-0.18) 785dnl Copyright (C) 2001-2010 Free Software Foundation, Inc. 786dnl This file is free software; the Free Software Foundation 787dnl gives unlimited permission to copy and/or distribute it, 788dnl with or without modifications, as long as this notice is preserved. 789 790dnl From Bruno Haible. 791 792AC_PREREQ([2.54]) 793 794dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and 795dnl the libraries corresponding to explicit and implicit dependencies. 796dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and 797dnl augments the CPPFLAGS variable. 798dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname 799dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. 800AC_DEFUN([AC_LIB_LINKFLAGS], 801[ 802 AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) 803 AC_REQUIRE([AC_LIB_RPATH]) 804 pushdef([Name],[translit([$1],[./-], [___])]) 805 pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], 806 [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) 807 AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [ 808 AC_LIB_LINKFLAGS_BODY([$1], [$2]) 809 ac_cv_lib[]Name[]_libs="$LIB[]NAME" 810 ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" 811 ac_cv_lib[]Name[]_cppflags="$INC[]NAME" 812 ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX" 813 ]) 814 LIB[]NAME="$ac_cv_lib[]Name[]_libs" 815 LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" 816 INC[]NAME="$ac_cv_lib[]Name[]_cppflags" 817 LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix" 818 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) 819 AC_SUBST([LIB]NAME) 820 AC_SUBST([LTLIB]NAME) 821 AC_SUBST([LIB]NAME[_PREFIX]) 822 dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the 823 dnl results of this search when this library appears as a dependency. 824 HAVE_LIB[]NAME=yes 825 popdef([NAME]) 826 popdef([Name]) 827]) 828 829dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode, [missing-message]) 830dnl searches for libname and the libraries corresponding to explicit and 831dnl implicit dependencies, together with the specified include files and 832dnl the ability to compile and link the specified testcode. The missing-message 833dnl defaults to 'no' and may contain additional hints for the user. 834dnl If found, it sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} 835dnl and LTLIB${NAME} variables and augments the CPPFLAGS variable, and 836dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs 837dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. 838dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname 839dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. 840AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], 841[ 842 AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) 843 AC_REQUIRE([AC_LIB_RPATH]) 844 pushdef([Name],[translit([$1],[./-], [___])]) 845 pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], 846 [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) 847 848 dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME 849 dnl accordingly. 850 AC_LIB_LINKFLAGS_BODY([$1], [$2]) 851 852 dnl Add $INC[]NAME to CPPFLAGS before performing the following checks, 853 dnl because if the user has installed lib[]Name and not disabled its use 854 dnl via --without-lib[]Name-prefix, he wants to use it. 855 ac_save_CPPFLAGS="$CPPFLAGS" 856 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) 857 858 AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [ 859 ac_save_LIBS="$LIBS" 860 dnl If $LIB[]NAME contains some -l options, add it to the end of LIBS, 861 dnl because these -l options might require -L options that are present in 862 dnl LIBS. -l options benefit only from the -L options listed before it. 863 dnl Otherwise, add it to the front of LIBS, because it may be a static 864 dnl library that depends on another static library that is present in LIBS. 865 dnl Static libraries benefit only from the static libraries listed after 866 dnl it. 867 case " $LIB[]NAME" in 868 *" -l"*) LIBS="$LIBS $LIB[]NAME" ;; 869 *) LIBS="$LIB[]NAME $LIBS" ;; 870 esac 871 AC_TRY_LINK([$3], [$4], 872 [ac_cv_lib[]Name=yes], 873 [ac_cv_lib[]Name='m4_if([$5], [], [no], [[$5]])']) 874 LIBS="$ac_save_LIBS" 875 ]) 876 if test "$ac_cv_lib[]Name" = yes; then 877 HAVE_LIB[]NAME=yes 878 AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the lib][$1 library.]) 879 AC_MSG_CHECKING([how to link with lib[]$1]) 880 AC_MSG_RESULT([$LIB[]NAME]) 881 else 882 HAVE_LIB[]NAME=no 883 dnl If $LIB[]NAME didn't lead to a usable library, we don't need 884 dnl $INC[]NAME either. 885 CPPFLAGS="$ac_save_CPPFLAGS" 886 LIB[]NAME= 887 LTLIB[]NAME= 888 LIB[]NAME[]_PREFIX= 889 fi 890 AC_SUBST([HAVE_LIB]NAME) 891 AC_SUBST([LIB]NAME) 892 AC_SUBST([LTLIB]NAME) 893 AC_SUBST([LIB]NAME[_PREFIX]) 894 popdef([NAME]) 895 popdef([Name]) 896]) 897 898dnl Determine the platform dependent parameters needed to use rpath: 899dnl acl_libext, 900dnl acl_shlibext, 901dnl acl_hardcode_libdir_flag_spec, 902dnl acl_hardcode_libdir_separator, 903dnl acl_hardcode_direct, 904dnl acl_hardcode_minus_L. 905AC_DEFUN([AC_LIB_RPATH], 906[ 907 dnl Tell automake >= 1.10 to complain if config.rpath is missing. 908 m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])]) 909 AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS 910 AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld 911 AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host 912 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir 913 AC_CACHE_CHECK([for shared library run path origin], [acl_cv_rpath], [ 914 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 915 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 916 . ./conftest.sh 917 rm -f ./conftest.sh 918 acl_cv_rpath=done 919 ]) 920 wl="$acl_cv_wl" 921 acl_libext="$acl_cv_libext" 922 acl_shlibext="$acl_cv_shlibext" 923 acl_libname_spec="$acl_cv_libname_spec" 924 acl_library_names_spec="$acl_cv_library_names_spec" 925 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 926 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 927 acl_hardcode_direct="$acl_cv_hardcode_direct" 928 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" 929 dnl Determine whether the user wants rpath handling at all. 930 AC_ARG_ENABLE([rpath], 931 [ --disable-rpath do not hardcode runtime library paths], 932 :, enable_rpath=yes) 933]) 934 935dnl AC_LIB_FROMPACKAGE(name, package) 936dnl declares that libname comes from the given package. The configure file 937dnl will then not have a --with-libname-prefix option but a 938dnl --with-package-prefix option. Several libraries can come from the same 939dnl package. This declaration must occur before an AC_LIB_LINKFLAGS or similar 940dnl macro call that searches for libname. 941AC_DEFUN([AC_LIB_FROMPACKAGE], 942[ 943 pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], 944 [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) 945 define([acl_frompackage_]NAME, [$2]) 946 popdef([NAME]) 947 pushdef([PACK],[$2]) 948 pushdef([PACKUP],[translit(PACK,[abcdefghijklmnopqrstuvwxyz./-], 949 [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) 950 define([acl_libsinpackage_]PACKUP, 951 m4_ifdef([acl_libsinpackage_]PACKUP, [acl_libsinpackage_]PACKUP[[, ]],)[lib$1]) 952 popdef([PACKUP]) 953 popdef([PACK]) 954]) 955 956dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and 957dnl the libraries corresponding to explicit and implicit dependencies. 958dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. 959dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found 960dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem. 961AC_DEFUN([AC_LIB_LINKFLAGS_BODY], 962[ 963 AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) 964 pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], 965 [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) 966 pushdef([PACK],[m4_ifdef([acl_frompackage_]NAME, [acl_frompackage_]NAME, lib[$1])]) 967 pushdef([PACKUP],[translit(PACK,[abcdefghijklmnopqrstuvwxyz./-], 968 [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) 969 pushdef([PACKLIBS],[m4_ifdef([acl_frompackage_]NAME, [acl_libsinpackage_]PACKUP, lib[$1])]) 970 dnl Autoconf >= 2.61 supports dots in --with options. 971 pushdef([P_A_C_K],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[translit(PACK,[.],[_])],PACK)]) 972 dnl By default, look in $includedir and $libdir. 973 use_additional=yes 974 AC_LIB_WITH_FINAL_PREFIX([ 975 eval additional_includedir=\"$includedir\" 976 eval additional_libdir=\"$libdir\" 977 ]) 978 AC_ARG_WITH(P_A_C_K[-prefix], 979[[ --with-]]P_A_C_K[[-prefix[=DIR] search for ]PACKLIBS[ in DIR/include and DIR/lib 980 --without-]]P_A_C_K[[-prefix don't search for ]PACKLIBS[ in includedir and libdir]], 981[ 982 if test "X$withval" = "Xno"; then 983 use_additional=no 984 else 985 if test "X$withval" = "X"; then 986 AC_LIB_WITH_FINAL_PREFIX([ 987 eval additional_includedir=\"$includedir\" 988 eval additional_libdir=\"$libdir\" 989 ]) 990 else 991 additional_includedir="$withval/include" 992 additional_libdir="$withval/$acl_libdirstem" 993 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 994 && ! test -d "$withval/$acl_libdirstem"; then 995 additional_libdir="$withval/$acl_libdirstem2" 996 fi 997 fi 998 fi 999]) 1000 dnl Search the library and its dependencies in $additional_libdir and 1001 dnl $LDFLAGS. Using breadth-first-seach. 1002 LIB[]NAME= 1003 LTLIB[]NAME= 1004 INC[]NAME= 1005 LIB[]NAME[]_PREFIX= 1006 dnl HAVE_LIB${NAME} is an indicator that LIB${NAME}, LTLIB${NAME} have been 1007 dnl computed. So it has to be reset here. 1008 HAVE_LIB[]NAME= 1009 rpathdirs= 1010 ltrpathdirs= 1011 names_already_handled= 1012 names_next_round='$1 $2' 1013 while test -n "$names_next_round"; do 1014 names_this_round="$names_next_round" 1015 names_next_round= 1016 for name in $names_this_round; do 1017 already_handled= 1018 for n in $names_already_handled; do 1019 if test "$n" = "$name"; then 1020 already_handled=yes 1021 break 1022 fi 1023 done 1024 if test -z "$already_handled"; then 1025 names_already_handled="$names_already_handled $name" 1026 dnl See if it was already located by an earlier AC_LIB_LINKFLAGS 1027 dnl or AC_LIB_HAVE_LINKFLAGS call. 1028 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 1029 eval value=\"\$HAVE_LIB$uppername\" 1030 if test -n "$value"; then 1031 if test "$value" = yes; then 1032 eval value=\"\$LIB$uppername\" 1033 test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value" 1034 eval value=\"\$LTLIB$uppername\" 1035 test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value" 1036 else 1037 dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined 1038 dnl that this library doesn't exist. So just drop it. 1039 : 1040 fi 1041 else 1042 dnl Search the library lib$name in $additional_libdir and $LDFLAGS 1043 dnl and the already constructed $LIBNAME/$LTLIBNAME. 1044 found_dir= 1045 found_la= 1046 found_so= 1047 found_a= 1048 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 1049 if test -n "$acl_shlibext"; then 1050 shrext=".$acl_shlibext" # typically: shrext=.so 1051 else 1052 shrext= 1053 fi 1054 if test $use_additional = yes; then 1055 dir="$additional_libdir" 1056 dnl The same code as in the loop below: 1057 dnl First look for a shared library. 1058 if test -n "$acl_shlibext"; then 1059 if test -f "$dir/$libname$shrext"; then 1060 found_dir="$dir" 1061 found_so="$dir/$libname$shrext" 1062 else 1063 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 1064 ver=`(cd "$dir" && \ 1065 for f in "$libname$shrext".*; do echo "$f"; done \ 1066 | sed -e "s,^$libname$shrext\\\\.,," \ 1067 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 1068 | sed 1q ) 2>/dev/null` 1069 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 1070 found_dir="$dir" 1071 found_so="$dir/$libname$shrext.$ver" 1072 fi 1073 else 1074 eval library_names=\"$acl_library_names_spec\" 1075 for f in $library_names; do 1076 if test -f "$dir/$f"; then 1077 found_dir="$dir" 1078 found_so="$dir/$f" 1079 break 1080 fi 1081 done 1082 fi 1083 fi 1084 fi 1085 dnl Then look for a static library. 1086 if test "X$found_dir" = "X"; then 1087 if test -f "$dir/$libname.$acl_libext"; then 1088 found_dir="$dir" 1089 found_a="$dir/$libname.$acl_libext" 1090 fi 1091 fi 1092 if test "X$found_dir" != "X"; then 1093 if test -f "$dir/$libname.la"; then 1094 found_la="$dir/$libname.la" 1095 fi 1096 fi 1097 fi 1098 if test "X$found_dir" = "X"; then 1099 for x in $LDFLAGS $LTLIB[]NAME; do 1100 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) 1101 case "$x" in 1102 -L*) 1103 dir=`echo "X$x" | sed -e 's/^X-L//'` 1104 dnl First look for a shared library. 1105 if test -n "$acl_shlibext"; then 1106 if test -f "$dir/$libname$shrext"; then 1107 found_dir="$dir" 1108 found_so="$dir/$libname$shrext" 1109 else 1110 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 1111 ver=`(cd "$dir" && \ 1112 for f in "$libname$shrext".*; do echo "$f"; done \ 1113 | sed -e "s,^$libname$shrext\\\\.,," \ 1114 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 1115 | sed 1q ) 2>/dev/null` 1116 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 1117 found_dir="$dir" 1118 found_so="$dir/$libname$shrext.$ver" 1119 fi 1120 else 1121 eval library_names=\"$acl_library_names_spec\" 1122 for f in $library_names; do 1123 if test -f "$dir/$f"; then 1124 found_dir="$dir" 1125 found_so="$dir/$f" 1126 break 1127 fi 1128 done 1129 fi 1130 fi 1131 fi 1132 dnl Then look for a static library. 1133 if test "X$found_dir" = "X"; then 1134 if test -f "$dir/$libname.$acl_libext"; then 1135 found_dir="$dir" 1136 found_a="$dir/$libname.$acl_libext" 1137 fi 1138 fi 1139 if test "X$found_dir" != "X"; then 1140 if test -f "$dir/$libname.la"; then 1141 found_la="$dir/$libname.la" 1142 fi 1143 fi 1144 ;; 1145 esac 1146 if test "X$found_dir" != "X"; then 1147 break 1148 fi 1149 done 1150 fi 1151 if test "X$found_dir" != "X"; then 1152 dnl Found the library. 1153 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name" 1154 if test "X$found_so" != "X"; then 1155 dnl Linking with a shared library. We attempt to hardcode its 1156 dnl directory into the executable's runpath, unless it's the 1157 dnl standard /usr/lib. 1158 if test "$enable_rpath" = no \ 1159 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 1160 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 1161 dnl No hardcoding is needed. 1162 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" 1163 else 1164 dnl Use an explicit option to hardcode DIR into the resulting 1165 dnl binary. 1166 dnl Potentially add DIR to ltrpathdirs. 1167 dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. 1168 haveit= 1169 for x in $ltrpathdirs; do 1170 if test "X$x" = "X$found_dir"; then 1171 haveit=yes 1172 break 1173 fi 1174 done 1175 if test -z "$haveit"; then 1176 ltrpathdirs="$ltrpathdirs $found_dir" 1177 fi 1178 dnl The hardcoding into $LIBNAME is system dependent. 1179 if test "$acl_hardcode_direct" = yes; then 1180 dnl Using DIR/libNAME.so during linking hardcodes DIR into the 1181 dnl resulting binary. 1182 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" 1183 else 1184 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 1185 dnl Use an explicit option to hardcode DIR into the resulting 1186 dnl binary. 1187 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" 1188 dnl Potentially add DIR to rpathdirs. 1189 dnl The rpathdirs will be appended to $LIBNAME at the end. 1190 haveit= 1191 for x in $rpathdirs; do 1192 if test "X$x" = "X$found_dir"; then 1193 haveit=yes 1194 break 1195 fi 1196 done 1197 if test -z "$haveit"; then 1198 rpathdirs="$rpathdirs $found_dir" 1199 fi 1200 else 1201 dnl Rely on "-L$found_dir". 1202 dnl But don't add it if it's already contained in the LDFLAGS 1203 dnl or the already constructed $LIBNAME 1204 haveit= 1205 for x in $LDFLAGS $LIB[]NAME; do 1206 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) 1207 if test "X$x" = "X-L$found_dir"; then 1208 haveit=yes 1209 break 1210 fi 1211 done 1212 if test -z "$haveit"; then 1213 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" 1214 fi 1215 if test "$acl_hardcode_minus_L" != no; then 1216 dnl FIXME: Not sure whether we should use 1217 dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" 1218 dnl here. 1219 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" 1220 else 1221 dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH 1222 dnl here, because this doesn't fit in flags passed to the 1223 dnl compiler. So give up. No hardcoding. This affects only 1224 dnl very old systems. 1225 dnl FIXME: Not sure whether we should use 1226 dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" 1227 dnl here. 1228 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" 1229 fi 1230 fi 1231 fi 1232 fi 1233 else 1234 if test "X$found_a" != "X"; then 1235 dnl Linking with a static library. 1236 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a" 1237 else 1238 dnl We shouldn't come here, but anyway it's good to have a 1239 dnl fallback. 1240 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name" 1241 fi 1242 fi 1243 dnl Assume the include files are nearby. 1244 additional_includedir= 1245 case "$found_dir" in 1246 */$acl_libdirstem | */$acl_libdirstem/) 1247 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 1248 if test "$name" = '$1'; then 1249 LIB[]NAME[]_PREFIX="$basedir" 1250 fi 1251 additional_includedir="$basedir/include" 1252 ;; 1253 */$acl_libdirstem2 | */$acl_libdirstem2/) 1254 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 1255 if test "$name" = '$1'; then 1256 LIB[]NAME[]_PREFIX="$basedir" 1257 fi 1258 additional_includedir="$basedir/include" 1259 ;; 1260 esac 1261 if test "X$additional_includedir" != "X"; then 1262 dnl Potentially add $additional_includedir to $INCNAME. 1263 dnl But don't add it 1264 dnl 1. if it's the standard /usr/include, 1265 dnl 2. if it's /usr/local/include and we are using GCC on Linux, 1266 dnl 3. if it's already present in $CPPFLAGS or the already 1267 dnl constructed $INCNAME, 1268 dnl 4. if it doesn't exist as a directory. 1269 if test "X$additional_includedir" != "X/usr/include"; then 1270 haveit= 1271 if test "X$additional_includedir" = "X/usr/local/include"; then 1272 if test -n "$GCC"; then 1273 case $host_os in 1274 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 1275 esac 1276 fi 1277 fi 1278 if test -z "$haveit"; then 1279 for x in $CPPFLAGS $INC[]NAME; do 1280 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) 1281 if test "X$x" = "X-I$additional_includedir"; then 1282 haveit=yes 1283 break 1284 fi 1285 done 1286 if test -z "$haveit"; then 1287 if test -d "$additional_includedir"; then 1288 dnl Really add $additional_includedir to $INCNAME. 1289 INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir" 1290 fi 1291 fi 1292 fi 1293 fi 1294 fi 1295 dnl Look for dependencies. 1296 if test -n "$found_la"; then 1297 dnl Read the .la file. It defines the variables 1298 dnl dlname, library_names, old_library, dependency_libs, current, 1299 dnl age, revision, installed, dlopen, dlpreopen, libdir. 1300 save_libdir="$libdir" 1301 case "$found_la" in 1302 */* | *\\*) . "$found_la" ;; 1303 *) . "./$found_la" ;; 1304 esac 1305 libdir="$save_libdir" 1306 dnl We use only dependency_libs. 1307 for dep in $dependency_libs; do 1308 case "$dep" in 1309 -L*) 1310 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 1311 dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME. 1312 dnl But don't add it 1313 dnl 1. if it's the standard /usr/lib, 1314 dnl 2. if it's /usr/local/lib and we are using GCC on Linux, 1315 dnl 3. if it's already present in $LDFLAGS or the already 1316 dnl constructed $LIBNAME, 1317 dnl 4. if it doesn't exist as a directory. 1318 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 1319 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 1320 haveit= 1321 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 1322 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 1323 if test -n "$GCC"; then 1324 case $host_os in 1325 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 1326 esac 1327 fi 1328 fi 1329 if test -z "$haveit"; then 1330 haveit= 1331 for x in $LDFLAGS $LIB[]NAME; do 1332 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) 1333 if test "X$x" = "X-L$additional_libdir"; then 1334 haveit=yes 1335 break 1336 fi 1337 done 1338 if test -z "$haveit"; then 1339 if test -d "$additional_libdir"; then 1340 dnl Really add $additional_libdir to $LIBNAME. 1341 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir" 1342 fi 1343 fi 1344 haveit= 1345 for x in $LDFLAGS $LTLIB[]NAME; do 1346 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) 1347 if test "X$x" = "X-L$additional_libdir"; then 1348 haveit=yes 1349 break 1350 fi 1351 done 1352 if test -z "$haveit"; then 1353 if test -d "$additional_libdir"; then 1354 dnl Really add $additional_libdir to $LTLIBNAME. 1355 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir" 1356 fi 1357 fi 1358 fi 1359 fi 1360 ;; 1361 -R*) 1362 dir=`echo "X$dep" | sed -e 's/^X-R//'` 1363 if test "$enable_rpath" != no; then 1364 dnl Potentially add DIR to rpathdirs. 1365 dnl The rpathdirs will be appended to $LIBNAME at the end. 1366 haveit= 1367 for x in $rpathdirs; do 1368 if test "X$x" = "X$dir"; then 1369 haveit=yes 1370 break 1371 fi 1372 done 1373 if test -z "$haveit"; then 1374 rpathdirs="$rpathdirs $dir" 1375 fi 1376 dnl Potentially add DIR to ltrpathdirs. 1377 dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. 1378 haveit= 1379 for x in $ltrpathdirs; do 1380 if test "X$x" = "X$dir"; then 1381 haveit=yes 1382 break 1383 fi 1384 done 1385 if test -z "$haveit"; then 1386 ltrpathdirs="$ltrpathdirs $dir" 1387 fi 1388 fi 1389 ;; 1390 -l*) 1391 dnl Handle this in the next round. 1392 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 1393 ;; 1394 *.la) 1395 dnl Handle this in the next round. Throw away the .la's 1396 dnl directory; it is already contained in a preceding -L 1397 dnl option. 1398 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 1399 ;; 1400 *) 1401 dnl Most likely an immediate library name. 1402 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep" 1403 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep" 1404 ;; 1405 esac 1406 done 1407 fi 1408 else 1409 dnl Didn't find the library; assume it is in the system directories 1410 dnl known to the linker and runtime loader. (All the system 1411 dnl directories known to the linker should also be known to the 1412 dnl runtime loader, otherwise the system is severely misconfigured.) 1413 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" 1414 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name" 1415 fi 1416 fi 1417 fi 1418 done 1419 done 1420 if test "X$rpathdirs" != "X"; then 1421 if test -n "$acl_hardcode_libdir_separator"; then 1422 dnl Weird platform: only the last -rpath option counts, the user must 1423 dnl pass all path elements in one option. We can arrange that for a 1424 dnl single library, but not when more than one $LIBNAMEs are used. 1425 alldirs= 1426 for found_dir in $rpathdirs; do 1427 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 1428 done 1429 dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl. 1430 acl_save_libdir="$libdir" 1431 libdir="$alldirs" 1432 eval flag=\"$acl_hardcode_libdir_flag_spec\" 1433 libdir="$acl_save_libdir" 1434 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" 1435 else 1436 dnl The -rpath options are cumulative. 1437 for found_dir in $rpathdirs; do 1438 acl_save_libdir="$libdir" 1439 libdir="$found_dir" 1440 eval flag=\"$acl_hardcode_libdir_flag_spec\" 1441 libdir="$acl_save_libdir" 1442 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" 1443 done 1444 fi 1445 fi 1446 if test "X$ltrpathdirs" != "X"; then 1447 dnl When using libtool, the option that works for both libraries and 1448 dnl executables is -R. The -R options are cumulative. 1449 for found_dir in $ltrpathdirs; do 1450 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" 1451 done 1452 fi 1453 popdef([P_A_C_K]) 1454 popdef([PACKLIBS]) 1455 popdef([PACKUP]) 1456 popdef([PACK]) 1457 popdef([NAME]) 1458]) 1459 1460dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR, 1461dnl unless already present in VAR. 1462dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes 1463dnl contains two or three consecutive elements that belong together. 1464AC_DEFUN([AC_LIB_APPENDTOVAR], 1465[ 1466 for element in [$2]; do 1467 haveit= 1468 for x in $[$1]; do 1469 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) 1470 if test "X$x" = "X$element"; then 1471 haveit=yes 1472 break 1473 fi 1474 done 1475 if test -z "$haveit"; then 1476 [$1]="${[$1]}${[$1]:+ }$element" 1477 fi 1478 done 1479]) 1480 1481dnl For those cases where a variable contains several -L and -l options 1482dnl referring to unknown libraries and directories, this macro determines the 1483dnl necessary additional linker options for the runtime path. 1484dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL]) 1485dnl sets LDADDVAR to linker options needed together with LIBSVALUE. 1486dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed, 1487dnl otherwise linking without libtool is assumed. 1488AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS], 1489[ 1490 AC_REQUIRE([AC_LIB_RPATH]) 1491 AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) 1492 $1= 1493 if test "$enable_rpath" != no; then 1494 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 1495 dnl Use an explicit option to hardcode directories into the resulting 1496 dnl binary. 1497 rpathdirs= 1498 next= 1499 for opt in $2; do 1500 if test -n "$next"; then 1501 dir="$next" 1502 dnl No need to hardcode the standard /usr/lib. 1503 if test "X$dir" != "X/usr/$acl_libdirstem" \ 1504 && test "X$dir" != "X/usr/$acl_libdirstem2"; then 1505 rpathdirs="$rpathdirs $dir" 1506 fi 1507 next= 1508 else 1509 case $opt in 1510 -L) next=yes ;; 1511 -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'` 1512 dnl No need to hardcode the standard /usr/lib. 1513 if test "X$dir" != "X/usr/$acl_libdirstem" \ 1514 && test "X$dir" != "X/usr/$acl_libdirstem2"; then 1515 rpathdirs="$rpathdirs $dir" 1516 fi 1517 next= ;; 1518 *) next= ;; 1519 esac 1520 fi 1521 done 1522 if test "X$rpathdirs" != "X"; then 1523 if test -n ""$3""; then 1524 dnl libtool is used for linking. Use -R options. 1525 for dir in $rpathdirs; do 1526 $1="${$1}${$1:+ }-R$dir" 1527 done 1528 else 1529 dnl The linker is used for linking directly. 1530 if test -n "$acl_hardcode_libdir_separator"; then 1531 dnl Weird platform: only the last -rpath option counts, the user 1532 dnl must pass all path elements in one option. 1533 alldirs= 1534 for dir in $rpathdirs; do 1535 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir" 1536 done 1537 acl_save_libdir="$libdir" 1538 libdir="$alldirs" 1539 eval flag=\"$acl_hardcode_libdir_flag_spec\" 1540 libdir="$acl_save_libdir" 1541 $1="$flag" 1542 else 1543 dnl The -rpath options are cumulative. 1544 for dir in $rpathdirs; do 1545 acl_save_libdir="$libdir" 1546 libdir="$dir" 1547 eval flag=\"$acl_hardcode_libdir_flag_spec\" 1548 libdir="$acl_save_libdir" 1549 $1="${$1}${$1:+ }$flag" 1550 done 1551 fi 1552 fi 1553 fi 1554 fi 1555 fi 1556 AC_SUBST([$1]) 1557]) 1558 1559# lib-prefix.m4 serial 7 (gettext-0.18) 1560dnl Copyright (C) 2001-2005, 2008-2010 Free Software Foundation, Inc. 1561dnl This file is free software; the Free Software Foundation 1562dnl gives unlimited permission to copy and/or distribute it, 1563dnl with or without modifications, as long as this notice is preserved. 1564 1565dnl From Bruno Haible. 1566 1567dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and 1568dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't 1569dnl require excessive bracketing. 1570ifdef([AC_HELP_STRING], 1571[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])], 1572[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])]) 1573 1574dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed 1575dnl to access previously installed libraries. The basic assumption is that 1576dnl a user will want packages to use other packages he previously installed 1577dnl with the same --prefix option. 1578dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate 1579dnl libraries, but is otherwise very convenient. 1580AC_DEFUN([AC_LIB_PREFIX], 1581[ 1582 AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) 1583 AC_REQUIRE([AC_PROG_CC]) 1584 AC_REQUIRE([AC_CANONICAL_HOST]) 1585 AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) 1586 AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) 1587 dnl By default, look in $includedir and $libdir. 1588 use_additional=yes 1589 AC_LIB_WITH_FINAL_PREFIX([ 1590 eval additional_includedir=\"$includedir\" 1591 eval additional_libdir=\"$libdir\" 1592 ]) 1593 AC_LIB_ARG_WITH([lib-prefix], 1594[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib 1595 --without-lib-prefix don't search for libraries in includedir and libdir], 1596[ 1597 if test "X$withval" = "Xno"; then 1598 use_additional=no 1599 else 1600 if test "X$withval" = "X"; then 1601 AC_LIB_WITH_FINAL_PREFIX([ 1602 eval additional_includedir=\"$includedir\" 1603 eval additional_libdir=\"$libdir\" 1604 ]) 1605 else 1606 additional_includedir="$withval/include" 1607 additional_libdir="$withval/$acl_libdirstem" 1608 fi 1609 fi 1610]) 1611 if test $use_additional = yes; then 1612 dnl Potentially add $additional_includedir to $CPPFLAGS. 1613 dnl But don't add it 1614 dnl 1. if it's the standard /usr/include, 1615 dnl 2. if it's already present in $CPPFLAGS, 1616 dnl 3. if it's /usr/local/include and we are using GCC on Linux, 1617 dnl 4. if it doesn't exist as a directory. 1618 if test "X$additional_includedir" != "X/usr/include"; then 1619 haveit= 1620 for x in $CPPFLAGS; do 1621 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) 1622 if test "X$x" = "X-I$additional_includedir"; then 1623 haveit=yes 1624 break 1625 fi 1626 done 1627 if test -z "$haveit"; then 1628 if test "X$additional_includedir" = "X/usr/local/include"; then 1629 if test -n "$GCC"; then 1630 case $host_os in 1631 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 1632 esac 1633 fi 1634 fi 1635 if test -z "$haveit"; then 1636 if test -d "$additional_includedir"; then 1637 dnl Really add $additional_includedir to $CPPFLAGS. 1638 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" 1639 fi 1640 fi 1641 fi 1642 fi 1643 dnl Potentially add $additional_libdir to $LDFLAGS. 1644 dnl But don't add it 1645 dnl 1. if it's the standard /usr/lib, 1646 dnl 2. if it's already present in $LDFLAGS, 1647 dnl 3. if it's /usr/local/lib and we are using GCC on Linux, 1648 dnl 4. if it doesn't exist as a directory. 1649 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then 1650 haveit= 1651 for x in $LDFLAGS; do 1652 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) 1653 if test "X$x" = "X-L$additional_libdir"; then 1654 haveit=yes 1655 break 1656 fi 1657 done 1658 if test -z "$haveit"; then 1659 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then 1660 if test -n "$GCC"; then 1661 case $host_os in 1662 linux*) haveit=yes;; 1663 esac 1664 fi 1665 fi 1666 if test -z "$haveit"; then 1667 if test -d "$additional_libdir"; then 1668 dnl Really add $additional_libdir to $LDFLAGS. 1669 LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" 1670 fi 1671 fi 1672 fi 1673 fi 1674 fi 1675]) 1676 1677dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix, 1678dnl acl_final_exec_prefix, containing the values to which $prefix and 1679dnl $exec_prefix will expand at the end of the configure script. 1680AC_DEFUN([AC_LIB_PREPARE_PREFIX], 1681[ 1682 dnl Unfortunately, prefix and exec_prefix get only finally determined 1683 dnl at the end of configure. 1684 if test "X$prefix" = "XNONE"; then 1685 acl_final_prefix="$ac_default_prefix" 1686 else 1687 acl_final_prefix="$prefix" 1688 fi 1689 if test "X$exec_prefix" = "XNONE"; then 1690 acl_final_exec_prefix='${prefix}' 1691 else 1692 acl_final_exec_prefix="$exec_prefix" 1693 fi 1694 acl_save_prefix="$prefix" 1695 prefix="$acl_final_prefix" 1696 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 1697 prefix="$acl_save_prefix" 1698]) 1699 1700dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the 1701dnl variables prefix and exec_prefix bound to the values they will have 1702dnl at the end of the configure script. 1703AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], 1704[ 1705 acl_save_prefix="$prefix" 1706 prefix="$acl_final_prefix" 1707 acl_save_exec_prefix="$exec_prefix" 1708 exec_prefix="$acl_final_exec_prefix" 1709 $1 1710 exec_prefix="$acl_save_exec_prefix" 1711 prefix="$acl_save_prefix" 1712]) 1713 1714dnl AC_LIB_PREPARE_MULTILIB creates 1715dnl - a variable acl_libdirstem, containing the basename of the libdir, either 1716dnl "lib" or "lib64" or "lib/64", 1717dnl - a variable acl_libdirstem2, as a secondary possible value for 1718dnl acl_libdirstem, either the same as acl_libdirstem or "lib/sparcv9" or 1719dnl "lib/amd64". 1720AC_DEFUN([AC_LIB_PREPARE_MULTILIB], 1721[ 1722 dnl There is no formal standard regarding lib and lib64. 1723 dnl On glibc systems, the current practice is that on a system supporting 1724 dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under 1725 dnl $prefix/lib64 and 32-bit libraries go under $prefix/lib. We determine 1726 dnl the compiler's default mode by looking at the compiler's library search 1727 dnl path. If at least one of its elements ends in /lib64 or points to a 1728 dnl directory whose absolute pathname ends in /lib64, we assume a 64-bit ABI. 1729 dnl Otherwise we use the default, namely "lib". 1730 dnl On Solaris systems, the current practice is that on a system supporting 1731 dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under 1732 dnl $prefix/lib/64 (which is a symlink to either $prefix/lib/sparcv9 or 1733 dnl $prefix/lib/amd64) and 32-bit libraries go under $prefix/lib. 1734 AC_REQUIRE([AC_CANONICAL_HOST]) 1735 acl_libdirstem=lib 1736 acl_libdirstem2= 1737 case "$host_os" in 1738 solaris*) 1739 dnl See Solaris 10 Software Developer Collection > Solaris 64-bit Developer's Guide > The Development Environment 1740 dnl <http://docs.sun.com/app/docs/doc/816-5138/dev-env?l=en&a=view>. 1741 dnl "Portable Makefiles should refer to any library directories using the 64 symbolic link." 1742 dnl But we want to recognize the sparcv9 or amd64 subdirectory also if the 1743 dnl symlink is missing, so we set acl_libdirstem2 too. 1744 AC_CACHE_CHECK([for 64-bit host], [gl_cv_solaris_64bit], 1745 [AC_EGREP_CPP([sixtyfour bits], [ 1746#ifdef _LP64 1747sixtyfour bits 1748#endif 1749 ], [gl_cv_solaris_64bit=yes], [gl_cv_solaris_64bit=no]) 1750 ]) 1751 if test $gl_cv_solaris_64bit = yes; then 1752 acl_libdirstem=lib/64 1753 case "$host_cpu" in 1754 sparc*) acl_libdirstem2=lib/sparcv9 ;; 1755 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; 1756 esac 1757 fi 1758 ;; 1759 *) 1760 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 1761 if test -n "$searchpath"; then 1762 acl_save_IFS="${IFS= }"; IFS=":" 1763 for searchdir in $searchpath; do 1764 if test -d "$searchdir"; then 1765 case "$searchdir" in 1766 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 1767 */../ | */.. ) 1768 # Better ignore directories of this form. They are misleading. 1769 ;; 1770 *) searchdir=`cd "$searchdir" && pwd` 1771 case "$searchdir" in 1772 */lib64 ) acl_libdirstem=lib64 ;; 1773 esac ;; 1774 esac 1775 fi 1776 done 1777 IFS="$acl_save_IFS" 1778 fi 1779 ;; 1780 esac 1781 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" 1782]) 1783 1784# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 1785# 1786# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 1787# 2006, 2007, 2008 Free Software Foundation, Inc. 1788# Written by Gordon Matzigkeit, 1996 1789# 1790# This file is free software; the Free Software Foundation gives 1791# unlimited permission to copy and/or distribute it, with or without 1792# modifications, as long as this notice is preserved. 1793 1794m4_define([_LT_COPYING], [dnl 1795# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 1796# 2006, 2007, 2008 Free Software Foundation, Inc. 1797# Written by Gordon Matzigkeit, 1996 1798# 1799# This file is part of GNU Libtool. 1800# 1801# GNU Libtool is free software; you can redistribute it and/or 1802# modify it under the terms of the GNU General Public License as 1803# published by the Free Software Foundation; either version 2 of 1804# the License, or (at your option) any later version. 1805# 1806# As a special exception to the GNU General Public License, 1807# if you distribute this file as part of a program or library that 1808# is built using GNU Libtool, you may include this file under the 1809# same distribution terms that you use for the rest of that program. 1810# 1811# GNU Libtool is distributed in the hope that it will be useful, 1812# but WITHOUT ANY WARRANTY; without even the implied warranty of 1813# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1814# GNU General Public License for more details. 1815# 1816# You should have received a copy of the GNU General Public License 1817# along with GNU Libtool; see the file COPYING. If not, a copy 1818# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 1819# obtained by writing to the Free Software Foundation, Inc., 1820# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 1821]) 1822 1823# serial 56 LT_INIT 1824 1825 1826# LT_PREREQ(VERSION) 1827# ------------------ 1828# Complain and exit if this libtool version is less that VERSION. 1829m4_defun([LT_PREREQ], 1830[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, 1831 [m4_default([$3], 1832 [m4_fatal([Libtool version $1 or higher is required], 1833 63)])], 1834 [$2])]) 1835 1836 1837# _LT_CHECK_BUILDDIR 1838# ------------------ 1839# Complain if the absolute build directory name contains unusual characters 1840m4_defun([_LT_CHECK_BUILDDIR], 1841[case `pwd` in 1842 *\ * | *\ *) 1843 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; 1844esac 1845]) 1846 1847 1848# LT_INIT([OPTIONS]) 1849# ------------------ 1850AC_DEFUN([LT_INIT], 1851[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT 1852AC_BEFORE([$0], [LT_LANG])dnl 1853AC_BEFORE([$0], [LT_OUTPUT])dnl 1854AC_BEFORE([$0], [LTDL_INIT])dnl 1855m4_require([_LT_CHECK_BUILDDIR])dnl 1856 1857dnl Autoconf doesn't catch unexpanded LT_ macros by default: 1858m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl 1859m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl 1860dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 1861dnl unless we require an AC_DEFUNed macro: 1862AC_REQUIRE([LTOPTIONS_VERSION])dnl 1863AC_REQUIRE([LTSUGAR_VERSION])dnl 1864AC_REQUIRE([LTVERSION_VERSION])dnl 1865AC_REQUIRE([LTOBSOLETE_VERSION])dnl 1866m4_require([_LT_PROG_LTMAIN])dnl 1867 1868dnl Parse OPTIONS 1869_LT_SET_OPTIONS([$0], [$1]) 1870 1871# This can be used to rebuild libtool when needed 1872LIBTOOL_DEPS="$ltmain" 1873 1874# Always use our own libtool. 1875LIBTOOL='$(SHELL) $(top_builddir)/libtool' 1876AC_SUBST(LIBTOOL)dnl 1877 1878_LT_SETUP 1879 1880# Only expand once: 1881m4_define([LT_INIT]) 1882])# LT_INIT 1883 1884# Old names: 1885AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) 1886AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) 1887dnl aclocal-1.4 backwards compatibility: 1888dnl AC_DEFUN([AC_PROG_LIBTOOL], []) 1889dnl AC_DEFUN([AM_PROG_LIBTOOL], []) 1890 1891 1892# _LT_CC_BASENAME(CC) 1893# ------------------- 1894# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 1895m4_defun([_LT_CC_BASENAME], 1896[for cc_temp in $1""; do 1897 case $cc_temp in 1898 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 1899 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 1900 \-*) ;; 1901 *) break;; 1902 esac 1903done 1904cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 1905]) 1906 1907 1908# _LT_FILEUTILS_DEFAULTS 1909# ---------------------- 1910# It is okay to use these file commands and assume they have been set 1911# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. 1912m4_defun([_LT_FILEUTILS_DEFAULTS], 1913[: ${CP="cp -f"} 1914: ${MV="mv -f"} 1915: ${RM="rm -f"} 1916])# _LT_FILEUTILS_DEFAULTS 1917 1918 1919# _LT_SETUP 1920# --------- 1921m4_defun([_LT_SETUP], 1922[AC_REQUIRE([AC_CANONICAL_HOST])dnl 1923AC_REQUIRE([AC_CANONICAL_BUILD])dnl 1924_LT_DECL([], [host_alias], [0], [The host system])dnl 1925_LT_DECL([], [host], [0])dnl 1926_LT_DECL([], [host_os], [0])dnl 1927dnl 1928_LT_DECL([], [build_alias], [0], [The build system])dnl 1929_LT_DECL([], [build], [0])dnl 1930_LT_DECL([], [build_os], [0])dnl 1931dnl 1932AC_REQUIRE([AC_PROG_CC])dnl 1933AC_REQUIRE([LT_PATH_LD])dnl 1934AC_REQUIRE([LT_PATH_NM])dnl 1935dnl 1936AC_REQUIRE([AC_PROG_LN_S])dnl 1937test -z "$LN_S" && LN_S="ln -s" 1938_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl 1939dnl 1940AC_REQUIRE([LT_CMD_MAX_LEN])dnl 1941_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl 1942_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl 1943dnl 1944m4_require([_LT_FILEUTILS_DEFAULTS])dnl 1945m4_require([_LT_CHECK_SHELL_FEATURES])dnl 1946m4_require([_LT_CMD_RELOAD])dnl 1947m4_require([_LT_CHECK_MAGIC_METHOD])dnl 1948m4_require([_LT_CMD_OLD_ARCHIVE])dnl 1949m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 1950 1951_LT_CONFIG_LIBTOOL_INIT([ 1952# See if we are running on zsh, and set the options which allow our 1953# commands through without removal of \ escapes INIT. 1954if test -n "\${ZSH_VERSION+set}" ; then 1955 setopt NO_GLOB_SUBST 1956fi 1957]) 1958if test -n "${ZSH_VERSION+set}" ; then 1959 setopt NO_GLOB_SUBST 1960fi 1961 1962_LT_CHECK_OBJDIR 1963 1964m4_require([_LT_TAG_COMPILER])dnl 1965_LT_PROG_ECHO_BACKSLASH 1966 1967case $host_os in 1968aix3*) 1969 # AIX sometimes has problems with the GCC collect2 program. For some 1970 # reason, if we set the COLLECT_NAMES environment variable, the problems 1971 # vanish in a puff of smoke. 1972 if test "X${COLLECT_NAMES+set}" != Xset; then 1973 COLLECT_NAMES= 1974 export COLLECT_NAMES 1975 fi 1976 ;; 1977esac 1978 1979# Sed substitution that helps us do robust quoting. It backslashifies 1980# metacharacters that are still active within double-quoted strings. 1981sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' 1982 1983# Same as above, but do not quote variable references. 1984double_quote_subst='s/\([["`\\]]\)/\\\1/g' 1985 1986# Sed substitution to delay expansion of an escaped shell variable in a 1987# double_quote_subst'ed string. 1988delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 1989 1990# Sed substitution to delay expansion of an escaped single quote. 1991delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 1992 1993# Sed substitution to avoid accidental globbing in evaled expressions 1994no_glob_subst='s/\*/\\\*/g' 1995 1996# Global variables: 1997ofile=libtool 1998can_build_shared=yes 1999 2000# All known linkers require a `.a' archive for static linking (except MSVC, 2001# which needs '.lib'). 2002libext=a 2003 2004with_gnu_ld="$lt_cv_prog_gnu_ld" 2005 2006old_CC="$CC" 2007old_CFLAGS="$CFLAGS" 2008 2009# Set sane defaults for various variables 2010test -z "$CC" && CC=cc 2011test -z "$LTCC" && LTCC=$CC 2012test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 2013test -z "$LD" && LD=ld 2014test -z "$ac_objext" && ac_objext=o 2015 2016_LT_CC_BASENAME([$compiler]) 2017 2018# Only perform the check for file, if the check method requires it 2019test -z "$MAGIC_CMD" && MAGIC_CMD=file 2020case $deplibs_check_method in 2021file_magic*) 2022 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 2023 _LT_PATH_MAGIC 2024 fi 2025 ;; 2026esac 2027 2028# Use C for the default configuration in the libtool script 2029LT_SUPPORTED_TAG([CC]) 2030_LT_LANG_C_CONFIG 2031_LT_LANG_DEFAULT_CONFIG 2032_LT_CONFIG_COMMANDS 2033])# _LT_SETUP 2034 2035 2036# _LT_PROG_LTMAIN 2037# --------------- 2038# Note that this code is called both from `configure', and `config.status' 2039# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, 2040# `config.status' has no value for ac_aux_dir unless we are using Automake, 2041# so we pass a copy along to make sure it has a sensible value anyway. 2042m4_defun([_LT_PROG_LTMAIN], 2043[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl 2044_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) 2045ltmain="$ac_aux_dir/ltmain.sh" 2046])# _LT_PROG_LTMAIN 2047 2048 2049 2050# So that we can recreate a full libtool script including additional 2051# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS 2052# in macros and then make a single call at the end using the `libtool' 2053# label. 2054 2055 2056# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) 2057# ---------------------------------------- 2058# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. 2059m4_define([_LT_CONFIG_LIBTOOL_INIT], 2060[m4_ifval([$1], 2061 [m4_append([_LT_OUTPUT_LIBTOOL_INIT], 2062 [$1 2063])])]) 2064 2065# Initialize. 2066m4_define([_LT_OUTPUT_LIBTOOL_INIT]) 2067 2068 2069# _LT_CONFIG_LIBTOOL([COMMANDS]) 2070# ------------------------------ 2071# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. 2072m4_define([_LT_CONFIG_LIBTOOL], 2073[m4_ifval([$1], 2074 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], 2075 [$1 2076])])]) 2077 2078# Initialize. 2079m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) 2080 2081 2082# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) 2083# ----------------------------------------------------- 2084m4_defun([_LT_CONFIG_SAVE_COMMANDS], 2085[_LT_CONFIG_LIBTOOL([$1]) 2086_LT_CONFIG_LIBTOOL_INIT([$2]) 2087]) 2088 2089 2090# _LT_FORMAT_COMMENT([COMMENT]) 2091# ----------------------------- 2092# Add leading comment marks to the start of each line, and a trailing 2093# full-stop to the whole comment if one is not present already. 2094m4_define([_LT_FORMAT_COMMENT], 2095[m4_ifval([$1], [ 2096m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], 2097 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) 2098)]) 2099 2100 2101 2102 2103 2104# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) 2105# ------------------------------------------------------------------- 2106# CONFIGNAME is the name given to the value in the libtool script. 2107# VARNAME is the (base) name used in the configure script. 2108# VALUE may be 0, 1 or 2 for a computed quote escaped value based on 2109# VARNAME. Any other value will be used directly. 2110m4_define([_LT_DECL], 2111[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], 2112 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], 2113 [m4_ifval([$1], [$1], [$2])]) 2114 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) 2115 m4_ifval([$4], 2116 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) 2117 lt_dict_add_subkey([lt_decl_dict], [$2], 2118 [tagged?], [m4_ifval([$5], [yes], [no])])]) 2119]) 2120 2121 2122# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) 2123# -------------------------------------------------------- 2124m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) 2125 2126 2127# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) 2128# ------------------------------------------------ 2129m4_define([lt_decl_tag_varnames], 2130[_lt_decl_filter([tagged?], [yes], $@)]) 2131 2132 2133# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) 2134# --------------------------------------------------------- 2135m4_define([_lt_decl_filter], 2136[m4_case([$#], 2137 [0], [m4_fatal([$0: too few arguments: $#])], 2138 [1], [m4_fatal([$0: too few arguments: $#: $1])], 2139 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], 2140 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], 2141 [lt_dict_filter([lt_decl_dict], $@)])[]dnl 2142]) 2143 2144 2145# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) 2146# -------------------------------------------------- 2147m4_define([lt_decl_quote_varnames], 2148[_lt_decl_filter([value], [1], $@)]) 2149 2150 2151# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) 2152# --------------------------------------------------- 2153m4_define([lt_decl_dquote_varnames], 2154[_lt_decl_filter([value], [2], $@)]) 2155 2156 2157# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) 2158# --------------------------------------------------- 2159m4_define([lt_decl_varnames_tagged], 2160[m4_assert([$# <= 2])dnl 2161_$0(m4_quote(m4_default([$1], [[, ]])), 2162 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), 2163 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) 2164m4_define([_lt_decl_varnames_tagged], 2165[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) 2166 2167 2168# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) 2169# ------------------------------------------------ 2170m4_define([lt_decl_all_varnames], 2171[_$0(m4_quote(m4_default([$1], [[, ]])), 2172 m4_if([$2], [], 2173 m4_quote(lt_decl_varnames), 2174 m4_quote(m4_shift($@))))[]dnl 2175]) 2176m4_define([_lt_decl_all_varnames], 2177[lt_join($@, lt_decl_varnames_tagged([$1], 2178 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl 2179]) 2180 2181 2182# _LT_CONFIG_STATUS_DECLARE([VARNAME]) 2183# ------------------------------------ 2184# Quote a variable value, and forward it to `config.status' so that its 2185# declaration there will have the same value as in `configure'. VARNAME 2186# must have a single quote delimited value for this to work. 2187m4_define([_LT_CONFIG_STATUS_DECLARE], 2188[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`']) 2189 2190 2191# _LT_CONFIG_STATUS_DECLARATIONS 2192# ------------------------------ 2193# We delimit libtool config variables with single quotes, so when 2194# we write them to config.status, we have to be sure to quote all 2195# embedded single quotes properly. In configure, this macro expands 2196# each variable declared with _LT_DECL (and _LT_TAGDECL) into: 2197# 2198# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`' 2199m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], 2200[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), 2201 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) 2202 2203 2204# _LT_LIBTOOL_TAGS 2205# ---------------- 2206# Output comment and list of tags supported by the script 2207m4_defun([_LT_LIBTOOL_TAGS], 2208[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl 2209available_tags="_LT_TAGS"dnl 2210]) 2211 2212 2213# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) 2214# ----------------------------------- 2215# Extract the dictionary values for VARNAME (optionally with TAG) and 2216# expand to a commented shell variable setting: 2217# 2218# # Some comment about what VAR is for. 2219# visible_name=$lt_internal_name 2220m4_define([_LT_LIBTOOL_DECLARE], 2221[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], 2222 [description])))[]dnl 2223m4_pushdef([_libtool_name], 2224 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl 2225m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), 2226 [0], [_libtool_name=[$]$1], 2227 [1], [_libtool_name=$lt_[]$1], 2228 [2], [_libtool_name=$lt_[]$1], 2229 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl 2230m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl 2231]) 2232 2233 2234# _LT_LIBTOOL_CONFIG_VARS 2235# ----------------------- 2236# Produce commented declarations of non-tagged libtool config variables 2237# suitable for insertion in the LIBTOOL CONFIG section of the `libtool' 2238# script. Tagged libtool config variables (even for the LIBTOOL CONFIG 2239# section) are produced by _LT_LIBTOOL_TAG_VARS. 2240m4_defun([_LT_LIBTOOL_CONFIG_VARS], 2241[m4_foreach([_lt_var], 2242 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), 2243 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) 2244 2245 2246# _LT_LIBTOOL_TAG_VARS(TAG) 2247# ------------------------- 2248m4_define([_LT_LIBTOOL_TAG_VARS], 2249[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), 2250 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) 2251 2252 2253# _LT_TAGVAR(VARNAME, [TAGNAME]) 2254# ------------------------------ 2255m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) 2256 2257 2258# _LT_CONFIG_COMMANDS 2259# ------------------- 2260# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of 2261# variables for single and double quote escaping we saved from calls 2262# to _LT_DECL, we can put quote escaped variables declarations 2263# into `config.status', and then the shell code to quote escape them in 2264# for loops in `config.status'. Finally, any additional code accumulated 2265# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. 2266m4_defun([_LT_CONFIG_COMMANDS], 2267[AC_PROVIDE_IFELSE([LT_OUTPUT], 2268 dnl If the libtool generation code has been placed in $CONFIG_LT, 2269 dnl instead of duplicating it all over again into config.status, 2270 dnl then we will have config.status run $CONFIG_LT later, so it 2271 dnl needs to know what name is stored there: 2272 [AC_CONFIG_COMMANDS([libtool], 2273 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], 2274 dnl If the libtool generation code is destined for config.status, 2275 dnl expand the accumulated commands and init code now: 2276 [AC_CONFIG_COMMANDS([libtool], 2277 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) 2278])#_LT_CONFIG_COMMANDS 2279 2280 2281# Initialize. 2282m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], 2283[ 2284 2285# The HP-UX ksh and POSIX shell print the target directory to stdout 2286# if CDPATH is set. 2287(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 2288 2289sed_quote_subst='$sed_quote_subst' 2290double_quote_subst='$double_quote_subst' 2291delay_variable_subst='$delay_variable_subst' 2292_LT_CONFIG_STATUS_DECLARATIONS 2293LTCC='$LTCC' 2294LTCFLAGS='$LTCFLAGS' 2295compiler='$compiler_DEFAULT' 2296 2297# Quote evaled strings. 2298for var in lt_decl_all_varnames([[ \ 2299]], lt_decl_quote_varnames); do 2300 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 2301 *[[\\\\\\\`\\"\\\$]]*) 2302 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 2303 ;; 2304 *) 2305 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 2306 ;; 2307 esac 2308done 2309 2310# Double-quote double-evaled strings. 2311for var in lt_decl_all_varnames([[ \ 2312]], lt_decl_dquote_varnames); do 2313 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 2314 *[[\\\\\\\`\\"\\\$]]*) 2315 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 2316 ;; 2317 *) 2318 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 2319 ;; 2320 esac 2321done 2322 2323# Fix-up fallback echo if it was mangled by the above quoting rules. 2324case \$lt_ECHO in 2325*'\\\[$]0 --fallback-echo"')dnl " 2326 lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\` 2327 ;; 2328esac 2329 2330_LT_OUTPUT_LIBTOOL_INIT 2331]) 2332 2333 2334# LT_OUTPUT 2335# --------- 2336# This macro allows early generation of the libtool script (before 2337# AC_OUTPUT is called), incase it is used in configure for compilation 2338# tests. 2339AC_DEFUN([LT_OUTPUT], 2340[: ${CONFIG_LT=./config.lt} 2341AC_MSG_NOTICE([creating $CONFIG_LT]) 2342cat >"$CONFIG_LT" <<_LTEOF 2343#! $SHELL 2344# Generated by $as_me. 2345# Run this file to recreate a libtool stub with the current configuration. 2346 2347lt_cl_silent=false 2348SHELL=\${CONFIG_SHELL-$SHELL} 2349_LTEOF 2350 2351cat >>"$CONFIG_LT" <<\_LTEOF 2352AS_SHELL_SANITIZE 2353_AS_PREPARE 2354 2355exec AS_MESSAGE_FD>&1 2356exec AS_MESSAGE_LOG_FD>>config.log 2357{ 2358 echo 2359 AS_BOX([Running $as_me.]) 2360} >&AS_MESSAGE_LOG_FD 2361 2362lt_cl_help="\ 2363\`$as_me' creates a local libtool stub from the current configuration, 2364for use in further configure time tests before the real libtool is 2365generated. 2366 2367Usage: $[0] [[OPTIONS]] 2368 2369 -h, --help print this help, then exit 2370 -V, --version print version number, then exit 2371 -q, --quiet do not print progress messages 2372 -d, --debug don't remove temporary files 2373 2374Report bugs to <bug-libtool@gnu.org>." 2375 2376lt_cl_version="\ 2377m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl 2378m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) 2379configured by $[0], generated by m4_PACKAGE_STRING. 2380 2381Copyright (C) 2008 Free Software Foundation, Inc. 2382This config.lt script is free software; the Free Software Foundation 2383gives unlimited permision to copy, distribute and modify it." 2384 2385while test $[#] != 0 2386do 2387 case $[1] in 2388 --version | --v* | -V ) 2389 echo "$lt_cl_version"; exit 0 ;; 2390 --help | --h* | -h ) 2391 echo "$lt_cl_help"; exit 0 ;; 2392 --debug | --d* | -d ) 2393 debug=: ;; 2394 --quiet | --q* | --silent | --s* | -q ) 2395 lt_cl_silent=: ;; 2396 2397 -*) AC_MSG_ERROR([unrecognized option: $[1] 2398Try \`$[0] --help' for more information.]) ;; 2399 2400 *) AC_MSG_ERROR([unrecognized argument: $[1] 2401Try \`$[0] --help' for more information.]) ;; 2402 esac 2403 shift 2404done 2405 2406if $lt_cl_silent; then 2407 exec AS_MESSAGE_FD>/dev/null 2408fi 2409_LTEOF 2410 2411cat >>"$CONFIG_LT" <<_LTEOF 2412_LT_OUTPUT_LIBTOOL_COMMANDS_INIT 2413_LTEOF 2414 2415cat >>"$CONFIG_LT" <<\_LTEOF 2416AC_MSG_NOTICE([creating $ofile]) 2417_LT_OUTPUT_LIBTOOL_COMMANDS 2418AS_EXIT(0) 2419_LTEOF 2420chmod +x "$CONFIG_LT" 2421 2422# configure is writing to config.log, but config.lt does its own redirection, 2423# appending to config.log, which fails on DOS, as config.log is still kept 2424# open by configure. Here we exec the FD to /dev/null, effectively closing 2425# config.log, so it can be properly (re)opened and appended to by config.lt. 2426if test "$no_create" != yes; then 2427 lt_cl_success=: 2428 test "$silent" = yes && 2429 lt_config_lt_args="$lt_config_lt_args --quiet" 2430 exec AS_MESSAGE_LOG_FD>/dev/null 2431 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false 2432 exec AS_MESSAGE_LOG_FD>>config.log 2433 $lt_cl_success || AS_EXIT(1) 2434fi 2435])# LT_OUTPUT 2436 2437 2438# _LT_CONFIG(TAG) 2439# --------------- 2440# If TAG is the built-in tag, create an initial libtool script with a 2441# default configuration from the untagged config vars. Otherwise add code 2442# to config.status for appending the configuration named by TAG from the 2443# matching tagged config vars. 2444m4_defun([_LT_CONFIG], 2445[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 2446_LT_CONFIG_SAVE_COMMANDS([ 2447 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl 2448 m4_if(_LT_TAG, [C], [ 2449 # See if we are running on zsh, and set the options which allow our 2450 # commands through without removal of \ escapes. 2451 if test -n "${ZSH_VERSION+set}" ; then 2452 setopt NO_GLOB_SUBST 2453 fi 2454 2455 cfgfile="${ofile}T" 2456 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 2457 $RM "$cfgfile" 2458 2459 cat <<_LT_EOF >> "$cfgfile" 2460#! $SHELL 2461 2462# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 2463# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 2464# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 2465# NOTE: Changes made to this file will be lost: look at ltmain.sh. 2466# 2467_LT_COPYING 2468_LT_LIBTOOL_TAGS 2469 2470# ### BEGIN LIBTOOL CONFIG 2471_LT_LIBTOOL_CONFIG_VARS 2472_LT_LIBTOOL_TAG_VARS 2473# ### END LIBTOOL CONFIG 2474 2475_LT_EOF 2476 2477 case $host_os in 2478 aix3*) 2479 cat <<\_LT_EOF >> "$cfgfile" 2480# AIX sometimes has problems with the GCC collect2 program. For some 2481# reason, if we set the COLLECT_NAMES environment variable, the problems 2482# vanish in a puff of smoke. 2483if test "X${COLLECT_NAMES+set}" != Xset; then 2484 COLLECT_NAMES= 2485 export COLLECT_NAMES 2486fi 2487_LT_EOF 2488 ;; 2489 esac 2490 2491 _LT_PROG_LTMAIN 2492 2493 # We use sed instead of cat because bash on DJGPP gets confused if 2494 # if finds mixed CR/LF and LF-only lines. Since sed operates in 2495 # text mode, it properly converts lines to CR/LF. This bash problem 2496 # is reportedly fixed, but why not run on old versions too? 2497 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 2498 || (rm -f "$cfgfile"; exit 1) 2499 2500 _LT_PROG_XSI_SHELLFNS 2501 2502 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 2503 || (rm -f "$cfgfile"; exit 1) 2504 2505 mv -f "$cfgfile" "$ofile" || 2506 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 2507 chmod +x "$ofile" 2508], 2509[cat <<_LT_EOF >> "$ofile" 2510 2511dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded 2512dnl in a comment (ie after a #). 2513# ### BEGIN LIBTOOL TAG CONFIG: $1 2514_LT_LIBTOOL_TAG_VARS(_LT_TAG) 2515# ### END LIBTOOL TAG CONFIG: $1 2516_LT_EOF 2517])dnl /m4_if 2518], 2519[m4_if([$1], [], [ 2520 PACKAGE='$PACKAGE' 2521 VERSION='$VERSION' 2522 TIMESTAMP='$TIMESTAMP' 2523 RM='$RM' 2524 ofile='$ofile'], []) 2525])dnl /_LT_CONFIG_SAVE_COMMANDS 2526])# _LT_CONFIG 2527 2528 2529# LT_SUPPORTED_TAG(TAG) 2530# --------------------- 2531# Trace this macro to discover what tags are supported by the libtool 2532# --tag option, using: 2533# autoconf --trace 'LT_SUPPORTED_TAG:$1' 2534AC_DEFUN([LT_SUPPORTED_TAG], []) 2535 2536 2537# C support is built-in for now 2538m4_define([_LT_LANG_C_enabled], []) 2539m4_define([_LT_TAGS], []) 2540 2541 2542# LT_LANG(LANG) 2543# ------------- 2544# Enable libtool support for the given language if not already enabled. 2545AC_DEFUN([LT_LANG], 2546[AC_BEFORE([$0], [LT_OUTPUT])dnl 2547m4_case([$1], 2548 [C], [_LT_LANG(C)], 2549 [C++], [_LT_LANG(CXX)], 2550 [Java], [_LT_LANG(GCJ)], 2551 [Fortran 77], [_LT_LANG(F77)], 2552 [Fortran], [_LT_LANG(FC)], 2553 [Windows Resource], [_LT_LANG(RC)], 2554 [m4_ifdef([_LT_LANG_]$1[_CONFIG], 2555 [_LT_LANG($1)], 2556 [m4_fatal([$0: unsupported language: "$1"])])])dnl 2557])# LT_LANG 2558 2559 2560# _LT_LANG(LANGNAME) 2561# ------------------ 2562m4_defun([_LT_LANG], 2563[m4_ifdef([_LT_LANG_]$1[_enabled], [], 2564 [LT_SUPPORTED_TAG([$1])dnl 2565 m4_append([_LT_TAGS], [$1 ])dnl 2566 m4_define([_LT_LANG_]$1[_enabled], [])dnl 2567 _LT_LANG_$1_CONFIG($1)])dnl 2568])# _LT_LANG 2569 2570 2571# _LT_LANG_DEFAULT_CONFIG 2572# ----------------------- 2573m4_defun([_LT_LANG_DEFAULT_CONFIG], 2574[AC_PROVIDE_IFELSE([AC_PROG_CXX], 2575 [LT_LANG(CXX)], 2576 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) 2577 2578AC_PROVIDE_IFELSE([AC_PROG_F77], 2579 [LT_LANG(F77)], 2580 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) 2581 2582AC_PROVIDE_IFELSE([AC_PROG_FC], 2583 [LT_LANG(FC)], 2584 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) 2585 2586dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal 2587dnl pulling things in needlessly. 2588AC_PROVIDE_IFELSE([AC_PROG_GCJ], 2589 [LT_LANG(GCJ)], 2590 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], 2591 [LT_LANG(GCJ)], 2592 [AC_PROVIDE_IFELSE([LT_PROG_GCJ], 2593 [LT_LANG(GCJ)], 2594 [m4_ifdef([AC_PROG_GCJ], 2595 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) 2596 m4_ifdef([A][M_PROG_GCJ], 2597 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) 2598 m4_ifdef([LT_PROG_GCJ], 2599 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) 2600 2601AC_PROVIDE_IFELSE([LT_PROG_RC], 2602 [LT_LANG(RC)], 2603 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) 2604])# _LT_LANG_DEFAULT_CONFIG 2605 2606# Obsolete macros: 2607AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) 2608AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) 2609AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) 2610AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) 2611dnl aclocal-1.4 backwards compatibility: 2612dnl AC_DEFUN([AC_LIBTOOL_CXX], []) 2613dnl AC_DEFUN([AC_LIBTOOL_F77], []) 2614dnl AC_DEFUN([AC_LIBTOOL_FC], []) 2615dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) 2616 2617 2618# _LT_TAG_COMPILER 2619# ---------------- 2620m4_defun([_LT_TAG_COMPILER], 2621[AC_REQUIRE([AC_PROG_CC])dnl 2622 2623_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl 2624_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl 2625_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl 2626_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl 2627 2628# If no C compiler was specified, use CC. 2629LTCC=${LTCC-"$CC"} 2630 2631# If no C compiler flags were specified, use CFLAGS. 2632LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 2633 2634# Allow CC to be a program name with arguments. 2635compiler=$CC 2636])# _LT_TAG_COMPILER 2637 2638 2639# _LT_COMPILER_BOILERPLATE 2640# ------------------------ 2641# Check for compiler boilerplate output or warnings with 2642# the simple compiler test code. 2643m4_defun([_LT_COMPILER_BOILERPLATE], 2644[m4_require([_LT_DECL_SED])dnl 2645ac_outfile=conftest.$ac_objext 2646echo "$lt_simple_compile_test_code" >conftest.$ac_ext 2647eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 2648_lt_compiler_boilerplate=`cat conftest.err` 2649$RM conftest* 2650])# _LT_COMPILER_BOILERPLATE 2651 2652 2653# _LT_LINKER_BOILERPLATE 2654# ---------------------- 2655# Check for linker boilerplate output or warnings with 2656# the simple link test code. 2657m4_defun([_LT_LINKER_BOILERPLATE], 2658[m4_require([_LT_DECL_SED])dnl 2659ac_outfile=conftest.$ac_objext 2660echo "$lt_simple_link_test_code" >conftest.$ac_ext 2661eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 2662_lt_linker_boilerplate=`cat conftest.err` 2663$RM -r conftest* 2664])# _LT_LINKER_BOILERPLATE 2665 2666# _LT_REQUIRED_DARWIN_CHECKS 2667# ------------------------- 2668m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ 2669 case $host_os in 2670 rhapsody* | darwin*) 2671 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) 2672 AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) 2673 AC_CHECK_TOOL([LIPO], [lipo], [:]) 2674 AC_CHECK_TOOL([OTOOL], [otool], [:]) 2675 AC_CHECK_TOOL([OTOOL64], [otool64], [:]) 2676 _LT_DECL([], [DSYMUTIL], [1], 2677 [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) 2678 _LT_DECL([], [NMEDIT], [1], 2679 [Tool to change global to local symbols on Mac OS X]) 2680 _LT_DECL([], [LIPO], [1], 2681 [Tool to manipulate fat objects and archives on Mac OS X]) 2682 _LT_DECL([], [OTOOL], [1], 2683 [ldd/readelf like tool for Mach-O binaries on Mac OS X]) 2684 _LT_DECL([], [OTOOL64], [1], 2685 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) 2686 2687 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], 2688 [lt_cv_apple_cc_single_mod=no 2689 if test -z "${LT_MULTI_MODULE}"; then 2690 # By default we will add the -single_module flag. You can override 2691 # by either setting the environment variable LT_MULTI_MODULE 2692 # non-empty at configure time, or by adding -multi_module to the 2693 # link flags. 2694 rm -rf libconftest.dylib* 2695 echo "int foo(void){return 1;}" > conftest.c 2696 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 2697-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD 2698 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 2699 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 2700 _lt_result=$? 2701 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 2702 lt_cv_apple_cc_single_mod=yes 2703 else 2704 cat conftest.err >&AS_MESSAGE_LOG_FD 2705 fi 2706 rm -rf libconftest.dylib* 2707 rm -f conftest.* 2708 fi]) 2709 AC_CACHE_CHECK([for -exported_symbols_list linker flag], 2710 [lt_cv_ld_exported_symbols_list], 2711 [lt_cv_ld_exported_symbols_list=no 2712 save_LDFLAGS=$LDFLAGS 2713 echo "_main" > conftest.sym 2714 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 2715 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 2716 [lt_cv_ld_exported_symbols_list=yes], 2717 [lt_cv_ld_exported_symbols_list=no]) 2718 LDFLAGS="$save_LDFLAGS" 2719 ]) 2720 case $host_os in 2721 rhapsody* | darwin1.[[012]]) 2722 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 2723 darwin1.*) 2724 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 2725 darwin*) # darwin 5.x on 2726 # if running on 10.5 or later, the deployment target defaults 2727 # to the OS version, if on x86, and 10.4, the deployment 2728 # target defaults to 10.4. Don't you love it? 2729 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 2730 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) 2731 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 2732 10.[[012]]*) 2733 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 2734 10.*) 2735 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 2736 esac 2737 ;; 2738 esac 2739 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 2740 _lt_dar_single_mod='$single_module' 2741 fi 2742 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 2743 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 2744 else 2745 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 2746 fi 2747 if test "$DSYMUTIL" != ":"; then 2748 _lt_dsymutil='~$DSYMUTIL $lib || :' 2749 else 2750 _lt_dsymutil= 2751 fi 2752 ;; 2753 esac 2754]) 2755 2756 2757# _LT_DARWIN_LINKER_FEATURES 2758# -------------------------- 2759# Checks for linker and compiler features on darwin 2760m4_defun([_LT_DARWIN_LINKER_FEATURES], 2761[ 2762 m4_require([_LT_REQUIRED_DARWIN_CHECKS]) 2763 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 2764 _LT_TAGVAR(hardcode_direct, $1)=no 2765 _LT_TAGVAR(hardcode_automatic, $1)=yes 2766 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 2767 _LT_TAGVAR(whole_archive_flag_spec, $1)='' 2768 _LT_TAGVAR(link_all_deplibs, $1)=yes 2769 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" 2770 case $cc_basename in 2771 ifort*) _lt_dar_can_shared=yes ;; 2772 *) _lt_dar_can_shared=$GCC ;; 2773 esac 2774 if test "$_lt_dar_can_shared" = "yes"; then 2775 output_verbose_link_cmd=echo 2776 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 2777 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 2778 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 2779 _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 2780 m4_if([$1], [CXX], 2781[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then 2782 _LT_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${_lt_dsymutil}" 2783 _LT_TAGVAR(archive_expsym_cmds, $1)="sed '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${_lt_dar_export_syms}${_lt_dsymutil}" 2784 fi 2785],[]) 2786 else 2787 _LT_TAGVAR(ld_shlibs, $1)=no 2788 fi 2789]) 2790 2791# _LT_SYS_MODULE_PATH_AIX 2792# ----------------------- 2793# Links a minimal program and checks the executable 2794# for the system default hardcoded library path. In most cases, 2795# this is /usr/lib:/lib, but when the MPI compilers are used 2796# the location of the communication and MPI libs are included too. 2797# If we don't find anything, use the default library path according 2798# to the aix ld manual. 2799m4_defun([_LT_SYS_MODULE_PATH_AIX], 2800[m4_require([_LT_DECL_SED])dnl 2801AC_LINK_IFELSE(AC_LANG_PROGRAM,[ 2802lt_aix_libpath_sed=' 2803 /Import File Strings/,/^$/ { 2804 /^0/ { 2805 s/^0 *\(.*\)$/\1/ 2806 p 2807 } 2808 }' 2809aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 2810# Check for a 64-bit object if we didn't find anything. 2811if test -z "$aix_libpath"; then 2812 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 2813fi],[]) 2814if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 2815])# _LT_SYS_MODULE_PATH_AIX 2816 2817 2818# _LT_SHELL_INIT(ARG) 2819# ------------------- 2820m4_define([_LT_SHELL_INIT], 2821[ifdef([AC_DIVERSION_NOTICE], 2822 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], 2823 [AC_DIVERT_PUSH(NOTICE)]) 2824$1 2825AC_DIVERT_POP 2826])# _LT_SHELL_INIT 2827 2828 2829# _LT_PROG_ECHO_BACKSLASH 2830# ----------------------- 2831# Add some code to the start of the generated configure script which 2832# will find an echo command which doesn't interpret backslashes. 2833m4_defun([_LT_PROG_ECHO_BACKSLASH], 2834[_LT_SHELL_INIT([ 2835# Check that we are running under the correct shell. 2836SHELL=${CONFIG_SHELL-/bin/sh} 2837 2838case X$lt_ECHO in 2839X*--fallback-echo) 2840 # Remove one level of quotation (which was required for Make). 2841 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` 2842 ;; 2843esac 2844 2845ECHO=${lt_ECHO-echo} 2846if test "X[$]1" = X--no-reexec; then 2847 # Discard the --no-reexec flag, and continue. 2848 shift 2849elif test "X[$]1" = X--fallback-echo; then 2850 # Avoid inline document here, it may be left over 2851 : 2852elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 2853 # Yippee, $ECHO works! 2854 : 2855else 2856 # Restart under the correct shell. 2857 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} 2858fi 2859 2860if test "X[$]1" = X--fallback-echo; then 2861 # used as fallback echo 2862 shift 2863 cat <<_LT_EOF 2864[$]* 2865_LT_EOF 2866 exit 0 2867fi 2868 2869# The HP-UX ksh and POSIX shell print the target directory to stdout 2870# if CDPATH is set. 2871(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 2872 2873if test -z "$lt_ECHO"; then 2874 if test "X${echo_test_string+set}" != Xset; then 2875 # find a string as large as possible, as long as the shell can cope with it 2876 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do 2877 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 2878 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 2879 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 2880 then 2881 break 2882 fi 2883 done 2884 fi 2885 2886 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 2887 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 2888 test "X$echo_testing_string" = "X$echo_test_string"; then 2889 : 2890 else 2891 # The Solaris, AIX, and Digital Unix default echo programs unquote 2892 # backslashes. This makes it impossible to quote backslashes using 2893 # echo "$something" | sed 's/\\/\\\\/g' 2894 # 2895 # So, first we look for a working echo in the user's PATH. 2896 2897 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 2898 for dir in $PATH /usr/ucb; do 2899 IFS="$lt_save_ifs" 2900 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 2901 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 2902 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 2903 test "X$echo_testing_string" = "X$echo_test_string"; then 2904 ECHO="$dir/echo" 2905 break 2906 fi 2907 done 2908 IFS="$lt_save_ifs" 2909 2910 if test "X$ECHO" = Xecho; then 2911 # We didn't find a better echo, so look for alternatives. 2912 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 2913 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 2914 test "X$echo_testing_string" = "X$echo_test_string"; then 2915 # This shell has a builtin print -r that does the trick. 2916 ECHO='print -r' 2917 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 2918 test "X$CONFIG_SHELL" != X/bin/ksh; then 2919 # If we have ksh, try running configure again with it. 2920 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 2921 export ORIGINAL_CONFIG_SHELL 2922 CONFIG_SHELL=/bin/ksh 2923 export CONFIG_SHELL 2924 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} 2925 else 2926 # Try using printf. 2927 ECHO='printf %s\n' 2928 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 2929 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 2930 test "X$echo_testing_string" = "X$echo_test_string"; then 2931 # Cool, printf works 2932 : 2933 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 2934 test "X$echo_testing_string" = 'X\t' && 2935 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 2936 test "X$echo_testing_string" = "X$echo_test_string"; then 2937 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 2938 export CONFIG_SHELL 2939 SHELL="$CONFIG_SHELL" 2940 export SHELL 2941 ECHO="$CONFIG_SHELL [$]0 --fallback-echo" 2942 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 2943 test "X$echo_testing_string" = 'X\t' && 2944 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 2945 test "X$echo_testing_string" = "X$echo_test_string"; then 2946 ECHO="$CONFIG_SHELL [$]0 --fallback-echo" 2947 else 2948 # maybe with a smaller string... 2949 prev=: 2950 2951 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do 2952 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 2953 then 2954 break 2955 fi 2956 prev="$cmd" 2957 done 2958 2959 if test "$prev" != 'sed 50q "[$]0"'; then 2960 echo_test_string=`eval $prev` 2961 export echo_test_string 2962 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} 2963 else 2964 # Oops. We lost completely, so just stick with echo. 2965 ECHO=echo 2966 fi 2967 fi 2968 fi 2969 fi 2970 fi 2971fi 2972 2973# Copy echo and quote the copy suitably for passing to libtool from 2974# the Makefile, instead of quoting the original, which is used later. 2975lt_ECHO=$ECHO 2976if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then 2977 lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" 2978fi 2979 2980AC_SUBST(lt_ECHO) 2981]) 2982_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) 2983_LT_DECL([], [ECHO], [1], 2984 [An echo program that does not interpret backslashes]) 2985])# _LT_PROG_ECHO_BACKSLASH 2986 2987 2988# _LT_ENABLE_LOCK 2989# --------------- 2990m4_defun([_LT_ENABLE_LOCK], 2991[AC_ARG_ENABLE([libtool-lock], 2992 [AS_HELP_STRING([--disable-libtool-lock], 2993 [avoid locking (might break parallel builds)])]) 2994test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 2995 2996# Some flags need to be propagated to the compiler or linker for good 2997# libtool support. 2998case $host in 2999ia64-*-hpux*) 3000 # Find out which ABI we are using. 3001 echo 'int i;' > conftest.$ac_ext 3002 if AC_TRY_EVAL(ac_compile); then 3003 case `/usr/bin/file conftest.$ac_objext` in 3004 *ELF-32*) 3005 HPUX_IA64_MODE="32" 3006 ;; 3007 *ELF-64*) 3008 HPUX_IA64_MODE="64" 3009 ;; 3010 esac 3011 fi 3012 rm -rf conftest* 3013 ;; 3014*-*-irix6*) 3015 # Find out which ABI we are using. 3016 echo '[#]line __oline__ "configure"' > conftest.$ac_ext 3017 if AC_TRY_EVAL(ac_compile); then 3018 if test "$lt_cv_prog_gnu_ld" = yes; then 3019 case `/usr/bin/file conftest.$ac_objext` in 3020 *32-bit*) 3021 LD="${LD-ld} -melf32bsmip" 3022 ;; 3023 *N32*) 3024 LD="${LD-ld} -melf32bmipn32" 3025 ;; 3026 *64-bit*) 3027 LD="${LD-ld} -melf64bmip" 3028 ;; 3029 esac 3030 else 3031 case `/usr/bin/file conftest.$ac_objext` in 3032 *32-bit*) 3033 LD="${LD-ld} -32" 3034 ;; 3035 *N32*) 3036 LD="${LD-ld} -n32" 3037 ;; 3038 *64-bit*) 3039 LD="${LD-ld} -64" 3040 ;; 3041 esac 3042 fi 3043 fi 3044 rm -rf conftest* 3045 ;; 3046 3047x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 3048s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 3049 # Find out which ABI we are using. 3050 echo 'int i;' > conftest.$ac_ext 3051 if AC_TRY_EVAL(ac_compile); then 3052 case `/usr/bin/file conftest.o` in 3053 *32-bit*) 3054 case $host in 3055 x86_64-*kfreebsd*-gnu) 3056 LD="${LD-ld} -m elf_i386_fbsd" 3057 ;; 3058 x86_64-*linux*) 3059 LD="${LD-ld} -m elf_i386" 3060 ;; 3061 ppc64-*linux*|powerpc64-*linux*) 3062 LD="${LD-ld} -m elf32ppclinux" 3063 ;; 3064 s390x-*linux*) 3065 LD="${LD-ld} -m elf_s390" 3066 ;; 3067 sparc64-*linux*) 3068 LD="${LD-ld} -m elf32_sparc" 3069 ;; 3070 esac 3071 ;; 3072 *64-bit*) 3073 case $host in 3074 x86_64-*kfreebsd*-gnu) 3075 LD="${LD-ld} -m elf_x86_64_fbsd" 3076 ;; 3077 x86_64-*linux*) 3078 LD="${LD-ld} -m elf_x86_64" 3079 ;; 3080 ppc*-*linux*|powerpc*-*linux*) 3081 LD="${LD-ld} -m elf64ppc" 3082 ;; 3083 s390*-*linux*|s390*-*tpf*) 3084 LD="${LD-ld} -m elf64_s390" 3085 ;; 3086 sparc*-*linux*) 3087 LD="${LD-ld} -m elf64_sparc" 3088 ;; 3089 esac 3090 ;; 3091 esac 3092 fi 3093 rm -rf conftest* 3094 ;; 3095 3096*-*-sco3.2v5*) 3097 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 3098 SAVE_CFLAGS="$CFLAGS" 3099 CFLAGS="$CFLAGS -belf" 3100 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 3101 [AC_LANG_PUSH(C) 3102 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 3103 AC_LANG_POP]) 3104 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 3105 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 3106 CFLAGS="$SAVE_CFLAGS" 3107 fi 3108 ;; 3109sparc*-*solaris*) 3110 # Find out which ABI we are using. 3111 echo 'int i;' > conftest.$ac_ext 3112 if AC_TRY_EVAL(ac_compile); then 3113 case `/usr/bin/file conftest.o` in 3114 *64-bit*) 3115 case $lt_cv_prog_gnu_ld in 3116 yes*) LD="${LD-ld} -m elf64_sparc" ;; 3117 *) 3118 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 3119 LD="${LD-ld} -64" 3120 fi 3121 ;; 3122 esac 3123 ;; 3124 esac 3125 fi 3126 rm -rf conftest* 3127 ;; 3128esac 3129 3130need_locks="$enable_libtool_lock" 3131])# _LT_ENABLE_LOCK 3132 3133 3134# _LT_CMD_OLD_ARCHIVE 3135# ------------------- 3136m4_defun([_LT_CMD_OLD_ARCHIVE], 3137[AC_CHECK_TOOL(AR, ar, false) 3138test -z "$AR" && AR=ar 3139test -z "$AR_FLAGS" && AR_FLAGS=cru 3140_LT_DECL([], [AR], [1], [The archiver]) 3141_LT_DECL([], [AR_FLAGS], [1]) 3142 3143AC_CHECK_TOOL(STRIP, strip, :) 3144test -z "$STRIP" && STRIP=: 3145_LT_DECL([], [STRIP], [1], [A symbol stripping program]) 3146 3147AC_CHECK_TOOL(RANLIB, ranlib, :) 3148test -z "$RANLIB" && RANLIB=: 3149_LT_DECL([], [RANLIB], [1], 3150 [Commands used to install an old-style archive]) 3151 3152# Determine commands to create old-style static archives. 3153old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 3154old_postinstall_cmds='chmod 644 $oldlib' 3155old_postuninstall_cmds= 3156 3157if test -n "$RANLIB"; then 3158 case $host_os in 3159 openbsd*) 3160 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 3161 ;; 3162 *) 3163 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 3164 ;; 3165 esac 3166 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 3167fi 3168_LT_DECL([], [old_postinstall_cmds], [2]) 3169_LT_DECL([], [old_postuninstall_cmds], [2]) 3170_LT_TAGDECL([], [old_archive_cmds], [2], 3171 [Commands used to build an old-style archive]) 3172])# _LT_CMD_OLD_ARCHIVE 3173 3174 3175# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 3176# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 3177# ---------------------------------------------------------------- 3178# Check whether the given compiler option works 3179AC_DEFUN([_LT_COMPILER_OPTION], 3180[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 3181m4_require([_LT_DECL_SED])dnl 3182AC_CACHE_CHECK([$1], [$2], 3183 [$2=no 3184 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 3185 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 3186 lt_compiler_flag="$3" 3187 # Insert the option either (1) after the last *FLAGS variable, or 3188 # (2) before a word containing "conftest.", or (3) at the end. 3189 # Note that $ac_compile itself does not contain backslashes and begins 3190 # with a dollar sign (not a hyphen), so the echo should work correctly. 3191 # The option is referenced via a variable to avoid confusing sed. 3192 lt_compile=`echo "$ac_compile" | $SED \ 3193 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 3194 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 3195 -e 's:$: $lt_compiler_flag:'` 3196 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 3197 (eval "$lt_compile" 2>conftest.err) 3198 ac_status=$? 3199 cat conftest.err >&AS_MESSAGE_LOG_FD 3200 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 3201 if (exit $ac_status) && test -s "$ac_outfile"; then 3202 # The compiler can only warn and ignore the option if not recognized 3203 # So say no if there are warnings other than the usual output. 3204 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 3205 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 3206 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 3207 $2=yes 3208 fi 3209 fi 3210 $RM conftest* 3211]) 3212 3213if test x"[$]$2" = xyes; then 3214 m4_if([$5], , :, [$5]) 3215else 3216 m4_if([$6], , :, [$6]) 3217fi 3218])# _LT_COMPILER_OPTION 3219 3220# Old name: 3221AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) 3222dnl aclocal-1.4 backwards compatibility: 3223dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) 3224 3225 3226# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 3227# [ACTION-SUCCESS], [ACTION-FAILURE]) 3228# ---------------------------------------------------- 3229# Check whether the given linker option works 3230AC_DEFUN([_LT_LINKER_OPTION], 3231[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 3232m4_require([_LT_DECL_SED])dnl 3233AC_CACHE_CHECK([$1], [$2], 3234 [$2=no 3235 save_LDFLAGS="$LDFLAGS" 3236 LDFLAGS="$LDFLAGS $3" 3237 echo "$lt_simple_link_test_code" > conftest.$ac_ext 3238 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 3239 # The linker can only warn and ignore the option if not recognized 3240 # So say no if there are warnings 3241 if test -s conftest.err; then 3242 # Append any errors to the config.log. 3243 cat conftest.err 1>&AS_MESSAGE_LOG_FD 3244 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 3245 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 3246 if diff conftest.exp conftest.er2 >/dev/null; then 3247 $2=yes 3248 fi 3249 else 3250 $2=yes 3251 fi 3252 fi 3253 $RM -r conftest* 3254 LDFLAGS="$save_LDFLAGS" 3255]) 3256 3257if test x"[$]$2" = xyes; then 3258 m4_if([$4], , :, [$4]) 3259else 3260 m4_if([$5], , :, [$5]) 3261fi 3262])# _LT_LINKER_OPTION 3263 3264# Old name: 3265AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) 3266dnl aclocal-1.4 backwards compatibility: 3267dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) 3268 3269 3270# LT_CMD_MAX_LEN 3271#--------------- 3272AC_DEFUN([LT_CMD_MAX_LEN], 3273[AC_REQUIRE([AC_CANONICAL_HOST])dnl 3274# find the maximum length of command line arguments 3275AC_MSG_CHECKING([the maximum length of command line arguments]) 3276AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 3277 i=0 3278 teststring="ABCD" 3279 3280 case $build_os in 3281 msdosdjgpp*) 3282 # On DJGPP, this test can blow up pretty badly due to problems in libc 3283 # (any single argument exceeding 2000 bytes causes a buffer overrun 3284 # during glob expansion). Even if it were fixed, the result of this 3285 # check would be larger than it should be. 3286 lt_cv_sys_max_cmd_len=12288; # 12K is about right 3287 ;; 3288 3289 gnu*) 3290 # Under GNU Hurd, this test is not required because there is 3291 # no limit to the length of command line arguments. 3292 # Libtool will interpret -1 as no limit whatsoever 3293 lt_cv_sys_max_cmd_len=-1; 3294 ;; 3295 3296 cygwin* | mingw* | cegcc*) 3297 # On Win9x/ME, this test blows up -- it succeeds, but takes 3298 # about 5 minutes as the teststring grows exponentially. 3299 # Worse, since 9x/ME are not pre-emptively multitasking, 3300 # you end up with a "frozen" computer, even though with patience 3301 # the test eventually succeeds (with a max line length of 256k). 3302 # Instead, let's just punt: use the minimum linelength reported by 3303 # all of the supported platforms: 8192 (on NT/2K/XP). 3304 lt_cv_sys_max_cmd_len=8192; 3305 ;; 3306 3307 amigaos*) 3308 # On AmigaOS with pdksh, this test takes hours, literally. 3309 # So we just punt and use a minimum line length of 8192. 3310 lt_cv_sys_max_cmd_len=8192; 3311 ;; 3312 3313 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 3314 # This has been around since 386BSD, at least. Likely further. 3315 if test -x /sbin/sysctl; then 3316 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 3317 elif test -x /usr/sbin/sysctl; then 3318 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 3319 else 3320 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 3321 fi 3322 # And add a safety zone 3323 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 3324 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 3325 ;; 3326 3327 interix*) 3328 # We know the value 262144 and hardcode it with a safety zone (like BSD) 3329 lt_cv_sys_max_cmd_len=196608 3330 ;; 3331 3332 osf*) 3333 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 3334 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 3335 # nice to cause kernel panics so lets avoid the loop below. 3336 # First set a reasonable default. 3337 lt_cv_sys_max_cmd_len=16384 3338 # 3339 if test -x /sbin/sysconfig; then 3340 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 3341 *1*) lt_cv_sys_max_cmd_len=-1 ;; 3342 esac 3343 fi 3344 ;; 3345 sco3.2v5*) 3346 lt_cv_sys_max_cmd_len=102400 3347 ;; 3348 sysv5* | sco5v6* | sysv4.2uw2*) 3349 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 3350 if test -n "$kargmax"; then 3351 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` 3352 else 3353 lt_cv_sys_max_cmd_len=32768 3354 fi 3355 ;; 3356 *) 3357 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 3358 if test -n "$lt_cv_sys_max_cmd_len"; then 3359 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 3360 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 3361 else 3362 # Make teststring a little bigger before we do anything with it. 3363 # a 1K string should be a reasonable start. 3364 for i in 1 2 3 4 5 6 7 8 ; do 3365 teststring=$teststring$teststring 3366 done 3367 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 3368 # If test is not a shell built-in, we'll probably end up computing a 3369 # maximum length that is only half of the actual maximum length, but 3370 # we can't tell. 3371 while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 3372 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 3373 test $i != 17 # 1/2 MB should be enough 3374 do 3375 i=`expr $i + 1` 3376 teststring=$teststring$teststring 3377 done 3378 # Only check the string length outside the loop. 3379 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 3380 teststring= 3381 # Add a significant safety factor because C++ compilers can tack on 3382 # massive amounts of additional arguments before passing them to the 3383 # linker. It appears as though 1/2 is a usable value. 3384 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 3385 fi 3386 ;; 3387 esac 3388]) 3389if test -n $lt_cv_sys_max_cmd_len ; then 3390 AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 3391else 3392 AC_MSG_RESULT(none) 3393fi 3394max_cmd_len=$lt_cv_sys_max_cmd_len 3395_LT_DECL([], [max_cmd_len], [0], 3396 [What is the maximum length of a command?]) 3397])# LT_CMD_MAX_LEN 3398 3399# Old name: 3400AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) 3401dnl aclocal-1.4 backwards compatibility: 3402dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) 3403 3404 3405# _LT_HEADER_DLFCN 3406# ---------------- 3407m4_defun([_LT_HEADER_DLFCN], 3408[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl 3409])# _LT_HEADER_DLFCN 3410 3411 3412# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 3413# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 3414# ---------------------------------------------------------------- 3415m4_defun([_LT_TRY_DLOPEN_SELF], 3416[m4_require([_LT_HEADER_DLFCN])dnl 3417if test "$cross_compiling" = yes; then : 3418 [$4] 3419else 3420 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 3421 lt_status=$lt_dlunknown 3422 cat > conftest.$ac_ext <<_LT_EOF 3423[#line __oline__ "configure" 3424#include "confdefs.h" 3425 3426#if HAVE_DLFCN_H 3427#include <dlfcn.h> 3428#endif 3429 3430#include <stdio.h> 3431 3432#ifdef RTLD_GLOBAL 3433# define LT_DLGLOBAL RTLD_GLOBAL 3434#else 3435# ifdef DL_GLOBAL 3436# define LT_DLGLOBAL DL_GLOBAL 3437# else 3438# define LT_DLGLOBAL 0 3439# endif 3440#endif 3441 3442/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 3443 find out it does not work in some platform. */ 3444#ifndef LT_DLLAZY_OR_NOW 3445# ifdef RTLD_LAZY 3446# define LT_DLLAZY_OR_NOW RTLD_LAZY 3447# else 3448# ifdef DL_LAZY 3449# define LT_DLLAZY_OR_NOW DL_LAZY 3450# else 3451# ifdef RTLD_NOW 3452# define LT_DLLAZY_OR_NOW RTLD_NOW 3453# else 3454# ifdef DL_NOW 3455# define LT_DLLAZY_OR_NOW DL_NOW 3456# else 3457# define LT_DLLAZY_OR_NOW 0 3458# endif 3459# endif 3460# endif 3461# endif 3462#endif 3463 3464void fnord() { int i=42;} 3465int main () 3466{ 3467 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 3468 int status = $lt_dlunknown; 3469 3470 if (self) 3471 { 3472 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 3473 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 3474 /* dlclose (self); */ 3475 } 3476 else 3477 puts (dlerror ()); 3478 3479 return status; 3480}] 3481_LT_EOF 3482 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then 3483 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null 3484 lt_status=$? 3485 case x$lt_status in 3486 x$lt_dlno_uscore) $1 ;; 3487 x$lt_dlneed_uscore) $2 ;; 3488 x$lt_dlunknown|x*) $3 ;; 3489 esac 3490 else : 3491 # compilation failed 3492 $3 3493 fi 3494fi 3495rm -fr conftest* 3496])# _LT_TRY_DLOPEN_SELF 3497 3498 3499# LT_SYS_DLOPEN_SELF 3500# ------------------ 3501AC_DEFUN([LT_SYS_DLOPEN_SELF], 3502[m4_require([_LT_HEADER_DLFCN])dnl 3503if test "x$enable_dlopen" != xyes; then 3504 enable_dlopen=unknown 3505 enable_dlopen_self=unknown 3506 enable_dlopen_self_static=unknown 3507else 3508 lt_cv_dlopen=no 3509 lt_cv_dlopen_libs= 3510 3511 case $host_os in 3512 beos*) 3513 lt_cv_dlopen="load_add_on" 3514 lt_cv_dlopen_libs= 3515 lt_cv_dlopen_self=yes 3516 ;; 3517 3518 mingw* | pw32* | cegcc*) 3519 lt_cv_dlopen="LoadLibrary" 3520 lt_cv_dlopen_libs= 3521 ;; 3522 3523 cygwin*) 3524 lt_cv_dlopen="dlopen" 3525 lt_cv_dlopen_libs= 3526 ;; 3527 3528 darwin*) 3529 # if libdl is installed we need to link against it 3530 AC_CHECK_LIB([dl], [dlopen], 3531 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ 3532 lt_cv_dlopen="dyld" 3533 lt_cv_dlopen_libs= 3534 lt_cv_dlopen_self=yes 3535 ]) 3536 ;; 3537 3538 *) 3539 AC_CHECK_FUNC([shl_load], 3540 [lt_cv_dlopen="shl_load"], 3541 [AC_CHECK_LIB([dld], [shl_load], 3542 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], 3543 [AC_CHECK_FUNC([dlopen], 3544 [lt_cv_dlopen="dlopen"], 3545 [AC_CHECK_LIB([dl], [dlopen], 3546 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], 3547 [AC_CHECK_LIB([svld], [dlopen], 3548 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], 3549 [AC_CHECK_LIB([dld], [dld_link], 3550 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) 3551 ]) 3552 ]) 3553 ]) 3554 ]) 3555 ]) 3556 ;; 3557 esac 3558 3559 if test "x$lt_cv_dlopen" != xno; then 3560 enable_dlopen=yes 3561 else 3562 enable_dlopen=no 3563 fi 3564 3565 case $lt_cv_dlopen in 3566 dlopen) 3567 save_CPPFLAGS="$CPPFLAGS" 3568 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 3569 3570 save_LDFLAGS="$LDFLAGS" 3571 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 3572 3573 save_LIBS="$LIBS" 3574 LIBS="$lt_cv_dlopen_libs $LIBS" 3575 3576 AC_CACHE_CHECK([whether a program can dlopen itself], 3577 lt_cv_dlopen_self, [dnl 3578 _LT_TRY_DLOPEN_SELF( 3579 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, 3580 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) 3581 ]) 3582 3583 if test "x$lt_cv_dlopen_self" = xyes; then 3584 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 3585 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 3586 lt_cv_dlopen_self_static, [dnl 3587 _LT_TRY_DLOPEN_SELF( 3588 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, 3589 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) 3590 ]) 3591 fi 3592 3593 CPPFLAGS="$save_CPPFLAGS" 3594 LDFLAGS="$save_LDFLAGS" 3595 LIBS="$save_LIBS" 3596 ;; 3597 esac 3598 3599 case $lt_cv_dlopen_self in 3600 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 3601 *) enable_dlopen_self=unknown ;; 3602 esac 3603 3604 case $lt_cv_dlopen_self_static in 3605 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 3606 *) enable_dlopen_self_static=unknown ;; 3607 esac 3608fi 3609_LT_DECL([dlopen_support], [enable_dlopen], [0], 3610 [Whether dlopen is supported]) 3611_LT_DECL([dlopen_self], [enable_dlopen_self], [0], 3612 [Whether dlopen of programs is supported]) 3613_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], 3614 [Whether dlopen of statically linked programs is supported]) 3615])# LT_SYS_DLOPEN_SELF 3616 3617# Old name: 3618AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) 3619dnl aclocal-1.4 backwards compatibility: 3620dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) 3621 3622 3623# _LT_COMPILER_C_O([TAGNAME]) 3624# --------------------------- 3625# Check to see if options -c and -o are simultaneously supported by compiler. 3626# This macro does not hard code the compiler like AC_PROG_CC_C_O. 3627m4_defun([_LT_COMPILER_C_O], 3628[m4_require([_LT_DECL_SED])dnl 3629m4_require([_LT_FILEUTILS_DEFAULTS])dnl 3630m4_require([_LT_TAG_COMPILER])dnl 3631AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], 3632 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], 3633 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no 3634 $RM -r conftest 2>/dev/null 3635 mkdir conftest 3636 cd conftest 3637 mkdir out 3638 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 3639 3640 lt_compiler_flag="-o out/conftest2.$ac_objext" 3641 # Insert the option either (1) after the last *FLAGS variable, or 3642 # (2) before a word containing "conftest.", or (3) at the end. 3643 # Note that $ac_compile itself does not contain backslashes and begins 3644 # with a dollar sign (not a hyphen), so the echo should work correctly. 3645 lt_compile=`echo "$ac_compile" | $SED \ 3646 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 3647 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 3648 -e 's:$: $lt_compiler_flag:'` 3649 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 3650 (eval "$lt_compile" 2>out/conftest.err) 3651 ac_status=$? 3652 cat out/conftest.err >&AS_MESSAGE_LOG_FD 3653 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 3654 if (exit $ac_status) && test -s out/conftest2.$ac_objext 3655 then 3656 # The compiler can only warn and ignore the option if not recognized 3657 # So say no if there are warnings 3658 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 3659 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 3660 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 3661 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 3662 fi 3663 fi 3664 chmod u+w . 2>&AS_MESSAGE_LOG_FD 3665 $RM conftest* 3666 # SGI C++ compiler will create directory out/ii_files/ for 3667 # template instantiation 3668 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 3669 $RM out/* && rmdir out 3670 cd .. 3671 $RM -r conftest 3672 $RM conftest* 3673]) 3674_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], 3675 [Does compiler simultaneously support -c and -o options?]) 3676])# _LT_COMPILER_C_O 3677 3678 3679# _LT_COMPILER_FILE_LOCKS([TAGNAME]) 3680# ---------------------------------- 3681# Check to see if we can do hard links to lock some files if needed 3682m4_defun([_LT_COMPILER_FILE_LOCKS], 3683[m4_require([_LT_ENABLE_LOCK])dnl 3684m4_require([_LT_FILEUTILS_DEFAULTS])dnl 3685_LT_COMPILER_C_O([$1]) 3686 3687hard_links="nottested" 3688if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then 3689 # do not overwrite the value of need_locks provided by the user 3690 AC_MSG_CHECKING([if we can lock with hard links]) 3691 hard_links=yes 3692 $RM conftest* 3693 ln conftest.a conftest.b 2>/dev/null && hard_links=no 3694 touch conftest.a 3695 ln conftest.a conftest.b 2>&5 || hard_links=no 3696 ln conftest.a conftest.b 2>/dev/null && hard_links=no 3697 AC_MSG_RESULT([$hard_links]) 3698 if test "$hard_links" = no; then 3699 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) 3700 need_locks=warn 3701 fi 3702else 3703 need_locks=no 3704fi 3705_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) 3706])# _LT_COMPILER_FILE_LOCKS 3707 3708 3709# _LT_CHECK_OBJDIR 3710# ---------------- 3711m4_defun([_LT_CHECK_OBJDIR], 3712[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], 3713[rm -f .libs 2>/dev/null 3714mkdir .libs 2>/dev/null 3715if test -d .libs; then 3716 lt_cv_objdir=.libs 3717else 3718 # MS-DOS does not allow filenames that begin with a dot. 3719 lt_cv_objdir=_libs 3720fi 3721rmdir .libs 2>/dev/null]) 3722objdir=$lt_cv_objdir 3723_LT_DECL([], [objdir], [0], 3724 [The name of the directory that contains temporary libtool files])dnl 3725m4_pattern_allow([LT_OBJDIR])dnl 3726AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", 3727 [Define to the sub-directory in which libtool stores uninstalled libraries.]) 3728])# _LT_CHECK_OBJDIR 3729 3730 3731# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) 3732# -------------------------------------- 3733# Check hardcoding attributes. 3734m4_defun([_LT_LINKER_HARDCODE_LIBPATH], 3735[AC_MSG_CHECKING([how to hardcode library paths into programs]) 3736_LT_TAGVAR(hardcode_action, $1)= 3737if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || 3738 test -n "$_LT_TAGVAR(runpath_var, $1)" || 3739 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then 3740 3741 # We can hardcode non-existent directories. 3742 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && 3743 # If the only mechanism to avoid hardcoding is shlibpath_var, we 3744 # have to relink, otherwise we might link with an installed library 3745 # when we should be linking with a yet-to-be-installed one 3746 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && 3747 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then 3748 # Linking always hardcodes the temporary library directory. 3749 _LT_TAGVAR(hardcode_action, $1)=relink 3750 else 3751 # We can link without hardcoding, and we can hardcode nonexisting dirs. 3752 _LT_TAGVAR(hardcode_action, $1)=immediate 3753 fi 3754else 3755 # We cannot hardcode anything, or else we can only hardcode existing 3756 # directories. 3757 _LT_TAGVAR(hardcode_action, $1)=unsupported 3758fi 3759AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) 3760 3761if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || 3762 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then 3763 # Fast installation is not supported 3764 enable_fast_install=no 3765elif test "$shlibpath_overrides_runpath" = yes || 3766 test "$enable_shared" = no; then 3767 # Fast installation is not necessary 3768 enable_fast_install=needless 3769fi 3770_LT_TAGDECL([], [hardcode_action], [0], 3771 [How to hardcode a shared library path into an executable]) 3772])# _LT_LINKER_HARDCODE_LIBPATH 3773 3774 3775# _LT_CMD_STRIPLIB 3776# ---------------- 3777m4_defun([_LT_CMD_STRIPLIB], 3778[m4_require([_LT_DECL_EGREP]) 3779striplib= 3780old_striplib= 3781AC_MSG_CHECKING([whether stripping libraries is possible]) 3782if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 3783 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 3784 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 3785 AC_MSG_RESULT([yes]) 3786else 3787# FIXME - insert some real tests, host_os isn't really good enough 3788 case $host_os in 3789 darwin*) 3790 if test -n "$STRIP" ; then 3791 striplib="$STRIP -x" 3792 old_striplib="$STRIP -S" 3793 AC_MSG_RESULT([yes]) 3794 else 3795 AC_MSG_RESULT([no]) 3796 fi 3797 ;; 3798 *) 3799 AC_MSG_RESULT([no]) 3800 ;; 3801 esac 3802fi 3803_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) 3804_LT_DECL([], [striplib], [1]) 3805])# _LT_CMD_STRIPLIB 3806 3807 3808# _LT_SYS_DYNAMIC_LINKER([TAG]) 3809# ----------------------------- 3810# PORTME Fill in your ld.so characteristics 3811m4_defun([_LT_SYS_DYNAMIC_LINKER], 3812[AC_REQUIRE([AC_CANONICAL_HOST])dnl 3813m4_require([_LT_DECL_EGREP])dnl 3814m4_require([_LT_FILEUTILS_DEFAULTS])dnl 3815m4_require([_LT_DECL_OBJDUMP])dnl 3816m4_require([_LT_DECL_SED])dnl 3817AC_MSG_CHECKING([dynamic linker characteristics]) 3818m4_if([$1], 3819 [], [ 3820if test "$GCC" = yes; then 3821 case $host_os in 3822 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 3823 *) lt_awk_arg="/^libraries:/" ;; 3824 esac 3825 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 3826 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 3827 # if the path contains ";" then we assume it to be the separator 3828 # otherwise default to the standard path separator (i.e. ":") - it is 3829 # assumed that no part of a normal pathname contains ";" but that should 3830 # okay in the real world where ";" in dirpaths is itself problematic. 3831 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 3832 else 3833 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 3834 fi 3835 # Ok, now we have the path, separated by spaces, we can step through it 3836 # and add multilib dir if necessary. 3837 lt_tmp_lt_search_path_spec= 3838 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 3839 for lt_sys_path in $lt_search_path_spec; do 3840 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 3841 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 3842 else 3843 test -d "$lt_sys_path" && \ 3844 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 3845 fi 3846 done 3847 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 3848BEGIN {RS=" "; FS="/|\n";} { 3849 lt_foo=""; 3850 lt_count=0; 3851 for (lt_i = NF; lt_i > 0; lt_i--) { 3852 if ($lt_i != "" && $lt_i != ".") { 3853 if ($lt_i == "..") { 3854 lt_count++; 3855 } else { 3856 if (lt_count == 0) { 3857 lt_foo="/" $lt_i lt_foo; 3858 } else { 3859 lt_count--; 3860 } 3861 } 3862 } 3863 } 3864 if (lt_foo != "") { lt_freq[[lt_foo]]++; } 3865 if (lt_freq[[lt_foo]] == 1) { print lt_foo; } 3866}'` 3867 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 3868else 3869 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 3870fi]) 3871library_names_spec= 3872libname_spec='lib$name' 3873soname_spec= 3874shrext_cmds=".so" 3875postinstall_cmds= 3876postuninstall_cmds= 3877finish_cmds= 3878finish_eval= 3879shlibpath_var= 3880shlibpath_overrides_runpath=unknown 3881version_type=none 3882dynamic_linker="$host_os ld.so" 3883sys_lib_dlsearch_path_spec="/lib /usr/lib" 3884need_lib_prefix=unknown 3885hardcode_into_libs=no 3886 3887# when you set need_version to no, make sure it does not cause -set_version 3888# flags to be left without arguments 3889need_version=unknown 3890 3891case $host_os in 3892aix3*) 3893 version_type=linux 3894 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 3895 shlibpath_var=LIBPATH 3896 3897 # AIX 3 has no versioning support, so we append a major version to the name. 3898 soname_spec='${libname}${release}${shared_ext}$major' 3899 ;; 3900 3901aix[[4-9]]*) 3902 version_type=linux 3903 need_lib_prefix=no 3904 need_version=no 3905 hardcode_into_libs=yes 3906 if test "$host_cpu" = ia64; then 3907 # AIX 5 supports IA64 3908 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 3909 shlibpath_var=LD_LIBRARY_PATH 3910 else 3911 # With GCC up to 2.95.x, collect2 would create an import file 3912 # for dependence libraries. The import file would start with 3913 # the line `#! .'. This would cause the generated library to 3914 # depend on `.', always an invalid library. This was fixed in 3915 # development snapshots of GCC prior to 3.0. 3916 case $host_os in 3917 aix4 | aix4.[[01]] | aix4.[[01]].*) 3918 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 3919 echo ' yes ' 3920 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 3921 : 3922 else 3923 can_build_shared=no 3924 fi 3925 ;; 3926 esac 3927 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 3928 # soname into executable. Probably we can add versioning support to 3929 # collect2, so additional links can be useful in future. 3930 if test "$aix_use_runtimelinking" = yes; then 3931 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 3932 # instead of lib<name>.a to let people know that these are not 3933 # typical AIX shared libraries. 3934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3935 else 3936 # We preserve .a as extension for shared libraries through AIX4.2 3937 # and later when we are not doing run time linking. 3938 library_names_spec='${libname}${release}.a $libname.a' 3939 soname_spec='${libname}${release}${shared_ext}$major' 3940 fi 3941 shlibpath_var=LIBPATH 3942 fi 3943 ;; 3944 3945amigaos*) 3946 case $host_cpu in 3947 powerpc) 3948 # Since July 2007 AmigaOS4 officially supports .so libraries. 3949 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 3950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3951 ;; 3952 m68k) 3953 library_names_spec='$libname.ixlibrary $libname.a' 3954 # Create ${libname}_ixlibrary.a entries in /sys/libs. 3955 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' 3956 ;; 3957 esac 3958 ;; 3959 3960beos*) 3961 library_names_spec='${libname}${shared_ext}' 3962 dynamic_linker="$host_os ld.so" 3963 shlibpath_var=LIBRARY_PATH 3964 ;; 3965 3966bsdi[[45]]*) 3967 version_type=linux 3968 need_version=no 3969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3970 soname_spec='${libname}${release}${shared_ext}$major' 3971 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 3972 shlibpath_var=LD_LIBRARY_PATH 3973 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 3974 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 3975 # the default ld.so.conf also contains /usr/contrib/lib and 3976 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 3977 # libtool to hard-code these into programs 3978 ;; 3979 3980cygwin* | mingw* | pw32* | cegcc*) 3981 version_type=windows 3982 shrext_cmds=".dll" 3983 need_version=no 3984 need_lib_prefix=no 3985 3986 case $GCC,$host_os in 3987 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 3988 library_names_spec='$libname.dll.a' 3989 # DLL is installed to $(libdir)/../bin by postinstall_cmds 3990 postinstall_cmds='base_file=`basename \${file}`~ 3991 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 3992 dldir=$destdir/`dirname \$dlpath`~ 3993 test -d \$dldir || mkdir -p \$dldir~ 3994 $install_prog $dir/$dlname \$dldir/$dlname~ 3995 chmod a+x \$dldir/$dlname~ 3996 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 3997 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 3998 fi' 3999 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 4000 dlpath=$dir/\$dldll~ 4001 $RM \$dlpath' 4002 shlibpath_overrides_runpath=yes 4003 4004 case $host_os in 4005 cygwin*) 4006 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 4007 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 4008 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 4009 ;; 4010 mingw* | cegcc*) 4011 # MinGW DLLs use traditional 'lib' prefix 4012 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 4013 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 4014 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then 4015 # It is most probably a Windows format PATH printed by 4016 # mingw gcc, but we are running on Cygwin. Gcc prints its search 4017 # path with ; separators, and with drive letters. We can handle the 4018 # drive letters (cygwin fileutils understands them), so leave them, 4019 # especially as we might pass files found there to a mingw objdump, 4020 # which wouldn't understand a cygwinified path. Ahh. 4021 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 4022 else 4023 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 4024 fi 4025 ;; 4026 pw32*) 4027 # pw32 DLLs use 'pw' prefix rather than 'lib' 4028 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 4029 ;; 4030 esac 4031 ;; 4032 4033 *) 4034 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' 4035 ;; 4036 esac 4037 dynamic_linker='Win32 ld.exe' 4038 # FIXME: first we should search . and the directory the executable is in 4039 shlibpath_var=PATH 4040 ;; 4041 4042darwin* | rhapsody*) 4043 dynamic_linker="$host_os dyld" 4044 version_type=darwin 4045 need_lib_prefix=no 4046 need_version=no 4047 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 4048 soname_spec='${libname}${release}${major}$shared_ext' 4049 shlibpath_overrides_runpath=yes 4050 shlibpath_var=DYLD_LIBRARY_PATH 4051 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 4052m4_if([$1], [],[ 4053 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 4054 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 4055 ;; 4056 4057dgux*) 4058 version_type=linux 4059 need_lib_prefix=no 4060 need_version=no 4061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 4062 soname_spec='${libname}${release}${shared_ext}$major' 4063 shlibpath_var=LD_LIBRARY_PATH 4064 ;; 4065 4066freebsd1*) 4067 dynamic_linker=no 4068 ;; 4069 4070freebsd* | dragonfly*) 4071 # DragonFly does not have aout. When/if they implement a new 4072 # versioning mechanism, adjust this. 4073 if test -x /usr/bin/objformat; then 4074 objformat=`/usr/bin/objformat` 4075 else 4076 case $host_os in 4077 freebsd[[123]]*) objformat=aout ;; 4078 *) objformat=elf ;; 4079 esac 4080 fi 4081 version_type=freebsd-$objformat 4082 case $version_type in 4083 freebsd-elf*) 4084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 4085 need_version=no 4086 need_lib_prefix=no 4087 ;; 4088 freebsd-*) 4089 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 4090 need_version=yes 4091 ;; 4092 esac 4093 shlibpath_var=LD_LIBRARY_PATH 4094 case $host_os in 4095 freebsd2*) 4096 shlibpath_overrides_runpath=yes 4097 ;; 4098 freebsd3.[[01]]* | freebsdelf3.[[01]]*) 4099 shlibpath_overrides_runpath=yes 4100 hardcode_into_libs=yes 4101 ;; 4102 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ 4103 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) 4104 shlibpath_overrides_runpath=no 4105 hardcode_into_libs=yes 4106 ;; 4107 *) # from 4.6 on, and DragonFly 4108 shlibpath_overrides_runpath=yes 4109 hardcode_into_libs=yes 4110 ;; 4111 esac 4112 ;; 4113 4114gnu*) 4115 version_type=linux 4116 need_lib_prefix=no 4117 need_version=no 4118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 4119 soname_spec='${libname}${release}${shared_ext}$major' 4120 shlibpath_var=LD_LIBRARY_PATH 4121 hardcode_into_libs=yes 4122 ;; 4123 4124hpux9* | hpux10* | hpux11*) 4125 # Give a soname corresponding to the major version so that dld.sl refuses to 4126 # link against other versions. 4127 version_type=sunos 4128 need_lib_prefix=no 4129 need_version=no 4130 case $host_cpu in 4131 ia64*) 4132 shrext_cmds='.so' 4133 hardcode_into_libs=yes 4134 dynamic_linker="$host_os dld.so" 4135 shlibpath_var=LD_LIBRARY_PATH 4136 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 4137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4138 soname_spec='${libname}${release}${shared_ext}$major' 4139 if test "X$HPUX_IA64_MODE" = X32; then 4140 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 4141 else 4142 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 4143 fi 4144 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 4145 ;; 4146 hppa*64*) 4147 shrext_cmds='.sl' 4148 hardcode_into_libs=yes 4149 dynamic_linker="$host_os dld.sl" 4150 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 4151 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 4152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4153 soname_spec='${libname}${release}${shared_ext}$major' 4154 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 4155 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 4156 ;; 4157 *) 4158 shrext_cmds='.sl' 4159 dynamic_linker="$host_os dld.sl" 4160 shlibpath_var=SHLIB_PATH 4161 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 4162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4163 soname_spec='${libname}${release}${shared_ext}$major' 4164 ;; 4165 esac 4166 # HP-UX runs *really* slowly unless shared libraries are mode 555. 4167 postinstall_cmds='chmod 555 $lib' 4168 ;; 4169 4170interix[[3-9]]*) 4171 version_type=linux 4172 need_lib_prefix=no 4173 need_version=no 4174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 4175 soname_spec='${libname}${release}${shared_ext}$major' 4176 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 4177 shlibpath_var=LD_LIBRARY_PATH 4178 shlibpath_overrides_runpath=no 4179 hardcode_into_libs=yes 4180 ;; 4181 4182irix5* | irix6* | nonstopux*) 4183 case $host_os in 4184 nonstopux*) version_type=nonstopux ;; 4185 *) 4186 if test "$lt_cv_prog_gnu_ld" = yes; then 4187 version_type=linux 4188 else 4189 version_type=irix 4190 fi ;; 4191 esac 4192 need_lib_prefix=no 4193 need_version=no 4194 soname_spec='${libname}${release}${shared_ext}$major' 4195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 4196 case $host_os in 4197 irix5* | nonstopux*) 4198 libsuff= shlibsuff= 4199 ;; 4200 *) 4201 case $LD in # libtool.m4 will add one of these switches to LD 4202 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 4203 libsuff= shlibsuff= libmagic=32-bit;; 4204 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 4205 libsuff=32 shlibsuff=N32 libmagic=N32;; 4206 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 4207 libsuff=64 shlibsuff=64 libmagic=64-bit;; 4208 *) libsuff= shlibsuff= libmagic=never-match;; 4209 esac 4210 ;; 4211 esac 4212 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 4213 shlibpath_overrides_runpath=no 4214 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 4215 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 4216 hardcode_into_libs=yes 4217 ;; 4218 4219# No shared lib support for Linux oldld, aout, or coff. 4220linux*oldld* | linux*aout* | linux*coff*) 4221 dynamic_linker=no 4222 ;; 4223 4224# This must be Linux ELF. 4225linux* | k*bsd*-gnu | kopensolaris*-gnu) 4226 version_type=linux 4227 need_lib_prefix=no 4228 need_version=no 4229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4230 soname_spec='${libname}${release}${shared_ext}$major' 4231 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 4232 shlibpath_var=LD_LIBRARY_PATH 4233 shlibpath_overrides_runpath=no 4234 # Some binutils ld are patched to set DT_RUNPATH 4235 save_LDFLAGS=$LDFLAGS 4236 save_libdir=$libdir 4237 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ 4238 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" 4239 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 4240 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], 4241 [shlibpath_overrides_runpath=yes])]) 4242 LDFLAGS=$save_LDFLAGS 4243 libdir=$save_libdir 4244 4245 # This implies no fast_install, which is unacceptable. 4246 # Some rework will be needed to allow for fast_install 4247 # before this can be enabled. 4248 hardcode_into_libs=yes 4249 4250 # Append ld.so.conf contents to the search path 4251 if test -f /etc/ld.so.conf; then 4252 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 4253 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 4254 fi 4255 4256 # We used to test for /lib/ld.so.1 and disable shared libraries on 4257 # powerpc, because MkLinux only supported shared libraries with the 4258 # GNU dynamic linker. Since this was broken with cross compilers, 4259 # most powerpc-linux boxes support dynamic linking these days and 4260 # people can always --disable-shared, the test was removed, and we 4261 # assume the GNU/Linux dynamic linker is in use. 4262 dynamic_linker='GNU/Linux ld.so' 4263 ;; 4264 4265netbsdelf*-gnu) 4266 version_type=linux 4267 need_lib_prefix=no 4268 need_version=no 4269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 4270 soname_spec='${libname}${release}${shared_ext}$major' 4271 shlibpath_var=LD_LIBRARY_PATH 4272 shlibpath_overrides_runpath=no 4273 hardcode_into_libs=yes 4274 dynamic_linker='NetBSD ld.elf_so' 4275 ;; 4276 4277netbsd*) 4278 version_type=sunos 4279 need_lib_prefix=no 4280 need_version=no 4281 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 4282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 4283 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 4284 dynamic_linker='NetBSD (a.out) ld.so' 4285 else 4286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 4287 soname_spec='${libname}${release}${shared_ext}$major' 4288 dynamic_linker='NetBSD ld.elf_so' 4289 fi 4290 shlibpath_var=LD_LIBRARY_PATH 4291 shlibpath_overrides_runpath=yes 4292 hardcode_into_libs=yes 4293 ;; 4294 4295newsos6) 4296 version_type=linux 4297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4298 shlibpath_var=LD_LIBRARY_PATH 4299 shlibpath_overrides_runpath=yes 4300 ;; 4301 4302*nto* | *qnx*) 4303 version_type=qnx 4304 need_lib_prefix=no 4305 need_version=no 4306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4307 soname_spec='${libname}${release}${shared_ext}$major' 4308 shlibpath_var=LD_LIBRARY_PATH 4309 shlibpath_overrides_runpath=no 4310 hardcode_into_libs=yes 4311 dynamic_linker='ldqnx.so' 4312 ;; 4313 4314openbsd*) 4315 version_type=sunos 4316 sys_lib_dlsearch_path_spec="/usr/lib" 4317 need_lib_prefix=no 4318 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 4319 case $host_os in 4320 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 4321 *) need_version=no ;; 4322 esac 4323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 4324 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 4325 shlibpath_var=LD_LIBRARY_PATH 4326 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4327 case $host_os in 4328 openbsd2.[[89]] | openbsd2.[[89]].*) 4329 shlibpath_overrides_runpath=no 4330 ;; 4331 *) 4332 shlibpath_overrides_runpath=yes 4333 ;; 4334 esac 4335 else 4336 shlibpath_overrides_runpath=yes 4337 fi 4338 ;; 4339 4340os2*) 4341 libname_spec='$name' 4342 shrext_cmds=".dll" 4343 need_lib_prefix=no 4344 library_names_spec='$libname${shared_ext} $libname.a' 4345 dynamic_linker='OS/2 ld.exe' 4346 shlibpath_var=LIBPATH 4347 ;; 4348 4349osf3* | osf4* | osf5*) 4350 version_type=osf 4351 need_lib_prefix=no 4352 need_version=no 4353 soname_spec='${libname}${release}${shared_ext}$major' 4354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4355 shlibpath_var=LD_LIBRARY_PATH 4356 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 4357 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 4358 ;; 4359 4360rdos*) 4361 dynamic_linker=no 4362 ;; 4363 4364solaris*) 4365 version_type=linux 4366 need_lib_prefix=no 4367 need_version=no 4368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4369 soname_spec='${libname}${release}${shared_ext}$major' 4370 shlibpath_var=LD_LIBRARY_PATH 4371 shlibpath_overrides_runpath=yes 4372 hardcode_into_libs=yes 4373 # ldd complains unless libraries are executable 4374 postinstall_cmds='chmod +x $lib' 4375 ;; 4376 4377sunos4*) 4378 version_type=sunos 4379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 4380 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 4381 shlibpath_var=LD_LIBRARY_PATH 4382 shlibpath_overrides_runpath=yes 4383 if test "$with_gnu_ld" = yes; then 4384 need_lib_prefix=no 4385 fi 4386 need_version=yes 4387 ;; 4388 4389sysv4 | sysv4.3*) 4390 version_type=linux 4391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4392 soname_spec='${libname}${release}${shared_ext}$major' 4393 shlibpath_var=LD_LIBRARY_PATH 4394 case $host_vendor in 4395 sni) 4396 shlibpath_overrides_runpath=no 4397 need_lib_prefix=no 4398 runpath_var=LD_RUN_PATH 4399 ;; 4400 siemens) 4401 need_lib_prefix=no 4402 ;; 4403 motorola) 4404 need_lib_prefix=no 4405 need_version=no 4406 shlibpath_overrides_runpath=no 4407 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 4408 ;; 4409 esac 4410 ;; 4411 4412sysv4*MP*) 4413 if test -d /usr/nec ;then 4414 version_type=linux 4415 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 4416 soname_spec='$libname${shared_ext}.$major' 4417 shlibpath_var=LD_LIBRARY_PATH 4418 fi 4419 ;; 4420 4421sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4422 version_type=freebsd-elf 4423 need_lib_prefix=no 4424 need_version=no 4425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 4426 soname_spec='${libname}${release}${shared_ext}$major' 4427 shlibpath_var=LD_LIBRARY_PATH 4428 shlibpath_overrides_runpath=yes 4429 hardcode_into_libs=yes 4430 if test "$with_gnu_ld" = yes; then 4431 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 4432 else 4433 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 4434 case $host_os in 4435 sco3.2v5*) 4436 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 4437 ;; 4438 esac 4439 fi 4440 sys_lib_dlsearch_path_spec='/usr/lib' 4441 ;; 4442 4443tpf*) 4444 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 4445 version_type=linux 4446 need_lib_prefix=no 4447 need_version=no 4448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4449 shlibpath_var=LD_LIBRARY_PATH 4450 shlibpath_overrides_runpath=no 4451 hardcode_into_libs=yes 4452 ;; 4453 4454uts4*) 4455 version_type=linux 4456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4457 soname_spec='${libname}${release}${shared_ext}$major' 4458 shlibpath_var=LD_LIBRARY_PATH 4459 ;; 4460 4461*) 4462 dynamic_linker=no 4463 ;; 4464esac 4465AC_MSG_RESULT([$dynamic_linker]) 4466test "$dynamic_linker" = no && can_build_shared=no 4467 4468variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 4469if test "$GCC" = yes; then 4470 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 4471fi 4472 4473if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 4474 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 4475fi 4476if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 4477 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 4478fi 4479 4480_LT_DECL([], [variables_saved_for_relink], [1], 4481 [Variables whose values should be saved in libtool wrapper scripts and 4482 restored at link time]) 4483_LT_DECL([], [need_lib_prefix], [0], 4484 [Do we need the "lib" prefix for modules?]) 4485_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) 4486_LT_DECL([], [version_type], [0], [Library versioning type]) 4487_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) 4488_LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) 4489_LT_DECL([], [shlibpath_overrides_runpath], [0], 4490 [Is shlibpath searched before the hard-coded library search path?]) 4491_LT_DECL([], [libname_spec], [1], [Format of library name prefix]) 4492_LT_DECL([], [library_names_spec], [1], 4493 [[List of archive names. First name is the real one, the rest are links. 4494 The last name is the one that the linker finds with -lNAME]]) 4495_LT_DECL([], [soname_spec], [1], 4496 [[The coded name of the library, if different from the real name]]) 4497_LT_DECL([], [postinstall_cmds], [2], 4498 [Command to use after installation of a shared archive]) 4499_LT_DECL([], [postuninstall_cmds], [2], 4500 [Command to use after uninstallation of a shared archive]) 4501_LT_DECL([], [finish_cmds], [2], 4502 [Commands used to finish a libtool library installation in a directory]) 4503_LT_DECL([], [finish_eval], [1], 4504 [[As "finish_cmds", except a single script fragment to be evaled but 4505 not shown]]) 4506_LT_DECL([], [hardcode_into_libs], [0], 4507 [Whether we should hardcode library paths into libraries]) 4508_LT_DECL([], [sys_lib_search_path_spec], [2], 4509 [Compile-time system search path for libraries]) 4510_LT_DECL([], [sys_lib_dlsearch_path_spec], [2], 4511 [Run-time system search path for libraries]) 4512])# _LT_SYS_DYNAMIC_LINKER 4513 4514 4515# _LT_PATH_TOOL_PREFIX(TOOL) 4516# -------------------------- 4517# find a file program which can recognize shared library 4518AC_DEFUN([_LT_PATH_TOOL_PREFIX], 4519[m4_require([_LT_DECL_EGREP])dnl 4520AC_MSG_CHECKING([for $1]) 4521AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, 4522[case $MAGIC_CMD in 4523[[\\/*] | ?:[\\/]*]) 4524 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 4525 ;; 4526*) 4527 lt_save_MAGIC_CMD="$MAGIC_CMD" 4528 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4529dnl $ac_dummy forces splitting on constant user-supplied paths. 4530dnl POSIX.2 word splitting is done only on the output of word expansions, 4531dnl not every word. This closes a longstanding sh security hole. 4532 ac_dummy="m4_if([$2], , $PATH, [$2])" 4533 for ac_dir in $ac_dummy; do 4534 IFS="$lt_save_ifs" 4535 test -z "$ac_dir" && ac_dir=. 4536 if test -f $ac_dir/$1; then 4537 lt_cv_path_MAGIC_CMD="$ac_dir/$1" 4538 if test -n "$file_magic_test_file"; then 4539 case $deplibs_check_method in 4540 "file_magic "*) 4541 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 4542 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 4543 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 4544 $EGREP "$file_magic_regex" > /dev/null; then 4545 : 4546 else 4547 cat <<_LT_EOF 1>&2 4548 4549*** Warning: the command libtool uses to detect shared libraries, 4550*** $file_magic_cmd, produces output that libtool cannot recognize. 4551*** The result is that libtool may fail to recognize shared libraries 4552*** as such. This will affect the creation of libtool libraries that 4553*** depend on shared libraries, but programs linked with such libtool 4554*** libraries will work regardless of this problem. Nevertheless, you 4555*** may want to report the problem to your system manager and/or to 4556*** bug-libtool@gnu.org 4557 4558_LT_EOF 4559 fi ;; 4560 esac 4561 fi 4562 break 4563 fi 4564 done 4565 IFS="$lt_save_ifs" 4566 MAGIC_CMD="$lt_save_MAGIC_CMD" 4567 ;; 4568esac]) 4569MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 4570if test -n "$MAGIC_CMD"; then 4571 AC_MSG_RESULT($MAGIC_CMD) 4572else 4573 AC_MSG_RESULT(no) 4574fi 4575_LT_DECL([], [MAGIC_CMD], [0], 4576 [Used to examine libraries when file_magic_cmd begins with "file"])dnl 4577])# _LT_PATH_TOOL_PREFIX 4578 4579# Old name: 4580AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) 4581dnl aclocal-1.4 backwards compatibility: 4582dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) 4583 4584 4585# _LT_PATH_MAGIC 4586# -------------- 4587# find a file program which can recognize a shared library 4588m4_defun([_LT_PATH_MAGIC], 4589[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) 4590if test -z "$lt_cv_path_MAGIC_CMD"; then 4591 if test -n "$ac_tool_prefix"; then 4592 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) 4593 else 4594 MAGIC_CMD=: 4595 fi 4596fi 4597])# _LT_PATH_MAGIC 4598 4599 4600# LT_PATH_LD 4601# ---------- 4602# find the pathname to the GNU or non-GNU linker 4603AC_DEFUN([LT_PATH_LD], 4604[AC_REQUIRE([AC_PROG_CC])dnl 4605AC_REQUIRE([AC_CANONICAL_HOST])dnl 4606AC_REQUIRE([AC_CANONICAL_BUILD])dnl 4607m4_require([_LT_DECL_SED])dnl 4608m4_require([_LT_DECL_EGREP])dnl 4609 4610AC_ARG_WITH([gnu-ld], 4611 [AS_HELP_STRING([--with-gnu-ld], 4612 [assume the C compiler uses GNU ld @<:@default=no@:>@])], 4613 [test "$withval" = no || with_gnu_ld=yes], 4614 [with_gnu_ld=no])dnl 4615 4616ac_prog=ld 4617if test "$GCC" = yes; then 4618 # Check if gcc -print-prog-name=ld gives a path. 4619 AC_MSG_CHECKING([for ld used by $CC]) 4620 case $host in 4621 *-*-mingw*) 4622 # gcc leaves a trailing carriage return which upsets mingw 4623 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4624 *) 4625 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4626 esac 4627 case $ac_prog in 4628 # Accept absolute paths. 4629 [[\\/]]* | ?:[[\\/]]*) 4630 re_direlt='/[[^/]][[^/]]*/\.\./' 4631 # Canonicalize the pathname of ld 4632 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4633 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4634 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4635 done 4636 test -z "$LD" && LD="$ac_prog" 4637 ;; 4638 "") 4639 # If it fails, then pretend we aren't using GCC. 4640 ac_prog=ld 4641 ;; 4642 *) 4643 # If it is relative, then search for the first ld in PATH. 4644 with_gnu_ld=unknown 4645 ;; 4646 esac 4647elif test "$with_gnu_ld" = yes; then 4648 AC_MSG_CHECKING([for GNU ld]) 4649else 4650 AC_MSG_CHECKING([for non-GNU ld]) 4651fi 4652AC_CACHE_VAL(lt_cv_path_LD, 4653[if test -z "$LD"; then 4654 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4655 for ac_dir in $PATH; do 4656 IFS="$lt_save_ifs" 4657 test -z "$ac_dir" && ac_dir=. 4658 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4659 lt_cv_path_LD="$ac_dir/$ac_prog" 4660 # Check to see if the program is GNU ld. I'd rather use --version, 4661 # but apparently some variants of GNU ld only accept -v. 4662 # Break only if it was the GNU/non-GNU ld that we prefer. 4663 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4664 *GNU* | *'with BFD'*) 4665 test "$with_gnu_ld" != no && break 4666 ;; 4667 *) 4668 test "$with_gnu_ld" != yes && break 4669 ;; 4670 esac 4671 fi 4672 done 4673 IFS="$lt_save_ifs" 4674else 4675 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4676fi]) 4677LD="$lt_cv_path_LD" 4678if test -n "$LD"; then 4679 AC_MSG_RESULT($LD) 4680else 4681 AC_MSG_RESULT(no) 4682fi 4683test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 4684_LT_PATH_LD_GNU 4685AC_SUBST([LD]) 4686 4687_LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) 4688])# LT_PATH_LD 4689 4690# Old names: 4691AU_ALIAS([AM_PROG_LD], [LT_PATH_LD]) 4692AU_ALIAS([AC_PROG_LD], [LT_PATH_LD]) 4693dnl aclocal-1.4 backwards compatibility: 4694dnl AC_DEFUN([AM_PROG_LD], []) 4695dnl AC_DEFUN([AC_PROG_LD], []) 4696 4697 4698# _LT_PATH_LD_GNU 4699#- -------------- 4700m4_defun([_LT_PATH_LD_GNU], 4701[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 4702[# I'd rather use --version here, but apparently some GNU lds only accept -v. 4703case `$LD -v 2>&1 </dev/null` in 4704*GNU* | *'with BFD'*) 4705 lt_cv_prog_gnu_ld=yes 4706 ;; 4707*) 4708 lt_cv_prog_gnu_ld=no 4709 ;; 4710esac]) 4711with_gnu_ld=$lt_cv_prog_gnu_ld 4712])# _LT_PATH_LD_GNU 4713 4714 4715# _LT_CMD_RELOAD 4716# -------------- 4717# find reload flag for linker 4718# -- PORTME Some linkers may need a different reload flag. 4719m4_defun([_LT_CMD_RELOAD], 4720[AC_CACHE_CHECK([for $LD option to reload object files], 4721 lt_cv_ld_reload_flag, 4722 [lt_cv_ld_reload_flag='-r']) 4723reload_flag=$lt_cv_ld_reload_flag 4724case $reload_flag in 4725"" | " "*) ;; 4726*) reload_flag=" $reload_flag" ;; 4727esac 4728reload_cmds='$LD$reload_flag -o $output$reload_objs' 4729case $host_os in 4730 darwin*) 4731 if test "$GCC" = yes; then 4732 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4733 else 4734 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4735 fi 4736 ;; 4737esac 4738_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl 4739_LT_DECL([], [reload_cmds], [2])dnl 4740])# _LT_CMD_RELOAD 4741 4742 4743# _LT_CHECK_MAGIC_METHOD 4744# ---------------------- 4745# how to check for library dependencies 4746# -- PORTME fill in with the dynamic library characteristics 4747m4_defun([_LT_CHECK_MAGIC_METHOD], 4748[m4_require([_LT_DECL_EGREP]) 4749m4_require([_LT_DECL_OBJDUMP]) 4750AC_CACHE_CHECK([how to recognize dependent libraries], 4751lt_cv_deplibs_check_method, 4752[lt_cv_file_magic_cmd='$MAGIC_CMD' 4753lt_cv_file_magic_test_file= 4754lt_cv_deplibs_check_method='unknown' 4755# Need to set the preceding variable on all platforms that support 4756# interlibrary dependencies. 4757# 'none' -- dependencies not supported. 4758# `unknown' -- same as none, but documents that we really don't know. 4759# 'pass_all' -- all dependencies passed with no checks. 4760# 'test_compile' -- check by making test program. 4761# 'file_magic [[regex]]' -- check by looking for files in library path 4762# which responds to the $file_magic_cmd with a given extended regex. 4763# If you have `file' or equivalent on your system and you're not sure 4764# whether `pass_all' will *always* work, you probably want this one. 4765 4766case $host_os in 4767aix[[4-9]]*) 4768 lt_cv_deplibs_check_method=pass_all 4769 ;; 4770 4771beos*) 4772 lt_cv_deplibs_check_method=pass_all 4773 ;; 4774 4775bsdi[[45]]*) 4776 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 4777 lt_cv_file_magic_cmd='/usr/bin/file -L' 4778 lt_cv_file_magic_test_file=/shlib/libc.so 4779 ;; 4780 4781cygwin*) 4782 # func_win32_libid is a shell function defined in ltmain.sh 4783 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4784 lt_cv_file_magic_cmd='func_win32_libid' 4785 ;; 4786 4787mingw* | pw32*) 4788 # Base MSYS/MinGW do not provide the 'file' command needed by 4789 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4790 # unless we find 'file', for example because we are cross-compiling. 4791 if ( file / ) >/dev/null 2>&1; then 4792 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4793 lt_cv_file_magic_cmd='func_win32_libid' 4794 else 4795 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4796 lt_cv_file_magic_cmd='$OBJDUMP -f' 4797 fi 4798 ;; 4799 4800cegcc) 4801 # use the weaker test based on 'objdump'. See mingw*. 4802 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4803 lt_cv_file_magic_cmd='$OBJDUMP -f' 4804 ;; 4805 4806darwin* | rhapsody*) 4807 lt_cv_deplibs_check_method=pass_all 4808 ;; 4809 4810freebsd* | dragonfly*) 4811 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4812 case $host_cpu in 4813 i*86 ) 4814 # Not sure whether the presence of OpenBSD here was a mistake. 4815 # Let's accept both of them until this is cleared up. 4816 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' 4817 lt_cv_file_magic_cmd=/usr/bin/file 4818 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4819 ;; 4820 esac 4821 else 4822 lt_cv_deplibs_check_method=pass_all 4823 fi 4824 ;; 4825 4826gnu*) 4827 lt_cv_deplibs_check_method=pass_all 4828 ;; 4829 4830hpux10.20* | hpux11*) 4831 lt_cv_file_magic_cmd=/usr/bin/file 4832 case $host_cpu in 4833 ia64*) 4834 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' 4835 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4836 ;; 4837 hppa*64*) 4838 [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]'] 4839 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4840 ;; 4841 *) 4842 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' 4843 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4844 ;; 4845 esac 4846 ;; 4847 4848interix[[3-9]]*) 4849 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4850 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' 4851 ;; 4852 4853irix5* | irix6* | nonstopux*) 4854 case $LD in 4855 *-32|*"-32 ") libmagic=32-bit;; 4856 *-n32|*"-n32 ") libmagic=N32;; 4857 *-64|*"-64 ") libmagic=64-bit;; 4858 *) libmagic=never-match;; 4859 esac 4860 lt_cv_deplibs_check_method=pass_all 4861 ;; 4862 4863# This must be Linux ELF. 4864linux* | k*bsd*-gnu | kopensolaris*-gnu) 4865 lt_cv_deplibs_check_method=pass_all 4866 ;; 4867 4868netbsd* | netbsdelf*-gnu) 4869 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4870 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 4871 else 4872 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' 4873 fi 4874 ;; 4875 4876newos6*) 4877 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' 4878 lt_cv_file_magic_cmd=/usr/bin/file 4879 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4880 ;; 4881 4882*nto* | *qnx*) 4883 lt_cv_deplibs_check_method=pass_all 4884 ;; 4885 4886openbsd*) 4887 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4888 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' 4889 else 4890 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 4891 fi 4892 ;; 4893 4894osf3* | osf4* | osf5*) 4895 lt_cv_deplibs_check_method=pass_all 4896 ;; 4897 4898rdos*) 4899 lt_cv_deplibs_check_method=pass_all 4900 ;; 4901 4902solaris*) 4903 lt_cv_deplibs_check_method=pass_all 4904 ;; 4905 4906sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4907 lt_cv_deplibs_check_method=pass_all 4908 ;; 4909 4910sysv4 | sysv4.3*) 4911 case $host_vendor in 4912 motorola) 4913 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]]' 4914 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4915 ;; 4916 ncr) 4917 lt_cv_deplibs_check_method=pass_all 4918 ;; 4919 sequent) 4920 lt_cv_file_magic_cmd='/bin/file' 4921 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' 4922 ;; 4923 sni) 4924 lt_cv_file_magic_cmd='/bin/file' 4925 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" 4926 lt_cv_file_magic_test_file=/lib/libc.so 4927 ;; 4928 siemens) 4929 lt_cv_deplibs_check_method=pass_all 4930 ;; 4931 pc) 4932 lt_cv_deplibs_check_method=pass_all 4933 ;; 4934 esac 4935 ;; 4936 4937tpf*) 4938 lt_cv_deplibs_check_method=pass_all 4939 ;; 4940esac 4941]) 4942file_magic_cmd=$lt_cv_file_magic_cmd 4943deplibs_check_method=$lt_cv_deplibs_check_method 4944test -z "$deplibs_check_method" && deplibs_check_method=unknown 4945 4946_LT_DECL([], [deplibs_check_method], [1], 4947 [Method to check whether dependent libraries are shared objects]) 4948_LT_DECL([], [file_magic_cmd], [1], 4949 [Command to use when deplibs_check_method == "file_magic"]) 4950])# _LT_CHECK_MAGIC_METHOD 4951 4952 4953# LT_PATH_NM 4954# ---------- 4955# find the pathname to a BSD- or MS-compatible name lister 4956AC_DEFUN([LT_PATH_NM], 4957[AC_REQUIRE([AC_PROG_CC])dnl 4958AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, 4959[if test -n "$NM"; then 4960 # Let the user override the test. 4961 lt_cv_path_NM="$NM" 4962else 4963 lt_nm_to_check="${ac_tool_prefix}nm" 4964 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4965 lt_nm_to_check="$lt_nm_to_check nm" 4966 fi 4967 for lt_tmp_nm in $lt_nm_to_check; do 4968 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4969 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4970 IFS="$lt_save_ifs" 4971 test -z "$ac_dir" && ac_dir=. 4972 tmp_nm="$ac_dir/$lt_tmp_nm" 4973 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4974 # Check to see if the nm accepts a BSD-compat flag. 4975 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4976 # nm: unknown option "B" ignored 4977 # Tru64's nm complains that /dev/null is an invalid object file 4978 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4979 */dev/null* | *'Invalid file or object type'*) 4980 lt_cv_path_NM="$tmp_nm -B" 4981 break 4982 ;; 4983 *) 4984 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4985 */dev/null*) 4986 lt_cv_path_NM="$tmp_nm -p" 4987 break 4988 ;; 4989 *) 4990 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4991 continue # so that we can try to find one that supports BSD flags 4992 ;; 4993 esac 4994 ;; 4995 esac 4996 fi 4997 done 4998 IFS="$lt_save_ifs" 4999 done 5000 : ${lt_cv_path_NM=no} 5001fi]) 5002if test "$lt_cv_path_NM" != "no"; then 5003 NM="$lt_cv_path_NM" 5004else 5005 # Didn't find any BSD compatible name lister, look for dumpbin. 5006 AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :) 5007 AC_SUBST([DUMPBIN]) 5008 if test "$DUMPBIN" != ":"; then 5009 NM="$DUMPBIN" 5010 fi 5011fi 5012test -z "$NM" && NM=nm 5013AC_SUBST([NM]) 5014_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl 5015 5016AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], 5017 [lt_cv_nm_interface="BSD nm" 5018 echo "int some_variable = 0;" > conftest.$ac_ext 5019 (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD) 5020 (eval "$ac_compile" 2>conftest.err) 5021 cat conftest.err >&AS_MESSAGE_LOG_FD 5022 (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) 5023 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5024 cat conftest.err >&AS_MESSAGE_LOG_FD 5025 (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD) 5026 cat conftest.out >&AS_MESSAGE_LOG_FD 5027 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5028 lt_cv_nm_interface="MS dumpbin" 5029 fi 5030 rm -f conftest*]) 5031])# LT_PATH_NM 5032 5033# Old names: 5034AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) 5035AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) 5036dnl aclocal-1.4 backwards compatibility: 5037dnl AC_DEFUN([AM_PROG_NM], []) 5038dnl AC_DEFUN([AC_PROG_NM], []) 5039 5040 5041# LT_LIB_M 5042# -------- 5043# check for math library 5044AC_DEFUN([LT_LIB_M], 5045[AC_REQUIRE([AC_CANONICAL_HOST])dnl 5046LIBM= 5047case $host in 5048*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) 5049 # These system don't have libm, or don't need it 5050 ;; 5051*-ncr-sysv4.3*) 5052 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") 5053 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") 5054 ;; 5055*) 5056 AC_CHECK_LIB(m, cos, LIBM="-lm") 5057 ;; 5058esac 5059AC_SUBST([LIBM]) 5060])# LT_LIB_M 5061 5062# Old name: 5063AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) 5064dnl aclocal-1.4 backwards compatibility: 5065dnl AC_DEFUN([AC_CHECK_LIBM], []) 5066 5067 5068# _LT_COMPILER_NO_RTTI([TAGNAME]) 5069# ------------------------------- 5070m4_defun([_LT_COMPILER_NO_RTTI], 5071[m4_require([_LT_TAG_COMPILER])dnl 5072 5073_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 5074 5075if test "$GCC" = yes; then 5076 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 5077 5078 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], 5079 lt_cv_prog_compiler_rtti_exceptions, 5080 [-fno-rtti -fno-exceptions], [], 5081 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) 5082fi 5083_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], 5084 [Compiler flag to turn off builtin functions]) 5085])# _LT_COMPILER_NO_RTTI 5086 5087 5088# _LT_CMD_GLOBAL_SYMBOLS 5089# ---------------------- 5090m4_defun([_LT_CMD_GLOBAL_SYMBOLS], 5091[AC_REQUIRE([AC_CANONICAL_HOST])dnl 5092AC_REQUIRE([AC_PROG_CC])dnl 5093AC_REQUIRE([LT_PATH_NM])dnl 5094AC_REQUIRE([LT_PATH_LD])dnl 5095m4_require([_LT_DECL_SED])dnl 5096m4_require([_LT_DECL_EGREP])dnl 5097m4_require([_LT_TAG_COMPILER])dnl 5098 5099# Check for command to grab the raw symbol name followed by C symbol from nm. 5100AC_MSG_CHECKING([command to parse $NM output from $compiler object]) 5101AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], 5102[ 5103# These are sane defaults that work on at least a few old systems. 5104# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5105 5106# Character class describing NM global symbol codes. 5107symcode='[[BCDEGRST]]' 5108 5109# Regexp to match symbols that can be accessed directly from C. 5110sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 5111 5112# Define system-specific variables. 5113case $host_os in 5114aix*) 5115 symcode='[[BCDT]]' 5116 ;; 5117cygwin* | mingw* | pw32* | cegcc*) 5118 symcode='[[ABCDGISTW]]' 5119 ;; 5120hpux*) 5121 if test "$host_cpu" = ia64; then 5122 symcode='[[ABCDEGRST]]' 5123 fi 5124 ;; 5125irix* | nonstopux*) 5126 symcode='[[BCDEGRST]]' 5127 ;; 5128osf*) 5129 symcode='[[BCDEGQRST]]' 5130 ;; 5131solaris*) 5132 symcode='[[BDRT]]' 5133 ;; 5134sco3.2v5*) 5135 symcode='[[DT]]' 5136 ;; 5137sysv4.2uw2*) 5138 symcode='[[DT]]' 5139 ;; 5140sysv5* | sco5v6* | unixware* | OpenUNIX*) 5141 symcode='[[ABDT]]' 5142 ;; 5143sysv4) 5144 symcode='[[DFNSTU]]' 5145 ;; 5146esac 5147 5148# If we're using GNU nm, then use its standard symbol codes. 5149case `$NM -V 2>&1` in 5150*GNU* | *'with BFD'*) 5151 symcode='[[ABCDGIRSTW]]' ;; 5152esac 5153 5154# Transform an extracted symbol line into a proper C declaration. 5155# Some systems (esp. on ia64) link data and code symbols differently, 5156# so use this general approach. 5157lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5158 5159# Transform an extracted symbol line into symbol name and symbol address 5160lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" 5161lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 5162 5163# Handle CRLF in mingw tool chain 5164opt_cr= 5165case $build_os in 5166mingw*) 5167 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5168 ;; 5169esac 5170 5171# Try without a prefix underscore, then with it. 5172for ac_symprfx in "" "_"; do 5173 5174 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5175 symxfrm="\\1 $ac_symprfx\\2 \\2" 5176 5177 # Write the raw and C identifiers. 5178 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5179 # Fake it for dumpbin and say T for any non-static function 5180 # and D for any global variable. 5181 # Also find C++ and __fastcall symbols from MSVC++, 5182 # which start with @ or ?. 5183 lt_cv_sys_global_symbol_pipe="$AWK ['"\ 5184" {last_section=section; section=\$ 3};"\ 5185" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5186" \$ 0!~/External *\|/{next};"\ 5187" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5188" {if(hide[section]) next};"\ 5189" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5190" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5191" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5192" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5193" ' prfx=^$ac_symprfx]" 5194 else 5195 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5196 fi 5197 5198 # Check to see that the pipe works correctly. 5199 pipe_works=no 5200 5201 rm -f conftest* 5202 cat > conftest.$ac_ext <<_LT_EOF 5203#ifdef __cplusplus 5204extern "C" { 5205#endif 5206char nm_test_var; 5207void nm_test_func(void); 5208void nm_test_func(void){} 5209#ifdef __cplusplus 5210} 5211#endif 5212int main(){nm_test_var='a';nm_test_func();return(0);} 5213_LT_EOF 5214 5215 if AC_TRY_EVAL(ac_compile); then 5216 # Now try to grab the symbols. 5217 nlist=conftest.nm 5218 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then 5219 # Try sorting and uniquifying the output. 5220 if sort "$nlist" | uniq > "$nlist"T; then 5221 mv -f "$nlist"T "$nlist" 5222 else 5223 rm -f "$nlist"T 5224 fi 5225 5226 # Make sure that we snagged all the symbols we need. 5227 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5228 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5229 cat <<_LT_EOF > conftest.$ac_ext 5230#ifdef __cplusplus 5231extern "C" { 5232#endif 5233 5234_LT_EOF 5235 # Now generate the symbol file. 5236 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5237 5238 cat <<_LT_EOF >> conftest.$ac_ext 5239 5240/* The mapping between symbol names and symbols. */ 5241const struct { 5242 const char *name; 5243 void *address; 5244} 5245lt__PROGRAM__LTX_preloaded_symbols[[]] = 5246{ 5247 { "@PROGRAM@", (void *) 0 }, 5248_LT_EOF 5249 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5250 cat <<\_LT_EOF >> conftest.$ac_ext 5251 {0, (void *) 0} 5252}; 5253 5254/* This works around a problem in FreeBSD linker */ 5255#ifdef FREEBSD_WORKAROUND 5256static const void *lt_preloaded_setup() { 5257 return lt__PROGRAM__LTX_preloaded_symbols; 5258} 5259#endif 5260 5261#ifdef __cplusplus 5262} 5263#endif 5264_LT_EOF 5265 # Now try linking the two files. 5266 mv conftest.$ac_objext conftstm.$ac_objext 5267 lt_save_LIBS="$LIBS" 5268 lt_save_CFLAGS="$CFLAGS" 5269 LIBS="conftstm.$ac_objext" 5270 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" 5271 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then 5272 pipe_works=yes 5273 fi 5274 LIBS="$lt_save_LIBS" 5275 CFLAGS="$lt_save_CFLAGS" 5276 else 5277 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD 5278 fi 5279 else 5280 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD 5281 fi 5282 else 5283 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD 5284 fi 5285 else 5286 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD 5287 cat conftest.$ac_ext >&5 5288 fi 5289 rm -rf conftest* conftst* 5290 5291 # Do not use the global_symbol_pipe unless it works. 5292 if test "$pipe_works" = yes; then 5293 break 5294 else 5295 lt_cv_sys_global_symbol_pipe= 5296 fi 5297done 5298]) 5299if test -z "$lt_cv_sys_global_symbol_pipe"; then 5300 lt_cv_sys_global_symbol_to_cdecl= 5301fi 5302if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5303 AC_MSG_RESULT(failed) 5304else 5305 AC_MSG_RESULT(ok) 5306fi 5307 5308_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], 5309 [Take the output of nm and produce a listing of raw symbols and C names]) 5310_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], 5311 [Transform the output of nm in a proper C declaration]) 5312_LT_DECL([global_symbol_to_c_name_address], 5313 [lt_cv_sys_global_symbol_to_c_name_address], [1], 5314 [Transform the output of nm in a C name address pair]) 5315_LT_DECL([global_symbol_to_c_name_address_lib_prefix], 5316 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], 5317 [Transform the output of nm in a C name address pair when lib prefix is needed]) 5318]) # _LT_CMD_GLOBAL_SYMBOLS 5319 5320 5321# _LT_COMPILER_PIC([TAGNAME]) 5322# --------------------------- 5323m4_defun([_LT_COMPILER_PIC], 5324[m4_require([_LT_TAG_COMPILER])dnl 5325_LT_TAGVAR(lt_prog_compiler_wl, $1)= 5326_LT_TAGVAR(lt_prog_compiler_pic, $1)= 5327_LT_TAGVAR(lt_prog_compiler_static, $1)= 5328 5329AC_MSG_CHECKING([for $compiler option to produce PIC]) 5330m4_if([$1], [CXX], [ 5331 # C++ specific cases for pic, static, wl, etc. 5332 if test "$GXX" = yes; then 5333 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5334 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 5335 5336 case $host_os in 5337 aix*) 5338 # All AIX code is PIC. 5339 if test "$host_cpu" = ia64; then 5340 # AIX 5 now supports IA64 processor 5341 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5342 fi 5343 ;; 5344 5345 amigaos*) 5346 case $host_cpu in 5347 powerpc) 5348 # see comment about AmigaOS4 .so support 5349 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5350 ;; 5351 m68k) 5352 # FIXME: we need at least 68020 code to build shared libraries, but 5353 # adding the `-m68020' flag to GCC prevents building anything better, 5354 # like `-m68040'. 5355 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 5356 ;; 5357 esac 5358 ;; 5359 5360 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 5361 # PIC is the default for these OSes. 5362 ;; 5363 mingw* | cygwin* | os2* | pw32* | cegcc*) 5364 # This hack is so that the source file can tell whether it is being 5365 # built for inclusion in a dll (and should export symbols for example). 5366 # Although the cygwin gcc ignores -fPIC, still need this for old-style 5367 # (--disable-auto-import) libraries 5368 m4_if([$1], [GCJ], [], 5369 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 5370 ;; 5371 darwin* | rhapsody*) 5372 # PIC is the default on this platform 5373 # Common symbols not allowed in MH_DYLIB files 5374 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 5375 ;; 5376 *djgpp*) 5377 # DJGPP does not support shared libraries at all 5378 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 5379 ;; 5380 interix[[3-9]]*) 5381 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 5382 # Instead, we relocate shared libraries at runtime. 5383 ;; 5384 sysv4*MP*) 5385 if test -d /usr/nec; then 5386 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 5387 fi 5388 ;; 5389 hpux*) 5390 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 5391 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 5392 # sets the default TLS model and affects inlining. 5393 case $host_cpu in 5394 hppa*64*) 5395 ;; 5396 *) 5397 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5398 ;; 5399 esac 5400 ;; 5401 *qnx* | *nto*) 5402 # QNX uses GNU C++, but need to define -shared option too, otherwise 5403 # it will coredump. 5404 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 5405 ;; 5406 *) 5407 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5408 ;; 5409 esac 5410 else 5411 case $host_os in 5412 aix[[4-9]]*) 5413 # All AIX code is PIC. 5414 if test "$host_cpu" = ia64; then 5415 # AIX 5 now supports IA64 processor 5416 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5417 else 5418 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 5419 fi 5420 ;; 5421 chorus*) 5422 case $cc_basename in 5423 cxch68*) 5424 # Green Hills C++ Compiler 5425 # _LT_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" 5426 ;; 5427 esac 5428 ;; 5429 dgux*) 5430 case $cc_basename in 5431 ec++*) 5432 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5433 ;; 5434 ghcx*) 5435 # Green Hills C++ Compiler 5436 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5437 ;; 5438 *) 5439 ;; 5440 esac 5441 ;; 5442 freebsd* | dragonfly*) 5443 # FreeBSD uses GNU C++ 5444 ;; 5445 hpux9* | hpux10* | hpux11*) 5446 case $cc_basename in 5447 CC*) 5448 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5449 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 5450 if test "$host_cpu" != ia64; then 5451 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 5452 fi 5453 ;; 5454 aCC*) 5455 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5456 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 5457 case $host_cpu in 5458 hppa*64*|ia64*) 5459 # +Z the default 5460 ;; 5461 *) 5462 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 5463 ;; 5464 esac 5465 ;; 5466 *) 5467 ;; 5468 esac 5469 ;; 5470 interix*) 5471 # This is c89, which is MS Visual C++ (no shared libs) 5472 # Anyone wants to do a port? 5473 ;; 5474 irix5* | irix6* | nonstopux*) 5475 case $cc_basename in 5476 CC*) 5477 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5478 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5479 # CC pic flag -KPIC is the default. 5480 ;; 5481 *) 5482 ;; 5483 esac 5484 ;; 5485 linux* | k*bsd*-gnu | kopensolaris*-gnu) 5486 case $cc_basename in 5487 KCC*) 5488 # KAI C++ Compiler 5489 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 5490 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5491 ;; 5492 ecpc* ) 5493 # old Intel C++ for x86_64 which still supported -KPIC. 5494 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5495 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5496 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 5497 ;; 5498 icpc* ) 5499 # Intel C++, used to be incompatible with GCC. 5500 # ICC 10 doesn't accept -KPIC any more. 5501 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5502 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5503 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 5504 ;; 5505 pgCC* | pgcpp*) 5506 # Portland Group C++ compiler 5507 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5508 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 5509 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5510 ;; 5511 cxx*) 5512 # Compaq C++ 5513 # Make sure the PIC flag is empty. It appears that all Alpha 5514 # Linux and Compaq Tru64 Unix objects are PIC. 5515 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 5516 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5517 ;; 5518 xlc* | xlC*) 5519 # IBM XL 8.0 on PPC 5520 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5521 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 5522 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 5523 ;; 5524 *) 5525 case `$CC -V 2>&1 | sed 5q` in 5526 *Sun\ C*) 5527 # Sun C++ 5.9 5528 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5529 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5530 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 5531 ;; 5532 esac 5533 ;; 5534 esac 5535 ;; 5536 lynxos*) 5537 ;; 5538 m88k*) 5539 ;; 5540 mvs*) 5541 case $cc_basename in 5542 cxx*) 5543 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' 5544 ;; 5545 *) 5546 ;; 5547 esac 5548 ;; 5549 netbsd* | netbsdelf*-gnu) 5550 ;; 5551 *qnx* | *nto*) 5552 # QNX uses GNU C++, but need to define -shared option too, otherwise 5553 # it will coredump. 5554 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 5555 ;; 5556 osf3* | osf4* | osf5*) 5557 case $cc_basename in 5558 KCC*) 5559 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 5560 ;; 5561 RCC*) 5562 # Rational C++ 2.4.1 5563 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5564 ;; 5565 cxx*) 5566 # Digital/Compaq C++ 5567 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5568 # Make sure the PIC flag is empty. It appears that all Alpha 5569 # Linux and Compaq Tru64 Unix objects are PIC. 5570 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 5571 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5572 ;; 5573 *) 5574 ;; 5575 esac 5576 ;; 5577 psos*) 5578 ;; 5579 solaris*) 5580 case $cc_basename in 5581 CC*) 5582 # Sun C++ 4.2, 5.x and Centerline C++ 5583 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5584 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5585 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 5586 ;; 5587 gcx*) 5588 # Green Hills C++ Compiler 5589 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 5590 ;; 5591 *) 5592 ;; 5593 esac 5594 ;; 5595 sunos4*) 5596 case $cc_basename in 5597 CC*) 5598 # Sun C++ 4.x 5599 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5600 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5601 ;; 5602 lcc*) 5603 # Lucid 5604 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5605 ;; 5606 *) 5607 ;; 5608 esac 5609 ;; 5610 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 5611 case $cc_basename in 5612 CC*) 5613 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5614 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5615 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5616 ;; 5617 esac 5618 ;; 5619 tandem*) 5620 case $cc_basename in 5621 NCC*) 5622 # NonStop-UX NCC 3.20 5623 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5624 ;; 5625 *) 5626 ;; 5627 esac 5628 ;; 5629 vxworks*) 5630 ;; 5631 *) 5632 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 5633 ;; 5634 esac 5635 fi 5636], 5637[ 5638 if test "$GCC" = yes; then 5639 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5640 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 5641 5642 case $host_os in 5643 aix*) 5644 # All AIX code is PIC. 5645 if test "$host_cpu" = ia64; then 5646 # AIX 5 now supports IA64 processor 5647 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5648 fi 5649 ;; 5650 5651 amigaos*) 5652 case $host_cpu in 5653 powerpc) 5654 # see comment about AmigaOS4 .so support 5655 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5656 ;; 5657 m68k) 5658 # FIXME: we need at least 68020 code to build shared libraries, but 5659 # adding the `-m68020' flag to GCC prevents building anything better, 5660 # like `-m68040'. 5661 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 5662 ;; 5663 esac 5664 ;; 5665 5666 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 5667 # PIC is the default for these OSes. 5668 ;; 5669 5670 mingw* | cygwin* | pw32* | os2* | cegcc*) 5671 # This hack is so that the source file can tell whether it is being 5672 # built for inclusion in a dll (and should export symbols for example). 5673 # Although the cygwin gcc ignores -fPIC, still need this for old-style 5674 # (--disable-auto-import) libraries 5675 m4_if([$1], [GCJ], [], 5676 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 5677 ;; 5678 5679 darwin* | rhapsody*) 5680 # PIC is the default on this platform 5681 # Common symbols not allowed in MH_DYLIB files 5682 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 5683 ;; 5684 5685 hpux*) 5686 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 5687 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 5688 # sets the default TLS model and affects inlining. 5689 case $host_cpu in 5690 hppa*64*) 5691 # +Z the default 5692 ;; 5693 *) 5694 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5695 ;; 5696 esac 5697 ;; 5698 5699 interix[[3-9]]*) 5700 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 5701 # Instead, we relocate shared libraries at runtime. 5702 ;; 5703 5704 msdosdjgpp*) 5705 # Just because we use GCC doesn't mean we suddenly get shared libraries 5706 # on systems that don't support them. 5707 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 5708 enable_shared=no 5709 ;; 5710 5711 *nto* | *qnx*) 5712 # QNX uses GNU C++, but need to define -shared option too, otherwise 5713 # it will coredump. 5714 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 5715 ;; 5716 5717 sysv4*MP*) 5718 if test -d /usr/nec; then 5719 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 5720 fi 5721 ;; 5722 5723 *) 5724 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5725 ;; 5726 esac 5727 else 5728 # PORTME Check for flag to pass linker flags through the system compiler. 5729 case $host_os in 5730 aix*) 5731 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5732 if test "$host_cpu" = ia64; then 5733 # AIX 5 now supports IA64 processor 5734 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5735 else 5736 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 5737 fi 5738 ;; 5739 5740 mingw* | cygwin* | pw32* | os2* | cegcc*) 5741 # This hack is so that the source file can tell whether it is being 5742 # built for inclusion in a dll (and should export symbols for example). 5743 m4_if([$1], [GCJ], [], 5744 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 5745 ;; 5746 5747 hpux9* | hpux10* | hpux11*) 5748 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5749 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 5750 # not for PA HP-UX. 5751 case $host_cpu in 5752 hppa*64*|ia64*) 5753 # +Z the default 5754 ;; 5755 *) 5756 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 5757 ;; 5758 esac 5759 # Is there a better lt_prog_compiler_static that works with the bundled CC? 5760 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 5761 ;; 5762 5763 irix5* | irix6* | nonstopux*) 5764 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5765 # PIC (with -KPIC) is the default. 5766 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5767 ;; 5768 5769 linux* | k*bsd*-gnu | kopensolaris*-gnu) 5770 case $cc_basename in 5771 # old Intel for x86_64 which still supported -KPIC. 5772 ecc*) 5773 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5774 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5775 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 5776 ;; 5777 # icc used to be incompatible with GCC. 5778 # ICC 10 doesn't accept -KPIC any more. 5779 icc* | ifort*) 5780 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5781 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5782 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 5783 ;; 5784 # Lahey Fortran 8.1. 5785 lf95*) 5786 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5787 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' 5788 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' 5789 ;; 5790 pgcc* | pgf77* | pgf90* | pgf95*) 5791 # Portland Group compilers (*not* the Pentium gcc compiler, 5792 # which looks to be a dead project) 5793 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5794 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 5795 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5796 ;; 5797 ccc*) 5798 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5799 # All Alpha code is PIC. 5800 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5801 ;; 5802 xl*) 5803 # IBM XL C 8.0/Fortran 10.1 on PPC 5804 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5805 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 5806 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 5807 ;; 5808 *) 5809 case `$CC -V 2>&1 | sed 5q` in 5810 *Sun\ C*) 5811 # Sun C 5.9 5812 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5813 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5814 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5815 ;; 5816 *Sun\ F*) 5817 # Sun Fortran 8.3 passes all unrecognized flags to the linker 5818 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5819 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5820 _LT_TAGVAR(lt_prog_compiler_wl, $1)='' 5821 ;; 5822 esac 5823 ;; 5824 esac 5825 ;; 5826 5827 newsos6) 5828 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5829 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5830 ;; 5831 5832 *nto* | *qnx*) 5833 # QNX uses GNU C++, but need to define -shared option too, otherwise 5834 # it will coredump. 5835 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 5836 ;; 5837 5838 osf3* | osf4* | osf5*) 5839 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5840 # All OSF/1 code is PIC. 5841 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5842 ;; 5843 5844 rdos*) 5845 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5846 ;; 5847 5848 solaris*) 5849 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5850 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5851 case $cc_basename in 5852 f77* | f90* | f95*) 5853 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; 5854 *) 5855 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; 5856 esac 5857 ;; 5858 5859 sunos4*) 5860 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 5861 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 5862 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5863 ;; 5864 5865 sysv4 | sysv4.2uw2* | sysv4.3*) 5866 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5867 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5868 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5869 ;; 5870 5871 sysv4*MP*) 5872 if test -d /usr/nec ;then 5873 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' 5874 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5875 fi 5876 ;; 5877 5878 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 5879 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5880 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5881 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5882 ;; 5883 5884 unicos*) 5885 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5886 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 5887 ;; 5888 5889 uts4*) 5890 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5891 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5892 ;; 5893 5894 *) 5895 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 5896 ;; 5897 esac 5898 fi 5899]) 5900case $host_os in 5901 # For platforms which do not support PIC, -DPIC is meaningless: 5902 *djgpp*) 5903 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 5904 ;; 5905 *) 5906 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" 5907 ;; 5908esac 5909AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) 5910_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], 5911 [How to pass a linker flag through the compiler]) 5912 5913# 5914# Check to make sure the PIC flag actually works. 5915# 5916if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then 5917 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], 5918 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], 5919 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], 5920 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in 5921 "" | " "*) ;; 5922 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; 5923 esac], 5924 [_LT_TAGVAR(lt_prog_compiler_pic, $1)= 5925 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) 5926fi 5927_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], 5928 [Additional compiler flags for building library objects]) 5929 5930# 5931# Check to make sure the static flag actually works. 5932# 5933wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" 5934_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], 5935 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), 5936 $lt_tmp_static_flag, 5937 [], 5938 [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) 5939_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], 5940 [Compiler flag to prevent dynamic linking]) 5941])# _LT_COMPILER_PIC 5942 5943 5944# _LT_LINKER_SHLIBS([TAGNAME]) 5945# ---------------------------- 5946# See if the linker supports building shared libraries. 5947m4_defun([_LT_LINKER_SHLIBS], 5948[AC_REQUIRE([LT_PATH_LD])dnl 5949AC_REQUIRE([LT_PATH_NM])dnl 5950m4_require([_LT_FILEUTILS_DEFAULTS])dnl 5951m4_require([_LT_DECL_EGREP])dnl 5952m4_require([_LT_DECL_SED])dnl 5953m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 5954m4_require([_LT_TAG_COMPILER])dnl 5955AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 5956m4_if([$1], [CXX], [ 5957 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 5958 case $host_os in 5959 aix[[4-9]]*) 5960 # If we're using GNU nm, then we don't want the "-C" option. 5961 # -C means demangle to AIX nm, but means don't demangle with GNU nm 5962 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 5963 _LT_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' 5964 else 5965 _LT_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' 5966 fi 5967 ;; 5968 pw32*) 5969 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" 5970 ;; 5971 cygwin* | mingw* | cegcc*) 5972 _LT_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' 5973 ;; 5974 linux* | k*bsd*-gnu) 5975 _LT_TAGVAR(link_all_deplibs, $1)=no 5976 ;; 5977 *) 5978 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 5979 ;; 5980 esac 5981 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 5982], [ 5983 runpath_var= 5984 _LT_TAGVAR(allow_undefined_flag, $1)= 5985 _LT_TAGVAR(always_export_symbols, $1)=no 5986 _LT_TAGVAR(archive_cmds, $1)= 5987 _LT_TAGVAR(archive_expsym_cmds, $1)= 5988 _LT_TAGVAR(compiler_needs_object, $1)=no 5989 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 5990 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 5991 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 5992 _LT_TAGVAR(hardcode_automatic, $1)=no 5993 _LT_TAGVAR(hardcode_direct, $1)=no 5994 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 5995 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 5996 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 5997 _LT_TAGVAR(hardcode_libdir_separator, $1)= 5998 _LT_TAGVAR(hardcode_minus_L, $1)=no 5999 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 6000 _LT_TAGVAR(inherit_rpath, $1)=no 6001 _LT_TAGVAR(link_all_deplibs, $1)=unknown 6002 _LT_TAGVAR(module_cmds, $1)= 6003 _LT_TAGVAR(module_expsym_cmds, $1)= 6004 _LT_TAGVAR(old_archive_from_new_cmds, $1)= 6005 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= 6006 _LT_TAGVAR(thread_safe_flag_spec, $1)= 6007 _LT_TAGVAR(whole_archive_flag_spec, $1)= 6008 # include_expsyms should be a list of space-separated symbols to be *always* 6009 # included in the symbol list 6010 _LT_TAGVAR(include_expsyms, $1)= 6011 # exclude_expsyms can be an extended regexp of symbols to exclude 6012 # it will be wrapped by ` (' and `)$', so one must not match beginning or 6013 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 6014 # as well as any symbol that contains `d'. 6015 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 6016 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 6017 # platforms (ab)use it in PIC code, but their linkers get confused if 6018 # the symbol is explicitly referenced. Since portable code cannot 6019 # rely on this symbol name, it's probably fine to never include it in 6020 # preloaded symbol tables. 6021 # Exclude shared library initialization/finalization symbols. 6022dnl Note also adjust exclude_expsyms for C++ above. 6023 extract_expsyms_cmds= 6024 6025 case $host_os in 6026 cygwin* | mingw* | pw32* | cegcc*) 6027 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6028 # When not using gcc, we currently assume that we are using 6029 # Microsoft Visual C++. 6030 if test "$GCC" != yes; then 6031 with_gnu_ld=no 6032 fi 6033 ;; 6034 interix*) 6035 # we just hope/assume this is gcc and not c89 (= MSVC++) 6036 with_gnu_ld=yes 6037 ;; 6038 openbsd*) 6039 with_gnu_ld=no 6040 ;; 6041 linux* | k*bsd*-gnu) 6042 _LT_TAGVAR(link_all_deplibs, $1)=no 6043 ;; 6044 esac 6045 6046 _LT_TAGVAR(ld_shlibs, $1)=yes 6047 if test "$with_gnu_ld" = yes; then 6048 # If archive_cmds runs LD, not CC, wlarc should be empty 6049 wlarc='${wl}' 6050 6051 # Set some defaults for GNU ld with shared library support. These 6052 # are reset later if shared libraries are not supported. Putting them 6053 # here allows them to be overridden if necessary. 6054 runpath_var=LD_RUN_PATH 6055 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6056 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 6057 # ancient GNU ld didn't support --whole-archive et. al. 6058 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 6059 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6060 else 6061 _LT_TAGVAR(whole_archive_flag_spec, $1)= 6062 fi 6063 supports_anon_versioning=no 6064 case `$LD -v 2>&1` in 6065 *GNU\ gold*) supports_anon_versioning=yes ;; 6066 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 6067 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 6068 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 6069 *\ 2.11.*) ;; # other 2.11 versions 6070 *) supports_anon_versioning=yes ;; 6071 esac 6072 6073 # See if GNU ld supports shared libraries. 6074 case $host_os in 6075 aix[[3-9]]*) 6076 # On AIX/PPC, the GNU linker is very broken 6077 if test "$host_cpu" != ia64; then 6078 _LT_TAGVAR(ld_shlibs, $1)=no 6079 cat <<_LT_EOF 1>&2 6080 6081*** Warning: the GNU linker, at least up to release 2.9.1, is reported 6082*** to be unable to reliably create shared libraries on AIX. 6083*** Therefore, libtool is disabling shared libraries support. If you 6084*** really care for shared libraries, you may want to modify your PATH 6085*** so that a non-GNU linker is found, and then restart. 6086 6087_LT_EOF 6088 fi 6089 ;; 6090 6091 amigaos*) 6092 case $host_cpu in 6093 powerpc) 6094 # see comment about AmigaOS4 .so support 6095 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6096 _LT_TAGVAR(archive_expsym_cmds, $1)='' 6097 ;; 6098 m68k) 6099 _LT_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)' 6100 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6101 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6102 ;; 6103 esac 6104 ;; 6105 6106 beos*) 6107 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 6108 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6109 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6110 # support --undefined. This deserves some investigation. FIXME 6111 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6112 else 6113 _LT_TAGVAR(ld_shlibs, $1)=no 6114 fi 6115 ;; 6116 6117 cygwin* | mingw* | pw32* | cegcc*) 6118 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 6119 # as there is no search path for DLLs. 6120 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6121 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6122 _LT_TAGVAR(always_export_symbols, $1)=no 6123 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6124 _LT_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' 6125 6126 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 6127 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 6128 # If the export-symbols file already is a .def file (1st line 6129 # is EXPORTS), use it as is; otherwise, prepend... 6130 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6131 cp $export_symbols $output_objdir/$soname.def; 6132 else 6133 echo EXPORTS > $output_objdir/$soname.def; 6134 cat $export_symbols >> $output_objdir/$soname.def; 6135 fi~ 6136 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 6137 else 6138 _LT_TAGVAR(ld_shlibs, $1)=no 6139 fi 6140 ;; 6141 6142 interix[[3-9]]*) 6143 _LT_TAGVAR(hardcode_direct, $1)=no 6144 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6145 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6146 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6147 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 6148 # Instead, shared libraries are loaded at an image base (0x10000000 by 6149 # default) and relocated if they conflict, which is a slow very memory 6150 # consuming and fragmenting process. To avoid this, we pick a random, 6151 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 6152 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 6153 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 6154 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 6155 ;; 6156 6157 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 6158 tmp_diet=no 6159 if test "$host_os" = linux-dietlibc; then 6160 case $cc_basename in 6161 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 6162 esac 6163 fi 6164 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 6165 && test "$tmp_diet" = no 6166 then 6167 tmp_addflag= 6168 tmp_sharedflag='-shared' 6169 case $cc_basename,$host_cpu in 6170 pgcc*) # Portland Group C compiler 6171 _LT_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' 6172 tmp_addflag=' $pic_flag' 6173 ;; 6174 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 6175 _LT_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' 6176 tmp_addflag=' $pic_flag -Mnomain' ;; 6177 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 6178 tmp_addflag=' -i_dynamic' ;; 6179 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 6180 tmp_addflag=' -i_dynamic -nofor_main' ;; 6181 ifc* | ifort*) # Intel Fortran compiler 6182 tmp_addflag=' -nofor_main' ;; 6183 lf95*) # Lahey Fortran 8.1 6184 _LT_TAGVAR(whole_archive_flag_spec, $1)= 6185 tmp_sharedflag='--shared' ;; 6186 xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) 6187 tmp_sharedflag='-qmkshrobj' 6188 tmp_addflag= ;; 6189 esac 6190 case `$CC -V 2>&1 | sed 5q` in 6191 *Sun\ C*) # Sun C 5.9 6192 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 6193 _LT_TAGVAR(compiler_needs_object, $1)=yes 6194 tmp_sharedflag='-G' ;; 6195 *Sun\ F*) # Sun Fortran 8.3 6196 tmp_sharedflag='-G' ;; 6197 esac 6198 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6199 6200 if test "x$supports_anon_versioning" = xyes; then 6201 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 6202 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 6203 echo "local: *; };" >> $output_objdir/$libname.ver~ 6204 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 6205 fi 6206 6207 case $cc_basename in 6208 xlf*) 6209 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 6210 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' 6211 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 6212 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' 6213 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 6214 if test "x$supports_anon_versioning" = xyes; then 6215 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 6216 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 6217 echo "local: *; };" >> $output_objdir/$libname.ver~ 6218 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 6219 fi 6220 ;; 6221 esac 6222 else 6223 _LT_TAGVAR(ld_shlibs, $1)=no 6224 fi 6225 ;; 6226 6227 netbsd* | netbsdelf*-gnu) 6228 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 6229 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 6230 wlarc= 6231 else 6232 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6233 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6234 fi 6235 ;; 6236 6237 solaris*) 6238 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 6239 _LT_TAGVAR(ld_shlibs, $1)=no 6240 cat <<_LT_EOF 1>&2 6241 6242*** Warning: The releases 2.8.* of the GNU linker cannot reliably 6243*** create shared libraries on Solaris systems. Therefore, libtool 6244*** is disabling shared libraries support. We urge you to upgrade GNU 6245*** binutils to release 2.9.1 or newer. Another option is to modify 6246*** your PATH or compiler configuration so that the native linker is 6247*** used, and then restart. 6248 6249_LT_EOF 6250 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 6251 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6252 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6253 else 6254 _LT_TAGVAR(ld_shlibs, $1)=no 6255 fi 6256 ;; 6257 6258 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 6259 case `$LD -v 2>&1` in 6260 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 6261 _LT_TAGVAR(ld_shlibs, $1)=no 6262 cat <<_LT_EOF 1>&2 6263 6264*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 6265*** reliably create shared libraries on SCO systems. Therefore, libtool 6266*** is disabling shared libraries support. We urge you to upgrade GNU 6267*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 6268*** your PATH or compiler configuration so that the native linker is 6269*** used, and then restart. 6270 6271_LT_EOF 6272 ;; 6273 *) 6274 # For security reasons, it is highly recommended that you always 6275 # use absolute paths for naming shared libraries, and exclude the 6276 # DT_RUNPATH tag from executables and libraries. But doing so 6277 # requires that you compile everything twice, which is a pain. 6278 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 6279 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6280 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6281 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6282 else 6283 _LT_TAGVAR(ld_shlibs, $1)=no 6284 fi 6285 ;; 6286 esac 6287 ;; 6288 6289 sunos4*) 6290 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6291 wlarc= 6292 _LT_TAGVAR(hardcode_direct, $1)=yes 6293 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6294 ;; 6295 6296 *) 6297 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 6298 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6299 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6300 else 6301 _LT_TAGVAR(ld_shlibs, $1)=no 6302 fi 6303 ;; 6304 esac 6305 6306 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then 6307 runpath_var= 6308 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 6309 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 6310 _LT_TAGVAR(whole_archive_flag_spec, $1)= 6311 fi 6312 else 6313 # PORTME fill in a description of your system's linker (not GNU ld) 6314 case $host_os in 6315 aix3*) 6316 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6317 _LT_TAGVAR(always_export_symbols, $1)=yes 6318 _LT_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' 6319 # Note: this linker hardcodes the directories in LIBPATH if there 6320 # are no directories specified by -L. 6321 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6322 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 6323 # Neither direct hardcoding nor static linking is supported with a 6324 # broken collect2. 6325 _LT_TAGVAR(hardcode_direct, $1)=unsupported 6326 fi 6327 ;; 6328 6329 aix[[4-9]]*) 6330 if test "$host_cpu" = ia64; then 6331 # On IA64, the linker does run time linking by default, so we don't 6332 # have to do anything special. 6333 aix_use_runtimelinking=no 6334 exp_sym_flag='-Bexport' 6335 no_entry_flag="" 6336 else 6337 # If we're using GNU nm, then we don't want the "-C" option. 6338 # -C means demangle to AIX nm, but means don't demangle with GNU nm 6339 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 6340 _LT_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' 6341 else 6342 _LT_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' 6343 fi 6344 aix_use_runtimelinking=no 6345 6346 # Test if we are trying to use run time linking or normal 6347 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 6348 # need to do runtime linking. 6349 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 6350 for ld_flag in $LDFLAGS; do 6351 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 6352 aix_use_runtimelinking=yes 6353 break 6354 fi 6355 done 6356 ;; 6357 esac 6358 6359 exp_sym_flag='-bexport' 6360 no_entry_flag='-bnoentry' 6361 fi 6362 6363 # When large executables or shared objects are built, AIX ld can 6364 # have problems creating the table of contents. If linking a library 6365 # or program results in "error TOC overflow" add -mminimal-toc to 6366 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 6367 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 6368 6369 _LT_TAGVAR(archive_cmds, $1)='' 6370 _LT_TAGVAR(hardcode_direct, $1)=yes 6371 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 6372 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 6373 _LT_TAGVAR(link_all_deplibs, $1)=yes 6374 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' 6375 6376 if test "$GCC" = yes; then 6377 case $host_os in aix4.[[012]]|aix4.[[012]].*) 6378 # We only want to do this on AIX 4.2 and lower, the check 6379 # below for broken collect2 doesn't work under 4.3+ 6380 collect2name=`${CC} -print-prog-name=collect2` 6381 if test -f "$collect2name" && 6382 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 6383 then 6384 # We have reworked collect2 6385 : 6386 else 6387 # We have old collect2 6388 _LT_TAGVAR(hardcode_direct, $1)=unsupported 6389 # It fails to find uninstalled libraries when the uninstalled 6390 # path is not listed in the libpath. Setting hardcode_minus_L 6391 # to unsupported forces relinking 6392 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6393 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6394 _LT_TAGVAR(hardcode_libdir_separator, $1)= 6395 fi 6396 ;; 6397 esac 6398 shared_flag='-shared' 6399 if test "$aix_use_runtimelinking" = yes; then 6400 shared_flag="$shared_flag "'${wl}-G' 6401 fi 6402 _LT_TAGVAR(link_all_deplibs, $1)=no 6403 else 6404 # not using gcc 6405 if test "$host_cpu" = ia64; then 6406 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 6407 # chokes on -Wl,-G. The following line is correct: 6408 shared_flag='-G' 6409 else 6410 if test "$aix_use_runtimelinking" = yes; then 6411 shared_flag='${wl}-G' 6412 else 6413 shared_flag='${wl}-bM:SRE' 6414 fi 6415 fi 6416 fi 6417 6418 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' 6419 # It seems that -bexpall does not export symbols beginning with 6420 # underscore (_), so it is better to generate a list of symbols to export. 6421 _LT_TAGVAR(always_export_symbols, $1)=yes 6422 if test "$aix_use_runtimelinking" = yes; then 6423 # Warning - without using the other runtime loading flags (-brtl), 6424 # -berok will link without error, but may produce a broken library. 6425 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 6426 # Determine the default libpath from the value encoded in an 6427 # empty executable. 6428 _LT_SYS_MODULE_PATH_AIX 6429 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 6430 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 6431 else 6432 if test "$host_cpu" = ia64; then 6433 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 6434 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 6435 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 6436 else 6437 # Determine the default libpath from the value encoded in an 6438 # empty executable. 6439 _LT_SYS_MODULE_PATH_AIX 6440 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 6441 # Warning - without using the other run time loading flags, 6442 # -berok will link without error, but may produce a broken library. 6443 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 6444 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 6445 # Exported symbols can be pulled into shared objects from archives 6446 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 6447 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 6448 # This is similar to how AIX traditionally builds its shared libraries. 6449 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 6450 fi 6451 fi 6452 ;; 6453 6454 amigaos*) 6455 case $host_cpu in 6456 powerpc) 6457 # see comment about AmigaOS4 .so support 6458 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6459 _LT_TAGVAR(archive_expsym_cmds, $1)='' 6460 ;; 6461 m68k) 6462 _LT_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)' 6463 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6464 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6465 ;; 6466 esac 6467 ;; 6468 6469 bsdi[[45]]*) 6470 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 6471 ;; 6472 6473 cygwin* | mingw* | pw32* | cegcc*) 6474 # When not using gcc, we currently assume that we are using 6475 # Microsoft Visual C++. 6476 # hardcode_libdir_flag_spec is actually meaningless, as there is 6477 # no search path for DLLs. 6478 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 6479 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6480 # Tell ltmain to make .lib files, not .a files. 6481 libext=lib 6482 # Tell ltmain to make .dll files, not .so files. 6483 shrext_cmds=".dll" 6484 # FIXME: Setting linknames here is a bad hack. 6485 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 6486 # The linker will automatically build a .lib file if we build a DLL. 6487 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 6488 # FIXME: Should let the user specify the lib program. 6489 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' 6490 _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' 6491 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6492 ;; 6493 6494 darwin* | rhapsody*) 6495 _LT_DARWIN_LINKER_FEATURES($1) 6496 ;; 6497 6498 dgux*) 6499 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6500 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6501 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6502 ;; 6503 6504 freebsd1*) 6505 _LT_TAGVAR(ld_shlibs, $1)=no 6506 ;; 6507 6508 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 6509 # support. Future versions do this automatically, but an explicit c++rt0.o 6510 # does not break anything, and helps significantly (at the cost of a little 6511 # extra space). 6512 freebsd2.2*) 6513 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 6514 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6515 _LT_TAGVAR(hardcode_direct, $1)=yes 6516 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6517 ;; 6518 6519 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 6520 freebsd2*) 6521 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6522 _LT_TAGVAR(hardcode_direct, $1)=yes 6523 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6524 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6525 ;; 6526 6527 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 6528 freebsd* | dragonfly*) 6529 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 6530 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6531 _LT_TAGVAR(hardcode_direct, $1)=yes 6532 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6533 ;; 6534 6535 hpux9*) 6536 if test "$GCC" = yes; then 6537 _LT_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' 6538 else 6539 _LT_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' 6540 fi 6541 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 6542 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6543 _LT_TAGVAR(hardcode_direct, $1)=yes 6544 6545 # hardcode_minus_L: Not really in the search PATH, 6546 # but as the default location of the library. 6547 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6548 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6549 ;; 6550 6551 hpux10*) 6552 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 6553 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 6554 else 6555 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 6556 fi 6557 if test "$with_gnu_ld" = no; then 6558 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 6559 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 6560 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6561 _LT_TAGVAR(hardcode_direct, $1)=yes 6562 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 6563 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6564 # hardcode_minus_L: Not really in the search PATH, 6565 # but as the default location of the library. 6566 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6567 fi 6568 ;; 6569 6570 hpux11*) 6571 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 6572 case $host_cpu in 6573 hppa*64*) 6574 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6575 ;; 6576 ia64*) 6577 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 6578 ;; 6579 *) 6580 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 6581 ;; 6582 esac 6583 else 6584 case $host_cpu in 6585 hppa*64*) 6586 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6587 ;; 6588 ia64*) 6589 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 6590 ;; 6591 *) 6592 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 6593 ;; 6594 esac 6595 fi 6596 if test "$with_gnu_ld" = no; then 6597 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 6598 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6599 6600 case $host_cpu in 6601 hppa*64*|ia64*) 6602 _LT_TAGVAR(hardcode_direct, $1)=no 6603 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6604 ;; 6605 *) 6606 _LT_TAGVAR(hardcode_direct, $1)=yes 6607 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 6608 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6609 6610 # hardcode_minus_L: Not really in the search PATH, 6611 # but as the default location of the library. 6612 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6613 ;; 6614 esac 6615 fi 6616 ;; 6617 6618 irix5* | irix6* | nonstopux*) 6619 if test "$GCC" = yes; then 6620 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 6621 # Try to use the -exported_symbol ld option, if it does not 6622 # work, assume that -exports_file does not work either and 6623 # implicitly export all symbols. 6624 save_LDFLAGS="$LDFLAGS" 6625 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 6626 AC_LINK_IFELSE(int foo(void) {}, 6627 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 6628 ) 6629 LDFLAGS="$save_LDFLAGS" 6630 else 6631 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 6632 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 6633 fi 6634 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 6635 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6636 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6637 _LT_TAGVAR(inherit_rpath, $1)=yes 6638 _LT_TAGVAR(link_all_deplibs, $1)=yes 6639 ;; 6640 6641 netbsd* | netbsdelf*-gnu) 6642 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 6643 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 6644 else 6645 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 6646 fi 6647 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6648 _LT_TAGVAR(hardcode_direct, $1)=yes 6649 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6650 ;; 6651 6652 newsos6) 6653 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6654 _LT_TAGVAR(hardcode_direct, $1)=yes 6655 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6656 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6657 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6658 ;; 6659 6660 *nto* | *qnx*) 6661 ;; 6662 6663 openbsd*) 6664 if test -f /usr/libexec/ld.so; then 6665 _LT_TAGVAR(hardcode_direct, $1)=yes 6666 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6667 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 6668 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6669 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6670 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 6671 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6672 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6673 else 6674 case $host_os in 6675 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) 6676 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6677 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6678 ;; 6679 *) 6680 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6681 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6682 ;; 6683 esac 6684 fi 6685 else 6686 _LT_TAGVAR(ld_shlibs, $1)=no 6687 fi 6688 ;; 6689 6690 os2*) 6691 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6692 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6693 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6694 _LT_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' 6695 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 6696 ;; 6697 6698 osf3*) 6699 if test "$GCC" = yes; then 6700 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 6701 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 6702 else 6703 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 6704 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 6705 fi 6706 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 6707 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6708 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6709 ;; 6710 6711 osf4* | osf5*) # as osf3* with the addition of -msym flag 6712 if test "$GCC" = yes; then 6713 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 6714 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 6715 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6716 else 6717 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 6718 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 6719 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 6720 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 6721 6722 # Both c and cxx compiler support -rpath directly 6723 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 6724 fi 6725 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 6726 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6727 ;; 6728 6729 solaris*) 6730 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' 6731 if test "$GCC" = yes; then 6732 wlarc='${wl}' 6733 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6734 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 6735 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 6736 else 6737 case `$CC -V 2>&1` in 6738 *"Compilers 5.0"*) 6739 wlarc='' 6740 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 6741 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 6742 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 6743 ;; 6744 *) 6745 wlarc='${wl}' 6746 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 6747 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 6748 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 6749 ;; 6750 esac 6751 fi 6752 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6753 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6754 case $host_os in 6755 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 6756 *) 6757 # The compiler driver will combine and reorder linker options, 6758 # but understands `-z linker_flag'. GCC discards it without `$wl', 6759 # but is careful enough not to reorder. 6760 # Supported since Solaris 2.6 (maybe 2.5.1?) 6761 if test "$GCC" = yes; then 6762 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 6763 else 6764 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 6765 fi 6766 ;; 6767 esac 6768 _LT_TAGVAR(link_all_deplibs, $1)=yes 6769 ;; 6770 6771 sunos4*) 6772 if test "x$host_vendor" = xsequent; then 6773 # Use $CC to link under sequent, because it throws in some extra .o 6774 # files that make .init and .fini sections work. 6775 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 6776 else 6777 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 6778 fi 6779 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6780 _LT_TAGVAR(hardcode_direct, $1)=yes 6781 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6782 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6783 ;; 6784 6785 sysv4) 6786 case $host_vendor in 6787 sni) 6788 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6789 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? 6790 ;; 6791 siemens) 6792 ## LD is ld it makes a PLAMLIB 6793 ## CC just makes a GrossModule. 6794 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 6795 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' 6796 _LT_TAGVAR(hardcode_direct, $1)=no 6797 ;; 6798 motorola) 6799 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6800 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie 6801 ;; 6802 esac 6803 runpath_var='LD_RUN_PATH' 6804 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6805 ;; 6806 6807 sysv4.3*) 6808 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6809 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6810 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' 6811 ;; 6812 6813 sysv4*MP*) 6814 if test -d /usr/nec; then 6815 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6816 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6817 runpath_var=LD_RUN_PATH 6818 hardcode_runpath_var=yes 6819 _LT_TAGVAR(ld_shlibs, $1)=yes 6820 fi 6821 ;; 6822 6823 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 6824 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 6825 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6826 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6827 runpath_var='LD_RUN_PATH' 6828 6829 if test "$GCC" = yes; then 6830 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6831 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6832 else 6833 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6834 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6835 fi 6836 ;; 6837 6838 sysv5* | sco3.2v5* | sco5v6*) 6839 # Note: We can NOT use -z defs as we might desire, because we do not 6840 # link with -lc, and that would cause any symbols used from libc to 6841 # always be unresolved, which means just about no library would 6842 # ever link correctly. If we're not using GNU ld we use -z text 6843 # though, which does catch some bad symbols but isn't as heavy-handed 6844 # as -z defs. 6845 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 6846 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 6847 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6848 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6849 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' 6850 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 6851 _LT_TAGVAR(link_all_deplibs, $1)=yes 6852 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 6853 runpath_var='LD_RUN_PATH' 6854 6855 if test "$GCC" = yes; then 6856 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6857 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6858 else 6859 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6860 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6861 fi 6862 ;; 6863 6864 uts4*) 6865 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6866 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6867 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6868 ;; 6869 6870 *) 6871 _LT_TAGVAR(ld_shlibs, $1)=no 6872 ;; 6873 esac 6874 6875 if test x$host_vendor = xsni; then 6876 case $host in 6877 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 6878 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' 6879 ;; 6880 esac 6881 fi 6882 fi 6883]) 6884AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 6885test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 6886 6887_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld 6888 6889_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl 6890_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl 6891_LT_DECL([], [extract_expsyms_cmds], [2], 6892 [The commands to extract the exported symbol list from a shared archive]) 6893 6894# 6895# Do we need to explicitly link libc? 6896# 6897case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in 6898x|xyes) 6899 # Assume -lc should be added 6900 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 6901 6902 if test "$enable_shared" = yes && test "$GCC" = yes; then 6903 case $_LT_TAGVAR(archive_cmds, $1) in 6904 *'~'*) 6905 # FIXME: we may have to deal with multi-command sequences. 6906 ;; 6907 '$CC '*) 6908 # Test whether the compiler implicitly links with -lc since on some 6909 # systems, -lgcc has to come before -lc. If gcc already passes -lc 6910 # to ld, don't add -lc before -lgcc. 6911 AC_MSG_CHECKING([whether -lc should be explicitly linked in]) 6912 $RM conftest* 6913 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 6914 6915 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 6916 soname=conftest 6917 lib=conftest 6918 libobjs=conftest.$ac_objext 6919 deplibs= 6920 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) 6921 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) 6922 compiler_flags=-v 6923 linker_flags=-v 6924 verstring= 6925 output_objdir=. 6926 libname=conftest 6927 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) 6928 _LT_TAGVAR(allow_undefined_flag, $1)= 6929 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 6930 then 6931 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6932 else 6933 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 6934 fi 6935 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag 6936 else 6937 cat conftest.err 1>&5 6938 fi 6939 $RM conftest* 6940 AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)]) 6941 ;; 6942 esac 6943 fi 6944 ;; 6945esac 6946 6947_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], 6948 [Whether or not to add -lc for building shared libraries]) 6949_LT_TAGDECL([allow_libtool_libs_with_static_runtimes], 6950 [enable_shared_with_static_runtimes], [0], 6951 [Whether or not to disallow shared libs when runtime libs are static]) 6952_LT_TAGDECL([], [export_dynamic_flag_spec], [1], 6953 [Compiler flag to allow reflexive dlopens]) 6954_LT_TAGDECL([], [whole_archive_flag_spec], [1], 6955 [Compiler flag to generate shared objects directly from archives]) 6956_LT_TAGDECL([], [compiler_needs_object], [1], 6957 [Whether the compiler copes with passing no objects directly]) 6958_LT_TAGDECL([], [old_archive_from_new_cmds], [2], 6959 [Create an old-style archive from a shared archive]) 6960_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], 6961 [Create a temporary old-style archive to link instead of a shared archive]) 6962_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) 6963_LT_TAGDECL([], [archive_expsym_cmds], [2]) 6964_LT_TAGDECL([], [module_cmds], [2], 6965 [Commands used to build a loadable module if different from building 6966 a shared archive.]) 6967_LT_TAGDECL([], [module_expsym_cmds], [2]) 6968_LT_TAGDECL([], [with_gnu_ld], [1], 6969 [Whether we are building with GNU ld or not]) 6970_LT_TAGDECL([], [allow_undefined_flag], [1], 6971 [Flag that allows shared libraries with undefined symbols to be built]) 6972_LT_TAGDECL([], [no_undefined_flag], [1], 6973 [Flag that enforces no undefined symbols]) 6974_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], 6975 [Flag to hardcode $libdir into a binary during linking. 6976 This must work even if $libdir does not exist]) 6977_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1], 6978 [[If ld is used when linking, flag to hardcode $libdir into a binary 6979 during linking. This must work even if $libdir does not exist]]) 6980_LT_TAGDECL([], [hardcode_libdir_separator], [1], 6981 [Whether we need a single "-rpath" flag with a separated argument]) 6982_LT_TAGDECL([], [hardcode_direct], [0], 6983 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes 6984 DIR into the resulting binary]) 6985_LT_TAGDECL([], [hardcode_direct_absolute], [0], 6986 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes 6987 DIR into the resulting binary and the resulting library dependency is 6988 "absolute", i.e impossible to change by setting ${shlibpath_var} if the 6989 library is relocated]) 6990_LT_TAGDECL([], [hardcode_minus_L], [0], 6991 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR 6992 into the resulting binary]) 6993_LT_TAGDECL([], [hardcode_shlibpath_var], [0], 6994 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 6995 into the resulting binary]) 6996_LT_TAGDECL([], [hardcode_automatic], [0], 6997 [Set to "yes" if building a shared library automatically hardcodes DIR 6998 into the library and all subsequent libraries and executables linked 6999 against it]) 7000_LT_TAGDECL([], [inherit_rpath], [0], 7001 [Set to yes if linker adds runtime paths of dependent libraries 7002 to runtime path list]) 7003_LT_TAGDECL([], [link_all_deplibs], [0], 7004 [Whether libtool must link a program against all its dependency libraries]) 7005_LT_TAGDECL([], [fix_srcfile_path], [1], 7006 [Fix the shell variable $srcfile for the compiler]) 7007_LT_TAGDECL([], [always_export_symbols], [0], 7008 [Set to "yes" if exported symbols are required]) 7009_LT_TAGDECL([], [export_symbols_cmds], [2], 7010 [The commands to list exported symbols]) 7011_LT_TAGDECL([], [exclude_expsyms], [1], 7012 [Symbols that should not be listed in the preloaded symbols]) 7013_LT_TAGDECL([], [include_expsyms], [1], 7014 [Symbols that must always be exported]) 7015_LT_TAGDECL([], [prelink_cmds], [2], 7016 [Commands necessary for linking programs (against libraries) with templates]) 7017_LT_TAGDECL([], [file_list_spec], [1], 7018 [Specify filename containing input files]) 7019dnl FIXME: Not yet implemented 7020dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], 7021dnl [Compiler flag to generate thread safe objects]) 7022])# _LT_LINKER_SHLIBS 7023 7024 7025# _LT_LANG_C_CONFIG([TAG]) 7026# ------------------------ 7027# Ensure that the configuration variables for a C compiler are suitably 7028# defined. These variables are subsequently used by _LT_CONFIG to write 7029# the compiler configuration to `libtool'. 7030m4_defun([_LT_LANG_C_CONFIG], 7031[m4_require([_LT_DECL_EGREP])dnl 7032lt_save_CC="$CC" 7033AC_LANG_PUSH(C) 7034 7035# Source file extension for C test sources. 7036ac_ext=c 7037 7038# Object file extension for compiled C test sources. 7039objext=o 7040_LT_TAGVAR(objext, $1)=$objext 7041 7042# Code to be used in simple compile tests 7043lt_simple_compile_test_code="int some_variable = 0;" 7044 7045# Code to be used in simple link tests 7046lt_simple_link_test_code='int main(){return(0);}' 7047 7048_LT_TAG_COMPILER 7049# Save the default compiler, since it gets overwritten when the other 7050# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7051compiler_DEFAULT=$CC 7052 7053# save warnings/boilerplate of simple test code 7054_LT_COMPILER_BOILERPLATE 7055_LT_LINKER_BOILERPLATE 7056 7057if test -n "$compiler"; then 7058 _LT_COMPILER_NO_RTTI($1) 7059 _LT_COMPILER_PIC($1) 7060 _LT_COMPILER_C_O($1) 7061 _LT_COMPILER_FILE_LOCKS($1) 7062 _LT_LINKER_SHLIBS($1) 7063 _LT_SYS_DYNAMIC_LINKER($1) 7064 _LT_LINKER_HARDCODE_LIBPATH($1) 7065 LT_SYS_DLOPEN_SELF 7066 _LT_CMD_STRIPLIB 7067 7068 # Report which library types will actually be built 7069 AC_MSG_CHECKING([if libtool supports shared libraries]) 7070 AC_MSG_RESULT([$can_build_shared]) 7071 7072 AC_MSG_CHECKING([whether to build shared libraries]) 7073 test "$can_build_shared" = "no" && enable_shared=no 7074 7075 # On AIX, shared libraries and static libraries use the same namespace, and 7076 # are all built from PIC. 7077 case $host_os in 7078 aix3*) 7079 test "$enable_shared" = yes && enable_static=no 7080 if test -n "$RANLIB"; then 7081 archive_cmds="$archive_cmds~\$RANLIB \$lib" 7082 postinstall_cmds='$RANLIB $lib' 7083 fi 7084 ;; 7085 7086 aix[[4-9]]*) 7087 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 7088 test "$enable_shared" = yes && enable_static=no 7089 fi 7090 ;; 7091 esac 7092 AC_MSG_RESULT([$enable_shared]) 7093 7094 AC_MSG_CHECKING([whether to build static libraries]) 7095 # Make sure either enable_shared or enable_static is yes. 7096 test "$enable_shared" = yes || enable_static=yes 7097 AC_MSG_RESULT([$enable_static]) 7098 7099 _LT_CONFIG($1) 7100fi 7101AC_LANG_POP 7102CC="$lt_save_CC" 7103])# _LT_LANG_C_CONFIG 7104 7105 7106# _LT_PROG_CXX 7107# ------------ 7108# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++ 7109# compiler, we have our own version here. 7110m4_defun([_LT_PROG_CXX], 7111[ 7112pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes]) 7113AC_PROG_CXX 7114if test -n "$CXX" && ( test "X$CXX" != "Xno" && 7115 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 7116 (test "X$CXX" != "Xg++"))) ; then 7117 AC_PROG_CXXCPP 7118else 7119 _lt_caught_CXX_error=yes 7120fi 7121popdef([AC_MSG_ERROR]) 7122])# _LT_PROG_CXX 7123 7124dnl aclocal-1.4 backwards compatibility: 7125dnl AC_DEFUN([_LT_PROG_CXX], []) 7126 7127 7128# _LT_LANG_CXX_CONFIG([TAG]) 7129# -------------------------- 7130# Ensure that the configuration variables for a C++ compiler are suitably 7131# defined. These variables are subsequently used by _LT_CONFIG to write 7132# the compiler configuration to `libtool'. 7133m4_defun([_LT_LANG_CXX_CONFIG], 7134[AC_REQUIRE([_LT_PROG_CXX])dnl 7135m4_require([_LT_FILEUTILS_DEFAULTS])dnl 7136m4_require([_LT_DECL_EGREP])dnl 7137 7138AC_LANG_PUSH(C++) 7139_LT_TAGVAR(archive_cmds_need_lc, $1)=no 7140_LT_TAGVAR(allow_undefined_flag, $1)= 7141_LT_TAGVAR(always_export_symbols, $1)=no 7142_LT_TAGVAR(archive_expsym_cmds, $1)= 7143_LT_TAGVAR(compiler_needs_object, $1)=no 7144_LT_TAGVAR(export_dynamic_flag_spec, $1)= 7145_LT_TAGVAR(hardcode_direct, $1)=no 7146_LT_TAGVAR(hardcode_direct_absolute, $1)=no 7147_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 7148_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 7149_LT_TAGVAR(hardcode_libdir_separator, $1)= 7150_LT_TAGVAR(hardcode_minus_L, $1)=no 7151_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 7152_LT_TAGVAR(hardcode_automatic, $1)=no 7153_LT_TAGVAR(inherit_rpath, $1)=no 7154_LT_TAGVAR(module_cmds, $1)= 7155_LT_TAGVAR(module_expsym_cmds, $1)= 7156_LT_TAGVAR(link_all_deplibs, $1)=unknown 7157_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 7158_LT_TAGVAR(no_undefined_flag, $1)= 7159_LT_TAGVAR(whole_archive_flag_spec, $1)= 7160_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 7161 7162# Source file extension for C++ test sources. 7163ac_ext=cpp 7164 7165# Object file extension for compiled C++ test sources. 7166objext=o 7167_LT_TAGVAR(objext, $1)=$objext 7168 7169# No sense in running all these tests if we already determined that 7170# the CXX compiler isn't working. Some variables (like enable_shared) 7171# are currently assumed to apply to all compilers on this platform, 7172# and will be corrupted by setting them based on a non-working compiler. 7173if test "$_lt_caught_CXX_error" != yes; then 7174 # Code to be used in simple compile tests 7175 lt_simple_compile_test_code="int some_variable = 0;" 7176 7177 # Code to be used in simple link tests 7178 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' 7179 7180 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 7181 _LT_TAG_COMPILER 7182 7183 # save warnings/boilerplate of simple test code 7184 _LT_COMPILER_BOILERPLATE 7185 _LT_LINKER_BOILERPLATE 7186 7187 # Allow CC to be a program name with arguments. 7188 lt_save_CC=$CC 7189 lt_save_LD=$LD 7190 lt_save_GCC=$GCC 7191 GCC=$GXX 7192 lt_save_with_gnu_ld=$with_gnu_ld 7193 lt_save_path_LD=$lt_cv_path_LD 7194 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 7195 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 7196 else 7197 $as_unset lt_cv_prog_gnu_ld 7198 fi 7199 if test -n "${lt_cv_path_LDCXX+set}"; then 7200 lt_cv_path_LD=$lt_cv_path_LDCXX 7201 else 7202 $as_unset lt_cv_path_LD 7203 fi 7204 test -z "${LDCXX+set}" || LD=$LDCXX 7205 CC=${CXX-"c++"} 7206 compiler=$CC 7207 _LT_TAGVAR(compiler, $1)=$CC 7208 _LT_CC_BASENAME([$compiler]) 7209 7210 if test -n "$compiler"; then 7211 # We don't want -fno-exception when compiling C++ code, so set the 7212 # no_builtin_flag separately 7213 if test "$GXX" = yes; then 7214 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 7215 else 7216 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 7217 fi 7218 7219 if test "$GXX" = yes; then 7220 # Set up default GNU C++ configuration 7221 7222 LT_PATH_LD 7223 7224 # Check if GNU C++ uses GNU ld as the underlying linker, since the 7225 # archiving commands below assume that GNU ld is being used. 7226 if test "$with_gnu_ld" = yes; then 7227 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 7228 _LT_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' 7229 7230 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 7231 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 7232 7233 # If archive_cmds runs LD, not CC, wlarc should be empty 7234 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 7235 # investigate it a little bit more. (MM) 7236 wlarc='${wl}' 7237 7238 # ancient GNU ld didn't support --whole-archive et. al. 7239 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 7240 $GREP 'no-whole-archive' > /dev/null; then 7241 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7242 else 7243 _LT_TAGVAR(whole_archive_flag_spec, $1)= 7244 fi 7245 else 7246 with_gnu_ld=no 7247 wlarc= 7248 7249 # A generic and very simple default shared library creation 7250 # command for GNU C++ for the case where it uses the native 7251 # linker, instead of GNU ld. If possible, this setting should 7252 # overridden to take advantage of the native linker features on 7253 # the platform it is being used on. 7254 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 7255 fi 7256 7257 # Commands to make compiler produce verbose output that lists 7258 # what "hidden" libraries, object files and flags are used when 7259 # linking a shared library. 7260 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 7261 7262 else 7263 GXX=no 7264 with_gnu_ld=no 7265 wlarc= 7266 fi 7267 7268 # PORTME: fill in a description of your system's C++ link characteristics 7269 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 7270 _LT_TAGVAR(ld_shlibs, $1)=yes 7271 case $host_os in 7272 aix3*) 7273 # FIXME: insert proper C++ library support 7274 _LT_TAGVAR(ld_shlibs, $1)=no 7275 ;; 7276 aix[[4-9]]*) 7277 if test "$host_cpu" = ia64; then 7278 # On IA64, the linker does run time linking by default, so we don't 7279 # have to do anything special. 7280 aix_use_runtimelinking=no 7281 exp_sym_flag='-Bexport' 7282 no_entry_flag="" 7283 else 7284 aix_use_runtimelinking=no 7285 7286 # Test if we are trying to use run time linking or normal 7287 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7288 # need to do runtime linking. 7289 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 7290 for ld_flag in $LDFLAGS; do 7291 case $ld_flag in 7292 *-brtl*) 7293 aix_use_runtimelinking=yes 7294 break 7295 ;; 7296 esac 7297 done 7298 ;; 7299 esac 7300 7301 exp_sym_flag='-bexport' 7302 no_entry_flag='-bnoentry' 7303 fi 7304 7305 # When large executables or shared objects are built, AIX ld can 7306 # have problems creating the table of contents. If linking a library 7307 # or program results in "error TOC overflow" add -mminimal-toc to 7308 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7309 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7310 7311 _LT_TAGVAR(archive_cmds, $1)='' 7312 _LT_TAGVAR(hardcode_direct, $1)=yes 7313 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 7314 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 7315 _LT_TAGVAR(link_all_deplibs, $1)=yes 7316 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' 7317 7318 if test "$GXX" = yes; then 7319 case $host_os in aix4.[[012]]|aix4.[[012]].*) 7320 # We only want to do this on AIX 4.2 and lower, the check 7321 # below for broken collect2 doesn't work under 4.3+ 7322 collect2name=`${CC} -print-prog-name=collect2` 7323 if test -f "$collect2name" && 7324 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 7325 then 7326 # We have reworked collect2 7327 : 7328 else 7329 # We have old collect2 7330 _LT_TAGVAR(hardcode_direct, $1)=unsupported 7331 # It fails to find uninstalled libraries when the uninstalled 7332 # path is not listed in the libpath. Setting hardcode_minus_L 7333 # to unsupported forces relinking 7334 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7335 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7336 _LT_TAGVAR(hardcode_libdir_separator, $1)= 7337 fi 7338 esac 7339 shared_flag='-shared' 7340 if test "$aix_use_runtimelinking" = yes; then 7341 shared_flag="$shared_flag "'${wl}-G' 7342 fi 7343 else 7344 # not using gcc 7345 if test "$host_cpu" = ia64; then 7346 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7347 # chokes on -Wl,-G. The following line is correct: 7348 shared_flag='-G' 7349 else 7350 if test "$aix_use_runtimelinking" = yes; then 7351 shared_flag='${wl}-G' 7352 else 7353 shared_flag='${wl}-bM:SRE' 7354 fi 7355 fi 7356 fi 7357 7358 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' 7359 # It seems that -bexpall does not export symbols beginning with 7360 # underscore (_), so it is better to generate a list of symbols to 7361 # export. 7362 _LT_TAGVAR(always_export_symbols, $1)=yes 7363 if test "$aix_use_runtimelinking" = yes; then 7364 # Warning - without using the other runtime loading flags (-brtl), 7365 # -berok will link without error, but may produce a broken library. 7366 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 7367 # Determine the default libpath from the value encoded in an empty 7368 # executable. 7369 _LT_SYS_MODULE_PATH_AIX 7370 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 7371 7372 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 7373 else 7374 if test "$host_cpu" = ia64; then 7375 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 7376 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 7377 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 7378 else 7379 # Determine the default libpath from the value encoded in an 7380 # empty executable. 7381 _LT_SYS_MODULE_PATH_AIX 7382 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 7383 # Warning - without using the other run time loading flags, 7384 # -berok will link without error, but may produce a broken library. 7385 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 7386 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 7387 # Exported symbols can be pulled into shared objects from archives 7388 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 7389 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 7390 # This is similar to how AIX traditionally builds its shared 7391 # libraries. 7392 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 7393 fi 7394 fi 7395 ;; 7396 7397 beos*) 7398 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7399 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 7400 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7401 # support --undefined. This deserves some investigation. FIXME 7402 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7403 else 7404 _LT_TAGVAR(ld_shlibs, $1)=no 7405 fi 7406 ;; 7407 7408 chorus*) 7409 case $cc_basename in 7410 *) 7411 # FIXME: insert proper C++ library support 7412 _LT_TAGVAR(ld_shlibs, $1)=no 7413 ;; 7414 esac 7415 ;; 7416 7417 cygwin* | mingw* | pw32* | cegcc*) 7418 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 7419 # as there is no search path for DLLs. 7420 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7421 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 7422 _LT_TAGVAR(always_export_symbols, $1)=no 7423 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 7424 7425 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 7426 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7427 # If the export-symbols file already is a .def file (1st line 7428 # is EXPORTS), use it as is; otherwise, prepend... 7429 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7430 cp $export_symbols $output_objdir/$soname.def; 7431 else 7432 echo EXPORTS > $output_objdir/$soname.def; 7433 cat $export_symbols >> $output_objdir/$soname.def; 7434 fi~ 7435 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7436 else 7437 _LT_TAGVAR(ld_shlibs, $1)=no 7438 fi 7439 ;; 7440 darwin* | rhapsody*) 7441 _LT_DARWIN_LINKER_FEATURES($1) 7442 ;; 7443 7444 dgux*) 7445 case $cc_basename in 7446 ec++*) 7447 # FIXME: insert proper C++ library support 7448 _LT_TAGVAR(ld_shlibs, $1)=no 7449 ;; 7450 ghcx*) 7451 # Green Hills C++ Compiler 7452 # FIXME: insert proper C++ library support 7453 _LT_TAGVAR(ld_shlibs, $1)=no 7454 ;; 7455 *) 7456 # FIXME: insert proper C++ library support 7457 _LT_TAGVAR(ld_shlibs, $1)=no 7458 ;; 7459 esac 7460 ;; 7461 7462 freebsd[[12]]*) 7463 # C++ shared libraries reported to be fairly broken before 7464 # switch to ELF 7465 _LT_TAGVAR(ld_shlibs, $1)=no 7466 ;; 7467 7468 freebsd-elf*) 7469 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 7470 ;; 7471 7472 freebsd* | dragonfly*) 7473 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 7474 # conventions 7475 _LT_TAGVAR(ld_shlibs, $1)=yes 7476 ;; 7477 7478 gnu*) 7479 ;; 7480 7481 hpux9*) 7482 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 7483 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7484 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 7485 _LT_TAGVAR(hardcode_direct, $1)=yes 7486 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 7487 # but as the default 7488 # location of the library. 7489 7490 case $cc_basename in 7491 CC*) 7492 # FIXME: insert proper C++ library support 7493 _LT_TAGVAR(ld_shlibs, $1)=no 7494 ;; 7495 aCC*) 7496 _LT_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' 7497 # Commands to make compiler produce verbose output that lists 7498 # what "hidden" libraries, object files and flags are used when 7499 # linking a shared library. 7500 # 7501 # There doesn't appear to be a way to prevent this compiler from 7502 # explicitly linking system object files so we need to strip them 7503 # from the output so that they don't get included in the library 7504 # dependencies. 7505 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 7506 ;; 7507 *) 7508 if test "$GXX" = yes; then 7509 _LT_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' 7510 else 7511 # FIXME: insert proper C++ library support 7512 _LT_TAGVAR(ld_shlibs, $1)=no 7513 fi 7514 ;; 7515 esac 7516 ;; 7517 7518 hpux10*|hpux11*) 7519 if test $with_gnu_ld = no; then 7520 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 7521 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7522 7523 case $host_cpu in 7524 hppa*64*|ia64*) 7525 ;; 7526 *) 7527 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 7528 ;; 7529 esac 7530 fi 7531 case $host_cpu in 7532 hppa*64*|ia64*) 7533 _LT_TAGVAR(hardcode_direct, $1)=no 7534 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7535 ;; 7536 *) 7537 _LT_TAGVAR(hardcode_direct, $1)=yes 7538 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 7539 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 7540 # but as the default 7541 # location of the library. 7542 ;; 7543 esac 7544 7545 case $cc_basename in 7546 CC*) 7547 # FIXME: insert proper C++ library support 7548 _LT_TAGVAR(ld_shlibs, $1)=no 7549 ;; 7550 aCC*) 7551 case $host_cpu in 7552 hppa*64*) 7553 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 7554 ;; 7555 ia64*) 7556 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 7557 ;; 7558 *) 7559 _LT_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' 7560 ;; 7561 esac 7562 # Commands to make compiler produce verbose output that lists 7563 # what "hidden" libraries, object files and flags are used when 7564 # linking a shared library. 7565 # 7566 # There doesn't appear to be a way to prevent this compiler from 7567 # explicitly linking system object files so we need to strip them 7568 # from the output so that they don't get included in the library 7569 # dependencies. 7570 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 "X$list" | $Xsed' 7571 ;; 7572 *) 7573 if test "$GXX" = yes; then 7574 if test $with_gnu_ld = no; then 7575 case $host_cpu in 7576 hppa*64*) 7577 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 7578 ;; 7579 ia64*) 7580 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 7581 ;; 7582 *) 7583 _LT_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' 7584 ;; 7585 esac 7586 fi 7587 else 7588 # FIXME: insert proper C++ library support 7589 _LT_TAGVAR(ld_shlibs, $1)=no 7590 fi 7591 ;; 7592 esac 7593 ;; 7594 7595 interix[[3-9]]*) 7596 _LT_TAGVAR(hardcode_direct, $1)=no 7597 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7598 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 7599 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 7600 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7601 # Instead, shared libraries are loaded at an image base (0x10000000 by 7602 # default) and relocated if they conflict, which is a slow very memory 7603 # consuming and fragmenting process. To avoid this, we pick a random, 7604 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7605 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7606 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7607 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7608 ;; 7609 irix5* | irix6*) 7610 case $cc_basename in 7611 CC*) 7612 # SGI C++ 7613 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 7614 7615 # Archives containing C++ object files must be created using 7616 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 7617 # necessary to make sure instantiated templates are included 7618 # in the archive. 7619 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' 7620 ;; 7621 *) 7622 if test "$GXX" = yes; then 7623 if test "$with_gnu_ld" = no; then 7624 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 7625 else 7626 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' 7627 fi 7628 fi 7629 _LT_TAGVAR(link_all_deplibs, $1)=yes 7630 ;; 7631 esac 7632 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 7633 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7634 _LT_TAGVAR(inherit_rpath, $1)=yes 7635 ;; 7636 7637 linux* | k*bsd*-gnu | kopensolaris*-gnu) 7638 case $cc_basename in 7639 KCC*) 7640 # Kuck and Associates, Inc. (KAI) C++ Compiler 7641 7642 # KCC will only create a shared library if the output file 7643 # ends with ".so" (or ".sl" for HP-UX), so rename the library 7644 # to its proper name (with version) after linking. 7645 _LT_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' 7646 _LT_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' 7647 # Commands to make compiler produce verbose output that lists 7648 # what "hidden" libraries, object files and flags are used when 7649 # linking a shared library. 7650 # 7651 # There doesn't appear to be a way to prevent this compiler from 7652 # explicitly linking system object files so we need to strip them 7653 # from the output so that they don't get included in the library 7654 # dependencies. 7655 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 "X$list" | $Xsed' 7656 7657 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 7658 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 7659 7660 # Archives containing C++ object files must be created using 7661 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 7662 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 7663 ;; 7664 icpc* | ecpc* ) 7665 # Intel C++ 7666 with_gnu_ld=yes 7667 # version 8.0 and above of icpc choke on multiply defined symbols 7668 # if we add $predep_objects and $postdep_objects, however 7.1 and 7669 # earlier do not add the objects themselves. 7670 case `$CC -V 2>&1` in 7671 *"Version 7."*) 7672 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 7673 _LT_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' 7674 ;; 7675 *) # Version 8.0 or newer 7676 tmp_idyn= 7677 case $host_cpu in 7678 ia64*) tmp_idyn=' -i_dynamic';; 7679 esac 7680 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7681 _LT_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' 7682 ;; 7683 esac 7684 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 7685 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 7686 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 7687 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 7688 ;; 7689 pgCC* | pgcpp*) 7690 # Portland Group C++ compiler 7691 case `$CC -V` in 7692 *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*) 7693 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ 7694 rm -rf $tpldir~ 7695 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 7696 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' 7697 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ 7698 rm -rf $tpldir~ 7699 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 7700 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ 7701 $RANLIB $oldlib' 7702 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ 7703 rm -rf $tpldir~ 7704 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 7705 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 7706 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ 7707 rm -rf $tpldir~ 7708 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 7709 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 7710 ;; 7711 *) # Version 6 will use weak symbols 7712 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 7713 _LT_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' 7714 ;; 7715 esac 7716 7717 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 7718 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 7719 _LT_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' 7720 ;; 7721 cxx*) 7722 # Compaq C++ 7723 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 7724 _LT_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' 7725 7726 runpath_var=LD_RUN_PATH 7727 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 7728 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7729 7730 # Commands to make compiler produce verbose output that lists 7731 # what "hidden" libraries, object files and flags are used when 7732 # linking a shared library. 7733 # 7734 # There doesn't appear to be a way to prevent this compiler from 7735 # explicitly linking system object files so we need to strip them 7736 # from the output so that they don't get included in the library 7737 # dependencies. 7738 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed' 7739 ;; 7740 xl*) 7741 # IBM XL 8.0 on PPC, with GNU ld 7742 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 7743 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 7744 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7745 if test "x$supports_anon_versioning" = xyes; then 7746 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 7747 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7748 echo "local: *; };" >> $output_objdir/$libname.ver~ 7749 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7750 fi 7751 ;; 7752 *) 7753 case `$CC -V 2>&1 | sed 5q` in 7754 *Sun\ C*) 7755 # Sun C++ 5.9 7756 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 7757 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 7758 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 7759 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7760 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 7761 _LT_TAGVAR(compiler_needs_object, $1)=yes 7762 7763 # Not sure whether something based on 7764 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 7765 # would be better. 7766 output_verbose_link_cmd='echo' 7767 7768 # Archives containing C++ object files must be created using 7769 # "CC -xar", where "CC" is the Sun C++ compiler. This is 7770 # necessary to make sure instantiated templates are included 7771 # in the archive. 7772 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 7773 ;; 7774 esac 7775 ;; 7776 esac 7777 ;; 7778 7779 lynxos*) 7780 # FIXME: insert proper C++ library support 7781 _LT_TAGVAR(ld_shlibs, $1)=no 7782 ;; 7783 7784 m88k*) 7785 # FIXME: insert proper C++ library support 7786 _LT_TAGVAR(ld_shlibs, $1)=no 7787 ;; 7788 7789 mvs*) 7790 case $cc_basename in 7791 cxx*) 7792 # FIXME: insert proper C++ library support 7793 _LT_TAGVAR(ld_shlibs, $1)=no 7794 ;; 7795 *) 7796 # FIXME: insert proper C++ library support 7797 _LT_TAGVAR(ld_shlibs, $1)=no 7798 ;; 7799 esac 7800 ;; 7801 7802 netbsd*) 7803 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 7804 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 7805 wlarc= 7806 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7807 _LT_TAGVAR(hardcode_direct, $1)=yes 7808 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7809 fi 7810 # Workaround some broken pre-1.5 toolchains 7811 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 7812 ;; 7813 7814 *nto* | *qnx*) 7815 _LT_TAGVAR(ld_shlibs, $1)=yes 7816 ;; 7817 7818 openbsd2*) 7819 # C++ shared libraries are fairly broken 7820 _LT_TAGVAR(ld_shlibs, $1)=no 7821 ;; 7822 7823 openbsd*) 7824 if test -f /usr/libexec/ld.so; then 7825 _LT_TAGVAR(hardcode_direct, $1)=yes 7826 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7827 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 7828 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 7829 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 7830 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7831 _LT_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' 7832 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 7833 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7834 fi 7835 output_verbose_link_cmd=echo 7836 else 7837 _LT_TAGVAR(ld_shlibs, $1)=no 7838 fi 7839 ;; 7840 7841 osf3* | osf4* | osf5*) 7842 case $cc_basename in 7843 KCC*) 7844 # Kuck and Associates, Inc. (KAI) C++ Compiler 7845 7846 # KCC will only create a shared library if the output file 7847 # ends with ".so" (or ".sl" for HP-UX), so rename the library 7848 # to its proper name (with version) after linking. 7849 _LT_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' 7850 7851 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 7852 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7853 7854 # Archives containing C++ object files must be created using 7855 # the KAI C++ compiler. 7856 case $host in 7857 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; 7858 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; 7859 esac 7860 ;; 7861 RCC*) 7862 # Rational C++ 2.4.1 7863 # FIXME: insert proper C++ library support 7864 _LT_TAGVAR(ld_shlibs, $1)=no 7865 ;; 7866 cxx*) 7867 case $host in 7868 osf3*) 7869 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 7870 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 7871 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 7872 ;; 7873 *) 7874 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 7875 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 7876 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 7877 echo "-hidden">> $lib.exp~ 7878 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ 7879 $RM $lib.exp' 7880 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 7881 ;; 7882 esac 7883 7884 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7885 7886 # Commands to make compiler produce verbose output that lists 7887 # what "hidden" libraries, object files and flags are used when 7888 # linking a shared library. 7889 # 7890 # There doesn't appear to be a way to prevent this compiler from 7891 # explicitly linking system object files so we need to strip them 7892 # from the output so that they don't get included in the library 7893 # dependencies. 7894 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed' 7895 ;; 7896 *) 7897 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 7898 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 7899 case $host in 7900 osf3*) 7901 _LT_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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 7902 ;; 7903 *) 7904 _LT_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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 7905 ;; 7906 esac 7907 7908 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 7909 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7910 7911 # Commands to make compiler produce verbose output that lists 7912 # what "hidden" libraries, object files and flags are used when 7913 # linking a shared library. 7914 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 7915 7916 else 7917 # FIXME: insert proper C++ library support 7918 _LT_TAGVAR(ld_shlibs, $1)=no 7919 fi 7920 ;; 7921 esac 7922 ;; 7923 7924 psos*) 7925 # FIXME: insert proper C++ library support 7926 _LT_TAGVAR(ld_shlibs, $1)=no 7927 ;; 7928 7929 sunos4*) 7930 case $cc_basename in 7931 CC*) 7932 # Sun C++ 4.x 7933 # FIXME: insert proper C++ library support 7934 _LT_TAGVAR(ld_shlibs, $1)=no 7935 ;; 7936 lcc*) 7937 # Lucid 7938 # FIXME: insert proper C++ library support 7939 _LT_TAGVAR(ld_shlibs, $1)=no 7940 ;; 7941 *) 7942 # FIXME: insert proper C++ library support 7943 _LT_TAGVAR(ld_shlibs, $1)=no 7944 ;; 7945 esac 7946 ;; 7947 7948 solaris*) 7949 case $cc_basename in 7950 CC*) 7951 # Sun C++ 4.2, 5.x and Centerline C++ 7952 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes 7953 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 7954 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 7955 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 7956 $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' 7957 7958 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7959 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7960 case $host_os in 7961 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 7962 *) 7963 # The compiler driver will combine and reorder linker options, 7964 # but understands `-z linker_flag'. 7965 # Supported since Solaris 2.6 (maybe 2.5.1?) 7966 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 7967 ;; 7968 esac 7969 _LT_TAGVAR(link_all_deplibs, $1)=yes 7970 7971 output_verbose_link_cmd='echo' 7972 7973 # Archives containing C++ object files must be created using 7974 # "CC -xar", where "CC" is the Sun C++ compiler. This is 7975 # necessary to make sure instantiated templates are included 7976 # in the archive. 7977 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 7978 ;; 7979 gcx*) 7980 # Green Hills C++ Compiler 7981 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 7982 7983 # The C++ compiler must be used to create the archive. 7984 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 7985 ;; 7986 *) 7987 # GNU C++ compiler with Solaris linker 7988 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 7989 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' 7990 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 7991 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 7992 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 7993 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 7994 7995 # Commands to make compiler produce verbose output that lists 7996 # what "hidden" libraries, object files and flags are used when 7997 # linking a shared library. 7998 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 7999 else 8000 # g++ 2.7 appears to require `-G' NOT `-shared' on this 8001 # platform. 8002 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 8003 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8004 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 8005 8006 # Commands to make compiler produce verbose output that lists 8007 # what "hidden" libraries, object files and flags are used when 8008 # linking a shared library. 8009 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 8010 fi 8011 8012 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' 8013 case $host_os in 8014 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 8015 *) 8016 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8017 ;; 8018 esac 8019 fi 8020 ;; 8021 esac 8022 ;; 8023 8024 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 8025 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 8026 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 8027 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8028 runpath_var='LD_RUN_PATH' 8029 8030 case $cc_basename in 8031 CC*) 8032 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8033 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8034 ;; 8035 *) 8036 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8037 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8038 ;; 8039 esac 8040 ;; 8041 8042 sysv5* | sco3.2v5* | sco5v6*) 8043 # Note: We can NOT use -z defs as we might desire, because we do not 8044 # link with -lc, and that would cause any symbols used from libc to 8045 # always be unresolved, which means just about no library would 8046 # ever link correctly. If we're not using GNU ld we use -z text 8047 # though, which does catch some bad symbols but isn't as heavy-handed 8048 # as -z defs. 8049 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 8050 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 8051 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 8052 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8053 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' 8054 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 8055 _LT_TAGVAR(link_all_deplibs, $1)=yes 8056 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 8057 runpath_var='LD_RUN_PATH' 8058 8059 case $cc_basename in 8060 CC*) 8061 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8062 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8063 ;; 8064 *) 8065 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8066 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8067 ;; 8068 esac 8069 ;; 8070 8071 tandem*) 8072 case $cc_basename in 8073 NCC*) 8074 # NonStop-UX NCC 3.20 8075 # FIXME: insert proper C++ library support 8076 _LT_TAGVAR(ld_shlibs, $1)=no 8077 ;; 8078 *) 8079 # FIXME: insert proper C++ library support 8080 _LT_TAGVAR(ld_shlibs, $1)=no 8081 ;; 8082 esac 8083 ;; 8084 8085 vxworks*) 8086 # FIXME: insert proper C++ library support 8087 _LT_TAGVAR(ld_shlibs, $1)=no 8088 ;; 8089 8090 *) 8091 # FIXME: insert proper C++ library support 8092 _LT_TAGVAR(ld_shlibs, $1)=no 8093 ;; 8094 esac 8095 8096 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 8097 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 8098 8099 _LT_TAGVAR(GCC, $1)="$GXX" 8100 _LT_TAGVAR(LD, $1)="$LD" 8101 8102 ## CAVEAT EMPTOR: 8103 ## There is no encapsulation within the following macros, do not change 8104 ## the running order or otherwise move them around unless you know exactly 8105 ## what you are doing... 8106 _LT_SYS_HIDDEN_LIBDEPS($1) 8107 _LT_COMPILER_PIC($1) 8108 _LT_COMPILER_C_O($1) 8109 _LT_COMPILER_FILE_LOCKS($1) 8110 _LT_LINKER_SHLIBS($1) 8111 _LT_SYS_DYNAMIC_LINKER($1) 8112 _LT_LINKER_HARDCODE_LIBPATH($1) 8113 8114 _LT_CONFIG($1) 8115 fi # test -n "$compiler" 8116 8117 CC=$lt_save_CC 8118 LDCXX=$LD 8119 LD=$lt_save_LD 8120 GCC=$lt_save_GCC 8121 with_gnu_ld=$lt_save_with_gnu_ld 8122 lt_cv_path_LDCXX=$lt_cv_path_LD 8123 lt_cv_path_LD=$lt_save_path_LD 8124 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 8125 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 8126fi # test "$_lt_caught_CXX_error" != yes 8127 8128AC_LANG_POP 8129])# _LT_LANG_CXX_CONFIG 8130 8131 8132# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) 8133# --------------------------------- 8134# Figure out "hidden" library dependencies from verbose 8135# compiler output when linking a shared library. 8136# Parse the compiler output and extract the necessary 8137# objects, libraries and library flags. 8138m4_defun([_LT_SYS_HIDDEN_LIBDEPS], 8139[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 8140# Dependencies to place before and after the object being linked: 8141_LT_TAGVAR(predep_objects, $1)= 8142_LT_TAGVAR(postdep_objects, $1)= 8143_LT_TAGVAR(predeps, $1)= 8144_LT_TAGVAR(postdeps, $1)= 8145_LT_TAGVAR(compiler_lib_search_path, $1)= 8146 8147dnl we can't use the lt_simple_compile_test_code here, 8148dnl because it contains code intended for an executable, 8149dnl not a library. It's possible we should let each 8150dnl tag define a new lt_????_link_test_code variable, 8151dnl but it's only used here... 8152m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF 8153int a; 8154void foo (void) { a = 0; } 8155_LT_EOF 8156], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF 8157class Foo 8158{ 8159public: 8160 Foo (void) { a = 0; } 8161private: 8162 int a; 8163}; 8164_LT_EOF 8165], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF 8166 subroutine foo 8167 implicit none 8168 integer*4 a 8169 a=0 8170 return 8171 end 8172_LT_EOF 8173], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF 8174 subroutine foo 8175 implicit none 8176 integer a 8177 a=0 8178 return 8179 end 8180_LT_EOF 8181], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF 8182public class foo { 8183 private int a; 8184 public void bar (void) { 8185 a = 0; 8186 } 8187}; 8188_LT_EOF 8189]) 8190dnl Parse the compiler output and extract the necessary 8191dnl objects, libraries and library flags. 8192if AC_TRY_EVAL(ac_compile); then 8193 # Parse the compiler output and extract the necessary 8194 # objects, libraries and library flags. 8195 8196 # Sentinel used to keep track of whether or not we are before 8197 # the conftest object file. 8198 pre_test_object_deps_done=no 8199 8200 for p in `eval "$output_verbose_link_cmd"`; do 8201 case $p in 8202 8203 -L* | -R* | -l*) 8204 # Some compilers place space between "-{L,R}" and the path. 8205 # Remove the space. 8206 if test $p = "-L" || 8207 test $p = "-R"; then 8208 prev=$p 8209 continue 8210 else 8211 prev= 8212 fi 8213 8214 if test "$pre_test_object_deps_done" = no; then 8215 case $p in 8216 -L* | -R*) 8217 # Internal compiler library paths should come after those 8218 # provided the user. The postdeps already come after the 8219 # user supplied libs so there is no need to process them. 8220 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then 8221 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" 8222 else 8223 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" 8224 fi 8225 ;; 8226 # The "-l" case would never come before the object being 8227 # linked, so don't bother handling this case. 8228 esac 8229 else 8230 if test -z "$_LT_TAGVAR(postdeps, $1)"; then 8231 _LT_TAGVAR(postdeps, $1)="${prev}${p}" 8232 else 8233 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" 8234 fi 8235 fi 8236 ;; 8237 8238 *.$objext) 8239 # This assumes that the test object file only shows up 8240 # once in the compiler output. 8241 if test "$p" = "conftest.$objext"; then 8242 pre_test_object_deps_done=yes 8243 continue 8244 fi 8245 8246 if test "$pre_test_object_deps_done" = no; then 8247 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then 8248 _LT_TAGVAR(predep_objects, $1)="$p" 8249 else 8250 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" 8251 fi 8252 else 8253 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then 8254 _LT_TAGVAR(postdep_objects, $1)="$p" 8255 else 8256 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" 8257 fi 8258 fi 8259 ;; 8260 8261 *) ;; # Ignore the rest. 8262 8263 esac 8264 done 8265 8266 # Clean up. 8267 rm -f a.out a.exe 8268else 8269 echo "libtool.m4: error: problem compiling $1 test program" 8270fi 8271 8272$RM -f confest.$objext 8273 8274# PORTME: override above test on systems where it is broken 8275m4_if([$1], [CXX], 8276[case $host_os in 8277interix[[3-9]]*) 8278 # Interix 3.5 installs completely hosed .la files for C++, so rather than 8279 # hack all around it, let's just trust "g++" to DTRT. 8280 _LT_TAGVAR(predep_objects,$1)= 8281 _LT_TAGVAR(postdep_objects,$1)= 8282 _LT_TAGVAR(postdeps,$1)= 8283 ;; 8284 8285linux*) 8286 case `$CC -V 2>&1 | sed 5q` in 8287 *Sun\ C*) 8288 # Sun C++ 5.9 8289 8290 # The more standards-conforming stlport4 library is 8291 # incompatible with the Cstd library. Avoid specifying 8292 # it if it's in CXXFLAGS. Ignore libCrun as 8293 # -library=stlport4 depends on it. 8294 case " $CXX $CXXFLAGS " in 8295 *" -library=stlport4 "*) 8296 solaris_use_stlport4=yes 8297 ;; 8298 esac 8299 8300 if test "$solaris_use_stlport4" != yes; then 8301 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 8302 fi 8303 ;; 8304 esac 8305 ;; 8306 8307solaris*) 8308 case $cc_basename in 8309 CC*) 8310 # The more standards-conforming stlport4 library is 8311 # incompatible with the Cstd library. Avoid specifying 8312 # it if it's in CXXFLAGS. Ignore libCrun as 8313 # -library=stlport4 depends on it. 8314 case " $CXX $CXXFLAGS " in 8315 *" -library=stlport4 "*) 8316 solaris_use_stlport4=yes 8317 ;; 8318 esac 8319 8320 # Adding this requires a known-good setup of shared libraries for 8321 # Sun compiler versions before 5.6, else PIC objects from an old 8322 # archive will be linked into the output, leading to subtle bugs. 8323 if test "$solaris_use_stlport4" != yes; then 8324 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 8325 fi 8326 ;; 8327 esac 8328 ;; 8329esac 8330]) 8331 8332case " $_LT_TAGVAR(postdeps, $1) " in 8333*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; 8334esac 8335 _LT_TAGVAR(compiler_lib_search_dirs, $1)= 8336if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then 8337 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 8338fi 8339_LT_TAGDECL([], [compiler_lib_search_dirs], [1], 8340 [The directories searched by this compiler when creating a shared library]) 8341_LT_TAGDECL([], [predep_objects], [1], 8342 [Dependencies to place before and after the objects being linked to 8343 create a shared library]) 8344_LT_TAGDECL([], [postdep_objects], [1]) 8345_LT_TAGDECL([], [predeps], [1]) 8346_LT_TAGDECL([], [postdeps], [1]) 8347_LT_TAGDECL([], [compiler_lib_search_path], [1], 8348 [The library search path used internally by the compiler when linking 8349 a shared library]) 8350])# _LT_SYS_HIDDEN_LIBDEPS 8351 8352 8353# _LT_PROG_F77 8354# ------------ 8355# Since AC_PROG_F77 is broken, in that it returns the empty string 8356# if there is no fortran compiler, we have our own version here. 8357m4_defun([_LT_PROG_F77], 8358[ 8359pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes]) 8360AC_PROG_F77 8361if test -z "$F77" || test "X$F77" = "Xno"; then 8362 _lt_disable_F77=yes 8363fi 8364popdef([AC_MSG_ERROR]) 8365])# _LT_PROG_F77 8366 8367dnl aclocal-1.4 backwards compatibility: 8368dnl AC_DEFUN([_LT_PROG_F77], []) 8369 8370 8371# _LT_LANG_F77_CONFIG([TAG]) 8372# -------------------------- 8373# Ensure that the configuration variables for a Fortran 77 compiler are 8374# suitably defined. These variables are subsequently used by _LT_CONFIG 8375# to write the compiler configuration to `libtool'. 8376m4_defun([_LT_LANG_F77_CONFIG], 8377[AC_REQUIRE([_LT_PROG_F77])dnl 8378AC_LANG_PUSH(Fortran 77) 8379 8380_LT_TAGVAR(archive_cmds_need_lc, $1)=no 8381_LT_TAGVAR(allow_undefined_flag, $1)= 8382_LT_TAGVAR(always_export_symbols, $1)=no 8383_LT_TAGVAR(archive_expsym_cmds, $1)= 8384_LT_TAGVAR(export_dynamic_flag_spec, $1)= 8385_LT_TAGVAR(hardcode_direct, $1)=no 8386_LT_TAGVAR(hardcode_direct_absolute, $1)=no 8387_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 8388_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 8389_LT_TAGVAR(hardcode_libdir_separator, $1)= 8390_LT_TAGVAR(hardcode_minus_L, $1)=no 8391_LT_TAGVAR(hardcode_automatic, $1)=no 8392_LT_TAGVAR(inherit_rpath, $1)=no 8393_LT_TAGVAR(module_cmds, $1)= 8394_LT_TAGVAR(module_expsym_cmds, $1)= 8395_LT_TAGVAR(link_all_deplibs, $1)=unknown 8396_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 8397_LT_TAGVAR(no_undefined_flag, $1)= 8398_LT_TAGVAR(whole_archive_flag_spec, $1)= 8399_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 8400 8401# Source file extension for f77 test sources. 8402ac_ext=f 8403 8404# Object file extension for compiled f77 test sources. 8405objext=o 8406_LT_TAGVAR(objext, $1)=$objext 8407 8408# No sense in running all these tests if we already determined that 8409# the F77 compiler isn't working. Some variables (like enable_shared) 8410# are currently assumed to apply to all compilers on this platform, 8411# and will be corrupted by setting them based on a non-working compiler. 8412if test "$_lt_disable_F77" != yes; then 8413 # Code to be used in simple compile tests 8414 lt_simple_compile_test_code="\ 8415 subroutine t 8416 return 8417 end 8418" 8419 8420 # Code to be used in simple link tests 8421 lt_simple_link_test_code="\ 8422 program t 8423 end 8424" 8425 8426 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 8427 _LT_TAG_COMPILER 8428 8429 # save warnings/boilerplate of simple test code 8430 _LT_COMPILER_BOILERPLATE 8431 _LT_LINKER_BOILERPLATE 8432 8433 # Allow CC to be a program name with arguments. 8434 lt_save_CC="$CC" 8435 lt_save_GCC=$GCC 8436 CC=${F77-"f77"} 8437 compiler=$CC 8438 _LT_TAGVAR(compiler, $1)=$CC 8439 _LT_CC_BASENAME([$compiler]) 8440 GCC=$G77 8441 if test -n "$compiler"; then 8442 AC_MSG_CHECKING([if libtool supports shared libraries]) 8443 AC_MSG_RESULT([$can_build_shared]) 8444 8445 AC_MSG_CHECKING([whether to build shared libraries]) 8446 test "$can_build_shared" = "no" && enable_shared=no 8447 8448 # On AIX, shared libraries and static libraries use the same namespace, and 8449 # are all built from PIC. 8450 case $host_os in 8451 aix3*) 8452 test "$enable_shared" = yes && enable_static=no 8453 if test -n "$RANLIB"; then 8454 archive_cmds="$archive_cmds~\$RANLIB \$lib" 8455 postinstall_cmds='$RANLIB $lib' 8456 fi 8457 ;; 8458 aix[[4-9]]*) 8459 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 8460 test "$enable_shared" = yes && enable_static=no 8461 fi 8462 ;; 8463 esac 8464 AC_MSG_RESULT([$enable_shared]) 8465 8466 AC_MSG_CHECKING([whether to build static libraries]) 8467 # Make sure either enable_shared or enable_static is yes. 8468 test "$enable_shared" = yes || enable_static=yes 8469 AC_MSG_RESULT([$enable_static]) 8470 8471 _LT_TAGVAR(GCC, $1)="$G77" 8472 _LT_TAGVAR(LD, $1)="$LD" 8473 8474 ## CAVEAT EMPTOR: 8475 ## There is no encapsulation within the following macros, do not change 8476 ## the running order or otherwise move them around unless you know exactly 8477 ## what you are doing... 8478 _LT_COMPILER_PIC($1) 8479 _LT_COMPILER_C_O($1) 8480 _LT_COMPILER_FILE_LOCKS($1) 8481 _LT_LINKER_SHLIBS($1) 8482 _LT_SYS_DYNAMIC_LINKER($1) 8483 _LT_LINKER_HARDCODE_LIBPATH($1) 8484 8485 _LT_CONFIG($1) 8486 fi # test -n "$compiler" 8487 8488 GCC=$lt_save_GCC 8489 CC="$lt_save_CC" 8490fi # test "$_lt_disable_F77" != yes 8491 8492AC_LANG_POP 8493])# _LT_LANG_F77_CONFIG 8494 8495 8496# _LT_PROG_FC 8497# ----------- 8498# Since AC_PROG_FC is broken, in that it returns the empty string 8499# if there is no fortran compiler, we have our own version here. 8500m4_defun([_LT_PROG_FC], 8501[ 8502pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes]) 8503AC_PROG_FC 8504if test -z "$FC" || test "X$FC" = "Xno"; then 8505 _lt_disable_FC=yes 8506fi 8507popdef([AC_MSG_ERROR]) 8508])# _LT_PROG_FC 8509 8510dnl aclocal-1.4 backwards compatibility: 8511dnl AC_DEFUN([_LT_PROG_FC], []) 8512 8513 8514# _LT_LANG_FC_CONFIG([TAG]) 8515# ------------------------- 8516# Ensure that the configuration variables for a Fortran compiler are 8517# suitably defined. These variables are subsequently used by _LT_CONFIG 8518# to write the compiler configuration to `libtool'. 8519m4_defun([_LT_LANG_FC_CONFIG], 8520[AC_REQUIRE([_LT_PROG_FC])dnl 8521AC_LANG_PUSH(Fortran) 8522 8523_LT_TAGVAR(archive_cmds_need_lc, $1)=no 8524_LT_TAGVAR(allow_undefined_flag, $1)= 8525_LT_TAGVAR(always_export_symbols, $1)=no 8526_LT_TAGVAR(archive_expsym_cmds, $1)= 8527_LT_TAGVAR(export_dynamic_flag_spec, $1)= 8528_LT_TAGVAR(hardcode_direct, $1)=no 8529_LT_TAGVAR(hardcode_direct_absolute, $1)=no 8530_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 8531_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 8532_LT_TAGVAR(hardcode_libdir_separator, $1)= 8533_LT_TAGVAR(hardcode_minus_L, $1)=no 8534_LT_TAGVAR(hardcode_automatic, $1)=no 8535_LT_TAGVAR(inherit_rpath, $1)=no 8536_LT_TAGVAR(module_cmds, $1)= 8537_LT_TAGVAR(module_expsym_cmds, $1)= 8538_LT_TAGVAR(link_all_deplibs, $1)=unknown 8539_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 8540_LT_TAGVAR(no_undefined_flag, $1)= 8541_LT_TAGVAR(whole_archive_flag_spec, $1)= 8542_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 8543 8544# Source file extension for fc test sources. 8545ac_ext=${ac_fc_srcext-f} 8546 8547# Object file extension for compiled fc test sources. 8548objext=o 8549_LT_TAGVAR(objext, $1)=$objext 8550 8551# No sense in running all these tests if we already determined that 8552# the FC compiler isn't working. Some variables (like enable_shared) 8553# are currently assumed to apply to all compilers on this platform, 8554# and will be corrupted by setting them based on a non-working compiler. 8555if test "$_lt_disable_FC" != yes; then 8556 # Code to be used in simple compile tests 8557 lt_simple_compile_test_code="\ 8558 subroutine t 8559 return 8560 end 8561" 8562 8563 # Code to be used in simple link tests 8564 lt_simple_link_test_code="\ 8565 program t 8566 end 8567" 8568 8569 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 8570 _LT_TAG_COMPILER 8571 8572 # save warnings/boilerplate of simple test code 8573 _LT_COMPILER_BOILERPLATE 8574 _LT_LINKER_BOILERPLATE 8575 8576 # Allow CC to be a program name with arguments. 8577 lt_save_CC="$CC" 8578 lt_save_GCC=$GCC 8579 CC=${FC-"f95"} 8580 compiler=$CC 8581 GCC=$ac_cv_fc_compiler_gnu 8582 8583 _LT_TAGVAR(compiler, $1)=$CC 8584 _LT_CC_BASENAME([$compiler]) 8585 8586 if test -n "$compiler"; then 8587 AC_MSG_CHECKING([if libtool supports shared libraries]) 8588 AC_MSG_RESULT([$can_build_shared]) 8589 8590 AC_MSG_CHECKING([whether to build shared libraries]) 8591 test "$can_build_shared" = "no" && enable_shared=no 8592 8593 # On AIX, shared libraries and static libraries use the same namespace, and 8594 # are all built from PIC. 8595 case $host_os in 8596 aix3*) 8597 test "$enable_shared" = yes && enable_static=no 8598 if test -n "$RANLIB"; then 8599 archive_cmds="$archive_cmds~\$RANLIB \$lib" 8600 postinstall_cmds='$RANLIB $lib' 8601 fi 8602 ;; 8603 aix[[4-9]]*) 8604 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 8605 test "$enable_shared" = yes && enable_static=no 8606 fi 8607 ;; 8608 esac 8609 AC_MSG_RESULT([$enable_shared]) 8610 8611 AC_MSG_CHECKING([whether to build static libraries]) 8612 # Make sure either enable_shared or enable_static is yes. 8613 test "$enable_shared" = yes || enable_static=yes 8614 AC_MSG_RESULT([$enable_static]) 8615 8616 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" 8617 _LT_TAGVAR(LD, $1)="$LD" 8618 8619 ## CAVEAT EMPTOR: 8620 ## There is no encapsulation within the following macros, do not change 8621 ## the running order or otherwise move them around unless you know exactly 8622 ## what you are doing... 8623 _LT_SYS_HIDDEN_LIBDEPS($1) 8624 _LT_COMPILER_PIC($1) 8625 _LT_COMPILER_C_O($1) 8626 _LT_COMPILER_FILE_LOCKS($1) 8627 _LT_LINKER_SHLIBS($1) 8628 _LT_SYS_DYNAMIC_LINKER($1) 8629 _LT_LINKER_HARDCODE_LIBPATH($1) 8630 8631 _LT_CONFIG($1) 8632 fi # test -n "$compiler" 8633 8634 GCC=$lt_save_GCC 8635 CC="$lt_save_CC" 8636fi # test "$_lt_disable_FC" != yes 8637 8638AC_LANG_POP 8639])# _LT_LANG_FC_CONFIG 8640 8641 8642# _LT_LANG_GCJ_CONFIG([TAG]) 8643# -------------------------- 8644# Ensure that the configuration variables for the GNU Java Compiler compiler 8645# are suitably defined. These variables are subsequently used by _LT_CONFIG 8646# to write the compiler configuration to `libtool'. 8647m4_defun([_LT_LANG_GCJ_CONFIG], 8648[AC_REQUIRE([LT_PROG_GCJ])dnl 8649AC_LANG_SAVE 8650 8651# Source file extension for Java test sources. 8652ac_ext=java 8653 8654# Object file extension for compiled Java test sources. 8655objext=o 8656_LT_TAGVAR(objext, $1)=$objext 8657 8658# Code to be used in simple compile tests 8659lt_simple_compile_test_code="class foo {}" 8660 8661# Code to be used in simple link tests 8662lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' 8663 8664# ltmain only uses $CC for tagged configurations so make sure $CC is set. 8665_LT_TAG_COMPILER 8666 8667# save warnings/boilerplate of simple test code 8668_LT_COMPILER_BOILERPLATE 8669_LT_LINKER_BOILERPLATE 8670 8671# Allow CC to be a program name with arguments. 8672lt_save_CC="$CC" 8673lt_save_GCC=$GCC 8674GCC=yes 8675CC=${GCJ-"gcj"} 8676compiler=$CC 8677_LT_TAGVAR(compiler, $1)=$CC 8678_LT_TAGVAR(LD, $1)="$LD" 8679_LT_CC_BASENAME([$compiler]) 8680 8681# GCJ did not exist at the time GCC didn't implicitly link libc in. 8682_LT_TAGVAR(archive_cmds_need_lc, $1)=no 8683 8684_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 8685 8686if test -n "$compiler"; then 8687 _LT_COMPILER_NO_RTTI($1) 8688 _LT_COMPILER_PIC($1) 8689 _LT_COMPILER_C_O($1) 8690 _LT_COMPILER_FILE_LOCKS($1) 8691 _LT_LINKER_SHLIBS($1) 8692 _LT_LINKER_HARDCODE_LIBPATH($1) 8693 8694 _LT_CONFIG($1) 8695fi 8696 8697AC_LANG_RESTORE 8698 8699GCC=$lt_save_GCC 8700CC="$lt_save_CC" 8701])# _LT_LANG_GCJ_CONFIG 8702 8703 8704# _LT_LANG_RC_CONFIG([TAG]) 8705# ------------------------- 8706# Ensure that the configuration variables for the Windows resource compiler 8707# are suitably defined. These variables are subsequently used by _LT_CONFIG 8708# to write the compiler configuration to `libtool'. 8709m4_defun([_LT_LANG_RC_CONFIG], 8710[AC_REQUIRE([LT_PROG_RC])dnl 8711AC_LANG_SAVE 8712 8713# Source file extension for RC test sources. 8714ac_ext=rc 8715 8716# Object file extension for compiled RC test sources. 8717objext=o 8718_LT_TAGVAR(objext, $1)=$objext 8719 8720# Code to be used in simple compile tests 8721lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 8722 8723# Code to be used in simple link tests 8724lt_simple_link_test_code="$lt_simple_compile_test_code" 8725 8726# ltmain only uses $CC for tagged configurations so make sure $CC is set. 8727_LT_TAG_COMPILER 8728 8729# save warnings/boilerplate of simple test code 8730_LT_COMPILER_BOILERPLATE 8731_LT_LINKER_BOILERPLATE 8732 8733# Allow CC to be a program name with arguments. 8734lt_save_CC="$CC" 8735lt_save_GCC=$GCC 8736GCC= 8737CC=${RC-"windres"} 8738compiler=$CC 8739_LT_TAGVAR(compiler, $1)=$CC 8740_LT_CC_BASENAME([$compiler]) 8741_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 8742 8743if test -n "$compiler"; then 8744 : 8745 _LT_CONFIG($1) 8746fi 8747 8748GCC=$lt_save_GCC 8749AC_LANG_RESTORE 8750CC="$lt_save_CC" 8751])# _LT_LANG_RC_CONFIG 8752 8753 8754# LT_PROG_GCJ 8755# ----------- 8756AC_DEFUN([LT_PROG_GCJ], 8757[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], 8758 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], 8759 [AC_CHECK_TOOL(GCJ, gcj,) 8760 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" 8761 AC_SUBST(GCJFLAGS)])])[]dnl 8762]) 8763 8764# Old name: 8765AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) 8766dnl aclocal-1.4 backwards compatibility: 8767dnl AC_DEFUN([LT_AC_PROG_GCJ], []) 8768 8769 8770# LT_PROG_RC 8771# ---------- 8772AC_DEFUN([LT_PROG_RC], 8773[AC_CHECK_TOOL(RC, windres,) 8774]) 8775 8776# Old name: 8777AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) 8778dnl aclocal-1.4 backwards compatibility: 8779dnl AC_DEFUN([LT_AC_PROG_RC], []) 8780 8781 8782# _LT_DECL_EGREP 8783# -------------- 8784# If we don't have a new enough Autoconf to choose the best grep 8785# available, choose the one first in the user's PATH. 8786m4_defun([_LT_DECL_EGREP], 8787[AC_REQUIRE([AC_PROG_EGREP])dnl 8788AC_REQUIRE([AC_PROG_FGREP])dnl 8789test -z "$GREP" && GREP=grep 8790_LT_DECL([], [GREP], [1], [A grep program that handles long lines]) 8791_LT_DECL([], [EGREP], [1], [An ERE matcher]) 8792_LT_DECL([], [FGREP], [1], [A literal string matcher]) 8793dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too 8794AC_SUBST([GREP]) 8795]) 8796 8797 8798# _LT_DECL_OBJDUMP 8799# -------------- 8800# If we don't have a new enough Autoconf to choose the best objdump 8801# available, choose the one first in the user's PATH. 8802m4_defun([_LT_DECL_OBJDUMP], 8803[AC_CHECK_TOOL(OBJDUMP, objdump, false) 8804test -z "$OBJDUMP" && OBJDUMP=objdump 8805_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) 8806AC_SUBST([OBJDUMP]) 8807]) 8808 8809 8810# _LT_DECL_SED 8811# ------------ 8812# Check for a fully-functional sed program, that truncates 8813# as few characters as possible. Prefer GNU sed if found. 8814m4_defun([_LT_DECL_SED], 8815[AC_PROG_SED 8816test -z "$SED" && SED=sed 8817Xsed="$SED -e 1s/^X//" 8818_LT_DECL([], [SED], [1], [A sed program that does not truncate output]) 8819_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], 8820 [Sed that helps us avoid accidentally triggering echo(1) options like -n]) 8821])# _LT_DECL_SED 8822 8823m4_ifndef([AC_PROG_SED], [ 8824# NOTE: This macro has been submitted for inclusion into # 8825# GNU Autoconf as AC_PROG_SED. When it is available in # 8826# a released version of Autoconf we should remove this # 8827# macro and use it instead. # 8828 8829m4_defun([AC_PROG_SED], 8830[AC_MSG_CHECKING([for a sed that does not truncate output]) 8831AC_CACHE_VAL(lt_cv_path_SED, 8832[# Loop through the user's path and test for sed and gsed. 8833# Then use that list of sed's as ones to test for truncation. 8834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8835for as_dir in $PATH 8836do 8837 IFS=$as_save_IFS 8838 test -z "$as_dir" && as_dir=. 8839 for lt_ac_prog in sed gsed; do 8840 for ac_exec_ext in '' $ac_executable_extensions; do 8841 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 8842 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 8843 fi 8844 done 8845 done 8846done 8847IFS=$as_save_IFS 8848lt_ac_max=0 8849lt_ac_count=0 8850# Add /usr/xpg4/bin/sed as it is typically found on Solaris 8851# along with /bin/sed that truncates output. 8852for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 8853 test ! -f $lt_ac_sed && continue 8854 cat /dev/null > conftest.in 8855 lt_ac_count=0 8856 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 8857 # Check for GNU sed and select it if it is found. 8858 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 8859 lt_cv_path_SED=$lt_ac_sed 8860 break 8861 fi 8862 while true; do 8863 cat conftest.in conftest.in >conftest.tmp 8864 mv conftest.tmp conftest.in 8865 cp conftest.in conftest.nl 8866 echo >>conftest.nl 8867 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 8868 cmp -s conftest.out conftest.nl || break 8869 # 10000 chars as input seems more than enough 8870 test $lt_ac_count -gt 10 && break 8871 lt_ac_count=`expr $lt_ac_count + 1` 8872 if test $lt_ac_count -gt $lt_ac_max; then 8873 lt_ac_max=$lt_ac_count 8874 lt_cv_path_SED=$lt_ac_sed 8875 fi 8876 done 8877done 8878]) 8879SED=$lt_cv_path_SED 8880AC_SUBST([SED]) 8881AC_MSG_RESULT([$SED]) 8882])#AC_PROG_SED 8883])#m4_ifndef 8884 8885# Old name: 8886AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) 8887dnl aclocal-1.4 backwards compatibility: 8888dnl AC_DEFUN([LT_AC_PROG_SED], []) 8889 8890 8891# _LT_CHECK_SHELL_FEATURES 8892# ------------------------ 8893# Find out whether the shell is Bourne or XSI compatible, 8894# or has some other useful features. 8895m4_defun([_LT_CHECK_SHELL_FEATURES], 8896[AC_MSG_CHECKING([whether the shell understands some XSI constructs]) 8897# Try some XSI features 8898xsi_shell=no 8899( _lt_dummy="a/b/c" 8900 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 8901 = c,a/b,, \ 8902 && eval 'test $(( 1 + 1 )) -eq 2 \ 8903 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 8904 && xsi_shell=yes 8905AC_MSG_RESULT([$xsi_shell]) 8906_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) 8907 8908AC_MSG_CHECKING([whether the shell understands "+="]) 8909lt_shell_append=no 8910( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ 8911 >/dev/null 2>&1 \ 8912 && lt_shell_append=yes 8913AC_MSG_RESULT([$lt_shell_append]) 8914_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) 8915 8916if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 8917 lt_unset=unset 8918else 8919 lt_unset=false 8920fi 8921_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl 8922 8923# test EBCDIC or ASCII 8924case `echo X|tr X '\101'` in 8925 A) # ASCII based system 8926 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 8927 lt_SP2NL='tr \040 \012' 8928 lt_NL2SP='tr \015\012 \040\040' 8929 ;; 8930 *) # EBCDIC based system 8931 lt_SP2NL='tr \100 \n' 8932 lt_NL2SP='tr \r\n \100\100' 8933 ;; 8934esac 8935_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl 8936_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl 8937])# _LT_CHECK_SHELL_FEATURES 8938 8939 8940# _LT_PROG_XSI_SHELLFNS 8941# --------------------- 8942# Bourne and XSI compatible variants of some useful shell functions. 8943m4_defun([_LT_PROG_XSI_SHELLFNS], 8944[case $xsi_shell in 8945 yes) 8946 cat << \_LT_EOF >> "$cfgfile" 8947 8948# func_dirname file append nondir_replacement 8949# Compute the dirname of FILE. If nonempty, add APPEND to the result, 8950# otherwise set result to NONDIR_REPLACEMENT. 8951func_dirname () 8952{ 8953 case ${1} in 8954 */*) func_dirname_result="${1%/*}${2}" ;; 8955 * ) func_dirname_result="${3}" ;; 8956 esac 8957} 8958 8959# func_basename file 8960func_basename () 8961{ 8962 func_basename_result="${1##*/}" 8963} 8964 8965# func_dirname_and_basename file append nondir_replacement 8966# perform func_basename and func_dirname in a single function 8967# call: 8968# dirname: Compute the dirname of FILE. If nonempty, 8969# add APPEND to the result, otherwise set result 8970# to NONDIR_REPLACEMENT. 8971# value returned in "$func_dirname_result" 8972# basename: Compute filename of FILE. 8973# value retuned in "$func_basename_result" 8974# Implementation must be kept synchronized with func_dirname 8975# and func_basename. For efficiency, we do not delegate to 8976# those functions but instead duplicate the functionality here. 8977func_dirname_and_basename () 8978{ 8979 case ${1} in 8980 */*) func_dirname_result="${1%/*}${2}" ;; 8981 * ) func_dirname_result="${3}" ;; 8982 esac 8983 func_basename_result="${1##*/}" 8984} 8985 8986# func_stripname prefix suffix name 8987# strip PREFIX and SUFFIX off of NAME. 8988# PREFIX and SUFFIX must not contain globbing or regex special 8989# characters, hashes, percent signs, but SUFFIX may contain a leading 8990# dot (in which case that matches only a dot). 8991func_stripname () 8992{ 8993 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 8994 # positional parameters, so assign one to ordinary parameter first. 8995 func_stripname_result=${3} 8996 func_stripname_result=${func_stripname_result#"${1}"} 8997 func_stripname_result=${func_stripname_result%"${2}"} 8998} 8999 9000# func_opt_split 9001func_opt_split () 9002{ 9003 func_opt_split_opt=${1%%=*} 9004 func_opt_split_arg=${1#*=} 9005} 9006 9007# func_lo2o object 9008func_lo2o () 9009{ 9010 case ${1} in 9011 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 9012 *) func_lo2o_result=${1} ;; 9013 esac 9014} 9015 9016# func_xform libobj-or-source 9017func_xform () 9018{ 9019 func_xform_result=${1%.*}.lo 9020} 9021 9022# func_arith arithmetic-term... 9023func_arith () 9024{ 9025 func_arith_result=$(( $[*] )) 9026} 9027 9028# func_len string 9029# STRING may not start with a hyphen. 9030func_len () 9031{ 9032 func_len_result=${#1} 9033} 9034 9035_LT_EOF 9036 ;; 9037 *) # Bourne compatible functions. 9038 cat << \_LT_EOF >> "$cfgfile" 9039 9040# func_dirname file append nondir_replacement 9041# Compute the dirname of FILE. If nonempty, add APPEND to the result, 9042# otherwise set result to NONDIR_REPLACEMENT. 9043func_dirname () 9044{ 9045 # Extract subdirectory from the argument. 9046 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 9047 if test "X$func_dirname_result" = "X${1}"; then 9048 func_dirname_result="${3}" 9049 else 9050 func_dirname_result="$func_dirname_result${2}" 9051 fi 9052} 9053 9054# func_basename file 9055func_basename () 9056{ 9057 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 9058} 9059 9060dnl func_dirname_and_basename 9061dnl A portable version of this function is already defined in general.m4sh 9062dnl so there is no need for it here. 9063 9064# func_stripname prefix suffix name 9065# strip PREFIX and SUFFIX off of NAME. 9066# PREFIX and SUFFIX must not contain globbing or regex special 9067# characters, hashes, percent signs, but SUFFIX may contain a leading 9068# dot (in which case that matches only a dot). 9069# func_strip_suffix prefix name 9070func_stripname () 9071{ 9072 case ${2} in 9073 .*) func_stripname_result=`$ECHO "X${3}" \ 9074 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 9075 *) func_stripname_result=`$ECHO "X${3}" \ 9076 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 9077 esac 9078} 9079 9080# sed scripts: 9081my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q' 9082my_sed_long_arg='1s/^-[[^=]]*=//' 9083 9084# func_opt_split 9085func_opt_split () 9086{ 9087 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 9088 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 9089} 9090 9091# func_lo2o object 9092func_lo2o () 9093{ 9094 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 9095} 9096 9097# func_xform libobj-or-source 9098func_xform () 9099{ 9100 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'` 9101} 9102 9103# func_arith arithmetic-term... 9104func_arith () 9105{ 9106 func_arith_result=`expr "$[@]"` 9107} 9108 9109# func_len string 9110# STRING may not start with a hyphen. 9111func_len () 9112{ 9113 func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len` 9114} 9115 9116_LT_EOF 9117esac 9118 9119case $lt_shell_append in 9120 yes) 9121 cat << \_LT_EOF >> "$cfgfile" 9122 9123# func_append var value 9124# Append VALUE to the end of shell variable VAR. 9125func_append () 9126{ 9127 eval "$[1]+=\$[2]" 9128} 9129_LT_EOF 9130 ;; 9131 *) 9132 cat << \_LT_EOF >> "$cfgfile" 9133 9134# func_append var value 9135# Append VALUE to the end of shell variable VAR. 9136func_append () 9137{ 9138 eval "$[1]=\$$[1]\$[2]" 9139} 9140 9141_LT_EOF 9142 ;; 9143 esac 9144]) 9145 9146# Helper functions for option handling. -*- Autoconf -*- 9147# 9148# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. 9149# Written by Gary V. Vaughan, 2004 9150# 9151# This file is free software; the Free Software Foundation gives 9152# unlimited permission to copy and/or distribute it, with or without 9153# modifications, as long as this notice is preserved. 9154 9155# serial 6 ltoptions.m4 9156 9157# This is to help aclocal find these macros, as it can't see m4_define. 9158AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) 9159 9160 9161# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) 9162# ------------------------------------------ 9163m4_define([_LT_MANGLE_OPTION], 9164[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) 9165 9166 9167# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) 9168# --------------------------------------- 9169# Set option OPTION-NAME for macro MACRO-NAME, and if there is a 9170# matching handler defined, dispatch to it. Other OPTION-NAMEs are 9171# saved as a flag. 9172m4_define([_LT_SET_OPTION], 9173[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl 9174m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), 9175 _LT_MANGLE_DEFUN([$1], [$2]), 9176 [m4_warning([Unknown $1 option `$2'])])[]dnl 9177]) 9178 9179 9180# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) 9181# ------------------------------------------------------------ 9182# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 9183m4_define([_LT_IF_OPTION], 9184[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) 9185 9186 9187# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) 9188# ------------------------------------------------------- 9189# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME 9190# are set. 9191m4_define([_LT_UNLESS_OPTIONS], 9192[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 9193 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), 9194 [m4_define([$0_found])])])[]dnl 9195m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 9196])[]dnl 9197]) 9198 9199 9200# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) 9201# ---------------------------------------- 9202# OPTION-LIST is a space-separated list of Libtool options associated 9203# with MACRO-NAME. If any OPTION has a matching handler declared with 9204# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about 9205# the unknown option and exit. 9206m4_defun([_LT_SET_OPTIONS], 9207[# Set options 9208m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 9209 [_LT_SET_OPTION([$1], _LT_Option)]) 9210 9211m4_if([$1],[LT_INIT],[ 9212 dnl 9213 dnl Simply set some default values (i.e off) if boolean options were not 9214 dnl specified: 9215 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no 9216 ]) 9217 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no 9218 ]) 9219 dnl 9220 dnl If no reference was made to various pairs of opposing options, then 9221 dnl we run the default mode handler for the pair. For example, if neither 9222 dnl `shared' nor `disable-shared' was passed, we enable building of shared 9223 dnl archives by default: 9224 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) 9225 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) 9226 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) 9227 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], 9228 [_LT_ENABLE_FAST_INSTALL]) 9229 ]) 9230])# _LT_SET_OPTIONS 9231 9232 9233 9234# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) 9235# ----------------------------------------- 9236m4_define([_LT_MANGLE_DEFUN], 9237[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) 9238 9239 9240# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) 9241# ----------------------------------------------- 9242m4_define([LT_OPTION_DEFINE], 9243[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl 9244])# LT_OPTION_DEFINE 9245 9246 9247# dlopen 9248# ------ 9249LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes 9250]) 9251 9252AU_DEFUN([AC_LIBTOOL_DLOPEN], 9253[_LT_SET_OPTION([LT_INIT], [dlopen]) 9254AC_DIAGNOSE([obsolete], 9255[$0: Remove this warning and the call to _LT_SET_OPTION when you 9256put the `dlopen' option into LT_INIT's first parameter.]) 9257]) 9258 9259dnl aclocal-1.4 backwards compatibility: 9260dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) 9261 9262 9263# win32-dll 9264# --------- 9265# Declare package support for building win32 dll's. 9266LT_OPTION_DEFINE([LT_INIT], [win32-dll], 9267[enable_win32_dll=yes 9268 9269case $host in 9270*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) 9271 AC_CHECK_TOOL(AS, as, false) 9272 AC_CHECK_TOOL(DLLTOOL, dlltool, false) 9273 AC_CHECK_TOOL(OBJDUMP, objdump, false) 9274 ;; 9275esac 9276 9277test -z "$AS" && AS=as 9278_LT_DECL([], [AS], [0], [Assembler program])dnl 9279 9280test -z "$DLLTOOL" && DLLTOOL=dlltool 9281_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl 9282 9283test -z "$OBJDUMP" && OBJDUMP=objdump 9284_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl 9285])# win32-dll 9286 9287AU_DEFUN([AC_LIBTOOL_WIN32_DLL], 9288[AC_REQUIRE([AC_CANONICAL_HOST])dnl 9289_LT_SET_OPTION([LT_INIT], [win32-dll]) 9290AC_DIAGNOSE([obsolete], 9291[$0: Remove this warning and the call to _LT_SET_OPTION when you 9292put the `win32-dll' option into LT_INIT's first parameter.]) 9293]) 9294 9295dnl aclocal-1.4 backwards compatibility: 9296dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) 9297 9298 9299# _LT_ENABLE_SHARED([DEFAULT]) 9300# ---------------------------- 9301# implement the --enable-shared flag, and supports the `shared' and 9302# `disable-shared' LT_INIT options. 9303# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 9304m4_define([_LT_ENABLE_SHARED], 9305[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl 9306AC_ARG_ENABLE([shared], 9307 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], 9308 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], 9309 [p=${PACKAGE-default} 9310 case $enableval in 9311 yes) enable_shared=yes ;; 9312 no) enable_shared=no ;; 9313 *) 9314 enable_shared=no 9315 # Look at the argument we got. We use all the common list separators. 9316 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9317 for pkg in $enableval; do 9318 IFS="$lt_save_ifs" 9319 if test "X$pkg" = "X$p"; then 9320 enable_shared=yes 9321 fi 9322 done 9323 IFS="$lt_save_ifs" 9324 ;; 9325 esac], 9326 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) 9327 9328 _LT_DECL([build_libtool_libs], [enable_shared], [0], 9329 [Whether or not to build shared libraries]) 9330])# _LT_ENABLE_SHARED 9331 9332LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) 9333LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) 9334 9335# Old names: 9336AC_DEFUN([AC_ENABLE_SHARED], 9337[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) 9338]) 9339 9340AC_DEFUN([AC_DISABLE_SHARED], 9341[_LT_SET_OPTION([LT_INIT], [disable-shared]) 9342]) 9343 9344AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) 9345AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) 9346 9347dnl aclocal-1.4 backwards compatibility: 9348dnl AC_DEFUN([AM_ENABLE_SHARED], []) 9349dnl AC_DEFUN([AM_DISABLE_SHARED], []) 9350 9351 9352 9353# _LT_ENABLE_STATIC([DEFAULT]) 9354# ---------------------------- 9355# implement the --enable-static flag, and support the `static' and 9356# `disable-static' LT_INIT options. 9357# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 9358m4_define([_LT_ENABLE_STATIC], 9359[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl 9360AC_ARG_ENABLE([static], 9361 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], 9362 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], 9363 [p=${PACKAGE-default} 9364 case $enableval in 9365 yes) enable_static=yes ;; 9366 no) enable_static=no ;; 9367 *) 9368 enable_static=no 9369 # Look at the argument we got. We use all the common list separators. 9370 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9371 for pkg in $enableval; do 9372 IFS="$lt_save_ifs" 9373 if test "X$pkg" = "X$p"; then 9374 enable_static=yes 9375 fi 9376 done 9377 IFS="$lt_save_ifs" 9378 ;; 9379 esac], 9380 [enable_static=]_LT_ENABLE_STATIC_DEFAULT) 9381 9382 _LT_DECL([build_old_libs], [enable_static], [0], 9383 [Whether or not to build static libraries]) 9384])# _LT_ENABLE_STATIC 9385 9386LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) 9387LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) 9388 9389# Old names: 9390AC_DEFUN([AC_ENABLE_STATIC], 9391[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) 9392]) 9393 9394AC_DEFUN([AC_DISABLE_STATIC], 9395[_LT_SET_OPTION([LT_INIT], [disable-static]) 9396]) 9397 9398AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) 9399AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) 9400 9401dnl aclocal-1.4 backwards compatibility: 9402dnl AC_DEFUN([AM_ENABLE_STATIC], []) 9403dnl AC_DEFUN([AM_DISABLE_STATIC], []) 9404 9405 9406 9407# _LT_ENABLE_FAST_INSTALL([DEFAULT]) 9408# ---------------------------------- 9409# implement the --enable-fast-install flag, and support the `fast-install' 9410# and `disable-fast-install' LT_INIT options. 9411# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 9412m4_define([_LT_ENABLE_FAST_INSTALL], 9413[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl 9414AC_ARG_ENABLE([fast-install], 9415 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], 9416 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], 9417 [p=${PACKAGE-default} 9418 case $enableval in 9419 yes) enable_fast_install=yes ;; 9420 no) enable_fast_install=no ;; 9421 *) 9422 enable_fast_install=no 9423 # Look at the argument we got. We use all the common list separators. 9424 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9425 for pkg in $enableval; do 9426 IFS="$lt_save_ifs" 9427 if test "X$pkg" = "X$p"; then 9428 enable_fast_install=yes 9429 fi 9430 done 9431 IFS="$lt_save_ifs" 9432 ;; 9433 esac], 9434 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) 9435 9436_LT_DECL([fast_install], [enable_fast_install], [0], 9437 [Whether or not to optimize for fast installation])dnl 9438])# _LT_ENABLE_FAST_INSTALL 9439 9440LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) 9441LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) 9442 9443# Old names: 9444AU_DEFUN([AC_ENABLE_FAST_INSTALL], 9445[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) 9446AC_DIAGNOSE([obsolete], 9447[$0: Remove this warning and the call to _LT_SET_OPTION when you put 9448the `fast-install' option into LT_INIT's first parameter.]) 9449]) 9450 9451AU_DEFUN([AC_DISABLE_FAST_INSTALL], 9452[_LT_SET_OPTION([LT_INIT], [disable-fast-install]) 9453AC_DIAGNOSE([obsolete], 9454[$0: Remove this warning and the call to _LT_SET_OPTION when you put 9455the `disable-fast-install' option into LT_INIT's first parameter.]) 9456]) 9457 9458dnl aclocal-1.4 backwards compatibility: 9459dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) 9460dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) 9461 9462 9463# _LT_WITH_PIC([MODE]) 9464# -------------------- 9465# implement the --with-pic flag, and support the `pic-only' and `no-pic' 9466# LT_INIT options. 9467# MODE is either `yes' or `no'. If omitted, it defaults to `both'. 9468m4_define([_LT_WITH_PIC], 9469[AC_ARG_WITH([pic], 9470 [AS_HELP_STRING([--with-pic], 9471 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], 9472 [pic_mode="$withval"], 9473 [pic_mode=default]) 9474 9475test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) 9476 9477_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl 9478])# _LT_WITH_PIC 9479 9480LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) 9481LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) 9482 9483# Old name: 9484AU_DEFUN([AC_LIBTOOL_PICMODE], 9485[_LT_SET_OPTION([LT_INIT], [pic-only]) 9486AC_DIAGNOSE([obsolete], 9487[$0: Remove this warning and the call to _LT_SET_OPTION when you 9488put the `pic-only' option into LT_INIT's first parameter.]) 9489]) 9490 9491dnl aclocal-1.4 backwards compatibility: 9492dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) 9493 9494 9495m4_define([_LTDL_MODE], []) 9496LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], 9497 [m4_define([_LTDL_MODE], [nonrecursive])]) 9498LT_OPTION_DEFINE([LTDL_INIT], [recursive], 9499 [m4_define([_LTDL_MODE], [recursive])]) 9500LT_OPTION_DEFINE([LTDL_INIT], [subproject], 9501 [m4_define([_LTDL_MODE], [subproject])]) 9502 9503m4_define([_LTDL_TYPE], []) 9504LT_OPTION_DEFINE([LTDL_INIT], [installable], 9505 [m4_define([_LTDL_TYPE], [installable])]) 9506LT_OPTION_DEFINE([LTDL_INIT], [convenience], 9507 [m4_define([_LTDL_TYPE], [convenience])]) 9508 9509# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- 9510# 9511# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. 9512# Written by Gary V. Vaughan, 2004 9513# 9514# This file is free software; the Free Software Foundation gives 9515# unlimited permission to copy and/or distribute it, with or without 9516# modifications, as long as this notice is preserved. 9517 9518# serial 6 ltsugar.m4 9519 9520# This is to help aclocal find these macros, as it can't see m4_define. 9521AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) 9522 9523 9524# lt_join(SEP, ARG1, [ARG2...]) 9525# ----------------------------- 9526# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their 9527# associated separator. 9528# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier 9529# versions in m4sugar had bugs. 9530m4_define([lt_join], 9531[m4_if([$#], [1], [], 9532 [$#], [2], [[$2]], 9533 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) 9534m4_define([_lt_join], 9535[m4_if([$#$2], [2], [], 9536 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) 9537 9538 9539# lt_car(LIST) 9540# lt_cdr(LIST) 9541# ------------ 9542# Manipulate m4 lists. 9543# These macros are necessary as long as will still need to support 9544# Autoconf-2.59 which quotes differently. 9545m4_define([lt_car], [[$1]]) 9546m4_define([lt_cdr], 9547[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], 9548 [$#], 1, [], 9549 [m4_dquote(m4_shift($@))])]) 9550m4_define([lt_unquote], $1) 9551 9552 9553# lt_append(MACRO-NAME, STRING, [SEPARATOR]) 9554# ------------------------------------------ 9555# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. 9556# Note that neither SEPARATOR nor STRING are expanded; they are appended 9557# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). 9558# No SEPARATOR is output if MACRO-NAME was previously undefined (different 9559# than defined and empty). 9560# 9561# This macro is needed until we can rely on Autoconf 2.62, since earlier 9562# versions of m4sugar mistakenly expanded SEPARATOR but not STRING. 9563m4_define([lt_append], 9564[m4_define([$1], 9565 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) 9566 9567 9568 9569# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) 9570# ---------------------------------------------------------- 9571# Produce a SEP delimited list of all paired combinations of elements of 9572# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list 9573# has the form PREFIXmINFIXSUFFIXn. 9574# Needed until we can rely on m4_combine added in Autoconf 2.62. 9575m4_define([lt_combine], 9576[m4_if(m4_eval([$# > 3]), [1], 9577 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl 9578[[m4_foreach([_Lt_prefix], [$2], 9579 [m4_foreach([_Lt_suffix], 9580 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, 9581 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) 9582 9583 9584# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) 9585# ----------------------------------------------------------------------- 9586# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited 9587# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. 9588m4_define([lt_if_append_uniq], 9589[m4_ifdef([$1], 9590 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], 9591 [lt_append([$1], [$2], [$3])$4], 9592 [$5])], 9593 [lt_append([$1], [$2], [$3])$4])]) 9594 9595 9596# lt_dict_add(DICT, KEY, VALUE) 9597# ----------------------------- 9598m4_define([lt_dict_add], 9599[m4_define([$1($2)], [$3])]) 9600 9601 9602# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) 9603# -------------------------------------------- 9604m4_define([lt_dict_add_subkey], 9605[m4_define([$1($2:$3)], [$4])]) 9606 9607 9608# lt_dict_fetch(DICT, KEY, [SUBKEY]) 9609# ---------------------------------- 9610m4_define([lt_dict_fetch], 9611[m4_ifval([$3], 9612 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), 9613 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) 9614 9615 9616# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) 9617# ----------------------------------------------------------------- 9618m4_define([lt_if_dict_fetch], 9619[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], 9620 [$5], 9621 [$6])]) 9622 9623 9624# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) 9625# -------------------------------------------------------------- 9626m4_define([lt_dict_filter], 9627[m4_if([$5], [], [], 9628 [lt_join(m4_quote(m4_default([$4], [[, ]])), 9629 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), 9630 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl 9631]) 9632 9633# ltversion.m4 -- version numbers -*- Autoconf -*- 9634# 9635# Copyright (C) 2004 Free Software Foundation, Inc. 9636# Written by Scott James Remnant, 2004 9637# 9638# This file is free software; the Free Software Foundation gives 9639# unlimited permission to copy and/or distribute it, with or without 9640# modifications, as long as this notice is preserved. 9641 9642# Generated from ltversion.in. 9643 9644# serial 3017 ltversion.m4 9645# This file is part of GNU Libtool 9646 9647m4_define([LT_PACKAGE_VERSION], [2.2.6b]) 9648m4_define([LT_PACKAGE_REVISION], [1.3017]) 9649 9650AC_DEFUN([LTVERSION_VERSION], 9651[macro_version='2.2.6b' 9652macro_revision='1.3017' 9653_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) 9654_LT_DECL(, macro_revision, 0) 9655]) 9656 9657# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- 9658# 9659# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc. 9660# Written by Scott James Remnant, 2004. 9661# 9662# This file is free software; the Free Software Foundation gives 9663# unlimited permission to copy and/or distribute it, with or without 9664# modifications, as long as this notice is preserved. 9665 9666# serial 4 lt~obsolete.m4 9667 9668# These exist entirely to fool aclocal when bootstrapping libtool. 9669# 9670# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) 9671# which have later been changed to m4_define as they aren't part of the 9672# exported API, or moved to Autoconf or Automake where they belong. 9673# 9674# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN 9675# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us 9676# using a macro with the same name in our local m4/libtool.m4 it'll 9677# pull the old libtool.m4 in (it doesn't see our shiny new m4_define 9678# and doesn't know about Autoconf macros at all.) 9679# 9680# So we provide this file, which has a silly filename so it's always 9681# included after everything else. This provides aclocal with the 9682# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything 9683# because those macros already exist, or will be overwritten later. 9684# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 9685# 9686# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. 9687# Yes, that means every name once taken will need to remain here until 9688# we give up compatibility with versions before 1.7, at which point 9689# we need to keep only those names which we still refer to. 9690 9691# This is to help aclocal find these macros, as it can't see m4_define. 9692AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) 9693 9694m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) 9695m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) 9696m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) 9697m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) 9698m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) 9699m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) 9700m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) 9701m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) 9702m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) 9703m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) 9704m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) 9705m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) 9706m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) 9707m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) 9708m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) 9709m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) 9710m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) 9711m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) 9712m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) 9713m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) 9714m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) 9715m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) 9716m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) 9717m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) 9718m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) 9719m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) 9720m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) 9721m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) 9722m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) 9723m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) 9724m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) 9725m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) 9726m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) 9727m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) 9728m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) 9729m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) 9730m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) 9731m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) 9732m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) 9733m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) 9734m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) 9735m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) 9736m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])]) 9737m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) 9738m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) 9739m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) 9740m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) 9741m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) 9742m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) 9743m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) 9744m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) 9745m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) 9746m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) 9747m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) 9748m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) 9749 9750# nls.m4 serial 5 (gettext-0.18) 9751dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation, 9752dnl Inc. 9753dnl This file is free software; the Free Software Foundation 9754dnl gives unlimited permission to copy and/or distribute it, 9755dnl with or without modifications, as long as this notice is preserved. 9756dnl 9757dnl This file can can be used in projects which are not available under 9758dnl the GNU General Public License or the GNU Library General Public 9759dnl License but which still want to provide support for the GNU gettext 9760dnl functionality. 9761dnl Please note that the actual code of the GNU gettext library is covered 9762dnl by the GNU Library General Public License, and the rest of the GNU 9763dnl gettext package package is covered by the GNU General Public License. 9764dnl They are *not* in the public domain. 9765 9766dnl Authors: 9767dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. 9768dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003. 9769 9770AC_PREREQ([2.50]) 9771 9772AC_DEFUN([AM_NLS], 9773[ 9774 AC_MSG_CHECKING([whether NLS is requested]) 9775 dnl Default is enabled NLS 9776 AC_ARG_ENABLE([nls], 9777 [ --disable-nls do not use Native Language Support], 9778 USE_NLS=$enableval, USE_NLS=yes) 9779 AC_MSG_RESULT([$USE_NLS]) 9780 AC_SUBST([USE_NLS]) 9781]) 9782 9783# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 9784# serial 1 (pkg-config-0.24) 9785# 9786# Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 9787# 9788# This program is free software; you can redistribute it and/or modify 9789# it under the terms of the GNU General Public License as published by 9790# the Free Software Foundation; either version 2 of the License, or 9791# (at your option) any later version. 9792# 9793# This program is distributed in the hope that it will be useful, but 9794# WITHOUT ANY WARRANTY; without even the implied warranty of 9795# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 9796# General Public License for more details. 9797# 9798# You should have received a copy of the GNU General Public License 9799# along with this program; if not, write to the Free Software 9800# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 9801# 9802# As a special exception to the GNU General Public License, if you 9803# distribute this file as part of a program that contains a 9804# configuration script generated by Autoconf, you may include it under 9805# the same distribution terms that you use for the rest of that program. 9806 9807# PKG_PROG_PKG_CONFIG([MIN-VERSION]) 9808# ---------------------------------- 9809AC_DEFUN([PKG_PROG_PKG_CONFIG], 9810[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) 9811m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) 9812AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) 9813AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) 9814AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) 9815 9816if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 9817 AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) 9818fi 9819if test -n "$PKG_CONFIG"; then 9820 _pkg_min_version=m4_default([$1], [0.9.0]) 9821 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) 9822 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 9823 AC_MSG_RESULT([yes]) 9824 else 9825 AC_MSG_RESULT([no]) 9826 PKG_CONFIG="" 9827 fi 9828fi[]dnl 9829])# PKG_PROG_PKG_CONFIG 9830 9831# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 9832# 9833# Check to see whether a particular set of modules exists. Similar 9834# to PKG_CHECK_MODULES(), but does not set variables or print errors. 9835# 9836# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 9837# only at the first occurence in configure.ac, so if the first place 9838# it's called might be skipped (such as if it is within an "if", you 9839# have to call PKG_CHECK_EXISTS manually 9840# -------------------------------------------------------------- 9841AC_DEFUN([PKG_CHECK_EXISTS], 9842[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 9843if test -n "$PKG_CONFIG" && \ 9844 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then 9845 m4_default([$2], [:]) 9846m4_ifvaln([$3], [else 9847 $3])dnl 9848fi]) 9849 9850# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 9851# --------------------------------------------- 9852m4_define([_PKG_CONFIG], 9853[if test -n "$$1"; then 9854 pkg_cv_[]$1="$$1" 9855 elif test -n "$PKG_CONFIG"; then 9856 PKG_CHECK_EXISTS([$3], 9857 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], 9858 [pkg_failed=yes]) 9859 else 9860 pkg_failed=untried 9861fi[]dnl 9862])# _PKG_CONFIG 9863 9864# _PKG_SHORT_ERRORS_SUPPORTED 9865# ----------------------------- 9866AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], 9867[AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 9868if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 9869 _pkg_short_errors_supported=yes 9870else 9871 _pkg_short_errors_supported=no 9872fi[]dnl 9873])# _PKG_SHORT_ERRORS_SUPPORTED 9874 9875 9876# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 9877# [ACTION-IF-NOT-FOUND]) 9878# 9879# 9880# Note that if there is a possibility the first call to 9881# PKG_CHECK_MODULES might not happen, you should be sure to include an 9882# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 9883# 9884# 9885# -------------------------------------------------------------- 9886AC_DEFUN([PKG_CHECK_MODULES], 9887[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 9888AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl 9889AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl 9890 9891pkg_failed=no 9892AC_MSG_CHECKING([for $1]) 9893 9894_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) 9895_PKG_CONFIG([$1][_LIBS], [libs], [$2]) 9896 9897m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS 9898and $1[]_LIBS to avoid the need to call pkg-config. 9899See the pkg-config man page for more details.]) 9900 9901if test $pkg_failed = yes; then 9902 AC_MSG_RESULT([no]) 9903 _PKG_SHORT_ERRORS_SUPPORTED 9904 if test $_pkg_short_errors_supported = yes; then 9905 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1` 9906 else 9907 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1` 9908 fi 9909 # Put the nasty error message in config.log where it belongs 9910 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD 9911 9912 m4_default([$4], [AC_MSG_ERROR( 9913[Package requirements ($2) were not met: 9914 9915$$1_PKG_ERRORS 9916 9917Consider adjusting the PKG_CONFIG_PATH environment variable if you 9918installed software in a non-standard prefix. 9919 9920_PKG_TEXT])[]dnl 9921 ]) 9922elif test $pkg_failed = untried; then 9923 AC_MSG_RESULT([no]) 9924 m4_default([$4], [AC_MSG_FAILURE( 9925[The pkg-config script could not be found or is too old. Make sure it 9926is in your PATH or set the PKG_CONFIG environment variable to the full 9927path to pkg-config. 9928 9929_PKG_TEXT 9930 9931To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl 9932 ]) 9933else 9934 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS 9935 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS 9936 AC_MSG_RESULT([yes]) 9937 $3 9938fi[]dnl 9939])# PKG_CHECK_MODULES 9940 9941# po.m4 serial 17 (gettext-0.18) 9942dnl Copyright (C) 1995-2010 Free Software Foundation, Inc. 9943dnl This file is free software; the Free Software Foundation 9944dnl gives unlimited permission to copy and/or distribute it, 9945dnl with or without modifications, as long as this notice is preserved. 9946dnl 9947dnl This file can can be used in projects which are not available under 9948dnl the GNU General Public License or the GNU Library General Public 9949dnl License but which still want to provide support for the GNU gettext 9950dnl functionality. 9951dnl Please note that the actual code of the GNU gettext library is covered 9952dnl by the GNU Library General Public License, and the rest of the GNU 9953dnl gettext package package is covered by the GNU General Public License. 9954dnl They are *not* in the public domain. 9955 9956dnl Authors: 9957dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. 9958dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003. 9959 9960AC_PREREQ([2.50]) 9961 9962dnl Checks for all prerequisites of the po subdirectory. 9963AC_DEFUN([AM_PO_SUBDIRS], 9964[ 9965 AC_REQUIRE([AC_PROG_MAKE_SET])dnl 9966 AC_REQUIRE([AC_PROG_INSTALL])dnl 9967 AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake 9968 AC_REQUIRE([AM_NLS])dnl 9969 9970 dnl Release version of the gettext macros. This is used to ensure that 9971 dnl the gettext macros and po/Makefile.in.in are in sync. 9972 AC_SUBST([GETTEXT_MACRO_VERSION], [0.18]) 9973 9974 dnl Perform the following tests also if --disable-nls has been given, 9975 dnl because they are needed for "make dist" to work. 9976 9977 dnl Search for GNU msgfmt in the PATH. 9978 dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions. 9979 dnl The second test excludes FreeBSD msgfmt. 9980 AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, 9981 [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && 9982 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], 9983 :) 9984 AC_PATH_PROG([GMSGFMT], [gmsgfmt], [$MSGFMT]) 9985 9986 dnl Test whether it is GNU msgfmt >= 0.15. 9987changequote(,)dnl 9988 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 9989 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; 9990 *) MSGFMT_015=$MSGFMT ;; 9991 esac 9992changequote([,])dnl 9993 AC_SUBST([MSGFMT_015]) 9994changequote(,)dnl 9995 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 9996 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; 9997 *) GMSGFMT_015=$GMSGFMT ;; 9998 esac 9999changequote([,])dnl 10000 AC_SUBST([GMSGFMT_015]) 10001 10002 dnl Search for GNU xgettext 0.12 or newer in the PATH. 10003 dnl The first test excludes Solaris xgettext and early GNU xgettext versions. 10004 dnl The second test excludes FreeBSD xgettext. 10005 AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, 10006 [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && 10007 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], 10008 :) 10009 dnl Remove leftover from FreeBSD xgettext call. 10010 rm -f messages.po 10011 10012 dnl Test whether it is GNU xgettext >= 0.15. 10013changequote(,)dnl 10014 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 10015 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; 10016 *) XGETTEXT_015=$XGETTEXT ;; 10017 esac 10018changequote([,])dnl 10019 AC_SUBST([XGETTEXT_015]) 10020 10021 dnl Search for GNU msgmerge 0.11 or newer in the PATH. 10022 AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge, 10023 [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :) 10024 10025 dnl Installation directories. 10026 dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we 10027 dnl have to define it here, so that it can be used in po/Makefile. 10028 test -n "$localedir" || localedir='${datadir}/locale' 10029 AC_SUBST([localedir]) 10030 10031 dnl Support for AM_XGETTEXT_OPTION. 10032 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= 10033 AC_SUBST([XGETTEXT_EXTRA_OPTIONS]) 10034 10035 AC_CONFIG_COMMANDS([po-directories], [[ 10036 for ac_file in $CONFIG_FILES; do 10037 # Support "outfile[:infile[:infile...]]" 10038 case "$ac_file" in 10039 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 10040 esac 10041 # PO directories have a Makefile.in generated from Makefile.in.in. 10042 case "$ac_file" in */Makefile.in) 10043 # Adjust a relative srcdir. 10044 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 10045 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 10046 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 10047 # In autoconf-2.13 it is called $ac_given_srcdir. 10048 # In autoconf-2.50 it is called $srcdir. 10049 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 10050 case "$ac_given_srcdir" in 10051 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 10052 /*) top_srcdir="$ac_given_srcdir" ;; 10053 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 10054 esac 10055 # Treat a directory as a PO directory if and only if it has a 10056 # POTFILES.in file. This allows packages to have multiple PO 10057 # directories under different names or in different locations. 10058 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 10059 rm -f "$ac_dir/POTFILES" 10060 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 10061 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 10062 POMAKEFILEDEPS="POTFILES.in" 10063 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 10064 # on $ac_dir but don't depend on user-specified configuration 10065 # parameters. 10066 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 10067 # The LINGUAS file contains the set of available languages. 10068 if test -n "$OBSOLETE_ALL_LINGUAS"; then 10069 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 10070 fi 10071 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` 10072 # Hide the ALL_LINGUAS assigment from automake < 1.5. 10073 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 10074 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 10075 else 10076 # The set of available languages was given in configure.in. 10077 # Hide the ALL_LINGUAS assigment from automake < 1.5. 10078 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 10079 fi 10080 # Compute POFILES 10081 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 10082 # Compute UPDATEPOFILES 10083 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 10084 # Compute DUMMYPOFILES 10085 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 10086 # Compute GMOFILES 10087 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 10088 case "$ac_given_srcdir" in 10089 .) srcdirpre= ;; 10090 *) srcdirpre='$(srcdir)/' ;; 10091 esac 10092 POFILES= 10093 UPDATEPOFILES= 10094 DUMMYPOFILES= 10095 GMOFILES= 10096 for lang in $ALL_LINGUAS; do 10097 POFILES="$POFILES $srcdirpre$lang.po" 10098 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 10099 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 10100 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 10101 done 10102 # CATALOGS depends on both $ac_dir and the user's LINGUAS 10103 # environment variable. 10104 INST_LINGUAS= 10105 if test -n "$ALL_LINGUAS"; then 10106 for presentlang in $ALL_LINGUAS; do 10107 useit=no 10108 if test "%UNSET%" != "$LINGUAS"; then 10109 desiredlanguages="$LINGUAS" 10110 else 10111 desiredlanguages="$ALL_LINGUAS" 10112 fi 10113 for desiredlang in $desiredlanguages; do 10114 # Use the presentlang catalog if desiredlang is 10115 # a. equal to presentlang, or 10116 # b. a variant of presentlang (because in this case, 10117 # presentlang can be used as a fallback for messages 10118 # which are not translated in the desiredlang catalog). 10119 case "$desiredlang" in 10120 "$presentlang"*) useit=yes;; 10121 esac 10122 done 10123 if test $useit = yes; then 10124 INST_LINGUAS="$INST_LINGUAS $presentlang" 10125 fi 10126 done 10127 fi 10128 CATALOGS= 10129 if test -n "$INST_LINGUAS"; then 10130 for lang in $INST_LINGUAS; do 10131 CATALOGS="$CATALOGS $lang.gmo" 10132 done 10133 fi 10134 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 10135 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" 10136 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 10137 if test -f "$f"; then 10138 case "$f" in 10139 *.orig | *.bak | *~) ;; 10140 *) cat "$f" >> "$ac_dir/Makefile" ;; 10141 esac 10142 fi 10143 done 10144 fi 10145 ;; 10146 esac 10147 done]], 10148 [# Capture the value of obsolete ALL_LINGUAS because we need it to compute 10149 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 10150 # from automake < 1.5. 10151 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 10152 # Capture the value of LINGUAS because we need it to compute CATALOGS. 10153 LINGUAS="${LINGUAS-%UNSET%}" 10154 ]) 10155]) 10156 10157dnl Postprocesses a Makefile in a directory containing PO files. 10158AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE], 10159[ 10160 # When this code is run, in config.status, two variables have already been 10161 # set: 10162 # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in, 10163 # - LINGUAS is the value of the environment variable LINGUAS at configure 10164 # time. 10165 10166changequote(,)dnl 10167 # Adjust a relative srcdir. 10168 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 10169 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 10170 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 10171 # In autoconf-2.13 it is called $ac_given_srcdir. 10172 # In autoconf-2.50 it is called $srcdir. 10173 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 10174 case "$ac_given_srcdir" in 10175 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 10176 /*) top_srcdir="$ac_given_srcdir" ;; 10177 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 10178 esac 10179 10180 # Find a way to echo strings without interpreting backslash. 10181 if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then 10182 gt_echo='echo' 10183 else 10184 if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then 10185 gt_echo='printf %s\n' 10186 else 10187 echo_func () { 10188 cat <<EOT 10189$* 10190EOT 10191 } 10192 gt_echo='echo_func' 10193 fi 10194 fi 10195 10196 # A sed script that extracts the value of VARIABLE from a Makefile. 10197 sed_x_variable=' 10198# Test if the hold space is empty. 10199x 10200s/P/P/ 10201x 10202ta 10203# Yes it was empty. Look if we have the expected variable definition. 10204/^[ ]*VARIABLE[ ]*=/{ 10205 # Seen the first line of the variable definition. 10206 s/^[ ]*VARIABLE[ ]*=// 10207 ba 10208} 10209bd 10210:a 10211# Here we are processing a line from the variable definition. 10212# Remove comment, more precisely replace it with a space. 10213s/#.*$/ / 10214# See if the line ends in a backslash. 10215tb 10216:b 10217s/\\$// 10218# Print the line, without the trailing backslash. 10219p 10220tc 10221# There was no trailing backslash. The end of the variable definition is 10222# reached. Clear the hold space. 10223s/^.*$// 10224x 10225bd 10226:c 10227# A trailing backslash means that the variable definition continues in the 10228# next line. Put a nonempty string into the hold space to indicate this. 10229s/^.*$/P/ 10230x 10231:d 10232' 10233changequote([,])dnl 10234 10235 # Set POTFILES to the value of the Makefile variable POTFILES. 10236 sed_x_POTFILES=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'` 10237 POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"` 10238 # Compute POTFILES_DEPS as 10239 # $(foreach file, $(POTFILES), $(top_srcdir)/$(file)) 10240 POTFILES_DEPS= 10241 for file in $POTFILES; do 10242 POTFILES_DEPS="$POTFILES_DEPS "'$(top_srcdir)/'"$file" 10243 done 10244 POMAKEFILEDEPS="" 10245 10246 if test -n "$OBSOLETE_ALL_LINGUAS"; then 10247 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 10248 fi 10249 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 10250 # The LINGUAS file contains the set of available languages. 10251 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` 10252 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 10253 else 10254 # Set ALL_LINGUAS to the value of the Makefile variable LINGUAS. 10255 sed_x_LINGUAS=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'` 10256 ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"` 10257 fi 10258 # Hide the ALL_LINGUAS assigment from automake < 1.5. 10259 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 10260 # Compute POFILES 10261 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 10262 # Compute UPDATEPOFILES 10263 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 10264 # Compute DUMMYPOFILES 10265 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 10266 # Compute GMOFILES 10267 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 10268 # Compute PROPERTIESFILES 10269 # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).properties) 10270 # Compute CLASSFILES 10271 # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).class) 10272 # Compute QMFILES 10273 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm) 10274 # Compute MSGFILES 10275 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg) 10276 # Compute RESOURCESDLLFILES 10277 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll) 10278 case "$ac_given_srcdir" in 10279 .) srcdirpre= ;; 10280 *) srcdirpre='$(srcdir)/' ;; 10281 esac 10282 POFILES= 10283 UPDATEPOFILES= 10284 DUMMYPOFILES= 10285 GMOFILES= 10286 PROPERTIESFILES= 10287 CLASSFILES= 10288 QMFILES= 10289 MSGFILES= 10290 RESOURCESDLLFILES= 10291 for lang in $ALL_LINGUAS; do 10292 POFILES="$POFILES $srcdirpre$lang.po" 10293 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 10294 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 10295 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 10296 PROPERTIESFILES="$PROPERTIESFILES \$(top_srcdir)/\$(DOMAIN)_$lang.properties" 10297 CLASSFILES="$CLASSFILES \$(top_srcdir)/\$(DOMAIN)_$lang.class" 10298 QMFILES="$QMFILES $srcdirpre$lang.qm" 10299 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` 10300 MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg" 10301 frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'` 10302 RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll" 10303 done 10304 # CATALOGS depends on both $ac_dir and the user's LINGUAS 10305 # environment variable. 10306 INST_LINGUAS= 10307 if test -n "$ALL_LINGUAS"; then 10308 for presentlang in $ALL_LINGUAS; do 10309 useit=no 10310 if test "%UNSET%" != "$LINGUAS"; then 10311 desiredlanguages="$LINGUAS" 10312 else 10313 desiredlanguages="$ALL_LINGUAS" 10314 fi 10315 for desiredlang in $desiredlanguages; do 10316 # Use the presentlang catalog if desiredlang is 10317 # a. equal to presentlang, or 10318 # b. a variant of presentlang (because in this case, 10319 # presentlang can be used as a fallback for messages 10320 # which are not translated in the desiredlang catalog). 10321 case "$desiredlang" in 10322 "$presentlang"*) useit=yes;; 10323 esac 10324 done 10325 if test $useit = yes; then 10326 INST_LINGUAS="$INST_LINGUAS $presentlang" 10327 fi 10328 done 10329 fi 10330 CATALOGS= 10331 JAVACATALOGS= 10332 QTCATALOGS= 10333 TCLCATALOGS= 10334 CSHARPCATALOGS= 10335 if test -n "$INST_LINGUAS"; then 10336 for lang in $INST_LINGUAS; do 10337 CATALOGS="$CATALOGS $lang.gmo" 10338 JAVACATALOGS="$JAVACATALOGS \$(DOMAIN)_$lang.properties" 10339 QTCATALOGS="$QTCATALOGS $lang.qm" 10340 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` 10341 TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg" 10342 frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'` 10343 CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll" 10344 done 10345 fi 10346 10347 sed -e "s|@POTFILES_DEPS@|$POTFILES_DEPS|g" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@PROPERTIESFILES@|$PROPERTIESFILES|g" -e "s|@CLASSFILES@|$CLASSFILES|g" -e "s|@QMFILES@|$QMFILES|g" -e "s|@MSGFILES@|$MSGFILES|g" -e "s|@RESOURCESDLLFILES@|$RESOURCESDLLFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@JAVACATALOGS@|$JAVACATALOGS|g" -e "s|@QTCATALOGS@|$QTCATALOGS|g" -e "s|@TCLCATALOGS@|$TCLCATALOGS|g" -e "s|@CSHARPCATALOGS@|$CSHARPCATALOGS|g" -e 's,^#distdir:,distdir:,' < "$ac_file" > "$ac_file.tmp" 10348 if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then 10349 # Add dependencies that cannot be formulated as a simple suffix rule. 10350 for lang in $ALL_LINGUAS; do 10351 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` 10352 cat >> "$ac_file.tmp" <<EOF 10353$frobbedlang.msg: $lang.po 10354 @echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \ 10355 \$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; } 10356EOF 10357 done 10358 fi 10359 if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then 10360 # Add dependencies that cannot be formulated as a simple suffix rule. 10361 for lang in $ALL_LINGUAS; do 10362 frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'` 10363 cat >> "$ac_file.tmp" <<EOF 10364$frobbedlang/\$(DOMAIN).resources.dll: $lang.po 10365 @echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \ 10366 \$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; } 10367EOF 10368 done 10369 fi 10370 if test -n "$POMAKEFILEDEPS"; then 10371 cat >> "$ac_file.tmp" <<EOF 10372Makefile: $POMAKEFILEDEPS 10373EOF 10374 fi 10375 mv "$ac_file.tmp" "$ac_file" 10376]) 10377 10378dnl Initializes the accumulator used by AM_XGETTEXT_OPTION. 10379AC_DEFUN([AM_XGETTEXT_OPTION_INIT], 10380[ 10381 XGETTEXT_EXTRA_OPTIONS= 10382]) 10383 10384dnl Registers an option to be passed to xgettext in the po subdirectory. 10385AC_DEFUN([AM_XGETTEXT_OPTION], 10386[ 10387 AC_REQUIRE([AM_XGETTEXT_OPTION_INIT]) 10388 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS $1" 10389]) 10390 10391# progtest.m4 serial 6 (gettext-0.18) 10392dnl Copyright (C) 1996-2003, 2005, 2008-2010 Free Software Foundation, Inc. 10393dnl This file is free software; the Free Software Foundation 10394dnl gives unlimited permission to copy and/or distribute it, 10395dnl with or without modifications, as long as this notice is preserved. 10396dnl 10397dnl This file can can be used in projects which are not available under 10398dnl the GNU General Public License or the GNU Library General Public 10399dnl License but which still want to provide support for the GNU gettext 10400dnl functionality. 10401dnl Please note that the actual code of the GNU gettext library is covered 10402dnl by the GNU Library General Public License, and the rest of the GNU 10403dnl gettext package package is covered by the GNU General Public License. 10404dnl They are *not* in the public domain. 10405 10406dnl Authors: 10407dnl Ulrich Drepper <drepper@cygnus.com>, 1996. 10408 10409AC_PREREQ([2.50]) 10410 10411# Search path for a program which passes the given test. 10412 10413dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, 10414dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) 10415AC_DEFUN([AM_PATH_PROG_WITH_TEST], 10416[ 10417# Prepare PATH_SEPARATOR. 10418# The user is always right. 10419if test "${PATH_SEPARATOR+set}" != set; then 10420 echo "#! /bin/sh" >conf$$.sh 10421 echo "exit 0" >>conf$$.sh 10422 chmod +x conf$$.sh 10423 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 10424 PATH_SEPARATOR=';' 10425 else 10426 PATH_SEPARATOR=: 10427 fi 10428 rm -f conf$$.sh 10429fi 10430 10431# Find out how to test for executable files. Don't use a zero-byte file, 10432# as systems may use methods other than mode bits to determine executability. 10433cat >conf$$.file <<_ASEOF 10434#! /bin/sh 10435exit 0 10436_ASEOF 10437chmod +x conf$$.file 10438if test -x conf$$.file >/dev/null 2>&1; then 10439 ac_executable_p="test -x" 10440else 10441 ac_executable_p="test -f" 10442fi 10443rm -f conf$$.file 10444 10445# Extract the first word of "$2", so it can be a program name with args. 10446set dummy $2; ac_word=[$]2 10447AC_MSG_CHECKING([for $ac_word]) 10448AC_CACHE_VAL([ac_cv_path_$1], 10449[case "[$]$1" in 10450 [[\\/]]* | ?:[[\\/]]*) 10451 ac_cv_path_$1="[$]$1" # Let the user override the test with a path. 10452 ;; 10453 *) 10454 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 10455 for ac_dir in ifelse([$5], , $PATH, [$5]); do 10456 IFS="$ac_save_IFS" 10457 test -z "$ac_dir" && ac_dir=. 10458 for ac_exec_ext in '' $ac_executable_extensions; do 10459 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 10460 echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD 10461 if [$3]; then 10462 ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext" 10463 break 2 10464 fi 10465 fi 10466 done 10467 done 10468 IFS="$ac_save_IFS" 10469dnl If no 4th arg is given, leave the cache variable unset, 10470dnl so AC_PATH_PROGS will keep looking. 10471ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" 10472])dnl 10473 ;; 10474esac])dnl 10475$1="$ac_cv_path_$1" 10476if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then 10477 AC_MSG_RESULT([$][$1]) 10478else 10479 AC_MSG_RESULT([no]) 10480fi 10481AC_SUBST([$1])dnl 10482]) 10483 10484# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 10485# 10486# This file is free software; the Free Software Foundation 10487# gives unlimited permission to copy and/or distribute it, 10488# with or without modifications, as long as this notice is preserved. 10489 10490# AM_AUTOMAKE_VERSION(VERSION) 10491# ---------------------------- 10492# Automake X.Y traces this macro to ensure aclocal.m4 has been 10493# generated from the m4 files accompanying Automake X.Y. 10494# (This private macro should not be called outside this file.) 10495AC_DEFUN([AM_AUTOMAKE_VERSION], 10496[am__api_version='1.11' 10497dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 10498dnl require some minimum version. Point them to the right macro. 10499m4_if([$1], [1.11.1], [], 10500 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 10501]) 10502 10503# _AM_AUTOCONF_VERSION(VERSION) 10504# ----------------------------- 10505# aclocal traces this macro to find the Autoconf version. 10506# This is a private macro too. Using m4_define simplifies 10507# the logic in aclocal, which can simply ignore this definition. 10508m4_define([_AM_AUTOCONF_VERSION], []) 10509 10510# AM_SET_CURRENT_AUTOMAKE_VERSION 10511# ------------------------------- 10512# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 10513# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 10514AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 10515[AM_AUTOMAKE_VERSION([1.11.1])dnl 10516m4_ifndef([AC_AUTOCONF_VERSION], 10517 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 10518_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) 10519 10520# AM_AUX_DIR_EXPAND -*- Autoconf -*- 10521 10522# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 10523# 10524# This file is free software; the Free Software Foundation 10525# gives unlimited permission to copy and/or distribute it, 10526# with or without modifications, as long as this notice is preserved. 10527 10528# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 10529# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 10530# `$srcdir', `$srcdir/..', or `$srcdir/../..'. 10531# 10532# Of course, Automake must honor this variable whenever it calls a 10533# tool from the auxiliary directory. The problem is that $srcdir (and 10534# therefore $ac_aux_dir as well) can be either absolute or relative, 10535# depending on how configure is run. This is pretty annoying, since 10536# it makes $ac_aux_dir quite unusable in subdirectories: in the top 10537# source directory, any form will work fine, but in subdirectories a 10538# relative path needs to be adjusted first. 10539# 10540# $ac_aux_dir/missing 10541# fails when called from a subdirectory if $ac_aux_dir is relative 10542# $top_srcdir/$ac_aux_dir/missing 10543# fails if $ac_aux_dir is absolute, 10544# fails when called from a subdirectory in a VPATH build with 10545# a relative $ac_aux_dir 10546# 10547# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 10548# are both prefixed by $srcdir. In an in-source build this is usually 10549# harmless because $srcdir is `.', but things will broke when you 10550# start a VPATH build or use an absolute $srcdir. 10551# 10552# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 10553# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 10554# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 10555# and then we would define $MISSING as 10556# MISSING="\${SHELL} $am_aux_dir/missing" 10557# This will work as long as MISSING is not called from configure, because 10558# unfortunately $(top_srcdir) has no meaning in configure. 10559# However there are other variables, like CC, which are often used in 10560# configure, and could therefore not use this "fixed" $ac_aux_dir. 10561# 10562# Another solution, used here, is to always expand $ac_aux_dir to an 10563# absolute PATH. The drawback is that using absolute paths prevent a 10564# configured tree to be moved without reconfiguration. 10565 10566AC_DEFUN([AM_AUX_DIR_EXPAND], 10567[dnl Rely on autoconf to set up CDPATH properly. 10568AC_PREREQ([2.50])dnl 10569# expand $ac_aux_dir to an absolute path 10570am_aux_dir=`cd $ac_aux_dir && pwd` 10571]) 10572 10573# AM_CONDITIONAL -*- Autoconf -*- 10574 10575# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 10576# Free Software Foundation, Inc. 10577# 10578# This file is free software; the Free Software Foundation 10579# gives unlimited permission to copy and/or distribute it, 10580# with or without modifications, as long as this notice is preserved. 10581 10582# serial 9 10583 10584# AM_CONDITIONAL(NAME, SHELL-CONDITION) 10585# ------------------------------------- 10586# Define a conditional. 10587AC_DEFUN([AM_CONDITIONAL], 10588[AC_PREREQ(2.52)dnl 10589 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 10590 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 10591AC_SUBST([$1_TRUE])dnl 10592AC_SUBST([$1_FALSE])dnl 10593_AM_SUBST_NOTMAKE([$1_TRUE])dnl 10594_AM_SUBST_NOTMAKE([$1_FALSE])dnl 10595m4_define([_AM_COND_VALUE_$1], [$2])dnl 10596if $2; then 10597 $1_TRUE= 10598 $1_FALSE='#' 10599else 10600 $1_TRUE='#' 10601 $1_FALSE= 10602fi 10603AC_CONFIG_COMMANDS_PRE( 10604[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 10605 AC_MSG_ERROR([[conditional "$1" was never defined. 10606Usually this means the macro was only invoked conditionally.]]) 10607fi])]) 10608 10609# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 10610# Free Software Foundation, Inc. 10611# 10612# This file is free software; the Free Software Foundation 10613# gives unlimited permission to copy and/or distribute it, 10614# with or without modifications, as long as this notice is preserved. 10615 10616# serial 10 10617 10618# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 10619# written in clear, in which case automake, when reading aclocal.m4, 10620# will think it sees a *use*, and therefore will trigger all it's 10621# C support machinery. Also note that it means that autoscan, seeing 10622# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 10623 10624 10625# _AM_DEPENDENCIES(NAME) 10626# ---------------------- 10627# See how the compiler implements dependency checking. 10628# NAME is "CC", "CXX", "GCJ", or "OBJC". 10629# We try a few techniques and use that to set a single cache variable. 10630# 10631# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 10632# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 10633# dependency, and given that the user is not expected to run this macro, 10634# just rely on AC_PROG_CC. 10635AC_DEFUN([_AM_DEPENDENCIES], 10636[AC_REQUIRE([AM_SET_DEPDIR])dnl 10637AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 10638AC_REQUIRE([AM_MAKE_INCLUDE])dnl 10639AC_REQUIRE([AM_DEP_TRACK])dnl 10640 10641ifelse([$1], CC, [depcc="$CC" am_compiler_list=], 10642 [$1], CXX, [depcc="$CXX" am_compiler_list=], 10643 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 10644 [$1], UPC, [depcc="$UPC" am_compiler_list=], 10645 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 10646 [depcc="$$1" am_compiler_list=]) 10647 10648AC_CACHE_CHECK([dependency style of $depcc], 10649 [am_cv_$1_dependencies_compiler_type], 10650[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 10651 # We make a subdir and do the tests there. Otherwise we can end up 10652 # making bogus files that we don't know about and never remove. For 10653 # instance it was reported that on HP-UX the gcc test will end up 10654 # making a dummy file named `D' -- because `-MD' means `put the output 10655 # in D'. 10656 mkdir conftest.dir 10657 # Copy depcomp to subdir because otherwise we won't find it if we're 10658 # using a relative directory. 10659 cp "$am_depcomp" conftest.dir 10660 cd conftest.dir 10661 # We will build objects and dependencies in a subdirectory because 10662 # it helps to detect inapplicable dependency modes. For instance 10663 # both Tru64's cc and ICC support -MD to output dependencies as a 10664 # side effect of compilation, but ICC will put the dependencies in 10665 # the current directory while Tru64 will put them in the object 10666 # directory. 10667 mkdir sub 10668 10669 am_cv_$1_dependencies_compiler_type=none 10670 if test "$am_compiler_list" = ""; then 10671 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 10672 fi 10673 am__universal=false 10674 m4_case([$1], [CC], 10675 [case " $depcc " in #( 10676 *\ -arch\ *\ -arch\ *) am__universal=true ;; 10677 esac], 10678 [CXX], 10679 [case " $depcc " in #( 10680 *\ -arch\ *\ -arch\ *) am__universal=true ;; 10681 esac]) 10682 10683 for depmode in $am_compiler_list; do 10684 # Setup a source with many dependencies, because some compilers 10685 # like to wrap large dependency lists on column 80 (with \), and 10686 # we should not choose a depcomp mode which is confused by this. 10687 # 10688 # We need to recreate these files for each test, as the compiler may 10689 # overwrite some of them when testing with obscure command lines. 10690 # This happens at least with the AIX C compiler. 10691 : > sub/conftest.c 10692 for i in 1 2 3 4 5 6; do 10693 echo '#include "conftst'$i'.h"' >> sub/conftest.c 10694 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 10695 # Solaris 8's {/usr,}/bin/sh. 10696 touch sub/conftst$i.h 10697 done 10698 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 10699 10700 # We check with `-c' and `-o' for the sake of the "dashmstdout" 10701 # mode. It turns out that the SunPro C++ compiler does not properly 10702 # handle `-M -o', and we need to detect this. Also, some Intel 10703 # versions had trouble with output in subdirs 10704 am__obj=sub/conftest.${OBJEXT-o} 10705 am__minus_obj="-o $am__obj" 10706 case $depmode in 10707 gcc) 10708 # This depmode causes a compiler race in universal mode. 10709 test "$am__universal" = false || continue 10710 ;; 10711 nosideeffect) 10712 # after this tag, mechanisms are not by side-effect, so they'll 10713 # only be used when explicitly requested 10714 if test "x$enable_dependency_tracking" = xyes; then 10715 continue 10716 else 10717 break 10718 fi 10719 ;; 10720 msvisualcpp | msvcmsys) 10721 # This compiler won't grok `-c -o', but also, the minuso test has 10722 # not run yet. These depmodes are late enough in the game, and 10723 # so weak that their functioning should not be impacted. 10724 am__obj=conftest.${OBJEXT-o} 10725 am__minus_obj= 10726 ;; 10727 none) break ;; 10728 esac 10729 if depmode=$depmode \ 10730 source=sub/conftest.c object=$am__obj \ 10731 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 10732 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 10733 >/dev/null 2>conftest.err && 10734 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 10735 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 10736 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 10737 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 10738 # icc doesn't choke on unknown options, it will just issue warnings 10739 # or remarks (even with -Werror). So we grep stderr for any message 10740 # that says an option was ignored or not supported. 10741 # When given -MP, icc 7.0 and 7.1 complain thusly: 10742 # icc: Command line warning: ignoring option '-M'; no argument required 10743 # The diagnosis changed in icc 8.0: 10744 # icc: Command line remark: option '-MP' not supported 10745 if (grep 'ignoring option' conftest.err || 10746 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 10747 am_cv_$1_dependencies_compiler_type=$depmode 10748 break 10749 fi 10750 fi 10751 done 10752 10753 cd .. 10754 rm -rf conftest.dir 10755else 10756 am_cv_$1_dependencies_compiler_type=none 10757fi 10758]) 10759AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 10760AM_CONDITIONAL([am__fastdep$1], [ 10761 test "x$enable_dependency_tracking" != xno \ 10762 && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 10763]) 10764 10765 10766# AM_SET_DEPDIR 10767# ------------- 10768# Choose a directory name for dependency files. 10769# This macro is AC_REQUIREd in _AM_DEPENDENCIES 10770AC_DEFUN([AM_SET_DEPDIR], 10771[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 10772AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 10773]) 10774 10775 10776# AM_DEP_TRACK 10777# ------------ 10778AC_DEFUN([AM_DEP_TRACK], 10779[AC_ARG_ENABLE(dependency-tracking, 10780[ --disable-dependency-tracking speeds up one-time build 10781 --enable-dependency-tracking do not reject slow dependency extractors]) 10782if test "x$enable_dependency_tracking" != xno; then 10783 am_depcomp="$ac_aux_dir/depcomp" 10784 AMDEPBACKSLASH='\' 10785fi 10786AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 10787AC_SUBST([AMDEPBACKSLASH])dnl 10788_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 10789]) 10790 10791# Generate code to set up dependency tracking. -*- Autoconf -*- 10792 10793# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 10794# Free Software Foundation, Inc. 10795# 10796# This file is free software; the Free Software Foundation 10797# gives unlimited permission to copy and/or distribute it, 10798# with or without modifications, as long as this notice is preserved. 10799 10800#serial 5 10801 10802# _AM_OUTPUT_DEPENDENCY_COMMANDS 10803# ------------------------------ 10804AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 10805[{ 10806 # Autoconf 2.62 quotes --file arguments for eval, but not when files 10807 # are listed without --file. Let's play safe and only enable the eval 10808 # if we detect the quoting. 10809 case $CONFIG_FILES in 10810 *\'*) eval set x "$CONFIG_FILES" ;; 10811 *) set x $CONFIG_FILES ;; 10812 esac 10813 shift 10814 for mf 10815 do 10816 # Strip MF so we end up with the name of the file. 10817 mf=`echo "$mf" | sed -e 's/:.*$//'` 10818 # Check whether this is an Automake generated Makefile or not. 10819 # We used to match only the files named `Makefile.in', but 10820 # some people rename them; so instead we look at the file content. 10821 # Grep'ing the first line is not enough: some people post-process 10822 # each Makefile.in and add a new line on top of each file to say so. 10823 # Grep'ing the whole file is not good either: AIX grep has a line 10824 # limit of 2048, but all sed's we know have understand at least 4000. 10825 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 10826 dirpart=`AS_DIRNAME("$mf")` 10827 else 10828 continue 10829 fi 10830 # Extract the definition of DEPDIR, am__include, and am__quote 10831 # from the Makefile without running `make'. 10832 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 10833 test -z "$DEPDIR" && continue 10834 am__include=`sed -n 's/^am__include = //p' < "$mf"` 10835 test -z "am__include" && continue 10836 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 10837 # When using ansi2knr, U may be empty or an underscore; expand it 10838 U=`sed -n 's/^U = //p' < "$mf"` 10839 # Find all dependency output files, they are included files with 10840 # $(DEPDIR) in their names. We invoke sed twice because it is the 10841 # simplest approach to changing $(DEPDIR) to its actual value in the 10842 # expansion. 10843 for file in `sed -n " 10844 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 10845 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 10846 # Make sure the directory exists. 10847 test -f "$dirpart/$file" && continue 10848 fdir=`AS_DIRNAME(["$file"])` 10849 AS_MKDIR_P([$dirpart/$fdir]) 10850 # echo "creating $dirpart/$file" 10851 echo '# dummy' > "$dirpart/$file" 10852 done 10853 done 10854} 10855])# _AM_OUTPUT_DEPENDENCY_COMMANDS 10856 10857 10858# AM_OUTPUT_DEPENDENCY_COMMANDS 10859# ----------------------------- 10860# This macro should only be invoked once -- use via AC_REQUIRE. 10861# 10862# This code is only required when automatic dependency tracking 10863# is enabled. FIXME. This creates each `.P' file that we will 10864# need in order to bootstrap the dependency handling code. 10865AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 10866[AC_CONFIG_COMMANDS([depfiles], 10867 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 10868 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 10869]) 10870 10871# Do all the work for Automake. -*- Autoconf -*- 10872 10873# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 10874# 2005, 2006, 2008, 2009 Free Software Foundation, Inc. 10875# 10876# This file is free software; the Free Software Foundation 10877# gives unlimited permission to copy and/or distribute it, 10878# with or without modifications, as long as this notice is preserved. 10879 10880# serial 16 10881 10882# This macro actually does too much. Some checks are only needed if 10883# your package does certain things. But this isn't really a big deal. 10884 10885# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 10886# AM_INIT_AUTOMAKE([OPTIONS]) 10887# ----------------------------------------------- 10888# The call with PACKAGE and VERSION arguments is the old style 10889# call (pre autoconf-2.50), which is being phased out. PACKAGE 10890# and VERSION should now be passed to AC_INIT and removed from 10891# the call to AM_INIT_AUTOMAKE. 10892# We support both call styles for the transition. After 10893# the next Automake release, Autoconf can make the AC_INIT 10894# arguments mandatory, and then we can depend on a new Autoconf 10895# release and drop the old call support. 10896AC_DEFUN([AM_INIT_AUTOMAKE], 10897[AC_PREREQ([2.62])dnl 10898dnl Autoconf wants to disallow AM_ names. We explicitly allow 10899dnl the ones we care about. 10900m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 10901AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 10902AC_REQUIRE([AC_PROG_INSTALL])dnl 10903if test "`cd $srcdir && pwd`" != "`pwd`"; then 10904 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 10905 # is not polluted with repeated "-I." 10906 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 10907 # test to see if srcdir already configured 10908 if test -f $srcdir/config.status; then 10909 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 10910 fi 10911fi 10912 10913# test whether we have cygpath 10914if test -z "$CYGPATH_W"; then 10915 if (cygpath --version) >/dev/null 2>/dev/null; then 10916 CYGPATH_W='cygpath -w' 10917 else 10918 CYGPATH_W=echo 10919 fi 10920fi 10921AC_SUBST([CYGPATH_W]) 10922 10923# Define the identity of the package. 10924dnl Distinguish between old-style and new-style calls. 10925m4_ifval([$2], 10926[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 10927 AC_SUBST([PACKAGE], [$1])dnl 10928 AC_SUBST([VERSION], [$2])], 10929[_AM_SET_OPTIONS([$1])dnl 10930dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 10931m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, 10932 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 10933 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 10934 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 10935 10936_AM_IF_OPTION([no-define],, 10937[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 10938 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl 10939 10940# Some tools Automake needs. 10941AC_REQUIRE([AM_SANITY_CHECK])dnl 10942AC_REQUIRE([AC_ARG_PROGRAM])dnl 10943AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) 10944AM_MISSING_PROG(AUTOCONF, autoconf) 10945AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) 10946AM_MISSING_PROG(AUTOHEADER, autoheader) 10947AM_MISSING_PROG(MAKEINFO, makeinfo) 10948AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 10949AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl 10950AC_REQUIRE([AM_PROG_MKDIR_P])dnl 10951# We need awk for the "check" target. The system "awk" is bad on 10952# some platforms. 10953AC_REQUIRE([AC_PROG_AWK])dnl 10954AC_REQUIRE([AC_PROG_MAKE_SET])dnl 10955AC_REQUIRE([AM_SET_LEADING_DOT])dnl 10956_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 10957 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 10958 [_AM_PROG_TAR([v7])])]) 10959_AM_IF_OPTION([no-dependencies],, 10960[AC_PROVIDE_IFELSE([AC_PROG_CC], 10961 [_AM_DEPENDENCIES(CC)], 10962 [define([AC_PROG_CC], 10963 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl 10964AC_PROVIDE_IFELSE([AC_PROG_CXX], 10965 [_AM_DEPENDENCIES(CXX)], 10966 [define([AC_PROG_CXX], 10967 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl 10968AC_PROVIDE_IFELSE([AC_PROG_OBJC], 10969 [_AM_DEPENDENCIES(OBJC)], 10970 [define([AC_PROG_OBJC], 10971 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl 10972]) 10973_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl 10974dnl The `parallel-tests' driver may need to know about EXEEXT, so add the 10975dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro 10976dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. 10977AC_CONFIG_COMMANDS_PRE(dnl 10978[m4_provide_if([_AM_COMPILER_EXEEXT], 10979 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl 10980]) 10981 10982dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not 10983dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further 10984dnl mangled by Autoconf and run in a shell conditional statement. 10985m4_define([_AC_COMPILER_EXEEXT], 10986m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) 10987 10988 10989# When config.status generates a header, we must update the stamp-h file. 10990# This file resides in the same directory as the config header 10991# that is generated. The stamp files are numbered to have different names. 10992 10993# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 10994# loop where config.status creates the headers, so we can generate 10995# our stamp files there. 10996AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 10997[# Compute $1's index in $config_headers. 10998_am_arg=$1 10999_am_stamp_count=1 11000for _am_header in $config_headers :; do 11001 case $_am_header in 11002 $_am_arg | $_am_arg:* ) 11003 break ;; 11004 * ) 11005 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 11006 esac 11007done 11008echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 11009 11010# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. 11011# 11012# This file is free software; the Free Software Foundation 11013# gives unlimited permission to copy and/or distribute it, 11014# with or without modifications, as long as this notice is preserved. 11015 11016# AM_PROG_INSTALL_SH 11017# ------------------ 11018# Define $install_sh. 11019AC_DEFUN([AM_PROG_INSTALL_SH], 11020[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 11021if test x"${install_sh}" != xset; then 11022 case $am_aux_dir in 11023 *\ * | *\ *) 11024 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 11025 *) 11026 install_sh="\${SHELL} $am_aux_dir/install-sh" 11027 esac 11028fi 11029AC_SUBST(install_sh)]) 11030 11031# Copyright (C) 2003, 2005 Free Software Foundation, Inc. 11032# 11033# This file is free software; the Free Software Foundation 11034# gives unlimited permission to copy and/or distribute it, 11035# with or without modifications, as long as this notice is preserved. 11036 11037# serial 2 11038 11039# Check whether the underlying file-system supports filenames 11040# with a leading dot. For instance MS-DOS doesn't. 11041AC_DEFUN([AM_SET_LEADING_DOT], 11042[rm -rf .tst 2>/dev/null 11043mkdir .tst 2>/dev/null 11044if test -d .tst; then 11045 am__leading_dot=. 11046else 11047 am__leading_dot=_ 11048fi 11049rmdir .tst 2>/dev/null 11050AC_SUBST([am__leading_dot])]) 11051 11052# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- 11053# From Jim Meyering 11054 11055# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008 11056# Free Software Foundation, Inc. 11057# 11058# This file is free software; the Free Software Foundation 11059# gives unlimited permission to copy and/or distribute it, 11060# with or without modifications, as long as this notice is preserved. 11061 11062# serial 5 11063 11064# AM_MAINTAINER_MODE([DEFAULT-MODE]) 11065# ---------------------------------- 11066# Control maintainer-specific portions of Makefiles. 11067# Default is to disable them, unless `enable' is passed literally. 11068# For symmetry, `disable' may be passed as well. Anyway, the user 11069# can override the default with the --enable/--disable switch. 11070AC_DEFUN([AM_MAINTAINER_MODE], 11071[m4_case(m4_default([$1], [disable]), 11072 [enable], [m4_define([am_maintainer_other], [disable])], 11073 [disable], [m4_define([am_maintainer_other], [enable])], 11074 [m4_define([am_maintainer_other], [enable]) 11075 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) 11076AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles]) 11077 dnl maintainer-mode's default is 'disable' unless 'enable' is passed 11078 AC_ARG_ENABLE([maintainer-mode], 11079[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful 11080 (and sometimes confusing) to the casual installer], 11081 [USE_MAINTAINER_MODE=$enableval], 11082 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) 11083 AC_MSG_RESULT([$USE_MAINTAINER_MODE]) 11084 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) 11085 MAINT=$MAINTAINER_MODE_TRUE 11086 AC_SUBST([MAINT])dnl 11087] 11088) 11089 11090AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) 11091 11092# Check to see how 'make' treats includes. -*- Autoconf -*- 11093 11094# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. 11095# 11096# This file is free software; the Free Software Foundation 11097# gives unlimited permission to copy and/or distribute it, 11098# with or without modifications, as long as this notice is preserved. 11099 11100# serial 4 11101 11102# AM_MAKE_INCLUDE() 11103# ----------------- 11104# Check to see how make treats includes. 11105AC_DEFUN([AM_MAKE_INCLUDE], 11106[am_make=${MAKE-make} 11107cat > confinc << 'END' 11108am__doit: 11109 @echo this is the am__doit target 11110.PHONY: am__doit 11111END 11112# If we don't find an include directive, just comment out the code. 11113AC_MSG_CHECKING([for style of include used by $am_make]) 11114am__include="#" 11115am__quote= 11116_am_result=none 11117# First try GNU make style include. 11118echo "include confinc" > confmf 11119# Ignore all kinds of additional output from `make'. 11120case `$am_make -s -f confmf 2> /dev/null` in #( 11121*the\ am__doit\ target*) 11122 am__include=include 11123 am__quote= 11124 _am_result=GNU 11125 ;; 11126esac 11127# Now try BSD make style include. 11128if test "$am__include" = "#"; then 11129 echo '.include "confinc"' > confmf 11130 case `$am_make -s -f confmf 2> /dev/null` in #( 11131 *the\ am__doit\ target*) 11132 am__include=.include 11133 am__quote="\"" 11134 _am_result=BSD 11135 ;; 11136 esac 11137fi 11138AC_SUBST([am__include]) 11139AC_SUBST([am__quote]) 11140AC_MSG_RESULT([$_am_result]) 11141rm -f confinc confmf 11142]) 11143 11144# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 11145 11146# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 11147# Free Software Foundation, Inc. 11148# 11149# This file is free software; the Free Software Foundation 11150# gives unlimited permission to copy and/or distribute it, 11151# with or without modifications, as long as this notice is preserved. 11152 11153# serial 6 11154 11155# AM_MISSING_PROG(NAME, PROGRAM) 11156# ------------------------------ 11157AC_DEFUN([AM_MISSING_PROG], 11158[AC_REQUIRE([AM_MISSING_HAS_RUN]) 11159$1=${$1-"${am_missing_run}$2"} 11160AC_SUBST($1)]) 11161 11162 11163# AM_MISSING_HAS_RUN 11164# ------------------ 11165# Define MISSING if not defined so far and test if it supports --run. 11166# If it does, set am_missing_run to use it, otherwise, to nothing. 11167AC_DEFUN([AM_MISSING_HAS_RUN], 11168[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 11169AC_REQUIRE_AUX_FILE([missing])dnl 11170if test x"${MISSING+set}" != xset; then 11171 case $am_aux_dir in 11172 *\ * | *\ *) 11173 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 11174 *) 11175 MISSING="\${SHELL} $am_aux_dir/missing" ;; 11176 esac 11177fi 11178# Use eval to expand $SHELL 11179if eval "$MISSING --run true"; then 11180 am_missing_run="$MISSING --run " 11181else 11182 am_missing_run= 11183 AC_MSG_WARN([`missing' script is too old or missing]) 11184fi 11185]) 11186 11187# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 11188# 11189# This file is free software; the Free Software Foundation 11190# gives unlimited permission to copy and/or distribute it, 11191# with or without modifications, as long as this notice is preserved. 11192 11193# AM_PROG_MKDIR_P 11194# --------------- 11195# Check for `mkdir -p'. 11196AC_DEFUN([AM_PROG_MKDIR_P], 11197[AC_PREREQ([2.60])dnl 11198AC_REQUIRE([AC_PROG_MKDIR_P])dnl 11199dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, 11200dnl while keeping a definition of mkdir_p for backward compatibility. 11201dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. 11202dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of 11203dnl Makefile.ins that do not define MKDIR_P, so we do our own 11204dnl adjustment using top_builddir (which is defined more often than 11205dnl MKDIR_P). 11206AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl 11207case $mkdir_p in 11208 [[\\/$]]* | ?:[[\\/]]*) ;; 11209 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 11210esac 11211]) 11212 11213# Helper functions for option handling. -*- Autoconf -*- 11214 11215# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. 11216# 11217# This file is free software; the Free Software Foundation 11218# gives unlimited permission to copy and/or distribute it, 11219# with or without modifications, as long as this notice is preserved. 11220 11221# serial 4 11222 11223# _AM_MANGLE_OPTION(NAME) 11224# ----------------------- 11225AC_DEFUN([_AM_MANGLE_OPTION], 11226[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 11227 11228# _AM_SET_OPTION(NAME) 11229# ------------------------------ 11230# Set option NAME. Presently that only means defining a flag for this option. 11231AC_DEFUN([_AM_SET_OPTION], 11232[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) 11233 11234# _AM_SET_OPTIONS(OPTIONS) 11235# ---------------------------------- 11236# OPTIONS is a space-separated list of Automake options. 11237AC_DEFUN([_AM_SET_OPTIONS], 11238[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 11239 11240# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 11241# ------------------------------------------- 11242# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 11243AC_DEFUN([_AM_IF_OPTION], 11244[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 11245 11246# Check to make sure that the build environment is sane. -*- Autoconf -*- 11247 11248# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 11249# Free Software Foundation, Inc. 11250# 11251# This file is free software; the Free Software Foundation 11252# gives unlimited permission to copy and/or distribute it, 11253# with or without modifications, as long as this notice is preserved. 11254 11255# serial 5 11256 11257# AM_SANITY_CHECK 11258# --------------- 11259AC_DEFUN([AM_SANITY_CHECK], 11260[AC_MSG_CHECKING([whether build environment is sane]) 11261# Just in case 11262sleep 1 11263echo timestamp > conftest.file 11264# Reject unsafe characters in $srcdir or the absolute working directory 11265# name. Accept space and tab only in the latter. 11266am_lf=' 11267' 11268case `pwd` in 11269 *[[\\\"\#\$\&\'\`$am_lf]]*) 11270 AC_MSG_ERROR([unsafe absolute working directory name]);; 11271esac 11272case $srcdir in 11273 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) 11274 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; 11275esac 11276 11277# Do `set' in a subshell so we don't clobber the current shell's 11278# arguments. Must try -L first in case configure is actually a 11279# symlink; some systems play weird games with the mod time of symlinks 11280# (eg FreeBSD returns the mod time of the symlink's containing 11281# directory). 11282if ( 11283 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 11284 if test "$[*]" = "X"; then 11285 # -L didn't work. 11286 set X `ls -t "$srcdir/configure" conftest.file` 11287 fi 11288 rm -f conftest.file 11289 if test "$[*]" != "X $srcdir/configure conftest.file" \ 11290 && test "$[*]" != "X conftest.file $srcdir/configure"; then 11291 11292 # If neither matched, then we have a broken ls. This can happen 11293 # if, for instance, CONFIG_SHELL is bash and it inherits a 11294 # broken ls alias from the environment. This has actually 11295 # happened. Such a system could not be considered "sane". 11296 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 11297alias in your environment]) 11298 fi 11299 11300 test "$[2]" = conftest.file 11301 ) 11302then 11303 # Ok. 11304 : 11305else 11306 AC_MSG_ERROR([newly created file is older than distributed files! 11307Check your system clock]) 11308fi 11309AC_MSG_RESULT(yes)]) 11310 11311# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 11312# 11313# This file is free software; the Free Software Foundation 11314# gives unlimited permission to copy and/or distribute it, 11315# with or without modifications, as long as this notice is preserved. 11316 11317# AM_PROG_INSTALL_STRIP 11318# --------------------- 11319# One issue with vendor `install' (even GNU) is that you can't 11320# specify the program used to strip binaries. This is especially 11321# annoying in cross-compiling environments, where the build's strip 11322# is unlikely to handle the host's binaries. 11323# Fortunately install-sh will honor a STRIPPROG variable, so we 11324# always use install-sh in `make install-strip', and initialize 11325# STRIPPROG with the value of the STRIP variable (set by the user). 11326AC_DEFUN([AM_PROG_INSTALL_STRIP], 11327[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 11328# Installed binaries are usually stripped using `strip' when the user 11329# run `make install-strip'. However `strip' might not be the right 11330# tool to use in cross-compilation environments, therefore Automake 11331# will honor the `STRIP' environment variable to overrule this program. 11332dnl Don't test for $cross_compiling = yes, because it might be `maybe'. 11333if test "$cross_compiling" != no; then 11334 AC_CHECK_TOOL([STRIP], [strip], :) 11335fi 11336INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 11337AC_SUBST([INSTALL_STRIP_PROGRAM])]) 11338 11339# Copyright (C) 2006, 2008 Free Software Foundation, Inc. 11340# 11341# This file is free software; the Free Software Foundation 11342# gives unlimited permission to copy and/or distribute it, 11343# with or without modifications, as long as this notice is preserved. 11344 11345# serial 2 11346 11347# _AM_SUBST_NOTMAKE(VARIABLE) 11348# --------------------------- 11349# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 11350# This macro is traced by Automake. 11351AC_DEFUN([_AM_SUBST_NOTMAKE]) 11352 11353# AM_SUBST_NOTMAKE(VARIABLE) 11354# --------------------------- 11355# Public sister of _AM_SUBST_NOTMAKE. 11356AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) 11357 11358# Check how to create a tarball. -*- Autoconf -*- 11359 11360# Copyright (C) 2004, 2005 Free Software Foundation, Inc. 11361# 11362# This file is free software; the Free Software Foundation 11363# gives unlimited permission to copy and/or distribute it, 11364# with or without modifications, as long as this notice is preserved. 11365 11366# serial 2 11367 11368# _AM_PROG_TAR(FORMAT) 11369# -------------------- 11370# Check how to create a tarball in format FORMAT. 11371# FORMAT should be one of `v7', `ustar', or `pax'. 11372# 11373# Substitute a variable $(am__tar) that is a command 11374# writing to stdout a FORMAT-tarball containing the directory 11375# $tardir. 11376# tardir=directory && $(am__tar) > result.tar 11377# 11378# Substitute a variable $(am__untar) that extract such 11379# a tarball read from stdin. 11380# $(am__untar) < result.tar 11381AC_DEFUN([_AM_PROG_TAR], 11382[# Always define AMTAR for backward compatibility. 11383AM_MISSING_PROG([AMTAR], [tar]) 11384m4_if([$1], [v7], 11385 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], 11386 [m4_case([$1], [ustar],, [pax],, 11387 [m4_fatal([Unknown tar format])]) 11388AC_MSG_CHECKING([how to create a $1 tar archive]) 11389# Loop over all known methods to create a tar archive until one works. 11390_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 11391_am_tools=${am_cv_prog_tar_$1-$_am_tools} 11392# Do not fold the above two line into one, because Tru64 sh and 11393# Solaris sh will not grok spaces in the rhs of `-'. 11394for _am_tool in $_am_tools 11395do 11396 case $_am_tool in 11397 gnutar) 11398 for _am_tar in tar gnutar gtar; 11399 do 11400 AM_RUN_LOG([$_am_tar --version]) && break 11401 done 11402 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 11403 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 11404 am__untar="$_am_tar -xf -" 11405 ;; 11406 plaintar) 11407 # Must skip GNU tar: if it does not support --format= it doesn't create 11408 # ustar tarball either. 11409 (tar --version) >/dev/null 2>&1 && continue 11410 am__tar='tar chf - "$$tardir"' 11411 am__tar_='tar chf - "$tardir"' 11412 am__untar='tar xf -' 11413 ;; 11414 pax) 11415 am__tar='pax -L -x $1 -w "$$tardir"' 11416 am__tar_='pax -L -x $1 -w "$tardir"' 11417 am__untar='pax -r' 11418 ;; 11419 cpio) 11420 am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 11421 am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 11422 am__untar='cpio -i -H $1 -d' 11423 ;; 11424 none) 11425 am__tar=false 11426 am__tar_=false 11427 am__untar=false 11428 ;; 11429 esac 11430 11431 # If the value was cached, stop now. We just wanted to have am__tar 11432 # and am__untar set. 11433 test -n "${am_cv_prog_tar_$1}" && break 11434 11435 # tar/untar a dummy directory, and stop if the command works 11436 rm -rf conftest.dir 11437 mkdir conftest.dir 11438 echo GrepMe > conftest.dir/file 11439 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 11440 rm -rf conftest.dir 11441 if test -s conftest.tar; then 11442 AM_RUN_LOG([$am__untar <conftest.tar]) 11443 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 11444 fi 11445done 11446rm -rf conftest.dir 11447 11448AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 11449AC_MSG_RESULT([$am_cv_prog_tar_$1])]) 11450AC_SUBST([am__tar]) 11451AC_SUBST([am__untar]) 11452]) # _AM_PROG_TAR 11453 11454