Mercurial > hg > CbC > CbC_gcc
comparison libtool.m4 @ 57:326d9e06c2e3
modify c-parser.c
author | ryoma <e075725@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 15 Feb 2010 00:54:17 +0900 |
parents | 77e2b8dfacca |
children | f6334be47118 |
comparison
equal
deleted
inserted
replaced
54:f62c169bbc24 | 57:326d9e06c2e3 |
---|---|
1 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- | 1 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
2 # | 2 # |
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | 3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
4 # 2006, 2007, 2008 Free Software Foundation, Inc. | 4 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
5 # Written by Gordon Matzigkeit, 1996 | 5 # Written by Gordon Matzigkeit, 1996 |
6 # | 6 # |
7 # This file is free software; the Free Software Foundation gives | 7 # This file is free software; the Free Software Foundation gives |
8 # unlimited permission to copy and/or distribute it, with or without | 8 # unlimited permission to copy and/or distribute it, with or without |
9 # modifications, as long as this notice is preserved. | 9 # modifications, as long as this notice is preserved. |
10 | 10 |
11 m4_define([_LT_COPYING], [dnl | 11 m4_define([_LT_COPYING], [dnl |
12 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | 12 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
13 # 2006, 2007, 2008 Free Software Foundation, Inc. | 13 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
14 # Written by Gordon Matzigkeit, 1996 | 14 # Written by Gordon Matzigkeit, 1996 |
15 # | 15 # |
16 # This file is part of GNU Libtool. | 16 # This file is part of GNU Libtool. |
17 # | 17 # |
18 # GNU Libtool is free software; you can redistribute it and/or | 18 # GNU Libtool is free software; you can redistribute it and/or |
64 | 64 |
65 # LT_INIT([OPTIONS]) | 65 # LT_INIT([OPTIONS]) |
66 # ------------------ | 66 # ------------------ |
67 AC_DEFUN([LT_INIT], | 67 AC_DEFUN([LT_INIT], |
68 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT | 68 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT |
69 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl | |
69 AC_BEFORE([$0], [LT_LANG])dnl | 70 AC_BEFORE([$0], [LT_LANG])dnl |
70 AC_BEFORE([$0], [LT_OUTPUT])dnl | 71 AC_BEFORE([$0], [LT_OUTPUT])dnl |
71 AC_BEFORE([$0], [LTDL_INIT])dnl | 72 AC_BEFORE([$0], [LTDL_INIT])dnl |
72 m4_require([_LT_CHECK_BUILDDIR])dnl | 73 m4_require([_LT_CHECK_BUILDDIR])dnl |
73 | 74 |
79 AC_REQUIRE([LTOPTIONS_VERSION])dnl | 80 AC_REQUIRE([LTOPTIONS_VERSION])dnl |
80 AC_REQUIRE([LTSUGAR_VERSION])dnl | 81 AC_REQUIRE([LTSUGAR_VERSION])dnl |
81 AC_REQUIRE([LTVERSION_VERSION])dnl | 82 AC_REQUIRE([LTVERSION_VERSION])dnl |
82 AC_REQUIRE([LTOBSOLETE_VERSION])dnl | 83 AC_REQUIRE([LTOBSOLETE_VERSION])dnl |
83 m4_require([_LT_PROG_LTMAIN])dnl | 84 m4_require([_LT_PROG_LTMAIN])dnl |
85 | |
86 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) | |
84 | 87 |
85 dnl Parse OPTIONS | 88 dnl Parse OPTIONS |
86 _LT_SET_OPTIONS([$0], [$1]) | 89 _LT_SET_OPTIONS([$0], [$1]) |
87 | 90 |
88 # This can be used to rebuild libtool when needed | 91 # This can be used to rebuild libtool when needed |
116 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; | 119 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; |
117 \-*) ;; | 120 \-*) ;; |
118 *) break;; | 121 *) break;; |
119 esac | 122 esac |
120 done | 123 done |
121 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | 124 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
122 ]) | 125 ]) |
123 | 126 |
124 | 127 |
125 # _LT_FILEUTILS_DEFAULTS | 128 # _LT_FILEUTILS_DEFAULTS |
126 # ---------------------- | 129 # ---------------------- |
136 # _LT_SETUP | 139 # _LT_SETUP |
137 # --------- | 140 # --------- |
138 m4_defun([_LT_SETUP], | 141 m4_defun([_LT_SETUP], |
139 [AC_REQUIRE([AC_CANONICAL_HOST])dnl | 142 [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
140 AC_REQUIRE([AC_CANONICAL_BUILD])dnl | 143 AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
144 AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl | |
145 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl | |
146 | |
141 _LT_DECL([], [host_alias], [0], [The host system])dnl | 147 _LT_DECL([], [host_alias], [0], [The host system])dnl |
142 _LT_DECL([], [host], [0])dnl | 148 _LT_DECL([], [host], [0])dnl |
143 _LT_DECL([], [host_os], [0])dnl | 149 _LT_DECL([], [host_os], [0])dnl |
144 dnl | 150 dnl |
145 _LT_DECL([], [build_alias], [0], [The build system])dnl | 151 _LT_DECL([], [build_alias], [0], [The build system])dnl |
177 fi | 183 fi |
178 | 184 |
179 _LT_CHECK_OBJDIR | 185 _LT_CHECK_OBJDIR |
180 | 186 |
181 m4_require([_LT_TAG_COMPILER])dnl | 187 m4_require([_LT_TAG_COMPILER])dnl |
182 _LT_PROG_ECHO_BACKSLASH | |
183 | 188 |
184 case $host_os in | 189 case $host_os in |
185 aix3*) | 190 aix3*) |
186 # AIX sometimes has problems with the GCC collect2 program. For some | 191 # AIX sometimes has problems with the GCC collect2 program. For some |
187 # reason, if we set the COLLECT_NAMES environment variable, the problems | 192 # reason, if we set the COLLECT_NAMES environment variable, the problems |
191 export COLLECT_NAMES | 196 export COLLECT_NAMES |
192 fi | 197 fi |
193 ;; | 198 ;; |
194 esac | 199 esac |
195 | 200 |
196 # Sed substitution that helps us do robust quoting. It backslashifies | |
197 # metacharacters that are still active within double-quoted strings. | |
198 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' | |
199 | |
200 # Same as above, but do not quote variable references. | |
201 double_quote_subst='s/\([["`\\]]\)/\\\1/g' | |
202 | |
203 # Sed substitution to delay expansion of an escaped shell variable in a | |
204 # double_quote_subst'ed string. | |
205 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
206 | |
207 # Sed substitution to delay expansion of an escaped single quote. | |
208 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
209 | |
210 # Sed substitution to avoid accidental globbing in evaled expressions | |
211 no_glob_subst='s/\*/\\\*/g' | |
212 | |
213 # Global variables: | 201 # Global variables: |
214 ofile=libtool | 202 ofile=libtool |
215 can_build_shared=yes | 203 can_build_shared=yes |
216 | 204 |
217 # All known linkers require a `.a' archive for static linking (except MSVC, | 205 # All known linkers require a `.a' archive for static linking (except MSVC, |
247 _LT_LANG_C_CONFIG | 235 _LT_LANG_C_CONFIG |
248 _LT_LANG_DEFAULT_CONFIG | 236 _LT_LANG_DEFAULT_CONFIG |
249 _LT_CONFIG_COMMANDS | 237 _LT_CONFIG_COMMANDS |
250 ])# _LT_SETUP | 238 ])# _LT_SETUP |
251 | 239 |
240 | |
241 # _LT_PREPARE_SED_QUOTE_VARS | |
242 # -------------------------- | |
243 # Define a few sed substitution that help us do robust quoting. | |
244 m4_defun([_LT_PREPARE_SED_QUOTE_VARS], | |
245 [# Backslashify metacharacters that are still active within | |
246 # double-quoted strings. | |
247 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' | |
248 | |
249 # Same as above, but do not quote variable references. | |
250 double_quote_subst='s/\([["`\\]]\)/\\\1/g' | |
251 | |
252 # Sed substitution to delay expansion of an escaped shell variable in a | |
253 # double_quote_subst'ed string. | |
254 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
255 | |
256 # Sed substitution to delay expansion of an escaped single quote. | |
257 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
258 | |
259 # Sed substitution to avoid accidental globbing in evaled expressions | |
260 no_glob_subst='s/\*/\\\*/g' | |
261 ]) | |
252 | 262 |
253 # _LT_PROG_LTMAIN | 263 # _LT_PROG_LTMAIN |
254 # --------------- | 264 # --------------- |
255 # Note that this code is called both from `configure', and `config.status' | 265 # Note that this code is called both from `configure', and `config.status' |
256 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, | 266 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, |
406 # ------------------------------------ | 416 # ------------------------------------ |
407 # Quote a variable value, and forward it to `config.status' so that its | 417 # Quote a variable value, and forward it to `config.status' so that its |
408 # declaration there will have the same value as in `configure'. VARNAME | 418 # declaration there will have the same value as in `configure'. VARNAME |
409 # must have a single quote delimited value for this to work. | 419 # must have a single quote delimited value for this to work. |
410 m4_define([_LT_CONFIG_STATUS_DECLARE], | 420 m4_define([_LT_CONFIG_STATUS_DECLARE], |
411 [$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`']) | 421 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) |
412 | 422 |
413 | 423 |
414 # _LT_CONFIG_STATUS_DECLARATIONS | 424 # _LT_CONFIG_STATUS_DECLARATIONS |
415 # ------------------------------ | 425 # ------------------------------ |
416 # We delimit libtool config variables with single quotes, so when | 426 # We delimit libtool config variables with single quotes, so when |
417 # we write them to config.status, we have to be sure to quote all | 427 # we write them to config.status, we have to be sure to quote all |
418 # embedded single quotes properly. In configure, this macro expands | 428 # embedded single quotes properly. In configure, this macro expands |
419 # each variable declared with _LT_DECL (and _LT_TAGDECL) into: | 429 # each variable declared with _LT_DECL (and _LT_TAGDECL) into: |
420 # | 430 # |
421 # <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`' | 431 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`' |
422 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], | 432 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], |
423 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), | 433 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), |
424 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) | 434 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) |
425 | 435 |
426 | 436 |
515 _LT_CONFIG_STATUS_DECLARATIONS | 525 _LT_CONFIG_STATUS_DECLARATIONS |
516 LTCC='$LTCC' | 526 LTCC='$LTCC' |
517 LTCFLAGS='$LTCFLAGS' | 527 LTCFLAGS='$LTCFLAGS' |
518 compiler='$compiler_DEFAULT' | 528 compiler='$compiler_DEFAULT' |
519 | 529 |
530 # A function that is used when there is no print builtin or printf. | |
531 func_fallback_echo () | |
532 { | |
533 eval 'cat <<_LTECHO_EOF | |
534 \$[]1 | |
535 _LTECHO_EOF' | |
536 } | |
537 | |
520 # Quote evaled strings. | 538 # Quote evaled strings. |
521 for var in lt_decl_all_varnames([[ \ | 539 for var in lt_decl_all_varnames([[ \ |
522 ]], lt_decl_quote_varnames); do | 540 ]], lt_decl_quote_varnames); do |
523 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | 541 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
524 *[[\\\\\\\`\\"\\\$]]*) | 542 *[[\\\\\\\`\\"\\\$]]*) |
525 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | 543 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
526 ;; | 544 ;; |
527 *) | 545 *) |
528 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | 546 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
529 ;; | 547 ;; |
530 esac | 548 esac |
531 done | 549 done |
532 | 550 |
533 # Double-quote double-evaled strings. | 551 # Double-quote double-evaled strings. |
534 for var in lt_decl_all_varnames([[ \ | 552 for var in lt_decl_all_varnames([[ \ |
535 ]], lt_decl_dquote_varnames); do | 553 ]], lt_decl_dquote_varnames); do |
536 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | 554 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
537 *[[\\\\\\\`\\"\\\$]]*) | 555 *[[\\\\\\\`\\"\\\$]]*) |
538 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | 556 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
539 ;; | 557 ;; |
540 *) | 558 *) |
541 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | 559 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
542 ;; | 560 ;; |
543 esac | 561 esac |
544 done | 562 done |
545 | 563 |
546 # Fix-up fallback echo if it was mangled by the above quoting rules. | |
547 case \$lt_ECHO in | |
548 *'\\\[$]0 --fallback-echo"')dnl " | |
549 lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\` | |
550 ;; | |
551 esac | |
552 | |
553 _LT_OUTPUT_LIBTOOL_INIT | 564 _LT_OUTPUT_LIBTOOL_INIT |
554 ]) | 565 ]) |
555 | 566 |
567 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) | |
568 # ------------------------------------ | |
569 # Generate a child script FILE with all initialization necessary to | |
570 # reuse the environment learned by the parent script, and make the | |
571 # file executable. If COMMENT is supplied, it is inserted after the | |
572 # `#!' sequence but before initialization text begins. After this | |
573 # macro, additional text can be appended to FILE to form the body of | |
574 # the child script. The macro ends with non-zero status if the | |
575 # file could not be fully written (such as if the disk is full). | |
576 m4_ifdef([AS_INIT_GENERATED], | |
577 [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], | |
578 [m4_defun([_LT_GENERATED_FILE_INIT], | |
579 [m4_require([AS_PREPARE])]dnl | |
580 [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl | |
581 [lt_write_fail=0 | |
582 cat >$1 <<_ASEOF || lt_write_fail=1 | |
583 #! $SHELL | |
584 # Generated by $as_me. | |
585 $2 | |
586 SHELL=\${CONFIG_SHELL-$SHELL} | |
587 export SHELL | |
588 _ASEOF | |
589 cat >>$1 <<\_ASEOF || lt_write_fail=1 | |
590 AS_SHELL_SANITIZE | |
591 _AS_PREPARE | |
592 exec AS_MESSAGE_FD>&1 | |
593 _ASEOF | |
594 test $lt_write_fail = 0 && chmod +x $1[]dnl | |
595 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT | |
556 | 596 |
557 # LT_OUTPUT | 597 # LT_OUTPUT |
558 # --------- | 598 # --------- |
559 # This macro allows early generation of the libtool script (before | 599 # This macro allows early generation of the libtool script (before |
560 # AC_OUTPUT is called), incase it is used in configure for compilation | 600 # AC_OUTPUT is called), incase it is used in configure for compilation |
561 # tests. | 601 # tests. |
562 AC_DEFUN([LT_OUTPUT], | 602 AC_DEFUN([LT_OUTPUT], |
563 [: ${CONFIG_LT=./config.lt} | 603 [: ${CONFIG_LT=./config.lt} |
564 AC_MSG_NOTICE([creating $CONFIG_LT]) | 604 AC_MSG_NOTICE([creating $CONFIG_LT]) |
565 cat >"$CONFIG_LT" <<_LTEOF | 605 _LT_GENERATED_FILE_INIT(["$CONFIG_LT"], |
566 #! $SHELL | 606 [# Run this file to recreate a libtool stub with the current configuration.]) |
567 # Generated by $as_me. | 607 |
568 # Run this file to recreate a libtool stub with the current configuration. | 608 cat >>"$CONFIG_LT" <<\_LTEOF |
569 | |
570 lt_cl_silent=false | 609 lt_cl_silent=false |
571 SHELL=\${CONFIG_SHELL-$SHELL} | |
572 _LTEOF | |
573 | |
574 cat >>"$CONFIG_LT" <<\_LTEOF | |
575 AS_SHELL_SANITIZE | |
576 _AS_PREPARE | |
577 | |
578 exec AS_MESSAGE_FD>&1 | |
579 exec AS_MESSAGE_LOG_FD>>config.log | 610 exec AS_MESSAGE_LOG_FD>>config.log |
580 { | 611 { |
581 echo | 612 echo |
582 AS_BOX([Running $as_me.]) | 613 AS_BOX([Running $as_me.]) |
583 } >&AS_MESSAGE_LOG_FD | 614 } >&AS_MESSAGE_LOG_FD |
599 lt_cl_version="\ | 630 lt_cl_version="\ |
600 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl | 631 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl |
601 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) | 632 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) |
602 configured by $[0], generated by m4_PACKAGE_STRING. | 633 configured by $[0], generated by m4_PACKAGE_STRING. |
603 | 634 |
604 Copyright (C) 2008 Free Software Foundation, Inc. | 635 Copyright (C) 2009 Free Software Foundation, Inc. |
605 This config.lt script is free software; the Free Software Foundation | 636 This config.lt script is free software; the Free Software Foundation |
606 gives unlimited permision to copy, distribute and modify it." | 637 gives unlimited permision to copy, distribute and modify it." |
607 | 638 |
608 while test $[#] != 0 | 639 while test $[#] != 0 |
609 do | 640 do |
644 | 675 |
645 # configure is writing to config.log, but config.lt does its own redirection, | 676 # configure is writing to config.log, but config.lt does its own redirection, |
646 # appending to config.log, which fails on DOS, as config.log is still kept | 677 # appending to config.log, which fails on DOS, as config.log is still kept |
647 # open by configure. Here we exec the FD to /dev/null, effectively closing | 678 # open by configure. Here we exec the FD to /dev/null, effectively closing |
648 # config.log, so it can be properly (re)opened and appended to by config.lt. | 679 # config.log, so it can be properly (re)opened and appended to by config.lt. |
649 if test "$no_create" != yes; then | 680 lt_cl_success=: |
650 lt_cl_success=: | 681 test "$silent" = yes && |
651 test "$silent" = yes && | 682 lt_config_lt_args="$lt_config_lt_args --quiet" |
652 lt_config_lt_args="$lt_config_lt_args --quiet" | 683 exec AS_MESSAGE_LOG_FD>/dev/null |
653 exec AS_MESSAGE_LOG_FD>/dev/null | 684 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false |
654 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false | 685 exec AS_MESSAGE_LOG_FD>>config.log |
655 exec AS_MESSAGE_LOG_FD>>config.log | 686 $lt_cl_success || AS_EXIT(1) |
656 $lt_cl_success || AS_EXIT(1) | |
657 fi | |
658 ])# LT_OUTPUT | 687 ])# LT_OUTPUT |
659 | 688 |
660 | 689 |
661 # _LT_CONFIG(TAG) | 690 # _LT_CONFIG(TAG) |
662 # --------------- | 691 # --------------- |
829 # Obsolete macros: | 858 # Obsolete macros: |
830 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) | 859 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) |
831 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) | 860 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) |
832 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) | 861 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) |
833 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) | 862 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) |
863 AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) | |
834 dnl aclocal-1.4 backwards compatibility: | 864 dnl aclocal-1.4 backwards compatibility: |
835 dnl AC_DEFUN([AC_LIBTOOL_CXX], []) | 865 dnl AC_DEFUN([AC_LIBTOOL_CXX], []) |
836 dnl AC_DEFUN([AC_LIBTOOL_F77], []) | 866 dnl AC_DEFUN([AC_LIBTOOL_F77], []) |
837 dnl AC_DEFUN([AC_LIBTOOL_FC], []) | 867 dnl AC_DEFUN([AC_LIBTOOL_FC], []) |
838 dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) | 868 dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) |
869 dnl AC_DEFUN([AC_LIBTOOL_RC], []) | |
839 | 870 |
840 | 871 |
841 # _LT_TAG_COMPILER | 872 # _LT_TAG_COMPILER |
842 # ---------------- | 873 # ---------------- |
843 m4_defun([_LT_TAG_COMPILER], | 874 m4_defun([_LT_TAG_COMPILER], |
938 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], | 969 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], |
939 [lt_cv_ld_exported_symbols_list=yes], | 970 [lt_cv_ld_exported_symbols_list=yes], |
940 [lt_cv_ld_exported_symbols_list=no]) | 971 [lt_cv_ld_exported_symbols_list=no]) |
941 LDFLAGS="$save_LDFLAGS" | 972 LDFLAGS="$save_LDFLAGS" |
942 ]) | 973 ]) |
974 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], | |
975 [lt_cv_ld_force_load=no | |
976 cat > conftest.c << _LT_EOF | |
977 int forced_loaded() { return 2;} | |
978 _LT_EOF | |
979 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD | |
980 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD | |
981 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD | |
982 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD | |
983 cat > conftest.c << _LT_EOF | |
984 int main() { return 0;} | |
985 _LT_EOF | |
986 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD | |
987 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
988 _lt_result=$? | |
989 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
990 lt_cv_ld_force_load=yes | |
991 else | |
992 cat conftest.err >&AS_MESSAGE_LOG_FD | |
993 fi | |
994 rm -f conftest.err libconftest.a conftest conftest.c | |
995 rm -rf conftest.dSYM | |
996 ]) | |
943 case $host_os in | 997 case $host_os in |
944 rhapsody* | darwin1.[[012]]) | 998 rhapsody* | darwin1.[[012]]) |
945 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | 999 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
946 darwin1.*) | 1000 darwin1.*) |
947 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | 1001 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
965 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | 1019 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
966 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | 1020 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
967 else | 1021 else |
968 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | 1022 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
969 fi | 1023 fi |
970 if test "$DSYMUTIL" != ":"; then | 1024 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
971 _lt_dsymutil='~$DSYMUTIL $lib || :' | 1025 _lt_dsymutil='~$DSYMUTIL $lib || :' |
972 else | 1026 else |
973 _lt_dsymutil= | 1027 _lt_dsymutil= |
974 fi | 1028 fi |
975 ;; | 1029 ;; |
985 m4_require([_LT_REQUIRED_DARWIN_CHECKS]) | 1039 m4_require([_LT_REQUIRED_DARWIN_CHECKS]) |
986 _LT_TAGVAR(archive_cmds_need_lc, $1)=no | 1040 _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
987 _LT_TAGVAR(hardcode_direct, $1)=no | 1041 _LT_TAGVAR(hardcode_direct, $1)=no |
988 _LT_TAGVAR(hardcode_automatic, $1)=yes | 1042 _LT_TAGVAR(hardcode_automatic, $1)=yes |
989 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | 1043 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
990 _LT_TAGVAR(whole_archive_flag_spec, $1)='' | 1044 if test "$lt_cv_ld_force_load" = "yes"; then |
1045 _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | |
1046 else | |
1047 _LT_TAGVAR(whole_archive_flag_spec, $1)='' | |
1048 fi | |
991 _LT_TAGVAR(link_all_deplibs, $1)=yes | 1049 _LT_TAGVAR(link_all_deplibs, $1)=yes |
992 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" | 1050 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" |
993 case $cc_basename in | 1051 case $cc_basename in |
994 ifort*) _lt_dar_can_shared=yes ;; | 1052 ifort*) _lt_dar_can_shared=yes ;; |
995 *) _lt_dar_can_shared=$GCC ;; | 1053 *) _lt_dar_can_shared=$GCC ;; |
996 esac | 1054 esac |
997 if test "$_lt_dar_can_shared" = "yes"; then | 1055 if test "$_lt_dar_can_shared" = "yes"; then |
998 output_verbose_link_cmd=echo | 1056 output_verbose_link_cmd=func_echo_all |
999 _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}" | 1057 _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}" |
1000 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | 1058 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
1001 _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}" | 1059 _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}" |
1002 _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}" | 1060 _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}" |
1003 m4_if([$1], [CXX], | 1061 m4_if([$1], [CXX], |
1039 | 1097 |
1040 | 1098 |
1041 # _LT_SHELL_INIT(ARG) | 1099 # _LT_SHELL_INIT(ARG) |
1042 # ------------------- | 1100 # ------------------- |
1043 m4_define([_LT_SHELL_INIT], | 1101 m4_define([_LT_SHELL_INIT], |
1044 [ifdef([AC_DIVERSION_NOTICE], | 1102 [m4_divert_text([M4SH-INIT], [$1 |
1045 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], | 1103 ])])# _LT_SHELL_INIT |
1046 [AC_DIVERT_PUSH(NOTICE)]) | 1104 |
1047 $1 | |
1048 AC_DIVERT_POP | |
1049 ])# _LT_SHELL_INIT | |
1050 | 1105 |
1051 | 1106 |
1052 # _LT_PROG_ECHO_BACKSLASH | 1107 # _LT_PROG_ECHO_BACKSLASH |
1053 # ----------------------- | 1108 # ----------------------- |
1054 # Add some code to the start of the generated configure script which | 1109 # Find how we can fake an echo command that does not interpret backslash. |
1055 # will find an echo command which doesn't interpret backslashes. | 1110 # In particular, with Autoconf 2.60 or later we add some code to the start |
1111 # of the generated configure script which will find a shell with a builtin | |
1112 # printf (which we can use as an echo command). | |
1056 m4_defun([_LT_PROG_ECHO_BACKSLASH], | 1113 m4_defun([_LT_PROG_ECHO_BACKSLASH], |
1057 [_LT_SHELL_INIT([ | 1114 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
1058 # Check that we are running under the correct shell. | 1115 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
1059 SHELL=${CONFIG_SHELL-/bin/sh} | 1116 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
1060 | 1117 |
1061 case X$lt_ECHO in | 1118 AC_MSG_CHECKING([how to print strings]) |
1062 X*--fallback-echo) | 1119 # Test print first, because it will be a builtin if present. |
1063 # Remove one level of quotation (which was required for Make). | 1120 if test "X`print -r -- -n 2>/dev/null`" = X-n && \ |
1064 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` | 1121 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
1065 ;; | 1122 ECHO='print -r --' |
1123 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
1124 ECHO='printf %s\n' | |
1125 else | |
1126 # Use this function as a fallback that always works. | |
1127 func_fallback_echo () | |
1128 { | |
1129 eval 'cat <<_LTECHO_EOF | |
1130 $[]1 | |
1131 _LTECHO_EOF' | |
1132 } | |
1133 ECHO='func_fallback_echo' | |
1134 fi | |
1135 | |
1136 # func_echo_all arg... | |
1137 # Invoke $ECHO with all args, space-separated. | |
1138 func_echo_all () | |
1139 { | |
1140 $ECHO "$*" | |
1141 } | |
1142 | |
1143 case "$ECHO" in | |
1144 printf*) AC_MSG_RESULT([printf]) ;; | |
1145 print*) AC_MSG_RESULT([print -r]) ;; | |
1146 *) AC_MSG_RESULT([cat]) ;; | |
1066 esac | 1147 esac |
1067 | 1148 |
1068 ECHO=${lt_ECHO-echo} | 1149 m4_ifdef([_AS_DETECT_SUGGESTED], |
1069 if test "X[$]1" = X--no-reexec; then | 1150 [_AS_DETECT_SUGGESTED([ |
1070 # Discard the --no-reexec flag, and continue. | 1151 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( |
1071 shift | 1152 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
1072 elif test "X[$]1" = X--fallback-echo; then | 1153 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
1073 # Avoid inline document here, it may be left over | 1154 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
1074 : | 1155 PATH=/empty FPATH=/empty; export PATH FPATH |
1075 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then | 1156 test "X`printf %s $ECHO`" = "X$ECHO" \ |
1076 # Yippee, $ECHO works! | 1157 || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) |
1077 : | 1158 |
1078 else | |
1079 # Restart under the correct shell. | |
1080 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} | |
1081 fi | |
1082 | |
1083 if test "X[$]1" = X--fallback-echo; then | |
1084 # used as fallback echo | |
1085 shift | |
1086 cat <<_LT_EOF | |
1087 [$]* | |
1088 _LT_EOF | |
1089 exit 0 | |
1090 fi | |
1091 | |
1092 # The HP-UX ksh and POSIX shell print the target directory to stdout | |
1093 # if CDPATH is set. | |
1094 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
1095 | |
1096 if test -z "$lt_ECHO"; then | |
1097 if test "X${echo_test_string+set}" != Xset; then | |
1098 # find a string as large as possible, as long as the shell can cope with it | |
1099 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do | |
1100 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
1101 if { echo_test_string=`eval $cmd`; } 2>/dev/null && | |
1102 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | |
1103 then | |
1104 break | |
1105 fi | |
1106 done | |
1107 fi | |
1108 | |
1109 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
1110 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
1111 test "X$echo_testing_string" = "X$echo_test_string"; then | |
1112 : | |
1113 else | |
1114 # The Solaris, AIX, and Digital Unix default echo programs unquote | |
1115 # backslashes. This makes it impossible to quote backslashes using | |
1116 # echo "$something" | sed 's/\\/\\\\/g' | |
1117 # | |
1118 # So, first we look for a working echo in the user's PATH. | |
1119 | |
1120 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
1121 for dir in $PATH /usr/ucb; do | |
1122 IFS="$lt_save_ifs" | |
1123 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
1124 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
1125 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
1126 test "X$echo_testing_string" = "X$echo_test_string"; then | |
1127 ECHO="$dir/echo" | |
1128 break | |
1129 fi | |
1130 done | |
1131 IFS="$lt_save_ifs" | |
1132 | |
1133 if test "X$ECHO" = Xecho; then | |
1134 # We didn't find a better echo, so look for alternatives. | |
1135 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | |
1136 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | |
1137 test "X$echo_testing_string" = "X$echo_test_string"; then | |
1138 # This shell has a builtin print -r that does the trick. | |
1139 ECHO='print -r' | |
1140 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | |
1141 test "X$CONFIG_SHELL" != X/bin/ksh; then | |
1142 # If we have ksh, try running configure again with it. | |
1143 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
1144 export ORIGINAL_CONFIG_SHELL | |
1145 CONFIG_SHELL=/bin/ksh | |
1146 export CONFIG_SHELL | |
1147 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} | |
1148 else | |
1149 # Try using printf. | |
1150 ECHO='printf %s\n' | |
1151 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
1152 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
1153 test "X$echo_testing_string" = "X$echo_test_string"; then | |
1154 # Cool, printf works | |
1155 : | |
1156 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && | |
1157 test "X$echo_testing_string" = 'X\t' && | |
1158 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
1159 test "X$echo_testing_string" = "X$echo_test_string"; then | |
1160 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
1161 export CONFIG_SHELL | |
1162 SHELL="$CONFIG_SHELL" | |
1163 export SHELL | |
1164 ECHO="$CONFIG_SHELL [$]0 --fallback-echo" | |
1165 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && | |
1166 test "X$echo_testing_string" = 'X\t' && | |
1167 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
1168 test "X$echo_testing_string" = "X$echo_test_string"; then | |
1169 ECHO="$CONFIG_SHELL [$]0 --fallback-echo" | |
1170 else | |
1171 # maybe with a smaller string... | |
1172 prev=: | |
1173 | |
1174 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do | |
1175 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | |
1176 then | |
1177 break | |
1178 fi | |
1179 prev="$cmd" | |
1180 done | |
1181 | |
1182 if test "$prev" != 'sed 50q "[$]0"'; then | |
1183 echo_test_string=`eval $prev` | |
1184 export echo_test_string | |
1185 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} | |
1186 else | |
1187 # Oops. We lost completely, so just stick with echo. | |
1188 ECHO=echo | |
1189 fi | |
1190 fi | |
1191 fi | |
1192 fi | |
1193 fi | |
1194 fi | |
1195 | |
1196 # Copy echo and quote the copy suitably for passing to libtool from | |
1197 # the Makefile, instead of quoting the original, which is used later. | |
1198 lt_ECHO=$ECHO | |
1199 if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then | |
1200 lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" | |
1201 fi | |
1202 | |
1203 AC_SUBST(lt_ECHO) | |
1204 ]) | |
1205 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) | 1159 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) |
1206 _LT_DECL([], [ECHO], [1], | 1160 _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) |
1207 [An echo program that does not interpret backslashes]) | |
1208 ])# _LT_PROG_ECHO_BACKSLASH | 1161 ])# _LT_PROG_ECHO_BACKSLASH |
1209 | 1162 |
1210 | 1163 |
1211 # _LT_ENABLE_LOCK | 1164 # _LT_ENABLE_LOCK |
1212 # --------------- | 1165 # --------------- |
1234 fi | 1187 fi |
1235 rm -rf conftest* | 1188 rm -rf conftest* |
1236 ;; | 1189 ;; |
1237 *-*-irix6*) | 1190 *-*-irix6*) |
1238 # Find out which ABI we are using. | 1191 # Find out which ABI we are using. |
1239 echo '[#]line __oline__ "configure"' > conftest.$ac_ext | 1192 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext |
1240 if AC_TRY_EVAL(ac_compile); then | 1193 if AC_TRY_EVAL(ac_compile); then |
1241 if test "$lt_cv_prog_gnu_ld" = yes; then | 1194 if test "$lt_cv_prog_gnu_ld" = yes; then |
1242 case `/usr/bin/file conftest.$ac_objext` in | 1195 case `/usr/bin/file conftest.$ac_objext` in |
1243 *32-bit*) | 1196 *32-bit*) |
1244 LD="${LD-ld} -melf32bsmip" | 1197 LD="${LD-ld} -melf32bsmip" |
1386 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | 1339 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
1387 ;; | 1340 ;; |
1388 esac | 1341 esac |
1389 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | 1342 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
1390 fi | 1343 fi |
1344 | |
1345 case $host_os in | |
1346 darwin*) | |
1347 lock_old_archive_extraction=yes ;; | |
1348 *) | |
1349 lock_old_archive_extraction=no ;; | |
1350 esac | |
1391 _LT_DECL([], [old_postinstall_cmds], [2]) | 1351 _LT_DECL([], [old_postinstall_cmds], [2]) |
1392 _LT_DECL([], [old_postuninstall_cmds], [2]) | 1352 _LT_DECL([], [old_postuninstall_cmds], [2]) |
1393 _LT_TAGDECL([], [old_archive_cmds], [2], | 1353 _LT_TAGDECL([], [old_archive_cmds], [2], |
1394 [Commands used to build an old-style archive]) | 1354 [Commands used to build an old-style archive]) |
1355 _LT_DECL([], [lock_old_archive_extraction], [0], | |
1356 [Whether to use a lock for old archive extraction]) | |
1395 ])# _LT_CMD_OLD_ARCHIVE | 1357 ])# _LT_CMD_OLD_ARCHIVE |
1396 | 1358 |
1397 | 1359 |
1398 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, | 1360 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
1399 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) | 1361 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) |
1414 # The option is referenced via a variable to avoid confusing sed. | 1376 # The option is referenced via a variable to avoid confusing sed. |
1415 lt_compile=`echo "$ac_compile" | $SED \ | 1377 lt_compile=`echo "$ac_compile" | $SED \ |
1416 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 1378 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
1417 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ | 1379 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
1418 -e 's:$: $lt_compiler_flag:'` | 1380 -e 's:$: $lt_compiler_flag:'` |
1419 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) | 1381 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
1420 (eval "$lt_compile" 2>conftest.err) | 1382 (eval "$lt_compile" 2>conftest.err) |
1421 ac_status=$? | 1383 ac_status=$? |
1422 cat conftest.err >&AS_MESSAGE_LOG_FD | 1384 cat conftest.err >&AS_MESSAGE_LOG_FD |
1423 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | 1385 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
1424 if (exit $ac_status) && test -s "$ac_outfile"; then | 1386 if (exit $ac_status) && test -s "$ac_outfile"; then |
1425 # The compiler can only warn and ignore the option if not recognized | 1387 # The compiler can only warn and ignore the option if not recognized |
1426 # So say no if there are warnings other than the usual output. | 1388 # So say no if there are warnings other than the usual output. |
1427 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | 1389 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
1428 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | 1390 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
1429 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | 1391 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
1430 $2=yes | 1392 $2=yes |
1431 fi | 1393 fi |
1432 fi | 1394 fi |
1462 # The linker can only warn and ignore the option if not recognized | 1424 # The linker can only warn and ignore the option if not recognized |
1463 # So say no if there are warnings | 1425 # So say no if there are warnings |
1464 if test -s conftest.err; then | 1426 if test -s conftest.err; then |
1465 # Append any errors to the config.log. | 1427 # Append any errors to the config.log. |
1466 cat conftest.err 1>&AS_MESSAGE_LOG_FD | 1428 cat conftest.err 1>&AS_MESSAGE_LOG_FD |
1467 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | 1429 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
1468 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | 1430 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
1469 if diff conftest.exp conftest.er2 >/dev/null; then | 1431 if diff conftest.exp conftest.er2 >/dev/null; then |
1470 $2=yes | 1432 $2=yes |
1471 fi | 1433 fi |
1472 else | 1434 else |
1522 # Worse, since 9x/ME are not pre-emptively multitasking, | 1484 # Worse, since 9x/ME are not pre-emptively multitasking, |
1523 # you end up with a "frozen" computer, even though with patience | 1485 # you end up with a "frozen" computer, even though with patience |
1524 # the test eventually succeeds (with a max line length of 256k). | 1486 # the test eventually succeeds (with a max line length of 256k). |
1525 # Instead, let's just punt: use the minimum linelength reported by | 1487 # Instead, let's just punt: use the minimum linelength reported by |
1526 # all of the supported platforms: 8192 (on NT/2K/XP). | 1488 # all of the supported platforms: 8192 (on NT/2K/XP). |
1489 lt_cv_sys_max_cmd_len=8192; | |
1490 ;; | |
1491 | |
1492 mint*) | |
1493 # On MiNT this can take a long time and run out of memory. | |
1527 lt_cv_sys_max_cmd_len=8192; | 1494 lt_cv_sys_max_cmd_len=8192; |
1528 ;; | 1495 ;; |
1529 | 1496 |
1530 amigaos*) | 1497 amigaos*) |
1531 # On AmigaOS with pdksh, this test takes hours, literally. | 1498 # On AmigaOS with pdksh, this test takes hours, literally. |
1589 done | 1556 done |
1590 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | 1557 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
1591 # If test is not a shell built-in, we'll probably end up computing a | 1558 # If test is not a shell built-in, we'll probably end up computing a |
1592 # maximum length that is only half of the actual maximum length, but | 1559 # maximum length that is only half of the actual maximum length, but |
1593 # we can't tell. | 1560 # we can't tell. |
1594 while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | 1561 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ |
1595 = "XX$teststring$teststring"; } >/dev/null 2>&1 && | 1562 = "X$teststring$teststring"; } >/dev/null 2>&1 && |
1596 test $i != 17 # 1/2 MB should be enough | 1563 test $i != 17 # 1/2 MB should be enough |
1597 do | 1564 do |
1598 i=`expr $i + 1` | 1565 i=`expr $i + 1` |
1599 teststring=$teststring$teststring | 1566 teststring=$teststring$teststring |
1600 done | 1567 done |
1682 # endif | 1649 # endif |
1683 # endif | 1650 # endif |
1684 # endif | 1651 # endif |
1685 #endif | 1652 #endif |
1686 | 1653 |
1687 void fnord() { int i=42;} | 1654 /* When -fvisbility=hidden is used, assume the code has been annotated |
1655 correspondingly for the symbols needed. */ | |
1656 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
1657 void fnord () __attribute__((visibility("default"))); | |
1658 #endif | |
1659 | |
1660 void fnord () { int i=42; } | |
1688 int main () | 1661 int main () |
1689 { | 1662 { |
1690 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 1663 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
1691 int status = $lt_dlunknown; | 1664 int status = $lt_dlunknown; |
1692 | 1665 |
1693 if (self) | 1666 if (self) |
1694 { | 1667 { |
1695 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | 1668 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
1696 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 1669 else |
1670 { | |
1671 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
1672 else puts (dlerror ()); | |
1673 } | |
1697 /* dlclose (self); */ | 1674 /* dlclose (self); */ |
1698 } | 1675 } |
1699 else | 1676 else |
1700 puts (dlerror ()); | 1677 puts (dlerror ()); |
1701 | 1678 |
1867 # with a dollar sign (not a hyphen), so the echo should work correctly. | 1844 # with a dollar sign (not a hyphen), so the echo should work correctly. |
1868 lt_compile=`echo "$ac_compile" | $SED \ | 1845 lt_compile=`echo "$ac_compile" | $SED \ |
1869 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 1846 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
1870 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ | 1847 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
1871 -e 's:$: $lt_compiler_flag:'` | 1848 -e 's:$: $lt_compiler_flag:'` |
1872 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) | 1849 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
1873 (eval "$lt_compile" 2>out/conftest.err) | 1850 (eval "$lt_compile" 2>out/conftest.err) |
1874 ac_status=$? | 1851 ac_status=$? |
1875 cat out/conftest.err >&AS_MESSAGE_LOG_FD | 1852 cat out/conftest.err >&AS_MESSAGE_LOG_FD |
1876 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | 1853 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
1877 if (exit $ac_status) && test -s out/conftest2.$ac_objext | 1854 if (exit $ac_status) && test -s out/conftest2.$ac_objext |
1878 then | 1855 then |
1879 # The compiler can only warn and ignore the option if not recognized | 1856 # The compiler can only warn and ignore the option if not recognized |
1880 # So say no if there are warnings | 1857 # So say no if there are warnings |
1881 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | 1858 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
1882 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | 1859 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
1883 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | 1860 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
1884 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes | 1861 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
1885 fi | 1862 fi |
1886 fi | 1863 fi |
2035 [AC_REQUIRE([AC_CANONICAL_HOST])dnl | 2012 [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
2036 m4_require([_LT_DECL_EGREP])dnl | 2013 m4_require([_LT_DECL_EGREP])dnl |
2037 m4_require([_LT_FILEUTILS_DEFAULTS])dnl | 2014 m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
2038 m4_require([_LT_DECL_OBJDUMP])dnl | 2015 m4_require([_LT_DECL_OBJDUMP])dnl |
2039 m4_require([_LT_DECL_SED])dnl | 2016 m4_require([_LT_DECL_SED])dnl |
2017 m4_require([_LT_CHECK_SHELL_FEATURES])dnl | |
2040 AC_MSG_CHECKING([dynamic linker characteristics]) | 2018 AC_MSG_CHECKING([dynamic linker characteristics]) |
2041 m4_if([$1], | 2019 m4_if([$1], |
2042 [], [ | 2020 [], [ |
2043 if test "$GCC" = yes; then | 2021 if test "$GCC" = yes; then |
2044 case $host_os in | 2022 case $host_os in |
2045 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | 2023 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
2046 *) lt_awk_arg="/^libraries:/" ;; | 2024 *) lt_awk_arg="/^libraries:/" ;; |
2047 esac | 2025 esac |
2048 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 2026 case $host_os in |
2049 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | 2027 mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;; |
2028 *) lt_sed_strip_eq="s,=/,/,g" ;; | |
2029 esac | |
2030 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
2031 case $lt_search_path_spec in | |
2032 *\;*) | |
2050 # if the path contains ";" then we assume it to be the separator | 2033 # if the path contains ";" then we assume it to be the separator |
2051 # otherwise default to the standard path separator (i.e. ":") - it is | 2034 # otherwise default to the standard path separator (i.e. ":") - it is |
2052 # assumed that no part of a normal pathname contains ";" but that should | 2035 # assumed that no part of a normal pathname contains ";" but that should |
2053 # okay in the real world where ";" in dirpaths is itself problematic. | 2036 # okay in the real world where ";" in dirpaths is itself problematic. |
2054 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | 2037 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
2055 else | 2038 ;; |
2056 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | 2039 *) |
2057 fi | 2040 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` |
2041 ;; | |
2042 esac | |
2058 # Ok, now we have the path, separated by spaces, we can step through it | 2043 # Ok, now we have the path, separated by spaces, we can step through it |
2059 # and add multilib dir if necessary. | 2044 # and add multilib dir if necessary. |
2060 lt_tmp_lt_search_path_spec= | 2045 lt_tmp_lt_search_path_spec= |
2061 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | 2046 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
2062 for lt_sys_path in $lt_search_path_spec; do | 2047 for lt_sys_path in $lt_search_path_spec; do |
2065 else | 2050 else |
2066 test -d "$lt_sys_path" && \ | 2051 test -d "$lt_sys_path" && \ |
2067 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | 2052 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
2068 fi | 2053 fi |
2069 done | 2054 done |
2070 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | 2055 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
2071 BEGIN {RS=" "; FS="/|\n";} { | 2056 BEGIN {RS=" "; FS="/|\n";} { |
2072 lt_foo=""; | 2057 lt_foo=""; |
2073 lt_count=0; | 2058 lt_count=0; |
2074 for (lt_i = NF; lt_i > 0; lt_i--) { | 2059 for (lt_i = NF; lt_i > 0; lt_i--) { |
2075 if ($lt_i != "" && $lt_i != ".") { | 2060 if ($lt_i != "" && $lt_i != ".") { |
2085 } | 2070 } |
2086 } | 2071 } |
2087 if (lt_foo != "") { lt_freq[[lt_foo]]++; } | 2072 if (lt_foo != "") { lt_freq[[lt_foo]]++; } |
2088 if (lt_freq[[lt_foo]] == 1) { print lt_foo; } | 2073 if (lt_freq[[lt_foo]] == 1) { print lt_foo; } |
2089 }'` | 2074 }'` |
2090 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | 2075 # AWK program above erroneously prepends '/' to C:/dos/paths |
2076 # for these hosts. | |
2077 case $host_os in | |
2078 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
2079 $SED 's,/\([[A-Za-z]]:\),\1,g'` ;; | |
2080 esac | |
2081 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
2091 else | 2082 else |
2092 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 2083 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
2093 fi]) | 2084 fi]) |
2094 library_names_spec= | 2085 library_names_spec= |
2095 libname_spec='lib$name' | 2086 libname_spec='lib$name' |
2173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 2164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2174 ;; | 2165 ;; |
2175 m68k) | 2166 m68k) |
2176 library_names_spec='$libname.ixlibrary $libname.a' | 2167 library_names_spec='$libname.ixlibrary $libname.a' |
2177 # Create ${libname}_ixlibrary.a entries in /sys/libs. | 2168 # Create ${libname}_ixlibrary.a entries in /sys/libs. |
2178 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' | 2169 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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' |
2179 ;; | 2170 ;; |
2180 esac | 2171 esac |
2181 ;; | 2172 ;; |
2182 | 2173 |
2183 beos*) | 2174 beos*) |
2226 | 2217 |
2227 case $host_os in | 2218 case $host_os in |
2228 cygwin*) | 2219 cygwin*) |
2229 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 2220 # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
2230 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | 2221 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
2231 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | 2222 m4_if([$1], [],[ |
2223 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) | |
2232 ;; | 2224 ;; |
2233 mingw* | cegcc*) | 2225 mingw* | cegcc*) |
2234 # MinGW DLLs use traditional 'lib' prefix | 2226 # MinGW DLLs use traditional 'lib' prefix |
2235 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | 2227 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
2236 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
2237 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then | |
2238 # It is most probably a Windows format PATH printed by | |
2239 # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
2240 # path with ; separators, and with drive letters. We can handle the | |
2241 # drive letters (cygwin fileutils understands them), so leave them, | |
2242 # especially as we might pass files found there to a mingw objdump, | |
2243 # which wouldn't understand a cygwinified path. Ahh. | |
2244 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
2245 else | |
2246 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
2247 fi | |
2248 ;; | 2228 ;; |
2249 pw32*) | 2229 pw32*) |
2250 # pw32 DLLs use 'pw' prefix rather than 'lib' | 2230 # pw32 DLLs use 'pw' prefix rather than 'lib' |
2251 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | 2231 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
2252 ;; | 2232 ;; |
2339 need_lib_prefix=no | 2319 need_lib_prefix=no |
2340 need_version=no | 2320 need_version=no |
2341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 2321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
2342 soname_spec='${libname}${release}${shared_ext}$major' | 2322 soname_spec='${libname}${release}${shared_ext}$major' |
2343 shlibpath_var=LD_LIBRARY_PATH | 2323 shlibpath_var=LD_LIBRARY_PATH |
2324 hardcode_into_libs=yes | |
2325 ;; | |
2326 | |
2327 haiku*) | |
2328 version_type=linux | |
2329 need_lib_prefix=no | |
2330 need_version=no | |
2331 dynamic_linker="$host_os runtime_loader" | |
2332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
2333 soname_spec='${libname}${release}${shared_ext}$major' | |
2334 shlibpath_var=LIBRARY_PATH | |
2335 shlibpath_overrides_runpath=yes | |
2336 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
2344 hardcode_into_libs=yes | 2337 hardcode_into_libs=yes |
2345 ;; | 2338 ;; |
2346 | 2339 |
2347 hpux9* | hpux10* | hpux11*) | 2340 hpux9* | hpux10* | hpux11*) |
2348 # Give a soname corresponding to the major version so that dld.sl refuses to | 2341 # Give a soname corresponding to the major version so that dld.sl refuses to |
2384 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 2377 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
2385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 2378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2386 soname_spec='${libname}${release}${shared_ext}$major' | 2379 soname_spec='${libname}${release}${shared_ext}$major' |
2387 ;; | 2380 ;; |
2388 esac | 2381 esac |
2389 # HP-UX runs *really* slowly unless shared libraries are mode 555. | 2382 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
2390 postinstall_cmds='chmod 555 $lib' | 2383 postinstall_cmds='chmod 555 $lib' |
2384 # or fails outright, so override atomically: | |
2385 install_override_mode=555 | |
2391 ;; | 2386 ;; |
2392 | 2387 |
2393 interix[[3-9]]*) | 2388 interix[[3-9]]*) |
2394 version_type=linux | 2389 version_type=linux |
2395 need_lib_prefix=no | 2390 need_lib_prefix=no |
2475 # before this can be enabled. | 2470 # before this can be enabled. |
2476 hardcode_into_libs=yes | 2471 hardcode_into_libs=yes |
2477 | 2472 |
2478 # Append ld.so.conf contents to the search path | 2473 # Append ld.so.conf contents to the search path |
2479 if test -f /etc/ld.so.conf; then | 2474 if test -f /etc/ld.so.conf; then |
2480 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' ' '` | 2475 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;s/"//g;/^$/d' | tr '\n' ' '` |
2481 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | 2476 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
2482 fi | 2477 fi |
2483 | 2478 |
2484 # We used to test for /lib/ld.so.1 and disable shared libraries on | 2479 # We used to test for /lib/ld.so.1 and disable shared libraries on |
2485 # powerpc, because MkLinux only supported shared libraries with the | 2480 # powerpc, because MkLinux only supported shared libraries with the |
2708 _LT_DECL([], [library_names_spec], [1], | 2703 _LT_DECL([], [library_names_spec], [1], |
2709 [[List of archive names. First name is the real one, the rest are links. | 2704 [[List of archive names. First name is the real one, the rest are links. |
2710 The last name is the one that the linker finds with -lNAME]]) | 2705 The last name is the one that the linker finds with -lNAME]]) |
2711 _LT_DECL([], [soname_spec], [1], | 2706 _LT_DECL([], [soname_spec], [1], |
2712 [[The coded name of the library, if different from the real name]]) | 2707 [[The coded name of the library, if different from the real name]]) |
2708 _LT_DECL([], [install_override_mode], [1], | |
2709 [Permission mode override for installation of shared libraries]) | |
2713 _LT_DECL([], [postinstall_cmds], [2], | 2710 _LT_DECL([], [postinstall_cmds], [2], |
2714 [Command to use after installation of a shared archive]) | 2711 [Command to use after installation of a shared archive]) |
2715 _LT_DECL([], [postuninstall_cmds], [2], | 2712 _LT_DECL([], [postuninstall_cmds], [2], |
2716 [Command to use after uninstallation of a shared archive]) | 2713 [Command to use after uninstallation of a shared archive]) |
2717 _LT_DECL([], [finish_cmds], [2], | 2714 _LT_DECL([], [finish_cmds], [2], |
2820 [AC_REQUIRE([AC_PROG_CC])dnl | 2817 [AC_REQUIRE([AC_PROG_CC])dnl |
2821 AC_REQUIRE([AC_CANONICAL_HOST])dnl | 2818 AC_REQUIRE([AC_CANONICAL_HOST])dnl |
2822 AC_REQUIRE([AC_CANONICAL_BUILD])dnl | 2819 AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
2823 m4_require([_LT_DECL_SED])dnl | 2820 m4_require([_LT_DECL_SED])dnl |
2824 m4_require([_LT_DECL_EGREP])dnl | 2821 m4_require([_LT_DECL_EGREP])dnl |
2822 m4_require([_LT_PROG_ECHO_BACKSLASH])dnl | |
2825 | 2823 |
2826 AC_ARG_WITH([gnu-ld], | 2824 AC_ARG_WITH([gnu-ld], |
2827 [AS_HELP_STRING([--with-gnu-ld], | 2825 [AS_HELP_STRING([--with-gnu-ld], |
2828 [assume the C compiler uses GNU ld @<:@default=no@:>@])], | 2826 [assume the C compiler uses GNU ld @<:@default=no@:>@])], |
2829 [test "$withval" = no || with_gnu_ld=yes], | 2827 [test "$withval" = no || with_gnu_ld=yes], |
2949 else | 2947 else |
2950 reload_cmds='$LD$reload_flag -o $output$reload_objs' | 2948 reload_cmds='$LD$reload_flag -o $output$reload_objs' |
2951 fi | 2949 fi |
2952 ;; | 2950 ;; |
2953 esac | 2951 esac |
2954 _LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl | 2952 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl |
2955 _LT_DECL([], [reload_cmds], [2])dnl | 2953 _LT_TAGDECL([], [reload_cmds], [2])dnl |
2956 ])# _LT_CMD_RELOAD | 2954 ])# _LT_CMD_RELOAD |
2957 | 2955 |
2958 | 2956 |
2959 # _LT_CHECK_MAGIC_METHOD | 2957 # _LT_CHECK_MAGIC_METHOD |
2960 # ---------------------- | 2958 # ---------------------- |
3002 | 3000 |
3003 mingw* | pw32*) | 3001 mingw* | pw32*) |
3004 # Base MSYS/MinGW do not provide the 'file' command needed by | 3002 # Base MSYS/MinGW do not provide the 'file' command needed by |
3005 # func_win32_libid shell function, so use a weaker test based on 'objdump', | 3003 # func_win32_libid shell function, so use a weaker test based on 'objdump', |
3006 # unless we find 'file', for example because we are cross-compiling. | 3004 # unless we find 'file', for example because we are cross-compiling. |
3007 if ( file / ) >/dev/null 2>&1; then | 3005 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
3006 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
3008 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | 3007 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
3009 lt_cv_file_magic_cmd='func_win32_libid' | 3008 lt_cv_file_magic_cmd='func_win32_libid' |
3010 else | 3009 else |
3011 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | 3010 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
3012 lt_cv_file_magic_cmd='$OBJDUMP -f' | 3011 lt_cv_file_magic_cmd='$OBJDUMP -f' |
3013 fi | 3012 fi |
3014 ;; | 3013 ;; |
3015 | 3014 |
3016 cegcc) | 3015 cegcc*) |
3017 # use the weaker test based on 'objdump'. See mingw*. | 3016 # use the weaker test based on 'objdump'. See mingw*. |
3018 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | 3017 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
3019 lt_cv_file_magic_cmd='$OBJDUMP -f' | 3018 lt_cv_file_magic_cmd='$OBJDUMP -f' |
3020 ;; | 3019 ;; |
3021 | 3020 |
3041 | 3040 |
3042 gnu*) | 3041 gnu*) |
3043 lt_cv_deplibs_check_method=pass_all | 3042 lt_cv_deplibs_check_method=pass_all |
3044 ;; | 3043 ;; |
3045 | 3044 |
3045 haiku*) | |
3046 lt_cv_deplibs_check_method=pass_all | |
3047 ;; | |
3048 | |
3046 hpux10.20* | hpux11*) | 3049 hpux10.20* | hpux11*) |
3047 lt_cv_file_magic_cmd=/usr/bin/file | 3050 lt_cv_file_magic_cmd=/usr/bin/file |
3048 case $host_cpu in | 3051 case $host_cpu in |
3049 ia64*) | 3052 ia64*) |
3050 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' | 3053 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' |
3051 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | 3054 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
3052 ;; | 3055 ;; |
3053 hppa*64*) | 3056 hppa*64*) |
3054 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] | 3057 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'] |
3055 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | 3058 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
3056 ;; | 3059 ;; |
3057 *) | 3060 *) |
3058 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' | 3061 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' |
3059 lt_cv_file_magic_test_file=/usr/lib/libc.sl | 3062 lt_cv_file_magic_test_file=/usr/lib/libc.sl |
3060 ;; | 3063 ;; |
3061 esac | 3064 esac |
3062 ;; | 3065 ;; |
3063 | 3066 |
3217 fi]) | 3220 fi]) |
3218 if test "$lt_cv_path_NM" != "no"; then | 3221 if test "$lt_cv_path_NM" != "no"; then |
3219 NM="$lt_cv_path_NM" | 3222 NM="$lt_cv_path_NM" |
3220 else | 3223 else |
3221 # Didn't find any BSD compatible name lister, look for dumpbin. | 3224 # Didn't find any BSD compatible name lister, look for dumpbin. |
3222 AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :) | 3225 if test -n "$DUMPBIN"; then : |
3226 # Let the user override the test. | |
3227 else | |
3228 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) | |
3229 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in | |
3230 *COFF*) | |
3231 DUMPBIN="$DUMPBIN -symbols" | |
3232 ;; | |
3233 *) | |
3234 DUMPBIN=: | |
3235 ;; | |
3236 esac | |
3237 fi | |
3223 AC_SUBST([DUMPBIN]) | 3238 AC_SUBST([DUMPBIN]) |
3224 if test "$DUMPBIN" != ":"; then | 3239 if test "$DUMPBIN" != ":"; then |
3225 NM="$DUMPBIN" | 3240 NM="$DUMPBIN" |
3226 fi | 3241 fi |
3227 fi | 3242 fi |
3230 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl | 3245 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl |
3231 | 3246 |
3232 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], | 3247 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], |
3233 [lt_cv_nm_interface="BSD nm" | 3248 [lt_cv_nm_interface="BSD nm" |
3234 echo "int some_variable = 0;" > conftest.$ac_ext | 3249 echo "int some_variable = 0;" > conftest.$ac_ext |
3235 (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD) | 3250 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) |
3236 (eval "$ac_compile" 2>conftest.err) | 3251 (eval "$ac_compile" 2>conftest.err) |
3237 cat conftest.err >&AS_MESSAGE_LOG_FD | 3252 cat conftest.err >&AS_MESSAGE_LOG_FD |
3238 (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) | 3253 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) |
3239 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | 3254 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
3240 cat conftest.err >&AS_MESSAGE_LOG_FD | 3255 cat conftest.err >&AS_MESSAGE_LOG_FD |
3241 (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD) | 3256 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) |
3242 cat conftest.out >&AS_MESSAGE_LOG_FD | 3257 cat conftest.out >&AS_MESSAGE_LOG_FD |
3243 if $GREP 'External.*some_variable' conftest.out > /dev/null; then | 3258 if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
3244 lt_cv_nm_interface="MS dumpbin" | 3259 lt_cv_nm_interface="MS dumpbin" |
3245 fi | 3260 fi |
3246 rm -f conftest*]) | 3261 rm -f conftest*]) |
3259 # check for math library | 3274 # check for math library |
3260 AC_DEFUN([LT_LIB_M], | 3275 AC_DEFUN([LT_LIB_M], |
3261 [AC_REQUIRE([AC_CANONICAL_HOST])dnl | 3276 [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
3262 LIBM= | 3277 LIBM= |
3263 case $host in | 3278 case $host in |
3264 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) | 3279 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) |
3265 # These system don't have libm, or don't need it | 3280 # These system don't have libm, or don't need it |
3266 ;; | 3281 ;; |
3267 *-ncr-sysv4.3*) | 3282 *-ncr-sysv4.3*) |
3268 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") | 3283 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") |
3269 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") | 3284 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") |
3287 [m4_require([_LT_TAG_COMPILER])dnl | 3302 [m4_require([_LT_TAG_COMPILER])dnl |
3288 | 3303 |
3289 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= | 3304 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= |
3290 | 3305 |
3291 if test "$GCC" = yes; then | 3306 if test "$GCC" = yes; then |
3292 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' | 3307 case $cc_basename in |
3308 nvcc*) | |
3309 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; | |
3310 *) | |
3311 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; | |
3312 esac | |
3293 | 3313 |
3294 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], | 3314 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], |
3295 lt_cv_prog_compiler_rtti_exceptions, | 3315 lt_cv_prog_compiler_rtti_exceptions, |
3296 [-fno-rtti -fno-exceptions], [], | 3316 [-fno-rtti -fno-exceptions], [], |
3297 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) | 3317 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) |
3304 # _LT_CMD_GLOBAL_SYMBOLS | 3324 # _LT_CMD_GLOBAL_SYMBOLS |
3305 # ---------------------- | 3325 # ---------------------- |
3306 m4_defun([_LT_CMD_GLOBAL_SYMBOLS], | 3326 m4_defun([_LT_CMD_GLOBAL_SYMBOLS], |
3307 [AC_REQUIRE([AC_CANONICAL_HOST])dnl | 3327 [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
3308 AC_REQUIRE([AC_PROG_CC])dnl | 3328 AC_REQUIRE([AC_PROG_CC])dnl |
3329 AC_REQUIRE([AC_PROG_AWK])dnl | |
3309 AC_REQUIRE([LT_PATH_NM])dnl | 3330 AC_REQUIRE([LT_PATH_NM])dnl |
3310 AC_REQUIRE([LT_PATH_LD])dnl | 3331 AC_REQUIRE([LT_PATH_LD])dnl |
3311 m4_require([_LT_DECL_SED])dnl | 3332 m4_require([_LT_DECL_SED])dnl |
3312 m4_require([_LT_DECL_EGREP])dnl | 3333 m4_require([_LT_DECL_EGREP])dnl |
3313 m4_require([_LT_TAG_COMPILER])dnl | 3334 m4_require([_LT_TAG_COMPILER])dnl |
3429 _LT_EOF | 3450 _LT_EOF |
3430 | 3451 |
3431 if AC_TRY_EVAL(ac_compile); then | 3452 if AC_TRY_EVAL(ac_compile); then |
3432 # Now try to grab the symbols. | 3453 # Now try to grab the symbols. |
3433 nlist=conftest.nm | 3454 nlist=conftest.nm |
3434 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then | 3455 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then |
3435 # Try sorting and uniquifying the output. | 3456 # Try sorting and uniquifying the output. |
3436 if sort "$nlist" | uniq > "$nlist"T; then | 3457 if sort "$nlist" | uniq > "$nlist"T; then |
3437 mv -f "$nlist"T "$nlist" | 3458 mv -f "$nlist"T "$nlist" |
3438 else | 3459 else |
3439 rm -f "$nlist"T | 3460 rm -f "$nlist"T |
3590 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' | 3611 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' |
3591 ;; | 3612 ;; |
3592 *djgpp*) | 3613 *djgpp*) |
3593 # DJGPP does not support shared libraries at all | 3614 # DJGPP does not support shared libraries at all |
3594 _LT_TAGVAR(lt_prog_compiler_pic, $1)= | 3615 _LT_TAGVAR(lt_prog_compiler_pic, $1)= |
3616 ;; | |
3617 haiku*) | |
3618 # PIC is the default for Haiku. | |
3619 # The "-static" flag exists, but is broken. | |
3620 _LT_TAGVAR(lt_prog_compiler_static, $1)= | |
3595 ;; | 3621 ;; |
3596 interix[[3-9]]*) | 3622 interix[[3-9]]*) |
3597 # Interix 3.x gcc -fpic/-fPIC options generate broken code. | 3623 # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
3598 # Instead, we relocate shared libraries at runtime. | 3624 # Instead, we relocate shared libraries at runtime. |
3599 ;; | 3625 ;; |
3729 # Make sure the PIC flag is empty. It appears that all Alpha | 3755 # Make sure the PIC flag is empty. It appears that all Alpha |
3730 # Linux and Compaq Tru64 Unix objects are PIC. | 3756 # Linux and Compaq Tru64 Unix objects are PIC. |
3731 _LT_TAGVAR(lt_prog_compiler_pic, $1)= | 3757 _LT_TAGVAR(lt_prog_compiler_pic, $1)= |
3732 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | 3758 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
3733 ;; | 3759 ;; |
3734 xlc* | xlC*) | 3760 xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) |
3735 # IBM XL 8.0 on PPC | 3761 # IBM XL 8.0, 9.0 on PPC and BlueGene |
3736 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 3762 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
3737 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' | 3763 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' |
3738 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' | 3764 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' |
3739 ;; | 3765 ;; |
3740 *) | 3766 *) |
3896 # PIC is the default on this platform | 3922 # PIC is the default on this platform |
3897 # Common symbols not allowed in MH_DYLIB files | 3923 # Common symbols not allowed in MH_DYLIB files |
3898 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' | 3924 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' |
3899 ;; | 3925 ;; |
3900 | 3926 |
3927 haiku*) | |
3928 # PIC is the default for Haiku. | |
3929 # The "-static" flag exists, but is broken. | |
3930 _LT_TAGVAR(lt_prog_compiler_static, $1)= | |
3931 ;; | |
3932 | |
3901 hpux*) | 3933 hpux*) |
3902 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | 3934 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
3903 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | 3935 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
3904 # sets the default TLS model and affects inlining. | 3936 # sets the default TLS model and affects inlining. |
3905 case $host_cpu in | 3937 case $host_cpu in |
3936 fi | 3968 fi |
3937 ;; | 3969 ;; |
3938 | 3970 |
3939 *) | 3971 *) |
3940 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | 3972 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
3973 ;; | |
3974 esac | |
3975 | |
3976 case $cc_basename in | |
3977 nvcc*) # Cuda Compiler Driver 2.2 | |
3978 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' | |
3979 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC' | |
3941 ;; | 3980 ;; |
3942 esac | 3981 esac |
3943 else | 3982 else |
3944 # PORTME Check for flag to pass linker flags through the system compiler. | 3983 # PORTME Check for flag to pass linker flags through the system compiler. |
3945 case $host_os in | 3984 case $host_os in |
4001 lf95*) | 4040 lf95*) |
4002 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4041 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4003 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' | 4042 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' |
4004 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' | 4043 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' |
4005 ;; | 4044 ;; |
4006 pgcc* | pgf77* | pgf90* | pgf95*) | 4045 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
4007 # Portland Group compilers (*not* the Pentium gcc compiler, | 4046 # Portland Group compilers (*not* the Pentium gcc compiler, |
4008 # which looks to be a dead project) | 4047 # which looks to be a dead project) |
4009 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4048 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4010 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' | 4049 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' |
4011 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4050 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4013 ccc*) | 4052 ccc*) |
4014 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4053 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4015 # All Alpha code is PIC. | 4054 # All Alpha code is PIC. |
4016 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | 4055 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
4017 ;; | 4056 ;; |
4018 xl*) | 4057 xl* | bgxl* | bgf* | mpixl*) |
4019 # IBM XL C 8.0/Fortran 10.1 on PPC | 4058 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
4020 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4059 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4021 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' | 4060 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' |
4022 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' | 4061 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' |
4023 ;; | 4062 ;; |
4024 *) | 4063 *) |
4025 case `$CC -V 2>&1 | sed 5q` in | 4064 case `$CC -V 2>&1 | sed 5q` in |
4065 *Sun\ F* | *Sun*Fortran*) | |
4066 # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
4067 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
4068 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
4069 _LT_TAGVAR(lt_prog_compiler_wl, $1)='' | |
4070 ;; | |
4026 *Sun\ C*) | 4071 *Sun\ C*) |
4027 # Sun C 5.9 | 4072 # Sun C 5.9 |
4028 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 4073 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4029 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4074 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4030 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4075 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4031 ;; | |
4032 *Sun\ F*) | |
4033 # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
4034 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
4035 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
4036 _LT_TAGVAR(lt_prog_compiler_wl, $1)='' | |
4037 ;; | 4076 ;; |
4038 esac | 4077 esac |
4039 ;; | 4078 ;; |
4040 esac | 4079 esac |
4041 ;; | 4080 ;; |
4173 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 4212 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
4174 case $host_os in | 4213 case $host_os in |
4175 aix[[4-9]]*) | 4214 aix[[4-9]]*) |
4176 # If we're using GNU nm, then we don't want the "-C" option. | 4215 # If we're using GNU nm, then we don't want the "-C" option. |
4177 # -C means demangle to AIX nm, but means don't demangle with GNU nm | 4216 # -C means demangle to AIX nm, but means don't demangle with GNU nm |
4217 # Also, AIX nm treats weak defined symbols like other global defined | |
4218 # symbols, whereas GNU nm marks them as "W". | |
4178 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | 4219 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
4179 _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' | 4220 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
4180 else | 4221 else |
4181 _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' | 4222 _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' |
4182 fi | 4223 fi |
4183 ;; | 4224 ;; |
4184 pw32*) | 4225 pw32*) |
4252 with_gnu_ld=no | 4293 with_gnu_ld=no |
4253 ;; | 4294 ;; |
4254 esac | 4295 esac |
4255 | 4296 |
4256 _LT_TAGVAR(ld_shlibs, $1)=yes | 4297 _LT_TAGVAR(ld_shlibs, $1)=yes |
4298 | |
4299 # On some targets, GNU ld is compatible enough with the native linker | |
4300 # that we're better off using the native interface for both. | |
4301 lt_use_gnu_ld_interface=no | |
4257 if test "$with_gnu_ld" = yes; then | 4302 if test "$with_gnu_ld" = yes; then |
4303 case $host_os in | |
4304 aix*) | |
4305 # The AIX port of GNU ld has always aspired to compatibility | |
4306 # with the native linker. However, as the warning in the GNU ld | |
4307 # block says, versions before 2.19.5* couldn't really create working | |
4308 # shared libraries, regardless of the interface used. | |
4309 case `$LD -v 2>&1` in | |
4310 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
4311 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; | |
4312 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; | |
4313 *) | |
4314 lt_use_gnu_ld_interface=yes | |
4315 ;; | |
4316 esac | |
4317 ;; | |
4318 *) | |
4319 lt_use_gnu_ld_interface=yes | |
4320 ;; | |
4321 esac | |
4322 fi | |
4323 | |
4324 if test "$lt_use_gnu_ld_interface" = yes; then | |
4258 # If archive_cmds runs LD, not CC, wlarc should be empty | 4325 # If archive_cmds runs LD, not CC, wlarc should be empty |
4259 wlarc='${wl}' | 4326 wlarc='${wl}' |
4260 | 4327 |
4261 # Set some defaults for GNU ld with shared library support. These | 4328 # Set some defaults for GNU ld with shared library support. These |
4262 # are reset later if shared libraries are not supported. Putting them | 4329 # are reset later if shared libraries are not supported. Putting them |
4270 else | 4337 else |
4271 _LT_TAGVAR(whole_archive_flag_spec, $1)= | 4338 _LT_TAGVAR(whole_archive_flag_spec, $1)= |
4272 fi | 4339 fi |
4273 supports_anon_versioning=no | 4340 supports_anon_versioning=no |
4274 case `$LD -v 2>&1` in | 4341 case `$LD -v 2>&1` in |
4342 *GNU\ gold*) supports_anon_versioning=yes ;; | |
4275 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 | 4343 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 |
4276 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | 4344 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
4277 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | 4345 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
4278 *\ 2.11.*) ;; # other 2.11 versions | 4346 *\ 2.11.*) ;; # other 2.11 versions |
4279 *) supports_anon_versioning=yes ;; | 4347 *) supports_anon_versioning=yes ;; |
4285 # On AIX/PPC, the GNU linker is very broken | 4353 # On AIX/PPC, the GNU linker is very broken |
4286 if test "$host_cpu" != ia64; then | 4354 if test "$host_cpu" != ia64; then |
4287 _LT_TAGVAR(ld_shlibs, $1)=no | 4355 _LT_TAGVAR(ld_shlibs, $1)=no |
4288 cat <<_LT_EOF 1>&2 | 4356 cat <<_LT_EOF 1>&2 |
4289 | 4357 |
4290 *** Warning: the GNU linker, at least up to release 2.9.1, is reported | 4358 *** Warning: the GNU linker, at least up to release 2.19, is reported |
4291 *** to be unable to reliably create shared libraries on AIX. | 4359 *** to be unable to reliably create shared libraries on AIX. |
4292 *** Therefore, libtool is disabling shared libraries support. If you | 4360 *** Therefore, libtool is disabling shared libraries support. If you |
4293 *** really care for shared libraries, you may want to modify your PATH | 4361 *** really care for shared libraries, you may want to install binutils |
4294 *** so that a non-GNU linker is found, and then restart. | 4362 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. |
4363 *** You will then need to restart the configuration process. | |
4295 | 4364 |
4296 _LT_EOF | 4365 _LT_EOF |
4297 fi | 4366 fi |
4298 ;; | 4367 ;; |
4299 | 4368 |
4325 | 4394 |
4326 cygwin* | mingw* | pw32* | cegcc*) | 4395 cygwin* | mingw* | pw32* | cegcc*) |
4327 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, | 4396 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
4328 # as there is no search path for DLLs. | 4397 # as there is no search path for DLLs. |
4329 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | 4398 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
4399 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' | |
4330 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | 4400 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
4331 _LT_TAGVAR(always_export_symbols, $1)=no | 4401 _LT_TAGVAR(always_export_symbols, $1)=no |
4332 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | 4402 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
4333 _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' | 4403 _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' |
4334 | 4404 |
4346 else | 4416 else |
4347 _LT_TAGVAR(ld_shlibs, $1)=no | 4417 _LT_TAGVAR(ld_shlibs, $1)=no |
4348 fi | 4418 fi |
4349 ;; | 4419 ;; |
4350 | 4420 |
4421 haiku*) | |
4422 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
4423 _LT_TAGVAR(link_all_deplibs, $1)=yes | |
4424 ;; | |
4425 | |
4351 interix[[3-9]]*) | 4426 interix[[3-9]]*) |
4352 _LT_TAGVAR(hardcode_direct, $1)=no | 4427 _LT_TAGVAR(hardcode_direct, $1)=no |
4353 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | 4428 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
4354 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | 4429 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
4355 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 4430 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
4375 then | 4450 then |
4376 tmp_addflag= | 4451 tmp_addflag= |
4377 tmp_sharedflag='-shared' | 4452 tmp_sharedflag='-shared' |
4378 case $cc_basename,$host_cpu in | 4453 case $cc_basename,$host_cpu in |
4379 pgcc*) # Portland Group C compiler | 4454 pgcc*) # Portland Group C compiler |
4380 _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' | 4455 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
4381 tmp_addflag=' $pic_flag' | 4456 tmp_addflag=' $pic_flag' |
4382 ;; | 4457 ;; |
4383 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | 4458 pgf77* | pgf90* | pgf95* | pgfortran*) |
4384 _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' | 4459 # Portland Group f77 and f90 compilers |
4460 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
4385 tmp_addflag=' $pic_flag -Mnomain' ;; | 4461 tmp_addflag=' $pic_flag -Mnomain' ;; |
4386 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | 4462 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
4387 tmp_addflag=' -i_dynamic' ;; | 4463 tmp_addflag=' -i_dynamic' ;; |
4388 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | 4464 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
4389 tmp_addflag=' -i_dynamic -nofor_main' ;; | 4465 tmp_addflag=' -i_dynamic -nofor_main' ;; |
4390 ifc* | ifort*) # Intel Fortran compiler | 4466 ifc* | ifort*) # Intel Fortran compiler |
4391 tmp_addflag=' -nofor_main' ;; | 4467 tmp_addflag=' -nofor_main' ;; |
4392 lf95*) # Lahey Fortran 8.1 | 4468 lf95*) # Lahey Fortran 8.1 |
4393 _LT_TAGVAR(whole_archive_flag_spec, $1)= | 4469 _LT_TAGVAR(whole_archive_flag_spec, $1)= |
4394 tmp_sharedflag='--shared' ;; | 4470 tmp_sharedflag='--shared' ;; |
4395 xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) | 4471 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
4396 tmp_sharedflag='-qmkshrobj' | 4472 tmp_sharedflag='-qmkshrobj' |
4397 tmp_addflag= ;; | 4473 tmp_addflag= ;; |
4474 nvcc*) # Cuda Compiler Driver 2.2 | |
4475 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
4476 _LT_TAGVAR(compiler_needs_object, $1)=yes | |
4477 ;; | |
4398 esac | 4478 esac |
4399 case `$CC -V 2>&1 | sed 5q` in | 4479 case `$CC -V 2>&1 | sed 5q` in |
4400 *Sun\ C*) # Sun C 5.9 | 4480 *Sun\ C*) # Sun C 5.9 |
4401 _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' | 4481 _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; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
4402 _LT_TAGVAR(compiler_needs_object, $1)=yes | 4482 _LT_TAGVAR(compiler_needs_object, $1)=yes |
4403 tmp_sharedflag='-G' ;; | 4483 tmp_sharedflag='-G' ;; |
4404 *Sun\ F*) # Sun Fortran 8.3 | 4484 *Sun\ F*) # Sun Fortran 8.3 |
4405 tmp_sharedflag='-G' ;; | 4485 tmp_sharedflag='-G' ;; |
4406 esac | 4486 esac |
4412 echo "local: *; };" >> $output_objdir/$libname.ver~ | 4492 echo "local: *; };" >> $output_objdir/$libname.ver~ |
4413 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | 4493 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
4414 fi | 4494 fi |
4415 | 4495 |
4416 case $cc_basename in | 4496 case $cc_basename in |
4417 xlf*) | 4497 xlf* | bgf* | bgxlf* | mpixlf*) |
4418 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | 4498 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
4419 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' | 4499 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' |
4420 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | 4500 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
4421 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' | 4501 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' |
4422 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | 4502 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' |
4543 exp_sym_flag='-Bexport' | 4623 exp_sym_flag='-Bexport' |
4544 no_entry_flag="" | 4624 no_entry_flag="" |
4545 else | 4625 else |
4546 # If we're using GNU nm, then we don't want the "-C" option. | 4626 # If we're using GNU nm, then we don't want the "-C" option. |
4547 # -C means demangle to AIX nm, but means don't demangle with GNU nm | 4627 # -C means demangle to AIX nm, but means don't demangle with GNU nm |
4628 # Also, AIX nm treats weak defined symbols like other global | |
4629 # defined symbols, whereas GNU nm marks them as "W". | |
4548 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | 4630 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
4549 _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' | 4631 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
4550 else | 4632 else |
4551 _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' | 4633 _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' |
4552 fi | 4634 fi |
4553 aix_use_runtimelinking=no | 4635 aix_use_runtimelinking=no |
4554 | 4636 |
4633 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' | 4715 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' |
4634 # Determine the default libpath from the value encoded in an | 4716 # Determine the default libpath from the value encoded in an |
4635 # empty executable. | 4717 # empty executable. |
4636 _LT_SYS_MODULE_PATH_AIX | 4718 _LT_SYS_MODULE_PATH_AIX |
4637 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | 4719 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
4638 _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" | 4720 _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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
4639 else | 4721 else |
4640 if test "$host_cpu" = ia64; then | 4722 if test "$host_cpu" = ia64; then |
4641 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' | 4723 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
4642 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" | 4724 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
4643 _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" | 4725 _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" |
4648 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | 4730 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
4649 # Warning - without using the other run time loading flags, | 4731 # Warning - without using the other run time loading flags, |
4650 # -berok will link without error, but may produce a broken library. | 4732 # -berok will link without error, but may produce a broken library. |
4651 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' | 4733 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
4652 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' | 4734 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
4653 # Exported symbols can be pulled into shared objects from archives | 4735 if test "$with_gnu_ld" = yes; then |
4654 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' | 4736 # We only use this code for GNU lds that support --whole-archive. |
4737 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
4738 else | |
4739 # Exported symbols can be pulled into shared objects from archives | |
4740 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' | |
4741 fi | |
4655 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes | 4742 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes |
4656 # This is similar to how AIX traditionally builds its shared libraries. | 4743 # This is similar to how AIX traditionally builds its shared libraries. |
4657 _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' | 4744 _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' |
4658 fi | 4745 fi |
4659 fi | 4746 fi |
4688 # Tell ltmain to make .lib files, not .a files. | 4775 # Tell ltmain to make .lib files, not .a files. |
4689 libext=lib | 4776 libext=lib |
4690 # Tell ltmain to make .dll files, not .so files. | 4777 # Tell ltmain to make .dll files, not .so files. |
4691 shrext_cmds=".dll" | 4778 shrext_cmds=".dll" |
4692 # FIXME: Setting linknames here is a bad hack. | 4779 # FIXME: Setting linknames here is a bad hack. |
4693 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | 4780 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
4694 # The linker will automatically build a .lib file if we build a DLL. | 4781 # The linker will automatically build a .lib file if we build a DLL. |
4695 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' | 4782 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' |
4696 # FIXME: Should let the user specify the lib program. | 4783 # FIXME: Should let the user specify the lib program. |
4697 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' | 4784 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' |
4698 _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' | 4785 _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' |
4755 _LT_TAGVAR(hardcode_minus_L, $1)=yes | 4842 _LT_TAGVAR(hardcode_minus_L, $1)=yes |
4756 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 4843 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
4757 ;; | 4844 ;; |
4758 | 4845 |
4759 hpux10*) | 4846 hpux10*) |
4760 if test "$GCC" = yes -a "$with_gnu_ld" = no; then | 4847 if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
4761 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 4848 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
4762 else | 4849 else |
4763 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | 4850 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
4764 fi | 4851 fi |
4765 if test "$with_gnu_ld" = no; then | 4852 if test "$with_gnu_ld" = no; then |
4774 _LT_TAGVAR(hardcode_minus_L, $1)=yes | 4861 _LT_TAGVAR(hardcode_minus_L, $1)=yes |
4775 fi | 4862 fi |
4776 ;; | 4863 ;; |
4777 | 4864 |
4778 hpux11*) | 4865 hpux11*) |
4779 if test "$GCC" = yes -a "$with_gnu_ld" = no; then | 4866 if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
4780 case $host_cpu in | 4867 case $host_cpu in |
4781 hppa*64*) | 4868 hppa*64*) |
4782 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 4869 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
4783 ;; | 4870 ;; |
4784 ia64*) | 4871 ia64*) |
4795 ;; | 4882 ;; |
4796 ia64*) | 4883 ia64*) |
4797 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | 4884 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
4798 ;; | 4885 ;; |
4799 *) | 4886 *) |
4800 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 4887 m4_if($1, [], [ |
4888 # Older versions of the 11.00 compiler do not understand -b yet | |
4889 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
4890 _LT_LINKER_OPTION([if $CC understands -b], | |
4891 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], | |
4892 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], | |
4893 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], | |
4894 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) | |
4801 ;; | 4895 ;; |
4802 esac | 4896 esac |
4803 fi | 4897 fi |
4804 if test "$with_gnu_ld" = no; then | 4898 if test "$with_gnu_ld" = no; then |
4805 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | 4899 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
4823 fi | 4917 fi |
4824 ;; | 4918 ;; |
4825 | 4919 |
4826 irix5* | irix6* | nonstopux*) | 4920 irix5* | irix6* | nonstopux*) |
4827 if test "$GCC" = yes; then | 4921 if test "$GCC" = yes; then |
4828 _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' | 4922 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
4829 # Try to use the -exported_symbol ld option, if it does not | 4923 # Try to use the -exported_symbol ld option, if it does not |
4830 # work, assume that -exports_file does not work either and | 4924 # work, assume that -exports_file does not work either and |
4831 # implicitly export all symbols. | 4925 # implicitly export all symbols. |
4832 save_LDFLAGS="$LDFLAGS" | 4926 save_LDFLAGS="$LDFLAGS" |
4833 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | 4927 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
4834 AC_LINK_IFELSE(int foo(void) {}, | 4928 AC_LINK_IFELSE(int foo(void) {}, |
4835 _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' | 4929 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
4836 ) | 4930 ) |
4837 LDFLAGS="$save_LDFLAGS" | 4931 LDFLAGS="$save_LDFLAGS" |
4838 else | 4932 else |
4839 _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' | 4933 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
4840 _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' | 4934 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' |
4841 fi | 4935 fi |
4842 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' | 4936 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' |
4843 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 4937 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
4844 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | 4938 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
4845 _LT_TAGVAR(inherit_rpath, $1)=yes | 4939 _LT_TAGVAR(inherit_rpath, $1)=yes |
4897 | 4991 |
4898 os2*) | 4992 os2*) |
4899 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | 4993 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
4900 _LT_TAGVAR(hardcode_minus_L, $1)=yes | 4994 _LT_TAGVAR(hardcode_minus_L, $1)=yes |
4901 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | 4995 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
4902 _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' | 4996 _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' |
4903 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | 4997 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
4904 ;; | 4998 ;; |
4905 | 4999 |
4906 osf3*) | 5000 osf3*) |
4907 if test "$GCC" = yes; then | 5001 if test "$GCC" = yes; then |
4908 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | 5002 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
4909 _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' | 5003 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
4910 else | 5004 else |
4911 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | 5005 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
4912 _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' | 5006 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
4913 fi | 5007 fi |
4914 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' | 5008 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' |
4915 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 5009 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
4916 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | 5010 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
4917 ;; | 5011 ;; |
4918 | 5012 |
4919 osf4* | osf5*) # as osf3* with the addition of -msym flag | 5013 osf4* | osf5*) # as osf3* with the addition of -msym flag |
4920 if test "$GCC" = yes; then | 5014 if test "$GCC" = yes; then |
4921 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | 5015 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
4922 _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' | 5016 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
4923 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 5017 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
4924 else | 5018 else |
4925 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | 5019 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
4926 _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' | 5020 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
4927 _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~ | 5021 _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~ |
4928 $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' | 5022 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' |
4929 | 5023 |
4930 # Both c and cxx compiler support -rpath directly | 5024 # Both c and cxx compiler support -rpath directly |
4931 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | 5025 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
4932 fi | 5026 fi |
4933 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' | 5027 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' |
5315 AC_LANG_POP | 5409 AC_LANG_POP |
5316 CC="$lt_save_CC" | 5410 CC="$lt_save_CC" |
5317 ])# _LT_LANG_C_CONFIG | 5411 ])# _LT_LANG_C_CONFIG |
5318 | 5412 |
5319 | 5413 |
5320 # _LT_PROG_CXX | 5414 # _LT_LANG_CXX_CONFIG([TAG]) |
5321 # ------------ | 5415 # -------------------------- |
5322 # Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++ | 5416 # Ensure that the configuration variables for a C++ compiler are suitably |
5323 # compiler, we have our own version here. | 5417 # defined. These variables are subsequently used by _LT_CONFIG to write |
5324 m4_defun([_LT_PROG_CXX], | 5418 # the compiler configuration to `libtool'. |
5325 [ | 5419 m4_defun([_LT_LANG_CXX_CONFIG], |
5326 pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes]) | 5420 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
5327 AC_PROG_CXX | 5421 m4_require([_LT_DECL_EGREP])dnl |
5328 if test -n "$CXX" && ( test "X$CXX" != "Xno" && | 5422 if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
5329 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | 5423 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
5330 (test "X$CXX" != "Xg++"))) ; then | 5424 (test "X$CXX" != "Xg++"))) ; then |
5331 AC_PROG_CXXCPP | 5425 AC_PROG_CXXCPP |
5332 else | 5426 else |
5333 _lt_caught_CXX_error=yes | 5427 _lt_caught_CXX_error=yes |
5334 fi | 5428 fi |
5335 popdef([AC_MSG_ERROR]) | |
5336 ])# _LT_PROG_CXX | |
5337 | |
5338 dnl aclocal-1.4 backwards compatibility: | |
5339 dnl AC_DEFUN([_LT_PROG_CXX], []) | |
5340 | |
5341 | |
5342 # _LT_LANG_CXX_CONFIG([TAG]) | |
5343 # -------------------------- | |
5344 # Ensure that the configuration variables for a C++ compiler are suitably | |
5345 # defined. These variables are subsequently used by _LT_CONFIG to write | |
5346 # the compiler configuration to `libtool'. | |
5347 m4_defun([_LT_LANG_CXX_CONFIG], | |
5348 [AC_REQUIRE([_LT_PROG_CXX])dnl | |
5349 m4_require([_LT_FILEUTILS_DEFAULTS])dnl | |
5350 m4_require([_LT_DECL_EGREP])dnl | |
5351 | 5429 |
5352 AC_LANG_PUSH(C++) | 5430 AC_LANG_PUSH(C++) |
5353 _LT_TAGVAR(archive_cmds_need_lc, $1)=no | 5431 _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
5354 _LT_TAGVAR(allow_undefined_flag, $1)= | 5432 _LT_TAGVAR(allow_undefined_flag, $1)= |
5355 _LT_TAGVAR(always_export_symbols, $1)=no | 5433 _LT_TAGVAR(always_export_symbols, $1)=no |
5367 _LT_TAGVAR(inherit_rpath, $1)=no | 5445 _LT_TAGVAR(inherit_rpath, $1)=no |
5368 _LT_TAGVAR(module_cmds, $1)= | 5446 _LT_TAGVAR(module_cmds, $1)= |
5369 _LT_TAGVAR(module_expsym_cmds, $1)= | 5447 _LT_TAGVAR(module_expsym_cmds, $1)= |
5370 _LT_TAGVAR(link_all_deplibs, $1)=unknown | 5448 _LT_TAGVAR(link_all_deplibs, $1)=unknown |
5371 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | 5449 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
5450 _LT_TAGVAR(reload_flag, $1)=$reload_flag | |
5451 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds | |
5372 _LT_TAGVAR(no_undefined_flag, $1)= | 5452 _LT_TAGVAR(no_undefined_flag, $1)= |
5373 _LT_TAGVAR(whole_archive_flag_spec, $1)= | 5453 _LT_TAGVAR(whole_archive_flag_spec, $1)= |
5374 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no | 5454 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
5375 | 5455 |
5376 # Source file extension for C++ test sources. | 5456 # Source file extension for C++ test sources. |
5469 fi | 5549 fi |
5470 | 5550 |
5471 # Commands to make compiler produce verbose output that lists | 5551 # Commands to make compiler produce verbose output that lists |
5472 # what "hidden" libraries, object files and flags are used when | 5552 # what "hidden" libraries, object files and flags are used when |
5473 # linking a shared library. | 5553 # linking a shared library. |
5474 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | 5554 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
5475 | 5555 |
5476 else | 5556 else |
5477 GXX=no | 5557 GXX=no |
5478 with_gnu_ld=no | 5558 with_gnu_ld=no |
5479 wlarc= | 5559 wlarc= |
5581 # Determine the default libpath from the value encoded in an empty | 5661 # Determine the default libpath from the value encoded in an empty |
5582 # executable. | 5662 # executable. |
5583 _LT_SYS_MODULE_PATH_AIX | 5663 _LT_SYS_MODULE_PATH_AIX |
5584 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | 5664 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
5585 | 5665 |
5586 _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" | 5666 _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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
5587 else | 5667 else |
5588 if test "$host_cpu" = ia64; then | 5668 if test "$host_cpu" = ia64; then |
5589 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' | 5669 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
5590 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" | 5670 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
5591 _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" | 5671 _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" |
5596 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | 5676 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
5597 # Warning - without using the other run time loading flags, | 5677 # Warning - without using the other run time loading flags, |
5598 # -berok will link without error, but may produce a broken library. | 5678 # -berok will link without error, but may produce a broken library. |
5599 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' | 5679 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
5600 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' | 5680 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
5601 # Exported symbols can be pulled into shared objects from archives | 5681 if test "$with_gnu_ld" = yes; then |
5602 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' | 5682 # We only use this code for GNU lds that support --whole-archive. |
5683 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
5684 else | |
5685 # Exported symbols can be pulled into shared objects from archives | |
5686 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' | |
5687 fi | |
5603 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes | 5688 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes |
5604 # This is similar to how AIX traditionally builds its shared | 5689 # This is similar to how AIX traditionally builds its shared |
5605 # libraries. | 5690 # libraries. |
5606 _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' | 5691 _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' |
5607 fi | 5692 fi |
5630 | 5715 |
5631 cygwin* | mingw* | pw32* | cegcc*) | 5716 cygwin* | mingw* | pw32* | cegcc*) |
5632 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, | 5717 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
5633 # as there is no search path for DLLs. | 5718 # as there is no search path for DLLs. |
5634 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | 5719 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
5720 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' | |
5635 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | 5721 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
5636 _LT_TAGVAR(always_export_symbols, $1)=no | 5722 _LT_TAGVAR(always_export_symbols, $1)=no |
5637 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | 5723 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
5638 | 5724 |
5639 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | 5725 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
5690 ;; | 5776 ;; |
5691 | 5777 |
5692 gnu*) | 5778 gnu*) |
5693 ;; | 5779 ;; |
5694 | 5780 |
5781 haiku*) | |
5782 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
5783 _LT_TAGVAR(link_all_deplibs, $1)=yes | |
5784 ;; | |
5785 | |
5695 hpux9*) | 5786 hpux9*) |
5696 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | 5787 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
5697 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | 5788 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
5698 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 5789 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
5699 _LT_TAGVAR(hardcode_direct, $1)=yes | 5790 _LT_TAGVAR(hardcode_direct, $1)=yes |
5714 # | 5805 # |
5715 # There doesn't appear to be a way to prevent this compiler from | 5806 # There doesn't appear to be a way to prevent this compiler from |
5716 # explicitly linking system object files so we need to strip them | 5807 # explicitly linking system object files so we need to strip them |
5717 # from the output so that they don't get included in the library | 5808 # from the output so that they don't get included in the library |
5718 # dependencies. | 5809 # dependencies. |
5719 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' | 5810 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; func_echo_all "$list"' |
5720 ;; | 5811 ;; |
5721 *) | 5812 *) |
5722 if test "$GXX" = yes; then | 5813 if test "$GXX" = yes; then |
5723 _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' | 5814 _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' |
5724 else | 5815 else |
5779 # | 5870 # |
5780 # There doesn't appear to be a way to prevent this compiler from | 5871 # There doesn't appear to be a way to prevent this compiler from |
5781 # explicitly linking system object files so we need to strip them | 5872 # explicitly linking system object files so we need to strip them |
5782 # from the output so that they don't get included in the library | 5873 # from the output so that they don't get included in the library |
5783 # dependencies. | 5874 # dependencies. |
5784 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' | 5875 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; func_echo_all "$list"' |
5785 ;; | 5876 ;; |
5786 *) | 5877 *) |
5787 if test "$GXX" = yes; then | 5878 if test "$GXX" = yes; then |
5788 if test $with_gnu_ld = no; then | 5879 if test $with_gnu_ld = no; then |
5789 case $host_cpu in | 5880 case $host_cpu in |
5822 ;; | 5913 ;; |
5823 irix5* | irix6*) | 5914 irix5* | irix6*) |
5824 case $cc_basename in | 5915 case $cc_basename in |
5825 CC*) | 5916 CC*) |
5826 # SGI C++ | 5917 # SGI C++ |
5827 _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' | 5918 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
5828 | 5919 |
5829 # Archives containing C++ object files must be created using | 5920 # Archives containing C++ object files must be created using |
5830 # "CC -ar", where "CC" is the IRIX C++ compiler. This is | 5921 # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
5831 # necessary to make sure instantiated templates are included | 5922 # necessary to make sure instantiated templates are included |
5832 # in the archive. | 5923 # in the archive. |
5833 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' | 5924 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' |
5834 ;; | 5925 ;; |
5835 *) | 5926 *) |
5836 if test "$GXX" = yes; then | 5927 if test "$GXX" = yes; then |
5837 if test "$with_gnu_ld" = no; then | 5928 if test "$with_gnu_ld" = no; then |
5838 _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' | 5929 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
5839 else | 5930 else |
5840 _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' | 5931 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' |
5841 fi | 5932 fi |
5842 fi | 5933 fi |
5843 _LT_TAGVAR(link_all_deplibs, $1)=yes | 5934 _LT_TAGVAR(link_all_deplibs, $1)=yes |
5844 ;; | 5935 ;; |
5845 esac | 5936 esac |
5864 # | 5955 # |
5865 # There doesn't appear to be a way to prevent this compiler from | 5956 # There doesn't appear to be a way to prevent this compiler from |
5866 # explicitly linking system object files so we need to strip them | 5957 # explicitly linking system object files so we need to strip them |
5867 # from the output so that they don't get included in the library | 5958 # from the output so that they don't get included in the library |
5868 # dependencies. | 5959 # dependencies. |
5869 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' | 5960 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; func_echo_all "$list"' |
5870 | 5961 |
5871 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | 5962 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
5872 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | 5963 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
5873 | 5964 |
5874 # Archives containing C++ object files must be created using | 5965 # Archives containing C++ object files must be created using |
5901 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | 5992 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
5902 ;; | 5993 ;; |
5903 pgCC* | pgcpp*) | 5994 pgCC* | pgcpp*) |
5904 # Portland Group C++ compiler | 5995 # Portland Group C++ compiler |
5905 case `$CC -V` in | 5996 case `$CC -V` in |
5906 *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*) | 5997 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) |
5907 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ | 5998 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ |
5908 rm -rf $tpldir~ | 5999 rm -rf $tpldir~ |
5909 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | 6000 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ |
5910 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' | 6001 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' |
5911 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ | 6002 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ |
5920 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ | 6011 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ |
5921 rm -rf $tpldir~ | 6012 rm -rf $tpldir~ |
5922 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | 6013 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
5923 $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' | 6014 $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' |
5924 ;; | 6015 ;; |
5925 *) # Version 6 will use weak symbols | 6016 *) # Version 6 and above use weak symbols |
5926 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | 6017 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
5927 _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' | 6018 _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' |
5928 ;; | 6019 ;; |
5929 esac | 6020 esac |
5930 | 6021 |
5931 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' | 6022 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' |
5932 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | 6023 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
5933 _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' | 6024 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
5934 ;; | 6025 ;; |
5935 cxx*) | 6026 cxx*) |
5936 # Compaq C++ | 6027 # Compaq C++ |
5937 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | 6028 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
5938 _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' | 6029 _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' |
5947 # | 6038 # |
5948 # There doesn't appear to be a way to prevent this compiler from | 6039 # There doesn't appear to be a way to prevent this compiler from |
5949 # explicitly linking system object files so we need to strip them | 6040 # explicitly linking system object files so we need to strip them |
5950 # from the output so that they don't get included in the library | 6041 # from the output so that they don't get included in the library |
5951 # dependencies. | 6042 # dependencies. |
5952 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' | 6043 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed' |
5953 ;; | 6044 ;; |
5954 xl*) | 6045 xl* | mpixl* | bgxl*) |
5955 # IBM XL 8.0 on PPC, with GNU ld | 6046 # IBM XL 8.0 on PPC, with GNU ld |
5956 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 6047 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
5957 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | 6048 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
5958 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 6049 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
5959 if test "x$supports_anon_versioning" = xyes; then | 6050 if test "x$supports_anon_versioning" = xyes; then |
5969 # Sun C++ 5.9 | 6060 # Sun C++ 5.9 |
5970 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' | 6061 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' |
5971 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 6062 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
5972 _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' | 6063 _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' |
5973 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | 6064 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
5974 _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' | 6065 _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; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
5975 _LT_TAGVAR(compiler_needs_object, $1)=yes | 6066 _LT_TAGVAR(compiler_needs_object, $1)=yes |
5976 | 6067 |
5977 # Not sure whether something based on | 6068 # Not sure whether something based on |
5978 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | 6069 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
5979 # would be better. | 6070 # would be better. |
5980 output_verbose_link_cmd='echo' | 6071 output_verbose_link_cmd='func_echo_all' |
5981 | 6072 |
5982 # Archives containing C++ object files must be created using | 6073 # Archives containing C++ object files must be created using |
5983 # "CC -xar", where "CC" is the Sun C++ compiler. This is | 6074 # "CC -xar", where "CC" is the Sun C++ compiler. This is |
5984 # necessary to make sure instantiated templates are included | 6075 # necessary to make sure instantiated templates are included |
5985 # in the archive. | 6076 # in the archive. |
6044 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 6135 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
6045 _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' | 6136 _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' |
6046 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 6137 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
6047 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 6138 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
6048 fi | 6139 fi |
6049 output_verbose_link_cmd=echo | 6140 output_verbose_link_cmd=func_echo_all |
6050 else | 6141 else |
6051 _LT_TAGVAR(ld_shlibs, $1)=no | 6142 _LT_TAGVAR(ld_shlibs, $1)=no |
6052 fi | 6143 fi |
6053 ;; | 6144 ;; |
6054 | 6145 |
6079 ;; | 6170 ;; |
6080 cxx*) | 6171 cxx*) |
6081 case $host in | 6172 case $host in |
6082 osf3*) | 6173 osf3*) |
6083 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | 6174 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
6084 _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' | 6175 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
6085 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 6176 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
6086 ;; | 6177 ;; |
6087 *) | 6178 *) |
6088 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | 6179 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
6089 _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' | 6180 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
6090 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | 6181 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
6091 echo "-hidden">> $lib.exp~ | 6182 echo "-hidden">> $lib.exp~ |
6092 $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~ | 6183 $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~ |
6093 $RM $lib.exp' | 6184 $RM $lib.exp' |
6094 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | 6185 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
6095 ;; | 6186 ;; |
6096 esac | 6187 esac |
6097 | 6188 |
6103 # | 6194 # |
6104 # There doesn't appear to be a way to prevent this compiler from | 6195 # There doesn't appear to be a way to prevent this compiler from |
6105 # explicitly linking system object files so we need to strip them | 6196 # explicitly linking system object files so we need to strip them |
6106 # from the output so that they don't get included in the library | 6197 # from the output so that they don't get included in the library |
6107 # dependencies. | 6198 # dependencies. |
6108 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' | 6199 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"' |
6109 ;; | 6200 ;; |
6110 *) | 6201 *) |
6111 if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 6202 if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
6112 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | 6203 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
6113 case $host in | 6204 case $host in |
6114 osf3*) | 6205 osf3*) |
6115 _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' | 6206 _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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
6116 ;; | 6207 ;; |
6117 *) | 6208 *) |
6118 _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' | 6209 _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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
6119 ;; | 6210 ;; |
6120 esac | 6211 esac |
6121 | 6212 |
6122 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 6213 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
6123 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | 6214 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
6124 | 6215 |
6125 # Commands to make compiler produce verbose output that lists | 6216 # Commands to make compiler produce verbose output that lists |
6126 # what "hidden" libraries, object files and flags are used when | 6217 # what "hidden" libraries, object files and flags are used when |
6127 # linking a shared library. | 6218 # linking a shared library. |
6128 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | 6219 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
6129 | 6220 |
6130 else | 6221 else |
6131 # FIXME: insert proper C++ library support | 6222 # FIXME: insert proper C++ library support |
6132 _LT_TAGVAR(ld_shlibs, $1)=no | 6223 _LT_TAGVAR(ld_shlibs, $1)=no |
6133 fi | 6224 fi |
6180 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' | 6271 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' |
6181 ;; | 6272 ;; |
6182 esac | 6273 esac |
6183 _LT_TAGVAR(link_all_deplibs, $1)=yes | 6274 _LT_TAGVAR(link_all_deplibs, $1)=yes |
6184 | 6275 |
6185 output_verbose_link_cmd='echo' | 6276 output_verbose_link_cmd='func_echo_all' |
6186 | 6277 |
6187 # Archives containing C++ object files must be created using | 6278 # Archives containing C++ object files must be created using |
6188 # "CC -xar", where "CC" is the Sun C++ compiler. This is | 6279 # "CC -xar", where "CC" is the Sun C++ compiler. This is |
6189 # necessary to make sure instantiated templates are included | 6280 # necessary to make sure instantiated templates are included |
6190 # in the archive. | 6281 # in the archive. |
6207 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | 6298 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
6208 | 6299 |
6209 # Commands to make compiler produce verbose output that lists | 6300 # Commands to make compiler produce verbose output that lists |
6210 # what "hidden" libraries, object files and flags are used when | 6301 # what "hidden" libraries, object files and flags are used when |
6211 # linking a shared library. | 6302 # linking a shared library. |
6212 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | 6303 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
6213 else | 6304 else |
6214 # g++ 2.7 appears to require `-G' NOT `-shared' on this | 6305 # g++ 2.7 appears to require `-G' NOT `-shared' on this |
6215 # platform. | 6306 # platform. |
6216 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | 6307 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
6217 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | 6308 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
6218 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | 6309 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
6219 | 6310 |
6220 # Commands to make compiler produce verbose output that lists | 6311 # Commands to make compiler produce verbose output that lists |
6221 # what "hidden" libraries, object files and flags are used when | 6312 # what "hidden" libraries, object files and flags are used when |
6222 # linking a shared library. | 6313 # linking a shared library. |
6223 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | 6314 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
6224 fi | 6315 fi |
6225 | 6316 |
6226 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' | 6317 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' |
6227 case $host_os in | 6318 case $host_os in |
6228 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; | 6319 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; |
6272 | 6363 |
6273 case $cc_basename in | 6364 case $cc_basename in |
6274 CC*) | 6365 CC*) |
6275 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 6366 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
6276 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 6367 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
6368 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ | |
6369 '"$_LT_TAGVAR(old_archive_cmds, $1)" | |
6370 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ | |
6371 '"$_LT_TAGVAR(reload_cmds, $1)" | |
6277 ;; | 6372 ;; |
6278 *) | 6373 *) |
6279 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 6374 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
6280 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 6375 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
6281 ;; | 6376 ;; |
6562 [The library search path used internally by the compiler when linking | 6657 [The library search path used internally by the compiler when linking |
6563 a shared library]) | 6658 a shared library]) |
6564 ])# _LT_SYS_HIDDEN_LIBDEPS | 6659 ])# _LT_SYS_HIDDEN_LIBDEPS |
6565 | 6660 |
6566 | 6661 |
6567 # _LT_PROG_F77 | |
6568 # ------------ | |
6569 # Since AC_PROG_F77 is broken, in that it returns the empty string | |
6570 # if there is no fortran compiler, we have our own version here. | |
6571 m4_defun([_LT_PROG_F77], | |
6572 [ | |
6573 pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes]) | |
6574 AC_PROG_F77 | |
6575 if test -z "$F77" || test "X$F77" = "Xno"; then | |
6576 _lt_disable_F77=yes | |
6577 fi | |
6578 popdef([AC_MSG_ERROR]) | |
6579 ])# _LT_PROG_F77 | |
6580 | |
6581 dnl aclocal-1.4 backwards compatibility: | |
6582 dnl AC_DEFUN([_LT_PROG_F77], []) | |
6583 | |
6584 | |
6585 # _LT_LANG_F77_CONFIG([TAG]) | 6662 # _LT_LANG_F77_CONFIG([TAG]) |
6586 # -------------------------- | 6663 # -------------------------- |
6587 # Ensure that the configuration variables for a Fortran 77 compiler are | 6664 # Ensure that the configuration variables for a Fortran 77 compiler are |
6588 # suitably defined. These variables are subsequently used by _LT_CONFIG | 6665 # suitably defined. These variables are subsequently used by _LT_CONFIG |
6589 # to write the compiler configuration to `libtool'. | 6666 # to write the compiler configuration to `libtool'. |
6590 m4_defun([_LT_LANG_F77_CONFIG], | 6667 m4_defun([_LT_LANG_F77_CONFIG], |
6591 [AC_REQUIRE([_LT_PROG_F77])dnl | 6668 [AC_LANG_PUSH(Fortran 77) |
6592 AC_LANG_PUSH(Fortran 77) | 6669 if test -z "$F77" || test "X$F77" = "Xno"; then |
6670 _lt_disable_F77=yes | |
6671 fi | |
6593 | 6672 |
6594 _LT_TAGVAR(archive_cmds_need_lc, $1)=no | 6673 _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
6595 _LT_TAGVAR(allow_undefined_flag, $1)= | 6674 _LT_TAGVAR(allow_undefined_flag, $1)= |
6596 _LT_TAGVAR(always_export_symbols, $1)=no | 6675 _LT_TAGVAR(always_export_symbols, $1)=no |
6597 _LT_TAGVAR(archive_expsym_cmds, $1)= | 6676 _LT_TAGVAR(archive_expsym_cmds, $1)= |
6606 _LT_TAGVAR(inherit_rpath, $1)=no | 6685 _LT_TAGVAR(inherit_rpath, $1)=no |
6607 _LT_TAGVAR(module_cmds, $1)= | 6686 _LT_TAGVAR(module_cmds, $1)= |
6608 _LT_TAGVAR(module_expsym_cmds, $1)= | 6687 _LT_TAGVAR(module_expsym_cmds, $1)= |
6609 _LT_TAGVAR(link_all_deplibs, $1)=unknown | 6688 _LT_TAGVAR(link_all_deplibs, $1)=unknown |
6610 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | 6689 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
6690 _LT_TAGVAR(reload_flag, $1)=$reload_flag | |
6691 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds | |
6611 _LT_TAGVAR(no_undefined_flag, $1)= | 6692 _LT_TAGVAR(no_undefined_flag, $1)= |
6612 _LT_TAGVAR(whole_archive_flag_spec, $1)= | 6693 _LT_TAGVAR(whole_archive_flag_spec, $1)= |
6613 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no | 6694 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
6614 | 6695 |
6615 # Source file extension for f77 test sources. | 6696 # Source file extension for f77 test sources. |
6705 | 6786 |
6706 AC_LANG_POP | 6787 AC_LANG_POP |
6707 ])# _LT_LANG_F77_CONFIG | 6788 ])# _LT_LANG_F77_CONFIG |
6708 | 6789 |
6709 | 6790 |
6710 # _LT_PROG_FC | |
6711 # ----------- | |
6712 # Since AC_PROG_FC is broken, in that it returns the empty string | |
6713 # if there is no fortran compiler, we have our own version here. | |
6714 m4_defun([_LT_PROG_FC], | |
6715 [ | |
6716 pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes]) | |
6717 AC_PROG_FC | |
6718 if test -z "$FC" || test "X$FC" = "Xno"; then | |
6719 _lt_disable_FC=yes | |
6720 fi | |
6721 popdef([AC_MSG_ERROR]) | |
6722 ])# _LT_PROG_FC | |
6723 | |
6724 dnl aclocal-1.4 backwards compatibility: | |
6725 dnl AC_DEFUN([_LT_PROG_FC], []) | |
6726 | |
6727 | |
6728 # _LT_LANG_FC_CONFIG([TAG]) | 6791 # _LT_LANG_FC_CONFIG([TAG]) |
6729 # ------------------------- | 6792 # ------------------------- |
6730 # Ensure that the configuration variables for a Fortran compiler are | 6793 # Ensure that the configuration variables for a Fortran compiler are |
6731 # suitably defined. These variables are subsequently used by _LT_CONFIG | 6794 # suitably defined. These variables are subsequently used by _LT_CONFIG |
6732 # to write the compiler configuration to `libtool'. | 6795 # to write the compiler configuration to `libtool'. |
6733 m4_defun([_LT_LANG_FC_CONFIG], | 6796 m4_defun([_LT_LANG_FC_CONFIG], |
6734 [AC_REQUIRE([_LT_PROG_FC])dnl | 6797 [AC_LANG_PUSH(Fortran) |
6735 AC_LANG_PUSH(Fortran) | 6798 |
6799 if test -z "$FC" || test "X$FC" = "Xno"; then | |
6800 _lt_disable_FC=yes | |
6801 fi | |
6736 | 6802 |
6737 _LT_TAGVAR(archive_cmds_need_lc, $1)=no | 6803 _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
6738 _LT_TAGVAR(allow_undefined_flag, $1)= | 6804 _LT_TAGVAR(allow_undefined_flag, $1)= |
6739 _LT_TAGVAR(always_export_symbols, $1)=no | 6805 _LT_TAGVAR(always_export_symbols, $1)=no |
6740 _LT_TAGVAR(archive_expsym_cmds, $1)= | 6806 _LT_TAGVAR(archive_expsym_cmds, $1)= |
6749 _LT_TAGVAR(inherit_rpath, $1)=no | 6815 _LT_TAGVAR(inherit_rpath, $1)=no |
6750 _LT_TAGVAR(module_cmds, $1)= | 6816 _LT_TAGVAR(module_cmds, $1)= |
6751 _LT_TAGVAR(module_expsym_cmds, $1)= | 6817 _LT_TAGVAR(module_expsym_cmds, $1)= |
6752 _LT_TAGVAR(link_all_deplibs, $1)=unknown | 6818 _LT_TAGVAR(link_all_deplibs, $1)=unknown |
6753 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | 6819 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
6820 _LT_TAGVAR(reload_flag, $1)=$reload_flag | |
6821 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds | |
6754 _LT_TAGVAR(no_undefined_flag, $1)= | 6822 _LT_TAGVAR(no_undefined_flag, $1)= |
6755 _LT_TAGVAR(whole_archive_flag_spec, $1)= | 6823 _LT_TAGVAR(whole_archive_flag_spec, $1)= |
6756 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no | 6824 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
6757 | 6825 |
6758 # Source file extension for fc test sources. | 6826 # Source file extension for fc test sources. |
6894 | 6962 |
6895 # GCJ did not exist at the time GCC didn't implicitly link libc in. | 6963 # GCJ did not exist at the time GCC didn't implicitly link libc in. |
6896 _LT_TAGVAR(archive_cmds_need_lc, $1)=no | 6964 _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
6897 | 6965 |
6898 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | 6966 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
6967 _LT_TAGVAR(reload_flag, $1)=$reload_flag | |
6968 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds | |
6899 | 6969 |
6900 ## CAVEAT EMPTOR: | 6970 ## CAVEAT EMPTOR: |
6901 ## There is no encapsulation within the following macros, do not change | 6971 ## There is no encapsulation within the following macros, do not change |
6902 ## the running order or otherwise move them around unless you know exactly | 6972 ## the running order or otherwise move them around unless you know exactly |
6903 ## what you are doing... | 6973 ## what you are doing... |
7261 # Compute the dirname of FILE. If nonempty, add APPEND to the result, | 7331 # Compute the dirname of FILE. If nonempty, add APPEND to the result, |
7262 # otherwise set result to NONDIR_REPLACEMENT. | 7332 # otherwise set result to NONDIR_REPLACEMENT. |
7263 func_dirname () | 7333 func_dirname () |
7264 { | 7334 { |
7265 # Extract subdirectory from the argument. | 7335 # Extract subdirectory from the argument. |
7266 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | 7336 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` |
7267 if test "X$func_dirname_result" = "X${1}"; then | 7337 if test "X$func_dirname_result" = "X${1}"; then |
7268 func_dirname_result="${3}" | 7338 func_dirname_result="${3}" |
7269 else | 7339 else |
7270 func_dirname_result="$func_dirname_result${2}" | 7340 func_dirname_result="$func_dirname_result${2}" |
7271 fi | 7341 fi |
7272 } | 7342 } |
7273 | 7343 |
7274 # func_basename file | 7344 # func_basename file |
7275 func_basename () | 7345 func_basename () |
7276 { | 7346 { |
7277 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | 7347 func_basename_result=`$ECHO "${1}" | $SED "$basename"` |
7278 } | 7348 } |
7279 | 7349 |
7280 dnl func_dirname_and_basename | 7350 dnl func_dirname_and_basename |
7281 dnl A portable version of this function is already defined in general.m4sh | 7351 dnl A portable version of this function is already defined in general.m4sh |
7282 dnl so there is no need for it here. | 7352 dnl so there is no need for it here. |
7288 # dot (in which case that matches only a dot). | 7358 # dot (in which case that matches only a dot). |
7289 # func_strip_suffix prefix name | 7359 # func_strip_suffix prefix name |
7290 func_stripname () | 7360 func_stripname () |
7291 { | 7361 { |
7292 case ${2} in | 7362 case ${2} in |
7293 .*) func_stripname_result=`$ECHO "X${3}" \ | 7363 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; |
7294 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | 7364 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; |
7295 *) func_stripname_result=`$ECHO "X${3}" \ | |
7296 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
7297 esac | 7365 esac |
7298 } | 7366 } |
7299 | 7367 |
7300 # sed scripts: | 7368 # sed scripts: |
7301 my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q' | 7369 my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q' |
7302 my_sed_long_arg='1s/^-[[^=]]*=//' | 7370 my_sed_long_arg='1s/^-[[^=]]*=//' |
7303 | 7371 |
7304 # func_opt_split | 7372 # func_opt_split |
7305 func_opt_split () | 7373 func_opt_split () |
7306 { | 7374 { |
7307 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | 7375 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` |
7308 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | 7376 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` |
7309 } | 7377 } |
7310 | 7378 |
7311 # func_lo2o object | 7379 # func_lo2o object |
7312 func_lo2o () | 7380 func_lo2o () |
7313 { | 7381 { |
7314 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | 7382 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` |
7315 } | 7383 } |
7316 | 7384 |
7317 # func_xform libobj-or-source | 7385 # func_xform libobj-or-source |
7318 func_xform () | 7386 func_xform () |
7319 { | 7387 { |
7320 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'` | 7388 func_xform_result=`$ECHO "${1}" | $SED 's/\.[[^.]]*$/.lo/'` |
7321 } | 7389 } |
7322 | 7390 |
7323 # func_arith arithmetic-term... | 7391 # func_arith arithmetic-term... |
7324 func_arith () | 7392 func_arith () |
7325 { | 7393 { |