Mercurial > sdl-ios-xcode
comparison acinclude.m4 @ 3085:4800979de337
Updated libtool from version 1.5.22 to 2.2.6a, so it works on current QNX
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 04 Mar 2009 08:57:30 +0000 |
parents | 7e30c2dc7783 |
children |
comparison
equal
deleted
inserted
replaced
3084:fb256fee28d8 | 3085:4800979de337 |
---|---|
327 AC_SUBST(ESD_LIBS) | 327 AC_SUBST(ESD_LIBS) |
328 rm -f conf.esdtest | 328 rm -f conf.esdtest |
329 ]) | 329 ]) |
330 | 330 |
331 ############################################################################## | 331 ############################################################################## |
332 # Based on libtool-1.5.22 | 332 # Based on libtool-2.2.6a |
333 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- | 333 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
334 ## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005 | 334 # |
335 ## Free Software Foundation, Inc. | 335 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
336 ## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | 336 # 2006, 2007, 2008 Free Software Foundation, Inc. |
337 ## | 337 # Written by Gordon Matzigkeit, 1996 |
338 ## This file is free software; the Free Software Foundation gives | 338 # |
339 ## unlimited permission to copy and/or distribute it, with or without | 339 # This file is free software; the Free Software Foundation gives |
340 ## modifications, as long as this notice is preserved. | 340 # unlimited permission to copy and/or distribute it, with or without |
341 | 341 # modifications, as long as this notice is preserved. |
342 # serial 48 AC_PROG_LIBTOOL | 342 |
343 | 343 m4_define([_LT_COPYING], [dnl |
344 | 344 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
345 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) | 345 # 2006, 2007, 2008 Free Software Foundation, Inc. |
346 # ----------------------------------------------------------- | 346 # Written by Gordon Matzigkeit, 1996 |
347 # If this macro is not defined by Autoconf, define it here. | 347 # |
348 m4_ifdef([AC_PROVIDE_IFELSE], | 348 # This file is part of GNU Libtool. |
349 [], | 349 # |
350 [m4_define([AC_PROVIDE_IFELSE], | 350 # GNU Libtool is free software; you can redistribute it and/or |
351 [m4_ifdef([AC_PROVIDE_$1], | 351 # modify it under the terms of the GNU General Public License as |
352 [$2], [$3])])]) | 352 # published by the Free Software Foundation; either version 2 of |
353 | 353 # the License, or (at your option) any later version. |
354 | 354 # |
355 # AC_PROG_LIBTOOL | 355 # As a special exception to the GNU General Public License, |
356 # --------------- | 356 # if you distribute this file as part of a program or library that |
357 AC_DEFUN([AC_PROG_LIBTOOL], | 357 # is built using GNU Libtool, you may include this file under the |
358 [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl | 358 # same distribution terms that you use for the rest of that program. |
359 dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX | 359 # |
360 dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. | 360 # GNU Libtool is distributed in the hope that it will be useful, |
361 AC_PROVIDE_IFELSE([AC_PROG_CXX], | 361 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
362 [AC_LIBTOOL_CXX], | 362 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
363 [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX | 363 # GNU General Public License for more details. |
364 ])]) | 364 # |
365 dnl And a similar setup for Fortran 77 support | 365 # You should have received a copy of the GNU General Public License |
366 AC_PROVIDE_IFELSE([AC_PROG_F77], | 366 # along with GNU Libtool; see the file COPYING. If not, a copy |
367 [AC_LIBTOOL_F77], | 367 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
368 [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 | 368 # obtained by writing to the Free Software Foundation, Inc., |
369 ])]) | 369 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
370 | 370 ]) |
371 dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. | 371 |
372 dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run | 372 # serial 56 LT_INIT |
373 dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. | 373 |
374 AC_PROVIDE_IFELSE([AC_PROG_GCJ], | 374 |
375 [AC_LIBTOOL_GCJ], | 375 # LT_PREREQ(VERSION) |
376 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], | 376 # ------------------ |
377 [AC_LIBTOOL_GCJ], | 377 # Complain and exit if this libtool version is less that VERSION. |
378 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], | 378 m4_defun([LT_PREREQ], |
379 [AC_LIBTOOL_GCJ], | 379 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, |
380 [ifdef([AC_PROG_GCJ], | 380 [m4_default([$3], |
381 [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) | 381 [m4_fatal([Libtool version $1 or higher is required], |
382 ifdef([A][M_PROG_GCJ], | 382 63)])], |
383 [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) | 383 [$2])]) |
384 ifdef([LT_AC_PROG_GCJ], | 384 |
385 [define([LT_AC_PROG_GCJ], | 385 |
386 defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) | 386 # _LT_CHECK_BUILDDIR |
387 ])])# AC_PROG_LIBTOOL | 387 # ------------------ |
388 | 388 # Complain if the absolute build directory name contains unusual characters |
389 | 389 m4_defun([_LT_CHECK_BUILDDIR], |
390 # _AC_PROG_LIBTOOL | 390 [case `pwd` in |
391 # ---------------- | 391 *\ * | *\ *) |
392 AC_DEFUN([_AC_PROG_LIBTOOL], | 392 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; |
393 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl | 393 esac |
394 AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl | 394 ]) |
395 AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl | 395 |
396 AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl | 396 |
397 # LT_INIT([OPTIONS]) | |
398 # ------------------ | |
399 AC_DEFUN([LT_INIT], | |
400 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT | |
401 AC_BEFORE([$0], [LT_LANG])dnl | |
402 AC_BEFORE([$0], [LT_OUTPUT])dnl | |
403 AC_BEFORE([$0], [LTDL_INIT])dnl | |
404 m4_require([_LT_CHECK_BUILDDIR])dnl | |
405 | |
406 dnl Autoconf doesn't catch unexpanded LT_ macros by default: | |
407 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl | |
408 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl | |
409 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 | |
410 dnl unless we require an AC_DEFUNed macro: | |
411 AC_REQUIRE([LTOPTIONS_VERSION])dnl | |
412 AC_REQUIRE([LTSUGAR_VERSION])dnl | |
413 AC_REQUIRE([LTVERSION_VERSION])dnl | |
414 AC_REQUIRE([LTOBSOLETE_VERSION])dnl | |
415 m4_require([_LT_PROG_LTMAIN])dnl | |
416 | |
417 dnl Parse OPTIONS | |
418 _LT_SET_OPTIONS([$0], [$1]) | |
397 | 419 |
398 # This can be used to rebuild libtool when needed | 420 # This can be used to rebuild libtool when needed |
399 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" | 421 LIBTOOL_DEPS="$ltmain" |
400 | 422 |
401 # Always use our own libtool. | 423 # Always use our own libtool. |
402 LIBTOOL='$(SHELL) $(top_builddir)/libtool' | 424 LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
403 AC_SUBST(LIBTOOL)dnl | 425 AC_SUBST(LIBTOOL)dnl |
404 | 426 |
405 # Prevent multiple expansion | 427 _LT_SETUP |
406 define([AC_PROG_LIBTOOL], []) | 428 |
407 ])# _AC_PROG_LIBTOOL | 429 # Only expand once: |
408 | 430 m4_define([LT_INIT]) |
409 | 431 ])# LT_INIT |
410 # AC_LIBTOOL_SETUP | 432 |
411 # ---------------- | 433 # Old names: |
412 AC_DEFUN([AC_LIBTOOL_SETUP], | 434 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) |
413 [AC_PREREQ(2.50)dnl | 435 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) |
414 AC_REQUIRE([AC_ENABLE_SHARED])dnl | 436 dnl aclocal-1.4 backwards compatibility: |
415 AC_REQUIRE([AC_ENABLE_STATIC])dnl | 437 dnl AC_DEFUN([AC_PROG_LIBTOOL], []) |
416 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl | 438 dnl AC_DEFUN([AM_PROG_LIBTOOL], []) |
417 AC_REQUIRE([AC_CANONICAL_HOST])dnl | 439 |
440 | |
441 # _LT_CC_BASENAME(CC) | |
442 # ------------------- | |
443 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
444 m4_defun([_LT_CC_BASENAME], | |
445 [for cc_temp in $1""; do | |
446 case $cc_temp in | |
447 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; | |
448 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; | |
449 \-*) ;; | |
450 *) break;; | |
451 esac | |
452 done | |
453 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
454 ]) | |
455 | |
456 | |
457 # _LT_FILEUTILS_DEFAULTS | |
458 # ---------------------- | |
459 # It is okay to use these file commands and assume they have been set | |
460 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. | |
461 m4_defun([_LT_FILEUTILS_DEFAULTS], | |
462 [: ${CP="cp -f"} | |
463 : ${MV="mv -f"} | |
464 : ${RM="rm -f"} | |
465 ])# _LT_FILEUTILS_DEFAULTS | |
466 | |
467 | |
468 # _LT_SETUP | |
469 # --------- | |
470 m4_defun([_LT_SETUP], | |
471 [AC_REQUIRE([AC_CANONICAL_HOST])dnl | |
418 AC_REQUIRE([AC_CANONICAL_BUILD])dnl | 472 AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
473 _LT_DECL([], [host_alias], [0], [The host system])dnl | |
474 _LT_DECL([], [host], [0])dnl | |
475 _LT_DECL([], [host_os], [0])dnl | |
476 dnl | |
477 _LT_DECL([], [build_alias], [0], [The build system])dnl | |
478 _LT_DECL([], [build], [0])dnl | |
479 _LT_DECL([], [build_os], [0])dnl | |
480 dnl | |
419 AC_REQUIRE([AC_PROG_CC])dnl | 481 AC_REQUIRE([AC_PROG_CC])dnl |
420 AC_REQUIRE([AC_PROG_LD])dnl | 482 AC_REQUIRE([LT_PATH_LD])dnl |
421 AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl | 483 AC_REQUIRE([LT_PATH_NM])dnl |
422 AC_REQUIRE([AC_PROG_NM])dnl | 484 dnl |
423 | |
424 AC_REQUIRE([AC_PROG_LN_S])dnl | 485 AC_REQUIRE([AC_PROG_LN_S])dnl |
425 AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl | 486 test -z "$LN_S" && LN_S="ln -s" |
426 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | 487 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl |
427 AC_REQUIRE([AC_OBJEXT])dnl | |
428 AC_REQUIRE([AC_EXEEXT])dnl | |
429 dnl | 488 dnl |
430 | 489 AC_REQUIRE([LT_CMD_MAX_LEN])dnl |
431 AC_LIBTOOL_SYS_MAX_CMD_LEN | 490 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl |
432 AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE | 491 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl |
433 AC_LIBTOOL_OBJDIR | 492 dnl |
434 | 493 m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
435 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl | 494 m4_require([_LT_CHECK_SHELL_FEATURES])dnl |
436 _LT_AC_PROG_ECHO_BACKSLASH | 495 m4_require([_LT_CMD_RELOAD])dnl |
496 m4_require([_LT_CHECK_MAGIC_METHOD])dnl | |
497 m4_require([_LT_CMD_OLD_ARCHIVE])dnl | |
498 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl | |
499 | |
500 _LT_CONFIG_LIBTOOL_INIT([ | |
501 # See if we are running on zsh, and set the options which allow our | |
502 # commands through without removal of \ escapes INIT. | |
503 if test -n "\${ZSH_VERSION+set}" ; then | |
504 setopt NO_GLOB_SUBST | |
505 fi | |
506 ]) | |
507 if test -n "${ZSH_VERSION+set}" ; then | |
508 setopt NO_GLOB_SUBST | |
509 fi | |
510 | |
511 _LT_CHECK_OBJDIR | |
512 | |
513 m4_require([_LT_TAG_COMPILER])dnl | |
514 _LT_PROG_ECHO_BACKSLASH | |
437 | 515 |
438 case $host_os in | 516 case $host_os in |
439 aix3*) | 517 aix3*) |
440 # AIX sometimes has problems with the GCC collect2 program. For some | 518 # AIX sometimes has problems with the GCC collect2 program. For some |
441 # reason, if we set the COLLECT_NAMES environment variable, the problems | 519 # reason, if we set the COLLECT_NAMES environment variable, the problems |
447 ;; | 525 ;; |
448 esac | 526 esac |
449 | 527 |
450 # Sed substitution that helps us do robust quoting. It backslashifies | 528 # Sed substitution that helps us do robust quoting. It backslashifies |
451 # metacharacters that are still active within double-quoted strings. | 529 # metacharacters that are still active within double-quoted strings. |
452 Xsed='sed -e 1s/^X//' | 530 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' |
453 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] | |
454 | 531 |
455 # Same as above, but do not quote variable references. | 532 # Same as above, but do not quote variable references. |
456 [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] | 533 double_quote_subst='s/\([["`\\]]\)/\\\1/g' |
457 | 534 |
458 # Sed substitution to delay expansion of an escaped shell variable in a | 535 # Sed substitution to delay expansion of an escaped shell variable in a |
459 # double_quote_subst'ed string. | 536 # double_quote_subst'ed string. |
460 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | 537 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
461 | 538 |
539 # Sed substitution to delay expansion of an escaped single quote. | |
540 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
541 | |
462 # Sed substitution to avoid accidental globbing in evaled expressions | 542 # Sed substitution to avoid accidental globbing in evaled expressions |
463 no_glob_subst='s/\*/\\\*/g' | 543 no_glob_subst='s/\*/\\\*/g' |
464 | 544 |
465 # Constants: | |
466 rm="rm -f" | |
467 | |
468 # Global variables: | 545 # Global variables: |
469 default_ofile=libtool | 546 ofile=libtool |
470 can_build_shared=yes | 547 can_build_shared=yes |
471 | 548 |
472 # All known linkers require a `.a' archive for static linking (except MSVC, | 549 # All known linkers require a `.a' archive for static linking (except MSVC, |
473 # which needs '.lib'). | 550 # which needs '.lib'). |
474 libext=a | 551 libext=a |
475 ltmain="$ac_aux_dir/ltmain.sh" | 552 |
476 ofile="$default_ofile" | |
477 with_gnu_ld="$lt_cv_prog_gnu_ld" | 553 with_gnu_ld="$lt_cv_prog_gnu_ld" |
478 | |
479 AC_CHECK_TOOL(AR, ar, false) | |
480 AC_CHECK_TOOL(RANLIB, ranlib, :) | |
481 AC_CHECK_TOOL(STRIP, strip, :) | |
482 | 554 |
483 old_CC="$CC" | 555 old_CC="$CC" |
484 old_CFLAGS="$CFLAGS" | 556 old_CFLAGS="$CFLAGS" |
485 | 557 |
486 # Set sane defaults for various variables | 558 # Set sane defaults for various variables |
487 test -z "$AR" && AR=ar | |
488 test -z "$AR_FLAGS" && AR_FLAGS=cru | |
489 test -z "$AS" && AS=as | |
490 test -z "$CC" && CC=cc | 559 test -z "$CC" && CC=cc |
491 test -z "$LTCC" && LTCC=$CC | 560 test -z "$LTCC" && LTCC=$CC |
492 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | 561 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
493 test -z "$DLLTOOL" && DLLTOOL=dlltool | |
494 test -z "$LD" && LD=ld | 562 test -z "$LD" && LD=ld |
495 test -z "$LN_S" && LN_S="ln -s" | 563 test -z "$ac_objext" && ac_objext=o |
564 | |
565 _LT_CC_BASENAME([$compiler]) | |
566 | |
567 # Only perform the check for file, if the check method requires it | |
496 test -z "$MAGIC_CMD" && MAGIC_CMD=file | 568 test -z "$MAGIC_CMD" && MAGIC_CMD=file |
497 test -z "$NM" && NM=nm | 569 case $deplibs_check_method in |
498 test -z "$SED" && SED=sed | 570 file_magic*) |
499 test -z "$OBJDUMP" && OBJDUMP=objdump | 571 if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
572 _LT_PATH_MAGIC | |
573 fi | |
574 ;; | |
575 esac | |
576 | |
577 # Use C for the default configuration in the libtool script | |
578 LT_SUPPORTED_TAG([CC]) | |
579 _LT_LANG_C_CONFIG | |
580 _LT_LANG_DEFAULT_CONFIG | |
581 _LT_CONFIG_COMMANDS | |
582 ])# _LT_SETUP | |
583 | |
584 | |
585 # _LT_PROG_LTMAIN | |
586 # --------------- | |
587 # Note that this code is called both from `configure', and `config.status' | |
588 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, | |
589 # `config.status' has no value for ac_aux_dir unless we are using Automake, | |
590 # so we pass a copy along to make sure it has a sensible value anyway. | |
591 m4_defun([_LT_PROG_LTMAIN], | |
592 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl | |
593 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) | |
594 ltmain="$ac_aux_dir/ltmain.sh" | |
595 ])# _LT_PROG_LTMAIN | |
596 | |
597 | |
598 ## ------------------------------------- ## | |
599 ## Accumulate code for creating libtool. ## | |
600 ## ------------------------------------- ## | |
601 | |
602 # So that we can recreate a full libtool script including additional | |
603 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS | |
604 # in macros and then make a single call at the end using the `libtool' | |
605 # label. | |
606 | |
607 | |
608 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) | |
609 # ---------------------------------------- | |
610 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. | |
611 m4_define([_LT_CONFIG_LIBTOOL_INIT], | |
612 [m4_ifval([$1], | |
613 [m4_append([_LT_OUTPUT_LIBTOOL_INIT], | |
614 [$1 | |
615 ])])]) | |
616 | |
617 # Initialize. | |
618 m4_define([_LT_OUTPUT_LIBTOOL_INIT]) | |
619 | |
620 | |
621 # _LT_CONFIG_LIBTOOL([COMMANDS]) | |
622 # ------------------------------ | |
623 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. | |
624 m4_define([_LT_CONFIG_LIBTOOL], | |
625 [m4_ifval([$1], | |
626 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], | |
627 [$1 | |
628 ])])]) | |
629 | |
630 # Initialize. | |
631 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) | |
632 | |
633 | |
634 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) | |
635 # ----------------------------------------------------- | |
636 m4_defun([_LT_CONFIG_SAVE_COMMANDS], | |
637 [_LT_CONFIG_LIBTOOL([$1]) | |
638 _LT_CONFIG_LIBTOOL_INIT([$2]) | |
639 ]) | |
640 | |
641 | |
642 # _LT_FORMAT_COMMENT([COMMENT]) | |
643 # ----------------------------- | |
644 # Add leading comment marks to the start of each line, and a trailing | |
645 # full-stop to the whole comment if one is not present already. | |
646 m4_define([_LT_FORMAT_COMMENT], | |
647 [m4_ifval([$1], [ | |
648 m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], | |
649 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) | |
650 )]) | |
651 | |
652 | |
653 | |
654 ## ------------------------ ## | |
655 ## FIXME: Eliminate VARNAME ## | |
656 ## ------------------------ ## | |
657 | |
658 | |
659 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) | |
660 # ------------------------------------------------------------------- | |
661 # CONFIGNAME is the name given to the value in the libtool script. | |
662 # VARNAME is the (base) name used in the configure script. | |
663 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on | |
664 # VARNAME. Any other value will be used directly. | |
665 m4_define([_LT_DECL], | |
666 [lt_if_append_uniq([lt_decl_varnames], [$2], [, ], | |
667 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], | |
668 [m4_ifval([$1], [$1], [$2])]) | |
669 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) | |
670 m4_ifval([$4], | |
671 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) | |
672 lt_dict_add_subkey([lt_decl_dict], [$2], | |
673 [tagged?], [m4_ifval([$5], [yes], [no])])]) | |
674 ]) | |
675 | |
676 | |
677 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) | |
678 # -------------------------------------------------------- | |
679 m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) | |
680 | |
681 | |
682 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) | |
683 # ------------------------------------------------ | |
684 m4_define([lt_decl_tag_varnames], | |
685 [_lt_decl_filter([tagged?], [yes], $@)]) | |
686 | |
687 | |
688 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) | |
689 # --------------------------------------------------------- | |
690 m4_define([_lt_decl_filter], | |
691 [m4_case([$#], | |
692 [0], [m4_fatal([$0: too few arguments: $#])], | |
693 [1], [m4_fatal([$0: too few arguments: $#: $1])], | |
694 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], | |
695 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], | |
696 [lt_dict_filter([lt_decl_dict], $@)])[]dnl | |
697 ]) | |
698 | |
699 | |
700 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) | |
701 # -------------------------------------------------- | |
702 m4_define([lt_decl_quote_varnames], | |
703 [_lt_decl_filter([value], [1], $@)]) | |
704 | |
705 | |
706 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) | |
707 # --------------------------------------------------- | |
708 m4_define([lt_decl_dquote_varnames], | |
709 [_lt_decl_filter([value], [2], $@)]) | |
710 | |
711 | |
712 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) | |
713 # --------------------------------------------------- | |
714 m4_define([lt_decl_varnames_tagged], | |
715 [m4_assert([$# <= 2])dnl | |
716 _$0(m4_quote(m4_default([$1], [[, ]])), | |
717 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), | |
718 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) | |
719 m4_define([_lt_decl_varnames_tagged], | |
720 [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) | |
721 | |
722 | |
723 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) | |
724 # ------------------------------------------------ | |
725 m4_define([lt_decl_all_varnames], | |
726 [_$0(m4_quote(m4_default([$1], [[, ]])), | |
727 m4_if([$2], [], | |
728 m4_quote(lt_decl_varnames), | |
729 m4_quote(m4_shift($@))))[]dnl | |
730 ]) | |
731 m4_define([_lt_decl_all_varnames], | |
732 [lt_join($@, lt_decl_varnames_tagged([$1], | |
733 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl | |
734 ]) | |
735 | |
736 | |
737 # _LT_CONFIG_STATUS_DECLARE([VARNAME]) | |
738 # ------------------------------------ | |
739 # Quote a variable value, and forward it to `config.status' so that its | |
740 # declaration there will have the same value as in `configure'. VARNAME | |
741 # must have a single quote delimited value for this to work. | |
742 m4_define([_LT_CONFIG_STATUS_DECLARE], | |
743 [$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`']) | |
744 | |
745 | |
746 # _LT_CONFIG_STATUS_DECLARATIONS | |
747 # ------------------------------ | |
748 # We delimit libtool config variables with single quotes, so when | |
749 # we write them to config.status, we have to be sure to quote all | |
750 # embedded single quotes properly. In configure, this macro expands | |
751 # each variable declared with _LT_DECL (and _LT_TAGDECL) into: | |
752 # | |
753 # <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`' | |
754 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], | |
755 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), | |
756 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) | |
757 | |
758 | |
759 # _LT_LIBTOOL_TAGS | |
760 # ---------------- | |
761 # Output comment and list of tags supported by the script | |
762 m4_defun([_LT_LIBTOOL_TAGS], | |
763 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl | |
764 available_tags="_LT_TAGS"dnl | |
765 ]) | |
766 | |
767 | |
768 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) | |
769 # ----------------------------------- | |
770 # Extract the dictionary values for VARNAME (optionally with TAG) and | |
771 # expand to a commented shell variable setting: | |
772 # | |
773 # # Some comment about what VAR is for. | |
774 # visible_name=$lt_internal_name | |
775 m4_define([_LT_LIBTOOL_DECLARE], | |
776 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], | |
777 [description])))[]dnl | |
778 m4_pushdef([_libtool_name], | |
779 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl | |
780 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), | |
781 [0], [_libtool_name=[$]$1], | |
782 [1], [_libtool_name=$lt_[]$1], | |
783 [2], [_libtool_name=$lt_[]$1], | |
784 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl | |
785 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl | |
786 ]) | |
787 | |
788 | |
789 # _LT_LIBTOOL_CONFIG_VARS | |
790 # ----------------------- | |
791 # Produce commented declarations of non-tagged libtool config variables | |
792 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool' | |
793 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG | |
794 # section) are produced by _LT_LIBTOOL_TAG_VARS. | |
795 m4_defun([_LT_LIBTOOL_CONFIG_VARS], | |
796 [m4_foreach([_lt_var], | |
797 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), | |
798 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) | |
799 | |
800 | |
801 # _LT_LIBTOOL_TAG_VARS(TAG) | |
802 # ------------------------- | |
803 m4_define([_LT_LIBTOOL_TAG_VARS], | |
804 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), | |
805 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) | |
806 | |
807 | |
808 # _LT_TAGVAR(VARNAME, [TAGNAME]) | |
809 # ------------------------------ | |
810 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) | |
811 | |
812 | |
813 # _LT_CONFIG_COMMANDS | |
814 # ------------------- | |
815 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of | |
816 # variables for single and double quote escaping we saved from calls | |
817 # to _LT_DECL, we can put quote escaped variables declarations | |
818 # into `config.status', and then the shell code to quote escape them in | |
819 # for loops in `config.status'. Finally, any additional code accumulated | |
820 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. | |
821 m4_defun([_LT_CONFIG_COMMANDS], | |
822 [AC_PROVIDE_IFELSE([LT_OUTPUT], | |
823 dnl If the libtool generation code has been placed in $CONFIG_LT, | |
824 dnl instead of duplicating it all over again into config.status, | |
825 dnl then we will have config.status run $CONFIG_LT later, so it | |
826 dnl needs to know what name is stored there: | |
827 [AC_CONFIG_COMMANDS([libtool], | |
828 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], | |
829 dnl If the libtool generation code is destined for config.status, | |
830 dnl expand the accumulated commands and init code now: | |
831 [AC_CONFIG_COMMANDS([libtool], | |
832 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) | |
833 ])#_LT_CONFIG_COMMANDS | |
834 | |
835 | |
836 # Initialize. | |
837 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], | |
838 [ | |
839 | |
840 # The HP-UX ksh and POSIX shell print the target directory to stdout | |
841 # if CDPATH is set. | |
842 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
843 | |
844 sed_quote_subst='$sed_quote_subst' | |
845 double_quote_subst='$double_quote_subst' | |
846 delay_variable_subst='$delay_variable_subst' | |
847 _LT_CONFIG_STATUS_DECLARATIONS | |
848 LTCC='$LTCC' | |
849 LTCFLAGS='$LTCFLAGS' | |
850 compiler='$compiler_DEFAULT' | |
851 | |
852 # Quote evaled strings. | |
853 for var in lt_decl_all_varnames([[ \ | |
854 ]], lt_decl_quote_varnames); do | |
855 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
856 *[[\\\\\\\`\\"\\\$]]*) | |
857 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
858 ;; | |
859 *) | |
860 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
861 ;; | |
862 esac | |
863 done | |
864 | |
865 # Double-quote double-evaled strings. | |
866 for var in lt_decl_all_varnames([[ \ | |
867 ]], lt_decl_dquote_varnames); do | |
868 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
869 *[[\\\\\\\`\\"\\\$]]*) | |
870 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
871 ;; | |
872 *) | |
873 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
874 ;; | |
875 esac | |
876 done | |
877 | |
878 # Fix-up fallback echo if it was mangled by the above quoting rules. | |
879 case \$lt_ECHO in | |
880 *'\\\[$]0 --fallback-echo"')dnl " | |
881 lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\` | |
882 ;; | |
883 esac | |
884 | |
885 _LT_OUTPUT_LIBTOOL_INIT | |
886 ]) | |
887 | |
888 | |
889 # LT_OUTPUT | |
890 # --------- | |
891 # This macro allows early generation of the libtool script (before | |
892 # AC_OUTPUT is called), incase it is used in configure for compilation | |
893 # tests. | |
894 AC_DEFUN([LT_OUTPUT], | |
895 [: ${CONFIG_LT=./config.lt} | |
896 AC_MSG_NOTICE([creating $CONFIG_LT]) | |
897 cat >"$CONFIG_LT" <<_LTEOF | |
898 #! $SHELL | |
899 # Generated by $as_me. | |
900 # Run this file to recreate a libtool stub with the current configuration. | |
901 | |
902 lt_cl_silent=false | |
903 SHELL=\${CONFIG_SHELL-$SHELL} | |
904 _LTEOF | |
905 | |
906 cat >>"$CONFIG_LT" <<\_LTEOF | |
907 AS_SHELL_SANITIZE | |
908 _AS_PREPARE | |
909 | |
910 exec AS_MESSAGE_FD>&1 | |
911 exec AS_MESSAGE_LOG_FD>>config.log | |
912 { | |
913 echo | |
914 AS_BOX([Running $as_me.]) | |
915 } >&AS_MESSAGE_LOG_FD | |
916 | |
917 lt_cl_help="\ | |
918 \`$as_me' creates a local libtool stub from the current configuration, | |
919 for use in further configure time tests before the real libtool is | |
920 generated. | |
921 | |
922 Usage: $[0] [[OPTIONS]] | |
923 | |
924 -h, --help print this help, then exit | |
925 -V, --version print version number, then exit | |
926 -q, --quiet do not print progress messages | |
927 -d, --debug don't remove temporary files | |
928 | |
929 Report bugs to <bug-libtool@gnu.org>." | |
930 | |
931 lt_cl_version="\ | |
932 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl | |
933 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) | |
934 configured by $[0], generated by m4_PACKAGE_STRING. | |
935 | |
936 Copyright (C) 2008 Free Software Foundation, Inc. | |
937 This config.lt script is free software; the Free Software Foundation | |
938 gives unlimited permision to copy, distribute and modify it." | |
939 | |
940 while test $[#] != 0 | |
941 do | |
942 case $[1] in | |
943 --version | --v* | -V ) | |
944 echo "$lt_cl_version"; exit 0 ;; | |
945 --help | --h* | -h ) | |
946 echo "$lt_cl_help"; exit 0 ;; | |
947 --debug | --d* | -d ) | |
948 debug=: ;; | |
949 --quiet | --q* | --silent | --s* | -q ) | |
950 lt_cl_silent=: ;; | |
951 | |
952 -*) AC_MSG_ERROR([unrecognized option: $[1] | |
953 Try \`$[0] --help' for more information.]) ;; | |
954 | |
955 *) AC_MSG_ERROR([unrecognized argument: $[1] | |
956 Try \`$[0] --help' for more information.]) ;; | |
957 esac | |
958 shift | |
959 done | |
960 | |
961 if $lt_cl_silent; then | |
962 exec AS_MESSAGE_FD>/dev/null | |
963 fi | |
964 _LTEOF | |
965 | |
966 cat >>"$CONFIG_LT" <<_LTEOF | |
967 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT | |
968 _LTEOF | |
969 | |
970 cat >>"$CONFIG_LT" <<\_LTEOF | |
971 AC_MSG_NOTICE([creating $ofile]) | |
972 _LT_OUTPUT_LIBTOOL_COMMANDS | |
973 AS_EXIT(0) | |
974 _LTEOF | |
975 chmod +x "$CONFIG_LT" | |
976 | |
977 # configure is writing to config.log, but config.lt does its own redirection, | |
978 # appending to config.log, which fails on DOS, as config.log is still kept | |
979 # open by configure. Here we exec the FD to /dev/null, effectively closing | |
980 # config.log, so it can be properly (re)opened and appended to by config.lt. | |
981 if test "$no_create" != yes; then | |
982 lt_cl_success=: | |
983 test "$silent" = yes && | |
984 lt_config_lt_args="$lt_config_lt_args --quiet" | |
985 exec AS_MESSAGE_LOG_FD>/dev/null | |
986 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false | |
987 exec AS_MESSAGE_LOG_FD>>config.log | |
988 $lt_cl_success || AS_EXIT(1) | |
989 fi | |
990 ])# LT_OUTPUT | |
991 | |
992 | |
993 # _LT_CONFIG(TAG) | |
994 # --------------- | |
995 # If TAG is the built-in tag, create an initial libtool script with a | |
996 # default configuration from the untagged config vars. Otherwise add code | |
997 # to config.status for appending the configuration named by TAG from the | |
998 # matching tagged config vars. | |
999 m4_defun([_LT_CONFIG], | |
1000 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl | |
1001 _LT_CONFIG_SAVE_COMMANDS([ | |
1002 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl | |
1003 m4_if(_LT_TAG, [C], [ | |
1004 # See if we are running on zsh, and set the options which allow our | |
1005 # commands through without removal of \ escapes. | |
1006 if test -n "${ZSH_VERSION+set}" ; then | |
1007 setopt NO_GLOB_SUBST | |
1008 fi | |
1009 | |
1010 cfgfile="${ofile}T" | |
1011 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
1012 $RM "$cfgfile" | |
1013 | |
1014 cat <<_LT_EOF >> "$cfgfile" | |
1015 #! $SHELL | |
1016 | |
1017 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
1018 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
1019 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
1020 # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
1021 # | |
1022 _LT_COPYING | |
1023 _LT_LIBTOOL_TAGS | |
1024 | |
1025 # ### BEGIN LIBTOOL CONFIG | |
1026 _LT_LIBTOOL_CONFIG_VARS | |
1027 _LT_LIBTOOL_TAG_VARS | |
1028 # ### END LIBTOOL CONFIG | |
1029 | |
1030 _LT_EOF | |
1031 | |
1032 case $host_os in | |
1033 aix3*) | |
1034 cat <<\_LT_EOF >> "$cfgfile" | |
1035 # AIX sometimes has problems with the GCC collect2 program. For some | |
1036 # reason, if we set the COLLECT_NAMES environment variable, the problems | |
1037 # vanish in a puff of smoke. | |
1038 if test "X${COLLECT_NAMES+set}" != Xset; then | |
1039 COLLECT_NAMES= | |
1040 export COLLECT_NAMES | |
1041 fi | |
1042 _LT_EOF | |
1043 ;; | |
1044 esac | |
1045 | |
1046 _LT_PROG_LTMAIN | |
1047 | |
1048 # We use sed instead of cat because bash on DJGPP gets confused if | |
1049 # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
1050 # text mode, it properly converts lines to CR/LF. This bash problem | |
1051 # is reportedly fixed, but why not run on old versions too? | |
1052 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
1053 || (rm -f "$cfgfile"; exit 1) | |
1054 | |
1055 _LT_PROG_XSI_SHELLFNS | |
1056 | |
1057 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
1058 || (rm -f "$cfgfile"; exit 1) | |
1059 | |
1060 mv -f "$cfgfile" "$ofile" || | |
1061 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
1062 chmod +x "$ofile" | |
1063 ], | |
1064 [cat <<_LT_EOF >> "$ofile" | |
1065 | |
1066 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded | |
1067 dnl in a comment (ie after a #). | |
1068 # ### BEGIN LIBTOOL TAG CONFIG: $1 | |
1069 _LT_LIBTOOL_TAG_VARS(_LT_TAG) | |
1070 # ### END LIBTOOL TAG CONFIG: $1 | |
1071 _LT_EOF | |
1072 ])dnl /m4_if | |
1073 ], | |
1074 [m4_if([$1], [], [ | |
1075 PACKAGE='$PACKAGE' | |
1076 VERSION='$VERSION' | |
1077 TIMESTAMP='$TIMESTAMP' | |
1078 RM='$RM' | |
1079 ofile='$ofile'], []) | |
1080 ])dnl /_LT_CONFIG_SAVE_COMMANDS | |
1081 ])# _LT_CONFIG | |
1082 | |
1083 | |
1084 # LT_SUPPORTED_TAG(TAG) | |
1085 # --------------------- | |
1086 # Trace this macro to discover what tags are supported by the libtool | |
1087 # --tag option, using: | |
1088 # autoconf --trace 'LT_SUPPORTED_TAG:$1' | |
1089 AC_DEFUN([LT_SUPPORTED_TAG], []) | |
1090 | |
1091 | |
1092 # C support is built-in for now | |
1093 m4_define([_LT_LANG_C_enabled], []) | |
1094 m4_define([_LT_TAGS], []) | |
1095 | |
1096 | |
1097 # LT_LANG(LANG) | |
1098 # ------------- | |
1099 # Enable libtool support for the given language if not already enabled. | |
1100 AC_DEFUN([LT_LANG], | |
1101 [AC_BEFORE([$0], [LT_OUTPUT])dnl | |
1102 m4_case([$1], | |
1103 [C], [_LT_LANG(C)], | |
1104 [C++], [_LT_LANG(CXX)], | |
1105 [Java], [_LT_LANG(GCJ)], | |
1106 [Fortran 77], [_LT_LANG(F77)], | |
1107 [Fortran], [_LT_LANG(FC)], | |
1108 [Windows Resource], [_LT_LANG(RC)], | |
1109 [m4_ifdef([_LT_LANG_]$1[_CONFIG], | |
1110 [_LT_LANG($1)], | |
1111 [m4_fatal([$0: unsupported language: "$1"])])])dnl | |
1112 ])# LT_LANG | |
1113 | |
1114 | |
1115 # _LT_LANG(LANGNAME) | |
1116 # ------------------ | |
1117 m4_defun([_LT_LANG], | |
1118 [m4_ifdef([_LT_LANG_]$1[_enabled], [], | |
1119 [LT_SUPPORTED_TAG([$1])dnl | |
1120 m4_append([_LT_TAGS], [$1 ])dnl | |
1121 m4_define([_LT_LANG_]$1[_enabled], [])dnl | |
1122 _LT_LANG_$1_CONFIG($1)])dnl | |
1123 ])# _LT_LANG | |
1124 | |
1125 | |
1126 # _LT_LANG_DEFAULT_CONFIG | |
1127 # ----------------------- | |
1128 m4_defun([_LT_LANG_DEFAULT_CONFIG], | |
1129 [AC_PROVIDE_IFELSE([AC_PROG_CXX], | |
1130 [LT_LANG(CXX)], | |
1131 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) | |
1132 | |
1133 AC_PROVIDE_IFELSE([AC_PROG_F77], | |
1134 [LT_LANG(F77)], | |
1135 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) | |
1136 | |
1137 AC_PROVIDE_IFELSE([AC_PROG_FC], | |
1138 [LT_LANG(FC)], | |
1139 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) | |
1140 | |
1141 dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal | |
1142 dnl pulling things in needlessly. | |
1143 AC_PROVIDE_IFELSE([AC_PROG_GCJ], | |
1144 [LT_LANG(GCJ)], | |
1145 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], | |
1146 [LT_LANG(GCJ)], | |
1147 [AC_PROVIDE_IFELSE([LT_PROG_GCJ], | |
1148 [LT_LANG(GCJ)], | |
1149 [m4_ifdef([AC_PROG_GCJ], | |
1150 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) | |
1151 m4_ifdef([A][M_PROG_GCJ], | |
1152 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) | |
1153 m4_ifdef([LT_PROG_GCJ], | |
1154 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) | |
1155 | |
1156 AC_PROVIDE_IFELSE([LT_PROG_RC], | |
1157 [LT_LANG(RC)], | |
1158 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) | |
1159 ])# _LT_LANG_DEFAULT_CONFIG | |
1160 | |
1161 # Obsolete macros: | |
1162 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) | |
1163 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) | |
1164 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) | |
1165 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) | |
1166 dnl aclocal-1.4 backwards compatibility: | |
1167 dnl AC_DEFUN([AC_LIBTOOL_CXX], []) | |
1168 dnl AC_DEFUN([AC_LIBTOOL_F77], []) | |
1169 dnl AC_DEFUN([AC_LIBTOOL_FC], []) | |
1170 dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) | |
1171 | |
1172 | |
1173 # _LT_TAG_COMPILER | |
1174 # ---------------- | |
1175 m4_defun([_LT_TAG_COMPILER], | |
1176 [AC_REQUIRE([AC_PROG_CC])dnl | |
1177 | |
1178 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl | |
1179 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl | |
1180 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl | |
1181 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl | |
1182 | |
1183 # If no C compiler was specified, use CC. | |
1184 LTCC=${LTCC-"$CC"} | |
1185 | |
1186 # If no C compiler flags were specified, use CFLAGS. | |
1187 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
1188 | |
1189 # Allow CC to be a program name with arguments. | |
1190 compiler=$CC | |
1191 ])# _LT_TAG_COMPILER | |
1192 | |
1193 | |
1194 # _LT_COMPILER_BOILERPLATE | |
1195 # ------------------------ | |
1196 # Check for compiler boilerplate output or warnings with | |
1197 # the simple compiler test code. | |
1198 m4_defun([_LT_COMPILER_BOILERPLATE], | |
1199 [m4_require([_LT_DECL_SED])dnl | |
1200 ac_outfile=conftest.$ac_objext | |
1201 echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
1202 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
1203 _lt_compiler_boilerplate=`cat conftest.err` | |
1204 $RM conftest* | |
1205 ])# _LT_COMPILER_BOILERPLATE | |
1206 | |
1207 | |
1208 # _LT_LINKER_BOILERPLATE | |
1209 # ---------------------- | |
1210 # Check for linker boilerplate output or warnings with | |
1211 # the simple link test code. | |
1212 m4_defun([_LT_LINKER_BOILERPLATE], | |
1213 [m4_require([_LT_DECL_SED])dnl | |
1214 ac_outfile=conftest.$ac_objext | |
1215 echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
1216 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
1217 _lt_linker_boilerplate=`cat conftest.err` | |
1218 $RM -r conftest* | |
1219 ])# _LT_LINKER_BOILERPLATE | |
1220 | |
1221 # _LT_REQUIRED_DARWIN_CHECKS | |
1222 # ------------------------- | |
1223 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ | |
1224 case $host_os in | |
1225 rhapsody* | darwin*) | |
1226 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) | |
1227 AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) | |
1228 AC_CHECK_TOOL([LIPO], [lipo], [:]) | |
1229 AC_CHECK_TOOL([OTOOL], [otool], [:]) | |
1230 AC_CHECK_TOOL([OTOOL64], [otool64], [:]) | |
1231 _LT_DECL([], [DSYMUTIL], [1], | |
1232 [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) | |
1233 _LT_DECL([], [NMEDIT], [1], | |
1234 [Tool to change global to local symbols on Mac OS X]) | |
1235 _LT_DECL([], [LIPO], [1], | |
1236 [Tool to manipulate fat objects and archives on Mac OS X]) | |
1237 _LT_DECL([], [OTOOL], [1], | |
1238 [ldd/readelf like tool for Mach-O binaries on Mac OS X]) | |
1239 _LT_DECL([], [OTOOL64], [1], | |
1240 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) | |
1241 | |
1242 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], | |
1243 [lt_cv_apple_cc_single_mod=no | |
1244 if test -z "${LT_MULTI_MODULE}"; then | |
1245 # By default we will add the -single_module flag. You can override | |
1246 # by either setting the environment variable LT_MULTI_MODULE | |
1247 # non-empty at configure time, or by adding -multi_module to the | |
1248 # link flags. | |
1249 rm -rf libconftest.dylib* | |
1250 echo "int foo(void){return 1;}" > conftest.c | |
1251 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
1252 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD | |
1253 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
1254 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
1255 _lt_result=$? | |
1256 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
1257 lt_cv_apple_cc_single_mod=yes | |
1258 else | |
1259 cat conftest.err >&AS_MESSAGE_LOG_FD | |
1260 fi | |
1261 rm -rf libconftest.dylib* | |
1262 rm -f conftest.* | |
1263 fi]) | |
1264 AC_CACHE_CHECK([for -exported_symbols_list linker flag], | |
1265 [lt_cv_ld_exported_symbols_list], | |
1266 [lt_cv_ld_exported_symbols_list=no | |
1267 save_LDFLAGS=$LDFLAGS | |
1268 echo "_main" > conftest.sym | |
1269 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
1270 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], | |
1271 [lt_cv_ld_exported_symbols_list=yes], | |
1272 [lt_cv_ld_exported_symbols_list=no]) | |
1273 LDFLAGS="$save_LDFLAGS" | |
1274 ]) | |
1275 case $host_os in | |
1276 rhapsody* | darwin1.[[012]]) | |
1277 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
1278 darwin1.*) | |
1279 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
1280 darwin*) # darwin 5.x on | |
1281 # if running on 10.5 or later, the deployment target defaults | |
1282 # to the OS version, if on x86, and 10.4, the deployment | |
1283 # target defaults to 10.4. Don't you love it? | |
1284 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
1285 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) | |
1286 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
1287 10.[[012]]*) | |
1288 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
1289 10.*) | |
1290 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
1291 esac | |
1292 ;; | |
1293 esac | |
1294 if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
1295 _lt_dar_single_mod='$single_module' | |
1296 fi | |
1297 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
1298 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
1299 else | |
1300 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
1301 fi | |
1302 if test "$DSYMUTIL" != ":"; then | |
1303 _lt_dsymutil='~$DSYMUTIL $lib || :' | |
1304 else | |
1305 _lt_dsymutil= | |
1306 fi | |
1307 ;; | |
1308 esac | |
1309 ]) | |
1310 | |
1311 | |
1312 # _LT_DARWIN_LINKER_FEATURES | |
1313 # -------------------------- | |
1314 # Checks for linker and compiler features on darwin | |
1315 m4_defun([_LT_DARWIN_LINKER_FEATURES], | |
1316 [ | |
1317 m4_require([_LT_REQUIRED_DARWIN_CHECKS]) | |
1318 _LT_TAGVAR(archive_cmds_need_lc, $1)=no | |
1319 _LT_TAGVAR(hardcode_direct, $1)=no | |
1320 _LT_TAGVAR(hardcode_automatic, $1)=yes | |
1321 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | |
1322 _LT_TAGVAR(whole_archive_flag_spec, $1)='' | |
1323 _LT_TAGVAR(link_all_deplibs, $1)=yes | |
1324 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" | |
1325 case $cc_basename in | |
1326 ifort*) _lt_dar_can_shared=yes ;; | |
1327 *) _lt_dar_can_shared=$GCC ;; | |
1328 esac | |
1329 if test "$_lt_dar_can_shared" = "yes"; then | |
1330 output_verbose_link_cmd=echo | |
1331 _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}" | |
1332 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
1333 _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}" | |
1334 _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}" | |
1335 m4_if([$1], [CXX], | |
1336 [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then | |
1337 _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}" | |
1338 _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}" | |
1339 fi | |
1340 ],[]) | |
1341 else | |
1342 _LT_TAGVAR(ld_shlibs, $1)=no | |
1343 fi | |
1344 ]) | |
1345 | |
1346 # _LT_SYS_MODULE_PATH_AIX | |
1347 # ----------------------- | |
1348 # Links a minimal program and checks the executable | |
1349 # for the system default hardcoded library path. In most cases, | |
1350 # this is /usr/lib:/lib, but when the MPI compilers are used | |
1351 # the location of the communication and MPI libs are included too. | |
1352 # If we don't find anything, use the default library path according | |
1353 # to the aix ld manual. | |
1354 m4_defun([_LT_SYS_MODULE_PATH_AIX], | |
1355 [m4_require([_LT_DECL_SED])dnl | |
1356 AC_LINK_IFELSE(AC_LANG_PROGRAM,[ | |
1357 lt_aix_libpath_sed=' | |
1358 /Import File Strings/,/^$/ { | |
1359 /^0/ { | |
1360 s/^0 *\(.*\)$/\1/ | |
1361 p | |
1362 } | |
1363 }' | |
1364 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
1365 # Check for a 64-bit object if we didn't find anything. | |
1366 if test -z "$aix_libpath"; then | |
1367 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
1368 fi],[]) | |
1369 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
1370 ])# _LT_SYS_MODULE_PATH_AIX | |
1371 | |
1372 | |
1373 # _LT_SHELL_INIT(ARG) | |
1374 # ------------------- | |
1375 m4_define([_LT_SHELL_INIT], | |
1376 [ifdef([AC_DIVERSION_NOTICE], | |
1377 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], | |
1378 [AC_DIVERT_PUSH(NOTICE)]) | |
1379 $1 | |
1380 AC_DIVERT_POP | |
1381 ])# _LT_SHELL_INIT | |
1382 | |
1383 | |
1384 # _LT_PROG_ECHO_BACKSLASH | |
1385 # ----------------------- | |
1386 # Add some code to the start of the generated configure script which | |
1387 # will find an echo command which doesn't interpret backslashes. | |
1388 m4_defun([_LT_PROG_ECHO_BACKSLASH], | |
1389 [_LT_SHELL_INIT([ | |
1390 # Check that we are running under the correct shell. | |
1391 SHELL=${CONFIG_SHELL-/bin/sh} | |
1392 | |
1393 case X$lt_ECHO in | |
1394 X*--fallback-echo) | |
1395 # Remove one level of quotation (which was required for Make). | |
1396 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` | |
1397 ;; | |
1398 esac | |
1399 | |
1400 ECHO=${lt_ECHO-echo} | |
1401 if test "X[$]1" = X--no-reexec; then | |
1402 # Discard the --no-reexec flag, and continue. | |
1403 shift | |
1404 elif test "X[$]1" = X--fallback-echo; then | |
1405 # Avoid inline document here, it may be left over | |
1406 : | |
1407 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then | |
1408 # Yippee, $ECHO works! | |
1409 : | |
1410 else | |
1411 # Restart under the correct shell. | |
1412 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} | |
1413 fi | |
1414 | |
1415 if test "X[$]1" = X--fallback-echo; then | |
1416 # used as fallback echo | |
1417 shift | |
1418 cat <<_LT_EOF | |
1419 [$]* | |
1420 _LT_EOF | |
1421 exit 0 | |
1422 fi | |
1423 | |
1424 # The HP-UX ksh and POSIX shell print the target directory to stdout | |
1425 # if CDPATH is set. | |
1426 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
1427 | |
1428 if test -z "$lt_ECHO"; then | |
1429 if test "X${echo_test_string+set}" != Xset; then | |
1430 # find a string as large as possible, as long as the shell can cope with it | |
1431 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do | |
1432 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
1433 if { echo_test_string=`eval $cmd`; } 2>/dev/null && | |
1434 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | |
1435 then | |
1436 break | |
1437 fi | |
1438 done | |
1439 fi | |
1440 | |
1441 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
1442 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
1443 test "X$echo_testing_string" = "X$echo_test_string"; then | |
1444 : | |
1445 else | |
1446 # The Solaris, AIX, and Digital Unix default echo programs unquote | |
1447 # backslashes. This makes it impossible to quote backslashes using | |
1448 # echo "$something" | sed 's/\\/\\\\/g' | |
1449 # | |
1450 # So, first we look for a working echo in the user's PATH. | |
1451 | |
1452 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
1453 for dir in $PATH /usr/ucb; do | |
1454 IFS="$lt_save_ifs" | |
1455 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
1456 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
1457 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
1458 test "X$echo_testing_string" = "X$echo_test_string"; then | |
1459 ECHO="$dir/echo" | |
1460 break | |
1461 fi | |
1462 done | |
1463 IFS="$lt_save_ifs" | |
1464 | |
1465 if test "X$ECHO" = Xecho; then | |
1466 # We didn't find a better echo, so look for alternatives. | |
1467 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | |
1468 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | |
1469 test "X$echo_testing_string" = "X$echo_test_string"; then | |
1470 # This shell has a builtin print -r that does the trick. | |
1471 ECHO='print -r' | |
1472 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | |
1473 test "X$CONFIG_SHELL" != X/bin/ksh; then | |
1474 # If we have ksh, try running configure again with it. | |
1475 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
1476 export ORIGINAL_CONFIG_SHELL | |
1477 CONFIG_SHELL=/bin/ksh | |
1478 export CONFIG_SHELL | |
1479 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} | |
1480 else | |
1481 # Try using printf. | |
1482 ECHO='printf %s\n' | |
1483 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
1484 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
1485 test "X$echo_testing_string" = "X$echo_test_string"; then | |
1486 # Cool, printf works | |
1487 : | |
1488 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && | |
1489 test "X$echo_testing_string" = 'X\t' && | |
1490 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
1491 test "X$echo_testing_string" = "X$echo_test_string"; then | |
1492 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
1493 export CONFIG_SHELL | |
1494 SHELL="$CONFIG_SHELL" | |
1495 export SHELL | |
1496 ECHO="$CONFIG_SHELL [$]0 --fallback-echo" | |
1497 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && | |
1498 test "X$echo_testing_string" = 'X\t' && | |
1499 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
1500 test "X$echo_testing_string" = "X$echo_test_string"; then | |
1501 ECHO="$CONFIG_SHELL [$]0 --fallback-echo" | |
1502 else | |
1503 # maybe with a smaller string... | |
1504 prev=: | |
1505 | |
1506 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do | |
1507 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | |
1508 then | |
1509 break | |
1510 fi | |
1511 prev="$cmd" | |
1512 done | |
1513 | |
1514 if test "$prev" != 'sed 50q "[$]0"'; then | |
1515 echo_test_string=`eval $prev` | |
1516 export echo_test_string | |
1517 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} | |
1518 else | |
1519 # Oops. We lost completely, so just stick with echo. | |
1520 ECHO=echo | |
1521 fi | |
1522 fi | |
1523 fi | |
1524 fi | |
1525 fi | |
1526 fi | |
1527 | |
1528 # Copy echo and quote the copy suitably for passing to libtool from | |
1529 # the Makefile, instead of quoting the original, which is used later. | |
1530 lt_ECHO=$ECHO | |
1531 if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then | |
1532 lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" | |
1533 fi | |
1534 | |
1535 AC_SUBST(lt_ECHO) | |
1536 ]) | |
1537 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) | |
1538 _LT_DECL([], [ECHO], [1], | |
1539 [An echo program that does not interpret backslashes]) | |
1540 ])# _LT_PROG_ECHO_BACKSLASH | |
1541 | |
1542 | |
1543 # _LT_ENABLE_LOCK | |
1544 # --------------- | |
1545 m4_defun([_LT_ENABLE_LOCK], | |
1546 [AC_ARG_ENABLE([libtool-lock], | |
1547 [AS_HELP_STRING([--disable-libtool-lock], | |
1548 [avoid locking (might break parallel builds)])]) | |
1549 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
1550 | |
1551 # Some flags need to be propagated to the compiler or linker for good | |
1552 # libtool support. | |
1553 case $host in | |
1554 ia64-*-hpux*) | |
1555 # Find out which ABI we are using. | |
1556 echo 'int i;' > conftest.$ac_ext | |
1557 if AC_TRY_EVAL(ac_compile); then | |
1558 case `/usr/bin/file conftest.$ac_objext` in | |
1559 *ELF-32*) | |
1560 HPUX_IA64_MODE="32" | |
1561 ;; | |
1562 *ELF-64*) | |
1563 HPUX_IA64_MODE="64" | |
1564 ;; | |
1565 esac | |
1566 fi | |
1567 rm -rf conftest* | |
1568 ;; | |
1569 *-*-irix6*) | |
1570 # Find out which ABI we are using. | |
1571 echo '[#]line __oline__ "configure"' > conftest.$ac_ext | |
1572 if AC_TRY_EVAL(ac_compile); then | |
1573 if test "$lt_cv_prog_gnu_ld" = yes; then | |
1574 case `/usr/bin/file conftest.$ac_objext` in | |
1575 *32-bit*) | |
1576 LD="${LD-ld} -melf32bsmip" | |
1577 ;; | |
1578 *N32*) | |
1579 LD="${LD-ld} -melf32bmipn32" | |
1580 ;; | |
1581 *64-bit*) | |
1582 LD="${LD-ld} -melf64bmip" | |
1583 ;; | |
1584 esac | |
1585 else | |
1586 case `/usr/bin/file conftest.$ac_objext` in | |
1587 *32-bit*) | |
1588 LD="${LD-ld} -32" | |
1589 ;; | |
1590 *N32*) | |
1591 LD="${LD-ld} -n32" | |
1592 ;; | |
1593 *64-bit*) | |
1594 LD="${LD-ld} -64" | |
1595 ;; | |
1596 esac | |
1597 fi | |
1598 fi | |
1599 rm -rf conftest* | |
1600 ;; | |
1601 | |
1602 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
1603 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
1604 # Find out which ABI we are using. | |
1605 echo 'int i;' > conftest.$ac_ext | |
1606 if AC_TRY_EVAL(ac_compile); then | |
1607 case `/usr/bin/file conftest.o` in | |
1608 *32-bit*) | |
1609 case $host in | |
1610 x86_64-*kfreebsd*-gnu) | |
1611 LD="${LD-ld} -m elf_i386_fbsd" | |
1612 ;; | |
1613 x86_64-*linux*) | |
1614 LD="${LD-ld} -m elf_i386" | |
1615 ;; | |
1616 ppc64-*linux*|powerpc64-*linux*) | |
1617 LD="${LD-ld} -m elf32ppclinux" | |
1618 ;; | |
1619 s390x-*linux*) | |
1620 LD="${LD-ld} -m elf_s390" | |
1621 ;; | |
1622 sparc64-*linux*) | |
1623 LD="${LD-ld} -m elf32_sparc" | |
1624 ;; | |
1625 esac | |
1626 ;; | |
1627 *64-bit*) | |
1628 case $host in | |
1629 x86_64-*kfreebsd*-gnu) | |
1630 LD="${LD-ld} -m elf_x86_64_fbsd" | |
1631 ;; | |
1632 x86_64-*linux*) | |
1633 LD="${LD-ld} -m elf_x86_64" | |
1634 ;; | |
1635 ppc*-*linux*|powerpc*-*linux*) | |
1636 LD="${LD-ld} -m elf64ppc" | |
1637 ;; | |
1638 s390*-*linux*|s390*-*tpf*) | |
1639 LD="${LD-ld} -m elf64_s390" | |
1640 ;; | |
1641 sparc*-*linux*) | |
1642 LD="${LD-ld} -m elf64_sparc" | |
1643 ;; | |
1644 esac | |
1645 ;; | |
1646 esac | |
1647 fi | |
1648 rm -rf conftest* | |
1649 ;; | |
1650 | |
1651 *-*-sco3.2v5*) | |
1652 # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
1653 SAVE_CFLAGS="$CFLAGS" | |
1654 CFLAGS="$CFLAGS -belf" | |
1655 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, | |
1656 [AC_LANG_PUSH(C) | |
1657 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) | |
1658 AC_LANG_POP]) | |
1659 if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
1660 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
1661 CFLAGS="$SAVE_CFLAGS" | |
1662 fi | |
1663 ;; | |
1664 sparc*-*solaris*) | |
1665 # Find out which ABI we are using. | |
1666 echo 'int i;' > conftest.$ac_ext | |
1667 if AC_TRY_EVAL(ac_compile); then | |
1668 case `/usr/bin/file conftest.o` in | |
1669 *64-bit*) | |
1670 case $lt_cv_prog_gnu_ld in | |
1671 yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
1672 *) | |
1673 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
1674 LD="${LD-ld} -64" | |
1675 fi | |
1676 ;; | |
1677 esac | |
1678 ;; | |
1679 esac | |
1680 fi | |
1681 rm -rf conftest* | |
1682 ;; | |
1683 esac | |
1684 | |
1685 need_locks="$enable_libtool_lock" | |
1686 ])# _LT_ENABLE_LOCK | |
1687 | |
1688 | |
1689 # _LT_CMD_OLD_ARCHIVE | |
1690 # ------------------- | |
1691 m4_defun([_LT_CMD_OLD_ARCHIVE], | |
1692 [AC_CHECK_TOOL(AR, ar, false) | |
1693 test -z "$AR" && AR=ar | |
1694 test -z "$AR_FLAGS" && AR_FLAGS=cru | |
1695 _LT_DECL([], [AR], [1], [The archiver]) | |
1696 _LT_DECL([], [AR_FLAGS], [1]) | |
1697 | |
1698 AC_CHECK_TOOL(STRIP, strip, :) | |
1699 test -z "$STRIP" && STRIP=: | |
1700 _LT_DECL([], [STRIP], [1], [A symbol stripping program]) | |
1701 | |
1702 AC_CHECK_TOOL(RANLIB, ranlib, :) | |
500 test -z "$RANLIB" && RANLIB=: | 1703 test -z "$RANLIB" && RANLIB=: |
501 test -z "$STRIP" && STRIP=: | 1704 _LT_DECL([], [RANLIB], [1], |
502 test -z "$ac_objext" && ac_objext=o | 1705 [Commands used to install an old-style archive]) |
503 | 1706 |
504 # Determine commands to create old-style static archives. | 1707 # Determine commands to create old-style static archives. |
505 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | 1708 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
506 old_postinstall_cmds='chmod 644 $oldlib' | 1709 old_postinstall_cmds='chmod 644 $oldlib' |
507 old_postuninstall_cmds= | 1710 old_postuninstall_cmds= |
508 | 1711 |
509 if test -n "$RANLIB"; then | 1712 if test -n "$RANLIB"; then |
510 case $host_os in | 1713 case $host_os in |
515 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | 1718 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
516 ;; | 1719 ;; |
517 esac | 1720 esac |
518 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | 1721 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
519 fi | 1722 fi |
520 | 1723 _LT_DECL([], [old_postinstall_cmds], [2]) |
521 _LT_CC_BASENAME([$compiler]) | 1724 _LT_DECL([], [old_postuninstall_cmds], [2]) |
522 | 1725 _LT_TAGDECL([], [old_archive_cmds], [2], |
523 # Only perform the check for file, if the check method requires it | 1726 [Commands used to build an old-style archive]) |
524 case $deplibs_check_method in | 1727 ])# _LT_CMD_OLD_ARCHIVE |
525 file_magic*) | 1728 |
526 if test "$file_magic_cmd" = '$MAGIC_CMD'; then | 1729 |
527 AC_PATH_MAGIC | 1730 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
528 fi | |
529 ;; | |
530 esac | |
531 | |
532 AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) | |
533 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], | |
534 enable_win32_dll=yes, enable_win32_dll=no) | |
535 | |
536 AC_ARG_ENABLE([libtool-lock], | |
537 [AC_HELP_STRING([--disable-libtool-lock], | |
538 [avoid locking (might break parallel builds)])]) | |
539 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
540 | |
541 AC_ARG_WITH([pic], | |
542 [AC_HELP_STRING([--with-pic], | |
543 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], | |
544 [pic_mode="$withval"], | |
545 [pic_mode=default]) | |
546 test -z "$pic_mode" && pic_mode=default | |
547 | |
548 # Use C for the default configuration in the libtool script | |
549 tagname= | |
550 AC_LIBTOOL_LANG_C_CONFIG | |
551 _LT_AC_TAGCONFIG | |
552 ])# AC_LIBTOOL_SETUP | |
553 | |
554 | |
555 # _LT_AC_SYS_COMPILER | |
556 # ------------------- | |
557 AC_DEFUN([_LT_AC_SYS_COMPILER], | |
558 [AC_REQUIRE([AC_PROG_CC])dnl | |
559 | |
560 # If no C compiler was specified, use CC. | |
561 LTCC=${LTCC-"$CC"} | |
562 | |
563 # If no C compiler flags were specified, use CFLAGS. | |
564 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
565 | |
566 # Allow CC to be a program name with arguments. | |
567 compiler=$CC | |
568 ])# _LT_AC_SYS_COMPILER | |
569 | |
570 | |
571 # _LT_CC_BASENAME(CC) | |
572 # ------------------- | |
573 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
574 AC_DEFUN([_LT_CC_BASENAME], | |
575 [for cc_temp in $1""; do | |
576 case $cc_temp in | |
577 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; | |
578 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; | |
579 \-*) ;; | |
580 *) break;; | |
581 esac | |
582 done | |
583 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
584 ]) | |
585 | |
586 | |
587 # _LT_COMPILER_BOILERPLATE | |
588 # ------------------------ | |
589 # Check for compiler boilerplate output or warnings with | |
590 # the simple compiler test code. | |
591 AC_DEFUN([_LT_COMPILER_BOILERPLATE], | |
592 [ac_outfile=conftest.$ac_objext | |
593 printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
594 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
595 _lt_compiler_boilerplate=`cat conftest.err` | |
596 $rm conftest* | |
597 ])# _LT_COMPILER_BOILERPLATE | |
598 | |
599 | |
600 # _LT_LINKER_BOILERPLATE | |
601 # ---------------------- | |
602 # Check for linker boilerplate output or warnings with | |
603 # the simple link test code. | |
604 AC_DEFUN([_LT_LINKER_BOILERPLATE], | |
605 [ac_outfile=conftest.$ac_objext | |
606 printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
607 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
608 _lt_linker_boilerplate=`cat conftest.err` | |
609 $rm conftest* | |
610 ])# _LT_LINKER_BOILERPLATE | |
611 | |
612 | |
613 # _LT_AC_SYS_LIBPATH_AIX | |
614 # ---------------------- | |
615 # Links a minimal program and checks the executable | |
616 # for the system default hardcoded library path. In most cases, | |
617 # this is /usr/lib:/lib, but when the MPI compilers are used | |
618 # the location of the communication and MPI libs are included too. | |
619 # If we don't find anything, use the default library path according | |
620 # to the aix ld manual. | |
621 AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], | |
622 [AC_LINK_IFELSE(AC_LANG_PROGRAM,[ | |
623 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
624 }'` | |
625 # Check for a 64-bit object if we didn't find anything. | |
626 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
627 }'`; fi],[]) | |
628 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
629 ])# _LT_AC_SYS_LIBPATH_AIX | |
630 | |
631 | |
632 # _LT_AC_SHELL_INIT(ARG) | |
633 # ---------------------- | |
634 AC_DEFUN([_LT_AC_SHELL_INIT], | |
635 [ifdef([AC_DIVERSION_NOTICE], | |
636 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], | |
637 [AC_DIVERT_PUSH(NOTICE)]) | |
638 $1 | |
639 AC_DIVERT_POP | |
640 ])# _LT_AC_SHELL_INIT | |
641 | |
642 | |
643 # _LT_AC_PROG_ECHO_BACKSLASH | |
644 # -------------------------- | |
645 # Add some code to the start of the generated configure script which | |
646 # will find an echo command which doesn't interpret backslashes. | |
647 AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], | |
648 [_LT_AC_SHELL_INIT([ | |
649 # Check that we are running under the correct shell. | |
650 SHELL=${CONFIG_SHELL-/bin/sh} | |
651 | |
652 case X$ECHO in | |
653 X*--fallback-echo) | |
654 # Remove one level of quotation (which was required for Make). | |
655 ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` | |
656 ;; | |
657 esac | |
658 | |
659 echo=${ECHO-echo} | |
660 if test "X[$]1" = X--no-reexec; then | |
661 # Discard the --no-reexec flag, and continue. | |
662 shift | |
663 elif test "X[$]1" = X--fallback-echo; then | |
664 # Avoid inline document here, it may be left over | |
665 : | |
666 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then | |
667 # Yippee, $echo works! | |
668 : | |
669 else | |
670 # Restart under the correct shell. | |
671 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} | |
672 fi | |
673 | |
674 if test "X[$]1" = X--fallback-echo; then | |
675 # used as fallback echo | |
676 shift | |
677 cat <<EOF | |
678 [$]* | |
679 EOF | |
680 exit 0 | |
681 fi | |
682 | |
683 # The HP-UX ksh and POSIX shell print the target directory to stdout | |
684 # if CDPATH is set. | |
685 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
686 | |
687 if test -z "$ECHO"; then | |
688 if test "X${echo_test_string+set}" != Xset; then | |
689 # find a string as large as possible, as long as the shell can cope with it | |
690 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do | |
691 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
692 if (echo_test_string=`eval $cmd`) 2>/dev/null && | |
693 echo_test_string=`eval $cmd` && | |
694 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null | |
695 then | |
696 break | |
697 fi | |
698 done | |
699 fi | |
700 | |
701 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | |
702 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | |
703 test "X$echo_testing_string" = "X$echo_test_string"; then | |
704 : | |
705 else | |
706 # The Solaris, AIX, and Digital Unix default echo programs unquote | |
707 # backslashes. This makes it impossible to quote backslashes using | |
708 # echo "$something" | sed 's/\\/\\\\/g' | |
709 # | |
710 # So, first we look for a working echo in the user's PATH. | |
711 | |
712 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
713 for dir in $PATH /usr/ucb; do | |
714 IFS="$lt_save_ifs" | |
715 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
716 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
717 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
718 test "X$echo_testing_string" = "X$echo_test_string"; then | |
719 echo="$dir/echo" | |
720 break | |
721 fi | |
722 done | |
723 IFS="$lt_save_ifs" | |
724 | |
725 if test "X$echo" = Xecho; then | |
726 # We didn't find a better echo, so look for alternatives. | |
727 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && | |
728 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && | |
729 test "X$echo_testing_string" = "X$echo_test_string"; then | |
730 # This shell has a builtin print -r that does the trick. | |
731 echo='print -r' | |
732 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && | |
733 test "X$CONFIG_SHELL" != X/bin/ksh; then | |
734 # If we have ksh, try running configure again with it. | |
735 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
736 export ORIGINAL_CONFIG_SHELL | |
737 CONFIG_SHELL=/bin/ksh | |
738 export CONFIG_SHELL | |
739 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} | |
740 else | |
741 # Try using printf. | |
742 echo='printf %s\n' | |
743 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | |
744 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | |
745 test "X$echo_testing_string" = "X$echo_test_string"; then | |
746 # Cool, printf works | |
747 : | |
748 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && | |
749 test "X$echo_testing_string" = 'X\t' && | |
750 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
751 test "X$echo_testing_string" = "X$echo_test_string"; then | |
752 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
753 export CONFIG_SHELL | |
754 SHELL="$CONFIG_SHELL" | |
755 export SHELL | |
756 echo="$CONFIG_SHELL [$]0 --fallback-echo" | |
757 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && | |
758 test "X$echo_testing_string" = 'X\t' && | |
759 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
760 test "X$echo_testing_string" = "X$echo_test_string"; then | |
761 echo="$CONFIG_SHELL [$]0 --fallback-echo" | |
762 else | |
763 # maybe with a smaller string... | |
764 prev=: | |
765 | |
766 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do | |
767 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null | |
768 then | |
769 break | |
770 fi | |
771 prev="$cmd" | |
772 done | |
773 | |
774 if test "$prev" != 'sed 50q "[$]0"'; then | |
775 echo_test_string=`eval $prev` | |
776 export echo_test_string | |
777 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} | |
778 else | |
779 # Oops. We lost completely, so just stick with echo. | |
780 echo=echo | |
781 fi | |
782 fi | |
783 fi | |
784 fi | |
785 fi | |
786 fi | |
787 | |
788 # Copy echo and quote the copy suitably for passing to libtool from | |
789 # the Makefile, instead of quoting the original, which is used later. | |
790 ECHO=$echo | |
791 if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then | |
792 ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" | |
793 fi | |
794 | |
795 AC_SUBST(ECHO) | |
796 ])])# _LT_AC_PROG_ECHO_BACKSLASH | |
797 | |
798 | |
799 # _LT_AC_LOCK | |
800 # ----------- | |
801 AC_DEFUN([_LT_AC_LOCK], | |
802 [AC_ARG_ENABLE([libtool-lock], | |
803 [AC_HELP_STRING([--disable-libtool-lock], | |
804 [avoid locking (might break parallel builds)])]) | |
805 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
806 | |
807 # Some flags need to be propagated to the compiler or linker for good | |
808 # libtool support. | |
809 case $host in | |
810 ia64-*-hpux*) | |
811 # Find out which ABI we are using. | |
812 echo 'int i;' > conftest.$ac_ext | |
813 if AC_TRY_EVAL(ac_compile); then | |
814 case `/usr/bin/file conftest.$ac_objext` in | |
815 *ELF-32*) | |
816 HPUX_IA64_MODE="32" | |
817 ;; | |
818 *ELF-64*) | |
819 HPUX_IA64_MODE="64" | |
820 ;; | |
821 esac | |
822 fi | |
823 rm -rf conftest* | |
824 ;; | |
825 *-*-irix6*) | |
826 # Find out which ABI we are using. | |
827 echo '[#]line __oline__ "configure"' > conftest.$ac_ext | |
828 if AC_TRY_EVAL(ac_compile); then | |
829 if test "$lt_cv_prog_gnu_ld" = yes; then | |
830 case `/usr/bin/file conftest.$ac_objext` in | |
831 *32-bit*) | |
832 LD="${LD-ld} -melf32bsmip" | |
833 ;; | |
834 *N32*) | |
835 LD="${LD-ld} -melf32bmipn32" | |
836 ;; | |
837 *64-bit*) | |
838 LD="${LD-ld} -melf64bmip" | |
839 ;; | |
840 esac | |
841 else | |
842 case `/usr/bin/file conftest.$ac_objext` in | |
843 *32-bit*) | |
844 LD="${LD-ld} -32" | |
845 ;; | |
846 *N32*) | |
847 LD="${LD-ld} -n32" | |
848 ;; | |
849 *64-bit*) | |
850 LD="${LD-ld} -64" | |
851 ;; | |
852 esac | |
853 fi | |
854 fi | |
855 rm -rf conftest* | |
856 ;; | |
857 | |
858 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) | |
859 # Find out which ABI we are using. | |
860 echo 'int i;' > conftest.$ac_ext | |
861 if AC_TRY_EVAL(ac_compile); then | |
862 case `/usr/bin/file conftest.o` in | |
863 *32-bit*) | |
864 case $host in | |
865 x86_64-*linux*) | |
866 LD="${LD-ld} -m elf_i386" | |
867 ;; | |
868 ppc64-*linux*|powerpc64-*linux*) | |
869 LD="${LD-ld} -m elf32ppclinux" | |
870 ;; | |
871 s390x-*linux*) | |
872 LD="${LD-ld} -m elf_s390" | |
873 ;; | |
874 sparc64-*linux*) | |
875 LD="${LD-ld} -m elf32_sparc" | |
876 ;; | |
877 esac | |
878 ;; | |
879 *64-bit*) | |
880 case $host in | |
881 x86_64-*linux*) | |
882 LD="${LD-ld} -m elf_x86_64" | |
883 ;; | |
884 ppc*-*linux*|powerpc*-*linux*) | |
885 LD="${LD-ld} -m elf64ppc" | |
886 ;; | |
887 s390*-*linux*) | |
888 LD="${LD-ld} -m elf64_s390" | |
889 ;; | |
890 sparc*-*linux*) | |
891 LD="${LD-ld} -m elf64_sparc" | |
892 ;; | |
893 esac | |
894 ;; | |
895 esac | |
896 fi | |
897 rm -rf conftest* | |
898 ;; | |
899 | |
900 *-*-sco3.2v5*) | |
901 # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
902 SAVE_CFLAGS="$CFLAGS" | |
903 CFLAGS="$CFLAGS -belf" | |
904 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, | |
905 [AC_LANG_PUSH(C) | |
906 AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) | |
907 AC_LANG_POP]) | |
908 if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
909 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
910 CFLAGS="$SAVE_CFLAGS" | |
911 fi | |
912 ;; | |
913 sparc*-*solaris*) | |
914 # Find out which ABI we are using. | |
915 echo 'int i;' > conftest.$ac_ext | |
916 if AC_TRY_EVAL(ac_compile); then | |
917 case `/usr/bin/file conftest.o` in | |
918 *64-bit*) | |
919 case $lt_cv_prog_gnu_ld in | |
920 yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
921 *) LD="${LD-ld} -64" ;; | |
922 esac | |
923 ;; | |
924 esac | |
925 fi | |
926 rm -rf conftest* | |
927 ;; | |
928 | |
929 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], | |
930 [*-*-cygwin* | *-*-mingw* | *-*-pw32*) | |
931 AC_CHECK_TOOL(DLLTOOL, dlltool, false) | |
932 AC_CHECK_TOOL(AS, as, false) | |
933 AC_CHECK_TOOL(OBJDUMP, objdump, false) | |
934 ;; | |
935 ]) | |
936 esac | |
937 | |
938 need_locks="$enable_libtool_lock" | |
939 | |
940 ])# _LT_AC_LOCK | |
941 | |
942 | |
943 # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, | |
944 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) | 1731 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) |
945 # ---------------------------------------------------------------- | 1732 # ---------------------------------------------------------------- |
946 # Check whether the given compiler option works | 1733 # Check whether the given compiler option works |
947 AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], | 1734 AC_DEFUN([_LT_COMPILER_OPTION], |
948 [AC_REQUIRE([LT_AC_PROG_SED]) | 1735 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
1736 m4_require([_LT_DECL_SED])dnl | |
949 AC_CACHE_CHECK([$1], [$2], | 1737 AC_CACHE_CHECK([$1], [$2], |
950 [$2=no | 1738 [$2=no |
951 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) | 1739 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) |
952 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 1740 echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
953 lt_compiler_flag="$3" | 1741 lt_compiler_flag="$3" |
954 # Insert the option either (1) after the last *FLAGS variable, or | 1742 # Insert the option either (1) after the last *FLAGS variable, or |
955 # (2) before a word containing "conftest.", or (3) at the end. | 1743 # (2) before a word containing "conftest.", or (3) at the end. |
956 # Note that $ac_compile itself does not contain backslashes and begins | 1744 # Note that $ac_compile itself does not contain backslashes and begins |
957 # with a dollar sign (not a hyphen), so the echo should work correctly. | 1745 # with a dollar sign (not a hyphen), so the echo should work correctly. |
966 cat conftest.err >&AS_MESSAGE_LOG_FD | 1754 cat conftest.err >&AS_MESSAGE_LOG_FD |
967 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | 1755 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
968 if (exit $ac_status) && test -s "$ac_outfile"; then | 1756 if (exit $ac_status) && test -s "$ac_outfile"; then |
969 # The compiler can only warn and ignore the option if not recognized | 1757 # The compiler can only warn and ignore the option if not recognized |
970 # So say no if there are warnings other than the usual output. | 1758 # So say no if there are warnings other than the usual output. |
971 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | 1759 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
972 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | 1760 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
973 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | 1761 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
974 $2=yes | 1762 $2=yes |
975 fi | 1763 fi |
976 fi | 1764 fi |
977 $rm conftest* | 1765 $RM conftest* |
978 ]) | 1766 ]) |
979 | 1767 |
980 if test x"[$]$2" = xyes; then | 1768 if test x"[$]$2" = xyes; then |
981 ifelse([$5], , :, [$5]) | 1769 m4_if([$5], , :, [$5]) |
982 else | 1770 else |
983 ifelse([$6], , :, [$6]) | 1771 m4_if([$6], , :, [$6]) |
984 fi | 1772 fi |
985 ])# AC_LIBTOOL_COMPILER_OPTION | 1773 ])# _LT_COMPILER_OPTION |
986 | 1774 |
987 | 1775 # Old name: |
988 # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, | 1776 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) |
989 # [ACTION-SUCCESS], [ACTION-FAILURE]) | 1777 dnl aclocal-1.4 backwards compatibility: |
990 # ------------------------------------------------------------ | 1778 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) |
991 # Check whether the given compiler option works | 1779 |
992 AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], | 1780 |
993 [AC_CACHE_CHECK([$1], [$2], | 1781 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
1782 # [ACTION-SUCCESS], [ACTION-FAILURE]) | |
1783 # ---------------------------------------------------- | |
1784 # Check whether the given linker option works | |
1785 AC_DEFUN([_LT_LINKER_OPTION], | |
1786 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl | |
1787 m4_require([_LT_DECL_SED])dnl | |
1788 AC_CACHE_CHECK([$1], [$2], | |
994 [$2=no | 1789 [$2=no |
995 save_LDFLAGS="$LDFLAGS" | 1790 save_LDFLAGS="$LDFLAGS" |
996 LDFLAGS="$LDFLAGS $3" | 1791 LDFLAGS="$LDFLAGS $3" |
997 printf "$lt_simple_link_test_code" > conftest.$ac_ext | 1792 echo "$lt_simple_link_test_code" > conftest.$ac_ext |
998 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | 1793 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
999 # The linker can only warn and ignore the option if not recognized | 1794 # The linker can only warn and ignore the option if not recognized |
1000 # So say no if there are warnings | 1795 # So say no if there are warnings |
1001 if test -s conftest.err; then | 1796 if test -s conftest.err; then |
1002 # Append any errors to the config.log. | 1797 # Append any errors to the config.log. |
1003 cat conftest.err 1>&AS_MESSAGE_LOG_FD | 1798 cat conftest.err 1>&AS_MESSAGE_LOG_FD |
1004 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | 1799 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
1005 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | 1800 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
1006 if diff conftest.exp conftest.er2 >/dev/null; then | 1801 if diff conftest.exp conftest.er2 >/dev/null; then |
1007 $2=yes | 1802 $2=yes |
1008 fi | 1803 fi |
1009 else | 1804 else |
1010 $2=yes | 1805 $2=yes |
1011 fi | 1806 fi |
1012 fi | 1807 fi |
1013 $rm conftest* | 1808 $RM -r conftest* |
1014 LDFLAGS="$save_LDFLAGS" | 1809 LDFLAGS="$save_LDFLAGS" |
1015 ]) | 1810 ]) |
1016 | 1811 |
1017 if test x"[$]$2" = xyes; then | 1812 if test x"[$]$2" = xyes; then |
1018 ifelse([$4], , :, [$4]) | 1813 m4_if([$4], , :, [$4]) |
1019 else | 1814 else |
1020 ifelse([$5], , :, [$5]) | 1815 m4_if([$5], , :, [$5]) |
1021 fi | 1816 fi |
1022 ])# AC_LIBTOOL_LINKER_OPTION | 1817 ])# _LT_LINKER_OPTION |
1023 | 1818 |
1024 | 1819 # Old name: |
1025 # AC_LIBTOOL_SYS_MAX_CMD_LEN | 1820 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) |
1026 # -------------------------- | 1821 dnl aclocal-1.4 backwards compatibility: |
1027 AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], | 1822 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) |
1028 [# find the maximum length of command line arguments | 1823 |
1824 | |
1825 # LT_CMD_MAX_LEN | |
1826 #--------------- | |
1827 AC_DEFUN([LT_CMD_MAX_LEN], | |
1828 [AC_REQUIRE([AC_CANONICAL_HOST])dnl | |
1829 # find the maximum length of command line arguments | |
1029 AC_MSG_CHECKING([the maximum length of command line arguments]) | 1830 AC_MSG_CHECKING([the maximum length of command line arguments]) |
1030 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl | 1831 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl |
1031 i=0 | 1832 i=0 |
1032 teststring="ABCD" | 1833 teststring="ABCD" |
1033 | 1834 |
1045 # no limit to the length of command line arguments. | 1846 # no limit to the length of command line arguments. |
1046 # Libtool will interpret -1 as no limit whatsoever | 1847 # Libtool will interpret -1 as no limit whatsoever |
1047 lt_cv_sys_max_cmd_len=-1; | 1848 lt_cv_sys_max_cmd_len=-1; |
1048 ;; | 1849 ;; |
1049 | 1850 |
1050 cygwin* | mingw*) | 1851 cygwin* | mingw* | cegcc*) |
1051 # On Win9x/ME, this test blows up -- it succeeds, but takes | 1852 # On Win9x/ME, this test blows up -- it succeeds, but takes |
1052 # about 5 minutes as the teststring grows exponentially. | 1853 # about 5 minutes as the teststring grows exponentially. |
1053 # Worse, since 9x/ME are not pre-emptively multitasking, | 1854 # Worse, since 9x/ME are not pre-emptively multitasking, |
1054 # you end up with a "frozen" computer, even though with patience | 1855 # you end up with a "frozen" computer, even though with patience |
1055 # the test eventually succeeds (with a max line length of 256k). | 1856 # the test eventually succeeds (with a max line length of 256k). |
1106 lt_cv_sys_max_cmd_len=102400 | 1907 lt_cv_sys_max_cmd_len=102400 |
1107 ;; | 1908 ;; |
1108 sysv5* | sco5v6* | sysv4.2uw2*) | 1909 sysv5* | sco5v6* | sysv4.2uw2*) |
1109 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | 1910 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
1110 if test -n "$kargmax"; then | 1911 if test -n "$kargmax"; then |
1111 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` | 1912 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` |
1112 else | 1913 else |
1113 lt_cv_sys_max_cmd_len=32768 | 1914 lt_cv_sys_max_cmd_len=32768 |
1114 fi | 1915 fi |
1115 ;; | 1916 ;; |
1116 *) | 1917 *) |
1117 # If test is not a shell built-in, we'll probably end up computing a | 1918 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
1118 # maximum length that is only half of the actual maximum length, but | 1919 if test -n "$lt_cv_sys_max_cmd_len"; then |
1119 # we can't tell. | 1920 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
1120 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | 1921 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
1121 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ | 1922 else |
1122 = "XX$teststring") >/dev/null 2>&1 && | 1923 # Make teststring a little bigger before we do anything with it. |
1123 new_result=`expr "X$teststring" : ".*" 2>&1` && | 1924 # a 1K string should be a reasonable start. |
1124 lt_cv_sys_max_cmd_len=$new_result && | 1925 for i in 1 2 3 4 5 6 7 8 ; do |
1125 test $i != 17 # 1/2 MB should be enough | 1926 teststring=$teststring$teststring |
1126 do | 1927 done |
1127 i=`expr $i + 1` | 1928 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
1128 teststring=$teststring$teststring | 1929 # If test is not a shell built-in, we'll probably end up computing a |
1129 done | 1930 # maximum length that is only half of the actual maximum length, but |
1130 teststring= | 1931 # we can't tell. |
1131 # Add a significant safety factor because C++ compilers can tack on massive | 1932 while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ |
1132 # amounts of additional arguments before passing them to the linker. | 1933 = "XX$teststring$teststring"; } >/dev/null 2>&1 && |
1133 # It appears as though 1/2 is a usable value. | 1934 test $i != 17 # 1/2 MB should be enough |
1134 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | 1935 do |
1936 i=`expr $i + 1` | |
1937 teststring=$teststring$teststring | |
1938 done | |
1939 # Only check the string length outside the loop. | |
1940 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
1941 teststring= | |
1942 # Add a significant safety factor because C++ compilers can tack on | |
1943 # massive amounts of additional arguments before passing them to the | |
1944 # linker. It appears as though 1/2 is a usable value. | |
1945 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
1946 fi | |
1135 ;; | 1947 ;; |
1136 esac | 1948 esac |
1137 ]) | 1949 ]) |
1138 if test -n $lt_cv_sys_max_cmd_len ; then | 1950 if test -n $lt_cv_sys_max_cmd_len ; then |
1139 AC_MSG_RESULT($lt_cv_sys_max_cmd_len) | 1951 AC_MSG_RESULT($lt_cv_sys_max_cmd_len) |
1140 else | 1952 else |
1141 AC_MSG_RESULT(none) | 1953 AC_MSG_RESULT(none) |
1142 fi | 1954 fi |
1143 ])# AC_LIBTOOL_SYS_MAX_CMD_LEN | 1955 max_cmd_len=$lt_cv_sys_max_cmd_len |
1144 | 1956 _LT_DECL([], [max_cmd_len], [0], |
1145 | 1957 [What is the maximum length of a command?]) |
1146 # _LT_AC_CHECK_DLFCN | 1958 ])# LT_CMD_MAX_LEN |
1147 # ------------------ | 1959 |
1148 AC_DEFUN([_LT_AC_CHECK_DLFCN], | 1960 # Old name: |
1149 [AC_CHECK_HEADERS(dlfcn.h)dnl | 1961 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) |
1150 ])# _LT_AC_CHECK_DLFCN | 1962 dnl aclocal-1.4 backwards compatibility: |
1151 | 1963 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) |
1152 | 1964 |
1153 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, | 1965 |
1154 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) | 1966 # _LT_HEADER_DLFCN |
1155 # --------------------------------------------------------------------- | 1967 # ---------------- |
1156 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], | 1968 m4_defun([_LT_HEADER_DLFCN], |
1157 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl | 1969 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl |
1970 ])# _LT_HEADER_DLFCN | |
1971 | |
1972 | |
1973 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, | |
1974 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) | |
1975 # ---------------------------------------------------------------- | |
1976 m4_defun([_LT_TRY_DLOPEN_SELF], | |
1977 [m4_require([_LT_HEADER_DLFCN])dnl | |
1158 if test "$cross_compiling" = yes; then : | 1978 if test "$cross_compiling" = yes; then : |
1159 [$4] | 1979 [$4] |
1160 else | 1980 else |
1161 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 1981 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
1162 lt_status=$lt_dlunknown | 1982 lt_status=$lt_dlunknown |
1163 cat > conftest.$ac_ext <<EOF | 1983 cat > conftest.$ac_ext <<_LT_EOF |
1164 [#line __oline__ "configure" | 1984 [#line __oline__ "configure" |
1165 #include "confdefs.h" | 1985 #include "confdefs.h" |
1166 | 1986 |
1167 #if HAVE_DLFCN_H | 1987 #if HAVE_DLFCN_H |
1168 #include <dlfcn.h> | 1988 #include <dlfcn.h> |
1200 # endif | 2020 # endif |
1201 # endif | 2021 # endif |
1202 # endif | 2022 # endif |
1203 #endif | 2023 #endif |
1204 | 2024 |
1205 #ifdef __cplusplus | |
1206 extern "C" void exit (int); | |
1207 #endif | |
1208 | |
1209 void fnord() { int i=42;} | 2025 void fnord() { int i=42;} |
1210 int main () | 2026 int main () |
1211 { | 2027 { |
1212 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 2028 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
1213 int status = $lt_dlunknown; | 2029 int status = $lt_dlunknown; |
1219 /* dlclose (self); */ | 2035 /* dlclose (self); */ |
1220 } | 2036 } |
1221 else | 2037 else |
1222 puts (dlerror ()); | 2038 puts (dlerror ()); |
1223 | 2039 |
1224 exit (status); | 2040 return status; |
1225 }] | 2041 }] |
1226 EOF | 2042 _LT_EOF |
1227 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then | 2043 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then |
1228 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null | 2044 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null |
1229 lt_status=$? | 2045 lt_status=$? |
1230 case x$lt_status in | 2046 case x$lt_status in |
1231 x$lt_dlno_uscore) $1 ;; | 2047 x$lt_dlno_uscore) $1 ;; |
1236 # compilation failed | 2052 # compilation failed |
1237 $3 | 2053 $3 |
1238 fi | 2054 fi |
1239 fi | 2055 fi |
1240 rm -fr conftest* | 2056 rm -fr conftest* |
1241 ])# _LT_AC_TRY_DLOPEN_SELF | 2057 ])# _LT_TRY_DLOPEN_SELF |
1242 | 2058 |
1243 | 2059 |
1244 # AC_LIBTOOL_DLOPEN_SELF | 2060 # LT_SYS_DLOPEN_SELF |
1245 # ---------------------- | 2061 # ------------------ |
1246 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], | 2062 AC_DEFUN([LT_SYS_DLOPEN_SELF], |
1247 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl | 2063 [m4_require([_LT_HEADER_DLFCN])dnl |
1248 if test "x$enable_dlopen" != xyes; then | 2064 if test "x$enable_dlopen" != xyes; then |
1249 enable_dlopen=unknown | 2065 enable_dlopen=unknown |
1250 enable_dlopen_self=unknown | 2066 enable_dlopen_self=unknown |
1251 enable_dlopen_self_static=unknown | 2067 enable_dlopen_self_static=unknown |
1252 else | 2068 else |
1258 lt_cv_dlopen="load_add_on" | 2074 lt_cv_dlopen="load_add_on" |
1259 lt_cv_dlopen_libs= | 2075 lt_cv_dlopen_libs= |
1260 lt_cv_dlopen_self=yes | 2076 lt_cv_dlopen_self=yes |
1261 ;; | 2077 ;; |
1262 | 2078 |
1263 mingw* | pw32*) | 2079 mingw* | pw32* | cegcc*) |
1264 lt_cv_dlopen="LoadLibrary" | 2080 lt_cv_dlopen="LoadLibrary" |
1265 lt_cv_dlopen_libs= | 2081 lt_cv_dlopen_libs= |
1266 ;; | 2082 ;; |
1267 | 2083 |
1268 cygwin*) | 2084 cygwin*) |
1269 lt_cv_dlopen="dlopen" | 2085 lt_cv_dlopen="dlopen" |
1270 lt_cv_dlopen_libs= | 2086 lt_cv_dlopen_libs= |
1271 ;; | 2087 ;; |
1272 | 2088 |
1273 darwin*) | 2089 darwin*) |
1274 # if libdl is installed we need to link against it | 2090 # if libdl is installed we need to link against it |
1275 AC_CHECK_LIB([dl], [dlopen], | 2091 AC_CHECK_LIB([dl], [dlopen], |
1276 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ | 2092 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ |
1277 lt_cv_dlopen="dyld" | 2093 lt_cv_dlopen="dyld" |
1278 lt_cv_dlopen_libs= | 2094 lt_cv_dlopen_libs= |
1279 lt_cv_dlopen_self=yes | 2095 lt_cv_dlopen_self=yes |
1280 ]) | 2096 ]) |
1281 ;; | 2097 ;; |
1282 | 2098 |
1283 *) | 2099 *) |
1284 AC_CHECK_FUNC([shl_load], | 2100 AC_CHECK_FUNC([shl_load], |
1285 [lt_cv_dlopen="shl_load"], | 2101 [lt_cv_dlopen="shl_load"], |
1286 [AC_CHECK_LIB([dld], [shl_load], | 2102 [AC_CHECK_LIB([dld], [shl_load], |
1287 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], | 2103 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], |
1288 [AC_CHECK_FUNC([dlopen], | 2104 [AC_CHECK_FUNC([dlopen], |
1289 [lt_cv_dlopen="dlopen"], | 2105 [lt_cv_dlopen="dlopen"], |
1290 [AC_CHECK_LIB([dl], [dlopen], | 2106 [AC_CHECK_LIB([dl], [dlopen], |
1291 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], | 2107 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], |
1292 [AC_CHECK_LIB([svld], [dlopen], | 2108 [AC_CHECK_LIB([svld], [dlopen], |
1293 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], | 2109 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], |
1294 [AC_CHECK_LIB([dld], [dld_link], | 2110 [AC_CHECK_LIB([dld], [dld_link], |
1295 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) | 2111 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) |
1296 ]) | 2112 ]) |
1297 ]) | 2113 ]) |
1298 ]) | 2114 ]) |
1299 ]) | 2115 ]) |
1300 ]) | 2116 ]) |
1318 save_LIBS="$LIBS" | 2134 save_LIBS="$LIBS" |
1319 LIBS="$lt_cv_dlopen_libs $LIBS" | 2135 LIBS="$lt_cv_dlopen_libs $LIBS" |
1320 | 2136 |
1321 AC_CACHE_CHECK([whether a program can dlopen itself], | 2137 AC_CACHE_CHECK([whether a program can dlopen itself], |
1322 lt_cv_dlopen_self, [dnl | 2138 lt_cv_dlopen_self, [dnl |
1323 _LT_AC_TRY_DLOPEN_SELF( | 2139 _LT_TRY_DLOPEN_SELF( |
1324 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, | 2140 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, |
1325 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) | 2141 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) |
1326 ]) | 2142 ]) |
1327 | 2143 |
1328 if test "x$lt_cv_dlopen_self" = xyes; then | 2144 if test "x$lt_cv_dlopen_self" = xyes; then |
1329 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | 2145 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
1330 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], | 2146 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], |
1331 lt_cv_dlopen_self_static, [dnl | 2147 lt_cv_dlopen_self_static, [dnl |
1332 _LT_AC_TRY_DLOPEN_SELF( | 2148 _LT_TRY_DLOPEN_SELF( |
1333 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, | 2149 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, |
1334 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) | 2150 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) |
1335 ]) | 2151 ]) |
1336 fi | 2152 fi |
1337 | 2153 |
1349 case $lt_cv_dlopen_self_static in | 2165 case $lt_cv_dlopen_self_static in |
1350 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | 2166 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
1351 *) enable_dlopen_self_static=unknown ;; | 2167 *) enable_dlopen_self_static=unknown ;; |
1352 esac | 2168 esac |
1353 fi | 2169 fi |
1354 ])# AC_LIBTOOL_DLOPEN_SELF | 2170 _LT_DECL([dlopen_support], [enable_dlopen], [0], |
1355 | 2171 [Whether dlopen is supported]) |
1356 | 2172 _LT_DECL([dlopen_self], [enable_dlopen_self], [0], |
1357 # AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) | 2173 [Whether dlopen of programs is supported]) |
1358 # --------------------------------- | 2174 _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], |
1359 # Check to see if options -c and -o are simultaneously supported by compiler | 2175 [Whether dlopen of statically linked programs is supported]) |
1360 AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], | 2176 ])# LT_SYS_DLOPEN_SELF |
1361 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl | 2177 |
2178 # Old name: | |
2179 AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) | |
2180 dnl aclocal-1.4 backwards compatibility: | |
2181 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) | |
2182 | |
2183 | |
2184 # _LT_COMPILER_C_O([TAGNAME]) | |
2185 # --------------------------- | |
2186 # Check to see if options -c and -o are simultaneously supported by compiler. | |
2187 # This macro does not hard code the compiler like AC_PROG_CC_C_O. | |
2188 m4_defun([_LT_COMPILER_C_O], | |
2189 [m4_require([_LT_DECL_SED])dnl | |
2190 m4_require([_LT_FILEUTILS_DEFAULTS])dnl | |
2191 m4_require([_LT_TAG_COMPILER])dnl | |
1362 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], | 2192 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], |
1363 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], | 2193 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], |
1364 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no | 2194 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no |
1365 $rm -r conftest 2>/dev/null | 2195 $RM -r conftest 2>/dev/null |
1366 mkdir conftest | 2196 mkdir conftest |
1367 cd conftest | 2197 cd conftest |
1368 mkdir out | 2198 mkdir out |
1369 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 2199 echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
1370 | 2200 |
1371 lt_compiler_flag="-o out/conftest2.$ac_objext" | 2201 lt_compiler_flag="-o out/conftest2.$ac_objext" |
1372 # Insert the option either (1) after the last *FLAGS variable, or | 2202 # Insert the option either (1) after the last *FLAGS variable, or |
1373 # (2) before a word containing "conftest.", or (3) at the end. | 2203 # (2) before a word containing "conftest.", or (3) at the end. |
1374 # Note that $ac_compile itself does not contain backslashes and begins | 2204 # Note that $ac_compile itself does not contain backslashes and begins |
1384 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | 2214 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
1385 if (exit $ac_status) && test -s out/conftest2.$ac_objext | 2215 if (exit $ac_status) && test -s out/conftest2.$ac_objext |
1386 then | 2216 then |
1387 # The compiler can only warn and ignore the option if not recognized | 2217 # The compiler can only warn and ignore the option if not recognized |
1388 # So say no if there are warnings | 2218 # So say no if there are warnings |
1389 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | 2219 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
1390 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | 2220 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
1391 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | 2221 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
1392 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes | 2222 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
1393 fi | 2223 fi |
1394 fi | 2224 fi |
1395 chmod u+w . 2>&AS_MESSAGE_LOG_FD | 2225 chmod u+w . 2>&AS_MESSAGE_LOG_FD |
1396 $rm conftest* | 2226 $RM conftest* |
1397 # SGI C++ compiler will create directory out/ii_files/ for | 2227 # SGI C++ compiler will create directory out/ii_files/ for |
1398 # template instantiation | 2228 # template instantiation |
1399 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | 2229 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
1400 $rm out/* && rmdir out | 2230 $RM out/* && rmdir out |
1401 cd .. | 2231 cd .. |
1402 rmdir conftest | 2232 $RM -r conftest |
1403 $rm conftest* | 2233 $RM conftest* |
1404 ]) | 2234 ]) |
1405 ])# AC_LIBTOOL_PROG_CC_C_O | 2235 _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], |
1406 | 2236 [Does compiler simultaneously support -c and -o options?]) |
1407 | 2237 ])# _LT_COMPILER_C_O |
1408 # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) | 2238 |
1409 # ----------------------------------------- | 2239 |
2240 # _LT_COMPILER_FILE_LOCKS([TAGNAME]) | |
2241 # ---------------------------------- | |
1410 # Check to see if we can do hard links to lock some files if needed | 2242 # Check to see if we can do hard links to lock some files if needed |
1411 AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], | 2243 m4_defun([_LT_COMPILER_FILE_LOCKS], |
1412 [AC_REQUIRE([_LT_AC_LOCK])dnl | 2244 [m4_require([_LT_ENABLE_LOCK])dnl |
2245 m4_require([_LT_FILEUTILS_DEFAULTS])dnl | |
2246 _LT_COMPILER_C_O([$1]) | |
1413 | 2247 |
1414 hard_links="nottested" | 2248 hard_links="nottested" |
1415 if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then | 2249 if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then |
1416 # do not overwrite the value of need_locks provided by the user | 2250 # do not overwrite the value of need_locks provided by the user |
1417 AC_MSG_CHECKING([if we can lock with hard links]) | 2251 AC_MSG_CHECKING([if we can lock with hard links]) |
1418 hard_links=yes | 2252 hard_links=yes |
1419 $rm conftest* | 2253 $RM conftest* |
1420 ln conftest.a conftest.b 2>/dev/null && hard_links=no | 2254 ln conftest.a conftest.b 2>/dev/null && hard_links=no |
1421 touch conftest.a | 2255 touch conftest.a |
1422 ln conftest.a conftest.b 2>&5 || hard_links=no | 2256 ln conftest.a conftest.b 2>&5 || hard_links=no |
1423 ln conftest.a conftest.b 2>/dev/null && hard_links=no | 2257 ln conftest.a conftest.b 2>/dev/null && hard_links=no |
1424 AC_MSG_RESULT([$hard_links]) | 2258 AC_MSG_RESULT([$hard_links]) |
1427 need_locks=warn | 2261 need_locks=warn |
1428 fi | 2262 fi |
1429 else | 2263 else |
1430 need_locks=no | 2264 need_locks=no |
1431 fi | 2265 fi |
1432 ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS | 2266 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) |
1433 | 2267 ])# _LT_COMPILER_FILE_LOCKS |
1434 | 2268 |
1435 # AC_LIBTOOL_OBJDIR | 2269 |
1436 # ----------------- | 2270 # _LT_CHECK_OBJDIR |
1437 AC_DEFUN([AC_LIBTOOL_OBJDIR], | 2271 # ---------------- |
2272 m4_defun([_LT_CHECK_OBJDIR], | |
1438 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], | 2273 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], |
1439 [rm -f .libs 2>/dev/null | 2274 [rm -f .libs 2>/dev/null |
1440 mkdir .libs 2>/dev/null | 2275 mkdir .libs 2>/dev/null |
1441 if test -d .libs; then | 2276 if test -d .libs; then |
1442 lt_cv_objdir=.libs | 2277 lt_cv_objdir=.libs |
1444 # MS-DOS does not allow filenames that begin with a dot. | 2279 # MS-DOS does not allow filenames that begin with a dot. |
1445 lt_cv_objdir=_libs | 2280 lt_cv_objdir=_libs |
1446 fi | 2281 fi |
1447 rmdir .libs 2>/dev/null]) | 2282 rmdir .libs 2>/dev/null]) |
1448 objdir=$lt_cv_objdir | 2283 objdir=$lt_cv_objdir |
1449 ])# AC_LIBTOOL_OBJDIR | 2284 _LT_DECL([], [objdir], [0], |
1450 | 2285 [The name of the directory that contains temporary libtool files])dnl |
1451 | 2286 m4_pattern_allow([LT_OBJDIR])dnl |
1452 # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) | 2287 AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", |
1453 # ---------------------------------------------- | 2288 [Define to the sub-directory in which libtool stores uninstalled libraries.]) |
2289 ])# _LT_CHECK_OBJDIR | |
2290 | |
2291 | |
2292 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) | |
2293 # -------------------------------------- | |
1454 # Check hardcoding attributes. | 2294 # Check hardcoding attributes. |
1455 AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], | 2295 m4_defun([_LT_LINKER_HARDCODE_LIBPATH], |
1456 [AC_MSG_CHECKING([how to hardcode library paths into programs]) | 2296 [AC_MSG_CHECKING([how to hardcode library paths into programs]) |
1457 _LT_AC_TAGVAR(hardcode_action, $1)= | 2297 _LT_TAGVAR(hardcode_action, $1)= |
1458 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ | 2298 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || |
1459 test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ | 2299 test -n "$_LT_TAGVAR(runpath_var, $1)" || |
1460 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then | 2300 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then |
1461 | 2301 |
1462 # We can hardcode non-existant directories. | 2302 # We can hardcode non-existent directories. |
1463 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && | 2303 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && |
1464 # If the only mechanism to avoid hardcoding is shlibpath_var, we | 2304 # If the only mechanism to avoid hardcoding is shlibpath_var, we |
1465 # have to relink, otherwise we might link with an installed library | 2305 # have to relink, otherwise we might link with an installed library |
1466 # when we should be linking with a yet-to-be-installed one | 2306 # when we should be linking with a yet-to-be-installed one |
1467 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && | 2307 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && |
1468 test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then | 2308 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then |
1469 # Linking always hardcodes the temporary library directory. | 2309 # Linking always hardcodes the temporary library directory. |
1470 _LT_AC_TAGVAR(hardcode_action, $1)=relink | 2310 _LT_TAGVAR(hardcode_action, $1)=relink |
1471 else | 2311 else |
1472 # We can link without hardcoding, and we can hardcode nonexisting dirs. | 2312 # We can link without hardcoding, and we can hardcode nonexisting dirs. |
1473 _LT_AC_TAGVAR(hardcode_action, $1)=immediate | 2313 _LT_TAGVAR(hardcode_action, $1)=immediate |
1474 fi | 2314 fi |
1475 else | 2315 else |
1476 # We cannot hardcode anything, or else we can only hardcode existing | 2316 # We cannot hardcode anything, or else we can only hardcode existing |
1477 # directories. | 2317 # directories. |
1478 _LT_AC_TAGVAR(hardcode_action, $1)=unsupported | 2318 _LT_TAGVAR(hardcode_action, $1)=unsupported |
1479 fi | 2319 fi |
1480 AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) | 2320 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) |
1481 | 2321 |
1482 if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then | 2322 if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || |
2323 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then | |
1483 # Fast installation is not supported | 2324 # Fast installation is not supported |
1484 enable_fast_install=no | 2325 enable_fast_install=no |
1485 elif test "$shlibpath_overrides_runpath" = yes || | 2326 elif test "$shlibpath_overrides_runpath" = yes || |
1486 test "$enable_shared" = no; then | 2327 test "$enable_shared" = no; then |
1487 # Fast installation is not necessary | 2328 # Fast installation is not necessary |
1488 enable_fast_install=needless | 2329 enable_fast_install=needless |
1489 fi | 2330 fi |
1490 ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH | 2331 _LT_TAGDECL([], [hardcode_action], [0], |
1491 | 2332 [How to hardcode a shared library path into an executable]) |
1492 | 2333 ])# _LT_LINKER_HARDCODE_LIBPATH |
1493 # AC_LIBTOOL_SYS_LIB_STRIP | 2334 |
1494 # ------------------------ | 2335 |
1495 AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], | 2336 # _LT_CMD_STRIPLIB |
1496 [striplib= | 2337 # ---------------- |
2338 m4_defun([_LT_CMD_STRIPLIB], | |
2339 [m4_require([_LT_DECL_EGREP]) | |
2340 striplib= | |
1497 old_striplib= | 2341 old_striplib= |
1498 AC_MSG_CHECKING([whether stripping libraries is possible]) | 2342 AC_MSG_CHECKING([whether stripping libraries is possible]) |
1499 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | 2343 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
1500 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | 2344 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
1501 test -z "$striplib" && striplib="$STRIP --strip-unneeded" | 2345 test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
1502 AC_MSG_RESULT([yes]) | 2346 AC_MSG_RESULT([yes]) |
1503 else | 2347 else |
1504 # FIXME - insert some real tests, host_os isn't really good enough | 2348 # FIXME - insert some real tests, host_os isn't really good enough |
1505 case $host_os in | 2349 case $host_os in |
1506 darwin*) | 2350 darwin*) |
1507 if test -n "$STRIP" ; then | 2351 if test -n "$STRIP" ; then |
1508 striplib="$STRIP -x" | 2352 striplib="$STRIP -x" |
1509 AC_MSG_RESULT([yes]) | 2353 old_striplib="$STRIP -S" |
1510 else | 2354 AC_MSG_RESULT([yes]) |
1511 AC_MSG_RESULT([no]) | 2355 else |
1512 fi | 2356 AC_MSG_RESULT([no]) |
1513 ;; | 2357 fi |
1514 *) | 2358 ;; |
1515 AC_MSG_RESULT([no]) | 2359 *) |
2360 AC_MSG_RESULT([no]) | |
1516 ;; | 2361 ;; |
1517 esac | 2362 esac |
1518 fi | 2363 fi |
1519 ])# AC_LIBTOOL_SYS_LIB_STRIP | 2364 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) |
1520 | 2365 _LT_DECL([], [striplib], [1]) |
1521 | 2366 ])# _LT_CMD_STRIPLIB |
1522 # AC_LIBTOOL_SYS_DYNAMIC_LINKER | 2367 |
2368 | |
2369 # _LT_SYS_DYNAMIC_LINKER([TAG]) | |
1523 # ----------------------------- | 2370 # ----------------------------- |
1524 # PORTME Fill in your ld.so characteristics | 2371 # PORTME Fill in your ld.so characteristics |
1525 AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], | 2372 m4_defun([_LT_SYS_DYNAMIC_LINKER], |
1526 [AC_MSG_CHECKING([dynamic linker characteristics]) | 2373 [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
2374 m4_require([_LT_DECL_EGREP])dnl | |
2375 m4_require([_LT_FILEUTILS_DEFAULTS])dnl | |
2376 m4_require([_LT_DECL_OBJDUMP])dnl | |
2377 m4_require([_LT_DECL_SED])dnl | |
2378 AC_MSG_CHECKING([dynamic linker characteristics]) | |
2379 m4_if([$1], | |
2380 [], [ | |
2381 if test "$GCC" = yes; then | |
2382 case $host_os in | |
2383 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
2384 *) lt_awk_arg="/^libraries:/" ;; | |
2385 esac | |
2386 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
2387 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | |
2388 # if the path contains ";" then we assume it to be the separator | |
2389 # otherwise default to the standard path separator (i.e. ":") - it is | |
2390 # assumed that no part of a normal pathname contains ";" but that should | |
2391 # okay in the real world where ";" in dirpaths is itself problematic. | |
2392 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
2393 else | |
2394 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
2395 fi | |
2396 # Ok, now we have the path, separated by spaces, we can step through it | |
2397 # and add multilib dir if necessary. | |
2398 lt_tmp_lt_search_path_spec= | |
2399 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
2400 for lt_sys_path in $lt_search_path_spec; do | |
2401 if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
2402 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
2403 else | |
2404 test -d "$lt_sys_path" && \ | |
2405 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
2406 fi | |
2407 done | |
2408 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | |
2409 BEGIN {RS=" "; FS="/|\n";} { | |
2410 lt_foo=""; | |
2411 lt_count=0; | |
2412 for (lt_i = NF; lt_i > 0; lt_i--) { | |
2413 if ($lt_i != "" && $lt_i != ".") { | |
2414 if ($lt_i == "..") { | |
2415 lt_count++; | |
2416 } else { | |
2417 if (lt_count == 0) { | |
2418 lt_foo="/" $lt_i lt_foo; | |
2419 } else { | |
2420 lt_count--; | |
2421 } | |
2422 } | |
2423 } | |
2424 } | |
2425 if (lt_foo != "") { lt_freq[[lt_foo]]++; } | |
2426 if (lt_freq[[lt_foo]] == 1) { print lt_foo; } | |
2427 }'` | |
2428 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | |
2429 else | |
2430 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
2431 fi]) | |
1527 library_names_spec= | 2432 library_names_spec= |
1528 libname_spec='lib$name' | 2433 libname_spec='lib$name' |
1529 soname_spec= | 2434 soname_spec= |
1530 shrext_cmds=".so" | 2435 shrext_cmds=".so" |
1531 postinstall_cmds= | 2436 postinstall_cmds= |
1535 shlibpath_var= | 2440 shlibpath_var= |
1536 shlibpath_overrides_runpath=unknown | 2441 shlibpath_overrides_runpath=unknown |
1537 version_type=none | 2442 version_type=none |
1538 dynamic_linker="$host_os ld.so" | 2443 dynamic_linker="$host_os ld.so" |
1539 sys_lib_dlsearch_path_spec="/lib /usr/lib" | 2444 sys_lib_dlsearch_path_spec="/lib /usr/lib" |
1540 if test "$GCC" = yes; then | |
1541 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
1542 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | |
1543 # if the path contains ";" then we assume it to be the separator | |
1544 # otherwise default to the standard path separator (i.e. ":") - it is | |
1545 # assumed that no part of a normal pathname contains ";" but that should | |
1546 # okay in the real world where ";" in dirpaths is itself problematic. | |
1547 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
1548 else | |
1549 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
1550 fi | |
1551 else | |
1552 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
1553 fi | |
1554 need_lib_prefix=unknown | 2445 need_lib_prefix=unknown |
1555 hardcode_into_libs=no | 2446 hardcode_into_libs=no |
1556 | 2447 |
1557 # when you set need_version to no, make sure it does not cause -set_version | 2448 # when you set need_version to no, make sure it does not cause -set_version |
1558 # flags to be left without arguments | 2449 # flags to be left without arguments |
1566 | 2457 |
1567 # AIX 3 has no versioning support, so we append a major version to the name. | 2458 # AIX 3 has no versioning support, so we append a major version to the name. |
1568 soname_spec='${libname}${release}${shared_ext}$major' | 2459 soname_spec='${libname}${release}${shared_ext}$major' |
1569 ;; | 2460 ;; |
1570 | 2461 |
1571 aix4* | aix5*) | 2462 aix[[4-9]]*) |
1572 version_type=linux | 2463 version_type=linux |
1573 need_lib_prefix=no | 2464 need_lib_prefix=no |
1574 need_version=no | 2465 need_version=no |
1575 hardcode_into_libs=yes | 2466 hardcode_into_libs=yes |
1576 if test "$host_cpu" = ia64; then | 2467 if test "$host_cpu" = ia64; then |
1585 # development snapshots of GCC prior to 3.0. | 2476 # development snapshots of GCC prior to 3.0. |
1586 case $host_os in | 2477 case $host_os in |
1587 aix4 | aix4.[[01]] | aix4.[[01]].*) | 2478 aix4 | aix4.[[01]] | aix4.[[01]].*) |
1588 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 2479 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
1589 echo ' yes ' | 2480 echo ' yes ' |
1590 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | 2481 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
1591 : | 2482 : |
1592 else | 2483 else |
1593 can_build_shared=no | 2484 can_build_shared=no |
1594 fi | 2485 fi |
1595 ;; | 2486 ;; |
1611 shlibpath_var=LIBPATH | 2502 shlibpath_var=LIBPATH |
1612 fi | 2503 fi |
1613 ;; | 2504 ;; |
1614 | 2505 |
1615 amigaos*) | 2506 amigaos*) |
1616 library_names_spec='$libname.ixlibrary $libname.a' | 2507 case $host_cpu in |
1617 # Create ${libname}_ixlibrary.a entries in /sys/libs. | 2508 powerpc) |
1618 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' | 2509 # Since July 2007 AmigaOS4 officially supports .so libraries. |
2510 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
2511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
2512 ;; | |
2513 m68k) | |
2514 library_names_spec='$libname.ixlibrary $libname.a' | |
2515 # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
2516 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' | |
2517 ;; | |
2518 esac | |
1619 ;; | 2519 ;; |
1620 | 2520 |
1621 beos*) | 2521 beos*) |
1622 library_names_spec='${libname}${shared_ext}' | 2522 library_names_spec='${libname}${shared_ext}' |
1623 dynamic_linker="$host_os ld.so" | 2523 dynamic_linker="$host_os ld.so" |
1636 # the default ld.so.conf also contains /usr/contrib/lib and | 2536 # the default ld.so.conf also contains /usr/contrib/lib and |
1637 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 2537 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
1638 # libtool to hard-code these into programs | 2538 # libtool to hard-code these into programs |
1639 ;; | 2539 ;; |
1640 | 2540 |
1641 cygwin* | mingw* | pw32*) | 2541 cygwin* | mingw* | pw32* | cegcc*) |
1642 version_type=windows | 2542 version_type=windows |
1643 shrext_cmds=".dll" | 2543 shrext_cmds=".dll" |
1644 need_version=no | 2544 need_version=no |
1645 need_lib_prefix=no | 2545 need_lib_prefix=no |
1646 | 2546 |
1647 case $GCC,$host_os in | 2547 case $GCC,$host_os in |
1648 yes,cygwin* | yes,mingw* | yes,pw32*) | 2548 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) |
1649 library_names_spec='$libname.dll.a' | 2549 library_names_spec='$libname.dll.a' |
1650 # DLL is installed to $(libdir)/../bin by postinstall_cmds | 2550 # DLL is installed to $(libdir)/../bin by postinstall_cmds |
1651 postinstall_cmds='base_file=`basename \${file}`~ | 2551 postinstall_cmds='base_file=`basename \${file}`~ |
1652 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | 2552 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
1653 dldir=$destdir/`dirname \$dlpath`~ | 2553 dldir=$destdir/`dirname \$dlpath`~ |
1654 test -d \$dldir || mkdir -p \$dldir~ | 2554 test -d \$dldir || mkdir -p \$dldir~ |
1655 $install_prog $dir/$dlname \$dldir/$dlname~ | 2555 $install_prog $dir/$dlname \$dldir/$dlname~ |
1656 chmod a+x \$dldir/$dlname' | 2556 chmod a+x \$dldir/$dlname~ |
2557 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
2558 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
2559 fi' | |
1657 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 2560 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
1658 dlpath=$dir/\$dldll~ | 2561 dlpath=$dir/\$dldll~ |
1659 $rm \$dlpath' | 2562 $RM \$dlpath' |
1660 shlibpath_overrides_runpath=yes | 2563 shlibpath_overrides_runpath=yes |
1661 | 2564 |
1662 case $host_os in | 2565 case $host_os in |
1663 cygwin*) | 2566 cygwin*) |
1664 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 2567 # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
1665 #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | 2568 #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
1666 soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}' | 2569 soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}' |
1667 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | 2570 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
1668 ;; | 2571 ;; |
1669 mingw*) | 2572 mingw* | cegcc*) |
1670 # MinGW DLLs use traditional 'lib' prefix | 2573 # MinGW DLLs use traditional 'lib' prefix |
1671 #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | 2574 #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
1672 soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}' | 2575 soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}' |
1673 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 2576 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
1674 if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then | 2577 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then |
1675 # It is most probably a Windows format PATH printed by | 2578 # It is most probably a Windows format PATH printed by |
1676 # mingw gcc, but we are running on Cygwin. Gcc prints its search | 2579 # mingw gcc, but we are running on Cygwin. Gcc prints its search |
1677 # path with ; separators, and with drive letters. We can handle the | 2580 # path with ; separators, and with drive letters. We can handle the |
1678 # drive letters (cygwin fileutils understands them), so leave them, | 2581 # drive letters (cygwin fileutils understands them), so leave them, |
1679 # especially as we might pass files found there to a mingw objdump, | 2582 # especially as we might pass files found there to a mingw objdump, |
1680 # which wouldn't understand a cygwinified path. Ahh. | 2583 # which wouldn't understand a cygwinified path. Ahh. |
1681 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 2584 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
1682 else | 2585 else |
1683 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | 2586 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
1684 fi | 2587 fi |
1685 ;; | 2588 ;; |
1686 pw32*) | 2589 pw32*) |
1687 # pw32 DLLs use 'pw' prefix rather than 'lib' | 2590 # pw32 DLLs use 'pw' prefix rather than 'lib' |
1688 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | 2591 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
1702 darwin* | rhapsody*) | 2605 darwin* | rhapsody*) |
1703 dynamic_linker="$host_os dyld" | 2606 dynamic_linker="$host_os dyld" |
1704 version_type=darwin | 2607 version_type=darwin |
1705 need_lib_prefix=no | 2608 need_lib_prefix=no |
1706 need_version=no | 2609 need_version=no |
1707 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | 2610 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
1708 soname_spec='${libname}${release}${major}$shared_ext' | 2611 soname_spec='${libname}${release}${major}$shared_ext' |
1709 shlibpath_overrides_runpath=yes | 2612 shlibpath_overrides_runpath=yes |
1710 shlibpath_var=DYLD_LIBRARY_PATH | 2613 shlibpath_var=DYLD_LIBRARY_PATH |
1711 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | 2614 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
1712 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | 2615 m4_if([$1], [],[ |
1713 if test "$GCC" = yes; then | 2616 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) |
1714 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` | |
1715 else | |
1716 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
1717 fi | |
1718 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 2617 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
1719 ;; | 2618 ;; |
1720 | 2619 |
1721 dgux*) | 2620 dgux*) |
1722 version_type=linux | 2621 version_type=linux |
1727 shlibpath_var=LD_LIBRARY_PATH | 2626 shlibpath_var=LD_LIBRARY_PATH |
1728 ;; | 2627 ;; |
1729 | 2628 |
1730 freebsd1*) | 2629 freebsd1*) |
1731 dynamic_linker=no | 2630 dynamic_linker=no |
1732 ;; | |
1733 | |
1734 kfreebsd*-gnu) | |
1735 version_type=linux | |
1736 need_lib_prefix=no | |
1737 need_version=no | |
1738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
1739 soname_spec='${libname}${release}${shared_ext}$major' | |
1740 shlibpath_var=LD_LIBRARY_PATH | |
1741 shlibpath_overrides_runpath=no | |
1742 hardcode_into_libs=yes | |
1743 dynamic_linker='GNU ld.so' | |
1744 ;; | 2631 ;; |
1745 | 2632 |
1746 freebsd* | dragonfly*) | 2633 freebsd* | dragonfly*) |
1747 # DragonFly does not have aout. When/if they implement a new | 2634 # DragonFly does not have aout. When/if they implement a new |
1748 # versioning mechanism, adjust this. | 2635 # versioning mechanism, adjust this. |
1778 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ | 2665 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ |
1779 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) | 2666 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) |
1780 shlibpath_overrides_runpath=no | 2667 shlibpath_overrides_runpath=no |
1781 hardcode_into_libs=yes | 2668 hardcode_into_libs=yes |
1782 ;; | 2669 ;; |
1783 freebsd*) # from 4.6 on | 2670 *) # from 4.6 on, and DragonFly |
1784 shlibpath_overrides_runpath=yes | 2671 shlibpath_overrides_runpath=yes |
1785 hardcode_into_libs=yes | 2672 hardcode_into_libs=yes |
1786 ;; | 2673 ;; |
1787 esac | 2674 esac |
1788 ;; | 2675 ;; |
1817 else | 2704 else |
1818 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 2705 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
1819 fi | 2706 fi |
1820 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 2707 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
1821 ;; | 2708 ;; |
1822 hppa*64*) | 2709 hppa*64*) |
1823 shrext_cmds='.sl' | 2710 shrext_cmds='.sl' |
1824 hardcode_into_libs=yes | 2711 hardcode_into_libs=yes |
1825 dynamic_linker="$host_os dld.sl" | 2712 dynamic_linker="$host_os dld.sl" |
1826 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 2713 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
1827 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 2714 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
1828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 2715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1829 soname_spec='${libname}${release}${shared_ext}$major' | 2716 soname_spec='${libname}${release}${shared_ext}$major' |
1830 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 2717 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
1831 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 2718 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
1832 ;; | 2719 ;; |
1833 *) | 2720 *) |
1834 shrext_cmds='.sl' | 2721 shrext_cmds='.sl' |
1835 dynamic_linker="$host_os dld.sl" | 2722 dynamic_linker="$host_os dld.sl" |
1836 shlibpath_var=SHLIB_PATH | 2723 shlibpath_var=SHLIB_PATH |
1837 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 2724 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
1838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 2725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1841 esac | 2728 esac |
1842 # HP-UX runs *really* slowly unless shared libraries are mode 555. | 2729 # HP-UX runs *really* slowly unless shared libraries are mode 555. |
1843 postinstall_cmds='chmod 555 $lib' | 2730 postinstall_cmds='chmod 555 $lib' |
1844 ;; | 2731 ;; |
1845 | 2732 |
1846 interix3*) | 2733 interix[[3-9]]*) |
1847 version_type=linux | 2734 version_type=linux |
1848 need_lib_prefix=no | 2735 need_lib_prefix=no |
1849 need_version=no | 2736 need_version=no |
1850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 2737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
1851 soname_spec='${libname}${release}${shared_ext}$major' | 2738 soname_spec='${libname}${release}${shared_ext}$major' |
1896 linux*oldld* | linux*aout* | linux*coff*) | 2783 linux*oldld* | linux*aout* | linux*coff*) |
1897 dynamic_linker=no | 2784 dynamic_linker=no |
1898 ;; | 2785 ;; |
1899 | 2786 |
1900 # This must be Linux ELF. | 2787 # This must be Linux ELF. |
1901 linux*) | 2788 linux* | k*bsd*-gnu) |
1902 version_type=linux | 2789 version_type=linux |
1903 need_lib_prefix=no | 2790 need_lib_prefix=no |
1904 need_version=no | 2791 need_version=no |
1905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 2792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1906 soname_spec='${libname}${release}${shared_ext}$major' | 2793 soname_spec='${libname}${release}${shared_ext}$major' |
1907 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 2794 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
1908 shlibpath_var=LD_LIBRARY_PATH | 2795 shlibpath_var=LD_LIBRARY_PATH |
1909 shlibpath_overrides_runpath=no | 2796 shlibpath_overrides_runpath=no |
2797 # Some binutils ld are patched to set DT_RUNPATH | |
2798 save_LDFLAGS=$LDFLAGS | |
2799 save_libdir=$libdir | |
2800 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ | |
2801 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" | |
2802 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], | |
2803 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], | |
2804 [shlibpath_overrides_runpath=yes])]) | |
2805 LDFLAGS=$save_LDFLAGS | |
2806 libdir=$save_libdir | |
2807 | |
1910 # This implies no fast_install, which is unacceptable. | 2808 # This implies no fast_install, which is unacceptable. |
1911 # Some rework will be needed to allow for fast_install | 2809 # Some rework will be needed to allow for fast_install |
1912 # before this can be enabled. | 2810 # before this can be enabled. |
1913 hardcode_into_libs=yes | 2811 hardcode_into_libs=yes |
1914 | 2812 |
1915 # Append ld.so.conf contents to the search path | 2813 # Append ld.so.conf contents to the search path |
1916 if test -f /etc/ld.so.conf; then | 2814 if test -f /etc/ld.so.conf; then |
1917 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | 2815 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' ' '` |
1918 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | 2816 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
1919 fi | 2817 fi |
1920 | 2818 |
1921 # We used to test for /lib/ld.so.1 and disable shared libraries on | 2819 # We used to test for /lib/ld.so.1 and disable shared libraries on |
1922 # powerpc, because MkLinux only supported shared libraries with the | 2820 # powerpc, because MkLinux only supported shared libraries with the |
1925 # people can always --disable-shared, the test was removed, and we | 2823 # people can always --disable-shared, the test was removed, and we |
1926 # assume the GNU/Linux dynamic linker is in use. | 2824 # assume the GNU/Linux dynamic linker is in use. |
1927 dynamic_linker='GNU/Linux ld.so' | 2825 dynamic_linker='GNU/Linux ld.so' |
1928 ;; | 2826 ;; |
1929 | 2827 |
1930 knetbsd*-gnu) | |
1931 version_type=linux | |
1932 need_lib_prefix=no | |
1933 need_version=no | |
1934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
1935 soname_spec='${libname}${release}${shared_ext}$major' | |
1936 shlibpath_var=LD_LIBRARY_PATH | |
1937 shlibpath_overrides_runpath=no | |
1938 hardcode_into_libs=yes | |
1939 dynamic_linker='GNU ld.so' | |
1940 ;; | |
1941 | |
1942 netbsd*) | 2828 netbsd*) |
1943 version_type=sunos | 2829 version_type=sunos |
1944 need_lib_prefix=no | 2830 need_lib_prefix=no |
1945 need_version=no | 2831 need_version=no |
1946 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 2832 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
1947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 2833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
1948 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 2834 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
1949 dynamic_linker='NetBSD (a.out) ld.so' | 2835 dynamic_linker='NetBSD (a.out) ld.so' |
1950 else | 2836 else |
1951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 2837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
1962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 2848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1963 shlibpath_var=LD_LIBRARY_PATH | 2849 shlibpath_var=LD_LIBRARY_PATH |
1964 shlibpath_overrides_runpath=yes | 2850 shlibpath_overrides_runpath=yes |
1965 ;; | 2851 ;; |
1966 | 2852 |
1967 nto-qnx*) | 2853 *nto* | *qnx*) |
1968 version_type=linux | 2854 version_type=qnx |
1969 need_lib_prefix=no | 2855 need_lib_prefix=no |
1970 need_version=no | 2856 need_version=no |
1971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 2857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1972 soname_spec='${libname}${release}${shared_ext}$major' | 2858 soname_spec='${libname}${release}${shared_ext}$major' |
1973 shlibpath_var=LD_LIBRARY_PATH | 2859 shlibpath_var=LD_LIBRARY_PATH |
1974 shlibpath_overrides_runpath=yes | 2860 shlibpath_overrides_runpath=no |
2861 hardcode_into_libs=yes | |
2862 dynamic_linker='ldqnx.so' | |
1975 ;; | 2863 ;; |
1976 | 2864 |
1977 openbsd*) | 2865 openbsd*) |
1978 version_type=sunos | 2866 version_type=sunos |
1979 sys_lib_dlsearch_path_spec="/usr/lib" | 2867 sys_lib_dlsearch_path_spec="/usr/lib" |
1980 need_lib_prefix=no | 2868 need_lib_prefix=no |
1981 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | 2869 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
1982 case $host_os in | 2870 case $host_os in |
1983 openbsd3.3 | openbsd3.3.*) need_version=yes ;; | 2871 openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
1984 *) need_version=no ;; | 2872 *) need_version=no ;; |
1985 esac | 2873 esac |
1986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 2874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
1987 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 2875 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
1988 shlibpath_var=LD_LIBRARY_PATH | 2876 shlibpath_var=LD_LIBRARY_PATH |
1989 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 2877 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
1990 case $host_os in | 2878 case $host_os in |
1991 openbsd2.[[89]] | openbsd2.[[89]].*) | 2879 openbsd2.[[89]] | openbsd2.[[89]].*) |
1992 shlibpath_overrides_runpath=no | 2880 shlibpath_overrides_runpath=no |
1993 ;; | 2881 ;; |
1994 *) | 2882 *) |
2018 shlibpath_var=LD_LIBRARY_PATH | 2906 shlibpath_var=LD_LIBRARY_PATH |
2019 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 2907 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
2020 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 2908 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
2021 ;; | 2909 ;; |
2022 | 2910 |
2911 rdos*) | |
2912 dynamic_linker=no | |
2913 ;; | |
2914 | |
2023 solaris*) | 2915 solaris*) |
2024 version_type=linux | 2916 version_type=linux |
2025 need_lib_prefix=no | 2917 need_lib_prefix=no |
2026 need_version=no | 2918 need_version=no |
2027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 2919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2052 shlibpath_var=LD_LIBRARY_PATH | 2944 shlibpath_var=LD_LIBRARY_PATH |
2053 case $host_vendor in | 2945 case $host_vendor in |
2054 sni) | 2946 sni) |
2055 shlibpath_overrides_runpath=no | 2947 shlibpath_overrides_runpath=no |
2056 need_lib_prefix=no | 2948 need_lib_prefix=no |
2057 export_dynamic_flag_spec='${wl}-Blargedynsym' | |
2058 runpath_var=LD_RUN_PATH | 2949 runpath_var=LD_RUN_PATH |
2059 ;; | 2950 ;; |
2060 siemens) | 2951 siemens) |
2061 need_lib_prefix=no | 2952 need_lib_prefix=no |
2062 ;; | 2953 ;; |
2083 need_lib_prefix=no | 2974 need_lib_prefix=no |
2084 need_version=no | 2975 need_version=no |
2085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 2976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
2086 soname_spec='${libname}${release}${shared_ext}$major' | 2977 soname_spec='${libname}${release}${shared_ext}$major' |
2087 shlibpath_var=LD_LIBRARY_PATH | 2978 shlibpath_var=LD_LIBRARY_PATH |
2979 shlibpath_overrides_runpath=yes | |
2088 hardcode_into_libs=yes | 2980 hardcode_into_libs=yes |
2089 if test "$with_gnu_ld" = yes; then | 2981 if test "$with_gnu_ld" = yes; then |
2090 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | 2982 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
2091 shlibpath_overrides_runpath=no | |
2092 else | 2983 else |
2093 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | 2984 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
2094 shlibpath_overrides_runpath=yes | |
2095 case $host_os in | 2985 case $host_os in |
2096 sco3.2v5*) | 2986 sco3.2v5*) |
2097 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | 2987 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
2098 ;; | 2988 ;; |
2099 esac | 2989 esac |
2100 fi | 2990 fi |
2101 sys_lib_dlsearch_path_spec='/usr/lib' | 2991 sys_lib_dlsearch_path_spec='/usr/lib' |
2102 ;; | 2992 ;; |
2103 | 2993 |
2994 tpf*) | |
2995 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
2996 version_type=linux | |
2997 need_lib_prefix=no | |
2998 need_version=no | |
2999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
3000 shlibpath_var=LD_LIBRARY_PATH | |
3001 shlibpath_overrides_runpath=no | |
3002 hardcode_into_libs=yes | |
3003 ;; | |
3004 | |
2104 uts4*) | 3005 uts4*) |
2105 version_type=linux | 3006 version_type=linux |
2106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 3007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2107 soname_spec='${libname}${release}${shared_ext}$major' | 3008 soname_spec='${libname}${release}${shared_ext}$major' |
2108 shlibpath_var=LD_LIBRARY_PATH | 3009 shlibpath_var=LD_LIBRARY_PATH |
2117 | 3018 |
2118 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 3019 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
2119 if test "$GCC" = yes; then | 3020 if test "$GCC" = yes; then |
2120 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 3021 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
2121 fi | 3022 fi |
2122 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER | 3023 |
2123 | 3024 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
2124 | 3025 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
2125 # _LT_AC_TAGCONFIG | |
2126 # ---------------- | |
2127 AC_DEFUN([_LT_AC_TAGCONFIG], | |
2128 [AC_ARG_WITH([tags], | |
2129 [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], | |
2130 [include additional configurations @<:@automatic@:>@])], | |
2131 [tagnames="$withval"]) | |
2132 | |
2133 if test -f "$ltmain" && test -n "$tagnames"; then | |
2134 if test ! -f "${ofile}"; then | |
2135 AC_MSG_WARN([output file `$ofile' does not exist]) | |
2136 fi | |
2137 | |
2138 if test -z "$LTCC"; then | |
2139 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" | |
2140 if test -z "$LTCC"; then | |
2141 AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) | |
2142 else | |
2143 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) | |
2144 fi | |
2145 fi | |
2146 if test -z "$LTCFLAGS"; then | |
2147 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" | |
2148 fi | |
2149 | |
2150 # Extract list of available tagged configurations in $ofile. | |
2151 # Note that this assumes the entire list is on one line. | |
2152 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` | |
2153 | |
2154 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
2155 for tagname in $tagnames; do | |
2156 IFS="$lt_save_ifs" | |
2157 # Check whether tagname contains only valid characters | |
2158 case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in | |
2159 "") ;; | |
2160 *) AC_MSG_ERROR([invalid tag name: $tagname]) | |
2161 ;; | |
2162 esac | |
2163 | |
2164 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null | |
2165 then | |
2166 AC_MSG_ERROR([tag name \"$tagname\" already exists]) | |
2167 fi | |
2168 | |
2169 # Update the list of available tags. | |
2170 if test -n "$tagname"; then | |
2171 echo appending configuration tag \"$tagname\" to $ofile | |
2172 | |
2173 case $tagname in | |
2174 CXX) | |
2175 if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
2176 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
2177 (test "X$CXX" != "Xg++"))) ; then | |
2178 AC_LIBTOOL_LANG_CXX_CONFIG | |
2179 else | |
2180 tagname="" | |
2181 fi | |
2182 ;; | |
2183 | |
2184 F77) | |
2185 if test -n "$F77" && test "X$F77" != "Xno"; then | |
2186 AC_LIBTOOL_LANG_F77_CONFIG | |
2187 else | |
2188 tagname="" | |
2189 fi | |
2190 ;; | |
2191 | |
2192 GCJ) | |
2193 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then | |
2194 AC_LIBTOOL_LANG_GCJ_CONFIG | |
2195 else | |
2196 tagname="" | |
2197 fi | |
2198 ;; | |
2199 | |
2200 RC) | |
2201 AC_LIBTOOL_LANG_RC_CONFIG | |
2202 ;; | |
2203 | |
2204 *) | |
2205 AC_MSG_ERROR([Unsupported tag name: $tagname]) | |
2206 ;; | |
2207 esac | |
2208 | |
2209 # Append the new tag name to the list of available tags. | |
2210 if test -n "$tagname" ; then | |
2211 available_tags="$available_tags $tagname" | |
2212 fi | |
2213 fi | |
2214 done | |
2215 IFS="$lt_save_ifs" | |
2216 | |
2217 # Now substitute the updated list of available tags. | |
2218 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then | |
2219 mv "${ofile}T" "$ofile" | |
2220 chmod +x "$ofile" | |
2221 else | |
2222 rm -f "${ofile}T" | |
2223 AC_MSG_ERROR([unable to update list of available tagged configurations.]) | |
2224 fi | |
2225 fi | 3026 fi |
2226 ])# _LT_AC_TAGCONFIG | 3027 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
2227 | 3028 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
2228 | 3029 fi |
2229 # AC_LIBTOOL_DLOPEN | 3030 |
2230 # ----------------- | 3031 _LT_DECL([], [variables_saved_for_relink], [1], |
2231 # enable checks for dlopen support | 3032 [Variables whose values should be saved in libtool wrapper scripts and |
2232 AC_DEFUN([AC_LIBTOOL_DLOPEN], | 3033 restored at link time]) |
2233 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) | 3034 _LT_DECL([], [need_lib_prefix], [0], |
2234 ])# AC_LIBTOOL_DLOPEN | 3035 [Do we need the "lib" prefix for modules?]) |
2235 | 3036 _LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) |
2236 | 3037 _LT_DECL([], [version_type], [0], [Library versioning type]) |
2237 # AC_LIBTOOL_WIN32_DLL | 3038 _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) |
2238 # -------------------- | 3039 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) |
2239 # declare package support for building win32 DLLs | 3040 _LT_DECL([], [shlibpath_overrides_runpath], [0], |
2240 AC_DEFUN([AC_LIBTOOL_WIN32_DLL], | 3041 [Is shlibpath searched before the hard-coded library search path?]) |
2241 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) | 3042 _LT_DECL([], [libname_spec], [1], [Format of library name prefix]) |
2242 ])# AC_LIBTOOL_WIN32_DLL | 3043 _LT_DECL([], [library_names_spec], [1], |
2243 | 3044 [[List of archive names. First name is the real one, the rest are links. |
2244 | 3045 The last name is the one that the linker finds with -lNAME]]) |
2245 # AC_ENABLE_SHARED([DEFAULT]) | 3046 _LT_DECL([], [soname_spec], [1], |
2246 # --------------------------- | 3047 [[The coded name of the library, if different from the real name]]) |
2247 # implement the --enable-shared flag | 3048 _LT_DECL([], [postinstall_cmds], [2], |
2248 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. | 3049 [Command to use after installation of a shared archive]) |
2249 AC_DEFUN([AC_ENABLE_SHARED], | 3050 _LT_DECL([], [postuninstall_cmds], [2], |
2250 [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl | 3051 [Command to use after uninstallation of a shared archive]) |
2251 AC_ARG_ENABLE([shared], | 3052 _LT_DECL([], [finish_cmds], [2], |
2252 [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], | 3053 [Commands used to finish a libtool library installation in a directory]) |
2253 [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], | 3054 _LT_DECL([], [finish_eval], [1], |
2254 [p=${PACKAGE-default} | 3055 [[As "finish_cmds", except a single script fragment to be evaled but |
2255 case $enableval in | 3056 not shown]]) |
2256 yes) enable_shared=yes ;; | 3057 _LT_DECL([], [hardcode_into_libs], [0], |
2257 no) enable_shared=no ;; | 3058 [Whether we should hardcode library paths into libraries]) |
2258 *) | 3059 _LT_DECL([], [sys_lib_search_path_spec], [2], |
2259 enable_shared=no | 3060 [Compile-time system search path for libraries]) |
2260 # Look at the argument we got. We use all the common list separators. | 3061 _LT_DECL([], [sys_lib_dlsearch_path_spec], [2], |
2261 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 3062 [Run-time system search path for libraries]) |
2262 for pkg in $enableval; do | 3063 ])# _LT_SYS_DYNAMIC_LINKER |
2263 IFS="$lt_save_ifs" | 3064 |
2264 if test "X$pkg" = "X$p"; then | 3065 |
2265 enable_shared=yes | 3066 # _LT_PATH_TOOL_PREFIX(TOOL) |
2266 fi | |
2267 done | |
2268 IFS="$lt_save_ifs" | |
2269 ;; | |
2270 esac], | |
2271 [enable_shared=]AC_ENABLE_SHARED_DEFAULT) | |
2272 ])# AC_ENABLE_SHARED | |
2273 | |
2274 | |
2275 # AC_DISABLE_SHARED | |
2276 # ----------------- | |
2277 # set the default shared flag to --disable-shared | |
2278 AC_DEFUN([AC_DISABLE_SHARED], | |
2279 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | |
2280 AC_ENABLE_SHARED(no) | |
2281 ])# AC_DISABLE_SHARED | |
2282 | |
2283 | |
2284 # AC_ENABLE_STATIC([DEFAULT]) | |
2285 # --------------------------- | |
2286 # implement the --enable-static flag | |
2287 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. | |
2288 AC_DEFUN([AC_ENABLE_STATIC], | |
2289 [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl | |
2290 AC_ARG_ENABLE([static], | |
2291 [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], | |
2292 [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], | |
2293 [p=${PACKAGE-default} | |
2294 case $enableval in | |
2295 yes) enable_static=yes ;; | |
2296 no) enable_static=no ;; | |
2297 *) | |
2298 enable_static=no | |
2299 # Look at the argument we got. We use all the common list separators. | |
2300 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
2301 for pkg in $enableval; do | |
2302 IFS="$lt_save_ifs" | |
2303 if test "X$pkg" = "X$p"; then | |
2304 enable_static=yes | |
2305 fi | |
2306 done | |
2307 IFS="$lt_save_ifs" | |
2308 ;; | |
2309 esac], | |
2310 [enable_static=]AC_ENABLE_STATIC_DEFAULT) | |
2311 ])# AC_ENABLE_STATIC | |
2312 | |
2313 | |
2314 # AC_DISABLE_STATIC | |
2315 # ----------------- | |
2316 # set the default static flag to --disable-static | |
2317 AC_DEFUN([AC_DISABLE_STATIC], | |
2318 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | |
2319 AC_ENABLE_STATIC(no) | |
2320 ])# AC_DISABLE_STATIC | |
2321 | |
2322 | |
2323 # AC_ENABLE_FAST_INSTALL([DEFAULT]) | |
2324 # --------------------------------- | |
2325 # implement the --enable-fast-install flag | |
2326 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. | |
2327 AC_DEFUN([AC_ENABLE_FAST_INSTALL], | |
2328 [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl | |
2329 AC_ARG_ENABLE([fast-install], | |
2330 [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], | |
2331 [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], | |
2332 [p=${PACKAGE-default} | |
2333 case $enableval in | |
2334 yes) enable_fast_install=yes ;; | |
2335 no) enable_fast_install=no ;; | |
2336 *) | |
2337 enable_fast_install=no | |
2338 # Look at the argument we got. We use all the common list separators. | |
2339 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
2340 for pkg in $enableval; do | |
2341 IFS="$lt_save_ifs" | |
2342 if test "X$pkg" = "X$p"; then | |
2343 enable_fast_install=yes | |
2344 fi | |
2345 done | |
2346 IFS="$lt_save_ifs" | |
2347 ;; | |
2348 esac], | |
2349 [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) | |
2350 ])# AC_ENABLE_FAST_INSTALL | |
2351 | |
2352 | |
2353 # AC_DISABLE_FAST_INSTALL | |
2354 # ----------------------- | |
2355 # set the default to --disable-fast-install | |
2356 AC_DEFUN([AC_DISABLE_FAST_INSTALL], | |
2357 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | |
2358 AC_ENABLE_FAST_INSTALL(no) | |
2359 ])# AC_DISABLE_FAST_INSTALL | |
2360 | |
2361 | |
2362 # AC_LIBTOOL_PICMODE([MODE]) | |
2363 # -------------------------- | 3067 # -------------------------- |
2364 # implement the --with-pic flag | 3068 # find a file program which can recognize shared library |
2365 # MODE is either `yes' or `no'. If omitted, it defaults to `both'. | 3069 AC_DEFUN([_LT_PATH_TOOL_PREFIX], |
2366 AC_DEFUN([AC_LIBTOOL_PICMODE], | 3070 [m4_require([_LT_DECL_EGREP])dnl |
2367 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | |
2368 pic_mode=ifelse($#,1,$1,default) | |
2369 ])# AC_LIBTOOL_PICMODE | |
2370 | |
2371 | |
2372 # AC_PROG_EGREP | |
2373 # ------------- | |
2374 # This is predefined starting with Autoconf 2.54, so this conditional | |
2375 # definition can be removed once we require Autoconf 2.54 or later. | |
2376 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], | |
2377 [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], | |
2378 [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
2379 then ac_cv_prog_egrep='grep -E' | |
2380 else ac_cv_prog_egrep='egrep' | |
2381 fi]) | |
2382 EGREP=$ac_cv_prog_egrep | |
2383 AC_SUBST([EGREP]) | |
2384 ])]) | |
2385 | |
2386 | |
2387 # AC_PATH_TOOL_PREFIX | |
2388 # ------------------- | |
2389 # find a file program which can recognise shared library | |
2390 AC_DEFUN([AC_PATH_TOOL_PREFIX], | |
2391 [AC_REQUIRE([AC_PROG_EGREP])dnl | |
2392 AC_MSG_CHECKING([for $1]) | 3071 AC_MSG_CHECKING([for $1]) |
2393 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, | 3072 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, |
2394 [case $MAGIC_CMD in | 3073 [case $MAGIC_CMD in |
2395 [[\\/*] | ?:[\\/]*]) | 3074 [[\\/*] | ?:[\\/]*]) |
2396 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | 3075 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
2399 lt_save_MAGIC_CMD="$MAGIC_CMD" | 3078 lt_save_MAGIC_CMD="$MAGIC_CMD" |
2400 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 3079 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
2401 dnl $ac_dummy forces splitting on constant user-supplied paths. | 3080 dnl $ac_dummy forces splitting on constant user-supplied paths. |
2402 dnl POSIX.2 word splitting is done only on the output of word expansions, | 3081 dnl POSIX.2 word splitting is done only on the output of word expansions, |
2403 dnl not every word. This closes a longstanding sh security hole. | 3082 dnl not every word. This closes a longstanding sh security hole. |
2404 ac_dummy="ifelse([$2], , $PATH, [$2])" | 3083 ac_dummy="m4_if([$2], , $PATH, [$2])" |
2405 for ac_dir in $ac_dummy; do | 3084 for ac_dir in $ac_dummy; do |
2406 IFS="$lt_save_ifs" | 3085 IFS="$lt_save_ifs" |
2407 test -z "$ac_dir" && ac_dir=. | 3086 test -z "$ac_dir" && ac_dir=. |
2408 if test -f $ac_dir/$1; then | 3087 if test -f $ac_dir/$1; then |
2409 lt_cv_path_MAGIC_CMD="$ac_dir/$1" | 3088 lt_cv_path_MAGIC_CMD="$ac_dir/$1" |
2414 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 3093 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
2415 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | 3094 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
2416 $EGREP "$file_magic_regex" > /dev/null; then | 3095 $EGREP "$file_magic_regex" > /dev/null; then |
2417 : | 3096 : |
2418 else | 3097 else |
2419 cat <<EOF 1>&2 | 3098 cat <<_LT_EOF 1>&2 |
2420 | 3099 |
2421 *** Warning: the command libtool uses to detect shared libraries, | 3100 *** Warning: the command libtool uses to detect shared libraries, |
2422 *** $file_magic_cmd, produces output that libtool cannot recognize. | 3101 *** $file_magic_cmd, produces output that libtool cannot recognize. |
2423 *** The result is that libtool may fail to recognize shared libraries | 3102 *** The result is that libtool may fail to recognize shared libraries |
2424 *** as such. This will affect the creation of libtool libraries that | 3103 *** as such. This will affect the creation of libtool libraries that |
2425 *** depend on shared libraries, but programs linked with such libtool | 3104 *** depend on shared libraries, but programs linked with such libtool |
2426 *** libraries will work regardless of this problem. Nevertheless, you | 3105 *** libraries will work regardless of this problem. Nevertheless, you |
2427 *** may want to report the problem to your system manager and/or to | 3106 *** may want to report the problem to your system manager and/or to |
2428 *** bug-libtool@gnu.org | 3107 *** bug-libtool@gnu.org |
2429 | 3108 |
2430 EOF | 3109 _LT_EOF |
2431 fi ;; | 3110 fi ;; |
2432 esac | 3111 esac |
2433 fi | 3112 fi |
2434 break | 3113 break |
2435 fi | 3114 fi |
2442 if test -n "$MAGIC_CMD"; then | 3121 if test -n "$MAGIC_CMD"; then |
2443 AC_MSG_RESULT($MAGIC_CMD) | 3122 AC_MSG_RESULT($MAGIC_CMD) |
2444 else | 3123 else |
2445 AC_MSG_RESULT(no) | 3124 AC_MSG_RESULT(no) |
2446 fi | 3125 fi |
2447 ])# AC_PATH_TOOL_PREFIX | 3126 _LT_DECL([], [MAGIC_CMD], [0], |
2448 | 3127 [Used to examine libraries when file_magic_cmd begins with "file"])dnl |
2449 | 3128 ])# _LT_PATH_TOOL_PREFIX |
2450 # AC_PATH_MAGIC | 3129 |
2451 # ------------- | 3130 # Old name: |
2452 # find a file program which can recognise a shared library | 3131 AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) |
2453 AC_DEFUN([AC_PATH_MAGIC], | 3132 dnl aclocal-1.4 backwards compatibility: |
2454 [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) | 3133 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) |
3134 | |
3135 | |
3136 # _LT_PATH_MAGIC | |
3137 # -------------- | |
3138 # find a file program which can recognize a shared library | |
3139 m4_defun([_LT_PATH_MAGIC], | |
3140 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) | |
2455 if test -z "$lt_cv_path_MAGIC_CMD"; then | 3141 if test -z "$lt_cv_path_MAGIC_CMD"; then |
2456 if test -n "$ac_tool_prefix"; then | 3142 if test -n "$ac_tool_prefix"; then |
2457 AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) | 3143 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) |
2458 else | 3144 else |
2459 MAGIC_CMD=: | 3145 MAGIC_CMD=: |
2460 fi | 3146 fi |
2461 fi | 3147 fi |
2462 ])# AC_PATH_MAGIC | 3148 ])# _LT_PATH_MAGIC |
2463 | 3149 |
2464 | 3150 |
2465 # AC_PROG_LD | 3151 # LT_PATH_LD |
2466 # ---------- | 3152 # ---------- |
2467 # find the pathname to the GNU or non-GNU linker | 3153 # find the pathname to the GNU or non-GNU linker |
2468 AC_DEFUN([AC_PROG_LD], | 3154 AC_DEFUN([LT_PATH_LD], |
2469 [AC_ARG_WITH([gnu-ld], | 3155 [AC_REQUIRE([AC_PROG_CC])dnl |
2470 [AC_HELP_STRING([--with-gnu-ld], | 3156 AC_REQUIRE([AC_CANONICAL_HOST])dnl |
3157 AC_REQUIRE([AC_CANONICAL_BUILD])dnl | |
3158 m4_require([_LT_DECL_SED])dnl | |
3159 m4_require([_LT_DECL_EGREP])dnl | |
3160 | |
3161 AC_ARG_WITH([gnu-ld], | |
3162 [AS_HELP_STRING([--with-gnu-ld], | |
2471 [assume the C compiler uses GNU ld @<:@default=no@:>@])], | 3163 [assume the C compiler uses GNU ld @<:@default=no@:>@])], |
2472 [test "$withval" = no || with_gnu_ld=yes], | 3164 [test "$withval" = no || with_gnu_ld=yes], |
2473 [with_gnu_ld=no]) | 3165 [with_gnu_ld=no])dnl |
2474 AC_REQUIRE([LT_AC_PROG_SED])dnl | 3166 |
2475 AC_REQUIRE([AC_PROG_CC])dnl | |
2476 AC_REQUIRE([AC_CANONICAL_HOST])dnl | |
2477 AC_REQUIRE([AC_CANONICAL_BUILD])dnl | |
2478 ac_prog=ld | 3167 ac_prog=ld |
2479 if test "$GCC" = yes; then | 3168 if test "$GCC" = yes; then |
2480 # Check if gcc -print-prog-name=ld gives a path. | 3169 # Check if gcc -print-prog-name=ld gives a path. |
2481 AC_MSG_CHECKING([for ld used by $CC]) | 3170 AC_MSG_CHECKING([for ld used by $CC]) |
2482 case $host in | 3171 case $host in |
2489 case $ac_prog in | 3178 case $ac_prog in |
2490 # Accept absolute paths. | 3179 # Accept absolute paths. |
2491 [[\\/]]* | ?:[[\\/]]*) | 3180 [[\\/]]* | ?:[[\\/]]*) |
2492 re_direlt='/[[^/]][[^/]]*/\.\./' | 3181 re_direlt='/[[^/]][[^/]]*/\.\./' |
2493 # Canonicalize the pathname of ld | 3182 # Canonicalize the pathname of ld |
2494 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | 3183 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
2495 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | 3184 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
2496 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | 3185 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
2497 done | 3186 done |
2498 test -z "$LD" && LD="$ac_prog" | 3187 test -z "$LD" && LD="$ac_prog" |
2499 ;; | 3188 ;; |
2500 "") | 3189 "") |
2501 # If it fails, then pretend we aren't using GCC. | 3190 # If it fails, then pretend we aren't using GCC. |
2541 AC_MSG_RESULT($LD) | 3230 AC_MSG_RESULT($LD) |
2542 else | 3231 else |
2543 AC_MSG_RESULT(no) | 3232 AC_MSG_RESULT(no) |
2544 fi | 3233 fi |
2545 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) | 3234 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) |
2546 AC_PROG_LD_GNU | 3235 _LT_PATH_LD_GNU |
2547 ])# AC_PROG_LD | 3236 AC_SUBST([LD]) |
2548 | 3237 |
2549 | 3238 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) |
2550 # AC_PROG_LD_GNU | 3239 ])# LT_PATH_LD |
2551 # -------------- | 3240 |
2552 AC_DEFUN([AC_PROG_LD_GNU], | 3241 # Old names: |
2553 [AC_REQUIRE([AC_PROG_EGREP])dnl | 3242 AU_ALIAS([AM_PROG_LD], [LT_PATH_LD]) |
2554 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, | 3243 AU_ALIAS([AC_PROG_LD], [LT_PATH_LD]) |
3244 dnl aclocal-1.4 backwards compatibility: | |
3245 dnl AC_DEFUN([AM_PROG_LD], []) | |
3246 dnl AC_DEFUN([AC_PROG_LD], []) | |
3247 | |
3248 | |
3249 # _LT_PATH_LD_GNU | |
3250 #- -------------- | |
3251 m4_defun([_LT_PATH_LD_GNU], | |
3252 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, | |
2555 [# I'd rather use --version here, but apparently some GNU lds only accept -v. | 3253 [# I'd rather use --version here, but apparently some GNU lds only accept -v. |
2556 case `$LD -v 2>&1 </dev/null` in | 3254 case `$LD -v 2>&1 </dev/null` in |
2557 *GNU* | *'with BFD'*) | 3255 *GNU* | *'with BFD'*) |
2558 lt_cv_prog_gnu_ld=yes | 3256 lt_cv_prog_gnu_ld=yes |
2559 ;; | 3257 ;; |
2560 *) | 3258 *) |
2561 lt_cv_prog_gnu_ld=no | 3259 lt_cv_prog_gnu_ld=no |
2562 ;; | 3260 ;; |
2563 esac]) | 3261 esac]) |
2564 with_gnu_ld=$lt_cv_prog_gnu_ld | 3262 with_gnu_ld=$lt_cv_prog_gnu_ld |
2565 ])# AC_PROG_LD_GNU | 3263 ])# _LT_PATH_LD_GNU |
2566 | 3264 |
2567 | 3265 |
2568 # AC_PROG_LD_RELOAD_FLAG | 3266 # _LT_CMD_RELOAD |
2569 # ---------------------- | 3267 # -------------- |
2570 # find reload flag for linker | 3268 # find reload flag for linker |
2571 # -- PORTME Some linkers may need a different reload flag. | 3269 # -- PORTME Some linkers may need a different reload flag. |
2572 AC_DEFUN([AC_PROG_LD_RELOAD_FLAG], | 3270 m4_defun([_LT_CMD_RELOAD], |
2573 [AC_CACHE_CHECK([for $LD option to reload object files], | 3271 [AC_CACHE_CHECK([for $LD option to reload object files], |
2574 lt_cv_ld_reload_flag, | 3272 lt_cv_ld_reload_flag, |
2575 [lt_cv_ld_reload_flag='-r']) | 3273 [lt_cv_ld_reload_flag='-r']) |
2576 reload_flag=$lt_cv_ld_reload_flag | 3274 reload_flag=$lt_cv_ld_reload_flag |
2577 case $reload_flag in | 3275 case $reload_flag in |
2586 else | 3284 else |
2587 reload_cmds='$LD$reload_flag -o $output$reload_objs' | 3285 reload_cmds='$LD$reload_flag -o $output$reload_objs' |
2588 fi | 3286 fi |
2589 ;; | 3287 ;; |
2590 esac | 3288 esac |
2591 ])# AC_PROG_LD_RELOAD_FLAG | 3289 _LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl |
2592 | 3290 _LT_DECL([], [reload_cmds], [2])dnl |
2593 | 3291 ])# _LT_CMD_RELOAD |
2594 # AC_DEPLIBS_CHECK_METHOD | 3292 |
2595 # ----------------------- | 3293 |
3294 # _LT_CHECK_MAGIC_METHOD | |
3295 # ---------------------- | |
2596 # how to check for library dependencies | 3296 # how to check for library dependencies |
2597 # -- PORTME fill in with the dynamic library characteristics | 3297 # -- PORTME fill in with the dynamic library characteristics |
2598 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], | 3298 m4_defun([_LT_CHECK_MAGIC_METHOD], |
2599 [AC_CACHE_CHECK([how to recognise dependent libraries], | 3299 [m4_require([_LT_DECL_EGREP]) |
3300 m4_require([_LT_DECL_OBJDUMP]) | |
3301 AC_CACHE_CHECK([how to recognize dependent libraries], | |
2600 lt_cv_deplibs_check_method, | 3302 lt_cv_deplibs_check_method, |
2601 [lt_cv_file_magic_cmd='$MAGIC_CMD' | 3303 [lt_cv_file_magic_cmd='$MAGIC_CMD' |
2602 lt_cv_file_magic_test_file= | 3304 lt_cv_file_magic_test_file= |
2603 lt_cv_deplibs_check_method='unknown' | 3305 lt_cv_deplibs_check_method='unknown' |
2604 # Need to set the preceding variable on all platforms that support | 3306 # Need to set the preceding variable on all platforms that support |
2611 # which responds to the $file_magic_cmd with a given extended regex. | 3313 # which responds to the $file_magic_cmd with a given extended regex. |
2612 # If you have `file' or equivalent on your system and you're not sure | 3314 # If you have `file' or equivalent on your system and you're not sure |
2613 # whether `pass_all' will *always* work, you probably want this one. | 3315 # whether `pass_all' will *always* work, you probably want this one. |
2614 | 3316 |
2615 case $host_os in | 3317 case $host_os in |
2616 aix4* | aix5*) | 3318 aix[[4-9]]*) |
2617 lt_cv_deplibs_check_method=pass_all | 3319 lt_cv_deplibs_check_method=pass_all |
2618 ;; | 3320 ;; |
2619 | 3321 |
2620 beos*) | 3322 beos*) |
2621 lt_cv_deplibs_check_method=pass_all | 3323 lt_cv_deplibs_check_method=pass_all |
2627 lt_cv_file_magic_test_file=/shlib/libc.so | 3329 lt_cv_file_magic_test_file=/shlib/libc.so |
2628 ;; | 3330 ;; |
2629 | 3331 |
2630 cygwin*) | 3332 cygwin*) |
2631 # func_win32_libid is a shell function defined in ltmain.sh | 3333 # func_win32_libid is a shell function defined in ltmain.sh |
2632 #lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | 3334 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
2633 lt_cv_deplibs_check_method=pass_all | 3335 lt_cv_deplibs_check_method=pass_all |
2634 lt_cv_file_magic_cmd='func_win32_libid' | 3336 lt_cv_file_magic_cmd='func_win32_libid' |
2635 ;; | 3337 ;; |
2636 | 3338 |
2637 mingw* | pw32*) | 3339 mingw* | pw32*) |
2638 # Base MSYS/MinGW do not provide the 'file' command needed by | 3340 # Base MSYS/MinGW do not provide the 'file' command needed by |
2639 # func_win32_libid shell function, so use a weaker test based on 'objdump'. | 3341 # func_win32_libid shell function, so use a weaker test based on 'objdump', |
2640 #lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | 3342 # unless we find 'file', for example because we are cross-compiling. |
3343 if ( file / ) >/dev/null 2>&1; then | |
3344 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
3345 lt_cv_file_magic_cmd='func_win32_libid' | |
3346 else | |
3347 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
3348 lt_cv_file_magic_cmd='$OBJDUMP -f' | |
3349 fi | |
2641 lt_cv_deplibs_check_method=pass_all | 3350 lt_cv_deplibs_check_method=pass_all |
3351 ;; | |
3352 | |
3353 cegcc) | |
3354 # use the weaker test based on 'objdump'. See mingw*. | |
3355 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
2642 lt_cv_file_magic_cmd='$OBJDUMP -f' | 3356 lt_cv_file_magic_cmd='$OBJDUMP -f' |
2643 ;; | 3357 ;; |
2644 | 3358 |
2645 darwin* | rhapsody*) | 3359 darwin* | rhapsody*) |
2646 lt_cv_deplibs_check_method=pass_all | 3360 lt_cv_deplibs_check_method=pass_all |
2647 ;; | 3361 ;; |
2648 | 3362 |
2649 freebsd* | kfreebsd*-gnu | dragonfly*) | 3363 freebsd* | dragonfly*) |
2650 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | 3364 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
2651 case $host_cpu in | 3365 case $host_cpu in |
2652 i*86 ) | 3366 i*86 ) |
2653 # Not sure whether the presence of OpenBSD here was a mistake. | 3367 # Not sure whether the presence of OpenBSD here was a mistake. |
2654 # Let's accept both of them until this is cleared up. | 3368 # Let's accept both of them until this is cleared up. |
2655 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' | 3369 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' |
2682 lt_cv_file_magic_test_file=/usr/lib/libc.sl | 3396 lt_cv_file_magic_test_file=/usr/lib/libc.sl |
2683 ;; | 3397 ;; |
2684 esac | 3398 esac |
2685 ;; | 3399 ;; |
2686 | 3400 |
2687 interix3*) | 3401 interix[[3-9]]*) |
2688 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | 3402 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
2689 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' | 3403 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' |
2690 ;; | 3404 ;; |
2691 | 3405 |
2692 irix5* | irix6* | nonstopux*) | 3406 irix5* | irix6* | nonstopux*) |
2698 esac | 3412 esac |
2699 lt_cv_deplibs_check_method=pass_all | 3413 lt_cv_deplibs_check_method=pass_all |
2700 ;; | 3414 ;; |
2701 | 3415 |
2702 # This must be Linux ELF. | 3416 # This must be Linux ELF. |
2703 linux*) | 3417 linux* | k*bsd*-gnu) |
2704 lt_cv_deplibs_check_method=pass_all | 3418 lt_cv_deplibs_check_method=pass_all |
2705 ;; | 3419 ;; |
2706 | 3420 |
2707 netbsd*) | 3421 netbsd*) |
2708 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | 3422 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
2709 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' | 3423 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
2710 else | 3424 else |
2711 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' | 3425 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' |
2712 fi | 3426 fi |
2713 ;; | 3427 ;; |
2716 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' | 3430 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' |
2717 lt_cv_file_magic_cmd=/usr/bin/file | 3431 lt_cv_file_magic_cmd=/usr/bin/file |
2718 lt_cv_file_magic_test_file=/usr/lib/libnls.so | 3432 lt_cv_file_magic_test_file=/usr/lib/libnls.so |
2719 ;; | 3433 ;; |
2720 | 3434 |
2721 nto-qnx*) | 3435 *nto* | *qnx*) |
2722 lt_cv_deplibs_check_method=unknown | 3436 lt_cv_deplibs_check_method=pass_all |
2723 ;; | 3437 ;; |
2724 | 3438 |
2725 openbsd*) | 3439 openbsd*) |
2726 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 3440 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
2727 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' | 3441 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' |
2728 else | 3442 else |
2729 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' | 3443 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
2730 fi | 3444 fi |
2731 ;; | 3445 ;; |
2732 | 3446 |
2733 osf3* | osf4* | osf5*) | 3447 osf3* | osf4* | osf5*) |
2734 lt_cv_deplibs_check_method=pass_all | 3448 lt_cv_deplibs_check_method=pass_all |
2735 ;; | 3449 ;; |
2736 | 3450 |
3451 rdos*) | |
3452 lt_cv_deplibs_check_method=pass_all | |
3453 ;; | |
3454 | |
2737 solaris*) | 3455 solaris*) |
3456 lt_cv_deplibs_check_method=pass_all | |
3457 ;; | |
3458 | |
3459 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
2738 lt_cv_deplibs_check_method=pass_all | 3460 lt_cv_deplibs_check_method=pass_all |
2739 ;; | 3461 ;; |
2740 | 3462 |
2741 sysv4 | sysv4.3*) | 3463 sysv4 | sysv4.3*) |
2742 case $host_vendor in | 3464 case $host_vendor in |
2763 lt_cv_deplibs_check_method=pass_all | 3485 lt_cv_deplibs_check_method=pass_all |
2764 ;; | 3486 ;; |
2765 esac | 3487 esac |
2766 ;; | 3488 ;; |
2767 | 3489 |
2768 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | 3490 tpf*) |
2769 lt_cv_deplibs_check_method=pass_all | 3491 lt_cv_deplibs_check_method=pass_all |
2770 ;; | 3492 ;; |
2771 esac | 3493 esac |
2772 ]) | 3494 ]) |
2773 file_magic_cmd=$lt_cv_file_magic_cmd | 3495 file_magic_cmd=$lt_cv_file_magic_cmd |
2774 deplibs_check_method=$lt_cv_deplibs_check_method | 3496 deplibs_check_method=$lt_cv_deplibs_check_method |
2775 test -z "$deplibs_check_method" && deplibs_check_method=unknown | 3497 test -z "$deplibs_check_method" && deplibs_check_method=unknown |
2776 ])# AC_DEPLIBS_CHECK_METHOD | 3498 |
2777 | 3499 _LT_DECL([], [deplibs_check_method], [1], |
2778 | 3500 [Method to check whether dependent libraries are shared objects]) |
2779 # AC_PROG_NM | 3501 _LT_DECL([], [file_magic_cmd], [1], |
3502 [Command to use when deplibs_check_method == "file_magic"]) | |
3503 ])# _LT_CHECK_MAGIC_METHOD | |
3504 | |
3505 | |
3506 # LT_PATH_NM | |
2780 # ---------- | 3507 # ---------- |
2781 # find the pathname to a BSD-compatible name lister | 3508 # find the pathname to a BSD- or MS-compatible name lister |
2782 AC_DEFUN([AC_PROG_NM], | 3509 AC_DEFUN([LT_PATH_NM], |
2783 [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, | 3510 [AC_REQUIRE([AC_PROG_CC])dnl |
3511 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, | |
2784 [if test -n "$NM"; then | 3512 [if test -n "$NM"; then |
2785 # Let the user override the test. | 3513 # Let the user override the test. |
2786 lt_cv_path_NM="$NM" | 3514 lt_cv_path_NM="$NM" |
2787 else | 3515 else |
2788 lt_nm_to_check="${ac_tool_prefix}nm" | 3516 lt_nm_to_check="${ac_tool_prefix}nm" |
2789 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | 3517 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
2790 lt_nm_to_check="$lt_nm_to_check nm" | 3518 lt_nm_to_check="$lt_nm_to_check nm" |
2791 fi | 3519 fi |
2792 for lt_tmp_nm in $lt_nm_to_check; do | 3520 for lt_tmp_nm in $lt_nm_to_check; do |
2793 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 3521 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
2794 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | 3522 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
2820 esac | 3548 esac |
2821 fi | 3549 fi |
2822 done | 3550 done |
2823 IFS="$lt_save_ifs" | 3551 IFS="$lt_save_ifs" |
2824 done | 3552 done |
2825 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | 3553 : ${lt_cv_path_NM=no} |
2826 fi]) | 3554 fi]) |
2827 NM="$lt_cv_path_NM" | 3555 if test "$lt_cv_path_NM" != "no"; then |
2828 ])# AC_PROG_NM | 3556 NM="$lt_cv_path_NM" |
2829 | 3557 else |
2830 | 3558 # Didn't find any BSD compatible name lister, look for dumpbin. |
2831 # AC_CHECK_LIBM | 3559 AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :) |
2832 # ------------- | 3560 AC_SUBST([DUMPBIN]) |
3561 if test "$DUMPBIN" != ":"; then | |
3562 NM="$DUMPBIN" | |
3563 fi | |
3564 fi | |
3565 test -z "$NM" && NM=nm | |
3566 AC_SUBST([NM]) | |
3567 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl | |
3568 | |
3569 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], | |
3570 [lt_cv_nm_interface="BSD nm" | |
3571 echo "int some_variable = 0;" > conftest.$ac_ext | |
3572 (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD) | |
3573 (eval "$ac_compile" 2>conftest.err) | |
3574 cat conftest.err >&AS_MESSAGE_LOG_FD | |
3575 (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) | |
3576 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
3577 cat conftest.err >&AS_MESSAGE_LOG_FD | |
3578 (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD) | |
3579 cat conftest.out >&AS_MESSAGE_LOG_FD | |
3580 if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
3581 lt_cv_nm_interface="MS dumpbin" | |
3582 fi | |
3583 rm -f conftest*]) | |
3584 ])# LT_PATH_NM | |
3585 | |
3586 # Old names: | |
3587 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) | |
3588 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) | |
3589 dnl aclocal-1.4 backwards compatibility: | |
3590 dnl AC_DEFUN([AM_PROG_NM], []) | |
3591 dnl AC_DEFUN([AC_PROG_NM], []) | |
3592 | |
3593 | |
3594 # LT_LIB_M | |
3595 # -------- | |
2833 # check for math library | 3596 # check for math library |
2834 AC_DEFUN([AC_CHECK_LIBM], | 3597 AC_DEFUN([LT_LIB_M], |
2835 [AC_REQUIRE([AC_CANONICAL_HOST])dnl | 3598 [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
2836 LIBM= | 3599 LIBM= |
2837 case $host in | 3600 case $host in |
2838 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) | 3601 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) |
2839 # These system don't have libm, or don't need it | 3602 # These system don't have libm, or don't need it |
2844 ;; | 3607 ;; |
2845 *) | 3608 *) |
2846 AC_CHECK_LIB(m, cos, LIBM="-lm") | 3609 AC_CHECK_LIB(m, cos, LIBM="-lm") |
2847 ;; | 3610 ;; |
2848 esac | 3611 esac |
2849 ])# AC_CHECK_LIBM | 3612 AC_SUBST([LIBM]) |
2850 | 3613 ])# LT_LIB_M |
2851 | 3614 |
2852 # AC_LIBLTDL_CONVENIENCE([DIRECTORY]) | 3615 # Old name: |
2853 # ----------------------------------- | 3616 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) |
2854 # sets LIBLTDL to the link flags for the libltdl convenience library and | 3617 dnl aclocal-1.4 backwards compatibility: |
2855 # LTDLINCL to the include flags for the libltdl header and adds | 3618 dnl AC_DEFUN([AC_CHECK_LIBM], []) |
2856 # --enable-ltdl-convenience to the configure arguments. Note that | 3619 |
2857 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, | 3620 |
2858 # it is assumed to be `libltdl'. LIBLTDL will be prefixed with | 3621 # _LT_COMPILER_NO_RTTI([TAGNAME]) |
2859 # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' | 3622 # ------------------------------- |
2860 # (note the single quotes!). If your package is not flat and you're not | 3623 m4_defun([_LT_COMPILER_NO_RTTI], |
2861 # using automake, define top_builddir and top_srcdir appropriately in | 3624 [m4_require([_LT_TAG_COMPILER])dnl |
2862 # the Makefiles. | 3625 |
2863 AC_DEFUN([AC_LIBLTDL_CONVENIENCE], | 3626 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= |
2864 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | |
2865 case $enable_ltdl_convenience in | |
2866 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; | |
2867 "") enable_ltdl_convenience=yes | |
2868 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; | |
2869 esac | |
2870 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la | |
2871 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) | |
2872 # For backwards non-gettext consistent compatibility... | |
2873 INCLTDL="$LTDLINCL" | |
2874 ])# AC_LIBLTDL_CONVENIENCE | |
2875 | |
2876 | |
2877 # AC_LIBLTDL_INSTALLABLE([DIRECTORY]) | |
2878 # ----------------------------------- | |
2879 # sets LIBLTDL to the link flags for the libltdl installable library and | |
2880 # LTDLINCL to the include flags for the libltdl header and adds | |
2881 # --enable-ltdl-install to the configure arguments. Note that | |
2882 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, | |
2883 # and an installed libltdl is not found, it is assumed to be `libltdl'. | |
2884 # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with | |
2885 # '${top_srcdir}/' (note the single quotes!). If your package is not | |
2886 # flat and you're not using automake, define top_builddir and top_srcdir | |
2887 # appropriately in the Makefiles. | |
2888 # In the future, this macro may have to be called after AC_PROG_LIBTOOL. | |
2889 AC_DEFUN([AC_LIBLTDL_INSTALLABLE], | |
2890 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | |
2891 AC_CHECK_LIB(ltdl, lt_dlinit, | |
2892 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], | |
2893 [if test x"$enable_ltdl_install" = xno; then | |
2894 AC_MSG_WARN([libltdl not installed, but installation disabled]) | |
2895 else | |
2896 enable_ltdl_install=yes | |
2897 fi | |
2898 ]) | |
2899 if test x"$enable_ltdl_install" = x"yes"; then | |
2900 ac_configure_args="$ac_configure_args --enable-ltdl-install" | |
2901 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la | |
2902 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) | |
2903 else | |
2904 ac_configure_args="$ac_configure_args --enable-ltdl-install=no" | |
2905 LIBLTDL="-lltdl" | |
2906 LTDLINCL= | |
2907 fi | |
2908 # For backwards non-gettext consistent compatibility... | |
2909 INCLTDL="$LTDLINCL" | |
2910 ])# AC_LIBLTDL_INSTALLABLE | |
2911 | |
2912 | |
2913 # AC_LIBTOOL_CXX | |
2914 # -------------- | |
2915 # enable support for C++ libraries | |
2916 AC_DEFUN([AC_LIBTOOL_CXX], | |
2917 [AC_REQUIRE([_LT_AC_LANG_CXX]) | |
2918 ])# AC_LIBTOOL_CXX | |
2919 | |
2920 | |
2921 # _LT_AC_LANG_CXX | |
2922 # --------------- | |
2923 AC_DEFUN([_LT_AC_LANG_CXX], | |
2924 [AC_REQUIRE([AC_PROG_CXX]) | |
2925 AC_REQUIRE([_LT_AC_PROG_CXXCPP]) | |
2926 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) | |
2927 ])# _LT_AC_LANG_CXX | |
2928 | |
2929 # _LT_AC_PROG_CXXCPP | |
2930 # ------------------ | |
2931 AC_DEFUN([_LT_AC_PROG_CXXCPP], | |
2932 [ | |
2933 AC_REQUIRE([AC_PROG_CXX]) | |
2934 if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
2935 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
2936 (test "X$CXX" != "Xg++"))) ; then | |
2937 AC_PROG_CXXCPP | |
2938 fi | |
2939 ])# _LT_AC_PROG_CXXCPP | |
2940 | |
2941 # AC_LIBTOOL_F77 | |
2942 # -------------- | |
2943 # enable support for Fortran 77 libraries | |
2944 AC_DEFUN([AC_LIBTOOL_F77], | |
2945 [AC_REQUIRE([_LT_AC_LANG_F77]) | |
2946 ])# AC_LIBTOOL_F77 | |
2947 | |
2948 | |
2949 # _LT_AC_LANG_F77 | |
2950 # --------------- | |
2951 AC_DEFUN([_LT_AC_LANG_F77], | |
2952 [AC_REQUIRE([AC_PROG_F77]) | |
2953 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) | |
2954 ])# _LT_AC_LANG_F77 | |
2955 | |
2956 | |
2957 # AC_LIBTOOL_GCJ | |
2958 # -------------- | |
2959 # enable support for GCJ libraries | |
2960 AC_DEFUN([AC_LIBTOOL_GCJ], | |
2961 [AC_REQUIRE([_LT_AC_LANG_GCJ]) | |
2962 ])# AC_LIBTOOL_GCJ | |
2963 | |
2964 | |
2965 # _LT_AC_LANG_GCJ | |
2966 # --------------- | |
2967 AC_DEFUN([_LT_AC_LANG_GCJ], | |
2968 [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], | |
2969 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], | |
2970 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], | |
2971 [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], | |
2972 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], | |
2973 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) | |
2974 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) | |
2975 ])# _LT_AC_LANG_GCJ | |
2976 | |
2977 | |
2978 # AC_LIBTOOL_RC | |
2979 # ------------- | |
2980 # enable support for Windows resource files | |
2981 AC_DEFUN([AC_LIBTOOL_RC], | |
2982 [AC_REQUIRE([LT_AC_PROG_RC]) | |
2983 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) | |
2984 ])# AC_LIBTOOL_RC | |
2985 | |
2986 | |
2987 # AC_LIBTOOL_LANG_C_CONFIG | |
2988 # ------------------------ | |
2989 # Ensure that the configuration vars for the C compiler are | |
2990 # suitably defined. Those variables are subsequently used by | |
2991 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | |
2992 AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) | |
2993 AC_DEFUN([_LT_AC_LANG_C_CONFIG], | |
2994 [lt_save_CC="$CC" | |
2995 AC_LANG_PUSH(C) | |
2996 | |
2997 # Source file extension for C test sources. | |
2998 ac_ext=c | |
2999 | |
3000 # Object file extension for compiled C test sources. | |
3001 objext=o | |
3002 _LT_AC_TAGVAR(objext, $1)=$objext | |
3003 | |
3004 # Code to be used in simple compile tests | |
3005 lt_simple_compile_test_code="int some_variable = 0;\n" | |
3006 | |
3007 # Code to be used in simple link tests | |
3008 lt_simple_link_test_code='int main(){return(0);}\n' | |
3009 | |
3010 _LT_AC_SYS_COMPILER | |
3011 | |
3012 # save warnings/boilerplate of simple test code | |
3013 _LT_COMPILER_BOILERPLATE | |
3014 _LT_LINKER_BOILERPLATE | |
3015 | |
3016 ## CAVEAT EMPTOR: | |
3017 ## There is no encapsulation within the following macros, do not change | |
3018 ## the running order or otherwise move them around unless you know exactly | |
3019 ## what you are doing... | |
3020 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) | |
3021 AC_LIBTOOL_PROG_COMPILER_PIC($1) | |
3022 AC_LIBTOOL_PROG_CC_C_O($1) | |
3023 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) | |
3024 AC_LIBTOOL_PROG_LD_SHLIBS($1) | |
3025 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | |
3026 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | |
3027 AC_LIBTOOL_SYS_LIB_STRIP | |
3028 AC_LIBTOOL_DLOPEN_SELF | |
3029 | |
3030 # Report which library types will actually be built | |
3031 AC_MSG_CHECKING([if libtool supports shared libraries]) | |
3032 AC_MSG_RESULT([$can_build_shared]) | |
3033 | |
3034 AC_MSG_CHECKING([whether to build shared libraries]) | |
3035 test "$can_build_shared" = "no" && enable_shared=no | |
3036 | |
3037 # On AIX, shared libraries and static libraries use the same namespace, and | |
3038 # are all built from PIC. | |
3039 case $host_os in | |
3040 aix3*) | |
3041 test "$enable_shared" = yes && enable_static=no | |
3042 if test -n "$RANLIB"; then | |
3043 archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
3044 postinstall_cmds='$RANLIB $lib' | |
3045 fi | |
3046 ;; | |
3047 | |
3048 aix4* | aix5*) | |
3049 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
3050 test "$enable_shared" = yes && enable_static=no | |
3051 fi | |
3052 ;; | |
3053 esac | |
3054 AC_MSG_RESULT([$enable_shared]) | |
3055 | |
3056 AC_MSG_CHECKING([whether to build static libraries]) | |
3057 # Make sure either enable_shared or enable_static is yes. | |
3058 test "$enable_shared" = yes || enable_static=yes | |
3059 AC_MSG_RESULT([$enable_static]) | |
3060 | |
3061 AC_LIBTOOL_CONFIG($1) | |
3062 | |
3063 AC_LANG_POP | |
3064 CC="$lt_save_CC" | |
3065 ])# AC_LIBTOOL_LANG_C_CONFIG | |
3066 | |
3067 | |
3068 # AC_LIBTOOL_LANG_CXX_CONFIG | |
3069 # -------------------------- | |
3070 # Ensure that the configuration vars for the C compiler are | |
3071 # suitably defined. Those variables are subsequently used by | |
3072 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | |
3073 AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) | |
3074 AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], | |
3075 [AC_LANG_PUSH(C++) | |
3076 AC_REQUIRE([AC_PROG_CXX]) | |
3077 AC_REQUIRE([_LT_AC_PROG_CXXCPP]) | |
3078 | |
3079 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | |
3080 _LT_AC_TAGVAR(allow_undefined_flag, $1)= | |
3081 _LT_AC_TAGVAR(always_export_symbols, $1)=no | |
3082 _LT_AC_TAGVAR(archive_expsym_cmds, $1)= | |
3083 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= | |
3084 _LT_AC_TAGVAR(hardcode_direct, $1)=no | |
3085 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= | |
3086 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | |
3087 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= | |
3088 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no | |
3089 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | |
3090 _LT_AC_TAGVAR(hardcode_automatic, $1)=no | |
3091 _LT_AC_TAGVAR(module_cmds, $1)= | |
3092 _LT_AC_TAGVAR(module_expsym_cmds, $1)= | |
3093 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown | |
3094 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | |
3095 _LT_AC_TAGVAR(no_undefined_flag, $1)= | |
3096 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | |
3097 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no | |
3098 | |
3099 # Dependencies to place before and after the object being linked: | |
3100 _LT_AC_TAGVAR(predep_objects, $1)= | |
3101 _LT_AC_TAGVAR(postdep_objects, $1)= | |
3102 _LT_AC_TAGVAR(predeps, $1)= | |
3103 _LT_AC_TAGVAR(postdeps, $1)= | |
3104 _LT_AC_TAGVAR(compiler_lib_search_path, $1)= | |
3105 | |
3106 # Source file extension for C++ test sources. | |
3107 ac_ext=cpp | |
3108 | |
3109 # Object file extension for compiled C++ test sources. | |
3110 objext=o | |
3111 _LT_AC_TAGVAR(objext, $1)=$objext | |
3112 | |
3113 # Code to be used in simple compile tests | |
3114 lt_simple_compile_test_code="int some_variable = 0;\n" | |
3115 | |
3116 # Code to be used in simple link tests | |
3117 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n' | |
3118 | |
3119 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
3120 _LT_AC_SYS_COMPILER | |
3121 | |
3122 # save warnings/boilerplate of simple test code | |
3123 _LT_COMPILER_BOILERPLATE | |
3124 _LT_LINKER_BOILERPLATE | |
3125 | |
3126 # Allow CC to be a program name with arguments. | |
3127 lt_save_CC=$CC | |
3128 lt_save_LD=$LD | |
3129 lt_save_GCC=$GCC | |
3130 GCC=$GXX | |
3131 lt_save_with_gnu_ld=$with_gnu_ld | |
3132 lt_save_path_LD=$lt_cv_path_LD | |
3133 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
3134 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
3135 else | |
3136 $as_unset lt_cv_prog_gnu_ld | |
3137 fi | |
3138 if test -n "${lt_cv_path_LDCXX+set}"; then | |
3139 lt_cv_path_LD=$lt_cv_path_LDCXX | |
3140 else | |
3141 $as_unset lt_cv_path_LD | |
3142 fi | |
3143 test -z "${LDCXX+set}" || LD=$LDCXX | |
3144 CC=${CXX-"c++"} | |
3145 compiler=$CC | |
3146 _LT_AC_TAGVAR(compiler, $1)=$CC | |
3147 _LT_CC_BASENAME([$compiler]) | |
3148 | |
3149 # We don't want -fno-exception wen compiling C++ code, so set the | |
3150 # no_builtin_flag separately | |
3151 if test "$GXX" = yes; then | |
3152 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' | |
3153 else | |
3154 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= | |
3155 fi | |
3156 | |
3157 if test "$GXX" = yes; then | |
3158 # Set up default GNU C++ configuration | |
3159 | |
3160 AC_PROG_LD | |
3161 | |
3162 # Check if GNU C++ uses GNU ld as the underlying linker, since the | |
3163 # archiving commands below assume that GNU ld is being used. | |
3164 if test "$with_gnu_ld" = yes; then | |
3165 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
3166 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
3167 | |
3168 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' | |
3169 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | |
3170 | |
3171 # If archive_cmds runs LD, not CC, wlarc should be empty | |
3172 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
3173 # investigate it a little bit more. (MM) | |
3174 wlarc='${wl}' | |
3175 | |
3176 # ancient GNU ld didn't support --whole-archive et. al. | |
3177 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ | |
3178 grep 'no-whole-archive' > /dev/null; then | |
3179 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
3180 else | |
3181 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | |
3182 fi | |
3183 else | |
3184 with_gnu_ld=no | |
3185 wlarc= | |
3186 | |
3187 # A generic and very simple default shared library creation | |
3188 # command for GNU C++ for the case where it uses the native | |
3189 # linker, instead of GNU ld. If possible, this setting should | |
3190 # overridden to take advantage of the native linker features on | |
3191 # the platform it is being used on. | |
3192 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
3193 fi | |
3194 | |
3195 # Commands to make compiler produce verbose output that lists | |
3196 # what "hidden" libraries, object files and flags are used when | |
3197 # linking a shared library. | |
3198 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | |
3199 | |
3200 else | |
3201 GXX=no | |
3202 with_gnu_ld=no | |
3203 wlarc= | |
3204 fi | |
3205 | |
3206 # PORTME: fill in a description of your system's C++ link characteristics | |
3207 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) | |
3208 _LT_AC_TAGVAR(ld_shlibs, $1)=yes | |
3209 case $host_os in | |
3210 aix3*) | |
3211 # FIXME: insert proper C++ library support | |
3212 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
3213 ;; | |
3214 aix4* | aix5*) | |
3215 if test "$host_cpu" = ia64; then | |
3216 # On IA64, the linker does run time linking by default, so we don't | |
3217 # have to do anything special. | |
3218 aix_use_runtimelinking=no | |
3219 exp_sym_flag='-Bexport' | |
3220 no_entry_flag="" | |
3221 else | |
3222 aix_use_runtimelinking=no | |
3223 | |
3224 # Test if we are trying to use run time linking or normal | |
3225 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
3226 # need to do runtime linking. | |
3227 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) | |
3228 for ld_flag in $LDFLAGS; do | |
3229 case $ld_flag in | |
3230 *-brtl*) | |
3231 aix_use_runtimelinking=yes | |
3232 break | |
3233 ;; | |
3234 esac | |
3235 done | |
3236 ;; | |
3237 esac | |
3238 | |
3239 exp_sym_flag='-bexport' | |
3240 no_entry_flag='-bnoentry' | |
3241 fi | |
3242 | |
3243 # When large executables or shared objects are built, AIX ld can | |
3244 # have problems creating the table of contents. If linking a library | |
3245 # or program results in "error TOC overflow" add -mminimal-toc to | |
3246 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
3247 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
3248 | |
3249 _LT_AC_TAGVAR(archive_cmds, $1)='' | |
3250 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | |
3251 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' | |
3252 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | |
3253 | |
3254 if test "$GXX" = yes; then | |
3255 case $host_os in aix4.[[012]]|aix4.[[012]].*) | |
3256 # We only want to do this on AIX 4.2 and lower, the check | |
3257 # below for broken collect2 doesn't work under 4.3+ | |
3258 collect2name=`${CC} -print-prog-name=collect2` | |
3259 if test -f "$collect2name" && \ | |
3260 strings "$collect2name" | grep resolve_lib_name >/dev/null | |
3261 then | |
3262 # We have reworked collect2 | |
3263 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | |
3264 else | |
3265 # We have old collect2 | |
3266 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported | |
3267 # It fails to find uninstalled libraries when the uninstalled | |
3268 # path is not listed in the libpath. Setting hardcode_minus_L | |
3269 # to unsupported forces relinking | |
3270 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | |
3271 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
3272 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= | |
3273 fi | |
3274 ;; | |
3275 esac | |
3276 shared_flag='-shared' | |
3277 if test "$aix_use_runtimelinking" = yes; then | |
3278 shared_flag="$shared_flag "'${wl}-G' | |
3279 fi | |
3280 else | |
3281 # not using gcc | |
3282 if test "$host_cpu" = ia64; then | |
3283 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
3284 # chokes on -Wl,-G. The following line is correct: | |
3285 shared_flag='-G' | |
3286 else | |
3287 if test "$aix_use_runtimelinking" = yes; then | |
3288 shared_flag='${wl}-G' | |
3289 else | |
3290 shared_flag='${wl}-bM:SRE' | |
3291 fi | |
3292 fi | |
3293 fi | |
3294 | |
3295 # It seems that -bexpall does not export symbols beginning with | |
3296 # underscore (_), so it is better to generate a list of symbols to export. | |
3297 _LT_AC_TAGVAR(always_export_symbols, $1)=yes | |
3298 if test "$aix_use_runtimelinking" = yes; then | |
3299 # Warning - without using the other runtime loading flags (-brtl), | |
3300 # -berok will link without error, but may produce a broken library. | |
3301 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' | |
3302 # Determine the default libpath from the value encoded in an empty executable. | |
3303 _LT_AC_SYS_LIBPATH_AIX | |
3304 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | |
3305 | |
3306 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
3307 else | |
3308 if test "$host_cpu" = ia64; then | |
3309 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' | |
3310 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" | |
3311 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | |
3312 else | |
3313 # Determine the default libpath from the value encoded in an empty executable. | |
3314 _LT_AC_SYS_LIBPATH_AIX | |
3315 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | |
3316 # Warning - without using the other run time loading flags, | |
3317 # -berok will link without error, but may produce a broken library. | |
3318 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' | |
3319 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' | |
3320 # Exported symbols can be pulled into shared objects from archives | |
3321 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' | |
3322 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes | |
3323 # This is similar to how AIX traditionally builds its shared libraries. | |
3324 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
3325 fi | |
3326 fi | |
3327 ;; | |
3328 | |
3329 beos*) | |
3330 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
3331 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | |
3332 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
3333 # support --undefined. This deserves some investigation. FIXME | |
3334 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
3335 else | |
3336 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
3337 fi | |
3338 ;; | |
3339 | |
3340 chorus*) | |
3341 case $cc_basename in | |
3342 *) | |
3343 # FIXME: insert proper C++ library support | |
3344 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
3345 ;; | |
3346 esac | |
3347 ;; | |
3348 | |
3349 cygwin* | mingw* | pw32*) | |
3350 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, | |
3351 # as there is no search path for DLLs. | |
3352 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
3353 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | |
3354 _LT_AC_TAGVAR(always_export_symbols, $1)=no | |
3355 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | |
3356 | |
3357 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
3358 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
3359 # If the export-symbols file already is a .def file (1st line | |
3360 # is EXPORTS), use it as is; otherwise, prepend... | |
3361 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
3362 cp $export_symbols $output_objdir/$soname.def; | |
3363 else | |
3364 echo EXPORTS > $output_objdir/$soname.def; | |
3365 cat $export_symbols >> $output_objdir/$soname.def; | |
3366 fi~ | |
3367 $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' | |
3368 else | |
3369 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
3370 fi | |
3371 ;; | |
3372 darwin* | rhapsody*) | |
3373 case $host_os in | |
3374 rhapsody* | darwin1.[[012]]) | |
3375 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' | |
3376 ;; | |
3377 *) # Darwin 1.3 on | |
3378 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
3379 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
3380 else | |
3381 case ${MACOSX_DEPLOYMENT_TARGET} in | |
3382 10.[[012]]) | |
3383 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
3384 ;; | |
3385 10.*) | |
3386 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' | |
3387 ;; | |
3388 esac | |
3389 fi | |
3390 ;; | |
3391 esac | |
3392 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | |
3393 _LT_AC_TAGVAR(hardcode_direct, $1)=no | |
3394 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes | |
3395 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | |
3396 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' | |
3397 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | |
3398 | |
3399 if test "$GXX" = yes ; then | |
3400 lt_int_apple_cc_single_mod=no | |
3401 output_verbose_link_cmd='echo' | |
3402 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then | |
3403 lt_int_apple_cc_single_mod=yes | |
3404 fi | |
3405 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | |
3406 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
3407 else | |
3408 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
3409 fi | |
3410 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
3411 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
3412 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | |
3413 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
3414 else | |
3415 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
3416 fi | |
3417 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
3418 else | |
3419 case $cc_basename in | |
3420 xlc*) | |
3421 output_verbose_link_cmd='echo' | |
3422 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | |
3423 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
3424 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
3425 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
3426 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
3427 ;; | |
3428 *) | |
3429 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
3430 ;; | |
3431 esac | |
3432 fi | |
3433 ;; | |
3434 | |
3435 dgux*) | |
3436 case $cc_basename in | |
3437 ec++*) | |
3438 # FIXME: insert proper C++ library support | |
3439 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
3440 ;; | |
3441 ghcx*) | |
3442 # Green Hills C++ Compiler | |
3443 # FIXME: insert proper C++ library support | |
3444 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
3445 ;; | |
3446 *) | |
3447 # FIXME: insert proper C++ library support | |
3448 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
3449 ;; | |
3450 esac | |
3451 ;; | |
3452 freebsd[[12]]*) | |
3453 # C++ shared libraries reported to be fairly broken before switch to ELF | |
3454 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
3455 ;; | |
3456 freebsd-elf*) | |
3457 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | |
3458 ;; | |
3459 freebsd* | kfreebsd*-gnu | dragonfly*) | |
3460 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
3461 # conventions | |
3462 _LT_AC_TAGVAR(ld_shlibs, $1)=yes | |
3463 ;; | |
3464 gnu*) | |
3465 ;; | |
3466 hpux9*) | |
3467 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | |
3468 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | |
3469 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | |
3470 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | |
3471 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, | |
3472 # but as the default | |
3473 # location of the library. | |
3474 | |
3475 case $cc_basename in | |
3476 CC*) | |
3477 # FIXME: insert proper C++ library support | |
3478 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
3479 ;; | |
3480 aCC*) | |
3481 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
3482 # Commands to make compiler produce verbose output that lists | |
3483 # what "hidden" libraries, object files and flags are used when | |
3484 # linking a shared library. | |
3485 # | |
3486 # There doesn't appear to be a way to prevent this compiler from | |
3487 # explicitly linking system object files so we need to strip them | |
3488 # from the output so that they don't get included in the library | |
3489 # dependencies. | |
3490 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
3491 ;; | |
3492 *) | |
3493 if test "$GXX" = yes; then | |
3494 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
3495 else | |
3496 # FIXME: insert proper C++ library support | |
3497 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
3498 fi | |
3499 ;; | |
3500 esac | |
3501 ;; | |
3502 hpux10*|hpux11*) | |
3503 if test $with_gnu_ld = no; then | |
3504 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | |
3505 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | |
3506 | |
3507 case $host_cpu in | |
3508 hppa*64*|ia64*) | |
3509 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' | |
3510 ;; | |
3511 *) | |
3512 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | |
3513 ;; | |
3514 esac | |
3515 fi | |
3516 case $host_cpu in | |
3517 hppa*64*|ia64*) | |
3518 _LT_AC_TAGVAR(hardcode_direct, $1)=no | |
3519 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
3520 ;; | |
3521 *) | |
3522 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | |
3523 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, | |
3524 # but as the default | |
3525 # location of the library. | |
3526 ;; | |
3527 esac | |
3528 | |
3529 case $cc_basename in | |
3530 CC*) | |
3531 # FIXME: insert proper C++ library support | |
3532 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
3533 ;; | |
3534 aCC*) | |
3535 case $host_cpu in | |
3536 hppa*64*) | |
3537 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
3538 ;; | |
3539 ia64*) | |
3540 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
3541 ;; | |
3542 *) | |
3543 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
3544 ;; | |
3545 esac | |
3546 # Commands to make compiler produce verbose output that lists | |
3547 # what "hidden" libraries, object files and flags are used when | |
3548 # linking a shared library. | |
3549 # | |
3550 # There doesn't appear to be a way to prevent this compiler from | |
3551 # explicitly linking system object files so we need to strip them | |
3552 # from the output so that they don't get included in the library | |
3553 # dependencies. | |
3554 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
3555 ;; | |
3556 *) | |
3557 if test "$GXX" = yes; then | |
3558 if test $with_gnu_ld = no; then | |
3559 case $host_cpu in | |
3560 hppa*64*) | |
3561 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
3562 ;; | |
3563 ia64*) | |
3564 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
3565 ;; | |
3566 *) | |
3567 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
3568 ;; | |
3569 esac | |
3570 fi | |
3571 else | |
3572 # FIXME: insert proper C++ library support | |
3573 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
3574 fi | |
3575 ;; | |
3576 esac | |
3577 ;; | |
3578 interix3*) | |
3579 _LT_AC_TAGVAR(hardcode_direct, $1)=no | |
3580 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
3581 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | |
3582 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | |
3583 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
3584 # Instead, shared libraries are loaded at an image base (0x10000000 by | |
3585 # default) and relocated if they conflict, which is a slow very memory | |
3586 # consuming and fragmenting process. To avoid this, we pick a random, | |
3587 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
3588 # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
3589 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
3590 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
3591 ;; | |
3592 irix5* | irix6*) | |
3593 case $cc_basename in | |
3594 CC*) | |
3595 # SGI C++ | |
3596 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
3597 | |
3598 # Archives containing C++ object files must be created using | |
3599 # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
3600 # necessary to make sure instantiated templates are included | |
3601 # in the archive. | |
3602 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
3603 ;; | |
3604 *) | |
3605 if test "$GXX" = yes; then | |
3606 if test "$with_gnu_ld" = no; then | |
3607 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
3608 else | |
3609 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' | |
3610 fi | |
3611 fi | |
3612 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | |
3613 ;; | |
3614 esac | |
3615 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | |
3616 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | |
3617 ;; | |
3618 linux*) | |
3619 case $cc_basename in | |
3620 KCC*) | |
3621 # Kuck and Associates, Inc. (KAI) C++ Compiler | |
3622 | |
3623 # KCC will only create a shared library if the output file | |
3624 # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
3625 # to its proper name (with version) after linking. | |
3626 _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
3627 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' | |
3628 # Commands to make compiler produce verbose output that lists | |
3629 # what "hidden" libraries, object files and flags are used when | |
3630 # linking a shared library. | |
3631 # | |
3632 # There doesn't appear to be a way to prevent this compiler from | |
3633 # explicitly linking system object files so we need to strip them | |
3634 # from the output so that they don't get included in the library | |
3635 # dependencies. | |
3636 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
3637 | |
3638 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' | |
3639 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | |
3640 | |
3641 # Archives containing C++ object files must be created using | |
3642 # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
3643 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' | |
3644 ;; | |
3645 icpc*) | |
3646 # Intel C++ | |
3647 with_gnu_ld=yes | |
3648 # version 8.0 and above of icpc choke on multiply defined symbols | |
3649 # if we add $predep_objects and $postdep_objects, however 7.1 and | |
3650 # earlier do not add the objects themselves. | |
3651 case `$CC -V 2>&1` in | |
3652 *"Version 7."*) | |
3653 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
3654 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
3655 ;; | |
3656 *) # Version 8.0 or newer | |
3657 tmp_idyn= | |
3658 case $host_cpu in | |
3659 ia64*) tmp_idyn=' -i_dynamic';; | |
3660 esac | |
3661 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
3662 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
3663 ;; | |
3664 esac | |
3665 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | |
3666 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | |
3667 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | |
3668 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
3669 ;; | |
3670 pgCC*) | |
3671 # Portland Group C++ compiler | |
3672 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
3673 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | |
3674 | |
3675 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' | |
3676 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | |
3677 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
3678 ;; | |
3679 cxx*) | |
3680 # Compaq C++ | |
3681 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
3682 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' | |
3683 | |
3684 runpath_var=LD_RUN_PATH | |
3685 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | |
3686 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | |
3687 | |
3688 # Commands to make compiler produce verbose output that lists | |
3689 # what "hidden" libraries, object files and flags are used when | |
3690 # linking a shared library. | |
3691 # | |
3692 # There doesn't appear to be a way to prevent this compiler from | |
3693 # explicitly linking system object files so we need to strip them | |
3694 # from the output so that they don't get included in the library | |
3695 # dependencies. | |
3696 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
3697 ;; | |
3698 esac | |
3699 ;; | |
3700 lynxos*) | |
3701 # FIXME: insert proper C++ library support | |
3702 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
3703 ;; | |
3704 m88k*) | |
3705 # FIXME: insert proper C++ library support | |
3706 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
3707 ;; | |
3708 mvs*) | |
3709 case $cc_basename in | |
3710 cxx*) | |
3711 # FIXME: insert proper C++ library support | |
3712 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
3713 ;; | |
3714 *) | |
3715 # FIXME: insert proper C++ library support | |
3716 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
3717 ;; | |
3718 esac | |
3719 ;; | |
3720 netbsd*) | |
3721 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
3722 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
3723 wlarc= | |
3724 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | |
3725 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | |
3726 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
3727 fi | |
3728 # Workaround some broken pre-1.5 toolchains | |
3729 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
3730 ;; | |
3731 openbsd2*) | |
3732 # C++ shared libraries are fairly broken | |
3733 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
3734 ;; | |
3735 openbsd*) | |
3736 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | |
3737 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
3738 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
3739 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | |
3740 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
3741 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | |
3742 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | |
3743 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
3744 fi | |
3745 output_verbose_link_cmd='echo' | |
3746 ;; | |
3747 osf3*) | |
3748 case $cc_basename in | |
3749 KCC*) | |
3750 # Kuck and Associates, Inc. (KAI) C++ Compiler | |
3751 | |
3752 # KCC will only create a shared library if the output file | |
3753 # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
3754 # to its proper name (with version) after linking. | |
3755 _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
3756 | |
3757 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | |
3758 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | |
3759 | |
3760 # Archives containing C++ object files must be created using | |
3761 # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
3762 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' | |
3763 | |
3764 ;; | |
3765 RCC*) | |
3766 # Rational C++ 2.4.1 | |
3767 # FIXME: insert proper C++ library support | |
3768 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
3769 ;; | |
3770 cxx*) | |
3771 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | |
3772 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
3773 | |
3774 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | |
3775 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | |
3776 | |
3777 # Commands to make compiler produce verbose output that lists | |
3778 # what "hidden" libraries, object files and flags are used when | |
3779 # linking a shared library. | |
3780 # | |
3781 # There doesn't appear to be a way to prevent this compiler from | |
3782 # explicitly linking system object files so we need to strip them | |
3783 # from the output so that they don't get included in the library | |
3784 # dependencies. | |
3785 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
3786 ;; | |
3787 *) | |
3788 if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
3789 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | |
3790 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
3791 | |
3792 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | |
3793 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | |
3794 | |
3795 # Commands to make compiler produce verbose output that lists | |
3796 # what "hidden" libraries, object files and flags are used when | |
3797 # linking a shared library. | |
3798 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | |
3799 | |
3800 else | |
3801 # FIXME: insert proper C++ library support | |
3802 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
3803 fi | |
3804 ;; | |
3805 esac | |
3806 ;; | |
3807 osf4* | osf5*) | |
3808 case $cc_basename in | |
3809 KCC*) | |
3810 # Kuck and Associates, Inc. (KAI) C++ Compiler | |
3811 | |
3812 # KCC will only create a shared library if the output file | |
3813 # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
3814 # to its proper name (with version) after linking. | |
3815 _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
3816 | |
3817 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | |
3818 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | |
3819 | |
3820 # Archives containing C++ object files must be created using | |
3821 # the KAI C++ compiler. | |
3822 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' | |
3823 ;; | |
3824 RCC*) | |
3825 # Rational C++ 2.4.1 | |
3826 # FIXME: insert proper C++ library support | |
3827 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
3828 ;; | |
3829 cxx*) | |
3830 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | |
3831 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
3832 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | |
3833 echo "-hidden">> $lib.exp~ | |
3834 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ | |
3835 $rm $lib.exp' | |
3836 | |
3837 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | |
3838 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | |
3839 | |
3840 # Commands to make compiler produce verbose output that lists | |
3841 # what "hidden" libraries, object files and flags are used when | |
3842 # linking a shared library. | |
3843 # | |
3844 # There doesn't appear to be a way to prevent this compiler from | |
3845 # explicitly linking system object files so we need to strip them | |
3846 # from the output so that they don't get included in the library | |
3847 # dependencies. | |
3848 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
3849 ;; | |
3850 *) | |
3851 if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
3852 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | |
3853 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
3854 | |
3855 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | |
3856 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | |
3857 | |
3858 # Commands to make compiler produce verbose output that lists | |
3859 # what "hidden" libraries, object files and flags are used when | |
3860 # linking a shared library. | |
3861 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | |
3862 | |
3863 else | |
3864 # FIXME: insert proper C++ library support | |
3865 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
3866 fi | |
3867 ;; | |
3868 esac | |
3869 ;; | |
3870 psos*) | |
3871 # FIXME: insert proper C++ library support | |
3872 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
3873 ;; | |
3874 sunos4*) | |
3875 case $cc_basename in | |
3876 CC*) | |
3877 # Sun C++ 4.x | |
3878 # FIXME: insert proper C++ library support | |
3879 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
3880 ;; | |
3881 lcc*) | |
3882 # Lucid | |
3883 # FIXME: insert proper C++ library support | |
3884 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
3885 ;; | |
3886 *) | |
3887 # FIXME: insert proper C++ library support | |
3888 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
3889 ;; | |
3890 esac | |
3891 ;; | |
3892 solaris*) | |
3893 case $cc_basename in | |
3894 CC*) | |
3895 # Sun C++ 4.2, 5.x and Centerline C++ | |
3896 _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes | |
3897 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' | |
3898 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
3899 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
3900 $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' | |
3901 | |
3902 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | |
3903 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
3904 case $host_os in | |
3905 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; | |
3906 *) | |
3907 # The C++ compiler is used as linker so we must use $wl | |
3908 # flag to pass the commands to the underlying system | |
3909 # linker. We must also pass each convience library through | |
3910 # to the system linker between allextract/defaultextract. | |
3911 # The C++ compiler will combine linker options so we | |
3912 # cannot just pass the convience library names through | |
3913 # without $wl. | |
3914 # Supported since Solaris 2.6 (maybe 2.5.1?) | |
3915 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' | |
3916 ;; | |
3917 esac | |
3918 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | |
3919 | |
3920 output_verbose_link_cmd='echo' | |
3921 | |
3922 # Archives containing C++ object files must be created using | |
3923 # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
3924 # necessary to make sure instantiated templates are included | |
3925 # in the archive. | |
3926 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' | |
3927 ;; | |
3928 gcx*) | |
3929 # Green Hills C++ Compiler | |
3930 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
3931 | |
3932 # The C++ compiler must be used to create the archive. | |
3933 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
3934 ;; | |
3935 *) | |
3936 # GNU C++ compiler with Solaris linker | |
3937 if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
3938 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' | |
3939 if $CC --version | grep -v '^2\.7' > /dev/null; then | |
3940 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
3941 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
3942 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | |
3943 | |
3944 # Commands to make compiler produce verbose output that lists | |
3945 # what "hidden" libraries, object files and flags are used when | |
3946 # linking a shared library. | |
3947 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | |
3948 else | |
3949 # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
3950 # platform. | |
3951 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
3952 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
3953 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | |
3954 | |
3955 # Commands to make compiler produce verbose output that lists | |
3956 # what "hidden" libraries, object files and flags are used when | |
3957 # linking a shared library. | |
3958 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | |
3959 fi | |
3960 | |
3961 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' | |
3962 fi | |
3963 ;; | |
3964 esac | |
3965 ;; | |
3966 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) | |
3967 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | |
3968 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | |
3969 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
3970 runpath_var='LD_RUN_PATH' | |
3971 | |
3972 case $cc_basename in | |
3973 CC*) | |
3974 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
3975 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
3976 ;; | |
3977 *) | |
3978 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
3979 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
3980 ;; | |
3981 esac | |
3982 ;; | |
3983 sysv5* | sco3.2v5* | sco5v6*) | |
3984 # Note: We can NOT use -z defs as we might desire, because we do not | |
3985 # link with -lc, and that would cause any symbols used from libc to | |
3986 # always be unresolved, which means just about no library would | |
3987 # ever link correctly. If we're not using GNU ld we use -z text | |
3988 # though, which does catch some bad symbols but isn't as heavy-handed | |
3989 # as -z defs. | |
3990 # For security reasons, it is highly recommended that you always | |
3991 # use absolute paths for naming shared libraries, and exclude the | |
3992 # DT_RUNPATH tag from executables and libraries. But doing so | |
3993 # requires that you compile everything twice, which is a pain. | |
3994 # So that behaviour is only enabled if SCOABSPATH is set to a | |
3995 # non-empty value in the environment. Most likely only useful for | |
3996 # creating official distributions of packages. | |
3997 # This is a hack until libtool officially supports absolute path | |
3998 # names for shared libraries. | |
3999 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | |
4000 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' | |
4001 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | |
4002 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
4003 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | |
4004 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' | |
4005 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | |
4006 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' | |
4007 runpath_var='LD_RUN_PATH' | |
4008 | |
4009 case $cc_basename in | |
4010 CC*) | |
4011 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
4012 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
4013 ;; | |
4014 *) | |
4015 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
4016 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
4017 ;; | |
4018 esac | |
4019 ;; | |
4020 tandem*) | |
4021 case $cc_basename in | |
4022 NCC*) | |
4023 # NonStop-UX NCC 3.20 | |
4024 # FIXME: insert proper C++ library support | |
4025 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
4026 ;; | |
4027 *) | |
4028 # FIXME: insert proper C++ library support | |
4029 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
4030 ;; | |
4031 esac | |
4032 ;; | |
4033 vxworks*) | |
4034 # FIXME: insert proper C++ library support | |
4035 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
4036 ;; | |
4037 *) | |
4038 # FIXME: insert proper C++ library support | |
4039 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
4040 ;; | |
4041 esac | |
4042 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) | |
4043 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no | |
4044 | |
4045 _LT_AC_TAGVAR(GCC, $1)="$GXX" | |
4046 _LT_AC_TAGVAR(LD, $1)="$LD" | |
4047 | |
4048 ## CAVEAT EMPTOR: | |
4049 ## There is no encapsulation within the following macros, do not change | |
4050 ## the running order or otherwise move them around unless you know exactly | |
4051 ## what you are doing... | |
4052 AC_LIBTOOL_POSTDEP_PREDEP($1) | |
4053 AC_LIBTOOL_PROG_COMPILER_PIC($1) | |
4054 AC_LIBTOOL_PROG_CC_C_O($1) | |
4055 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) | |
4056 AC_LIBTOOL_PROG_LD_SHLIBS($1) | |
4057 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | |
4058 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | |
4059 | |
4060 AC_LIBTOOL_CONFIG($1) | |
4061 | |
4062 AC_LANG_POP | |
4063 CC=$lt_save_CC | |
4064 LDCXX=$LD | |
4065 LD=$lt_save_LD | |
4066 GCC=$lt_save_GCC | |
4067 with_gnu_ldcxx=$with_gnu_ld | |
4068 with_gnu_ld=$lt_save_with_gnu_ld | |
4069 lt_cv_path_LDCXX=$lt_cv_path_LD | |
4070 lt_cv_path_LD=$lt_save_path_LD | |
4071 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
4072 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
4073 ])# AC_LIBTOOL_LANG_CXX_CONFIG | |
4074 | |
4075 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) | |
4076 # ------------------------------------ | |
4077 # Figure out "hidden" library dependencies from verbose | |
4078 # compiler output when linking a shared library. | |
4079 # Parse the compiler output and extract the necessary | |
4080 # objects, libraries and library flags. | |
4081 AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[ | |
4082 dnl we can't use the lt_simple_compile_test_code here, | |
4083 dnl because it contains code intended for an executable, | |
4084 dnl not a library. It's possible we should let each | |
4085 dnl tag define a new lt_????_link_test_code variable, | |
4086 dnl but it's only used here... | |
4087 ifelse([$1],[],[cat > conftest.$ac_ext <<EOF | |
4088 int a; | |
4089 void foo (void) { a = 0; } | |
4090 EOF | |
4091 ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF | |
4092 class Foo | |
4093 { | |
4094 public: | |
4095 Foo (void) { a = 0; } | |
4096 private: | |
4097 int a; | |
4098 }; | |
4099 EOF | |
4100 ],[$1],[F77],[cat > conftest.$ac_ext <<EOF | |
4101 subroutine foo | |
4102 implicit none | |
4103 integer*4 a | |
4104 a=0 | |
4105 return | |
4106 end | |
4107 EOF | |
4108 ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF | |
4109 public class foo { | |
4110 private int a; | |
4111 public void bar (void) { | |
4112 a = 0; | |
4113 } | |
4114 }; | |
4115 EOF | |
4116 ]) | |
4117 dnl Parse the compiler output and extract the necessary | |
4118 dnl objects, libraries and library flags. | |
4119 if AC_TRY_EVAL(ac_compile); then | |
4120 # Parse the compiler output and extract the necessary | |
4121 # objects, libraries and library flags. | |
4122 | |
4123 # Sentinel used to keep track of whether or not we are before | |
4124 # the conftest object file. | |
4125 pre_test_object_deps_done=no | |
4126 | |
4127 # The `*' in the case matches for architectures that use `case' in | |
4128 # $output_verbose_cmd can trigger glob expansion during the loop | |
4129 # eval without this substitution. | |
4130 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` | |
4131 | |
4132 for p in `eval $output_verbose_link_cmd`; do | |
4133 case $p in | |
4134 | |
4135 -L* | -R* | -l*) | |
4136 # Some compilers place space between "-{L,R}" and the path. | |
4137 # Remove the space. | |
4138 if test $p = "-L" \ | |
4139 || test $p = "-R"; then | |
4140 prev=$p | |
4141 continue | |
4142 else | |
4143 prev= | |
4144 fi | |
4145 | |
4146 if test "$pre_test_object_deps_done" = no; then | |
4147 case $p in | |
4148 -L* | -R*) | |
4149 # Internal compiler library paths should come after those | |
4150 # provided the user. The postdeps already come after the | |
4151 # user supplied libs so there is no need to process them. | |
4152 if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then | |
4153 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" | |
4154 else | |
4155 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" | |
4156 fi | |
4157 ;; | |
4158 # The "-l" case would never come before the object being | |
4159 # linked, so don't bother handling this case. | |
4160 esac | |
4161 else | |
4162 if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then | |
4163 _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}" | |
4164 else | |
4165 _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}" | |
4166 fi | |
4167 fi | |
4168 ;; | |
4169 | |
4170 *.$objext) | |
4171 # This assumes that the test object file only shows up | |
4172 # once in the compiler output. | |
4173 if test "$p" = "conftest.$objext"; then | |
4174 pre_test_object_deps_done=yes | |
4175 continue | |
4176 fi | |
4177 | |
4178 if test "$pre_test_object_deps_done" = no; then | |
4179 if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then | |
4180 _LT_AC_TAGVAR(predep_objects, $1)="$p" | |
4181 else | |
4182 _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p" | |
4183 fi | |
4184 else | |
4185 if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then | |
4186 _LT_AC_TAGVAR(postdep_objects, $1)="$p" | |
4187 else | |
4188 _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p" | |
4189 fi | |
4190 fi | |
4191 ;; | |
4192 | |
4193 *) ;; # Ignore the rest. | |
4194 | |
4195 esac | |
4196 done | |
4197 | |
4198 # Clean up. | |
4199 rm -f a.out a.exe | |
4200 else | |
4201 echo "libtool.m4: error: problem compiling $1 test program" | |
4202 fi | |
4203 | |
4204 $rm -f confest.$objext | |
4205 | |
4206 # PORTME: override above test on systems where it is broken | |
4207 ifelse([$1],[CXX], | |
4208 [case $host_os in | |
4209 interix3*) | |
4210 # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
4211 # hack all around it, let's just trust "g++" to DTRT. | |
4212 _LT_AC_TAGVAR(predep_objects,$1)= | |
4213 _LT_AC_TAGVAR(postdep_objects,$1)= | |
4214 _LT_AC_TAGVAR(postdeps,$1)= | |
4215 ;; | |
4216 | |
4217 solaris*) | |
4218 case $cc_basename in | |
4219 CC*) | |
4220 # Adding this requires a known-good setup of shared libraries for | |
4221 # Sun compiler versions before 5.6, else PIC objects from an old | |
4222 # archive will be linked into the output, leading to subtle bugs. | |
4223 _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun' | |
4224 ;; | |
4225 esac | |
4226 ;; | |
4227 esac | |
4228 ]) | |
4229 | |
4230 case " $_LT_AC_TAGVAR(postdeps, $1) " in | |
4231 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; | |
4232 esac | |
4233 ])# AC_LIBTOOL_POSTDEP_PREDEP | |
4234 | |
4235 # AC_LIBTOOL_LANG_F77_CONFIG | |
4236 # -------------------------- | |
4237 # Ensure that the configuration vars for the C compiler are | |
4238 # suitably defined. Those variables are subsequently used by | |
4239 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | |
4240 AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)]) | |
4241 AC_DEFUN([_LT_AC_LANG_F77_CONFIG], | |
4242 [AC_REQUIRE([AC_PROG_F77]) | |
4243 AC_LANG_PUSH(Fortran 77) | |
4244 | |
4245 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | |
4246 _LT_AC_TAGVAR(allow_undefined_flag, $1)= | |
4247 _LT_AC_TAGVAR(always_export_symbols, $1)=no | |
4248 _LT_AC_TAGVAR(archive_expsym_cmds, $1)= | |
4249 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= | |
4250 _LT_AC_TAGVAR(hardcode_direct, $1)=no | |
4251 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= | |
4252 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | |
4253 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= | |
4254 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no | |
4255 _LT_AC_TAGVAR(hardcode_automatic, $1)=no | |
4256 _LT_AC_TAGVAR(module_cmds, $1)= | |
4257 _LT_AC_TAGVAR(module_expsym_cmds, $1)= | |
4258 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown | |
4259 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | |
4260 _LT_AC_TAGVAR(no_undefined_flag, $1)= | |
4261 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | |
4262 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no | |
4263 | |
4264 # Source file extension for f77 test sources. | |
4265 ac_ext=f | |
4266 | |
4267 # Object file extension for compiled f77 test sources. | |
4268 objext=o | |
4269 _LT_AC_TAGVAR(objext, $1)=$objext | |
4270 | |
4271 # Code to be used in simple compile tests | |
4272 lt_simple_compile_test_code=" subroutine t\n return\n end\n" | |
4273 | |
4274 # Code to be used in simple link tests | |
4275 lt_simple_link_test_code=" program t\n end\n" | |
4276 | |
4277 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
4278 _LT_AC_SYS_COMPILER | |
4279 | |
4280 # save warnings/boilerplate of simple test code | |
4281 _LT_COMPILER_BOILERPLATE | |
4282 _LT_LINKER_BOILERPLATE | |
4283 | |
4284 # Allow CC to be a program name with arguments. | |
4285 lt_save_CC="$CC" | |
4286 CC=${F77-"f77"} | |
4287 compiler=$CC | |
4288 _LT_AC_TAGVAR(compiler, $1)=$CC | |
4289 _LT_CC_BASENAME([$compiler]) | |
4290 | |
4291 AC_MSG_CHECKING([if libtool supports shared libraries]) | |
4292 AC_MSG_RESULT([$can_build_shared]) | |
4293 | |
4294 AC_MSG_CHECKING([whether to build shared libraries]) | |
4295 test "$can_build_shared" = "no" && enable_shared=no | |
4296 | |
4297 # On AIX, shared libraries and static libraries use the same namespace, and | |
4298 # are all built from PIC. | |
4299 case $host_os in | |
4300 aix3*) | |
4301 test "$enable_shared" = yes && enable_static=no | |
4302 if test -n "$RANLIB"; then | |
4303 archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
4304 postinstall_cmds='$RANLIB $lib' | |
4305 fi | |
4306 ;; | |
4307 aix4* | aix5*) | |
4308 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
4309 test "$enable_shared" = yes && enable_static=no | |
4310 fi | |
4311 ;; | |
4312 esac | |
4313 AC_MSG_RESULT([$enable_shared]) | |
4314 | |
4315 AC_MSG_CHECKING([whether to build static libraries]) | |
4316 # Make sure either enable_shared or enable_static is yes. | |
4317 test "$enable_shared" = yes || enable_static=yes | |
4318 AC_MSG_RESULT([$enable_static]) | |
4319 | |
4320 _LT_AC_TAGVAR(GCC, $1)="$G77" | |
4321 _LT_AC_TAGVAR(LD, $1)="$LD" | |
4322 | |
4323 AC_LIBTOOL_PROG_COMPILER_PIC($1) | |
4324 AC_LIBTOOL_PROG_CC_C_O($1) | |
4325 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) | |
4326 AC_LIBTOOL_PROG_LD_SHLIBS($1) | |
4327 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | |
4328 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | |
4329 | |
4330 AC_LIBTOOL_CONFIG($1) | |
4331 | |
4332 AC_LANG_POP | |
4333 CC="$lt_save_CC" | |
4334 ])# AC_LIBTOOL_LANG_F77_CONFIG | |
4335 | |
4336 | |
4337 # AC_LIBTOOL_LANG_GCJ_CONFIG | |
4338 # -------------------------- | |
4339 # Ensure that the configuration vars for the C compiler are | |
4340 # suitably defined. Those variables are subsequently used by | |
4341 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | |
4342 AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)]) | |
4343 AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG], | |
4344 [AC_LANG_SAVE | |
4345 | |
4346 # Source file extension for Java test sources. | |
4347 ac_ext=java | |
4348 | |
4349 # Object file extension for compiled Java test sources. | |
4350 objext=o | |
4351 _LT_AC_TAGVAR(objext, $1)=$objext | |
4352 | |
4353 # Code to be used in simple compile tests | |
4354 lt_simple_compile_test_code="class foo {}\n" | |
4355 | |
4356 # Code to be used in simple link tests | |
4357 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n' | |
4358 | |
4359 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
4360 _LT_AC_SYS_COMPILER | |
4361 | |
4362 # save warnings/boilerplate of simple test code | |
4363 _LT_COMPILER_BOILERPLATE | |
4364 _LT_LINKER_BOILERPLATE | |
4365 | |
4366 # Allow CC to be a program name with arguments. | |
4367 lt_save_CC="$CC" | |
4368 CC=${GCJ-"gcj"} | |
4369 compiler=$CC | |
4370 _LT_AC_TAGVAR(compiler, $1)=$CC | |
4371 _LT_CC_BASENAME([$compiler]) | |
4372 | |
4373 # GCJ did not exist at the time GCC didn't implicitly link libc in. | |
4374 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | |
4375 | |
4376 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | |
4377 | |
4378 ## CAVEAT EMPTOR: | |
4379 ## There is no encapsulation within the following macros, do not change | |
4380 ## the running order or otherwise move them around unless you know exactly | |
4381 ## what you are doing... | |
4382 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) | |
4383 AC_LIBTOOL_PROG_COMPILER_PIC($1) | |
4384 AC_LIBTOOL_PROG_CC_C_O($1) | |
4385 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) | |
4386 AC_LIBTOOL_PROG_LD_SHLIBS($1) | |
4387 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | |
4388 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | |
4389 | |
4390 AC_LIBTOOL_CONFIG($1) | |
4391 | |
4392 AC_LANG_RESTORE | |
4393 CC="$lt_save_CC" | |
4394 ])# AC_LIBTOOL_LANG_GCJ_CONFIG | |
4395 | |
4396 | |
4397 # AC_LIBTOOL_LANG_RC_CONFIG | |
4398 # ------------------------- | |
4399 # Ensure that the configuration vars for the Windows resource compiler are | |
4400 # suitably defined. Those variables are subsequently used by | |
4401 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | |
4402 AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)]) | |
4403 AC_DEFUN([_LT_AC_LANG_RC_CONFIG], | |
4404 [AC_LANG_SAVE | |
4405 | |
4406 # Source file extension for RC test sources. | |
4407 ac_ext=rc | |
4408 | |
4409 # Object file extension for compiled RC test sources. | |
4410 objext=o | |
4411 _LT_AC_TAGVAR(objext, $1)=$objext | |
4412 | |
4413 # Code to be used in simple compile tests | |
4414 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' | |
4415 | |
4416 # Code to be used in simple link tests | |
4417 lt_simple_link_test_code="$lt_simple_compile_test_code" | |
4418 | |
4419 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
4420 _LT_AC_SYS_COMPILER | |
4421 | |
4422 # save warnings/boilerplate of simple test code | |
4423 _LT_COMPILER_BOILERPLATE | |
4424 _LT_LINKER_BOILERPLATE | |
4425 | |
4426 # Allow CC to be a program name with arguments. | |
4427 lt_save_CC="$CC" | |
4428 CC=${RC-"windres"} | |
4429 compiler=$CC | |
4430 _LT_AC_TAGVAR(compiler, $1)=$CC | |
4431 _LT_CC_BASENAME([$compiler]) | |
4432 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes | |
4433 | |
4434 AC_LIBTOOL_CONFIG($1) | |
4435 | |
4436 AC_LANG_RESTORE | |
4437 CC="$lt_save_CC" | |
4438 ])# AC_LIBTOOL_LANG_RC_CONFIG | |
4439 | |
4440 | |
4441 # AC_LIBTOOL_CONFIG([TAGNAME]) | |
4442 # ---------------------------- | |
4443 # If TAGNAME is not passed, then create an initial libtool script | |
4444 # with a default configuration from the untagged config vars. Otherwise | |
4445 # add code to config.status for appending the configuration named by | |
4446 # TAGNAME from the matching tagged config vars. | |
4447 AC_DEFUN([AC_LIBTOOL_CONFIG], | |
4448 [# The else clause should only fire when bootstrapping the | |
4449 # libtool distribution, otherwise you forgot to ship ltmain.sh | |
4450 # with your package, and you will get complaints that there are | |
4451 # no rules to generate ltmain.sh. | |
4452 if test -f "$ltmain"; then | |
4453 # See if we are running on zsh, and set the options which allow our commands through | |
4454 # without removal of \ escapes. | |
4455 if test -n "${ZSH_VERSION+set}" ; then | |
4456 setopt NO_GLOB_SUBST | |
4457 fi | |
4458 # Now quote all the things that may contain metacharacters while being | |
4459 # careful not to overquote the AC_SUBSTed values. We take copies of the | |
4460 # variables and quote the copies for generation of the libtool script. | |
4461 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | |
4462 SED SHELL STRIP \ | |
4463 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
4464 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
4465 deplibs_check_method reload_flag reload_cmds need_locks \ | |
4466 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
4467 lt_cv_sys_global_symbol_to_c_name_address \ | |
4468 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
4469 old_postinstall_cmds old_postuninstall_cmds \ | |
4470 _LT_AC_TAGVAR(compiler, $1) \ | |
4471 _LT_AC_TAGVAR(CC, $1) \ | |
4472 _LT_AC_TAGVAR(LD, $1) \ | |
4473 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \ | |
4474 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \ | |
4475 _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \ | |
4476 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \ | |
4477 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \ | |
4478 _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \ | |
4479 _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \ | |
4480 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \ | |
4481 _LT_AC_TAGVAR(old_archive_cmds, $1) \ | |
4482 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \ | |
4483 _LT_AC_TAGVAR(predep_objects, $1) \ | |
4484 _LT_AC_TAGVAR(postdep_objects, $1) \ | |
4485 _LT_AC_TAGVAR(predeps, $1) \ | |
4486 _LT_AC_TAGVAR(postdeps, $1) \ | |
4487 _LT_AC_TAGVAR(compiler_lib_search_path, $1) \ | |
4488 _LT_AC_TAGVAR(archive_cmds, $1) \ | |
4489 _LT_AC_TAGVAR(archive_expsym_cmds, $1) \ | |
4490 _LT_AC_TAGVAR(postinstall_cmds, $1) \ | |
4491 _LT_AC_TAGVAR(postuninstall_cmds, $1) \ | |
4492 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \ | |
4493 _LT_AC_TAGVAR(allow_undefined_flag, $1) \ | |
4494 _LT_AC_TAGVAR(no_undefined_flag, $1) \ | |
4495 _LT_AC_TAGVAR(export_symbols_cmds, $1) \ | |
4496 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \ | |
4497 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \ | |
4498 _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \ | |
4499 _LT_AC_TAGVAR(hardcode_automatic, $1) \ | |
4500 _LT_AC_TAGVAR(module_cmds, $1) \ | |
4501 _LT_AC_TAGVAR(module_expsym_cmds, $1) \ | |
4502 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \ | |
4503 _LT_AC_TAGVAR(exclude_expsyms, $1) \ | |
4504 _LT_AC_TAGVAR(include_expsyms, $1); do | |
4505 | |
4506 case $var in | |
4507 _LT_AC_TAGVAR(old_archive_cmds, $1) | \ | |
4508 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \ | |
4509 _LT_AC_TAGVAR(archive_cmds, $1) | \ | |
4510 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ | |
4511 _LT_AC_TAGVAR(module_cmds, $1) | \ | |
4512 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ | |
4513 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ | |
4514 _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ | |
4515 extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
4516 postinstall_cmds | postuninstall_cmds | \ | |
4517 old_postinstall_cmds | old_postuninstall_cmds | \ | |
4518 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
4519 # Double-quote double-evaled strings. | |
4520 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
4521 ;; | |
4522 *) | |
4523 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
4524 ;; | |
4525 esac | |
4526 done | |
4527 | |
4528 case $lt_echo in | |
4529 *'\[$]0 --fallback-echo"') | |
4530 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'` | |
4531 ;; | |
4532 esac | |
4533 | |
4534 ifelse([$1], [], | |
4535 [cfgfile="${ofile}T" | |
4536 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 | |
4537 $rm -f "$cfgfile" | |
4538 AC_MSG_NOTICE([creating $ofile])], | |
4539 [cfgfile="$ofile"]) | |
4540 | |
4541 cat <<__EOF__ >> "$cfgfile" | |
4542 ifelse([$1], [], | |
4543 [#! $SHELL | |
4544 | |
4545 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
4546 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) | |
4547 # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
4548 # | |
4549 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 | |
4550 # Free Software Foundation, Inc. | |
4551 # | |
4552 # This file is part of GNU Libtool: | |
4553 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | |
4554 # | |
4555 # This program is free software; you can redistribute it and/or modify | |
4556 # it under the terms of the GNU General Public License as published by | |
4557 # the Free Software Foundation; either version 2 of the License, or | |
4558 # (at your option) any later version. | |
4559 # | |
4560 # This program is distributed in the hope that it will be useful, but | |
4561 # WITHOUT ANY WARRANTY; without even the implied warranty of | |
4562 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
4563 # General Public License for more details. | |
4564 # | |
4565 # You should have received a copy of the GNU General Public License | |
4566 # along with this program; if not, write to the Free Software | |
4567 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
4568 # | |
4569 # As a special exception to the GNU General Public License, if you | |
4570 # distribute this file as part of a program that contains a | |
4571 # configuration script generated by Autoconf, you may include it under | |
4572 # the same distribution terms that you use for the rest of that program. | |
4573 | |
4574 # A sed program that does not truncate output. | |
4575 SED=$lt_SED | |
4576 | |
4577 # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
4578 Xsed="$SED -e 1s/^X//" | |
4579 | |
4580 # The HP-UX ksh and POSIX shell print the target directory to stdout | |
4581 # if CDPATH is set. | |
4582 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
4583 | |
4584 # The names of the tagged configurations supported by this script. | |
4585 available_tags= | |
4586 | |
4587 # ### BEGIN LIBTOOL CONFIG], | |
4588 [# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) | |
4589 | |
4590 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
4591 | |
4592 # Shell to use when invoking shell scripts. | |
4593 SHELL=$lt_SHELL | |
4594 | |
4595 # Whether or not to build shared libraries. | |
4596 build_libtool_libs=$enable_shared | |
4597 | |
4598 # Whether or not to build static libraries. | |
4599 build_old_libs=$enable_static | |
4600 | |
4601 # Whether or not to add -lc for building shared libraries. | |
4602 build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1) | |
4603 | |
4604 # Whether or not to disallow shared libs when runtime libs are static | |
4605 allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) | |
4606 | |
4607 # Whether or not to optimize for fast installation. | |
4608 fast_install=$enable_fast_install | |
4609 | |
4610 # The host system. | |
4611 host_alias=$host_alias | |
4612 host=$host | |
4613 host_os=$host_os | |
4614 | |
4615 # The build system. | |
4616 build_alias=$build_alias | |
4617 build=$build | |
4618 build_os=$build_os | |
4619 | |
4620 # An echo program that does not interpret backslashes. | |
4621 echo=$lt_echo | |
4622 | |
4623 # The archiver. | |
4624 AR=$lt_AR | |
4625 AR_FLAGS=$lt_AR_FLAGS | |
4626 | |
4627 # A C compiler. | |
4628 LTCC=$lt_LTCC | |
4629 | |
4630 # LTCC compiler flags. | |
4631 LTCFLAGS=$lt_LTCFLAGS | |
4632 | |
4633 # A language-specific compiler. | |
4634 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) | |
4635 | |
4636 # Is the compiler the GNU C compiler? | |
4637 with_gcc=$_LT_AC_TAGVAR(GCC, $1) | |
4638 | |
4639 # An ERE matcher. | |
4640 EGREP=$lt_EGREP | |
4641 | |
4642 # The linker used to build libraries. | |
4643 LD=$lt_[]_LT_AC_TAGVAR(LD, $1) | |
4644 | |
4645 # Whether we need hard or soft links. | |
4646 LN_S=$lt_LN_S | |
4647 | |
4648 # A BSD-compatible nm program. | |
4649 NM=$lt_NM | |
4650 | |
4651 # A symbol stripping program | |
4652 STRIP=$lt_STRIP | |
4653 | |
4654 # Used to examine libraries when file_magic_cmd begins "file" | |
4655 MAGIC_CMD=$MAGIC_CMD | |
4656 | |
4657 # Used on cygwin: DLL creation program. | |
4658 DLLTOOL="$DLLTOOL" | |
4659 | |
4660 # Used on cygwin: object dumper. | |
4661 OBJDUMP="$OBJDUMP" | |
4662 | |
4663 # Used on cygwin: assembler. | |
4664 AS="$AS" | |
4665 | |
4666 # The name of the directory that contains temporary libtool files. | |
4667 objdir=$objdir | |
4668 | |
4669 # How to create reloadable object files. | |
4670 reload_flag=$lt_reload_flag | |
4671 reload_cmds=$lt_reload_cmds | |
4672 | |
4673 # How to pass a linker flag through the compiler. | |
4674 wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) | |
4675 | |
4676 # Object file suffix (normally "o"). | |
4677 objext="$ac_objext" | |
4678 | |
4679 # Old archive suffix (normally "a"). | |
4680 libext="$libext" | |
4681 | |
4682 # Shared library suffix (normally ".so"). | |
4683 shrext_cmds='$shrext_cmds' | |
4684 | |
4685 # Executable file suffix (normally ""). | |
4686 exeext="$exeext" | |
4687 | |
4688 # Additional compiler flags for building library objects. | |
4689 pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) | |
4690 pic_mode=$pic_mode | |
4691 | |
4692 # What is the maximum length of a command? | |
4693 max_cmd_len=$lt_cv_sys_max_cmd_len | |
4694 | |
4695 # Does compiler simultaneously support -c and -o options? | |
4696 compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) | |
4697 | |
4698 # Must we lock files when doing compilation? | |
4699 need_locks=$lt_need_locks | |
4700 | |
4701 # Do we need the lib prefix for modules? | |
4702 need_lib_prefix=$need_lib_prefix | |
4703 | |
4704 # Do we need a version for libraries? | |
4705 need_version=$need_version | |
4706 | |
4707 # Whether dlopen is supported. | |
4708 dlopen_support=$enable_dlopen | |
4709 | |
4710 # Whether dlopen of programs is supported. | |
4711 dlopen_self=$enable_dlopen_self | |
4712 | |
4713 # Whether dlopen of statically linked programs is supported. | |
4714 dlopen_self_static=$enable_dlopen_self_static | |
4715 | |
4716 # Compiler flag to prevent dynamic linking. | |
4717 link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1) | |
4718 | |
4719 # Compiler flag to turn off builtin functions. | |
4720 no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) | |
4721 | |
4722 # Compiler flag to allow reflexive dlopens. | |
4723 export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) | |
4724 | |
4725 # Compiler flag to generate shared objects directly from archives. | |
4726 whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1) | |
4727 | |
4728 # Compiler flag to generate thread-safe objects. | |
4729 thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1) | |
4730 | |
4731 # Library versioning type. | |
4732 version_type=$version_type | |
4733 | |
4734 # Format of library name prefix. | |
4735 libname_spec=$lt_libname_spec | |
4736 | |
4737 # List of archive names. First name is the real one, the rest are links. | |
4738 # The last name is the one that the linker finds with -lNAME. | |
4739 library_names_spec=$lt_library_names_spec | |
4740 | |
4741 # The coded name of the library, if different from the real name. | |
4742 soname_spec=$lt_soname_spec | |
4743 | |
4744 # Commands used to build and install an old-style archive. | |
4745 RANLIB=$lt_RANLIB | |
4746 old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1) | |
4747 old_postinstall_cmds=$lt_old_postinstall_cmds | |
4748 old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
4749 | |
4750 # Create an old-style archive from a shared archive. | |
4751 old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | |
4752 | |
4753 # Create a temporary old-style archive to link instead of a shared archive. | |
4754 old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | |
4755 | |
4756 # Commands used to build and install a shared archive. | |
4757 archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1) | |
4758 archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1) | |
4759 postinstall_cmds=$lt_postinstall_cmds | |
4760 postuninstall_cmds=$lt_postuninstall_cmds | |
4761 | |
4762 # Commands used to build a loadable module (assumed same as above if empty) | |
4763 module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1) | |
4764 module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1) | |
4765 | |
4766 # Commands to strip libraries. | |
4767 old_striplib=$lt_old_striplib | |
4768 striplib=$lt_striplib | |
4769 | |
4770 # Dependencies to place before the objects being linked to create a | |
4771 # shared library. | |
4772 predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1) | |
4773 | |
4774 # Dependencies to place after the objects being linked to create a | |
4775 # shared library. | |
4776 postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) | |
4777 | |
4778 # Dependencies to place before the objects being linked to create a | |
4779 # shared library. | |
4780 predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) | |
4781 | |
4782 # Dependencies to place after the objects being linked to create a | |
4783 # shared library. | |
4784 postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) | |
4785 | |
4786 # The library search path used internally by the compiler when linking | |
4787 # a shared library. | |
4788 compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) | |
4789 | |
4790 # Method to check whether dependent libraries are shared objects. | |
4791 deplibs_check_method=$lt_deplibs_check_method | |
4792 | |
4793 # Command to use when deplibs_check_method == file_magic. | |
4794 file_magic_cmd=$lt_file_magic_cmd | |
4795 | |
4796 # Flag that allows shared libraries with undefined symbols to be built. | |
4797 allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1) | |
4798 | |
4799 # Flag that forces no undefined symbols. | |
4800 no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1) | |
4801 | |
4802 # Commands used to finish a libtool library installation in a directory. | |
4803 finish_cmds=$lt_finish_cmds | |
4804 | |
4805 # Same as above, but a single script fragment to be evaled but not shown. | |
4806 finish_eval=$lt_finish_eval | |
4807 | |
4808 # Take the output of nm and produce a listing of raw symbols and C names. | |
4809 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
4810 | |
4811 # Transform the output of nm in a proper C declaration | |
4812 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
4813 | |
4814 # Transform the output of nm in a C name address pair | |
4815 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
4816 | |
4817 # This is the shared library runtime path variable. | |
4818 runpath_var=$runpath_var | |
4819 | |
4820 # This is the shared library path variable. | |
4821 shlibpath_var=$shlibpath_var | |
4822 | |
4823 # Is shlibpath searched before the hard-coded library search path? | |
4824 shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
4825 | |
4826 # How to hardcode a shared library path into an executable. | |
4827 hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1) | |
4828 | |
4829 # Whether we should hardcode library paths into libraries. | |
4830 hardcode_into_libs=$hardcode_into_libs | |
4831 | |
4832 # Flag to hardcode \$libdir into a binary during linking. | |
4833 # This must work even if \$libdir does not exist. | |
4834 hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) | |
4835 | |
4836 # If ld is used when linking, flag to hardcode \$libdir into | |
4837 # a binary during linking. This must work even if \$libdir does | |
4838 # not exist. | |
4839 hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) | |
4840 | |
4841 # Whether we need a single -rpath flag with a separated argument. | |
4842 hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1) | |
4843 | |
4844 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
4845 # resulting binary. | |
4846 hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1) | |
4847 | |
4848 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
4849 # resulting binary. | |
4850 hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1) | |
4851 | |
4852 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
4853 # the resulting binary. | |
4854 hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1) | |
4855 | |
4856 # Set to yes if building a shared library automatically hardcodes DIR into the library | |
4857 # and all subsequent libraries and executables linked against it. | |
4858 hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1) | |
4859 | |
4860 # Variables whose values should be saved in libtool wrapper scripts and | |
4861 # restored at relink time. | |
4862 variables_saved_for_relink="$variables_saved_for_relink" | |
4863 | |
4864 # Whether libtool must link a program against all its dependency libraries. | |
4865 link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) | |
4866 | |
4867 # Compile-time system search path for libraries | |
4868 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
4869 | |
4870 # Run-time system search path for libraries | |
4871 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
4872 | |
4873 # Fix the shell variable \$srcfile for the compiler. | |
4874 fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)" | |
4875 | |
4876 # Set to yes if exported symbols are required. | |
4877 always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) | |
4878 | |
4879 # The commands to list exported symbols. | |
4880 export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) | |
4881 | |
4882 # The commands to extract the exported symbol list from a shared archive. | |
4883 extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
4884 | |
4885 # Symbols that should not be listed in the preloaded symbols. | |
4886 exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1) | |
4887 | |
4888 # Symbols that must always be exported. | |
4889 include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1) | |
4890 | |
4891 ifelse([$1],[], | |
4892 [# ### END LIBTOOL CONFIG], | |
4893 [# ### END LIBTOOL TAG CONFIG: $tagname]) | |
4894 | |
4895 __EOF__ | |
4896 | |
4897 ifelse([$1],[], [ | |
4898 case $host_os in | |
4899 aix3*) | |
4900 cat <<\EOF >> "$cfgfile" | |
4901 | |
4902 # AIX sometimes has problems with the GCC collect2 program. For some | |
4903 # reason, if we set the COLLECT_NAMES environment variable, the problems | |
4904 # vanish in a puff of smoke. | |
4905 if test "X${COLLECT_NAMES+set}" != Xset; then | |
4906 COLLECT_NAMES= | |
4907 export COLLECT_NAMES | |
4908 fi | |
4909 EOF | |
4910 ;; | |
4911 esac | |
4912 | |
4913 # We use sed instead of cat because bash on DJGPP gets confused if | |
4914 # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
4915 # text mode, it properly converts lines to CR/LF. This bash problem | |
4916 # is reportedly fixed, but why not run on old versions too? | |
4917 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) | |
4918 | |
4919 mv -f "$cfgfile" "$ofile" || \ | |
4920 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
4921 chmod +x "$ofile" | |
4922 ]) | |
4923 else | |
4924 # If there is no Makefile yet, we rely on a make rule to execute | |
4925 # `config.status --recheck' to rerun these tests and create the | |
4926 # libtool script then. | |
4927 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
4928 if test -f "$ltmain_in"; then | |
4929 test -f Makefile && make "$ltmain" | |
4930 fi | |
4931 fi | |
4932 ])# AC_LIBTOOL_CONFIG | |
4933 | |
4934 | |
4935 # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) | |
4936 # ------------------------------------------- | |
4937 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], | |
4938 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl | |
4939 | |
4940 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= | |
4941 | 3627 |
4942 if test "$GCC" = yes; then | 3628 if test "$GCC" = yes; then |
4943 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' | 3629 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' |
4944 | 3630 |
4945 AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], | 3631 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], |
4946 lt_cv_prog_compiler_rtti_exceptions, | 3632 lt_cv_prog_compiler_rtti_exceptions, |
4947 [-fno-rtti -fno-exceptions], [], | 3633 [-fno-rtti -fno-exceptions], [], |
4948 [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) | 3634 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) |
4949 fi | 3635 fi |
4950 ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI | 3636 _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], |
4951 | 3637 [Compiler flag to turn off builtin functions]) |
4952 | 3638 ])# _LT_COMPILER_NO_RTTI |
4953 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE | 3639 |
4954 # --------------------------------- | 3640 |
4955 AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], | 3641 # _LT_CMD_GLOBAL_SYMBOLS |
4956 [AC_REQUIRE([AC_CANONICAL_HOST]) | 3642 # ---------------------- |
4957 AC_REQUIRE([AC_PROG_NM]) | 3643 m4_defun([_LT_CMD_GLOBAL_SYMBOLS], |
4958 AC_REQUIRE([AC_OBJEXT]) | 3644 [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
3645 AC_REQUIRE([AC_PROG_CC])dnl | |
3646 AC_REQUIRE([LT_PATH_NM])dnl | |
3647 AC_REQUIRE([LT_PATH_LD])dnl | |
3648 m4_require([_LT_DECL_SED])dnl | |
3649 m4_require([_LT_DECL_EGREP])dnl | |
3650 m4_require([_LT_TAG_COMPILER])dnl | |
3651 | |
4959 # Check for command to grab the raw symbol name followed by C symbol from nm. | 3652 # Check for command to grab the raw symbol name followed by C symbol from nm. |
4960 AC_MSG_CHECKING([command to parse $NM output from $compiler object]) | 3653 AC_MSG_CHECKING([command to parse $NM output from $compiler object]) |
4961 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], | 3654 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], |
4962 [ | 3655 [ |
4963 # These are sane defaults that work on at least a few old systems. | 3656 # These are sane defaults that work on at least a few old systems. |
4967 symcode='[[BCDEGRST]]' | 3660 symcode='[[BCDEGRST]]' |
4968 | 3661 |
4969 # Regexp to match symbols that can be accessed directly from C. | 3662 # Regexp to match symbols that can be accessed directly from C. |
4970 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' | 3663 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' |
4971 | 3664 |
4972 # Transform an extracted symbol line into a proper C declaration | |
4973 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | |
4974 | |
4975 # Transform an extracted symbol line into symbol name and symbol address | |
4976 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" | |
4977 | |
4978 # Define system-specific variables. | 3665 # Define system-specific variables. |
4979 case $host_os in | 3666 case $host_os in |
4980 aix*) | 3667 aix*) |
4981 symcode='[[BCDT]]' | 3668 symcode='[[BCDT]]' |
4982 ;; | 3669 ;; |
4983 cygwin* | mingw* | pw32*) | 3670 cygwin* | mingw* | pw32* | cegcc*) |
4984 symcode='[[ABCDGISTW]]' | 3671 symcode='[[ABCDGISTW]]' |
4985 ;; | 3672 ;; |
4986 hpux*) # Its linker distinguishes data from code symbols | 3673 hpux*) |
4987 if test "$host_cpu" = ia64; then | 3674 if test "$host_cpu" = ia64; then |
4988 symcode='[[ABCDEGRST]]' | 3675 symcode='[[ABCDEGRST]]' |
4989 fi | 3676 fi |
4990 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
4991 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" | |
4992 ;; | |
4993 linux*) | |
4994 if test "$host_cpu" = ia64; then | |
4995 symcode='[[ABCDGIRSTW]]' | |
4996 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
4997 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" | |
4998 fi | |
4999 ;; | 3677 ;; |
5000 irix* | nonstopux*) | 3678 irix* | nonstopux*) |
5001 symcode='[[BCDEGRST]]' | 3679 symcode='[[BCDEGRST]]' |
5002 ;; | 3680 ;; |
5003 osf*) | 3681 osf*) |
5015 sysv5* | sco5v6* | unixware* | OpenUNIX*) | 3693 sysv5* | sco5v6* | unixware* | OpenUNIX*) |
5016 symcode='[[ABDT]]' | 3694 symcode='[[ABDT]]' |
5017 ;; | 3695 ;; |
5018 sysv4) | 3696 sysv4) |
5019 symcode='[[DFNSTU]]' | 3697 symcode='[[DFNSTU]]' |
5020 ;; | |
5021 esac | |
5022 | |
5023 # Handle CRLF in mingw tool chain | |
5024 opt_cr= | |
5025 case $build_os in | |
5026 mingw*) | |
5027 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
5028 ;; | 3698 ;; |
5029 esac | 3699 esac |
5030 | 3700 |
5031 # If we're using GNU nm, then use its standard symbol codes. | 3701 # If we're using GNU nm, then use its standard symbol codes. |
5032 case `$NM -V 2>&1` in | 3702 case `$NM -V 2>&1` in |
5033 *GNU* | *'with BFD'*) | 3703 *GNU* | *'with BFD'*) |
5034 symcode='[[ABCDGIRSTW]]' ;; | 3704 symcode='[[ABCDGIRSTW]]' ;; |
5035 esac | 3705 esac |
5036 | 3706 |
5037 # Try without a prefix undercore, then with it. | 3707 # Transform an extracted symbol line into a proper C declaration. |
3708 # Some systems (esp. on ia64) link data and code symbols differently, | |
3709 # so use this general approach. | |
3710 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
3711 | |
3712 # Transform an extracted symbol line into symbol name and symbol address | |
3713 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
3714 lt_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'" | |
3715 | |
3716 # Handle CRLF in mingw tool chain | |
3717 opt_cr= | |
3718 case $build_os in | |
3719 mingw*) | |
3720 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
3721 ;; | |
3722 esac | |
3723 | |
3724 # Try without a prefix underscore, then with it. | |
5038 for ac_symprfx in "" "_"; do | 3725 for ac_symprfx in "" "_"; do |
5039 | 3726 |
5040 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | 3727 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
5041 symxfrm="\\1 $ac_symprfx\\2 \\2" | 3728 symxfrm="\\1 $ac_symprfx\\2 \\2" |
5042 | 3729 |
5043 # Write the raw and C identifiers. | 3730 # Write the raw and C identifiers. |
5044 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | 3731 if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
3732 # Fake it for dumpbin and say T for any non-static function | |
3733 # and D for any global variable. | |
3734 # Also find C++ and __fastcall symbols from MSVC++, | |
3735 # which start with @ or ?. | |
3736 lt_cv_sys_global_symbol_pipe="$AWK ['"\ | |
3737 " {last_section=section; section=\$ 3};"\ | |
3738 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
3739 " \$ 0!~/External *\|/{next};"\ | |
3740 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
3741 " {if(hide[section]) next};"\ | |
3742 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
3743 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
3744 " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
3745 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
3746 " ' prfx=^$ac_symprfx]" | |
3747 else | |
3748 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
3749 fi | |
5045 | 3750 |
5046 # Check to see that the pipe works correctly. | 3751 # Check to see that the pipe works correctly. |
5047 pipe_works=no | 3752 pipe_works=no |
5048 | 3753 |
5049 rm -f conftest* | 3754 rm -f conftest* |
5050 cat > conftest.$ac_ext <<EOF | 3755 cat > conftest.$ac_ext <<_LT_EOF |
5051 #ifdef __cplusplus | 3756 #ifdef __cplusplus |
5052 extern "C" { | 3757 extern "C" { |
5053 #endif | 3758 #endif |
5054 char nm_test_var; | 3759 char nm_test_var; |
5055 void nm_test_func(){} | 3760 void nm_test_func(void); |
3761 void nm_test_func(void){} | |
5056 #ifdef __cplusplus | 3762 #ifdef __cplusplus |
5057 } | 3763 } |
5058 #endif | 3764 #endif |
5059 int main(){nm_test_var='a';nm_test_func();return(0);} | 3765 int main(){nm_test_var='a';nm_test_func();return(0);} |
5060 EOF | 3766 _LT_EOF |
5061 | 3767 |
5062 if AC_TRY_EVAL(ac_compile); then | 3768 if AC_TRY_EVAL(ac_compile); then |
5063 # Now try to grab the symbols. | 3769 # Now try to grab the symbols. |
5064 nlist=conftest.nm | 3770 nlist=conftest.nm |
5065 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then | 3771 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then |
5069 else | 3775 else |
5070 rm -f "$nlist"T | 3776 rm -f "$nlist"T |
5071 fi | 3777 fi |
5072 | 3778 |
5073 # Make sure that we snagged all the symbols we need. | 3779 # Make sure that we snagged all the symbols we need. |
5074 if grep ' nm_test_var$' "$nlist" >/dev/null; then | 3780 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
5075 if grep ' nm_test_func$' "$nlist" >/dev/null; then | 3781 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
5076 cat <<EOF > conftest.$ac_ext | 3782 cat <<_LT_EOF > conftest.$ac_ext |
5077 #ifdef __cplusplus | 3783 #ifdef __cplusplus |
5078 extern "C" { | 3784 extern "C" { |
5079 #endif | 3785 #endif |
5080 | 3786 |
5081 EOF | 3787 _LT_EOF |
5082 # Now generate the symbol file. | 3788 # Now generate the symbol file. |
5083 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' | 3789 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
5084 | 3790 |
5085 cat <<EOF >> conftest.$ac_ext | 3791 cat <<_LT_EOF >> conftest.$ac_ext |
5086 #if defined (__STDC__) && __STDC__ | 3792 |
5087 # define lt_ptr_t void * | 3793 /* The mapping between symbol names and symbols. */ |
5088 #else | |
5089 # define lt_ptr_t char * | |
5090 # define const | |
5091 #endif | |
5092 | |
5093 /* The mapping between symbol names and symbols. */ | |
5094 const struct { | 3794 const struct { |
5095 const char *name; | 3795 const char *name; |
5096 lt_ptr_t address; | 3796 void *address; |
5097 } | 3797 } |
5098 lt_preloaded_symbols[[]] = | 3798 lt__PROGRAM__LTX_preloaded_symbols[[]] = |
5099 { | 3799 { |
5100 EOF | 3800 { "@PROGRAM@", (void *) 0 }, |
5101 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext | 3801 _LT_EOF |
5102 cat <<\EOF >> conftest.$ac_ext | 3802 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
5103 {0, (lt_ptr_t) 0} | 3803 cat <<\_LT_EOF >> conftest.$ac_ext |
3804 {0, (void *) 0} | |
5104 }; | 3805 }; |
3806 | |
3807 /* This works around a problem in FreeBSD linker */ | |
3808 #ifdef FREEBSD_WORKAROUND | |
3809 static const void *lt_preloaded_setup() { | |
3810 return lt__PROGRAM__LTX_preloaded_symbols; | |
3811 } | |
3812 #endif | |
5105 | 3813 |
5106 #ifdef __cplusplus | 3814 #ifdef __cplusplus |
5107 } | 3815 } |
5108 #endif | 3816 #endif |
5109 EOF | 3817 _LT_EOF |
5110 # Now try linking the two files. | 3818 # Now try linking the two files. |
5111 mv conftest.$ac_objext conftstm.$ac_objext | 3819 mv conftest.$ac_objext conftstm.$ac_objext |
5112 lt_save_LIBS="$LIBS" | 3820 lt_save_LIBS="$LIBS" |
5113 lt_save_CFLAGS="$CFLAGS" | 3821 lt_save_CFLAGS="$CFLAGS" |
5114 LIBS="conftstm.$ac_objext" | 3822 LIBS="conftstm.$ac_objext" |
5115 CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" | 3823 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" |
5116 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then | 3824 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then |
5117 pipe_works=yes | 3825 pipe_works=yes |
5118 fi | 3826 fi |
5119 LIBS="$lt_save_LIBS" | 3827 LIBS="$lt_save_LIBS" |
5120 CFLAGS="$lt_save_CFLAGS" | 3828 CFLAGS="$lt_save_CFLAGS" |
5129 fi | 3837 fi |
5130 else | 3838 else |
5131 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD | 3839 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD |
5132 cat conftest.$ac_ext >&5 | 3840 cat conftest.$ac_ext >&5 |
5133 fi | 3841 fi |
5134 rm -f conftest* conftst* | 3842 rm -rf conftest* conftst* |
5135 | 3843 |
5136 # Do not use the global_symbol_pipe unless it works. | 3844 # Do not use the global_symbol_pipe unless it works. |
5137 if test "$pipe_works" = yes; then | 3845 if test "$pipe_works" = yes; then |
5138 break | 3846 break |
5139 else | 3847 else |
5147 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | 3855 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
5148 AC_MSG_RESULT(failed) | 3856 AC_MSG_RESULT(failed) |
5149 else | 3857 else |
5150 AC_MSG_RESULT(ok) | 3858 AC_MSG_RESULT(ok) |
5151 fi | 3859 fi |
5152 ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE | 3860 |
5153 | 3861 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], |
5154 | 3862 [Take the output of nm and produce a listing of raw symbols and C names]) |
5155 # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) | 3863 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], |
5156 # --------------------------------------- | 3864 [Transform the output of nm in a proper C declaration]) |
5157 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], | 3865 _LT_DECL([global_symbol_to_c_name_address], |
5158 [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= | 3866 [lt_cv_sys_global_symbol_to_c_name_address], [1], |
5159 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= | 3867 [Transform the output of nm in a C name address pair]) |
5160 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)= | 3868 _LT_DECL([global_symbol_to_c_name_address_lib_prefix], |
3869 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], | |
3870 [Transform the output of nm in a C name address pair when lib prefix is needed]) | |
3871 ]) # _LT_CMD_GLOBAL_SYMBOLS | |
3872 | |
3873 | |
3874 # _LT_COMPILER_PIC([TAGNAME]) | |
3875 # --------------------------- | |
3876 m4_defun([_LT_COMPILER_PIC], | |
3877 [m4_require([_LT_TAG_COMPILER])dnl | |
3878 _LT_TAGVAR(lt_prog_compiler_wl, $1)= | |
3879 _LT_TAGVAR(lt_prog_compiler_pic, $1)= | |
3880 _LT_TAGVAR(lt_prog_compiler_static, $1)= | |
5161 | 3881 |
5162 AC_MSG_CHECKING([for $compiler option to produce PIC]) | 3882 AC_MSG_CHECKING([for $compiler option to produce PIC]) |
5163 ifelse([$1],[CXX],[ | 3883 m4_if([$1], [CXX], [ |
5164 # C++ specific cases for pic, static, wl, etc. | 3884 # C++ specific cases for pic, static, wl, etc. |
5165 if test "$GXX" = yes; then | 3885 if test "$GXX" = yes; then |
5166 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 3886 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
5167 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' | 3887 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' |
5168 | 3888 |
5169 case $host_os in | 3889 case $host_os in |
5170 aix*) | 3890 aix*) |
5171 # All AIX code is PIC. | 3891 # All AIX code is PIC. |
5172 if test "$host_cpu" = ia64; then | 3892 if test "$host_cpu" = ia64; then |
5173 # AIX 5 now supports IA64 processor | 3893 # AIX 5 now supports IA64 processor |
5174 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 3894 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
5175 fi | 3895 fi |
5176 ;; | 3896 ;; |
3897 | |
5177 amigaos*) | 3898 amigaos*) |
5178 # FIXME: we need at least 68020 code to build shared libraries, but | 3899 case $host_cpu in |
5179 # adding the `-m68020' flag to GCC prevents building anything better, | 3900 powerpc) |
5180 # like `-m68040'. | 3901 # see comment about AmigaOS4 .so support |
5181 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' | 3902 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
5182 ;; | 3903 ;; |
5183 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 3904 m68k) |
3905 # FIXME: we need at least 68020 code to build shared libraries, but | |
3906 # adding the `-m68020' flag to GCC prevents building anything better, | |
3907 # like `-m68040'. | |
3908 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' | |
3909 ;; | |
3910 esac | |
3911 ;; | |
3912 | |
3913 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
5184 # PIC is the default for these OSes. | 3914 # PIC is the default for these OSes. |
5185 ;; | 3915 ;; |
5186 mingw* | os2* | pw32*) | 3916 mingw* | cygwin* | os2* | pw32* | cegcc*) |
5187 # This hack is so that the source file can tell whether it is being | 3917 # This hack is so that the source file can tell whether it is being |
5188 # built for inclusion in a dll (and should export symbols for example). | 3918 # built for inclusion in a dll (and should export symbols for example). |
5189 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' | 3919 # Although the cygwin gcc ignores -fPIC, still need this for old-style |
3920 # (--disable-auto-import) libraries | |
3921 m4_if([$1], [GCJ], [], | |
3922 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) | |
5190 ;; | 3923 ;; |
5191 darwin* | rhapsody*) | 3924 darwin* | rhapsody*) |
5192 # PIC is the default on this platform | 3925 # PIC is the default on this platform |
5193 # Common symbols not allowed in MH_DYLIB files | 3926 # Common symbols not allowed in MH_DYLIB files |
5194 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' | 3927 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' |
5195 ;; | 3928 ;; |
5196 *djgpp*) | 3929 *djgpp*) |
5197 # DJGPP does not support shared libraries at all | 3930 # DJGPP does not support shared libraries at all |
5198 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= | 3931 _LT_TAGVAR(lt_prog_compiler_pic, $1)= |
5199 ;; | 3932 ;; |
5200 interix3*) | 3933 interix[[3-9]]*) |
5201 # Interix 3.x gcc -fpic/-fPIC options generate broken code. | 3934 # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
5202 # Instead, we relocate shared libraries at runtime. | 3935 # Instead, we relocate shared libraries at runtime. |
5203 ;; | 3936 ;; |
5204 sysv4*MP*) | 3937 sysv4*MP*) |
5205 if test -d /usr/nec; then | 3938 if test -d /usr/nec; then |
5206 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic | 3939 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic |
5207 fi | 3940 fi |
5208 ;; | 3941 ;; |
5209 hpux*) | 3942 hpux*) |
5210 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 3943 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
5211 # not for PA HP-UX. | 3944 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
3945 # sets the default TLS model and affects inlining. | |
5212 case $host_cpu in | 3946 case $host_cpu in |
5213 hppa*64*|ia64*) | 3947 hppa*64*) |
5214 ;; | 3948 ;; |
5215 *) | 3949 *) |
5216 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | 3950 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
5217 ;; | 3951 ;; |
5218 esac | 3952 esac |
5219 ;; | 3953 ;; |
3954 *qnx* | *nto*) | |
3955 # QNX uses GNU C++, but need to define -shared option too, otherwise | |
3956 # it will coredump. | |
3957 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' | |
3958 ;; | |
5220 *) | 3959 *) |
5221 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | 3960 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
5222 ;; | 3961 ;; |
5223 esac | 3962 esac |
5224 else | 3963 else |
5225 case $host_os in | 3964 case $host_os in |
5226 aix4* | aix5*) | 3965 aix[[4-9]]*) |
5227 # All AIX code is PIC. | 3966 # All AIX code is PIC. |
5228 if test "$host_cpu" = ia64; then | 3967 if test "$host_cpu" = ia64; then |
5229 # AIX 5 now supports IA64 processor | 3968 # AIX 5 now supports IA64 processor |
5230 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 3969 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
5231 else | 3970 else |
5232 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' | 3971 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' |
5233 fi | 3972 fi |
5234 ;; | 3973 ;; |
5235 chorus*) | 3974 chorus*) |
5236 case $cc_basename in | 3975 case $cc_basename in |
5237 cxch68*) | 3976 cxch68*) |
5238 # Green Hills C++ Compiler | 3977 # Green Hills C++ Compiler |
5239 # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" | 3978 # _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" |
5240 ;; | 3979 ;; |
5241 esac | 3980 esac |
5242 ;; | 3981 ;; |
5243 darwin*) | |
5244 # PIC is the default on this platform | |
5245 # Common symbols not allowed in MH_DYLIB files | |
5246 case $cc_basename in | |
5247 xlc*) | |
5248 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' | |
5249 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
5250 ;; | |
5251 esac | |
5252 ;; | |
5253 dgux*) | 3982 dgux*) |
5254 case $cc_basename in | 3983 case $cc_basename in |
5255 ec++*) | 3984 ec++*) |
5256 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 3985 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
5257 ;; | 3986 ;; |
5258 ghcx*) | 3987 ghcx*) |
5259 # Green Hills C++ Compiler | 3988 # Green Hills C++ Compiler |
5260 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | 3989 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
5261 ;; | 3990 ;; |
5262 *) | 3991 *) |
5263 ;; | 3992 ;; |
5264 esac | 3993 esac |
5265 ;; | 3994 ;; |
5266 freebsd* | kfreebsd*-gnu | dragonfly*) | 3995 freebsd* | dragonfly*) |
5267 # FreeBSD uses GNU C++ | 3996 # FreeBSD uses GNU C++ |
5268 ;; | 3997 ;; |
5269 hpux9* | hpux10* | hpux11*) | 3998 hpux9* | hpux10* | hpux11*) |
5270 case $cc_basename in | 3999 case $cc_basename in |
5271 CC*) | 4000 CC*) |
5272 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4001 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
5273 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' | 4002 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' |
5274 if test "$host_cpu" != ia64; then | 4003 if test "$host_cpu" != ia64; then |
5275 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' | 4004 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
5276 fi | 4005 fi |
5277 ;; | 4006 ;; |
5278 aCC*) | 4007 aCC*) |
5279 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4008 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
5280 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' | 4009 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' |
5281 case $host_cpu in | 4010 case $host_cpu in |
5282 hppa*64*|ia64*) | 4011 hppa*64*|ia64*) |
5283 # +Z the default | 4012 # +Z the default |
5284 ;; | 4013 ;; |
5285 *) | 4014 *) |
5286 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' | 4015 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
5287 ;; | 4016 ;; |
5288 esac | 4017 esac |
5289 ;; | 4018 ;; |
5290 *) | 4019 *) |
5291 ;; | 4020 ;; |
5296 # Anyone wants to do a port? | 4025 # Anyone wants to do a port? |
5297 ;; | 4026 ;; |
5298 irix5* | irix6* | nonstopux*) | 4027 irix5* | irix6* | nonstopux*) |
5299 case $cc_basename in | 4028 case $cc_basename in |
5300 CC*) | 4029 CC*) |
5301 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4030 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
5302 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | 4031 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
5303 # CC pic flag -KPIC is the default. | 4032 # CC pic flag -KPIC is the default. |
5304 ;; | 4033 ;; |
5305 *) | 4034 *) |
5306 ;; | 4035 ;; |
5307 esac | 4036 esac |
5308 ;; | 4037 ;; |
5309 linux*) | 4038 linux* | k*bsd*-gnu) |
5310 case $cc_basename in | 4039 case $cc_basename in |
5311 KCC*) | 4040 KCC*) |
5312 # KAI C++ Compiler | 4041 # KAI C++ Compiler |
5313 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' | 4042 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' |
5314 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | 4043 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
5315 ;; | 4044 ;; |
5316 icpc* | ecpc*) | 4045 ecpc* ) |
5317 # Intel C++ | 4046 # old Intel C++ for x86_64 which still supported -KPIC. |
5318 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4047 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
5319 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 4048 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
5320 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' | 4049 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' |
5321 ;; | 4050 ;; |
5322 pgCC*) | 4051 icpc* ) |
5323 # Portland Group C++ compiler. | 4052 # Intel C++, used to be incompatible with GCC. |
5324 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4053 # ICC 10 doesn't accept -KPIC any more. |
5325 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' | 4054 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
5326 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4055 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
4056 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | |
4057 ;; | |
4058 pgCC* | pgcpp*) | |
4059 # Portland Group C++ compiler | |
4060 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
4061 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' | |
4062 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
5327 ;; | 4063 ;; |
5328 cxx*) | 4064 cxx*) |
5329 # Compaq C++ | 4065 # Compaq C++ |
5330 # Make sure the PIC flag is empty. It appears that all Alpha | 4066 # Make sure the PIC flag is empty. It appears that all Alpha |
5331 # Linux and Compaq Tru64 Unix objects are PIC. | 4067 # Linux and Compaq Tru64 Unix objects are PIC. |
5332 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= | 4068 _LT_TAGVAR(lt_prog_compiler_pic, $1)= |
5333 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | 4069 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
4070 ;; | |
4071 xlc* | xlC*) | |
4072 # IBM XL 8.0 on PPC | |
4073 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
4074 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' | |
4075 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' | |
5334 ;; | 4076 ;; |
5335 *) | 4077 *) |
4078 case `$CC -V 2>&1 | sed 5q` in | |
4079 *Sun\ C*) | |
4080 # Sun C++ 5.9 | |
4081 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
4082 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
4083 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' | |
4084 ;; | |
4085 esac | |
5336 ;; | 4086 ;; |
5337 esac | 4087 esac |
5338 ;; | 4088 ;; |
5339 lynxos*) | 4089 lynxos*) |
5340 ;; | 4090 ;; |
5341 m88k*) | 4091 m88k*) |
5342 ;; | 4092 ;; |
5343 mvs*) | 4093 mvs*) |
5344 case $cc_basename in | 4094 case $cc_basename in |
5345 cxx*) | 4095 cxx*) |
5346 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' | 4096 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' |
5347 ;; | 4097 ;; |
5348 *) | 4098 *) |
5349 ;; | 4099 ;; |
5350 esac | 4100 esac |
5351 ;; | 4101 ;; |
5352 netbsd*) | 4102 netbsd*) |
5353 ;; | 4103 ;; |
4104 *qnx* | *nto*) | |
4105 # QNX uses GNU C++, but need to define -shared option too, otherwise | |
4106 # it will coredump. | |
4107 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' | |
4108 ;; | |
5354 osf3* | osf4* | osf5*) | 4109 osf3* | osf4* | osf5*) |
5355 case $cc_basename in | 4110 case $cc_basename in |
5356 KCC*) | 4111 KCC*) |
5357 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' | 4112 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' |
5358 ;; | 4113 ;; |
5359 RCC*) | 4114 RCC*) |
5360 # Rational C++ 2.4.1 | 4115 # Rational C++ 2.4.1 |
5361 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | 4116 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
5362 ;; | 4117 ;; |
5363 cxx*) | 4118 cxx*) |
5364 # Digital/Compaq C++ | 4119 # Digital/Compaq C++ |
5365 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4120 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
5366 # Make sure the PIC flag is empty. It appears that all Alpha | 4121 # Make sure the PIC flag is empty. It appears that all Alpha |
5367 # Linux and Compaq Tru64 Unix objects are PIC. | 4122 # Linux and Compaq Tru64 Unix objects are PIC. |
5368 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= | 4123 _LT_TAGVAR(lt_prog_compiler_pic, $1)= |
5369 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | 4124 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
5370 ;; | 4125 ;; |
5371 *) | 4126 *) |
5372 ;; | 4127 ;; |
5373 esac | 4128 esac |
5374 ;; | 4129 ;; |
5376 ;; | 4131 ;; |
5377 solaris*) | 4132 solaris*) |
5378 case $cc_basename in | 4133 case $cc_basename in |
5379 CC*) | 4134 CC*) |
5380 # Sun C++ 4.2, 5.x and Centerline C++ | 4135 # Sun C++ 4.2, 5.x and Centerline C++ |
5381 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 4136 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
5382 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4137 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
5383 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' | 4138 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
5384 ;; | 4139 ;; |
5385 gcx*) | 4140 gcx*) |
5386 # Green Hills C++ Compiler | 4141 # Green Hills C++ Compiler |
5387 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' | 4142 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' |
5388 ;; | 4143 ;; |
5389 *) | 4144 *) |
5390 ;; | 4145 ;; |
5391 esac | 4146 esac |
5392 ;; | 4147 ;; |
5393 sunos4*) | 4148 sunos4*) |
5394 case $cc_basename in | 4149 case $cc_basename in |
5395 CC*) | 4150 CC*) |
5396 # Sun C++ 4.x | 4151 # Sun C++ 4.x |
5397 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | 4152 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
5398 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4153 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
5399 ;; | 4154 ;; |
5400 lcc*) | 4155 lcc*) |
5401 # Lucid | 4156 # Lucid |
5402 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | 4157 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
5403 ;; | |
5404 *) | |
5405 ;; | |
5406 esac | |
5407 ;; | |
5408 tandem*) | |
5409 case $cc_basename in | |
5410 NCC*) | |
5411 # NonStop-UX NCC 3.20 | |
5412 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
5413 ;; | 4158 ;; |
5414 *) | 4159 *) |
5415 ;; | 4160 ;; |
5416 esac | 4161 esac |
5417 ;; | 4162 ;; |
5418 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | 4163 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
5419 case $cc_basename in | 4164 case $cc_basename in |
5420 CC*) | 4165 CC*) |
5421 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4166 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
5422 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 4167 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
5423 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4168 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4169 ;; | |
4170 esac | |
4171 ;; | |
4172 tandem*) | |
4173 case $cc_basename in | |
4174 NCC*) | |
4175 # NonStop-UX NCC 3.20 | |
4176 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
4177 ;; | |
4178 *) | |
5424 ;; | 4179 ;; |
5425 esac | 4180 esac |
5426 ;; | 4181 ;; |
5427 vxworks*) | 4182 vxworks*) |
5428 ;; | 4183 ;; |
5429 *) | 4184 *) |
5430 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | 4185 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
5431 ;; | 4186 ;; |
5432 esac | 4187 esac |
5433 fi | 4188 fi |
5434 ], | 4189 ], |
5435 [ | 4190 [ |
5436 if test "$GCC" = yes; then | 4191 if test "$GCC" = yes; then |
5437 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4192 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
5438 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' | 4193 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' |
5439 | 4194 |
5440 case $host_os in | 4195 case $host_os in |
5441 aix*) | 4196 aix*) |
5442 # All AIX code is PIC. | 4197 # All AIX code is PIC. |
5443 if test "$host_cpu" = ia64; then | 4198 if test "$host_cpu" = ia64; then |
5444 # AIX 5 now supports IA64 processor | 4199 # AIX 5 now supports IA64 processor |
5445 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4200 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
5446 fi | 4201 fi |
5447 ;; | 4202 ;; |
5448 | 4203 |
5449 amigaos*) | 4204 amigaos*) |
5450 # FIXME: we need at least 68020 code to build shared libraries, but | 4205 case $host_cpu in |
5451 # adding the `-m68020' flag to GCC prevents building anything better, | 4206 powerpc) |
5452 # like `-m68040'. | 4207 # see comment about AmigaOS4 .so support |
5453 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' | 4208 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
5454 ;; | 4209 ;; |
5455 | 4210 m68k) |
5456 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 4211 # FIXME: we need at least 68020 code to build shared libraries, but |
4212 # adding the `-m68020' flag to GCC prevents building anything better, | |
4213 # like `-m68040'. | |
4214 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' | |
4215 ;; | |
4216 esac | |
4217 ;; | |
4218 | |
4219 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
5457 # PIC is the default for these OSes. | 4220 # PIC is the default for these OSes. |
5458 ;; | 4221 ;; |
5459 | 4222 |
5460 mingw* | pw32* | os2*) | 4223 mingw* | cygwin* | pw32* | os2* | cegcc*) |
5461 # This hack is so that the source file can tell whether it is being | 4224 # This hack is so that the source file can tell whether it is being |
5462 # built for inclusion in a dll (and should export symbols for example). | 4225 # built for inclusion in a dll (and should export symbols for example). |
5463 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' | 4226 # Although the cygwin gcc ignores -fPIC, still need this for old-style |
4227 # (--disable-auto-import) libraries | |
4228 m4_if([$1], [GCJ], [], | |
4229 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) | |
5464 ;; | 4230 ;; |
5465 | 4231 |
5466 darwin* | rhapsody*) | 4232 darwin* | rhapsody*) |
5467 # PIC is the default on this platform | 4233 # PIC is the default on this platform |
5468 # Common symbols not allowed in MH_DYLIB files | 4234 # Common symbols not allowed in MH_DYLIB files |
5469 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' | 4235 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' |
5470 ;; | 4236 ;; |
5471 | 4237 |
5472 interix3*) | 4238 hpux*) |
4239 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
4240 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
4241 # sets the default TLS model and affects inlining. | |
4242 case $host_cpu in | |
4243 hppa*64*) | |
4244 # +Z the default | |
4245 ;; | |
4246 *) | |
4247 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | |
4248 ;; | |
4249 esac | |
4250 ;; | |
4251 | |
4252 interix[[3-9]]*) | |
5473 # Interix 3.x gcc -fpic/-fPIC options generate broken code. | 4253 # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
5474 # Instead, we relocate shared libraries at runtime. | 4254 # Instead, we relocate shared libraries at runtime. |
5475 ;; | 4255 ;; |
5476 | 4256 |
5477 msdosdjgpp*) | 4257 msdosdjgpp*) |
5478 # Just because we use GCC doesn't mean we suddenly get shared libraries | 4258 # Just because we use GCC doesn't mean we suddenly get shared libraries |
5479 # on systems that don't support them. | 4259 # on systems that don't support them. |
5480 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | 4260 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
5481 enable_shared=no | 4261 enable_shared=no |
4262 ;; | |
4263 | |
4264 *nto* | *qnx*) | |
4265 # QNX uses GNU C++, but need to define -shared option too, otherwise | |
4266 # it will coredump. | |
4267 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' | |
5482 ;; | 4268 ;; |
5483 | 4269 |
5484 sysv4*MP*) | 4270 sysv4*MP*) |
5485 if test -d /usr/nec; then | 4271 if test -d /usr/nec; then |
5486 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic | 4272 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic |
5487 fi | 4273 fi |
5488 ;; | 4274 ;; |
5489 | 4275 |
5490 hpux*) | 4276 *) |
4277 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | |
4278 ;; | |
4279 esac | |
4280 else | |
4281 # PORTME Check for flag to pass linker flags through the system compiler. | |
4282 case $host_os in | |
4283 aix*) | |
4284 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
4285 if test "$host_cpu" = ia64; then | |
4286 # AIX 5 now supports IA64 processor | |
4287 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
4288 else | |
4289 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' | |
4290 fi | |
4291 ;; | |
4292 | |
4293 mingw* | cygwin* | pw32* | os2* | cegcc*) | |
4294 # This hack is so that the source file can tell whether it is being | |
4295 # built for inclusion in a dll (and should export symbols for example). | |
4296 m4_if([$1], [GCJ], [], | |
4297 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) | |
4298 ;; | |
4299 | |
4300 hpux9* | hpux10* | hpux11*) | |
4301 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
5491 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 4302 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
5492 # not for PA HP-UX. | 4303 # not for PA HP-UX. |
5493 case $host_cpu in | 4304 case $host_cpu in |
5494 hppa*64*|ia64*) | 4305 hppa*64*|ia64*) |
5495 # +Z the default | 4306 # +Z the default |
5496 ;; | 4307 ;; |
5497 *) | 4308 *) |
5498 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | 4309 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
5499 ;; | |
5500 esac | |
5501 ;; | |
5502 | |
5503 *) | |
5504 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | |
5505 ;; | |
5506 esac | |
5507 else | |
5508 # PORTME Check for flag to pass linker flags through the system compiler. | |
5509 case $host_os in | |
5510 aix*) | |
5511 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
5512 if test "$host_cpu" = ia64; then | |
5513 # AIX 5 now supports IA64 processor | |
5514 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
5515 else | |
5516 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' | |
5517 fi | |
5518 ;; | |
5519 darwin*) | |
5520 # PIC is the default on this platform | |
5521 # Common symbols not allowed in MH_DYLIB files | |
5522 case $cc_basename in | |
5523 xlc*) | |
5524 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' | |
5525 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
5526 ;; | |
5527 esac | |
5528 ;; | |
5529 | |
5530 mingw* | pw32* | os2*) | |
5531 # This hack is so that the source file can tell whether it is being | |
5532 # built for inclusion in a dll (and should export symbols for example). | |
5533 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' | |
5534 ;; | |
5535 | |
5536 hpux9* | hpux10* | hpux11*) | |
5537 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
5538 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
5539 # not for PA HP-UX. | |
5540 case $host_cpu in | |
5541 hppa*64*|ia64*) | |
5542 # +Z the default | |
5543 ;; | |
5544 *) | |
5545 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' | |
5546 ;; | 4310 ;; |
5547 esac | 4311 esac |
5548 # Is there a better lt_prog_compiler_static that works with the bundled CC? | 4312 # Is there a better lt_prog_compiler_static that works with the bundled CC? |
5549 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' | 4313 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' |
5550 ;; | 4314 ;; |
5551 | 4315 |
5552 irix5* | irix6* | nonstopux*) | 4316 irix5* | irix6* | nonstopux*) |
5553 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4317 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
5554 # PIC (with -KPIC) is the default. | 4318 # PIC (with -KPIC) is the default. |
5555 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | 4319 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
5556 ;; | 4320 ;; |
5557 | 4321 |
5558 newsos6) | 4322 linux* | k*bsd*-gnu) |
5559 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
5560 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
5561 ;; | |
5562 | |
5563 linux*) | |
5564 case $cc_basename in | 4323 case $cc_basename in |
5565 icc* | ecc*) | 4324 # old Intel for x86_64 which still supported -KPIC. |
5566 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4325 ecc*) |
5567 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 4326 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
5568 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' | 4327 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4328 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | |
5569 ;; | 4329 ;; |
4330 # icc used to be incompatible with GCC. | |
4331 # ICC 10 doesn't accept -KPIC any more. | |
4332 icc* | ifort*) | |
4333 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
4334 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | |
4335 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | |
4336 ;; | |
4337 # Lahey Fortran 8.1. | |
4338 lf95*) | |
4339 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
4340 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' | |
4341 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' | |
4342 ;; | |
5570 pgcc* | pgf77* | pgf90* | pgf95*) | 4343 pgcc* | pgf77* | pgf90* | pgf95*) |
5571 # Portland Group compilers (*not* the Pentium gcc compiler, | 4344 # Portland Group compilers (*not* the Pentium gcc compiler, |
5572 # which looks to be a dead project) | 4345 # which looks to be a dead project) |
5573 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4346 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
5574 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' | 4347 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' |
5575 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4348 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
5576 ;; | 4349 ;; |
5577 ccc*) | 4350 ccc*) |
5578 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4351 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
5579 # All Alpha code is PIC. | 4352 # All Alpha code is PIC. |
5580 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | 4353 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
5581 ;; | 4354 ;; |
4355 xl*) | |
4356 # IBM XL C 8.0/Fortran 10.1 on PPC | |
4357 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
4358 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' | |
4359 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' | |
4360 ;; | |
4361 *) | |
4362 case `$CC -V 2>&1 | sed 5q` in | |
4363 *Sun\ C*) | |
4364 # Sun C 5.9 | |
4365 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
4366 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
4367 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
4368 ;; | |
4369 *Sun\ F*) | |
4370 # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
4371 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
4372 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
4373 _LT_TAGVAR(lt_prog_compiler_wl, $1)='' | |
4374 ;; | |
4375 esac | |
4376 ;; | |
5582 esac | 4377 esac |
5583 ;; | 4378 ;; |
5584 | 4379 |
4380 newsos6) | |
4381 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
4382 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
4383 ;; | |
4384 | |
4385 *nto* | *qnx*) | |
4386 # QNX uses GNU C++, but need to define -shared option too, otherwise | |
4387 # it will coredump. | |
4388 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' | |
4389 ;; | |
4390 | |
5585 osf3* | osf4* | osf5*) | 4391 osf3* | osf4* | osf5*) |
5586 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4392 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
5587 # All OSF/1 code is PIC. | 4393 # All OSF/1 code is PIC. |
5588 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | 4394 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
4395 ;; | |
4396 | |
4397 rdos*) | |
4398 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | |
5589 ;; | 4399 ;; |
5590 | 4400 |
5591 solaris*) | 4401 solaris*) |
5592 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 4402 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
5593 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4403 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
5594 case $cc_basename in | 4404 case $cc_basename in |
5595 f77* | f90* | f95*) | 4405 f77* | f90* | f95*) |
5596 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; | 4406 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; |
5597 *) | 4407 *) |
5598 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; | 4408 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; |
5599 esac | 4409 esac |
5600 ;; | 4410 ;; |
5601 | 4411 |
5602 sunos4*) | 4412 sunos4*) |
5603 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' | 4413 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
5604 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' | 4414 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' |
5605 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4415 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
5606 ;; | 4416 ;; |
5607 | 4417 |
5608 sysv4 | sysv4.2uw2* | sysv4.3*) | 4418 sysv4 | sysv4.2uw2* | sysv4.3*) |
5609 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4419 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
5610 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 4420 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
5611 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4421 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
5612 ;; | 4422 ;; |
5613 | 4423 |
5614 sysv4*MP*) | 4424 sysv4*MP*) |
5615 if test -d /usr/nec ;then | 4425 if test -d /usr/nec ;then |
5616 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' | 4426 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' |
5617 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4427 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
5618 fi | 4428 fi |
5619 ;; | 4429 ;; |
5620 | 4430 |
5621 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | 4431 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
5622 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4432 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
5623 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 4433 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
5624 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4434 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
5625 ;; | 4435 ;; |
5626 | 4436 |
5627 unicos*) | 4437 unicos*) |
5628 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4438 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
5629 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | 4439 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
5630 ;; | 4440 ;; |
5631 | 4441 |
5632 uts4*) | 4442 uts4*) |
5633 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | 4443 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
5634 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4444 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
5635 ;; | 4445 ;; |
5636 | 4446 |
5637 *) | 4447 *) |
5638 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | 4448 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
5639 ;; | 4449 ;; |
5640 esac | 4450 esac |
5641 fi | 4451 fi |
5642 ]) | 4452 ]) |
5643 AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) | 4453 case $host_os in |
4454 # For platforms which do not support PIC, -DPIC is meaningless: | |
4455 *djgpp*) | |
4456 _LT_TAGVAR(lt_prog_compiler_pic, $1)= | |
4457 ;; | |
4458 *) | |
4459 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" | |
4460 ;; | |
4461 esac | |
4462 AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) | |
4463 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], | |
4464 [How to pass a linker flag through the compiler]) | |
5644 | 4465 |
5645 # | 4466 # |
5646 # Check to make sure the PIC flag actually works. | 4467 # Check to make sure the PIC flag actually works. |
5647 # | 4468 # |
5648 if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then | 4469 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then |
5649 AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], | 4470 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], |
5650 _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1), | 4471 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], |
5651 [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [], | 4472 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], |
5652 [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in | 4473 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in |
5653 "" | " "*) ;; | 4474 "" | " "*) ;; |
5654 *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; | 4475 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; |
5655 esac], | 4476 esac], |
5656 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= | 4477 [_LT_TAGVAR(lt_prog_compiler_pic, $1)= |
5657 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) | 4478 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) |
5658 fi | 4479 fi |
5659 case $host_os in | 4480 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], |
5660 # For platforms which do not support PIC, -DPIC is meaningless: | 4481 [Additional compiler flags for building library objects]) |
5661 *djgpp*) | |
5662 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= | |
5663 ;; | |
5664 *) | |
5665 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" | |
5666 ;; | |
5667 esac | |
5668 | 4482 |
5669 # | 4483 # |
5670 # Check to make sure the static flag actually works. | 4484 # Check to make sure the static flag actually works. |
5671 # | 4485 # |
5672 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\" | 4486 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" |
5673 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], | 4487 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], |
5674 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), | 4488 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), |
5675 $lt_tmp_static_flag, | 4489 $lt_tmp_static_flag, |
5676 [], | 4490 [], |
5677 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) | 4491 [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) |
5678 ]) | 4492 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], |
5679 | 4493 [Compiler flag to prevent dynamic linking]) |
5680 | 4494 ])# _LT_COMPILER_PIC |
5681 # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) | 4495 |
5682 # ------------------------------------ | 4496 |
4497 # _LT_LINKER_SHLIBS([TAGNAME]) | |
4498 # ---------------------------- | |
5683 # See if the linker supports building shared libraries. | 4499 # See if the linker supports building shared libraries. |
5684 AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], | 4500 m4_defun([_LT_LINKER_SHLIBS], |
5685 [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) | 4501 [AC_REQUIRE([LT_PATH_LD])dnl |
5686 ifelse([$1],[CXX],[ | 4502 AC_REQUIRE([LT_PATH_NM])dnl |
5687 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 4503 m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
4504 m4_require([_LT_DECL_EGREP])dnl | |
4505 m4_require([_LT_DECL_SED])dnl | |
4506 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl | |
4507 m4_require([_LT_TAG_COMPILER])dnl | |
4508 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) | |
4509 m4_if([$1], [CXX], [ | |
4510 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
5688 case $host_os in | 4511 case $host_os in |
5689 aix4* | aix5*) | 4512 aix[[4-9]]*) |
5690 # If we're using GNU nm, then we don't want the "-C" option. | 4513 # If we're using GNU nm, then we don't want the "-C" option. |
5691 # -C means demangle to AIX nm, but means don't demangle with GNU nm | 4514 # -C means demangle to AIX nm, but means don't demangle with GNU nm |
5692 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | 4515 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
5693 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' | 4516 _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' |
5694 else | 4517 else |
5695 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' | 4518 _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' |
5696 fi | 4519 fi |
5697 ;; | 4520 ;; |
5698 pw32*) | 4521 pw32*) |
5699 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" | 4522 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" |
5700 ;; | 4523 ;; |
5701 cygwin* | mingw*) | 4524 cygwin* | mingw* | cegcc*) |
5702 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' | 4525 _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' |
5703 ;; | 4526 ;; |
5704 *) | 4527 *) |
5705 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 4528 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
5706 ;; | 4529 ;; |
5707 esac | 4530 esac |
5708 ],[ | 4531 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] |
4532 ], [ | |
5709 runpath_var= | 4533 runpath_var= |
5710 _LT_AC_TAGVAR(allow_undefined_flag, $1)= | 4534 _LT_TAGVAR(allow_undefined_flag, $1)= |
5711 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no | 4535 _LT_TAGVAR(always_export_symbols, $1)=no |
5712 _LT_AC_TAGVAR(archive_cmds, $1)= | 4536 _LT_TAGVAR(archive_cmds, $1)= |
5713 _LT_AC_TAGVAR(archive_expsym_cmds, $1)= | 4537 _LT_TAGVAR(archive_expsym_cmds, $1)= |
5714 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= | 4538 _LT_TAGVAR(compiler_needs_object, $1)=no |
5715 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= | 4539 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
5716 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= | 4540 _LT_TAGVAR(export_dynamic_flag_spec, $1)= |
5717 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | 4541 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
5718 _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= | 4542 _LT_TAGVAR(hardcode_automatic, $1)=no |
5719 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= | 4543 _LT_TAGVAR(hardcode_direct, $1)=no |
5720 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | 4544 _LT_TAGVAR(hardcode_direct_absolute, $1)=no |
5721 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= | 4545 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
5722 _LT_AC_TAGVAR(hardcode_direct, $1)=no | 4546 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
5723 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no | 4547 _LT_TAGVAR(hardcode_libdir_separator, $1)= |
5724 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | 4548 _LT_TAGVAR(hardcode_minus_L, $1)=no |
5725 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown | 4549 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
5726 _LT_AC_TAGVAR(hardcode_automatic, $1)=no | 4550 _LT_TAGVAR(inherit_rpath, $1)=no |
5727 _LT_AC_TAGVAR(module_cmds, $1)= | 4551 _LT_TAGVAR(link_all_deplibs, $1)=unknown |
5728 _LT_AC_TAGVAR(module_expsym_cmds, $1)= | 4552 _LT_TAGVAR(module_cmds, $1)= |
5729 _LT_AC_TAGVAR(always_export_symbols, $1)=no | 4553 _LT_TAGVAR(module_expsym_cmds, $1)= |
5730 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 4554 _LT_TAGVAR(old_archive_from_new_cmds, $1)= |
4555 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= | |
4556 _LT_TAGVAR(thread_safe_flag_spec, $1)= | |
4557 _LT_TAGVAR(whole_archive_flag_spec, $1)= | |
5731 # include_expsyms should be a list of space-separated symbols to be *always* | 4558 # include_expsyms should be a list of space-separated symbols to be *always* |
5732 # included in the symbol list | 4559 # included in the symbol list |
5733 _LT_AC_TAGVAR(include_expsyms, $1)= | 4560 _LT_TAGVAR(include_expsyms, $1)= |
5734 # exclude_expsyms can be an extended regexp of symbols to exclude | 4561 # exclude_expsyms can be an extended regexp of symbols to exclude |
5735 # it will be wrapped by ` (' and `)$', so one must not match beginning or | 4562 # it will be wrapped by ` (' and `)$', so one must not match beginning or |
5736 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | 4563 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
5737 # as well as any symbol that contains `d'. | 4564 # as well as any symbol that contains `d'. |
5738 _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_" | 4565 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] |
5739 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | 4566 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
5740 # platforms (ab)use it in PIC code, but their linkers get confused if | 4567 # platforms (ab)use it in PIC code, but their linkers get confused if |
5741 # the symbol is explicitly referenced. Since portable code cannot | 4568 # the symbol is explicitly referenced. Since portable code cannot |
5742 # rely on this symbol name, it's probably fine to never include it in | 4569 # rely on this symbol name, it's probably fine to never include it in |
5743 # preloaded symbol tables. | 4570 # preloaded symbol tables. |
4571 # Exclude shared library initialization/finalization symbols. | |
4572 dnl Note also adjust exclude_expsyms for C++ above. | |
5744 extract_expsyms_cmds= | 4573 extract_expsyms_cmds= |
5745 # Just being paranoid about ensuring that cc_basename is set. | 4574 |
5746 _LT_CC_BASENAME([$compiler]) | |
5747 case $host_os in | 4575 case $host_os in |
5748 cygwin* | mingw* | pw32*) | 4576 cygwin* | mingw* | pw32* | cegcc*) |
5749 # FIXME: the MSVC++ port hasn't been tested in a loooong time | 4577 # FIXME: the MSVC++ port hasn't been tested in a loooong time |
5750 # When not using gcc, we currently assume that we are using | 4578 # When not using gcc, we currently assume that we are using |
5751 # Microsoft Visual C++. | 4579 # Microsoft Visual C++. |
5752 if test "$GCC" != yes; then | 4580 if test "$GCC" != yes; then |
5753 with_gnu_ld=no | 4581 with_gnu_ld=no |
5760 openbsd*) | 4588 openbsd*) |
5761 with_gnu_ld=no | 4589 with_gnu_ld=no |
5762 ;; | 4590 ;; |
5763 esac | 4591 esac |
5764 | 4592 |
5765 _LT_AC_TAGVAR(ld_shlibs, $1)=yes | 4593 _LT_TAGVAR(ld_shlibs, $1)=yes |
5766 if test "$with_gnu_ld" = yes; then | 4594 if test "$with_gnu_ld" = yes; then |
5767 # If archive_cmds runs LD, not CC, wlarc should be empty | 4595 # If archive_cmds runs LD, not CC, wlarc should be empty |
5768 wlarc='${wl}' | 4596 wlarc='${wl}' |
5769 | 4597 |
5770 # Set some defaults for GNU ld with shared library support. These | 4598 # Set some defaults for GNU ld with shared library support. These |
5771 # are reset later if shared libraries are not supported. Putting them | 4599 # are reset later if shared libraries are not supported. Putting them |
5772 # here allows them to be overridden if necessary. | 4600 # here allows them to be overridden if necessary. |
5773 runpath_var=LD_RUN_PATH | 4601 runpath_var=LD_RUN_PATH |
5774 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' | 4602 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
5775 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | 4603 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
5776 # ancient GNU ld didn't support --whole-archive et. al. | 4604 # ancient GNU ld didn't support --whole-archive et. al. |
5777 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | 4605 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
5778 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 4606 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
5779 else | 4607 else |
5780 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | 4608 _LT_TAGVAR(whole_archive_flag_spec, $1)= |
5781 fi | 4609 fi |
5782 supports_anon_versioning=no | 4610 supports_anon_versioning=no |
5783 case `$LD -v 2>/dev/null` in | 4611 case `$LD -v 2>&1` in |
5784 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 | 4612 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 |
5785 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | 4613 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
5786 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | 4614 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
5787 *\ 2.11.*) ;; # other 2.11 versions | 4615 *\ 2.11.*) ;; # other 2.11 versions |
5788 *) supports_anon_versioning=yes ;; | 4616 *) supports_anon_versioning=yes ;; |
5789 esac | 4617 esac |
5790 | 4618 |
5791 # See if GNU ld supports shared libraries. | 4619 # See if GNU ld supports shared libraries. |
5792 case $host_os in | 4620 case $host_os in |
5793 aix3* | aix4* | aix5*) | 4621 aix[[3-9]]*) |
5794 # On AIX/PPC, the GNU linker is very broken | 4622 # On AIX/PPC, the GNU linker is very broken |
5795 if test "$host_cpu" != ia64; then | 4623 if test "$host_cpu" != ia64; then |
5796 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 4624 _LT_TAGVAR(ld_shlibs, $1)=no |
5797 cat <<EOF 1>&2 | 4625 cat <<_LT_EOF 1>&2 |
5798 | 4626 |
5799 *** Warning: the GNU linker, at least up to release 2.9.1, is reported | 4627 *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
5800 *** to be unable to reliably create shared libraries on AIX. | 4628 *** to be unable to reliably create shared libraries on AIX. |
5801 *** Therefore, libtool is disabling shared libraries support. If you | 4629 *** Therefore, libtool is disabling shared libraries support. If you |
5802 *** really care for shared libraries, you may want to modify your PATH | 4630 *** really care for shared libraries, you may want to modify your PATH |
5803 *** so that a non-GNU linker is found, and then restart. | 4631 *** so that a non-GNU linker is found, and then restart. |
5804 | 4632 |
5805 EOF | 4633 _LT_EOF |
5806 fi | 4634 fi |
5807 ;; | 4635 ;; |
5808 | 4636 |
5809 amigaos*) | 4637 amigaos*) |
5810 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | 4638 case $host_cpu in |
5811 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | 4639 powerpc) |
5812 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | 4640 # see comment about AmigaOS4 .so support |
5813 | 4641 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
5814 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | 4642 _LT_TAGVAR(archive_expsym_cmds, $1)='' |
5815 # that the semantics of dynamic libraries on AmigaOS, at least up | 4643 ;; |
5816 # to version 4, is to share data among multiple programs linked | 4644 m68k) |
5817 # with the same dynamic library. Since this doesn't match the | 4645 _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)' |
5818 # behavior of shared libraries on other platforms, we can't use | 4646 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
5819 # them. | 4647 _LT_TAGVAR(hardcode_minus_L, $1)=yes |
5820 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 4648 ;; |
4649 esac | |
5821 ;; | 4650 ;; |
5822 | 4651 |
5823 beos*) | 4652 beos*) |
5824 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 4653 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
5825 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | 4654 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
5826 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | 4655 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
5827 # support --undefined. This deserves some investigation. FIXME | 4656 # support --undefined. This deserves some investigation. FIXME |
5828 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 4657 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
5829 else | 4658 else |
5830 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 4659 _LT_TAGVAR(ld_shlibs, $1)=no |
5831 fi | 4660 fi |
5832 ;; | 4661 ;; |
5833 | 4662 |
5834 cygwin* | mingw* | pw32*) | 4663 cygwin* | mingw* | pw32* | cegcc*) |
5835 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, | 4664 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
5836 # as there is no search path for DLLs. | 4665 # as there is no search path for DLLs. |
5837 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | 4666 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
5838 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | 4667 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
5839 _LT_AC_TAGVAR(always_export_symbols, $1)=no | 4668 _LT_TAGVAR(always_export_symbols, $1)=no |
5840 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | 4669 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
5841 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' | 4670 _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' |
5842 | 4671 |
5843 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 4672 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
5844 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | 4673 _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' |
5845 # If the export-symbols file already is a .def file (1st line | 4674 # If the export-symbols file already is a .def file (1st line |
5846 # is EXPORTS), use it as is; otherwise, prepend... | 4675 # is EXPORTS), use it as is; otherwise, prepend... |
5847 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 4676 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
5848 cp $export_symbols $output_objdir/$soname.def; | 4677 cp $export_symbols $output_objdir/$soname.def; |
5849 else | 4678 else |
5850 echo EXPORTS > $output_objdir/$soname.def; | 4679 echo EXPORTS > $output_objdir/$soname.def; |
5851 cat $export_symbols >> $output_objdir/$soname.def; | 4680 cat $export_symbols >> $output_objdir/$soname.def; |
5852 fi~ | 4681 fi~ |
5853 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | 4682 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
5854 else | 4683 else |
5855 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 4684 _LT_TAGVAR(ld_shlibs, $1)=no |
5856 fi | 4685 fi |
5857 ;; | 4686 ;; |
5858 | 4687 |
5859 interix3*) | 4688 interix[[3-9]]*) |
5860 _LT_AC_TAGVAR(hardcode_direct, $1)=no | 4689 _LT_TAGVAR(hardcode_direct, $1)=no |
5861 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 4690 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
5862 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | 4691 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
5863 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 4692 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
5864 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | 4693 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
5865 # Instead, shared libraries are loaded at an image base (0x10000000 by | 4694 # Instead, shared libraries are loaded at an image base (0x10000000 by |
5866 # default) and relocated if they conflict, which is a slow very memory | 4695 # default) and relocated if they conflict, which is a slow very memory |
5867 # consuming and fragmenting process. To avoid this, we pick a random, | 4696 # consuming and fragmenting process. To avoid this, we pick a random, |
5868 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | 4697 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
5869 # time. Moving up from 0x10000000 also allows more sbrk(2) space. | 4698 # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
5870 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | 4699 _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' |
5871 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | 4700 _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' |
5872 ;; | 4701 ;; |
5873 | 4702 |
5874 linux*) | 4703 gnu* | linux* | tpf* | k*bsd*-gnu) |
5875 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 4704 tmp_diet=no |
4705 if test "$host_os" = linux-dietlibc; then | |
4706 case $cc_basename in | |
4707 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
4708 esac | |
4709 fi | |
4710 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
4711 && test "$tmp_diet" = no | |
4712 then | |
5876 tmp_addflag= | 4713 tmp_addflag= |
4714 tmp_sharedflag='-shared' | |
5877 case $cc_basename,$host_cpu in | 4715 case $cc_basename,$host_cpu in |
5878 pgcc*) # Portland Group C compiler | 4716 pgcc*) # Portland Group C compiler |
5879 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | 4717 _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' |
5880 tmp_addflag=' $pic_flag' | 4718 tmp_addflag=' $pic_flag' |
5881 ;; | 4719 ;; |
5882 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | 4720 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
5883 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | 4721 _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' |
5884 tmp_addflag=' $pic_flag -Mnomain' ;; | 4722 tmp_addflag=' $pic_flag -Mnomain' ;; |
5885 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | 4723 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
5886 tmp_addflag=' -i_dynamic' ;; | 4724 tmp_addflag=' -i_dynamic' ;; |
5887 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | 4725 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
5888 tmp_addflag=' -i_dynamic -nofor_main' ;; | 4726 tmp_addflag=' -i_dynamic -nofor_main' ;; |
5889 ifc* | ifort*) # Intel Fortran compiler | 4727 ifc* | ifort*) # Intel Fortran compiler |
5890 tmp_addflag=' -nofor_main' ;; | 4728 tmp_addflag=' -nofor_main' ;; |
4729 lf95*) # Lahey Fortran 8.1 | |
4730 _LT_TAGVAR(whole_archive_flag_spec, $1)= | |
4731 tmp_sharedflag='--shared' ;; | |
4732 xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
4733 tmp_sharedflag='-qmkshrobj' | |
4734 tmp_addflag= ;; | |
5891 esac | 4735 esac |
5892 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 4736 case `$CC -V 2>&1 | sed 5q` in |
5893 | 4737 *Sun\ C*) # Sun C 5.9 |
5894 if test $supports_anon_versioning = yes; then | 4738 _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' |
5895 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ | 4739 _LT_TAGVAR(compiler_needs_object, $1)=yes |
5896 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | 4740 tmp_sharedflag='-G' ;; |
5897 $echo "local: *; };" >> $output_objdir/$libname.ver~ | 4741 *Sun\ F*) # Sun Fortran 8.3 |
5898 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | 4742 tmp_sharedflag='-G' ;; |
5899 fi | 4743 esac |
4744 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
4745 | |
4746 if test "x$supports_anon_versioning" = xyes; then | |
4747 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ | |
4748 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
4749 echo "local: *; };" >> $output_objdir/$libname.ver~ | |
4750 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
4751 fi | |
4752 | |
4753 case $cc_basename in | |
4754 xlf*) | |
4755 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
4756 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' | |
4757 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | |
4758 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' | |
4759 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
4760 if test "x$supports_anon_versioning" = xyes; then | |
4761 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ | |
4762 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
4763 echo "local: *; };" >> $output_objdir/$libname.ver~ | |
4764 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
4765 fi | |
4766 ;; | |
4767 esac | |
5900 else | 4768 else |
5901 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 4769 _LT_TAGVAR(ld_shlibs, $1)=no |
5902 fi | 4770 fi |
5903 ;; | 4771 ;; |
5904 | 4772 |
5905 netbsd*) | 4773 netbsd*) |
5906 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 4774 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
5907 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | 4775 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
5908 wlarc= | 4776 wlarc= |
5909 else | 4777 else |
5910 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 4778 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
5911 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 4779 _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' |
5912 fi | 4780 fi |
5913 ;; | 4781 ;; |
5914 | 4782 |
5915 solaris*) | 4783 solaris*) |
5916 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | 4784 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
5917 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 4785 _LT_TAGVAR(ld_shlibs, $1)=no |
5918 cat <<EOF 1>&2 | 4786 cat <<_LT_EOF 1>&2 |
5919 | 4787 |
5920 *** Warning: The releases 2.8.* of the GNU linker cannot reliably | 4788 *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
5921 *** create shared libraries on Solaris systems. Therefore, libtool | 4789 *** create shared libraries on Solaris systems. Therefore, libtool |
5922 *** is disabling shared libraries support. We urge you to upgrade GNU | 4790 *** is disabling shared libraries support. We urge you to upgrade GNU |
5923 *** binutils to release 2.9.1 or newer. Another option is to modify | 4791 *** binutils to release 2.9.1 or newer. Another option is to modify |
5924 *** your PATH or compiler configuration so that the native linker is | 4792 *** your PATH or compiler configuration so that the native linker is |
5925 *** used, and then restart. | 4793 *** used, and then restart. |
5926 | 4794 |
5927 EOF | 4795 _LT_EOF |
5928 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 4796 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
5929 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 4797 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
5930 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 4798 _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' |
5931 else | 4799 else |
5932 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 4800 _LT_TAGVAR(ld_shlibs, $1)=no |
5933 fi | 4801 fi |
5934 ;; | 4802 ;; |
5935 | 4803 |
5936 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | 4804 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
5937 case `$LD -v 2>&1` in | 4805 case `$LD -v 2>&1` in |
5938 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) | 4806 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) |
5939 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 4807 _LT_TAGVAR(ld_shlibs, $1)=no |
5940 cat <<_LT_EOF 1>&2 | 4808 cat <<_LT_EOF 1>&2 |
5941 | 4809 |
5942 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | 4810 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
5943 *** reliably create shared libraries on SCO systems. Therefore, libtool | 4811 *** reliably create shared libraries on SCO systems. Therefore, libtool |
5944 *** is disabling shared libraries support. We urge you to upgrade GNU | 4812 *** is disabling shared libraries support. We urge you to upgrade GNU |
5947 *** used, and then restart. | 4815 *** used, and then restart. |
5948 | 4816 |
5949 _LT_EOF | 4817 _LT_EOF |
5950 ;; | 4818 ;; |
5951 *) | 4819 *) |
5952 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 4820 # For security reasons, it is highly recommended that you always |
5953 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | 4821 # use absolute paths for naming shared libraries, and exclude the |
5954 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | 4822 # DT_RUNPATH tag from executables and libraries. But doing so |
5955 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' | 4823 # requires that you compile everything twice, which is a pain. |
4824 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
4825 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | |
4826 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
4827 _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' | |
5956 else | 4828 else |
5957 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 4829 _LT_TAGVAR(ld_shlibs, $1)=no |
5958 fi | 4830 fi |
5959 ;; | 4831 ;; |
5960 esac | 4832 esac |
5961 ;; | 4833 ;; |
5962 | 4834 |
5963 sunos4*) | 4835 sunos4*) |
5964 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 4836 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
5965 wlarc= | 4837 wlarc= |
5966 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | 4838 _LT_TAGVAR(hardcode_direct, $1)=yes |
5967 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 4839 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
5968 ;; | 4840 ;; |
5969 | 4841 |
5970 *) | 4842 *) |
5971 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 4843 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
5972 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 4844 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
5973 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 4845 _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' |
5974 else | 4846 else |
5975 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 4847 _LT_TAGVAR(ld_shlibs, $1)=no |
5976 fi | 4848 fi |
5977 ;; | 4849 ;; |
5978 esac | 4850 esac |
5979 | 4851 |
5980 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then | 4852 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then |
5981 runpath_var= | 4853 runpath_var= |
5982 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= | 4854 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
5983 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= | 4855 _LT_TAGVAR(export_dynamic_flag_spec, $1)= |
5984 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | 4856 _LT_TAGVAR(whole_archive_flag_spec, $1)= |
5985 fi | 4857 fi |
5986 else | 4858 else |
5987 # PORTME fill in a description of your system's linker (not GNU ld) | 4859 # PORTME fill in a description of your system's linker (not GNU ld) |
5988 case $host_os in | 4860 case $host_os in |
5989 aix3*) | 4861 aix3*) |
5990 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | 4862 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
5991 _LT_AC_TAGVAR(always_export_symbols, $1)=yes | 4863 _LT_TAGVAR(always_export_symbols, $1)=yes |
5992 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | 4864 _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' |
5993 # Note: this linker hardcodes the directories in LIBPATH if there | 4865 # Note: this linker hardcodes the directories in LIBPATH if there |
5994 # are no directories specified by -L. | 4866 # are no directories specified by -L. |
5995 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | 4867 _LT_TAGVAR(hardcode_minus_L, $1)=yes |
5996 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | 4868 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
5997 # Neither direct hardcoding nor static linking is supported with a | 4869 # Neither direct hardcoding nor static linking is supported with a |
5998 # broken collect2. | 4870 # broken collect2. |
5999 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported | 4871 _LT_TAGVAR(hardcode_direct, $1)=unsupported |
6000 fi | 4872 fi |
6001 ;; | 4873 ;; |
6002 | 4874 |
6003 aix4* | aix5*) | 4875 aix[[4-9]]*) |
6004 if test "$host_cpu" = ia64; then | 4876 if test "$host_cpu" = ia64; then |
6005 # On IA64, the linker does run time linking by default, so we don't | 4877 # On IA64, the linker does run time linking by default, so we don't |
6006 # have to do anything special. | 4878 # have to do anything special. |
6007 aix_use_runtimelinking=no | 4879 aix_use_runtimelinking=no |
6008 exp_sym_flag='-Bexport' | 4880 exp_sym_flag='-Bexport' |
6009 no_entry_flag="" | 4881 no_entry_flag="" |
6010 else | 4882 else |
6011 # If we're using GNU nm, then we don't want the "-C" option. | 4883 # If we're using GNU nm, then we don't want the "-C" option. |
6012 # -C means demangle to AIX nm, but means don't demangle with GNU nm | 4884 # -C means demangle to AIX nm, but means don't demangle with GNU nm |
6013 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | 4885 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
6014 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' | 4886 _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' |
6015 else | 4887 else |
6016 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' | 4888 _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' |
6017 fi | 4889 fi |
6018 aix_use_runtimelinking=no | 4890 aix_use_runtimelinking=no |
6019 | 4891 |
6020 # Test if we are trying to use run time linking or normal | 4892 # Test if we are trying to use run time linking or normal |
6021 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | 4893 # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
6022 # need to do runtime linking. | 4894 # need to do runtime linking. |
6023 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) | 4895 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) |
6024 for ld_flag in $LDFLAGS; do | 4896 for ld_flag in $LDFLAGS; do |
6025 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | 4897 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
6026 aix_use_runtimelinking=yes | 4898 aix_use_runtimelinking=yes |
6027 break | 4899 break |
6028 fi | 4900 fi |
6029 done | 4901 done |
6030 ;; | 4902 ;; |
6031 esac | 4903 esac |
6032 | 4904 |
6033 exp_sym_flag='-bexport' | 4905 exp_sym_flag='-bexport' |
6038 # have problems creating the table of contents. If linking a library | 4910 # have problems creating the table of contents. If linking a library |
6039 # or program results in "error TOC overflow" add -mminimal-toc to | 4911 # or program results in "error TOC overflow" add -mminimal-toc to |
6040 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | 4912 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
6041 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 4913 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
6042 | 4914 |
6043 _LT_AC_TAGVAR(archive_cmds, $1)='' | 4915 _LT_TAGVAR(archive_cmds, $1)='' |
6044 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | 4916 _LT_TAGVAR(hardcode_direct, $1)=yes |
6045 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' | 4917 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes |
6046 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | 4918 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' |
4919 _LT_TAGVAR(link_all_deplibs, $1)=yes | |
4920 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' | |
6047 | 4921 |
6048 if test "$GCC" = yes; then | 4922 if test "$GCC" = yes; then |
6049 case $host_os in aix4.[[012]]|aix4.[[012]].*) | 4923 case $host_os in aix4.[[012]]|aix4.[[012]].*) |
6050 # We only want to do this on AIX 4.2 and lower, the check | 4924 # We only want to do this on AIX 4.2 and lower, the check |
6051 # below for broken collect2 doesn't work under 4.3+ | 4925 # below for broken collect2 doesn't work under 4.3+ |
6052 collect2name=`${CC} -print-prog-name=collect2` | 4926 collect2name=`${CC} -print-prog-name=collect2` |
6053 if test -f "$collect2name" && \ | 4927 if test -f "$collect2name" && |
6054 strings "$collect2name" | grep resolve_lib_name >/dev/null | 4928 strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
6055 then | 4929 then |
6056 # We have reworked collect2 | 4930 # We have reworked collect2 |
6057 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | 4931 : |
6058 else | 4932 else |
6059 # We have old collect2 | 4933 # We have old collect2 |
6060 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported | 4934 _LT_TAGVAR(hardcode_direct, $1)=unsupported |
6061 # It fails to find uninstalled libraries when the uninstalled | 4935 # It fails to find uninstalled libraries when the uninstalled |
6062 # path is not listed in the libpath. Setting hardcode_minus_L | 4936 # path is not listed in the libpath. Setting hardcode_minus_L |
6063 # to unsupported forces relinking | 4937 # to unsupported forces relinking |
6064 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | 4938 _LT_TAGVAR(hardcode_minus_L, $1)=yes |
6065 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | 4939 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
6066 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= | 4940 _LT_TAGVAR(hardcode_libdir_separator, $1)= |
6067 fi | 4941 fi |
6068 ;; | 4942 ;; |
6069 esac | 4943 esac |
6070 shared_flag='-shared' | 4944 shared_flag='-shared' |
6071 if test "$aix_use_runtimelinking" = yes; then | 4945 if test "$aix_use_runtimelinking" = yes; then |
6072 shared_flag="$shared_flag "'${wl}-G' | 4946 shared_flag="$shared_flag "'${wl}-G' |
6073 fi | 4947 fi |
6074 else | 4948 else |
6075 # not using gcc | 4949 # not using gcc |
6076 if test "$host_cpu" = ia64; then | 4950 if test "$host_cpu" = ia64; then |
6077 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 4951 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
6078 # chokes on -Wl,-G. The following line is correct: | 4952 # chokes on -Wl,-G. The following line is correct: |
6079 shared_flag='-G' | 4953 shared_flag='-G' |
6080 else | 4954 else |
6081 if test "$aix_use_runtimelinking" = yes; then | 4955 if test "$aix_use_runtimelinking" = yes; then |
6082 shared_flag='${wl}-G' | 4956 shared_flag='${wl}-G' |
6083 else | 4957 else |
6084 shared_flag='${wl}-bM:SRE' | 4958 shared_flag='${wl}-bM:SRE' |
6085 fi | 4959 fi |
6086 fi | 4960 fi |
6087 fi | 4961 fi |
6088 | 4962 |
4963 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' | |
6089 # It seems that -bexpall does not export symbols beginning with | 4964 # It seems that -bexpall does not export symbols beginning with |
6090 # underscore (_), so it is better to generate a list of symbols to export. | 4965 # underscore (_), so it is better to generate a list of symbols to export. |
6091 _LT_AC_TAGVAR(always_export_symbols, $1)=yes | 4966 _LT_TAGVAR(always_export_symbols, $1)=yes |
6092 if test "$aix_use_runtimelinking" = yes; then | 4967 if test "$aix_use_runtimelinking" = yes; then |
6093 # Warning - without using the other runtime loading flags (-brtl), | 4968 # Warning - without using the other runtime loading flags (-brtl), |
6094 # -berok will link without error, but may produce a broken library. | 4969 # -berok will link without error, but may produce a broken library. |
6095 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' | 4970 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' |
6096 # Determine the default libpath from the value encoded in an empty executable. | 4971 # Determine the default libpath from the value encoded in an |
6097 _LT_AC_SYS_LIBPATH_AIX | 4972 # empty executable. |
6098 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | 4973 _LT_SYS_MODULE_PATH_AIX |
6099 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | 4974 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
6100 else | 4975 _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" |
4976 else | |
6101 if test "$host_cpu" = ia64; then | 4977 if test "$host_cpu" = ia64; then |
6102 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' | 4978 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
6103 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" | 4979 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
6104 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | 4980 _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" |
6105 else | 4981 else |
6106 # Determine the default libpath from the value encoded in an empty executable. | 4982 # Determine the default libpath from the value encoded in an |
6107 _LT_AC_SYS_LIBPATH_AIX | 4983 # empty executable. |
6108 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | 4984 _LT_SYS_MODULE_PATH_AIX |
4985 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | |
6109 # Warning - without using the other run time loading flags, | 4986 # Warning - without using the other run time loading flags, |
6110 # -berok will link without error, but may produce a broken library. | 4987 # -berok will link without error, but may produce a broken library. |
6111 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' | 4988 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
6112 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' | 4989 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
6113 # Exported symbols can be pulled into shared objects from archives | 4990 # Exported symbols can be pulled into shared objects from archives |
6114 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' | 4991 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' |
6115 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes | 4992 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes |
6116 # This is similar to how AIX traditionally builds its shared libraries. | 4993 # This is similar to how AIX traditionally builds its shared libraries. |
6117 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | 4994 _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' |
6118 fi | 4995 fi |
6119 fi | 4996 fi |
6120 ;; | 4997 ;; |
6121 | 4998 |
6122 amigaos*) | 4999 amigaos*) |
6123 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | 5000 case $host_cpu in |
6124 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | 5001 powerpc) |
6125 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | 5002 # see comment about AmigaOS4 .so support |
6126 # see comment about different semantics on the GNU ld section | 5003 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
6127 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 5004 _LT_TAGVAR(archive_expsym_cmds, $1)='' |
5005 ;; | |
5006 m68k) | |
5007 _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)' | |
5008 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
5009 _LT_TAGVAR(hardcode_minus_L, $1)=yes | |
5010 ;; | |
5011 esac | |
6128 ;; | 5012 ;; |
6129 | 5013 |
6130 bsdi[[45]]*) | 5014 bsdi[[45]]*) |
6131 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic | 5015 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic |
6132 ;; | 5016 ;; |
6133 | 5017 |
6134 cygwin* | mingw* | pw32*) | 5018 cygwin* | mingw* | pw32* | cegcc*) |
6135 # When not using gcc, we currently assume that we are using | 5019 # When not using gcc, we currently assume that we are using |
6136 # Microsoft Visual C++. | 5020 # Microsoft Visual C++. |
6137 # hardcode_libdir_flag_spec is actually meaningless, as there is | 5021 # hardcode_libdir_flag_spec is actually meaningless, as there is |
6138 # no search path for DLLs. | 5022 # no search path for DLLs. |
6139 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' | 5023 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' |
6140 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | 5024 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
6141 # Tell ltmain to make .lib files, not .a files. | 5025 # Tell ltmain to make .lib files, not .a files. |
6142 libext=lib | 5026 libext=lib |
6143 # Tell ltmain to make .dll files, not .so files. | 5027 # Tell ltmain to make .dll files, not .so files. |
6144 shrext_cmds=".dll" | 5028 shrext_cmds=".dll" |
6145 # FIXME: Setting linknames here is a bad hack. | 5029 # FIXME: Setting linknames here is a bad hack. |
6146 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | 5030 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
6147 # The linker will automatically build a .lib file if we build a DLL. | 5031 # The linker will automatically build a .lib file if we build a DLL. |
6148 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' | 5032 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' |
6149 # FIXME: Should let the user specify the lib program. | 5033 # FIXME: Should let the user specify the lib program. |
6150 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' | 5034 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' |
6151 _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' | 5035 _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' |
6152 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | 5036 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
6153 ;; | 5037 ;; |
6154 | 5038 |
6155 darwin* | rhapsody*) | 5039 darwin* | rhapsody*) |
6156 case $host_os in | 5040 _LT_DARWIN_LINKER_FEATURES($1) |
6157 rhapsody* | darwin1.[[012]]) | |
6158 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' | |
6159 ;; | |
6160 *) # Darwin 1.3 on | |
6161 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
6162 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
6163 else | |
6164 case ${MACOSX_DEPLOYMENT_TARGET} in | |
6165 10.[[012]]) | |
6166 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
6167 ;; | |
6168 10.*) | |
6169 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' | |
6170 ;; | |
6171 esac | |
6172 fi | |
6173 ;; | |
6174 esac | |
6175 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | |
6176 _LT_AC_TAGVAR(hardcode_direct, $1)=no | |
6177 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes | |
6178 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | |
6179 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' | |
6180 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | |
6181 if test "$GCC" = yes ; then | |
6182 output_verbose_link_cmd='echo' | |
6183 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
6184 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
6185 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
6186 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
6187 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
6188 else | |
6189 case $cc_basename in | |
6190 xlc*) | |
6191 output_verbose_link_cmd='echo' | |
6192 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | |
6193 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
6194 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
6195 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
6196 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
6197 ;; | |
6198 *) | |
6199 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
6200 ;; | |
6201 esac | |
6202 fi | |
6203 ;; | 5041 ;; |
6204 | 5042 |
6205 dgux*) | 5043 dgux*) |
6206 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 5044 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
6207 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | 5045 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
6208 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 5046 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
6209 ;; | 5047 ;; |
6210 | 5048 |
6211 freebsd1*) | 5049 freebsd1*) |
6212 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 5050 _LT_TAGVAR(ld_shlibs, $1)=no |
6213 ;; | 5051 ;; |
6214 | 5052 |
6215 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | 5053 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
6216 # support. Future versions do this automatically, but an explicit c++rt0.o | 5054 # support. Future versions do this automatically, but an explicit c++rt0.o |
6217 # does not break anything, and helps significantly (at the cost of a little | 5055 # does not break anything, and helps significantly (at the cost of a little |
6218 # extra space). | 5056 # extra space). |
6219 freebsd2.2*) | 5057 freebsd2.2*) |
6220 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | 5058 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
6221 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | 5059 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
6222 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | 5060 _LT_TAGVAR(hardcode_direct, $1)=yes |
6223 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 5061 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
6224 ;; | 5062 ;; |
6225 | 5063 |
6226 # Unfortunately, older versions of FreeBSD 2 do not have this feature. | 5064 # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
6227 freebsd2*) | 5065 freebsd2*) |
6228 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 5066 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
6229 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | 5067 _LT_TAGVAR(hardcode_direct, $1)=yes |
6230 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | 5068 _LT_TAGVAR(hardcode_minus_L, $1)=yes |
6231 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 5069 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
6232 ;; | 5070 ;; |
6233 | 5071 |
6234 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | 5072 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
6235 freebsd* | kfreebsd*-gnu | dragonfly*) | 5073 freebsd* | dragonfly*) |
6236 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | 5074 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
6237 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | 5075 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
6238 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | 5076 _LT_TAGVAR(hardcode_direct, $1)=yes |
6239 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 5077 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
6240 ;; | 5078 ;; |
6241 | 5079 |
6242 hpux9*) | 5080 hpux9*) |
6243 if test "$GCC" = yes; then | 5081 if test "$GCC" = yes; then |
6244 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | 5082 _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' |
6245 else | 5083 else |
6246 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | 5084 _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' |
6247 fi | 5085 fi |
6248 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | 5086 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
6249 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | 5087 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
6250 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | 5088 _LT_TAGVAR(hardcode_direct, $1)=yes |
6251 | 5089 |
6252 # hardcode_minus_L: Not really in the search PATH, | 5090 # hardcode_minus_L: Not really in the search PATH, |
6253 # but as the default location of the library. | 5091 # but as the default location of the library. |
6254 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | 5092 _LT_TAGVAR(hardcode_minus_L, $1)=yes |
6255 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 5093 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
6256 ;; | 5094 ;; |
6257 | 5095 |
6258 hpux10*) | 5096 hpux10*) |
6259 if test "$GCC" = yes -a "$with_gnu_ld" = no; then | 5097 if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
6260 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 5098 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
6261 else | 5099 else |
6262 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | 5100 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
6263 fi | 5101 fi |
6264 if test "$with_gnu_ld" = no; then | 5102 if test "$with_gnu_ld" = no; then |
6265 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | 5103 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
6266 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | 5104 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' |
6267 | 5105 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
6268 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | 5106 _LT_TAGVAR(hardcode_direct, $1)=yes |
6269 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 5107 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes |
6270 | 5108 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
6271 # hardcode_minus_L: Not really in the search PATH, | 5109 # hardcode_minus_L: Not really in the search PATH, |
6272 # but as the default location of the library. | 5110 # but as the default location of the library. |
6273 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | 5111 _LT_TAGVAR(hardcode_minus_L, $1)=yes |
6274 fi | 5112 fi |
6275 ;; | 5113 ;; |
6276 | 5114 |
6277 hpux11*) | 5115 hpux11*) |
6278 if test "$GCC" = yes -a "$with_gnu_ld" = no; then | 5116 if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
6279 case $host_cpu in | 5117 case $host_cpu in |
6280 hppa*64*) | 5118 hppa*64*) |
6281 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 5119 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
6282 ;; | 5120 ;; |
6283 ia64*) | 5121 ia64*) |
6284 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | 5122 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
6285 ;; | 5123 ;; |
6286 *) | 5124 *) |
6287 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 5125 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
6288 ;; | 5126 ;; |
6289 esac | 5127 esac |
6290 else | 5128 else |
6291 case $host_cpu in | 5129 case $host_cpu in |
6292 hppa*64*) | 5130 hppa*64*) |
6293 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 5131 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
6294 ;; | 5132 ;; |
6295 ia64*) | 5133 ia64*) |
6296 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | 5134 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
6297 ;; | 5135 ;; |
6298 *) | 5136 *) |
6299 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 5137 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
6300 ;; | 5138 ;; |
6301 esac | 5139 esac |
6302 fi | 5140 fi |
6303 if test "$with_gnu_ld" = no; then | 5141 if test "$with_gnu_ld" = no; then |
6304 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | 5142 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
6305 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | 5143 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
6306 | 5144 |
6307 case $host_cpu in | 5145 case $host_cpu in |
6308 hppa*64*|ia64*) | 5146 hppa*64*|ia64*) |
6309 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' | 5147 _LT_TAGVAR(hardcode_direct, $1)=no |
6310 _LT_AC_TAGVAR(hardcode_direct, $1)=no | 5148 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
6311 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
6312 ;; | 5149 ;; |
6313 *) | 5150 *) |
6314 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | 5151 _LT_TAGVAR(hardcode_direct, $1)=yes |
6315 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 5152 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes |
5153 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | |
6316 | 5154 |
6317 # hardcode_minus_L: Not really in the search PATH, | 5155 # hardcode_minus_L: Not really in the search PATH, |
6318 # but as the default location of the library. | 5156 # but as the default location of the library. |
6319 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | 5157 _LT_TAGVAR(hardcode_minus_L, $1)=yes |
6320 ;; | 5158 ;; |
6321 esac | 5159 esac |
6322 fi | 5160 fi |
6323 ;; | 5161 ;; |
6324 | 5162 |
6325 irix5* | irix6* | nonstopux*) | 5163 irix5* | irix6* | nonstopux*) |
6326 if test "$GCC" = yes; then | 5164 if test "$GCC" = yes; then |
6327 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | 5165 _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' |
5166 # Try to use the -exported_symbol ld option, if it does not | |
5167 # work, assume that -exports_file does not work either and | |
5168 # implicitly export all symbols. | |
5169 save_LDFLAGS="$LDFLAGS" | |
5170 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
5171 AC_LINK_IFELSE(int foo(void) {}, | |
5172 _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' | |
5173 ) | |
5174 LDFLAGS="$save_LDFLAGS" | |
6328 else | 5175 else |
6329 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | 5176 _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' |
6330 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' | 5177 _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' |
6331 fi | 5178 fi |
6332 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 5179 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' |
6333 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | 5180 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
6334 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | 5181 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
5182 _LT_TAGVAR(inherit_rpath, $1)=yes | |
5183 _LT_TAGVAR(link_all_deplibs, $1)=yes | |
6335 ;; | 5184 ;; |
6336 | 5185 |
6337 netbsd*) | 5186 netbsd*) |
6338 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 5187 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
6339 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | 5188 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
6340 else | 5189 else |
6341 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | 5190 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
6342 fi | 5191 fi |
6343 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | 5192 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
6344 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | 5193 _LT_TAGVAR(hardcode_direct, $1)=yes |
6345 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 5194 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
6346 ;; | 5195 ;; |
6347 | 5196 |
6348 newsos6) | 5197 newsos6) |
6349 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 5198 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
6350 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | 5199 _LT_TAGVAR(hardcode_direct, $1)=yes |
6351 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 5200 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
6352 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | 5201 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
6353 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 5202 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
5203 ;; | |
5204 | |
5205 *nto* | *qnx*) | |
6354 ;; | 5206 ;; |
6355 | 5207 |
6356 openbsd*) | 5208 openbsd*) |
6357 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | 5209 if test -f /usr/libexec/ld.so; then |
6358 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 5210 _LT_TAGVAR(hardcode_direct, $1)=yes |
6359 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 5211 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
6360 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 5212 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes |
6361 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | 5213 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
6362 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | 5214 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
6363 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 5215 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
5216 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | |
5217 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | |
5218 else | |
5219 case $host_os in | |
5220 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) | |
5221 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
5222 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | |
5223 ;; | |
5224 *) | |
5225 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
5226 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | |
5227 ;; | |
5228 esac | |
5229 fi | |
6364 else | 5230 else |
6365 case $host_os in | 5231 _LT_TAGVAR(ld_shlibs, $1)=no |
6366 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) | |
6367 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
6368 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | |
6369 ;; | |
6370 *) | |
6371 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
6372 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | |
6373 ;; | |
6374 esac | |
6375 fi | 5232 fi |
6376 ;; | 5233 ;; |
6377 | 5234 |
6378 os2*) | 5235 os2*) |
6379 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | 5236 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
6380 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | 5237 _LT_TAGVAR(hardcode_minus_L, $1)=yes |
6381 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | 5238 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
6382 _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | 5239 _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' |
6383 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | 5240 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
6384 ;; | 5241 ;; |
6385 | 5242 |
6386 osf3*) | 5243 osf3*) |
6387 if test "$GCC" = yes; then | 5244 if test "$GCC" = yes; then |
6388 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | 5245 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
6389 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | 5246 _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' |
6390 else | 5247 else |
6391 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | 5248 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
6392 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | 5249 _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' |
6393 fi | 5250 fi |
6394 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 5251 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' |
6395 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | 5252 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
5253 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
6396 ;; | 5254 ;; |
6397 | 5255 |
6398 osf4* | osf5*) # as osf3* with the addition of -msym flag | 5256 osf4* | osf5*) # as osf3* with the addition of -msym flag |
6399 if test "$GCC" = yes; then | 5257 if test "$GCC" = yes; then |
6400 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | 5258 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
6401 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | 5259 _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' |
6402 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 5260 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
6403 else | 5261 else |
6404 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | 5262 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
6405 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | 5263 _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' |
6406 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | 5264 _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~ |
6407 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' | 5265 $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' |
6408 | 5266 |
6409 # Both c and cxx compiler support -rpath directly | 5267 # Both c and cxx compiler support -rpath directly |
6410 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | 5268 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
6411 fi | 5269 fi |
6412 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | 5270 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' |
5271 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
6413 ;; | 5272 ;; |
6414 | 5273 |
6415 solaris*) | 5274 solaris*) |
6416 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' | 5275 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' |
6417 if test "$GCC" = yes; then | 5276 if test "$GCC" = yes; then |
6418 wlarc='${wl}' | 5277 wlarc='${wl}' |
6419 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 5278 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
6420 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 5279 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
6421 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | 5280 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
6422 else | 5281 else |
6423 wlarc='' | 5282 case `$CC -V 2>&1` in |
6424 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 5283 *"Compilers 5.0"*) |
6425 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 5284 wlarc='' |
6426 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | 5285 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
5286 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
5287 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
5288 ;; | |
5289 *) | |
5290 wlarc='${wl}' | |
5291 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
5292 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
5293 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
5294 ;; | |
5295 esac | |
6427 fi | 5296 fi |
6428 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | 5297 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
6429 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 5298 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
6430 case $host_os in | 5299 case $host_os in |
6431 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; | 5300 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; |
6432 *) | 5301 *) |
6433 # The compiler driver will combine linker options so we | 5302 # The compiler driver will combine and reorder linker options, |
6434 # cannot just pass the convience library names through | 5303 # but understands `-z linker_flag'. GCC discards it without `$wl', |
6435 # without $wl, iff we do not link with $LD. | 5304 # but is careful enough not to reorder. |
6436 # Luckily, gcc supports the same syntax we need for Sun Studio. | 5305 # Supported since Solaris 2.6 (maybe 2.5.1?) |
6437 # Supported since Solaris 2.6 (maybe 2.5.1?) | 5306 if test "$GCC" = yes; then |
6438 case $wlarc in | 5307 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
6439 '') | 5308 else |
6440 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; | 5309 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' |
6441 *) | 5310 fi |
6442 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; | 5311 ;; |
6443 esac ;; | |
6444 esac | 5312 esac |
6445 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | 5313 _LT_TAGVAR(link_all_deplibs, $1)=yes |
6446 ;; | 5314 ;; |
6447 | 5315 |
6448 sunos4*) | 5316 sunos4*) |
6449 if test "x$host_vendor" = xsequent; then | 5317 if test "x$host_vendor" = xsequent; then |
6450 # Use $CC to link under sequent, because it throws in some extra .o | 5318 # Use $CC to link under sequent, because it throws in some extra .o |
6451 # files that make .init and .fini sections work. | 5319 # files that make .init and .fini sections work. |
6452 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | 5320 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
6453 else | 5321 else |
6454 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | 5322 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
6455 fi | 5323 fi |
6456 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | 5324 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
6457 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | 5325 _LT_TAGVAR(hardcode_direct, $1)=yes |
6458 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | 5326 _LT_TAGVAR(hardcode_minus_L, $1)=yes |
6459 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 5327 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
6460 ;; | 5328 ;; |
6461 | 5329 |
6462 sysv4) | 5330 sysv4) |
6463 case $host_vendor in | 5331 case $host_vendor in |
6464 sni) | 5332 sni) |
6465 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 5333 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
6466 _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? | 5334 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? |
6467 ;; | 5335 ;; |
6468 siemens) | 5336 siemens) |
6469 ## LD is ld it makes a PLAMLIB | 5337 ## LD is ld it makes a PLAMLIB |
6470 ## CC just makes a GrossModule. | 5338 ## CC just makes a GrossModule. |
6471 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 5339 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
6472 _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' | 5340 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' |
6473 _LT_AC_TAGVAR(hardcode_direct, $1)=no | 5341 _LT_TAGVAR(hardcode_direct, $1)=no |
6474 ;; | 5342 ;; |
6475 motorola) | 5343 motorola) |
6476 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 5344 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
6477 _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie | 5345 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie |
6478 ;; | 5346 ;; |
6479 esac | 5347 esac |
6480 runpath_var='LD_RUN_PATH' | 5348 runpath_var='LD_RUN_PATH' |
6481 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 5349 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
6482 ;; | 5350 ;; |
6483 | 5351 |
6484 sysv4.3*) | 5352 sysv4.3*) |
6485 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 5353 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
6486 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 5354 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
6487 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' | 5355 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' |
6488 ;; | 5356 ;; |
6489 | 5357 |
6490 sysv4*MP*) | 5358 sysv4*MP*) |
6491 if test -d /usr/nec; then | 5359 if test -d /usr/nec; then |
6492 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 5360 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
6493 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 5361 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
6494 runpath_var=LD_RUN_PATH | 5362 runpath_var=LD_RUN_PATH |
6495 hardcode_runpath_var=yes | 5363 hardcode_runpath_var=yes |
6496 _LT_AC_TAGVAR(ld_shlibs, $1)=yes | 5364 _LT_TAGVAR(ld_shlibs, $1)=yes |
6497 fi | 5365 fi |
6498 ;; | 5366 ;; |
6499 | 5367 |
6500 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*) | 5368 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) |
6501 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | 5369 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' |
6502 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | 5370 _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
6503 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 5371 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
6504 runpath_var='LD_RUN_PATH' | 5372 runpath_var='LD_RUN_PATH' |
6505 | 5373 |
6506 if test "$GCC" = yes; then | 5374 if test "$GCC" = yes; then |
6507 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 5375 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
6508 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 5376 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
6509 else | 5377 else |
6510 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 5378 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
6511 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 5379 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
6512 fi | 5380 fi |
6513 ;; | 5381 ;; |
6514 | 5382 |
6515 sysv5* | sco3.2v5* | sco5v6*) | 5383 sysv5* | sco3.2v5* | sco5v6*) |
6516 # Note: We can NOT use -z defs as we might desire, because we do not | 5384 # Note: We can NOT use -z defs as we might desire, because we do not |
6517 # link with -lc, and that would cause any symbols used from libc to | 5385 # link with -lc, and that would cause any symbols used from libc to |
6518 # always be unresolved, which means just about no library would | 5386 # always be unresolved, which means just about no library would |
6519 # ever link correctly. If we're not using GNU ld we use -z text | 5387 # ever link correctly. If we're not using GNU ld we use -z text |
6520 # though, which does catch some bad symbols but isn't as heavy-handed | 5388 # though, which does catch some bad symbols but isn't as heavy-handed |
6521 # as -z defs. | 5389 # as -z defs. |
6522 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | 5390 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' |
6523 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' | 5391 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' |
6524 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | 5392 _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
6525 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 5393 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
6526 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | 5394 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' |
6527 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' | 5395 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' |
6528 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | 5396 _LT_TAGVAR(link_all_deplibs, $1)=yes |
6529 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' | 5397 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' |
6530 runpath_var='LD_RUN_PATH' | 5398 runpath_var='LD_RUN_PATH' |
6531 | 5399 |
6532 if test "$GCC" = yes; then | 5400 if test "$GCC" = yes; then |
6533 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | 5401 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
6534 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | 5402 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
6535 else | 5403 else |
6536 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | 5404 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
6537 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | 5405 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
6538 fi | 5406 fi |
6539 ;; | 5407 ;; |
6540 | 5408 |
6541 uts4*) | 5409 uts4*) |
6542 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 5410 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
6543 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | 5411 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
6544 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 5412 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
6545 ;; | 5413 ;; |
6546 | 5414 |
6547 *) | 5415 *) |
6548 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 5416 _LT_TAGVAR(ld_shlibs, $1)=no |
6549 ;; | 5417 ;; |
6550 esac | 5418 esac |
5419 | |
5420 if test x$host_vendor = xsni; then | |
5421 case $host in | |
5422 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
5423 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' | |
5424 ;; | |
5425 esac | |
5426 fi | |
6551 fi | 5427 fi |
6552 ]) | 5428 ]) |
6553 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) | 5429 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) |
6554 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no | 5430 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no |
5431 | |
5432 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld | |
5433 | |
5434 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl | |
5435 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl | |
5436 _LT_DECL([], [extract_expsyms_cmds], [2], | |
5437 [The commands to extract the exported symbol list from a shared archive]) | |
6555 | 5438 |
6556 # | 5439 # |
6557 # Do we need to explicitly link libc? | 5440 # Do we need to explicitly link libc? |
6558 # | 5441 # |
6559 case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in | 5442 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in |
6560 x|xyes) | 5443 x|xyes) |
6561 # Assume -lc should be added | 5444 # Assume -lc should be added |
6562 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes | 5445 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes |
6563 | 5446 |
6564 if test "$enable_shared" = yes && test "$GCC" = yes; then | 5447 if test "$enable_shared" = yes && test "$GCC" = yes; then |
6565 case $_LT_AC_TAGVAR(archive_cmds, $1) in | 5448 case $_LT_TAGVAR(archive_cmds, $1) in |
6566 *'~'*) | 5449 *'~'*) |
6567 # FIXME: we may have to deal with multi-command sequences. | 5450 # FIXME: we may have to deal with multi-command sequences. |
6568 ;; | 5451 ;; |
6569 '$CC '*) | 5452 '$CC '*) |
6570 # Test whether the compiler implicitly links with -lc since on some | 5453 # Test whether the compiler implicitly links with -lc since on some |
6571 # systems, -lgcc has to come before -lc. If gcc already passes -lc | 5454 # systems, -lgcc has to come before -lc. If gcc already passes -lc |
6572 # to ld, don't add -lc before -lgcc. | 5455 # to ld, don't add -lc before -lgcc. |
6573 AC_MSG_CHECKING([whether -lc should be explicitly linked in]) | 5456 AC_MSG_CHECKING([whether -lc should be explicitly linked in]) |
6574 $rm conftest* | 5457 $RM conftest* |
6575 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 5458 echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
6576 | 5459 |
6577 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then | 5460 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then |
6578 soname=conftest | 5461 soname=conftest |
6579 lib=conftest | 5462 lib=conftest |
6580 libobjs=conftest.$ac_objext | 5463 libobjs=conftest.$ac_objext |
6581 deplibs= | 5464 deplibs= |
6582 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) | 5465 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) |
6583 pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) | 5466 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) |
6584 compiler_flags=-v | 5467 compiler_flags=-v |
6585 linker_flags=-v | 5468 linker_flags=-v |
6586 verstring= | 5469 verstring= |
6587 output_objdir=. | 5470 output_objdir=. |
6588 libname=conftest | 5471 libname=conftest |
6589 lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) | 5472 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) |
6590 _LT_AC_TAGVAR(allow_undefined_flag, $1)= | 5473 _LT_TAGVAR(allow_undefined_flag, $1)= |
6591 if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) | 5474 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) |
6592 then | 5475 then |
6593 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | 5476 _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
6594 else | 5477 else |
6595 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes | 5478 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes |
6596 fi | 5479 fi |
6597 _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag | 5480 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag |
6598 else | 5481 else |
6599 cat conftest.err 1>&5 | 5482 cat conftest.err 1>&5 |
6600 fi | 5483 fi |
6601 $rm conftest* | 5484 $RM conftest* |
6602 AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)]) | 5485 AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)]) |
6603 ;; | 5486 ;; |
6604 esac | 5487 esac |
6605 fi | 5488 fi |
6606 ;; | 5489 ;; |
6607 esac | 5490 esac |
6608 ])# AC_LIBTOOL_PROG_LD_SHLIBS | 5491 |
6609 | 5492 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], |
6610 | 5493 [Whether or not to add -lc for building shared libraries]) |
6611 # _LT_AC_FILE_LTDLL_C | 5494 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes], |
6612 # ------------------- | 5495 [enable_shared_with_static_runtimes], [0], |
6613 # Be careful that the start marker always follows a newline. | 5496 [Whether or not to disallow shared libs when runtime libs are static]) |
6614 AC_DEFUN([_LT_AC_FILE_LTDLL_C], [ | 5497 _LT_TAGDECL([], [export_dynamic_flag_spec], [1], |
6615 # /* ltdll.c starts here */ | 5498 [Compiler flag to allow reflexive dlopens]) |
6616 # #define WIN32_LEAN_AND_MEAN | 5499 _LT_TAGDECL([], [whole_archive_flag_spec], [1], |
6617 # #include <windows.h> | 5500 [Compiler flag to generate shared objects directly from archives]) |
6618 # #undef WIN32_LEAN_AND_MEAN | 5501 _LT_TAGDECL([], [compiler_needs_object], [1], |
6619 # #include <stdio.h> | 5502 [Whether the compiler copes with passing no objects directly]) |
6620 # | 5503 _LT_TAGDECL([], [old_archive_from_new_cmds], [2], |
6621 # #ifndef __CYGWIN__ | 5504 [Create an old-style archive from a shared archive]) |
6622 # # ifdef __CYGWIN32__ | 5505 _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], |
6623 # # define __CYGWIN__ __CYGWIN32__ | 5506 [Create a temporary old-style archive to link instead of a shared archive]) |
6624 # # endif | 5507 _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) |
6625 # #endif | 5508 _LT_TAGDECL([], [archive_expsym_cmds], [2]) |
6626 # | 5509 _LT_TAGDECL([], [module_cmds], [2], |
6627 # #ifdef __cplusplus | 5510 [Commands used to build a loadable module if different from building |
6628 # extern "C" { | 5511 a shared archive.]) |
6629 # #endif | 5512 _LT_TAGDECL([], [module_expsym_cmds], [2]) |
6630 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); | 5513 _LT_TAGDECL([], [with_gnu_ld], [1], |
6631 # #ifdef __cplusplus | 5514 [Whether we are building with GNU ld or not]) |
6632 # } | 5515 _LT_TAGDECL([], [allow_undefined_flag], [1], |
6633 # #endif | 5516 [Flag that allows shared libraries with undefined symbols to be built]) |
6634 # | 5517 _LT_TAGDECL([], [no_undefined_flag], [1], |
6635 # #ifdef __CYGWIN__ | 5518 [Flag that enforces no undefined symbols]) |
6636 # #include <cygwin/cygwin_dll.h> | 5519 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], |
6637 # DECLARE_CYGWIN_DLL( DllMain ); | 5520 [Flag to hardcode $libdir into a binary during linking. |
6638 # #endif | 5521 This must work even if $libdir does not exist]) |
6639 # HINSTANCE __hDllInstance_base; | 5522 _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1], |
6640 # | 5523 [[If ld is used when linking, flag to hardcode $libdir into a binary |
6641 # BOOL APIENTRY | 5524 during linking. This must work even if $libdir does not exist]]) |
6642 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) | 5525 _LT_TAGDECL([], [hardcode_libdir_separator], [1], |
6643 # { | 5526 [Whether we need a single "-rpath" flag with a separated argument]) |
6644 # __hDllInstance_base = hInst; | 5527 _LT_TAGDECL([], [hardcode_direct], [0], |
6645 # return TRUE; | 5528 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes |
6646 # } | 5529 DIR into the resulting binary]) |
6647 # /* ltdll.c ends here */ | 5530 _LT_TAGDECL([], [hardcode_direct_absolute], [0], |
6648 ])# _LT_AC_FILE_LTDLL_C | 5531 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes |
6649 | 5532 DIR into the resulting binary and the resulting library dependency is |
6650 | 5533 "absolute", i.e impossible to change by setting ${shlibpath_var} if the |
6651 # _LT_AC_TAGVAR(VARNAME, [TAGNAME]) | 5534 library is relocated]) |
5535 _LT_TAGDECL([], [hardcode_minus_L], [0], | |
5536 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
5537 into the resulting binary]) | |
5538 _LT_TAGDECL([], [hardcode_shlibpath_var], [0], | |
5539 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
5540 into the resulting binary]) | |
5541 _LT_TAGDECL([], [hardcode_automatic], [0], | |
5542 [Set to "yes" if building a shared library automatically hardcodes DIR | |
5543 into the library and all subsequent libraries and executables linked | |
5544 against it]) | |
5545 _LT_TAGDECL([], [inherit_rpath], [0], | |
5546 [Set to yes if linker adds runtime paths of dependent libraries | |
5547 to runtime path list]) | |
5548 _LT_TAGDECL([], [link_all_deplibs], [0], | |
5549 [Whether libtool must link a program against all its dependency libraries]) | |
5550 _LT_TAGDECL([], [fix_srcfile_path], [1], | |
5551 [Fix the shell variable $srcfile for the compiler]) | |
5552 _LT_TAGDECL([], [always_export_symbols], [0], | |
5553 [Set to "yes" if exported symbols are required]) | |
5554 _LT_TAGDECL([], [export_symbols_cmds], [2], | |
5555 [The commands to list exported symbols]) | |
5556 _LT_TAGDECL([], [exclude_expsyms], [1], | |
5557 [Symbols that should not be listed in the preloaded symbols]) | |
5558 _LT_TAGDECL([], [include_expsyms], [1], | |
5559 [Symbols that must always be exported]) | |
5560 _LT_TAGDECL([], [prelink_cmds], [2], | |
5561 [Commands necessary for linking programs (against libraries) with templates]) | |
5562 _LT_TAGDECL([], [file_list_spec], [1], | |
5563 [Specify filename containing input files]) | |
5564 dnl FIXME: Not yet implemented | |
5565 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], | |
5566 dnl [Compiler flag to generate thread safe objects]) | |
5567 ])# _LT_LINKER_SHLIBS | |
5568 | |
5569 | |
5570 # _LT_LANG_C_CONFIG([TAG]) | |
5571 # ------------------------ | |
5572 # Ensure that the configuration variables for a C compiler are suitably | |
5573 # defined. These variables are subsequently used by _LT_CONFIG to write | |
5574 # the compiler configuration to `libtool'. | |
5575 m4_defun([_LT_LANG_C_CONFIG], | |
5576 [m4_require([_LT_DECL_EGREP])dnl | |
5577 lt_save_CC="$CC" | |
5578 AC_LANG_PUSH(C) | |
5579 | |
5580 # Source file extension for C test sources. | |
5581 ac_ext=c | |
5582 | |
5583 # Object file extension for compiled C test sources. | |
5584 objext=o | |
5585 _LT_TAGVAR(objext, $1)=$objext | |
5586 | |
5587 # Code to be used in simple compile tests | |
5588 lt_simple_compile_test_code="int some_variable = 0;" | |
5589 | |
5590 # Code to be used in simple link tests | |
5591 lt_simple_link_test_code='int main(){return(0);}' | |
5592 | |
5593 _LT_TAG_COMPILER | |
5594 # Save the default compiler, since it gets overwritten when the other | |
5595 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
5596 compiler_DEFAULT=$CC | |
5597 | |
5598 # save warnings/boilerplate of simple test code | |
5599 _LT_COMPILER_BOILERPLATE | |
5600 _LT_LINKER_BOILERPLATE | |
5601 | |
5602 ## CAVEAT EMPTOR: | |
5603 ## There is no encapsulation within the following macros, do not change | |
5604 ## the running order or otherwise move them around unless you know exactly | |
5605 ## what you are doing... | |
5606 if test -n "$compiler"; then | |
5607 _LT_COMPILER_NO_RTTI($1) | |
5608 _LT_COMPILER_PIC($1) | |
5609 _LT_COMPILER_C_O($1) | |
5610 _LT_COMPILER_FILE_LOCKS($1) | |
5611 _LT_LINKER_SHLIBS($1) | |
5612 _LT_SYS_DYNAMIC_LINKER($1) | |
5613 _LT_LINKER_HARDCODE_LIBPATH($1) | |
5614 LT_SYS_DLOPEN_SELF | |
5615 _LT_CMD_STRIPLIB | |
5616 | |
5617 # Report which library types will actually be built | |
5618 AC_MSG_CHECKING([if libtool supports shared libraries]) | |
5619 AC_MSG_RESULT([$can_build_shared]) | |
5620 | |
5621 AC_MSG_CHECKING([whether to build shared libraries]) | |
5622 test "$can_build_shared" = "no" && enable_shared=no | |
5623 | |
5624 # On AIX, shared libraries and static libraries use the same namespace, and | |
5625 # are all built from PIC. | |
5626 case $host_os in | |
5627 aix3*) | |
5628 test "$enable_shared" = yes && enable_static=no | |
5629 if test -n "$RANLIB"; then | |
5630 archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
5631 postinstall_cmds='$RANLIB $lib' | |
5632 fi | |
5633 ;; | |
5634 | |
5635 aix[[4-9]]*) | |
5636 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
5637 test "$enable_shared" = yes && enable_static=no | |
5638 fi | |
5639 ;; | |
5640 esac | |
5641 AC_MSG_RESULT([$enable_shared]) | |
5642 | |
5643 AC_MSG_CHECKING([whether to build static libraries]) | |
5644 # Make sure either enable_shared or enable_static is yes. | |
5645 test "$enable_shared" = yes || enable_static=yes | |
5646 AC_MSG_RESULT([$enable_static]) | |
5647 | |
5648 _LT_CONFIG($1) | |
5649 fi | |
5650 AC_LANG_POP | |
5651 CC="$lt_save_CC" | |
5652 ])# _LT_LANG_C_CONFIG | |
5653 | |
5654 | |
5655 # _LT_PROG_CXX | |
5656 # ------------ | |
5657 # Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++ | |
5658 # compiler, we have our own version here. | |
5659 m4_defun([_LT_PROG_CXX], | |
5660 [ | |
5661 pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes]) | |
5662 AC_PROG_CXX | |
5663 if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
5664 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
5665 (test "X$CXX" != "Xg++"))) ; then | |
5666 AC_PROG_CXXCPP | |
5667 else | |
5668 _lt_caught_CXX_error=yes | |
5669 fi | |
5670 popdef([AC_MSG_ERROR]) | |
5671 ])# _LT_PROG_CXX | |
5672 | |
5673 dnl aclocal-1.4 backwards compatibility: | |
5674 dnl AC_DEFUN([_LT_PROG_CXX], []) | |
5675 | |
5676 | |
5677 # _LT_LANG_CXX_CONFIG([TAG]) | |
5678 # -------------------------- | |
5679 # Ensure that the configuration variables for a C++ compiler are suitably | |
5680 # defined. These variables are subsequently used by _LT_CONFIG to write | |
5681 # the compiler configuration to `libtool'. | |
5682 m4_defun([_LT_LANG_CXX_CONFIG], | |
5683 [AC_REQUIRE([_LT_PROG_CXX])dnl | |
5684 m4_require([_LT_FILEUTILS_DEFAULTS])dnl | |
5685 m4_require([_LT_DECL_EGREP])dnl | |
5686 | |
5687 AC_LANG_PUSH(C++) | |
5688 _LT_TAGVAR(archive_cmds_need_lc, $1)=no | |
5689 _LT_TAGVAR(allow_undefined_flag, $1)= | |
5690 _LT_TAGVAR(always_export_symbols, $1)=no | |
5691 _LT_TAGVAR(archive_expsym_cmds, $1)= | |
5692 _LT_TAGVAR(compiler_needs_object, $1)=no | |
5693 _LT_TAGVAR(export_dynamic_flag_spec, $1)= | |
5694 _LT_TAGVAR(hardcode_direct, $1)=no | |
5695 _LT_TAGVAR(hardcode_direct_absolute, $1)=no | |
5696 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | |
5697 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | |
5698 _LT_TAGVAR(hardcode_libdir_separator, $1)= | |
5699 _LT_TAGVAR(hardcode_minus_L, $1)=no | |
5700 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | |
5701 _LT_TAGVAR(hardcode_automatic, $1)=no | |
5702 _LT_TAGVAR(inherit_rpath, $1)=no | |
5703 _LT_TAGVAR(module_cmds, $1)= | |
5704 _LT_TAGVAR(module_expsym_cmds, $1)= | |
5705 _LT_TAGVAR(link_all_deplibs, $1)=unknown | |
5706 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | |
5707 _LT_TAGVAR(no_undefined_flag, $1)= | |
5708 _LT_TAGVAR(whole_archive_flag_spec, $1)= | |
5709 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no | |
5710 | |
5711 # Source file extension for C++ test sources. | |
5712 ac_ext=cpp | |
5713 | |
5714 # Object file extension for compiled C++ test sources. | |
5715 objext=o | |
5716 _LT_TAGVAR(objext, $1)=$objext | |
5717 | |
5718 # No sense in running all these tests if we already determined that | |
5719 # the CXX compiler isn't working. Some variables (like enable_shared) | |
5720 # are currently assumed to apply to all compilers on this platform, | |
5721 # and will be corrupted by setting them based on a non-working compiler. | |
5722 if test "$_lt_caught_CXX_error" != yes; then | |
5723 # Code to be used in simple compile tests | |
5724 lt_simple_compile_test_code="int some_variable = 0;" | |
5725 | |
5726 # Code to be used in simple link tests | |
5727 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' | |
5728 | |
5729 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
5730 _LT_TAG_COMPILER | |
5731 | |
5732 # save warnings/boilerplate of simple test code | |
5733 _LT_COMPILER_BOILERPLATE | |
5734 _LT_LINKER_BOILERPLATE | |
5735 | |
5736 # Allow CC to be a program name with arguments. | |
5737 lt_save_CC=$CC | |
5738 lt_save_LD=$LD | |
5739 lt_save_GCC=$GCC | |
5740 GCC=$GXX | |
5741 lt_save_with_gnu_ld=$with_gnu_ld | |
5742 lt_save_path_LD=$lt_cv_path_LD | |
5743 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
5744 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
5745 else | |
5746 $as_unset lt_cv_prog_gnu_ld | |
5747 fi | |
5748 if test -n "${lt_cv_path_LDCXX+set}"; then | |
5749 lt_cv_path_LD=$lt_cv_path_LDCXX | |
5750 else | |
5751 $as_unset lt_cv_path_LD | |
5752 fi | |
5753 test -z "${LDCXX+set}" || LD=$LDCXX | |
5754 CC=${CXX-"c++"} | |
5755 compiler=$CC | |
5756 _LT_TAGVAR(compiler, $1)=$CC | |
5757 _LT_CC_BASENAME([$compiler]) | |
5758 | |
5759 if test -n "$compiler"; then | |
5760 # We don't want -fno-exception when compiling C++ code, so set the | |
5761 # no_builtin_flag separately | |
5762 if test "$GXX" = yes; then | |
5763 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' | |
5764 else | |
5765 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= | |
5766 fi | |
5767 | |
5768 if test "$GXX" = yes; then | |
5769 # Set up default GNU C++ configuration | |
5770 | |
5771 LT_PATH_LD | |
5772 | |
5773 # Check if GNU C++ uses GNU ld as the underlying linker, since the | |
5774 # archiving commands below assume that GNU ld is being used. | |
5775 if test "$with_gnu_ld" = yes; then | |
5776 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
5777 _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' | |
5778 | |
5779 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | |
5780 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | |
5781 | |
5782 # If archive_cmds runs LD, not CC, wlarc should be empty | |
5783 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
5784 # investigate it a little bit more. (MM) | |
5785 wlarc='${wl}' | |
5786 | |
5787 # ancient GNU ld didn't support --whole-archive et. al. | |
5788 if eval "`$CC -print-prog-name=ld` --help 2>&1" | | |
5789 $GREP 'no-whole-archive' > /dev/null; then | |
5790 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
5791 else | |
5792 _LT_TAGVAR(whole_archive_flag_spec, $1)= | |
5793 fi | |
5794 else | |
5795 with_gnu_ld=no | |
5796 wlarc= | |
5797 | |
5798 # A generic and very simple default shared library creation | |
5799 # command for GNU C++ for the case where it uses the native | |
5800 # linker, instead of GNU ld. If possible, this setting should | |
5801 # overridden to take advantage of the native linker features on | |
5802 # the platform it is being used on. | |
5803 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
5804 fi | |
5805 | |
5806 # Commands to make compiler produce verbose output that lists | |
5807 # what "hidden" libraries, object files and flags are used when | |
5808 # linking a shared library. | |
5809 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
5810 | |
5811 else | |
5812 GXX=no | |
5813 with_gnu_ld=no | |
5814 wlarc= | |
5815 fi | |
5816 | |
5817 # PORTME: fill in a description of your system's C++ link characteristics | |
5818 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) | |
5819 _LT_TAGVAR(ld_shlibs, $1)=yes | |
5820 case $host_os in | |
5821 aix3*) | |
5822 # FIXME: insert proper C++ library support | |
5823 _LT_TAGVAR(ld_shlibs, $1)=no | |
5824 ;; | |
5825 aix[[4-9]]*) | |
5826 if test "$host_cpu" = ia64; then | |
5827 # On IA64, the linker does run time linking by default, so we don't | |
5828 # have to do anything special. | |
5829 aix_use_runtimelinking=no | |
5830 exp_sym_flag='-Bexport' | |
5831 no_entry_flag="" | |
5832 else | |
5833 aix_use_runtimelinking=no | |
5834 | |
5835 # Test if we are trying to use run time linking or normal | |
5836 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
5837 # need to do runtime linking. | |
5838 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) | |
5839 for ld_flag in $LDFLAGS; do | |
5840 case $ld_flag in | |
5841 *-brtl*) | |
5842 aix_use_runtimelinking=yes | |
5843 break | |
5844 ;; | |
5845 esac | |
5846 done | |
5847 ;; | |
5848 esac | |
5849 | |
5850 exp_sym_flag='-bexport' | |
5851 no_entry_flag='-bnoentry' | |
5852 fi | |
5853 | |
5854 # When large executables or shared objects are built, AIX ld can | |
5855 # have problems creating the table of contents. If linking a library | |
5856 # or program results in "error TOC overflow" add -mminimal-toc to | |
5857 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
5858 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
5859 | |
5860 _LT_TAGVAR(archive_cmds, $1)='' | |
5861 _LT_TAGVAR(hardcode_direct, $1)=yes | |
5862 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes | |
5863 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' | |
5864 _LT_TAGVAR(link_all_deplibs, $1)=yes | |
5865 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' | |
5866 | |
5867 if test "$GXX" = yes; then | |
5868 case $host_os in aix4.[[012]]|aix4.[[012]].*) | |
5869 # We only want to do this on AIX 4.2 and lower, the check | |
5870 # below for broken collect2 doesn't work under 4.3+ | |
5871 collect2name=`${CC} -print-prog-name=collect2` | |
5872 if test -f "$collect2name" && | |
5873 strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
5874 then | |
5875 # We have reworked collect2 | |
5876 : | |
5877 else | |
5878 # We have old collect2 | |
5879 _LT_TAGVAR(hardcode_direct, $1)=unsupported | |
5880 # It fails to find uninstalled libraries when the uninstalled | |
5881 # path is not listed in the libpath. Setting hardcode_minus_L | |
5882 # to unsupported forces relinking | |
5883 _LT_TAGVAR(hardcode_minus_L, $1)=yes | |
5884 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
5885 _LT_TAGVAR(hardcode_libdir_separator, $1)= | |
5886 fi | |
5887 esac | |
5888 shared_flag='-shared' | |
5889 if test "$aix_use_runtimelinking" = yes; then | |
5890 shared_flag="$shared_flag "'${wl}-G' | |
5891 fi | |
5892 else | |
5893 # not using gcc | |
5894 if test "$host_cpu" = ia64; then | |
5895 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
5896 # chokes on -Wl,-G. The following line is correct: | |
5897 shared_flag='-G' | |
5898 else | |
5899 if test "$aix_use_runtimelinking" = yes; then | |
5900 shared_flag='${wl}-G' | |
5901 else | |
5902 shared_flag='${wl}-bM:SRE' | |
5903 fi | |
5904 fi | |
5905 fi | |
5906 | |
5907 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' | |
5908 # It seems that -bexpall does not export symbols beginning with | |
5909 # underscore (_), so it is better to generate a list of symbols to | |
5910 # export. | |
5911 _LT_TAGVAR(always_export_symbols, $1)=yes | |
5912 if test "$aix_use_runtimelinking" = yes; then | |
5913 # Warning - without using the other runtime loading flags (-brtl), | |
5914 # -berok will link without error, but may produce a broken library. | |
5915 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' | |
5916 # Determine the default libpath from the value encoded in an empty | |
5917 # executable. | |
5918 _LT_SYS_MODULE_PATH_AIX | |
5919 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | |
5920 | |
5921 _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" | |
5922 else | |
5923 if test "$host_cpu" = ia64; then | |
5924 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' | |
5925 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" | |
5926 _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" | |
5927 else | |
5928 # Determine the default libpath from the value encoded in an | |
5929 # empty executable. | |
5930 _LT_SYS_MODULE_PATH_AIX | |
5931 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | |
5932 # Warning - without using the other run time loading flags, | |
5933 # -berok will link without error, but may produce a broken library. | |
5934 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' | |
5935 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' | |
5936 # Exported symbols can be pulled into shared objects from archives | |
5937 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' | |
5938 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes | |
5939 # This is similar to how AIX traditionally builds its shared | |
5940 # libraries. | |
5941 _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' | |
5942 fi | |
5943 fi | |
5944 ;; | |
5945 | |
5946 beos*) | |
5947 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
5948 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | |
5949 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
5950 # support --undefined. This deserves some investigation. FIXME | |
5951 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
5952 else | |
5953 _LT_TAGVAR(ld_shlibs, $1)=no | |
5954 fi | |
5955 ;; | |
5956 | |
5957 chorus*) | |
5958 case $cc_basename in | |
5959 *) | |
5960 # FIXME: insert proper C++ library support | |
5961 _LT_TAGVAR(ld_shlibs, $1)=no | |
5962 ;; | |
5963 esac | |
5964 ;; | |
5965 | |
5966 cygwin* | mingw* | pw32* | cegcc*) | |
5967 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, | |
5968 # as there is no search path for DLLs. | |
5969 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
5970 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | |
5971 _LT_TAGVAR(always_export_symbols, $1)=no | |
5972 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | |
5973 | |
5974 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
5975 _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' | |
5976 # If the export-symbols file already is a .def file (1st line | |
5977 # is EXPORTS), use it as is; otherwise, prepend... | |
5978 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
5979 cp $export_symbols $output_objdir/$soname.def; | |
5980 else | |
5981 echo EXPORTS > $output_objdir/$soname.def; | |
5982 cat $export_symbols >> $output_objdir/$soname.def; | |
5983 fi~ | |
5984 $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' | |
5985 else | |
5986 _LT_TAGVAR(ld_shlibs, $1)=no | |
5987 fi | |
5988 ;; | |
5989 darwin* | rhapsody*) | |
5990 _LT_DARWIN_LINKER_FEATURES($1) | |
5991 ;; | |
5992 | |
5993 dgux*) | |
5994 case $cc_basename in | |
5995 ec++*) | |
5996 # FIXME: insert proper C++ library support | |
5997 _LT_TAGVAR(ld_shlibs, $1)=no | |
5998 ;; | |
5999 ghcx*) | |
6000 # Green Hills C++ Compiler | |
6001 # FIXME: insert proper C++ library support | |
6002 _LT_TAGVAR(ld_shlibs, $1)=no | |
6003 ;; | |
6004 *) | |
6005 # FIXME: insert proper C++ library support | |
6006 _LT_TAGVAR(ld_shlibs, $1)=no | |
6007 ;; | |
6008 esac | |
6009 ;; | |
6010 | |
6011 freebsd[[12]]*) | |
6012 # C++ shared libraries reported to be fairly broken before | |
6013 # switch to ELF | |
6014 _LT_TAGVAR(ld_shlibs, $1)=no | |
6015 ;; | |
6016 | |
6017 freebsd-elf*) | |
6018 _LT_TAGVAR(archive_cmds_need_lc, $1)=no | |
6019 ;; | |
6020 | |
6021 freebsd* | dragonfly*) | |
6022 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
6023 # conventions | |
6024 _LT_TAGVAR(ld_shlibs, $1)=yes | |
6025 ;; | |
6026 | |
6027 gnu*) | |
6028 ;; | |
6029 | |
6030 hpux9*) | |
6031 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | |
6032 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
6033 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | |
6034 _LT_TAGVAR(hardcode_direct, $1)=yes | |
6035 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, | |
6036 # but as the default | |
6037 # location of the library. | |
6038 | |
6039 case $cc_basename in | |
6040 CC*) | |
6041 # FIXME: insert proper C++ library support | |
6042 _LT_TAGVAR(ld_shlibs, $1)=no | |
6043 ;; | |
6044 aCC*) | |
6045 _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' | |
6046 # Commands to make compiler produce verbose output that lists | |
6047 # what "hidden" libraries, object files and flags are used when | |
6048 # linking a shared library. | |
6049 # | |
6050 # There doesn't appear to be a way to prevent this compiler from | |
6051 # explicitly linking system object files so we need to strip them | |
6052 # from the output so that they don't get included in the library | |
6053 # dependencies. | |
6054 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' | |
6055 ;; | |
6056 *) | |
6057 if test "$GXX" = yes; then | |
6058 _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' | |
6059 else | |
6060 # FIXME: insert proper C++ library support | |
6061 _LT_TAGVAR(ld_shlibs, $1)=no | |
6062 fi | |
6063 ;; | |
6064 esac | |
6065 ;; | |
6066 | |
6067 hpux10*|hpux11*) | |
6068 if test $with_gnu_ld = no; then | |
6069 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | |
6070 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
6071 | |
6072 case $host_cpu in | |
6073 hppa*64*|ia64*) | |
6074 ;; | |
6075 *) | |
6076 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | |
6077 ;; | |
6078 esac | |
6079 fi | |
6080 case $host_cpu in | |
6081 hppa*64*|ia64*) | |
6082 _LT_TAGVAR(hardcode_direct, $1)=no | |
6083 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
6084 ;; | |
6085 *) | |
6086 _LT_TAGVAR(hardcode_direct, $1)=yes | |
6087 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes | |
6088 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, | |
6089 # but as the default | |
6090 # location of the library. | |
6091 ;; | |
6092 esac | |
6093 | |
6094 case $cc_basename in | |
6095 CC*) | |
6096 # FIXME: insert proper C++ library support | |
6097 _LT_TAGVAR(ld_shlibs, $1)=no | |
6098 ;; | |
6099 aCC*) | |
6100 case $host_cpu in | |
6101 hppa*64*) | |
6102 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
6103 ;; | |
6104 ia64*) | |
6105 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
6106 ;; | |
6107 *) | |
6108 _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' | |
6109 ;; | |
6110 esac | |
6111 # Commands to make compiler produce verbose output that lists | |
6112 # what "hidden" libraries, object files and flags are used when | |
6113 # linking a shared library. | |
6114 # | |
6115 # There doesn't appear to be a way to prevent this compiler from | |
6116 # explicitly linking system object files so we need to strip them | |
6117 # from the output so that they don't get included in the library | |
6118 # dependencies. | |
6119 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' | |
6120 ;; | |
6121 *) | |
6122 if test "$GXX" = yes; then | |
6123 if test $with_gnu_ld = no; then | |
6124 case $host_cpu in | |
6125 hppa*64*) | |
6126 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
6127 ;; | |
6128 ia64*) | |
6129 _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' | |
6130 ;; | |
6131 *) | |
6132 _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' | |
6133 ;; | |
6134 esac | |
6135 fi | |
6136 else | |
6137 # FIXME: insert proper C++ library support | |
6138 _LT_TAGVAR(ld_shlibs, $1)=no | |
6139 fi | |
6140 ;; | |
6141 esac | |
6142 ;; | |
6143 | |
6144 interix[[3-9]]*) | |
6145 _LT_TAGVAR(hardcode_direct, $1)=no | |
6146 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
6147 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | |
6148 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | |
6149 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
6150 # Instead, shared libraries are loaded at an image base (0x10000000 by | |
6151 # default) and relocated if they conflict, which is a slow very memory | |
6152 # consuming and fragmenting process. To avoid this, we pick a random, | |
6153 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
6154 # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
6155 _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' | |
6156 _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' | |
6157 ;; | |
6158 irix5* | irix6*) | |
6159 case $cc_basename in | |
6160 CC*) | |
6161 # SGI C++ | |
6162 _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' | |
6163 | |
6164 # Archives containing C++ object files must be created using | |
6165 # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
6166 # necessary to make sure instantiated templates are included | |
6167 # in the archive. | |
6168 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
6169 ;; | |
6170 *) | |
6171 if test "$GXX" = yes; then | |
6172 if test "$with_gnu_ld" = no; then | |
6173 _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' | |
6174 else | |
6175 _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' | |
6176 fi | |
6177 fi | |
6178 _LT_TAGVAR(link_all_deplibs, $1)=yes | |
6179 ;; | |
6180 esac | |
6181 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | |
6182 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
6183 _LT_TAGVAR(inherit_rpath, $1)=yes | |
6184 ;; | |
6185 | |
6186 linux* | k*bsd*-gnu) | |
6187 case $cc_basename in | |
6188 KCC*) | |
6189 # Kuck and Associates, Inc. (KAI) C++ Compiler | |
6190 | |
6191 # KCC will only create a shared library if the output file | |
6192 # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
6193 # to its proper name (with version) after linking. | |
6194 _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' | |
6195 _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' | |
6196 # Commands to make compiler produce verbose output that lists | |
6197 # what "hidden" libraries, object files and flags are used when | |
6198 # linking a shared library. | |
6199 # | |
6200 # There doesn't appear to be a way to prevent this compiler from | |
6201 # explicitly linking system object files so we need to strip them | |
6202 # from the output so that they don't get included in the library | |
6203 # dependencies. | |
6204 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' | |
6205 | |
6206 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | |
6207 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | |
6208 | |
6209 # Archives containing C++ object files must be created using | |
6210 # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
6211 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' | |
6212 ;; | |
6213 icpc* | ecpc* ) | |
6214 # Intel C++ | |
6215 with_gnu_ld=yes | |
6216 # version 8.0 and above of icpc choke on multiply defined symbols | |
6217 # if we add $predep_objects and $postdep_objects, however 7.1 and | |
6218 # earlier do not add the objects themselves. | |
6219 case `$CC -V 2>&1` in | |
6220 *"Version 7."*) | |
6221 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6222 _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' | |
6223 ;; | |
6224 *) # Version 8.0 or newer | |
6225 tmp_idyn= | |
6226 case $host_cpu in | |
6227 ia64*) tmp_idyn=' -i_dynamic';; | |
6228 esac | |
6229 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6230 _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' | |
6231 ;; | |
6232 esac | |
6233 _LT_TAGVAR(archive_cmds_need_lc, $1)=no | |
6234 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | |
6235 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | |
6236 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
6237 ;; | |
6238 pgCC* | pgcpp*) | |
6239 # Portland Group C++ compiler | |
6240 case `$CC -V` in | |
6241 *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*) | |
6242 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ | |
6243 rm -rf $tpldir~ | |
6244 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | |
6245 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' | |
6246 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ | |
6247 rm -rf $tpldir~ | |
6248 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | |
6249 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ | |
6250 $RANLIB $oldlib' | |
6251 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ | |
6252 rm -rf $tpldir~ | |
6253 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
6254 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
6255 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ | |
6256 rm -rf $tpldir~ | |
6257 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
6258 $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' | |
6259 ;; | |
6260 *) # Version 6 will use weak symbols | |
6261 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
6262 _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' | |
6263 ;; | |
6264 esac | |
6265 | |
6266 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' | |
6267 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | |
6268 _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' | |
6269 ;; | |
6270 cxx*) | |
6271 # Compaq C++ | |
6272 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6273 _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' | |
6274 | |
6275 runpath_var=LD_RUN_PATH | |
6276 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | |
6277 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
6278 | |
6279 # Commands to make compiler produce verbose output that lists | |
6280 # what "hidden" libraries, object files and flags are used when | |
6281 # linking a shared library. | |
6282 # | |
6283 # There doesn't appear to be a way to prevent this compiler from | |
6284 # explicitly linking system object files so we need to strip them | |
6285 # from the output so that they don't get included in the library | |
6286 # dependencies. | |
6287 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' | |
6288 ;; | |
6289 xl*) | |
6290 # IBM XL 8.0 on PPC, with GNU ld | |
6291 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | |
6292 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | |
6293 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6294 if test "x$supports_anon_versioning" = xyes; then | |
6295 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ | |
6296 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
6297 echo "local: *; };" >> $output_objdir/$libname.ver~ | |
6298 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
6299 fi | |
6300 ;; | |
6301 *) | |
6302 case `$CC -V 2>&1 | sed 5q` in | |
6303 *Sun\ C*) | |
6304 # Sun C++ 5.9 | |
6305 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' | |
6306 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
6307 _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' | |
6308 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | |
6309 _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' | |
6310 _LT_TAGVAR(compiler_needs_object, $1)=yes | |
6311 | |
6312 # Not sure whether something based on | |
6313 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | |
6314 # would be better. | |
6315 output_verbose_link_cmd='echo' | |
6316 | |
6317 # Archives containing C++ object files must be created using | |
6318 # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
6319 # necessary to make sure instantiated templates are included | |
6320 # in the archive. | |
6321 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' | |
6322 ;; | |
6323 esac | |
6324 ;; | |
6325 esac | |
6326 ;; | |
6327 | |
6328 lynxos*) | |
6329 # FIXME: insert proper C++ library support | |
6330 _LT_TAGVAR(ld_shlibs, $1)=no | |
6331 ;; | |
6332 | |
6333 m88k*) | |
6334 # FIXME: insert proper C++ library support | |
6335 _LT_TAGVAR(ld_shlibs, $1)=no | |
6336 ;; | |
6337 | |
6338 mvs*) | |
6339 case $cc_basename in | |
6340 cxx*) | |
6341 # FIXME: insert proper C++ library support | |
6342 _LT_TAGVAR(ld_shlibs, $1)=no | |
6343 ;; | |
6344 *) | |
6345 # FIXME: insert proper C++ library support | |
6346 _LT_TAGVAR(ld_shlibs, $1)=no | |
6347 ;; | |
6348 esac | |
6349 ;; | |
6350 | |
6351 netbsd*) | |
6352 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
6353 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
6354 wlarc= | |
6355 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | |
6356 _LT_TAGVAR(hardcode_direct, $1)=yes | |
6357 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
6358 fi | |
6359 # Workaround some broken pre-1.5 toolchains | |
6360 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
6361 ;; | |
6362 | |
6363 *nto* | *qnx*) | |
6364 _LT_TAGVAR(ld_shlibs, $1)=yes | |
6365 ;; | |
6366 | |
6367 openbsd2*) | |
6368 # C++ shared libraries are fairly broken | |
6369 _LT_TAGVAR(ld_shlibs, $1)=no | |
6370 ;; | |
6371 | |
6372 openbsd*) | |
6373 if test -f /usr/libexec/ld.so; then | |
6374 _LT_TAGVAR(hardcode_direct, $1)=yes | |
6375 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
6376 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes | |
6377 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
6378 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | |
6379 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6380 _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' | |
6381 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | |
6382 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
6383 fi | |
6384 output_verbose_link_cmd=echo | |
6385 else | |
6386 _LT_TAGVAR(ld_shlibs, $1)=no | |
6387 fi | |
6388 ;; | |
6389 | |
6390 osf3* | osf4* | osf5*) | |
6391 case $cc_basename in | |
6392 KCC*) | |
6393 # Kuck and Associates, Inc. (KAI) C++ Compiler | |
6394 | |
6395 # KCC will only create a shared library if the output file | |
6396 # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
6397 # to its proper name (with version) after linking. | |
6398 _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' | |
6399 | |
6400 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | |
6401 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
6402 | |
6403 # Archives containing C++ object files must be created using | |
6404 # the KAI C++ compiler. | |
6405 case $host in | |
6406 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; | |
6407 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; | |
6408 esac | |
6409 ;; | |
6410 RCC*) | |
6411 # Rational C++ 2.4.1 | |
6412 # FIXME: insert proper C++ library support | |
6413 _LT_TAGVAR(ld_shlibs, $1)=no | |
6414 ;; | |
6415 cxx*) | |
6416 case $host in | |
6417 osf3*) | |
6418 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | |
6419 _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' | |
6420 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | |
6421 ;; | |
6422 *) | |
6423 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | |
6424 _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' | |
6425 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | |
6426 echo "-hidden">> $lib.exp~ | |
6427 $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~ | |
6428 $RM $lib.exp' | |
6429 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | |
6430 ;; | |
6431 esac | |
6432 | |
6433 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
6434 | |
6435 # Commands to make compiler produce verbose output that lists | |
6436 # what "hidden" libraries, object files and flags are used when | |
6437 # linking a shared library. | |
6438 # | |
6439 # There doesn't appear to be a way to prevent this compiler from | |
6440 # explicitly linking system object files so we need to strip them | |
6441 # from the output so that they don't get included in the library | |
6442 # dependencies. | |
6443 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' | |
6444 ;; | |
6445 *) | |
6446 if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
6447 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | |
6448 case $host in | |
6449 osf3*) | |
6450 _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' | |
6451 ;; | |
6452 *) | |
6453 _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' | |
6454 ;; | |
6455 esac | |
6456 | |
6457 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | |
6458 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
6459 | |
6460 # Commands to make compiler produce verbose output that lists | |
6461 # what "hidden" libraries, object files and flags are used when | |
6462 # linking a shared library. | |
6463 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
6464 | |
6465 else | |
6466 # FIXME: insert proper C++ library support | |
6467 _LT_TAGVAR(ld_shlibs, $1)=no | |
6468 fi | |
6469 ;; | |
6470 esac | |
6471 ;; | |
6472 | |
6473 psos*) | |
6474 # FIXME: insert proper C++ library support | |
6475 _LT_TAGVAR(ld_shlibs, $1)=no | |
6476 ;; | |
6477 | |
6478 sunos4*) | |
6479 case $cc_basename in | |
6480 CC*) | |
6481 # Sun C++ 4.x | |
6482 # FIXME: insert proper C++ library support | |
6483 _LT_TAGVAR(ld_shlibs, $1)=no | |
6484 ;; | |
6485 lcc*) | |
6486 # Lucid | |
6487 # FIXME: insert proper C++ library support | |
6488 _LT_TAGVAR(ld_shlibs, $1)=no | |
6489 ;; | |
6490 *) | |
6491 # FIXME: insert proper C++ library support | |
6492 _LT_TAGVAR(ld_shlibs, $1)=no | |
6493 ;; | |
6494 esac | |
6495 ;; | |
6496 | |
6497 solaris*) | |
6498 case $cc_basename in | |
6499 CC*) | |
6500 # Sun C++ 4.2, 5.x and Centerline C++ | |
6501 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes | |
6502 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' | |
6503 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
6504 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
6505 $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' | |
6506 | |
6507 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | |
6508 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
6509 case $host_os in | |
6510 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; | |
6511 *) | |
6512 # The compiler driver will combine and reorder linker options, | |
6513 # but understands `-z linker_flag'. | |
6514 # Supported since Solaris 2.6 (maybe 2.5.1?) | |
6515 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' | |
6516 ;; | |
6517 esac | |
6518 _LT_TAGVAR(link_all_deplibs, $1)=yes | |
6519 | |
6520 output_verbose_link_cmd='echo' | |
6521 | |
6522 # Archives containing C++ object files must be created using | |
6523 # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
6524 # necessary to make sure instantiated templates are included | |
6525 # in the archive. | |
6526 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' | |
6527 ;; | |
6528 gcx*) | |
6529 # Green Hills C++ Compiler | |
6530 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
6531 | |
6532 # The C++ compiler must be used to create the archive. | |
6533 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
6534 ;; | |
6535 *) | |
6536 # GNU C++ compiler with Solaris linker | |
6537 if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
6538 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' | |
6539 if $CC --version | $GREP -v '^2\.7' > /dev/null; then | |
6540 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
6541 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
6542 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
6543 | |
6544 # Commands to make compiler produce verbose output that lists | |
6545 # what "hidden" libraries, object files and flags are used when | |
6546 # linking a shared library. | |
6547 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
6548 else | |
6549 # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
6550 # platform. | |
6551 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
6552 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
6553 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
6554 | |
6555 # Commands to make compiler produce verbose output that lists | |
6556 # what "hidden" libraries, object files and flags are used when | |
6557 # linking a shared library. | |
6558 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
6559 fi | |
6560 | |
6561 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' | |
6562 case $host_os in | |
6563 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; | |
6564 *) | |
6565 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
6566 ;; | |
6567 esac | |
6568 fi | |
6569 ;; | |
6570 esac | |
6571 ;; | |
6572 | |
6573 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) | |
6574 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | |
6575 _LT_TAGVAR(archive_cmds_need_lc, $1)=no | |
6576 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
6577 runpath_var='LD_RUN_PATH' | |
6578 | |
6579 case $cc_basename in | |
6580 CC*) | |
6581 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6582 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6583 ;; | |
6584 *) | |
6585 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6586 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6587 ;; | |
6588 esac | |
6589 ;; | |
6590 | |
6591 sysv5* | sco3.2v5* | sco5v6*) | |
6592 # Note: We can NOT use -z defs as we might desire, because we do not | |
6593 # link with -lc, and that would cause any symbols used from libc to | |
6594 # always be unresolved, which means just about no library would | |
6595 # ever link correctly. If we're not using GNU ld we use -z text | |
6596 # though, which does catch some bad symbols but isn't as heavy-handed | |
6597 # as -z defs. | |
6598 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | |
6599 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' | |
6600 _LT_TAGVAR(archive_cmds_need_lc, $1)=no | |
6601 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
6602 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' | |
6603 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' | |
6604 _LT_TAGVAR(link_all_deplibs, $1)=yes | |
6605 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' | |
6606 runpath_var='LD_RUN_PATH' | |
6607 | |
6608 case $cc_basename in | |
6609 CC*) | |
6610 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6611 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6612 ;; | |
6613 *) | |
6614 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6615 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6616 ;; | |
6617 esac | |
6618 ;; | |
6619 | |
6620 tandem*) | |
6621 case $cc_basename in | |
6622 NCC*) | |
6623 # NonStop-UX NCC 3.20 | |
6624 # FIXME: insert proper C++ library support | |
6625 _LT_TAGVAR(ld_shlibs, $1)=no | |
6626 ;; | |
6627 *) | |
6628 # FIXME: insert proper C++ library support | |
6629 _LT_TAGVAR(ld_shlibs, $1)=no | |
6630 ;; | |
6631 esac | |
6632 ;; | |
6633 | |
6634 vxworks*) | |
6635 # FIXME: insert proper C++ library support | |
6636 _LT_TAGVAR(ld_shlibs, $1)=no | |
6637 ;; | |
6638 | |
6639 *) | |
6640 # FIXME: insert proper C++ library support | |
6641 _LT_TAGVAR(ld_shlibs, $1)=no | |
6642 ;; | |
6643 esac | |
6644 | |
6645 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) | |
6646 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no | |
6647 | |
6648 _LT_TAGVAR(GCC, $1)="$GXX" | |
6649 _LT_TAGVAR(LD, $1)="$LD" | |
6650 | |
6651 ## CAVEAT EMPTOR: | |
6652 ## There is no encapsulation within the following macros, do not change | |
6653 ## the running order or otherwise move them around unless you know exactly | |
6654 ## what you are doing... | |
6655 _LT_SYS_HIDDEN_LIBDEPS($1) | |
6656 _LT_COMPILER_PIC($1) | |
6657 _LT_COMPILER_C_O($1) | |
6658 _LT_COMPILER_FILE_LOCKS($1) | |
6659 _LT_LINKER_SHLIBS($1) | |
6660 _LT_SYS_DYNAMIC_LINKER($1) | |
6661 _LT_LINKER_HARDCODE_LIBPATH($1) | |
6662 | |
6663 _LT_CONFIG($1) | |
6664 fi # test -n "$compiler" | |
6665 | |
6666 CC=$lt_save_CC | |
6667 LDCXX=$LD | |
6668 LD=$lt_save_LD | |
6669 GCC=$lt_save_GCC | |
6670 with_gnu_ld=$lt_save_with_gnu_ld | |
6671 lt_cv_path_LDCXX=$lt_cv_path_LD | |
6672 lt_cv_path_LD=$lt_save_path_LD | |
6673 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
6674 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
6675 fi # test "$_lt_caught_CXX_error" != yes | |
6676 | |
6677 AC_LANG_POP | |
6678 ])# _LT_LANG_CXX_CONFIG | |
6679 | |
6680 | |
6681 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) | |
6652 # --------------------------------- | 6682 # --------------------------------- |
6653 AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])]) | 6683 # Figure out "hidden" library dependencies from verbose |
6654 | 6684 # compiler output when linking a shared library. |
6655 | 6685 # Parse the compiler output and extract the necessary |
6656 # old names | 6686 # objects, libraries and library flags. |
6657 AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) | 6687 m4_defun([_LT_SYS_HIDDEN_LIBDEPS], |
6658 AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) | 6688 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
6659 AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) | 6689 # Dependencies to place before and after the object being linked: |
6660 AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) | 6690 _LT_TAGVAR(predep_objects, $1)= |
6661 AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) | 6691 _LT_TAGVAR(postdep_objects, $1)= |
6662 AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) | 6692 _LT_TAGVAR(predeps, $1)= |
6663 AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) | 6693 _LT_TAGVAR(postdeps, $1)= |
6664 | 6694 _LT_TAGVAR(compiler_lib_search_path, $1)= |
6665 # This is just to silence aclocal about the macro not being used | 6695 |
6666 ifelse([AC_DISABLE_FAST_INSTALL]) | 6696 dnl we can't use the lt_simple_compile_test_code here, |
6667 | 6697 dnl because it contains code intended for an executable, |
6668 AC_DEFUN([LT_AC_PROG_GCJ], | 6698 dnl not a library. It's possible we should let each |
6669 [AC_CHECK_TOOL(GCJ, gcj, no) | 6699 dnl tag define a new lt_????_link_test_code variable, |
6670 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" | 6700 dnl but it's only used here... |
6671 AC_SUBST(GCJFLAGS) | 6701 m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF |
6702 int a; | |
6703 void foo (void) { a = 0; } | |
6704 _LT_EOF | |
6705 ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF | |
6706 class Foo | |
6707 { | |
6708 public: | |
6709 Foo (void) { a = 0; } | |
6710 private: | |
6711 int a; | |
6712 }; | |
6713 _LT_EOF | |
6714 ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF | |
6715 subroutine foo | |
6716 implicit none | |
6717 integer*4 a | |
6718 a=0 | |
6719 return | |
6720 end | |
6721 _LT_EOF | |
6722 ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF | |
6723 subroutine foo | |
6724 implicit none | |
6725 integer a | |
6726 a=0 | |
6727 return | |
6728 end | |
6729 _LT_EOF | |
6730 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF | |
6731 public class foo { | |
6732 private int a; | |
6733 public void bar (void) { | |
6734 a = 0; | |
6735 } | |
6736 }; | |
6737 _LT_EOF | |
6672 ]) | 6738 ]) |
6673 | 6739 dnl Parse the compiler output and extract the necessary |
6674 AC_DEFUN([LT_AC_PROG_RC], | 6740 dnl objects, libraries and library flags. |
6675 [AC_CHECK_TOOL(RC, windres, no) | 6741 if AC_TRY_EVAL(ac_compile); then |
6742 # Parse the compiler output and extract the necessary | |
6743 # objects, libraries and library flags. | |
6744 | |
6745 # Sentinel used to keep track of whether or not we are before | |
6746 # the conftest object file. | |
6747 pre_test_object_deps_done=no | |
6748 | |
6749 for p in `eval "$output_verbose_link_cmd"`; do | |
6750 case $p in | |
6751 | |
6752 -L* | -R* | -l*) | |
6753 # Some compilers place space between "-{L,R}" and the path. | |
6754 # Remove the space. | |
6755 if test $p = "-L" || | |
6756 test $p = "-R"; then | |
6757 prev=$p | |
6758 continue | |
6759 else | |
6760 prev= | |
6761 fi | |
6762 | |
6763 if test "$pre_test_object_deps_done" = no; then | |
6764 case $p in | |
6765 -L* | -R*) | |
6766 # Internal compiler library paths should come after those | |
6767 # provided the user. The postdeps already come after the | |
6768 # user supplied libs so there is no need to process them. | |
6769 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then | |
6770 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" | |
6771 else | |
6772 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" | |
6773 fi | |
6774 ;; | |
6775 # The "-l" case would never come before the object being | |
6776 # linked, so don't bother handling this case. | |
6777 esac | |
6778 else | |
6779 if test -z "$_LT_TAGVAR(postdeps, $1)"; then | |
6780 _LT_TAGVAR(postdeps, $1)="${prev}${p}" | |
6781 else | |
6782 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" | |
6783 fi | |
6784 fi | |
6785 ;; | |
6786 | |
6787 *.$objext) | |
6788 # This assumes that the test object file only shows up | |
6789 # once in the compiler output. | |
6790 if test "$p" = "conftest.$objext"; then | |
6791 pre_test_object_deps_done=yes | |
6792 continue | |
6793 fi | |
6794 | |
6795 if test "$pre_test_object_deps_done" = no; then | |
6796 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then | |
6797 _LT_TAGVAR(predep_objects, $1)="$p" | |
6798 else | |
6799 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" | |
6800 fi | |
6801 else | |
6802 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then | |
6803 _LT_TAGVAR(postdep_objects, $1)="$p" | |
6804 else | |
6805 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" | |
6806 fi | |
6807 fi | |
6808 ;; | |
6809 | |
6810 *) ;; # Ignore the rest. | |
6811 | |
6812 esac | |
6813 done | |
6814 | |
6815 # Clean up. | |
6816 rm -f a.out a.exe | |
6817 else | |
6818 echo "libtool.m4: error: problem compiling $1 test program" | |
6819 fi | |
6820 | |
6821 $RM -f confest.$objext | |
6822 | |
6823 # PORTME: override above test on systems where it is broken | |
6824 m4_if([$1], [CXX], | |
6825 [case $host_os in | |
6826 interix[[3-9]]*) | |
6827 # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
6828 # hack all around it, let's just trust "g++" to DTRT. | |
6829 _LT_TAGVAR(predep_objects,$1)= | |
6830 _LT_TAGVAR(postdep_objects,$1)= | |
6831 _LT_TAGVAR(postdeps,$1)= | |
6832 ;; | |
6833 | |
6834 linux*) | |
6835 case `$CC -V 2>&1 | sed 5q` in | |
6836 *Sun\ C*) | |
6837 # Sun C++ 5.9 | |
6838 | |
6839 # The more standards-conforming stlport4 library is | |
6840 # incompatible with the Cstd library. Avoid specifying | |
6841 # it if it's in CXXFLAGS. Ignore libCrun as | |
6842 # -library=stlport4 depends on it. | |
6843 case " $CXX $CXXFLAGS " in | |
6844 *" -library=stlport4 "*) | |
6845 solaris_use_stlport4=yes | |
6846 ;; | |
6847 esac | |
6848 | |
6849 if test "$solaris_use_stlport4" != yes; then | |
6850 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' | |
6851 fi | |
6852 ;; | |
6853 esac | |
6854 ;; | |
6855 | |
6856 solaris*) | |
6857 case $cc_basename in | |
6858 CC*) | |
6859 # The more standards-conforming stlport4 library is | |
6860 # incompatible with the Cstd library. Avoid specifying | |
6861 # it if it's in CXXFLAGS. Ignore libCrun as | |
6862 # -library=stlport4 depends on it. | |
6863 case " $CXX $CXXFLAGS " in | |
6864 *" -library=stlport4 "*) | |
6865 solaris_use_stlport4=yes | |
6866 ;; | |
6867 esac | |
6868 | |
6869 # Adding this requires a known-good setup of shared libraries for | |
6870 # Sun compiler versions before 5.6, else PIC objects from an old | |
6871 # archive will be linked into the output, leading to subtle bugs. | |
6872 if test "$solaris_use_stlport4" != yes; then | |
6873 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' | |
6874 fi | |
6875 ;; | |
6876 esac | |
6877 ;; | |
6878 esac | |
6676 ]) | 6879 ]) |
6677 | 6880 |
6881 case " $_LT_TAGVAR(postdeps, $1) " in | |
6882 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; | |
6883 esac | |
6884 _LT_TAGVAR(compiler_lib_search_dirs, $1)= | |
6885 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then | |
6886 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | |
6887 fi | |
6888 _LT_TAGDECL([], [compiler_lib_search_dirs], [1], | |
6889 [The directories searched by this compiler when creating a shared library]) | |
6890 _LT_TAGDECL([], [predep_objects], [1], | |
6891 [Dependencies to place before and after the objects being linked to | |
6892 create a shared library]) | |
6893 _LT_TAGDECL([], [postdep_objects], [1]) | |
6894 _LT_TAGDECL([], [predeps], [1]) | |
6895 _LT_TAGDECL([], [postdeps], [1]) | |
6896 _LT_TAGDECL([], [compiler_lib_search_path], [1], | |
6897 [The library search path used internally by the compiler when linking | |
6898 a shared library]) | |
6899 ])# _LT_SYS_HIDDEN_LIBDEPS | |
6900 | |
6901 | |
6902 # _LT_PROG_F77 | |
6903 # ------------ | |
6904 # Since AC_PROG_F77 is broken, in that it returns the empty string | |
6905 # if there is no fortran compiler, we have our own version here. | |
6906 m4_defun([_LT_PROG_F77], | |
6907 [ | |
6908 pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes]) | |
6909 AC_PROG_F77 | |
6910 if test -z "$F77" || test "X$F77" = "Xno"; then | |
6911 _lt_disable_F77=yes | |
6912 fi | |
6913 popdef([AC_MSG_ERROR]) | |
6914 ])# _LT_PROG_F77 | |
6915 | |
6916 dnl aclocal-1.4 backwards compatibility: | |
6917 dnl AC_DEFUN([_LT_PROG_F77], []) | |
6918 | |
6919 | |
6920 # _LT_LANG_F77_CONFIG([TAG]) | |
6921 # -------------------------- | |
6922 # Ensure that the configuration variables for a Fortran 77 compiler are | |
6923 # suitably defined. These variables are subsequently used by _LT_CONFIG | |
6924 # to write the compiler configuration to `libtool'. | |
6925 m4_defun([_LT_LANG_F77_CONFIG], | |
6926 [AC_REQUIRE([_LT_PROG_F77])dnl | |
6927 AC_LANG_PUSH(Fortran 77) | |
6928 | |
6929 _LT_TAGVAR(archive_cmds_need_lc, $1)=no | |
6930 _LT_TAGVAR(allow_undefined_flag, $1)= | |
6931 _LT_TAGVAR(always_export_symbols, $1)=no | |
6932 _LT_TAGVAR(archive_expsym_cmds, $1)= | |
6933 _LT_TAGVAR(export_dynamic_flag_spec, $1)= | |
6934 _LT_TAGVAR(hardcode_direct, $1)=no | |
6935 _LT_TAGVAR(hardcode_direct_absolute, $1)=no | |
6936 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | |
6937 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | |
6938 _LT_TAGVAR(hardcode_libdir_separator, $1)= | |
6939 _LT_TAGVAR(hardcode_minus_L, $1)=no | |
6940 _LT_TAGVAR(hardcode_automatic, $1)=no | |
6941 _LT_TAGVAR(inherit_rpath, $1)=no | |
6942 _LT_TAGVAR(module_cmds, $1)= | |
6943 _LT_TAGVAR(module_expsym_cmds, $1)= | |
6944 _LT_TAGVAR(link_all_deplibs, $1)=unknown | |
6945 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | |
6946 _LT_TAGVAR(no_undefined_flag, $1)= | |
6947 _LT_TAGVAR(whole_archive_flag_spec, $1)= | |
6948 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no | |
6949 | |
6950 # Source file extension for f77 test sources. | |
6951 ac_ext=f | |
6952 | |
6953 # Object file extension for compiled f77 test sources. | |
6954 objext=o | |
6955 _LT_TAGVAR(objext, $1)=$objext | |
6956 | |
6957 # No sense in running all these tests if we already determined that | |
6958 # the F77 compiler isn't working. Some variables (like enable_shared) | |
6959 # are currently assumed to apply to all compilers on this platform, | |
6960 # and will be corrupted by setting them based on a non-working compiler. | |
6961 if test "$_lt_disable_F77" != yes; then | |
6962 # Code to be used in simple compile tests | |
6963 lt_simple_compile_test_code="\ | |
6964 subroutine t | |
6965 return | |
6966 end | |
6967 " | |
6968 | |
6969 # Code to be used in simple link tests | |
6970 lt_simple_link_test_code="\ | |
6971 program t | |
6972 end | |
6973 " | |
6974 | |
6975 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
6976 _LT_TAG_COMPILER | |
6977 | |
6978 # save warnings/boilerplate of simple test code | |
6979 _LT_COMPILER_BOILERPLATE | |
6980 _LT_LINKER_BOILERPLATE | |
6981 | |
6982 # Allow CC to be a program name with arguments. | |
6983 lt_save_CC="$CC" | |
6984 lt_save_GCC=$GCC | |
6985 CC=${F77-"f77"} | |
6986 compiler=$CC | |
6987 _LT_TAGVAR(compiler, $1)=$CC | |
6988 _LT_CC_BASENAME([$compiler]) | |
6989 GCC=$G77 | |
6990 if test -n "$compiler"; then | |
6991 AC_MSG_CHECKING([if libtool supports shared libraries]) | |
6992 AC_MSG_RESULT([$can_build_shared]) | |
6993 | |
6994 AC_MSG_CHECKING([whether to build shared libraries]) | |
6995 test "$can_build_shared" = "no" && enable_shared=no | |
6996 | |
6997 # On AIX, shared libraries and static libraries use the same namespace, and | |
6998 # are all built from PIC. | |
6999 case $host_os in | |
7000 aix3*) | |
7001 test "$enable_shared" = yes && enable_static=no | |
7002 if test -n "$RANLIB"; then | |
7003 archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
7004 postinstall_cmds='$RANLIB $lib' | |
7005 fi | |
7006 ;; | |
7007 aix[[4-9]]*) | |
7008 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
7009 test "$enable_shared" = yes && enable_static=no | |
7010 fi | |
7011 ;; | |
7012 esac | |
7013 AC_MSG_RESULT([$enable_shared]) | |
7014 | |
7015 AC_MSG_CHECKING([whether to build static libraries]) | |
7016 # Make sure either enable_shared or enable_static is yes. | |
7017 test "$enable_shared" = yes || enable_static=yes | |
7018 AC_MSG_RESULT([$enable_static]) | |
7019 | |
7020 _LT_TAGVAR(GCC, $1)="$G77" | |
7021 _LT_TAGVAR(LD, $1)="$LD" | |
7022 | |
7023 ## CAVEAT EMPTOR: | |
7024 ## There is no encapsulation within the following macros, do not change | |
7025 ## the running order or otherwise move them around unless you know exactly | |
7026 ## what you are doing... | |
7027 _LT_COMPILER_PIC($1) | |
7028 _LT_COMPILER_C_O($1) | |
7029 _LT_COMPILER_FILE_LOCKS($1) | |
7030 _LT_LINKER_SHLIBS($1) | |
7031 _LT_SYS_DYNAMIC_LINKER($1) | |
7032 _LT_LINKER_HARDCODE_LIBPATH($1) | |
7033 | |
7034 _LT_CONFIG($1) | |
7035 fi # test -n "$compiler" | |
7036 | |
7037 GCC=$lt_save_GCC | |
7038 CC="$lt_save_CC" | |
7039 fi # test "$_lt_disable_F77" != yes | |
7040 | |
7041 AC_LANG_POP | |
7042 ])# _LT_LANG_F77_CONFIG | |
7043 | |
7044 | |
7045 # _LT_PROG_FC | |
7046 # ----------- | |
7047 # Since AC_PROG_FC is broken, in that it returns the empty string | |
7048 # if there is no fortran compiler, we have our own version here. | |
7049 m4_defun([_LT_PROG_FC], | |
7050 [ | |
7051 pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes]) | |
7052 AC_PROG_FC | |
7053 if test -z "$FC" || test "X$FC" = "Xno"; then | |
7054 _lt_disable_FC=yes | |
7055 fi | |
7056 popdef([AC_MSG_ERROR]) | |
7057 ])# _LT_PROG_FC | |
7058 | |
7059 dnl aclocal-1.4 backwards compatibility: | |
7060 dnl AC_DEFUN([_LT_PROG_FC], []) | |
7061 | |
7062 | |
7063 # _LT_LANG_FC_CONFIG([TAG]) | |
7064 # ------------------------- | |
7065 # Ensure that the configuration variables for a Fortran compiler are | |
7066 # suitably defined. These variables are subsequently used by _LT_CONFIG | |
7067 # to write the compiler configuration to `libtool'. | |
7068 m4_defun([_LT_LANG_FC_CONFIG], | |
7069 [AC_REQUIRE([_LT_PROG_FC])dnl | |
7070 AC_LANG_PUSH(Fortran) | |
7071 | |
7072 _LT_TAGVAR(archive_cmds_need_lc, $1)=no | |
7073 _LT_TAGVAR(allow_undefined_flag, $1)= | |
7074 _LT_TAGVAR(always_export_symbols, $1)=no | |
7075 _LT_TAGVAR(archive_expsym_cmds, $1)= | |
7076 _LT_TAGVAR(export_dynamic_flag_spec, $1)= | |
7077 _LT_TAGVAR(hardcode_direct, $1)=no | |
7078 _LT_TAGVAR(hardcode_direct_absolute, $1)=no | |
7079 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | |
7080 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | |
7081 _LT_TAGVAR(hardcode_libdir_separator, $1)= | |
7082 _LT_TAGVAR(hardcode_minus_L, $1)=no | |
7083 _LT_TAGVAR(hardcode_automatic, $1)=no | |
7084 _LT_TAGVAR(inherit_rpath, $1)=no | |
7085 _LT_TAGVAR(module_cmds, $1)= | |
7086 _LT_TAGVAR(module_expsym_cmds, $1)= | |
7087 _LT_TAGVAR(link_all_deplibs, $1)=unknown | |
7088 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | |
7089 _LT_TAGVAR(no_undefined_flag, $1)= | |
7090 _LT_TAGVAR(whole_archive_flag_spec, $1)= | |
7091 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no | |
7092 | |
7093 # Source file extension for fc test sources. | |
7094 ac_ext=${ac_fc_srcext-f} | |
7095 | |
7096 # Object file extension for compiled fc test sources. | |
7097 objext=o | |
7098 _LT_TAGVAR(objext, $1)=$objext | |
7099 | |
7100 # No sense in running all these tests if we already determined that | |
7101 # the FC compiler isn't working. Some variables (like enable_shared) | |
7102 # are currently assumed to apply to all compilers on this platform, | |
7103 # and will be corrupted by setting them based on a non-working compiler. | |
7104 if test "$_lt_disable_FC" != yes; then | |
7105 # Code to be used in simple compile tests | |
7106 lt_simple_compile_test_code="\ | |
7107 subroutine t | |
7108 return | |
7109 end | |
7110 " | |
7111 | |
7112 # Code to be used in simple link tests | |
7113 lt_simple_link_test_code="\ | |
7114 program t | |
7115 end | |
7116 " | |
7117 | |
7118 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
7119 _LT_TAG_COMPILER | |
7120 | |
7121 # save warnings/boilerplate of simple test code | |
7122 _LT_COMPILER_BOILERPLATE | |
7123 _LT_LINKER_BOILERPLATE | |
7124 | |
7125 # Allow CC to be a program name with arguments. | |
7126 lt_save_CC="$CC" | |
7127 lt_save_GCC=$GCC | |
7128 CC=${FC-"f95"} | |
7129 compiler=$CC | |
7130 GCC=$ac_cv_fc_compiler_gnu | |
7131 | |
7132 _LT_TAGVAR(compiler, $1)=$CC | |
7133 _LT_CC_BASENAME([$compiler]) | |
7134 | |
7135 if test -n "$compiler"; then | |
7136 AC_MSG_CHECKING([if libtool supports shared libraries]) | |
7137 AC_MSG_RESULT([$can_build_shared]) | |
7138 | |
7139 AC_MSG_CHECKING([whether to build shared libraries]) | |
7140 test "$can_build_shared" = "no" && enable_shared=no | |
7141 | |
7142 # On AIX, shared libraries and static libraries use the same namespace, and | |
7143 # are all built from PIC. | |
7144 case $host_os in | |
7145 aix3*) | |
7146 test "$enable_shared" = yes && enable_static=no | |
7147 if test -n "$RANLIB"; then | |
7148 archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
7149 postinstall_cmds='$RANLIB $lib' | |
7150 fi | |
7151 ;; | |
7152 aix[[4-9]]*) | |
7153 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
7154 test "$enable_shared" = yes && enable_static=no | |
7155 fi | |
7156 ;; | |
7157 esac | |
7158 AC_MSG_RESULT([$enable_shared]) | |
7159 | |
7160 AC_MSG_CHECKING([whether to build static libraries]) | |
7161 # Make sure either enable_shared or enable_static is yes. | |
7162 test "$enable_shared" = yes || enable_static=yes | |
7163 AC_MSG_RESULT([$enable_static]) | |
7164 | |
7165 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" | |
7166 _LT_TAGVAR(LD, $1)="$LD" | |
7167 | |
7168 ## CAVEAT EMPTOR: | |
7169 ## There is no encapsulation within the following macros, do not change | |
7170 ## the running order or otherwise move them around unless you know exactly | |
7171 ## what you are doing... | |
7172 _LT_SYS_HIDDEN_LIBDEPS($1) | |
7173 _LT_COMPILER_PIC($1) | |
7174 _LT_COMPILER_C_O($1) | |
7175 _LT_COMPILER_FILE_LOCKS($1) | |
7176 _LT_LINKER_SHLIBS($1) | |
7177 _LT_SYS_DYNAMIC_LINKER($1) | |
7178 _LT_LINKER_HARDCODE_LIBPATH($1) | |
7179 | |
7180 _LT_CONFIG($1) | |
7181 fi # test -n "$compiler" | |
7182 | |
7183 GCC=$lt_save_GCC | |
7184 CC="$lt_save_CC" | |
7185 fi # test "$_lt_disable_FC" != yes | |
7186 | |
7187 AC_LANG_POP | |
7188 ])# _LT_LANG_FC_CONFIG | |
7189 | |
7190 | |
7191 # _LT_LANG_GCJ_CONFIG([TAG]) | |
7192 # -------------------------- | |
7193 # Ensure that the configuration variables for the GNU Java Compiler compiler | |
7194 # are suitably defined. These variables are subsequently used by _LT_CONFIG | |
7195 # to write the compiler configuration to `libtool'. | |
7196 m4_defun([_LT_LANG_GCJ_CONFIG], | |
7197 [AC_REQUIRE([LT_PROG_GCJ])dnl | |
7198 AC_LANG_SAVE | |
7199 | |
7200 # Source file extension for Java test sources. | |
7201 ac_ext=java | |
7202 | |
7203 # Object file extension for compiled Java test sources. | |
7204 objext=o | |
7205 _LT_TAGVAR(objext, $1)=$objext | |
7206 | |
7207 # Code to be used in simple compile tests | |
7208 lt_simple_compile_test_code="class foo {}" | |
7209 | |
7210 # Code to be used in simple link tests | |
7211 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' | |
7212 | |
7213 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
7214 _LT_TAG_COMPILER | |
7215 | |
7216 # save warnings/boilerplate of simple test code | |
7217 _LT_COMPILER_BOILERPLATE | |
7218 _LT_LINKER_BOILERPLATE | |
7219 | |
7220 # Allow CC to be a program name with arguments. | |
7221 lt_save_CC="$CC" | |
7222 lt_save_GCC=$GCC | |
7223 GCC=yes | |
7224 CC=${GCJ-"gcj"} | |
7225 compiler=$CC | |
7226 _LT_TAGVAR(compiler, $1)=$CC | |
7227 _LT_TAGVAR(LD, $1)="$LD" | |
7228 _LT_CC_BASENAME([$compiler]) | |
7229 | |
7230 # GCJ did not exist at the time GCC didn't implicitly link libc in. | |
7231 _LT_TAGVAR(archive_cmds_need_lc, $1)=no | |
7232 | |
7233 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | |
7234 | |
7235 ## CAVEAT EMPTOR: | |
7236 ## There is no encapsulation within the following macros, do not change | |
7237 ## the running order or otherwise move them around unless you know exactly | |
7238 ## what you are doing... | |
7239 if test -n "$compiler"; then | |
7240 _LT_COMPILER_NO_RTTI($1) | |
7241 _LT_COMPILER_PIC($1) | |
7242 _LT_COMPILER_C_O($1) | |
7243 _LT_COMPILER_FILE_LOCKS($1) | |
7244 _LT_LINKER_SHLIBS($1) | |
7245 _LT_LINKER_HARDCODE_LIBPATH($1) | |
7246 | |
7247 _LT_CONFIG($1) | |
7248 fi | |
7249 | |
7250 AC_LANG_RESTORE | |
7251 | |
7252 GCC=$lt_save_GCC | |
7253 CC="$lt_save_CC" | |
7254 ])# _LT_LANG_GCJ_CONFIG | |
7255 | |
7256 | |
7257 # _LT_LANG_RC_CONFIG([TAG]) | |
7258 # ------------------------- | |
7259 # Ensure that the configuration variables for the Windows resource compiler | |
7260 # are suitably defined. These variables are subsequently used by _LT_CONFIG | |
7261 # to write the compiler configuration to `libtool'. | |
7262 m4_defun([_LT_LANG_RC_CONFIG], | |
7263 [AC_REQUIRE([LT_PROG_RC])dnl | |
7264 AC_LANG_SAVE | |
7265 | |
7266 # Source file extension for RC test sources. | |
7267 ac_ext=rc | |
7268 | |
7269 # Object file extension for compiled RC test sources. | |
7270 objext=o | |
7271 _LT_TAGVAR(objext, $1)=$objext | |
7272 | |
7273 # Code to be used in simple compile tests | |
7274 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' | |
7275 | |
7276 # Code to be used in simple link tests | |
7277 lt_simple_link_test_code="$lt_simple_compile_test_code" | |
7278 | |
7279 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
7280 _LT_TAG_COMPILER | |
7281 | |
7282 # save warnings/boilerplate of simple test code | |
7283 _LT_COMPILER_BOILERPLATE | |
7284 _LT_LINKER_BOILERPLATE | |
7285 | |
7286 # Allow CC to be a program name with arguments. | |
7287 lt_save_CC="$CC" | |
7288 lt_save_GCC=$GCC | |
7289 GCC= | |
7290 CC=${RC-"windres"} | |
7291 compiler=$CC | |
7292 _LT_TAGVAR(compiler, $1)=$CC | |
7293 _LT_CC_BASENAME([$compiler]) | |
7294 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes | |
7295 | |
7296 if test -n "$compiler"; then | |
7297 : | |
7298 _LT_CONFIG($1) | |
7299 fi | |
7300 | |
7301 GCC=$lt_save_GCC | |
7302 AC_LANG_RESTORE | |
7303 CC="$lt_save_CC" | |
7304 ])# _LT_LANG_RC_CONFIG | |
7305 | |
7306 | |
7307 # LT_PROG_GCJ | |
7308 # ----------- | |
7309 AC_DEFUN([LT_PROG_GCJ], | |
7310 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], | |
7311 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], | |
7312 [AC_CHECK_TOOL(GCJ, gcj,) | |
7313 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" | |
7314 AC_SUBST(GCJFLAGS)])])[]dnl | |
7315 ]) | |
7316 | |
7317 # Old name: | |
7318 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) | |
7319 dnl aclocal-1.4 backwards compatibility: | |
7320 dnl AC_DEFUN([LT_AC_PROG_GCJ], []) | |
7321 | |
7322 | |
7323 # LT_PROG_RC | |
7324 # ---------- | |
7325 AC_DEFUN([LT_PROG_RC], | |
7326 [AC_CHECK_TOOL(RC, windres,) | |
7327 ]) | |
7328 | |
7329 # Old name: | |
7330 AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) | |
7331 dnl aclocal-1.4 backwards compatibility: | |
7332 dnl AC_DEFUN([LT_AC_PROG_RC], []) | |
7333 | |
7334 | |
7335 # _LT_DECL_EGREP | |
7336 # -------------- | |
7337 # If we don't have a new enough Autoconf to choose the best grep | |
7338 # available, choose the one first in the user's PATH. | |
7339 m4_defun([_LT_DECL_EGREP], | |
7340 [AC_REQUIRE([AC_PROG_EGREP])dnl | |
7341 AC_REQUIRE([AC_PROG_FGREP])dnl | |
7342 test -z "$GREP" && GREP=grep | |
7343 _LT_DECL([], [GREP], [1], [A grep program that handles long lines]) | |
7344 _LT_DECL([], [EGREP], [1], [An ERE matcher]) | |
7345 _LT_DECL([], [FGREP], [1], [A literal string matcher]) | |
7346 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too | |
7347 AC_SUBST([GREP]) | |
7348 ]) | |
7349 | |
7350 | |
7351 # _LT_DECL_OBJDUMP | |
7352 # -------------- | |
7353 # If we don't have a new enough Autoconf to choose the best objdump | |
7354 # available, choose the one first in the user's PATH. | |
7355 m4_defun([_LT_DECL_OBJDUMP], | |
7356 [AC_CHECK_TOOL(OBJDUMP, objdump, false) | |
7357 test -z "$OBJDUMP" && OBJDUMP=objdump | |
7358 _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) | |
7359 AC_SUBST([OBJDUMP]) | |
7360 ]) | |
7361 | |
7362 | |
7363 # _LT_DECL_SED | |
7364 # ------------ | |
7365 # Check for a fully-functional sed program, that truncates | |
7366 # as few characters as possible. Prefer GNU sed if found. | |
7367 m4_defun([_LT_DECL_SED], | |
7368 [AC_PROG_SED | |
7369 test -z "$SED" && SED=sed | |
7370 Xsed="$SED -e 1s/^X//" | |
7371 _LT_DECL([], [SED], [1], [A sed program that does not truncate output]) | |
7372 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], | |
7373 [Sed that helps us avoid accidentally triggering echo(1) options like -n]) | |
7374 ])# _LT_DECL_SED | |
7375 | |
7376 m4_ifndef([AC_PROG_SED], [ | |
6678 ############################################################ | 7377 ############################################################ |
6679 # NOTE: This macro has been submitted for inclusion into # | 7378 # NOTE: This macro has been submitted for inclusion into # |
6680 # GNU Autoconf as AC_PROG_SED. When it is available in # | 7379 # GNU Autoconf as AC_PROG_SED. When it is available in # |
6681 # a released version of Autoconf we should remove this # | 7380 # a released version of Autoconf we should remove this # |
6682 # macro and use it instead. # | 7381 # macro and use it instead. # |
6683 ############################################################ | 7382 ############################################################ |
6684 # LT_AC_PROG_SED | 7383 |
6685 # -------------- | 7384 m4_defun([AC_PROG_SED], |
6686 # Check for a fully-functional sed program, that truncates | |
6687 # as few characters as possible. Prefer GNU sed if found. | |
6688 AC_DEFUN([LT_AC_PROG_SED], | |
6689 [AC_MSG_CHECKING([for a sed that does not truncate output]) | 7385 [AC_MSG_CHECKING([for a sed that does not truncate output]) |
6690 AC_CACHE_VAL(lt_cv_path_SED, | 7386 AC_CACHE_VAL(lt_cv_path_SED, |
6691 [# Loop through the user's path and test for sed and gsed. | 7387 [# Loop through the user's path and test for sed and gsed. |
6692 # Then use that list of sed's as ones to test for truncation. | 7388 # Then use that list of sed's as ones to test for truncation. |
6693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 7389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6701 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | 7397 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
6702 fi | 7398 fi |
6703 done | 7399 done |
6704 done | 7400 done |
6705 done | 7401 done |
7402 IFS=$as_save_IFS | |
6706 lt_ac_max=0 | 7403 lt_ac_max=0 |
6707 lt_ac_count=0 | 7404 lt_ac_count=0 |
6708 # Add /usr/xpg4/bin/sed as it is typically found on Solaris | 7405 # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
6709 # along with /bin/sed that truncates output. | 7406 # along with /bin/sed that truncates output. |
6710 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | 7407 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
6733 fi | 7430 fi |
6734 done | 7431 done |
6735 done | 7432 done |
6736 ]) | 7433 ]) |
6737 SED=$lt_cv_path_SED | 7434 SED=$lt_cv_path_SED |
7435 AC_SUBST([SED]) | |
6738 AC_MSG_RESULT([$SED]) | 7436 AC_MSG_RESULT([$SED]) |
7437 ])#AC_PROG_SED | |
7438 ])#m4_ifndef | |
7439 | |
7440 # Old name: | |
7441 AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) | |
7442 dnl aclocal-1.4 backwards compatibility: | |
7443 dnl AC_DEFUN([LT_AC_PROG_SED], []) | |
7444 | |
7445 | |
7446 # _LT_CHECK_SHELL_FEATURES | |
7447 # ------------------------ | |
7448 # Find out whether the shell is Bourne or XSI compatible, | |
7449 # or has some other useful features. | |
7450 m4_defun([_LT_CHECK_SHELL_FEATURES], | |
7451 [AC_MSG_CHECKING([whether the shell understands some XSI constructs]) | |
7452 # Try some XSI features | |
7453 xsi_shell=no | |
7454 ( _lt_dummy="a/b/c" | |
7455 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
7456 = c,a/b,, \ | |
7457 && eval 'test $(( 1 + 1 )) -eq 2 \ | |
7458 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
7459 && xsi_shell=yes | |
7460 AC_MSG_RESULT([$xsi_shell]) | |
7461 _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) | |
7462 | |
7463 AC_MSG_CHECKING([whether the shell understands "+="]) | |
7464 lt_shell_append=no | |
7465 ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ | |
7466 >/dev/null 2>&1 \ | |
7467 && lt_shell_append=yes | |
7468 AC_MSG_RESULT([$lt_shell_append]) | |
7469 _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) | |
7470 | |
7471 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
7472 lt_unset=unset | |
7473 else | |
7474 lt_unset=false | |
7475 fi | |
7476 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl | |
7477 | |
7478 # test EBCDIC or ASCII | |
7479 case `echo X|tr X '\101'` in | |
7480 A) # ASCII based system | |
7481 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
7482 lt_SP2NL='tr \040 \012' | |
7483 lt_NL2SP='tr \015\012 \040\040' | |
7484 ;; | |
7485 *) # EBCDIC based system | |
7486 lt_SP2NL='tr \100 \n' | |
7487 lt_NL2SP='tr \r\n \100\100' | |
7488 ;; | |
7489 esac | |
7490 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl | |
7491 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl | |
7492 ])# _LT_CHECK_SHELL_FEATURES | |
7493 | |
7494 | |
7495 # _LT_PROG_XSI_SHELLFNS | |
7496 # --------------------- | |
7497 # Bourne and XSI compatible variants of some useful shell functions. | |
7498 m4_defun([_LT_PROG_XSI_SHELLFNS], | |
7499 [case $xsi_shell in | |
7500 yes) | |
7501 cat << \_LT_EOF >> "$cfgfile" | |
7502 | |
7503 # func_dirname file append nondir_replacement | |
7504 # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
7505 # otherwise set result to NONDIR_REPLACEMENT. | |
7506 func_dirname () | |
7507 { | |
7508 case ${1} in | |
7509 */*) func_dirname_result="${1%/*}${2}" ;; | |
7510 * ) func_dirname_result="${3}" ;; | |
7511 esac | |
7512 } | |
7513 | |
7514 # func_basename file | |
7515 func_basename () | |
7516 { | |
7517 func_basename_result="${1##*/}" | |
7518 } | |
7519 | |
7520 # func_dirname_and_basename file append nondir_replacement | |
7521 # perform func_basename and func_dirname in a single function | |
7522 # call: | |
7523 # dirname: Compute the dirname of FILE. If nonempty, | |
7524 # add APPEND to the result, otherwise set result | |
7525 # to NONDIR_REPLACEMENT. | |
7526 # value returned in "$func_dirname_result" | |
7527 # basename: Compute filename of FILE. | |
7528 # value retuned in "$func_basename_result" | |
7529 # Implementation must be kept synchronized with func_dirname | |
7530 # and func_basename. For efficiency, we do not delegate to | |
7531 # those functions but instead duplicate the functionality here. | |
7532 func_dirname_and_basename () | |
7533 { | |
7534 case ${1} in | |
7535 */*) func_dirname_result="${1%/*}${2}" ;; | |
7536 * ) func_dirname_result="${3}" ;; | |
7537 esac | |
7538 func_basename_result="${1##*/}" | |
7539 } | |
7540 | |
7541 # func_stripname prefix suffix name | |
7542 # strip PREFIX and SUFFIX off of NAME. | |
7543 # PREFIX and SUFFIX must not contain globbing or regex special | |
7544 # characters, hashes, percent signs, but SUFFIX may contain a leading | |
7545 # dot (in which case that matches only a dot). | |
7546 func_stripname () | |
7547 { | |
7548 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
7549 # positional parameters, so assign one to ordinary parameter first. | |
7550 func_stripname_result=${3} | |
7551 func_stripname_result=${func_stripname_result#"${1}"} | |
7552 func_stripname_result=${func_stripname_result%"${2}"} | |
7553 } | |
7554 | |
7555 # func_opt_split | |
7556 func_opt_split () | |
7557 { | |
7558 func_opt_split_opt=${1%%=*} | |
7559 func_opt_split_arg=${1#*=} | |
7560 } | |
7561 | |
7562 # func_lo2o object | |
7563 func_lo2o () | |
7564 { | |
7565 case ${1} in | |
7566 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
7567 *) func_lo2o_result=${1} ;; | |
7568 esac | |
7569 } | |
7570 | |
7571 # func_xform libobj-or-source | |
7572 func_xform () | |
7573 { | |
7574 func_xform_result=${1%.*}.lo | |
7575 } | |
7576 | |
7577 # func_arith arithmetic-term... | |
7578 func_arith () | |
7579 { | |
7580 func_arith_result=$(( $[*] )) | |
7581 } | |
7582 | |
7583 # func_len string | |
7584 # STRING may not start with a hyphen. | |
7585 func_len () | |
7586 { | |
7587 func_len_result=${#1} | |
7588 } | |
7589 | |
7590 _LT_EOF | |
7591 ;; | |
7592 *) # Bourne compatible functions. | |
7593 cat << \_LT_EOF >> "$cfgfile" | |
7594 | |
7595 # func_dirname file append nondir_replacement | |
7596 # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
7597 # otherwise set result to NONDIR_REPLACEMENT. | |
7598 func_dirname () | |
7599 { | |
7600 # Extract subdirectory from the argument. | |
7601 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
7602 if test "X$func_dirname_result" = "X${1}"; then | |
7603 func_dirname_result="${3}" | |
7604 else | |
7605 func_dirname_result="$func_dirname_result${2}" | |
7606 fi | |
7607 } | |
7608 | |
7609 # func_basename file | |
7610 func_basename () | |
7611 { | |
7612 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | |
7613 } | |
7614 | |
7615 dnl func_dirname_and_basename | |
7616 dnl A portable version of this function is already defined in general.m4sh | |
7617 dnl so there is no need for it here. | |
7618 | |
7619 # func_stripname prefix suffix name | |
7620 # strip PREFIX and SUFFIX off of NAME. | |
7621 # PREFIX and SUFFIX must not contain globbing or regex special | |
7622 # characters, hashes, percent signs, but SUFFIX may contain a leading | |
7623 # dot (in which case that matches only a dot). | |
7624 # func_strip_suffix prefix name | |
7625 func_stripname () | |
7626 { | |
7627 case ${2} in | |
7628 .*) func_stripname_result=`$ECHO "X${3}" \ | |
7629 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
7630 *) func_stripname_result=`$ECHO "X${3}" \ | |
7631 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
7632 esac | |
7633 } | |
7634 | |
7635 # sed scripts: | |
7636 my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q' | |
7637 my_sed_long_arg='1s/^-[[^=]]*=//' | |
7638 | |
7639 # func_opt_split | |
7640 func_opt_split () | |
7641 { | |
7642 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | |
7643 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | |
7644 } | |
7645 | |
7646 # func_lo2o object | |
7647 func_lo2o () | |
7648 { | |
7649 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
7650 } | |
7651 | |
7652 # func_xform libobj-or-source | |
7653 func_xform () | |
7654 { | |
7655 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'` | |
7656 } | |
7657 | |
7658 # func_arith arithmetic-term... | |
7659 func_arith () | |
7660 { | |
7661 func_arith_result=`expr "$[@]"` | |
7662 } | |
7663 | |
7664 # func_len string | |
7665 # STRING may not start with a hyphen. | |
7666 func_len () | |
7667 { | |
7668 func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len` | |
7669 } | |
7670 | |
7671 _LT_EOF | |
7672 esac | |
7673 | |
7674 case $lt_shell_append in | |
7675 yes) | |
7676 cat << \_LT_EOF >> "$cfgfile" | |
7677 | |
7678 # func_append var value | |
7679 # Append VALUE to the end of shell variable VAR. | |
7680 func_append () | |
7681 { | |
7682 eval "$[1]+=\$[2]" | |
7683 } | |
7684 _LT_EOF | |
7685 ;; | |
7686 *) | |
7687 cat << \_LT_EOF >> "$cfgfile" | |
7688 | |
7689 # func_append var value | |
7690 # Append VALUE to the end of shell variable VAR. | |
7691 func_append () | |
7692 { | |
7693 eval "$[1]=\$$[1]\$[2]" | |
7694 } | |
7695 | |
7696 _LT_EOF | |
7697 ;; | |
7698 esac | |
6739 ]) | 7699 ]) |
7700 | |
7701 ############################################################################## | |
7702 # ltdl.m4 - Configure ltdl for the target system. -*-Autoconf-*- | |
7703 # | |
7704 # Copyright (C) 1999-2006, 2007, 2008 Free Software Foundation, Inc. | |
7705 # Written by Thomas Tanner, 1999 | |
7706 # | |
7707 # This file is free software; the Free Software Foundation gives | |
7708 # unlimited permission to copy and/or distribute it, with or without | |
7709 # modifications, as long as this notice is preserved. | |
7710 | |
7711 # serial 17 LTDL_INIT | |
7712 | |
7713 # LT_CONFIG_LTDL_DIR(DIRECTORY, [LTDL-MODE]) | |
7714 # ------------------------------------------ | |
7715 # DIRECTORY contains the libltdl sources. It is okay to call this | |
7716 # function multiple times, as long as the same DIRECTORY is always given. | |
7717 AC_DEFUN([LT_CONFIG_LTDL_DIR], | |
7718 [AC_BEFORE([$0], [LTDL_INIT]) | |
7719 _$0($*) | |
7720 ])# LT_CONFIG_LTDL_DIR | |
7721 | |
7722 # We break this out into a separate macro, so that we can call it safely | |
7723 # internally without being caught accidentally by the sed scan in libtoolize. | |
7724 m4_defun([_LT_CONFIG_LTDL_DIR], | |
7725 [dnl remove trailing slashes | |
7726 m4_pushdef([_ARG_DIR], m4_bpatsubst([$1], [/*$])) | |
7727 m4_case(_LTDL_DIR, | |
7728 [], [dnl only set lt_ltdl_dir if _ARG_DIR is not simply `.' | |
7729 m4_if(_ARG_DIR, [.], | |
7730 [], | |
7731 [m4_define([_LTDL_DIR], _ARG_DIR) | |
7732 _LT_SHELL_INIT([lt_ltdl_dir=']_ARG_DIR['])])], | |
7733 [m4_if(_ARG_DIR, _LTDL_DIR, | |
7734 [], | |
7735 [m4_fatal([multiple libltdl directories: `]_LTDL_DIR[', `]_ARG_DIR['])])]) | |
7736 m4_popdef([_ARG_DIR]) | |
7737 ])# _LT_CONFIG_LTDL_DIR | |
7738 | |
7739 # Initialise: | |
7740 m4_define([_LTDL_DIR], []) | |
7741 | |
7742 | |
7743 # _LT_BUILD_PREFIX | |
7744 # ---------------- | |
7745 # If Autoconf is new enough, expand to `${top_build_prefix}', otherwise | |
7746 # to `${top_builddir}/'. | |
7747 m4_define([_LT_BUILD_PREFIX], | |
7748 [m4_ifdef([AC_AUTOCONF_VERSION], | |
7749 [m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]), [2.62]), | |
7750 [-1], [m4_ifdef([_AC_HAVE_TOP_BUILD_PREFIX], | |
7751 [${top_build_prefix}], | |
7752 [${top_builddir}/])], | |
7753 [${top_build_prefix}])], | |
7754 [${top_builddir}/])[]dnl | |
7755 ]) | |
7756 | |
7757 | |
7758 # LTDL_CONVENIENCE | |
7759 # ---------------- | |
7760 # sets LIBLTDL to the link flags for the libltdl convenience library and | |
7761 # LTDLINCL to the include flags for the libltdl header and adds | |
7762 # --enable-ltdl-convenience to the configure arguments. Note that | |
7763 # AC_CONFIG_SUBDIRS is not called here. LIBLTDL will be prefixed with | |
7764 # '${top_build_prefix}' if available, otherwise with '${top_builddir}/', | |
7765 # and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single | |
7766 # quotes!). If your package is not flat and you're not using automake, | |
7767 # define top_build_prefix, top_builddir, and top_srcdir appropriately | |
7768 # in your Makefiles. | |
7769 AC_DEFUN([LTDL_CONVENIENCE], | |
7770 [AC_BEFORE([$0], [LTDL_INIT])dnl | |
7771 dnl Although the argument is deprecated and no longer documented, | |
7772 dnl LTDL_CONVENIENCE used to take a DIRECTORY orgument, if we have one | |
7773 dnl here make sure it is the same as any other declaration of libltdl's | |
7774 dnl location! This also ensures lt_ltdl_dir is set when configure.ac is | |
7775 dnl not yet using an explicit LT_CONFIG_LTDL_DIR. | |
7776 m4_ifval([$1], [_LT_CONFIG_LTDL_DIR([$1])])dnl | |
7777 _$0() | |
7778 ])# LTDL_CONVENIENCE | |
7779 | |
7780 # AC_LIBLTDL_CONVENIENCE accepted a directory argument in older libtools, | |
7781 # now we have LT_CONFIG_LTDL_DIR: | |
7782 AU_DEFUN([AC_LIBLTDL_CONVENIENCE], | |
7783 [_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])]) | |
7784 _LTDL_CONVENIENCE]) | |
7785 | |
7786 dnl aclocal-1.4 backwards compatibility: | |
7787 dnl AC_DEFUN([AC_LIBLTDL_CONVENIENCE], []) | |
7788 | |
7789 | |
7790 # _LTDL_CONVENIENCE | |
7791 # ----------------- | |
7792 # Code shared by LTDL_CONVENIENCE and LTDL_INIT([convenience]). | |
7793 m4_defun([_LTDL_CONVENIENCE], | |
7794 [case $enable_ltdl_convenience in | |
7795 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; | |
7796 "") enable_ltdl_convenience=yes | |
7797 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; | |
7798 esac | |
7799 LIBLTDL='_LT_BUILD_PREFIX'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la" | |
7800 LTDLDEPS=$LIBLTDL | |
7801 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}" | |
7802 | |
7803 AC_SUBST([LIBLTDL]) | |
7804 AC_SUBST([LTDLDEPS]) | |
7805 AC_SUBST([LTDLINCL]) | |
7806 | |
7807 # For backwards non-gettext consistent compatibility... | |
7808 INCLTDL="$LTDLINCL" | |
7809 AC_SUBST([INCLTDL]) | |
7810 ])# _LTDL_CONVENIENCE | |
7811 | |
7812 | |
7813 # LTDL_INSTALLABLE | |
7814 # ---------------- | |
7815 # sets LIBLTDL to the link flags for the libltdl installable library | |
7816 # and LTDLINCL to the include flags for the libltdl header and adds | |
7817 # --enable-ltdl-install to the configure arguments. Note that | |
7818 # AC_CONFIG_SUBDIRS is not called from here. If an installed libltdl | |
7819 # is not found, LIBLTDL will be prefixed with '${top_build_prefix}' if | |
7820 # available, otherwise with '${top_builddir}/', and LTDLINCL will be | |
7821 # prefixed with '${top_srcdir}/' (note the single quotes!). If your | |
7822 # package is not flat and you're not using automake, define top_build_prefix, | |
7823 # top_builddir, and top_srcdir appropriately in your Makefiles. | |
7824 # In the future, this macro may have to be called after LT_INIT. | |
7825 AC_DEFUN([LTDL_INSTALLABLE], | |
7826 [AC_BEFORE([$0], [LTDL_INIT])dnl | |
7827 dnl Although the argument is deprecated and no longer documented, | |
7828 dnl LTDL_INSTALLABLE used to take a DIRECTORY orgument, if we have one | |
7829 dnl here make sure it is the same as any other declaration of libltdl's | |
7830 dnl location! This also ensures lt_ltdl_dir is set when configure.ac is | |
7831 dnl not yet using an explicit LT_CONFIG_LTDL_DIR. | |
7832 m4_ifval([$1], [_LT_CONFIG_LTDL_DIR([$1])])dnl | |
7833 _$0() | |
7834 ])# LTDL_INSTALLABLE | |
7835 | |
7836 # AC_LIBLTDL_INSTALLABLE accepted a directory argument in older libtools, | |
7837 # now we have LT_CONFIG_LTDL_DIR: | |
7838 AU_DEFUN([AC_LIBLTDL_INSTALLABLE], | |
7839 [_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])]) | |
7840 _LTDL_INSTALLABLE]) | |
7841 | |
7842 dnl aclocal-1.4 backwards compatibility: | |
7843 dnl AC_DEFUN([AC_LIBLTDL_INSTALLABLE], []) | |
7844 | |
7845 | |
7846 # _LTDL_INSTALLABLE | |
7847 # ----------------- | |
7848 # Code shared by LTDL_INSTALLABLE and LTDL_INIT([installable]). | |
7849 m4_defun([_LTDL_INSTALLABLE], | |
7850 [if test -f $prefix/lib/libltdl.la; then | |
7851 lt_save_LDFLAGS="$LDFLAGS" | |
7852 LDFLAGS="-L$prefix/lib $LDFLAGS" | |
7853 AC_CHECK_LIB([ltdl], [lt_dlinit], [lt_lib_ltdl=yes]) | |
7854 LDFLAGS="$lt_save_LDFLAGS" | |
7855 if test x"${lt_lib_ltdl-no}" = xyes; then | |
7856 if test x"$enable_ltdl_install" != xyes; then | |
7857 # Don't overwrite $prefix/lib/libltdl.la without --enable-ltdl-install | |
7858 AC_MSG_WARN([not overwriting libltdl at $prefix, force with `--enable-ltdl-install']) | |
7859 enable_ltdl_install=no | |
7860 fi | |
7861 elif test x"$enable_ltdl_install" = xno; then | |
7862 AC_MSG_WARN([libltdl not installed, but installation disabled]) | |
7863 fi | |
7864 fi | |
7865 | |
7866 # If configure.ac declared an installable ltdl, and the user didn't override | |
7867 # with --disable-ltdl-install, we will install the shipped libltdl. | |
7868 case $enable_ltdl_install in | |
7869 no) ac_configure_args="$ac_configure_args --enable-ltdl-install=no" | |
7870 LIBLTDL="-lltdl" | |
7871 LTDLDEPS= | |
7872 LTDLINCL= | |
7873 ;; | |
7874 *) enable_ltdl_install=yes | |
7875 ac_configure_args="$ac_configure_args --enable-ltdl-install" | |
7876 LIBLTDL='_LT_BUILD_PREFIX'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdl.la" | |
7877 LTDLDEPS=$LIBLTDL | |
7878 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}" | |
7879 ;; | |
7880 esac | |
7881 | |
7882 AC_SUBST([LIBLTDL]) | |
7883 AC_SUBST([LTDLDEPS]) | |
7884 AC_SUBST([LTDLINCL]) | |
7885 | |
7886 # For backwards non-gettext consistent compatibility... | |
7887 INCLTDL="$LTDLINCL" | |
7888 AC_SUBST([INCLTDL]) | |
7889 ])# LTDL_INSTALLABLE | |
7890 | |
7891 | |
7892 # _LTDL_MODE_DISPATCH | |
7893 # ------------------- | |
7894 m4_define([_LTDL_MODE_DISPATCH], | |
7895 [dnl If _LTDL_DIR is `.', then we are configuring libltdl itself: | |
7896 m4_if(_LTDL_DIR, [], | |
7897 [], | |
7898 dnl if _LTDL_MODE was not set already, the default value is `subproject': | |
7899 [m4_case(m4_default(_LTDL_MODE, [subproject]), | |
7900 [subproject], [AC_CONFIG_SUBDIRS(_LTDL_DIR) | |
7901 _LT_SHELL_INIT([lt_dlopen_dir="$lt_ltdl_dir"])], | |
7902 [nonrecursive], [_LT_SHELL_INIT([lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"])], | |
7903 [recursive], [], | |
7904 [m4_fatal([unknown libltdl mode: ]_LTDL_MODE)])])dnl | |
7905 dnl Be careful not to expand twice: | |
7906 m4_define([$0], []) | |
7907 ])# _LTDL_MODE_DISPATCH | |
7908 | |
7909 | |
7910 # _LT_LIBOBJ(MODULE_NAME) | |
7911 # ----------------------- | |
7912 # Like AC_LIBOBJ, except that MODULE_NAME goes into _LT_LIBOBJS instead | |
7913 # of into LIBOBJS. | |
7914 AC_DEFUN([_LT_LIBOBJ], [ | |
7915 m4_pattern_allow([^_LT_LIBOBJS$]) | |
7916 _LT_LIBOBJS="$_LT_LIBOBJS $1.$ac_objext" | |
7917 ])# _LT_LIBOBJS | |
7918 | |
7919 | |
7920 # LTDL_INIT([OPTIONS]) | |
7921 # -------------------- | |
7922 # Clients of libltdl can use this macro to allow the installer to | |
7923 # choose between a shipped copy of the ltdl sources or a preinstalled | |
7924 # version of the library. If the shipped ltdl sources are not in a | |
7925 # subdirectory named libltdl, the directory name must be given by | |
7926 # LT_CONFIG_LTDL_DIR. | |
7927 AC_DEFUN([LTDL_INIT], | |
7928 [dnl Parse OPTIONS | |
7929 _LT_SET_OPTIONS([$0], [$1]) | |
7930 | |
7931 dnl We need to keep our own list of libobjs separate from our parent project, | |
7932 dnl and the easiest way to do that is redefine the AC_LIBOBJs macro while | |
7933 dnl we look for our own LIBOBJs. | |
7934 m4_pushdef([AC_LIBOBJ], m4_defn([_LT_LIBOBJ])) | |
7935 m4_pushdef([AC_LIBSOURCES]) | |
7936 | |
7937 dnl If not otherwise defined, default to the 1.5.x compatible subproject mode: | |
7938 m4_if(_LTDL_MODE, [], | |
7939 [m4_define([_LTDL_MODE], m4_default([$2], [subproject])) | |
7940 m4_if([-1], [m4_bregexp(_LTDL_MODE, [\(subproject\|\(non\)?recursive\)])], | |
7941 [m4_fatal([unknown libltdl mode: ]_LTDL_MODE)])]) | |
7942 | |
7943 AC_ARG_WITH([included_ltdl], | |
7944 [AS_HELP_STRING([--with-included-ltdl], | |
7945 [use the GNU ltdl sources included here])]) | |
7946 | |
7947 if test "x$with_included_ltdl" != xyes; then | |
7948 # We are not being forced to use the included libltdl sources, so | |
7949 # decide whether there is a useful installed version we can use. | |
7950 AC_CHECK_HEADER([ltdl.h], | |
7951 [AC_CHECK_DECL([lt_dlinterface_register], | |
7952 [AC_CHECK_LIB([ltdl], [lt_dladvise_preload], | |
7953 [with_included_ltdl=no], | |
7954 [with_included_ltdl=yes])], | |
7955 [with_included_ltdl=yes], | |
7956 [AC_INCLUDES_DEFAULT | |
7957 #include <ltdl.h>])], | |
7958 [with_included_ltdl=yes], | |
7959 [AC_INCLUDES_DEFAULT] | |
7960 ) | |
7961 fi | |
7962 | |
7963 dnl If neither LT_CONFIG_LTDL_DIR, LTDL_CONVENIENCE nor LTDL_INSTALLABLE | |
7964 dnl was called yet, then for old times' sake, we assume libltdl is in an | |
7965 dnl eponymous directory: | |
7966 AC_PROVIDE_IFELSE([LT_CONFIG_LTDL_DIR], [], [_LT_CONFIG_LTDL_DIR([libltdl])]) | |
7967 | |
7968 AC_ARG_WITH([ltdl_include], | |
7969 [AS_HELP_STRING([--with-ltdl-include=DIR], | |
7970 [use the ltdl headers installed in DIR])]) | |
7971 | |
7972 if test -n "$with_ltdl_include"; then | |
7973 if test -f "$with_ltdl_include/ltdl.h"; then : | |
7974 else | |
7975 AC_MSG_ERROR([invalid ltdl include directory: `$with_ltdl_include']) | |
7976 fi | |
7977 else | |
7978 with_ltdl_include=no | |
7979 fi | |
7980 | |
7981 AC_ARG_WITH([ltdl_lib], | |
7982 [AS_HELP_STRING([--with-ltdl-lib=DIR], | |
7983 [use the libltdl.la installed in DIR])]) | |
7984 | |
7985 if test -n "$with_ltdl_lib"; then | |
7986 if test -f "$with_ltdl_lib/libltdl.la"; then : | |
7987 else | |
7988 AC_MSG_ERROR([invalid ltdl library directory: `$with_ltdl_lib']) | |
7989 fi | |
7990 else | |
7991 with_ltdl_lib=no | |
7992 fi | |
7993 | |
7994 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in | |
7995 ,yes,no,no,) | |
7996 m4_case(m4_default(_LTDL_TYPE, [convenience]), | |
7997 [convenience], [_LTDL_CONVENIENCE], | |
7998 [installable], [_LTDL_INSTALLABLE], | |
7999 [m4_fatal([unknown libltdl build type: ]_LTDL_TYPE)]) | |
8000 ;; | |
8001 ,no,no,no,) | |
8002 # If the included ltdl is not to be used, then use the | |
8003 # preinstalled libltdl we found. | |
8004 AC_DEFINE([HAVE_LTDL], [1], | |
8005 [Define this if a modern libltdl is already installed]) | |
8006 LIBLTDL=-lltdl | |
8007 LTDLDEPS= | |
8008 LTDLINCL= | |
8009 ;; | |
8010 ,no*,no,*) | |
8011 AC_MSG_ERROR([`--with-ltdl-include' and `--with-ltdl-lib' options must be used together]) | |
8012 ;; | |
8013 *) with_included_ltdl=no | |
8014 LIBLTDL="-L$with_ltdl_lib -lltdl" | |
8015 LTDLDEPS= | |
8016 LTDLINCL="-I$with_ltdl_include" | |
8017 ;; | |
8018 esac | |
8019 INCLTDL="$LTDLINCL" | |
8020 | |
8021 # Report our decision... | |
8022 AC_MSG_CHECKING([where to find libltdl headers]) | |
8023 AC_MSG_RESULT([$LTDLINCL]) | |
8024 AC_MSG_CHECKING([where to find libltdl library]) | |
8025 AC_MSG_RESULT([$LIBLTDL]) | |
8026 | |
8027 _LTDL_SETUP | |
8028 | |
8029 dnl restore autoconf definition. | |
8030 m4_popdef([AC_LIBOBJ]) | |
8031 m4_popdef([AC_LIBSOURCES]) | |
8032 | |
8033 AC_CONFIG_COMMANDS_PRE([ | |
8034 _ltdl_libobjs= | |
8035 _ltdl_ltlibobjs= | |
8036 if test -n "$_LT_LIBOBJS"; then | |
8037 # Remove the extension. | |
8038 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//' | |
8039 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do | |
8040 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext" | |
8041 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo" | |
8042 done | |
8043 fi | |
8044 AC_SUBST([ltdl_LIBOBJS], [$_ltdl_libobjs]) | |
8045 AC_SUBST([ltdl_LTLIBOBJS], [$_ltdl_ltlibobjs]) | |
8046 ]) | |
8047 | |
8048 # Only expand once: | |
8049 m4_define([LTDL_INIT]) | |
8050 ])# LTDL_INIT | |
8051 | |
8052 # Old names: | |
8053 AU_DEFUN([AC_LIB_LTDL], [LTDL_INIT($@)]) | |
8054 AU_DEFUN([AC_WITH_LTDL], [LTDL_INIT($@)]) | |
8055 AU_DEFUN([LT_WITH_LTDL], [LTDL_INIT($@)]) | |
8056 dnl aclocal-1.4 backwards compatibility: | |
8057 dnl AC_DEFUN([AC_LIB_LTDL], []) | |
8058 dnl AC_DEFUN([AC_WITH_LTDL], []) | |
8059 dnl AC_DEFUN([LT_WITH_LTDL], []) | |
8060 | |
8061 | |
8062 # _LTDL_SETUP | |
8063 # ----------- | |
8064 # Perform all the checks necessary for compilation of the ltdl objects | |
8065 # -- including compiler checks and header checks. This is a public | |
8066 # interface mainly for the benefit of libltdl's own configure.ac, most | |
8067 # other users should call LTDL_INIT instead. | |
8068 AC_DEFUN([_LTDL_SETUP], | |
8069 [AC_REQUIRE([AC_PROG_CC])dnl | |
8070 AC_REQUIRE([LT_SYS_MODULE_EXT])dnl | |
8071 AC_REQUIRE([LT_SYS_MODULE_PATH])dnl | |
8072 AC_REQUIRE([LT_SYS_DLSEARCH_PATH])dnl | |
8073 AC_REQUIRE([LT_LIB_DLLOAD])dnl | |
8074 AC_REQUIRE([LT_SYS_SYMBOL_USCORE])dnl | |
8075 AC_REQUIRE([LT_FUNC_DLSYM_USCORE])dnl | |
8076 AC_REQUIRE([LT_SYS_DLOPEN_DEPLIBS])dnl | |
8077 AC_REQUIRE([gl_FUNC_ARGZ])dnl | |
8078 | |
8079 m4_require([_LT_CHECK_OBJDIR])dnl | |
8080 m4_require([_LT_HEADER_DLFCN])dnl | |
8081 m4_require([_LT_CHECK_DLPREOPEN])dnl | |
8082 m4_require([_LT_DECL_SED])dnl | |
8083 | |
8084 dnl Don't require this, or it will be expanded earlier than the code | |
8085 dnl that sets the variables it relies on: | |
8086 _LT_ENABLE_INSTALL | |
8087 | |
8088 dnl _LTDL_MODE specific code must be called at least once: | |
8089 _LTDL_MODE_DISPATCH | |
8090 | |
8091 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS | |
8092 # the user used. This is so that ltdl.h can pick up the parent projects | |
8093 # config.h file, The first file in AC_CONFIG_HEADERS must contain the | |
8094 # definitions required by ltdl.c. | |
8095 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility). | |
8096 AC_CONFIG_COMMANDS_PRE([dnl | |
8097 m4_pattern_allow([^LT_CONFIG_H$])dnl | |
8098 m4_ifset([AH_HEADER], | |
8099 [LT_CONFIG_H=AH_HEADER], | |
8100 [m4_ifset([AC_LIST_HEADERS], | |
8101 [LT_CONFIG_H=`echo "AC_LIST_HEADERS" | $SED 's,^[[ ]]*,,;s,[[ :]].*$,,'`], | |
8102 [])])]) | |
8103 AC_SUBST([LT_CONFIG_H]) | |
8104 | |
8105 AC_CHECK_HEADERS([unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h], | |
8106 [], [], [AC_INCLUDES_DEFAULT]) | |
8107 | |
8108 AC_CHECK_FUNCS([closedir opendir readdir], [], [AC_LIBOBJ([lt__dirent])]) | |
8109 AC_CHECK_FUNCS([strlcat strlcpy], [], [AC_LIBOBJ([lt__strl])]) | |
8110 | |
8111 AC_DEFINE_UNQUOTED([LT_LIBEXT],["$libext"],[The archive extension]) | |
8112 | |
8113 name=ltdl | |
8114 LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""` | |
8115 AC_SUBST([LTDLOPEN]) | |
8116 ])# _LTDL_SETUP | |
8117 | |
8118 | |
8119 # _LT_ENABLE_INSTALL | |
8120 # ------------------ | |
8121 m4_define([_LT_ENABLE_INSTALL], | |
8122 [AC_ARG_ENABLE([ltdl-install], | |
8123 [AS_HELP_STRING([--enable-ltdl-install], [install libltdl])]) | |
8124 | |
8125 case ,${enable_ltdl_install},${enable_ltdl_convenience} in | |
8126 *yes*) ;; | |
8127 *) enable_ltdl_convenience=yes ;; | |
8128 esac | |
8129 | |
8130 m4_ifdef([AM_CONDITIONAL], | |
8131 [AM_CONDITIONAL(INSTALL_LTDL, test x"${enable_ltdl_install-no}" != xno) | |
8132 AM_CONDITIONAL(CONVENIENCE_LTDL, test x"${enable_ltdl_convenience-no}" != xno)]) | |
8133 ])# _LT_ENABLE_INSTALL | |
8134 | |
8135 | |
8136 # LT_SYS_DLOPEN_DEPLIBS | |
8137 # --------------------- | |
8138 AC_DEFUN([LT_SYS_DLOPEN_DEPLIBS], | |
8139 [AC_REQUIRE([AC_CANONICAL_HOST])dnl | |
8140 AC_CACHE_CHECK([whether deplibs are loaded by dlopen], | |
8141 [lt_cv_sys_dlopen_deplibs], | |
8142 [# PORTME does your system automatically load deplibs for dlopen? | |
8143 # or its logical equivalent (e.g. shl_load for HP-UX < 11) | |
8144 # For now, we just catch OSes we know something about -- in the | |
8145 # future, we'll try test this programmatically. | |
8146 lt_cv_sys_dlopen_deplibs=unknown | |
8147 case $host_os in | |
8148 aix3*|aix4.1.*|aix4.2.*) | |
8149 # Unknown whether this is true for these versions of AIX, but | |
8150 # we want this `case' here to explicitly catch those versions. | |
8151 lt_cv_sys_dlopen_deplibs=unknown | |
8152 ;; | |
8153 aix[[4-9]]*) | |
8154 lt_cv_sys_dlopen_deplibs=yes | |
8155 ;; | |
8156 amigaos*) | |
8157 case $host_cpu in | |
8158 powerpc) | |
8159 lt_cv_sys_dlopen_deplibs=no | |
8160 ;; | |
8161 esac | |
8162 ;; | |
8163 darwin*) | |
8164 # Assuming the user has installed a libdl from somewhere, this is true | |
8165 # If you are looking for one http://www.opendarwin.org/projects/dlcompat | |
8166 lt_cv_sys_dlopen_deplibs=yes | |
8167 ;; | |
8168 freebsd* | dragonfly*) | |
8169 lt_cv_sys_dlopen_deplibs=yes | |
8170 ;; | |
8171 gnu* | linux* | k*bsd*-gnu) | |
8172 # GNU and its variants, using gnu ld.so (Glibc) | |
8173 lt_cv_sys_dlopen_deplibs=yes | |
8174 ;; | |
8175 hpux10*|hpux11*) | |
8176 lt_cv_sys_dlopen_deplibs=yes | |
8177 ;; | |
8178 interix*) | |
8179 lt_cv_sys_dlopen_deplibs=yes | |
8180 ;; | |
8181 irix[[12345]]*|irix6.[[01]]*) | |
8182 # Catch all versions of IRIX before 6.2, and indicate that we don't | |
8183 # know how it worked for any of those versions. | |
8184 lt_cv_sys_dlopen_deplibs=unknown | |
8185 ;; | |
8186 irix*) | |
8187 # The case above catches anything before 6.2, and it's known that | |
8188 # at 6.2 and later dlopen does load deplibs. | |
8189 lt_cv_sys_dlopen_deplibs=yes | |
8190 ;; | |
8191 netbsd*) | |
8192 lt_cv_sys_dlopen_deplibs=yes | |
8193 ;; | |
8194 openbsd*) | |
8195 lt_cv_sys_dlopen_deplibs=yes | |
8196 ;; | |
8197 osf[[1234]]*) | |
8198 # dlopen did load deplibs (at least at 4.x), but until the 5.x series, | |
8199 # it did *not* use an RPATH in a shared library to find objects the | |
8200 # library depends on, so we explicitly say `no'. | |
8201 lt_cv_sys_dlopen_deplibs=no | |
8202 ;; | |
8203 osf5.0|osf5.0a|osf5.1) | |
8204 # dlopen *does* load deplibs and with the right loader patch applied | |
8205 # it even uses RPATH in a shared library to search for shared objects | |
8206 # that the library depends on, but there's no easy way to know if that | |
8207 # patch is installed. Since this is the case, all we can really | |
8208 # say is unknown -- it depends on the patch being installed. If | |
8209 # it is, this changes to `yes'. Without it, it would be `no'. | |
8210 lt_cv_sys_dlopen_deplibs=unknown | |
8211 ;; | |
8212 osf*) | |
8213 # the two cases above should catch all versions of osf <= 5.1. Read | |
8214 # the comments above for what we know about them. | |
8215 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library | |
8216 # is used to find them so we can finally say `yes'. | |
8217 lt_cv_sys_dlopen_deplibs=yes | |
8218 ;; | |
8219 qnx*) | |
8220 lt_cv_sys_dlopen_deplibs=yes | |
8221 ;; | |
8222 solaris*) | |
8223 lt_cv_sys_dlopen_deplibs=yes | |
8224 ;; | |
8225 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
8226 libltdl_cv_sys_dlopen_deplibs=yes | |
8227 ;; | |
8228 esac | |
8229 ]) | |
8230 if test "$lt_cv_sys_dlopen_deplibs" != yes; then | |
8231 AC_DEFINE([LTDL_DLOPEN_DEPLIBS], [1], | |
8232 [Define if the OS needs help to load dependent libraries for dlopen().]) | |
8233 fi | |
8234 ])# LT_SYS_DLOPEN_DEPLIBS | |
8235 | |
8236 # Old name: | |
8237 AU_ALIAS([AC_LTDL_SYS_DLOPEN_DEPLIBS], [LT_SYS_DLOPEN_DEPLIBS]) | |
8238 dnl aclocal-1.4 backwards compatibility: | |
8239 dnl AC_DEFUN([AC_LTDL_SYS_DLOPEN_DEPLIBS], []) | |
8240 | |
8241 | |
8242 # LT_SYS_MODULE_EXT | |
8243 # ----------------- | |
8244 AC_DEFUN([LT_SYS_MODULE_EXT], | |
8245 [m4_require([_LT_SYS_DYNAMIC_LINKER])dnl | |
8246 AC_CACHE_CHECK([which extension is used for runtime loadable modules], | |
8247 [libltdl_cv_shlibext], | |
8248 [ | |
8249 module=yes | |
8250 eval libltdl_cv_shlibext=$shrext_cmds | |
8251 ]) | |
8252 if test -n "$libltdl_cv_shlibext"; then | |
8253 m4_pattern_allow([LT_MODULE_EXT])dnl | |
8254 AC_DEFINE_UNQUOTED([LT_MODULE_EXT], ["$libltdl_cv_shlibext"], | |
8255 [Define to the extension used for runtime loadable modules, say, ".so".]) | |
8256 fi | |
8257 ])# LT_SYS_MODULE_EXT | |
8258 | |
8259 # Old name: | |
8260 AU_ALIAS([AC_LTDL_SHLIBEXT], [LT_SYS_MODULE_EXT]) | |
8261 dnl aclocal-1.4 backwards compatibility: | |
8262 dnl AC_DEFUN([AC_LTDL_SHLIBEXT], []) | |
8263 | |
8264 | |
8265 # LT_SYS_MODULE_PATH | |
8266 # ------------------ | |
8267 AC_DEFUN([LT_SYS_MODULE_PATH], | |
8268 [m4_require([_LT_SYS_DYNAMIC_LINKER])dnl | |
8269 AC_CACHE_CHECK([which variable specifies run-time module search path], | |
8270 [lt_cv_module_path_var], [lt_cv_module_path_var="$shlibpath_var"]) | |
8271 if test -n "$lt_cv_module_path_var"; then | |
8272 m4_pattern_allow([LT_MODULE_PATH_VAR])dnl | |
8273 AC_DEFINE_UNQUOTED([LT_MODULE_PATH_VAR], ["$lt_cv_module_path_var"], | |
8274 [Define to the name of the environment variable that determines the run-time module search path.]) | |
8275 fi | |
8276 ])# LT_SYS_MODULE_PATH | |
8277 | |
8278 # Old name: | |
8279 AU_ALIAS([AC_LTDL_SHLIBPATH], [LT_SYS_MODULE_PATH]) | |
8280 dnl aclocal-1.4 backwards compatibility: | |
8281 dnl AC_DEFUN([AC_LTDL_SHLIBPATH], []) | |
8282 | |
8283 | |
8284 # LT_SYS_DLSEARCH_PATH | |
8285 # -------------------- | |
8286 AC_DEFUN([LT_SYS_DLSEARCH_PATH], | |
8287 [m4_require([_LT_SYS_DYNAMIC_LINKER])dnl | |
8288 AC_CACHE_CHECK([for the default library search path], | |
8289 [lt_cv_sys_dlsearch_path], | |
8290 [lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"]) | |
8291 if test -n "$lt_cv_sys_dlsearch_path"; then | |
8292 sys_dlsearch_path= | |
8293 for dir in $lt_cv_sys_dlsearch_path; do | |
8294 if test -z "$sys_dlsearch_path"; then | |
8295 sys_dlsearch_path="$dir" | |
8296 else | |
8297 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir" | |
8298 fi | |
8299 done | |
8300 m4_pattern_allow([LT_DLSEARCH_PATH])dnl | |
8301 AC_DEFINE_UNQUOTED([LT_DLSEARCH_PATH], ["$sys_dlsearch_path"], | |
8302 [Define to the system default library search path.]) | |
8303 fi | |
8304 ])# LT_SYS_DLSEARCH_PATH | |
8305 | |
8306 # Old name: | |
8307 AU_ALIAS([AC_LTDL_SYSSEARCHPATH], [LT_SYS_DLSEARCH_PATH]) | |
8308 dnl aclocal-1.4 backwards compatibility: | |
8309 dnl AC_DEFUN([AC_LTDL_SYSSEARCHPATH], []) | |
8310 | |
8311 | |
8312 # _LT_CHECK_DLPREOPEN | |
8313 # ------------------- | |
8314 m4_defun([_LT_CHECK_DLPREOPEN], | |
8315 [m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl | |
8316 AC_CACHE_CHECK([whether libtool supports -dlopen/-dlpreopen], | |
8317 [libltdl_cv_preloaded_symbols], | |
8318 [if test -n "$lt_cv_sys_global_symbol_pipe"; then | |
8319 libltdl_cv_preloaded_symbols=yes | |
8320 else | |
8321 libltdl_cv_preloaded_symbols=no | |
8322 fi | |
8323 ]) | |
8324 if test x"$libltdl_cv_preloaded_symbols" = xyes; then | |
8325 AC_DEFINE([HAVE_PRELOADED_SYMBOLS], [1], | |
8326 [Define if libtool can extract symbol lists from object files.]) | |
8327 fi | |
8328 ])# _LT_CHECK_DLPREOPEN | |
8329 | |
8330 | |
8331 # LT_LIB_DLLOAD | |
8332 # ------------- | |
8333 AC_DEFUN([LT_LIB_DLLOAD], | |
8334 [m4_pattern_allow([^LT_DLLOADERS$]) | |
8335 LT_DLLOADERS= | |
8336 AC_SUBST([LT_DLLOADERS]) | |
8337 | |
8338 AC_LANG_PUSH([C]) | |
8339 | |
8340 LIBADD_DLOPEN= | |
8341 AC_SEARCH_LIBS([dlopen], [dl], | |
8342 [AC_DEFINE([HAVE_LIBDL], [1], | |
8343 [Define if you have the libdl library or equivalent.]) | |
8344 if test "$ac_cv_search_dlopen" != "none required" ; then | |
8345 LIBADD_DLOPEN="-ldl" | |
8346 fi | |
8347 libltdl_cv_lib_dl_dlopen="yes" | |
8348 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"], | |
8349 [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#if HAVE_DLFCN_H | |
8350 # include <dlfcn.h> | |
8351 #endif | |
8352 ]], [[dlopen(0, 0);]])], | |
8353 [AC_DEFINE([HAVE_LIBDL], [1], | |
8354 [Define if you have the libdl library or equivalent.]) | |
8355 libltdl_cv_func_dlopen="yes" | |
8356 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"], | |
8357 [AC_CHECK_LIB([svld], [dlopen], | |
8358 [AC_DEFINE([HAVE_LIBDL], [1], | |
8359 [Define if you have the libdl library or equivalent.]) | |
8360 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes" | |
8361 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"])])]) | |
8362 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes | |
8363 then | |
8364 lt_save_LIBS="$LIBS" | |
8365 LIBS="$LIBS $LIBADD_DLOPEN" | |
8366 AC_CHECK_FUNCS([dlerror]) | |
8367 LIBS="$lt_save_LIBS" | |
8368 fi | |
8369 AC_SUBST([LIBADD_DLOPEN]) | |
8370 | |
8371 LIBADD_SHL_LOAD= | |
8372 AC_CHECK_FUNC([shl_load], | |
8373 [AC_DEFINE([HAVE_SHL_LOAD], [1], | |
8374 [Define if you have the shl_load function.]) | |
8375 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"], | |
8376 [AC_CHECK_LIB([dld], [shl_load], | |
8377 [AC_DEFINE([HAVE_SHL_LOAD], [1], | |
8378 [Define if you have the shl_load function.]) | |
8379 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" | |
8380 LIBADD_SHL_LOAD="-ldld"])]) | |
8381 AC_SUBST([LIBADD_SHL_LOAD]) | |
8382 | |
8383 case $host_os in | |
8384 darwin[[1567]].*) | |
8385 # We only want this for pre-Mac OS X 10.4. | |
8386 AC_CHECK_FUNC([_dyld_func_lookup], | |
8387 [AC_DEFINE([HAVE_DYLD], [1], | |
8388 [Define if you have the _dyld_func_lookup function.]) | |
8389 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"]) | |
8390 ;; | |
8391 beos*) | |
8392 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la" | |
8393 ;; | |
8394 cygwin* | mingw* | os2* | pw32*) | |
8395 AC_CHECK_DECLS([cygwin_conv_path], [], [], [[#include <sys/cygwin.h>]]) | |
8396 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la" | |
8397 ;; | |
8398 esac | |
8399 | |
8400 AC_CHECK_LIB([dld], [dld_link], | |
8401 [AC_DEFINE([HAVE_DLD], [1], | |
8402 [Define if you have the GNU dld library.]) | |
8403 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"]) | |
8404 AC_SUBST([LIBADD_DLD_LINK]) | |
8405 | |
8406 m4_pattern_allow([^LT_DLPREOPEN$]) | |
8407 LT_DLPREOPEN= | |
8408 if test -n "$LT_DLLOADERS" | |
8409 then | |
8410 for lt_loader in $LT_DLLOADERS; do | |
8411 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader " | |
8412 done | |
8413 AC_DEFINE([HAVE_LIBDLLOADER], [1], | |
8414 [Define if libdlloader will be built on this platform]) | |
8415 fi | |
8416 AC_SUBST([LT_DLPREOPEN]) | |
8417 | |
8418 dnl This isn't used anymore, but set it for backwards compatibility | |
8419 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD" | |
8420 AC_SUBST([LIBADD_DL]) | |
8421 | |
8422 AC_LANG_POP | |
8423 ])# LT_LIB_DLLOAD | |
8424 | |
8425 # Old name: | |
8426 AU_ALIAS([AC_LTDL_DLLIB], [LT_LIB_DLLOAD]) | |
8427 dnl aclocal-1.4 backwards compatibility: | |
8428 dnl AC_DEFUN([AC_LTDL_DLLIB], []) | |
8429 | |
8430 | |
8431 # LT_SYS_SYMBOL_USCORE | |
8432 # -------------------- | |
8433 # does the compiler prefix global symbols with an underscore? | |
8434 AC_DEFUN([LT_SYS_SYMBOL_USCORE], | |
8435 [m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl | |
8436 AC_CACHE_CHECK([for _ prefix in compiled symbols], | |
8437 [lt_cv_sys_symbol_underscore], | |
8438 [lt_cv_sys_symbol_underscore=no | |
8439 cat > conftest.$ac_ext <<_LT_EOF | |
8440 void nm_test_func(){} | |
8441 int main(){nm_test_func;return 0;} | |
8442 _LT_EOF | |
8443 if AC_TRY_EVAL(ac_compile); then | |
8444 # Now try to grab the symbols. | |
8445 ac_nlist=conftest.nm | |
8446 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) && test -s "$ac_nlist"; then | |
8447 # See whether the symbols have a leading underscore. | |
8448 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then | |
8449 lt_cv_sys_symbol_underscore=yes | |
8450 else | |
8451 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then | |
8452 : | |
8453 else | |
8454 echo "configure: cannot find nm_test_func in $ac_nlist" >&AS_MESSAGE_LOG_FD | |
8455 fi | |
8456 fi | |
8457 else | |
8458 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD | |
8459 fi | |
8460 else | |
8461 echo "configure: failed program was:" >&AS_MESSAGE_LOG_FD | |
8462 cat conftest.c >&AS_MESSAGE_LOG_FD | |
8463 fi | |
8464 rm -rf conftest* | |
8465 ]) | |
8466 sys_symbol_underscore=$lt_cv_sys_symbol_underscore | |
8467 AC_SUBST([sys_symbol_underscore]) | |
8468 ])# LT_SYS_SYMBOL_USCORE | |
8469 | |
8470 # Old name: | |
8471 AU_ALIAS([AC_LTDL_SYMBOL_USCORE], [LT_SYS_SYMBOL_USCORE]) | |
8472 dnl aclocal-1.4 backwards compatibility: | |
8473 dnl AC_DEFUN([AC_LTDL_SYMBOL_USCORE], []) | |
8474 | |
8475 | |
8476 # LT_FUNC_DLSYM_USCORE | |
8477 # -------------------- | |
8478 AC_DEFUN([LT_FUNC_DLSYM_USCORE], | |
8479 [AC_REQUIRE([LT_SYS_SYMBOL_USCORE])dnl | |
8480 if test x"$lt_cv_sys_symbol_underscore" = xyes; then | |
8481 if test x"$libltdl_cv_func_dlopen" = xyes || | |
8482 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then | |
8483 AC_CACHE_CHECK([whether we have to add an underscore for dlsym], | |
8484 [libltdl_cv_need_uscore], | |
8485 [libltdl_cv_need_uscore=unknown | |
8486 save_LIBS="$LIBS" | |
8487 LIBS="$LIBS $LIBADD_DLOPEN" | |
8488 _LT_TRY_DLOPEN_SELF( | |
8489 [libltdl_cv_need_uscore=no], [libltdl_cv_need_uscore=yes], | |
8490 [], [libltdl_cv_need_uscore=cross]) | |
8491 LIBS="$save_LIBS" | |
8492 ]) | |
8493 fi | |
8494 fi | |
8495 | |
8496 if test x"$libltdl_cv_need_uscore" = xyes; then | |
8497 AC_DEFINE([NEED_USCORE], [1], | |
8498 [Define if dlsym() requires a leading underscore in symbol names.]) | |
8499 fi | |
8500 ])# LT_FUNC_DLSYM_USCORE | |
8501 | |
8502 # Old name: | |
8503 AU_ALIAS([AC_LTDL_DLSYM_USCORE], [LT_FUNC_DLSYM_USCORE]) | |
8504 dnl aclocal-1.4 backwards compatibility: | |
8505 dnl AC_DEFUN([AC_LTDL_DLSYM_USCORE], []) | |
8506 | |
8507 ############################################################################## | |
8508 # Helper functions for option handling. -*- Autoconf -*- | |
8509 # | |
8510 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. | |
8511 # Written by Gary V. Vaughan, 2004 | |
8512 # | |
8513 # This file is free software; the Free Software Foundation gives | |
8514 # unlimited permission to copy and/or distribute it, with or without | |
8515 # modifications, as long as this notice is preserved. | |
8516 | |
8517 # serial 6 ltoptions.m4 | |
8518 | |
8519 # This is to help aclocal find these macros, as it can't see m4_define. | |
8520 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) | |
8521 | |
8522 | |
8523 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) | |
8524 # ------------------------------------------ | |
8525 m4_define([_LT_MANGLE_OPTION], | |
8526 [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) | |
8527 | |
8528 | |
8529 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) | |
8530 # --------------------------------------- | |
8531 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a | |
8532 # matching handler defined, dispatch to it. Other OPTION-NAMEs are | |
8533 # saved as a flag. | |
8534 m4_define([_LT_SET_OPTION], | |
8535 [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl | |
8536 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), | |
8537 _LT_MANGLE_DEFUN([$1], [$2]), | |
8538 [m4_warning([Unknown $1 option `$2'])])[]dnl | |
8539 ]) | |
8540 | |
8541 | |
8542 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) | |
8543 # ------------------------------------------------------------ | |
8544 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. | |
8545 m4_define([_LT_IF_OPTION], | |
8546 [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) | |
8547 | |
8548 | |
8549 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) | |
8550 # ------------------------------------------------------- | |
8551 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME | |
8552 # are set. | |
8553 m4_define([_LT_UNLESS_OPTIONS], | |
8554 [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), | |
8555 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), | |
8556 [m4_define([$0_found])])])[]dnl | |
8557 m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 | |
8558 ])[]dnl | |
8559 ]) | |
8560 | |
8561 | |
8562 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) | |
8563 # ---------------------------------------- | |
8564 # OPTION-LIST is a space-separated list of Libtool options associated | |
8565 # with MACRO-NAME. If any OPTION has a matching handler declared with | |
8566 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about | |
8567 # the unknown option and exit. | |
8568 m4_defun([_LT_SET_OPTIONS], | |
8569 [# Set options | |
8570 m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), | |
8571 [_LT_SET_OPTION([$1], _LT_Option)]) | |
8572 | |
8573 m4_if([$1],[LT_INIT],[ | |
8574 dnl | |
8575 dnl Simply set some default values (i.e off) if boolean options were not | |
8576 dnl specified: | |
8577 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no | |
8578 ]) | |
8579 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no | |
8580 ]) | |
8581 dnl | |
8582 dnl If no reference was made to various pairs of opposing options, then | |
8583 dnl we run the default mode handler for the pair. For example, if neither | |
8584 dnl `shared' nor `disable-shared' was passed, we enable building of shared | |
8585 dnl archives by default: | |
8586 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) | |
8587 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) | |
8588 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) | |
8589 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], | |
8590 [_LT_ENABLE_FAST_INSTALL]) | |
8591 ]) | |
8592 ])# _LT_SET_OPTIONS | |
8593 | |
8594 | |
8595 ## --------------------------------- ## | |
8596 ## Macros to handle LT_INIT options. ## | |
8597 ## --------------------------------- ## | |
8598 | |
8599 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) | |
8600 # ----------------------------------------- | |
8601 m4_define([_LT_MANGLE_DEFUN], | |
8602 [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) | |
8603 | |
8604 | |
8605 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) | |
8606 # ----------------------------------------------- | |
8607 m4_define([LT_OPTION_DEFINE], | |
8608 [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl | |
8609 ])# LT_OPTION_DEFINE | |
8610 | |
8611 | |
8612 # dlopen | |
8613 # ------ | |
8614 LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes | |
8615 ]) | |
8616 | |
8617 AU_DEFUN([AC_LIBTOOL_DLOPEN], | |
8618 [_LT_SET_OPTION([LT_INIT], [dlopen]) | |
8619 AC_DIAGNOSE([obsolete], | |
8620 [$0: Remove this warning and the call to _LT_SET_OPTION when you | |
8621 put the `dlopen' option into LT_INIT's first parameter.]) | |
8622 ]) | |
8623 | |
8624 dnl aclocal-1.4 backwards compatibility: | |
8625 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) | |
8626 | |
8627 | |
8628 # win32-dll | |
8629 # --------- | |
8630 # Declare package support for building win32 dll's. | |
8631 LT_OPTION_DEFINE([LT_INIT], [win32-dll], | |
8632 [enable_win32_dll=yes | |
8633 | |
8634 case $host in | |
8635 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) | |
8636 AC_CHECK_TOOL(AS, as, false) | |
8637 AC_CHECK_TOOL(DLLTOOL, dlltool, false) | |
8638 AC_CHECK_TOOL(OBJDUMP, objdump, false) | |
8639 ;; | |
8640 esac | |
8641 | |
8642 test -z "$AS" && AS=as | |
8643 _LT_DECL([], [AS], [0], [Assembler program])dnl | |
8644 | |
8645 test -z "$DLLTOOL" && DLLTOOL=dlltool | |
8646 _LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl | |
8647 | |
8648 test -z "$OBJDUMP" && OBJDUMP=objdump | |
8649 _LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl | |
8650 ])# win32-dll | |
8651 | |
8652 AU_DEFUN([AC_LIBTOOL_WIN32_DLL], | |
8653 [AC_REQUIRE([AC_CANONICAL_HOST])dnl | |
8654 _LT_SET_OPTION([LT_INIT], [win32-dll]) | |
8655 AC_DIAGNOSE([obsolete], | |
8656 [$0: Remove this warning and the call to _LT_SET_OPTION when you | |
8657 put the `win32-dll' option into LT_INIT's first parameter.]) | |
8658 ]) | |
8659 | |
8660 dnl aclocal-1.4 backwards compatibility: | |
8661 dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) | |
8662 | |
8663 | |
8664 # _LT_ENABLE_SHARED([DEFAULT]) | |
8665 # ---------------------------- | |
8666 # implement the --enable-shared flag, and supports the `shared' and | |
8667 # `disable-shared' LT_INIT options. | |
8668 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. | |
8669 m4_define([_LT_ENABLE_SHARED], | |
8670 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl | |
8671 AC_ARG_ENABLE([shared], | |
8672 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], | |
8673 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], | |
8674 [p=${PACKAGE-default} | |
8675 case $enableval in | |
8676 yes) enable_shared=yes ;; | |
8677 no) enable_shared=no ;; | |
8678 *) | |
8679 enable_shared=no | |
8680 # Look at the argument we got. We use all the common list separators. | |
8681 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8682 for pkg in $enableval; do | |
8683 IFS="$lt_save_ifs" | |
8684 if test "X$pkg" = "X$p"; then | |
8685 enable_shared=yes | |
8686 fi | |
8687 done | |
8688 IFS="$lt_save_ifs" | |
8689 ;; | |
8690 esac], | |
8691 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) | |
8692 | |
8693 _LT_DECL([build_libtool_libs], [enable_shared], [0], | |
8694 [Whether or not to build shared libraries]) | |
8695 ])# _LT_ENABLE_SHARED | |
8696 | |
8697 LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) | |
8698 LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) | |
8699 | |
8700 # Old names: | |
8701 AC_DEFUN([AC_ENABLE_SHARED], | |
8702 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) | |
8703 ]) | |
8704 | |
8705 AC_DEFUN([AC_DISABLE_SHARED], | |
8706 [_LT_SET_OPTION([LT_INIT], [disable-shared]) | |
8707 ]) | |
8708 | |
8709 AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) | |
8710 AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) | |
8711 | |
8712 dnl aclocal-1.4 backwards compatibility: | |
8713 dnl AC_DEFUN([AM_ENABLE_SHARED], []) | |
8714 dnl AC_DEFUN([AM_DISABLE_SHARED], []) | |
8715 | |
8716 | |
8717 | |
8718 # _LT_ENABLE_STATIC([DEFAULT]) | |
8719 # ---------------------------- | |
8720 # implement the --enable-static flag, and support the `static' and | |
8721 # `disable-static' LT_INIT options. | |
8722 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. | |
8723 m4_define([_LT_ENABLE_STATIC], | |
8724 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl | |
8725 AC_ARG_ENABLE([static], | |
8726 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], | |
8727 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], | |
8728 [p=${PACKAGE-default} | |
8729 case $enableval in | |
8730 yes) enable_static=yes ;; | |
8731 no) enable_static=no ;; | |
8732 *) | |
8733 enable_static=no | |
8734 # Look at the argument we got. We use all the common list separators. | |
8735 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8736 for pkg in $enableval; do | |
8737 IFS="$lt_save_ifs" | |
8738 if test "X$pkg" = "X$p"; then | |
8739 enable_static=yes | |
8740 fi | |
8741 done | |
8742 IFS="$lt_save_ifs" | |
8743 ;; | |
8744 esac], | |
8745 [enable_static=]_LT_ENABLE_STATIC_DEFAULT) | |
8746 | |
8747 _LT_DECL([build_old_libs], [enable_static], [0], | |
8748 [Whether or not to build static libraries]) | |
8749 ])# _LT_ENABLE_STATIC | |
8750 | |
8751 LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) | |
8752 LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) | |
8753 | |
8754 # Old names: | |
8755 AC_DEFUN([AC_ENABLE_STATIC], | |
8756 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) | |
8757 ]) | |
8758 | |
8759 AC_DEFUN([AC_DISABLE_STATIC], | |
8760 [_LT_SET_OPTION([LT_INIT], [disable-static]) | |
8761 ]) | |
8762 | |
8763 AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) | |
8764 AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) | |
8765 | |
8766 dnl aclocal-1.4 backwards compatibility: | |
8767 dnl AC_DEFUN([AM_ENABLE_STATIC], []) | |
8768 dnl AC_DEFUN([AM_DISABLE_STATIC], []) | |
8769 | |
8770 | |
8771 | |
8772 # _LT_ENABLE_FAST_INSTALL([DEFAULT]) | |
8773 # ---------------------------------- | |
8774 # implement the --enable-fast-install flag, and support the `fast-install' | |
8775 # and `disable-fast-install' LT_INIT options. | |
8776 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. | |
8777 m4_define([_LT_ENABLE_FAST_INSTALL], | |
8778 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl | |
8779 AC_ARG_ENABLE([fast-install], | |
8780 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], | |
8781 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], | |
8782 [p=${PACKAGE-default} | |
8783 case $enableval in | |
8784 yes) enable_fast_install=yes ;; | |
8785 no) enable_fast_install=no ;; | |
8786 *) | |
8787 enable_fast_install=no | |
8788 # Look at the argument we got. We use all the common list separators. | |
8789 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8790 for pkg in $enableval; do | |
8791 IFS="$lt_save_ifs" | |
8792 if test "X$pkg" = "X$p"; then | |
8793 enable_fast_install=yes | |
8794 fi | |
8795 done | |
8796 IFS="$lt_save_ifs" | |
8797 ;; | |
8798 esac], | |
8799 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) | |
8800 | |
8801 _LT_DECL([fast_install], [enable_fast_install], [0], | |
8802 [Whether or not to optimize for fast installation])dnl | |
8803 ])# _LT_ENABLE_FAST_INSTALL | |
8804 | |
8805 LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) | |
8806 LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) | |
8807 | |
8808 # Old names: | |
8809 AU_DEFUN([AC_ENABLE_FAST_INSTALL], | |
8810 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) | |
8811 AC_DIAGNOSE([obsolete], | |
8812 [$0: Remove this warning and the call to _LT_SET_OPTION when you put | |
8813 the `fast-install' option into LT_INIT's first parameter.]) | |
8814 ]) | |
8815 | |
8816 AU_DEFUN([AC_DISABLE_FAST_INSTALL], | |
8817 [_LT_SET_OPTION([LT_INIT], [disable-fast-install]) | |
8818 AC_DIAGNOSE([obsolete], | |
8819 [$0: Remove this warning and the call to _LT_SET_OPTION when you put | |
8820 the `disable-fast-install' option into LT_INIT's first parameter.]) | |
8821 ]) | |
8822 | |
8823 dnl aclocal-1.4 backwards compatibility: | |
8824 dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) | |
8825 dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) | |
8826 | |
8827 | |
8828 # _LT_WITH_PIC([MODE]) | |
8829 # -------------------- | |
8830 # implement the --with-pic flag, and support the `pic-only' and `no-pic' | |
8831 # LT_INIT options. | |
8832 # MODE is either `yes' or `no'. If omitted, it defaults to `both'. | |
8833 m4_define([_LT_WITH_PIC], | |
8834 [AC_ARG_WITH([pic], | |
8835 [AS_HELP_STRING([--with-pic], | |
8836 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], | |
8837 [pic_mode="$withval"], | |
8838 [pic_mode=default]) | |
8839 | |
8840 test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) | |
8841 | |
8842 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl | |
8843 ])# _LT_WITH_PIC | |
8844 | |
8845 LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) | |
8846 LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) | |
8847 | |
8848 # Old name: | |
8849 AU_DEFUN([AC_LIBTOOL_PICMODE], | |
8850 [_LT_SET_OPTION([LT_INIT], [pic-only]) | |
8851 AC_DIAGNOSE([obsolete], | |
8852 [$0: Remove this warning and the call to _LT_SET_OPTION when you | |
8853 put the `pic-only' option into LT_INIT's first parameter.]) | |
8854 ]) | |
8855 | |
8856 dnl aclocal-1.4 backwards compatibility: | |
8857 dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) | |
8858 | |
8859 ## ----------------- ## | |
8860 ## LTDL_INIT Options ## | |
8861 ## ----------------- ## | |
8862 | |
8863 m4_define([_LTDL_MODE], []) | |
8864 LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], | |
8865 [m4_define([_LTDL_MODE], [nonrecursive])]) | |
8866 LT_OPTION_DEFINE([LTDL_INIT], [recursive], | |
8867 [m4_define([_LTDL_MODE], [recursive])]) | |
8868 LT_OPTION_DEFINE([LTDL_INIT], [subproject], | |
8869 [m4_define([_LTDL_MODE], [subproject])]) | |
8870 | |
8871 m4_define([_LTDL_TYPE], []) | |
8872 LT_OPTION_DEFINE([LTDL_INIT], [installable], | |
8873 [m4_define([_LTDL_TYPE], [installable])]) | |
8874 LT_OPTION_DEFINE([LTDL_INIT], [convenience], | |
8875 [m4_define([_LTDL_TYPE], [convenience])]) | |
8876 | |
8877 ############################################################################## | |
8878 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- | |
8879 # | |
8880 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. | |
8881 # Written by Gary V. Vaughan, 2004 | |
8882 # | |
8883 # This file is free software; the Free Software Foundation gives | |
8884 # unlimited permission to copy and/or distribute it, with or without | |
8885 # modifications, as long as this notice is preserved. | |
8886 | |
8887 # serial 6 ltsugar.m4 | |
8888 | |
8889 # This is to help aclocal find these macros, as it can't see m4_define. | |
8890 AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) | |
8891 | |
8892 | |
8893 # lt_join(SEP, ARG1, [ARG2...]) | |
8894 # ----------------------------- | |
8895 # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their | |
8896 # associated separator. | |
8897 # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier | |
8898 # versions in m4sugar had bugs. | |
8899 m4_define([lt_join], | |
8900 [m4_if([$#], [1], [], | |
8901 [$#], [2], [[$2]], | |
8902 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) | |
8903 m4_define([_lt_join], | |
8904 [m4_if([$#$2], [2], [], | |
8905 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) | |
8906 | |
8907 | |
8908 # lt_car(LIST) | |
8909 # lt_cdr(LIST) | |
8910 # ------------ | |
8911 # Manipulate m4 lists. | |
8912 # These macros are necessary as long as will still need to support | |
8913 # Autoconf-2.59 which quotes differently. | |
8914 m4_define([lt_car], [[$1]]) | |
8915 m4_define([lt_cdr], | |
8916 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], | |
8917 [$#], 1, [], | |
8918 [m4_dquote(m4_shift($@))])]) | |
8919 m4_define([lt_unquote], $1) | |
8920 | |
8921 | |
8922 # lt_append(MACRO-NAME, STRING, [SEPARATOR]) | |
8923 # ------------------------------------------ | |
8924 # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. | |
8925 # Note that neither SEPARATOR nor STRING are expanded; they are appended | |
8926 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). | |
8927 # No SEPARATOR is output if MACRO-NAME was previously undefined (different | |
8928 # than defined and empty). | |
8929 # | |
8930 # This macro is needed until we can rely on Autoconf 2.62, since earlier | |
8931 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING. | |
8932 m4_define([lt_append], | |
8933 [m4_define([$1], | |
8934 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) | |
8935 | |
8936 | |
8937 | |
8938 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) | |
8939 # ---------------------------------------------------------- | |
8940 # Produce a SEP delimited list of all paired combinations of elements of | |
8941 # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list | |
8942 # has the form PREFIXmINFIXSUFFIXn. | |
8943 # Needed until we can rely on m4_combine added in Autoconf 2.62. | |
8944 m4_define([lt_combine], | |
8945 [m4_if(m4_eval([$# > 3]), [1], | |
8946 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl | |
8947 [[m4_foreach([_Lt_prefix], [$2], | |
8948 [m4_foreach([_Lt_suffix], | |
8949 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, | |
8950 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) | |
8951 | |
8952 | |
8953 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) | |
8954 # ----------------------------------------------------------------------- | |
8955 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited | |
8956 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. | |
8957 m4_define([lt_if_append_uniq], | |
8958 [m4_ifdef([$1], | |
8959 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], | |
8960 [lt_append([$1], [$2], [$3])$4], | |
8961 [$5])], | |
8962 [lt_append([$1], [$2], [$3])$4])]) | |
8963 | |
8964 | |
8965 # lt_dict_add(DICT, KEY, VALUE) | |
8966 # ----------------------------- | |
8967 m4_define([lt_dict_add], | |
8968 [m4_define([$1($2)], [$3])]) | |
8969 | |
8970 | |
8971 # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) | |
8972 # -------------------------------------------- | |
8973 m4_define([lt_dict_add_subkey], | |
8974 [m4_define([$1($2:$3)], [$4])]) | |
8975 | |
8976 | |
8977 # lt_dict_fetch(DICT, KEY, [SUBKEY]) | |
8978 # ---------------------------------- | |
8979 m4_define([lt_dict_fetch], | |
8980 [m4_ifval([$3], | |
8981 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), | |
8982 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) | |
8983 | |
8984 | |
8985 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) | |
8986 # ----------------------------------------------------------------- | |
8987 m4_define([lt_if_dict_fetch], | |
8988 [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], | |
8989 [$5], | |
8990 [$6])]) | |
8991 | |
8992 | |
8993 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) | |
8994 # -------------------------------------------------------------- | |
8995 m4_define([lt_dict_filter], | |
8996 [m4_if([$5], [], [], | |
8997 [lt_join(m4_quote(m4_default([$4], [[, ]])), | |
8998 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), | |
8999 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl | |
9000 ]) | |
9001 | |
9002 ############################################################################## | |
9003 # ltversion.m4 -- version numbers -*- Autoconf -*- | |
9004 # | |
9005 # Copyright (C) 2004 Free Software Foundation, Inc. | |
9006 # Written by Scott James Remnant, 2004 | |
9007 # | |
9008 # This file is free software; the Free Software Foundation gives | |
9009 # unlimited permission to copy and/or distribute it, with or without | |
9010 # modifications, as long as this notice is preserved. | |
9011 | |
9012 # Generated from ltversion.in. | |
9013 | |
9014 # serial 3012 ltversion.m4 | |
9015 # This file is part of GNU Libtool | |
9016 | |
9017 m4_define([LT_PACKAGE_VERSION], [2.2.6]) | |
9018 m4_define([LT_PACKAGE_REVISION], [1.3012]) | |
9019 | |
9020 AC_DEFUN([LTVERSION_VERSION], | |
9021 [macro_version='2.2.6' | |
9022 macro_revision='1.3012' | |
9023 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) | |
9024 _LT_DECL(, macro_revision, 0) | |
9025 ]) | |
9026 | |
9027 ############################################################################## | |
9028 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- | |
9029 # | |
9030 # Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc. | |
9031 # Written by Scott James Remnant, 2004. | |
9032 # | |
9033 # This file is free software; the Free Software Foundation gives | |
9034 # unlimited permission to copy and/or distribute it, with or without | |
9035 # modifications, as long as this notice is preserved. | |
9036 | |
9037 # serial 4 lt~obsolete.m4 | |
9038 | |
9039 # These exist entirely to fool aclocal when bootstrapping libtool. | |
9040 # | |
9041 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) | |
9042 # which have later been changed to m4_define as they aren't part of the | |
9043 # exported API, or moved to Autoconf or Automake where they belong. | |
9044 # | |
9045 # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN | |
9046 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us | |
9047 # using a macro with the same name in our local m4/libtool.m4 it'll | |
9048 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define | |
9049 # and doesn't know about Autoconf macros at all.) | |
9050 # | |
9051 # So we provide this file, which has a silly filename so it's always | |
9052 # included after everything else. This provides aclocal with the | |
9053 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything | |
9054 # because those macros already exist, or will be overwritten later. | |
9055 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. | |
9056 # | |
9057 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. | |
9058 # Yes, that means every name once taken will need to remain here until | |
9059 # we give up compatibility with versions before 1.7, at which point | |
9060 # we need to keep only those names which we still refer to. | |
9061 | |
9062 # This is to help aclocal find these macros, as it can't see m4_define. | |
9063 AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) | |
9064 | |
9065 m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) | |
9066 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) | |
9067 m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) | |
9068 m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) | |
9069 m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) | |
9070 m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) | |
9071 m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) | |
9072 m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) | |
9073 m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) | |
9074 m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) | |
9075 m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) | |
9076 m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) | |
9077 m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) | |
9078 m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) | |
9079 m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) | |
9080 m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) | |
9081 m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) | |
9082 m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) | |
9083 m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) | |
9084 m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) | |
9085 m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) | |
9086 m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) | |
9087 m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) | |
9088 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) | |
9089 m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) | |
9090 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) | |
9091 m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) | |
9092 m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) | |
9093 m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) | |
9094 m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) | |
9095 m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) | |
9096 m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) | |
9097 m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) | |
9098 m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) | |
9099 m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) | |
9100 m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) | |
9101 m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) | |
9102 m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) | |
9103 m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) | |
9104 m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) | |
9105 m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) | |
9106 m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) | |
9107 m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])]) | |
9108 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) | |
9109 m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) | |
9110 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) | |
9111 m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) | |
9112 m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) | |
9113 m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) | |
9114 m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) | |
9115 m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) | |
9116 m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) | |
9117 m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) | |
9118 m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) | |
9119 m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) |