changeset 6442 | 2d3caa191dc4 |
parent 5310 | a9945ce48999 |
child 6454 | f67fcade4e1c |
6441:ada3545fed23 | 6442:2d3caa191dc4 |
---|---|
694 AC_SUBST(ESD_CFLAGS) |
694 AC_SUBST(ESD_CFLAGS) |
695 AC_SUBST(ESD_LIBS) |
695 AC_SUBST(ESD_LIBS) |
696 rm -f conf.esdtest |
696 rm -f conf.esdtest |
697 ]) |
697 ]) |
698 ############################################################################## |
698 ############################################################################## |
699 # Based on libtool-2.2.6a |
699 # Based on libtool-2.4.2 |
700 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
700 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
701 # |
701 # |
702 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
702 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
703 # 2006, 2007, 2008 Free Software Foundation, Inc. |
703 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software |
704 # Foundation, Inc. |
|
704 # Written by Gordon Matzigkeit, 1996 |
705 # Written by Gordon Matzigkeit, 1996 |
705 # |
706 # |
706 # This file is free software; the Free Software Foundation gives |
707 # This file is free software; the Free Software Foundation gives |
707 # unlimited permission to copy and/or distribute it, with or without |
708 # unlimited permission to copy and/or distribute it, with or without |
708 # modifications, as long as this notice is preserved. |
709 # modifications, as long as this notice is preserved. |
709 |
710 |
710 m4_define([_LT_COPYING], [dnl |
711 m4_define([_LT_COPYING], [dnl |
711 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
712 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
712 # 2006, 2007, 2008 Free Software Foundation, Inc. |
713 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software |
714 # Foundation, Inc. |
|
713 # Written by Gordon Matzigkeit, 1996 |
715 # Written by Gordon Matzigkeit, 1996 |
714 # |
716 # |
715 # This file is part of GNU Libtool. |
717 # This file is part of GNU Libtool. |
716 # |
718 # |
717 # GNU Libtool is free software; you can redistribute it and/or |
719 # GNU Libtool is free software; you can redistribute it and/or |
734 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
736 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
735 # obtained by writing to the Free Software Foundation, Inc., |
737 # obtained by writing to the Free Software Foundation, Inc., |
736 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
738 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
737 ]) |
739 ]) |
738 |
740 |
739 # serial 56 LT_INIT |
741 # serial 57 LT_INIT |
740 |
742 |
741 |
743 |
742 # LT_PREREQ(VERSION) |
744 # LT_PREREQ(VERSION) |
743 # ------------------ |
745 # ------------------ |
744 # Complain and exit if this libtool version is less that VERSION. |
746 # Complain and exit if this libtool version is less that VERSION. |
763 |
765 |
764 # LT_INIT([OPTIONS]) |
766 # LT_INIT([OPTIONS]) |
765 # ------------------ |
767 # ------------------ |
766 AC_DEFUN([LT_INIT], |
768 AC_DEFUN([LT_INIT], |
767 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT |
769 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT |
770 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl |
|
768 AC_BEFORE([$0], [LT_LANG])dnl |
771 AC_BEFORE([$0], [LT_LANG])dnl |
769 AC_BEFORE([$0], [LT_OUTPUT])dnl |
772 AC_BEFORE([$0], [LT_OUTPUT])dnl |
770 AC_BEFORE([$0], [LTDL_INIT])dnl |
773 AC_BEFORE([$0], [LTDL_INIT])dnl |
771 m4_require([_LT_CHECK_BUILDDIR])dnl |
774 m4_require([_LT_CHECK_BUILDDIR])dnl |
772 |
775 |
778 AC_REQUIRE([LTOPTIONS_VERSION])dnl |
781 AC_REQUIRE([LTOPTIONS_VERSION])dnl |
779 AC_REQUIRE([LTSUGAR_VERSION])dnl |
782 AC_REQUIRE([LTSUGAR_VERSION])dnl |
780 AC_REQUIRE([LTVERSION_VERSION])dnl |
783 AC_REQUIRE([LTVERSION_VERSION])dnl |
781 AC_REQUIRE([LTOBSOLETE_VERSION])dnl |
784 AC_REQUIRE([LTOBSOLETE_VERSION])dnl |
782 m4_require([_LT_PROG_LTMAIN])dnl |
785 m4_require([_LT_PROG_LTMAIN])dnl |
786 |
|
787 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) |
|
783 |
788 |
784 dnl Parse OPTIONS |
789 dnl Parse OPTIONS |
785 _LT_SET_OPTIONS([$0], [$1]) |
790 _LT_SET_OPTIONS([$0], [$1]) |
786 |
791 |
787 # This can be used to rebuild libtool when needed |
792 # This can be used to rebuild libtool when needed |
815 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; |
820 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; |
816 \-*) ;; |
821 \-*) ;; |
817 *) break;; |
822 *) break;; |
818 esac |
823 esac |
819 done |
824 done |
820 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
825 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
821 ]) |
826 ]) |
822 |
827 |
823 |
828 |
824 # _LT_FILEUTILS_DEFAULTS |
829 # _LT_FILEUTILS_DEFAULTS |
825 # ---------------------- |
830 # ---------------------- |
835 # _LT_SETUP |
840 # _LT_SETUP |
836 # --------- |
841 # --------- |
837 m4_defun([_LT_SETUP], |
842 m4_defun([_LT_SETUP], |
838 [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
843 [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
839 AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
844 AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
845 AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl |
|
846 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl |
|
847 |
|
848 _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl |
|
849 dnl |
|
840 _LT_DECL([], [host_alias], [0], [The host system])dnl |
850 _LT_DECL([], [host_alias], [0], [The host system])dnl |
841 _LT_DECL([], [host], [0])dnl |
851 _LT_DECL([], [host], [0])dnl |
842 _LT_DECL([], [host_os], [0])dnl |
852 _LT_DECL([], [host_os], [0])dnl |
843 dnl |
853 dnl |
844 _LT_DECL([], [build_alias], [0], [The build system])dnl |
854 _LT_DECL([], [build_alias], [0], [The build system])dnl |
857 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl |
867 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl |
858 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl |
868 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl |
859 dnl |
869 dnl |
860 m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
870 m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
861 m4_require([_LT_CHECK_SHELL_FEATURES])dnl |
871 m4_require([_LT_CHECK_SHELL_FEATURES])dnl |
872 m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl |
|
862 m4_require([_LT_CMD_RELOAD])dnl |
873 m4_require([_LT_CMD_RELOAD])dnl |
863 m4_require([_LT_CHECK_MAGIC_METHOD])dnl |
874 m4_require([_LT_CHECK_MAGIC_METHOD])dnl |
875 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl |
|
864 m4_require([_LT_CMD_OLD_ARCHIVE])dnl |
876 m4_require([_LT_CMD_OLD_ARCHIVE])dnl |
865 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl |
877 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl |
878 m4_require([_LT_WITH_SYSROOT])dnl |
|
866 |
879 |
867 _LT_CONFIG_LIBTOOL_INIT([ |
880 _LT_CONFIG_LIBTOOL_INIT([ |
868 # See if we are running on zsh, and set the options which allow our |
881 # See if we are running on zsh, and set the options which allow our |
869 # commands through without removal of \ escapes INIT. |
882 # commands through without removal of \ escapes INIT. |
870 if test -n "\${ZSH_VERSION+set}" ; then |
883 if test -n "\${ZSH_VERSION+set}" ; then |
876 fi |
889 fi |
877 |
890 |
878 _LT_CHECK_OBJDIR |
891 _LT_CHECK_OBJDIR |
879 |
892 |
880 m4_require([_LT_TAG_COMPILER])dnl |
893 m4_require([_LT_TAG_COMPILER])dnl |
881 _LT_PROG_ECHO_BACKSLASH |
|
882 |
894 |
883 case $host_os in |
895 case $host_os in |
884 aix3*) |
896 aix3*) |
885 # AIX sometimes has problems with the GCC collect2 program. For some |
897 # AIX sometimes has problems with the GCC collect2 program. For some |
886 # reason, if we set the COLLECT_NAMES environment variable, the problems |
898 # reason, if we set the COLLECT_NAMES environment variable, the problems |
890 export COLLECT_NAMES |
902 export COLLECT_NAMES |
891 fi |
903 fi |
892 ;; |
904 ;; |
893 esac |
905 esac |
894 |
906 |
895 # Sed substitution that helps us do robust quoting. It backslashifies |
|
896 # metacharacters that are still active within double-quoted strings. |
|
897 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' |
|
898 |
|
899 # Same as above, but do not quote variable references. |
|
900 double_quote_subst='s/\([["`\\]]\)/\\\1/g' |
|
901 |
|
902 # Sed substitution to delay expansion of an escaped shell variable in a |
|
903 # double_quote_subst'ed string. |
|
904 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
|
905 |
|
906 # Sed substitution to delay expansion of an escaped single quote. |
|
907 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
|
908 |
|
909 # Sed substitution to avoid accidental globbing in evaled expressions |
|
910 no_glob_subst='s/\*/\\\*/g' |
|
911 |
|
912 # Global variables: |
907 # Global variables: |
913 ofile=libtool |
908 ofile=libtool |
914 can_build_shared=yes |
909 can_build_shared=yes |
915 |
910 |
916 # All known linkers require a `.a' archive for static linking (except MSVC, |
911 # All known linkers require a `.a' archive for static linking (except MSVC, |
946 _LT_LANG_C_CONFIG |
941 _LT_LANG_C_CONFIG |
947 _LT_LANG_DEFAULT_CONFIG |
942 _LT_LANG_DEFAULT_CONFIG |
948 _LT_CONFIG_COMMANDS |
943 _LT_CONFIG_COMMANDS |
949 ])# _LT_SETUP |
944 ])# _LT_SETUP |
950 |
945 |
946 |
|
947 # _LT_PREPARE_SED_QUOTE_VARS |
|
948 # -------------------------- |
|
949 # Define a few sed substitution that help us do robust quoting. |
|
950 m4_defun([_LT_PREPARE_SED_QUOTE_VARS], |
|
951 [# Backslashify metacharacters that are still active within |
|
952 # double-quoted strings. |
|
953 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' |
|
954 |
|
955 # Same as above, but do not quote variable references. |
|
956 double_quote_subst='s/\([["`\\]]\)/\\\1/g' |
|
957 |
|
958 # Sed substitution to delay expansion of an escaped shell variable in a |
|
959 # double_quote_subst'ed string. |
|
960 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
|
961 |
|
962 # Sed substitution to delay expansion of an escaped single quote. |
|
963 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
|
964 |
|
965 # Sed substitution to avoid accidental globbing in evaled expressions |
|
966 no_glob_subst='s/\*/\\\*/g' |
|
967 ]) |
|
951 |
968 |
952 # _LT_PROG_LTMAIN |
969 # _LT_PROG_LTMAIN |
953 # --------------- |
970 # --------------- |
954 # Note that this code is called both from `configure', and `config.status' |
971 # Note that this code is called both from `configure', and `config.status' |
955 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, |
972 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, |
1105 # ------------------------------------ |
1122 # ------------------------------------ |
1106 # Quote a variable value, and forward it to `config.status' so that its |
1123 # Quote a variable value, and forward it to `config.status' so that its |
1107 # declaration there will have the same value as in `configure'. VARNAME |
1124 # declaration there will have the same value as in `configure'. VARNAME |
1108 # must have a single quote delimited value for this to work. |
1125 # must have a single quote delimited value for this to work. |
1109 m4_define([_LT_CONFIG_STATUS_DECLARE], |
1126 m4_define([_LT_CONFIG_STATUS_DECLARE], |
1110 [$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`']) |
1127 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) |
1111 |
1128 |
1112 |
1129 |
1113 # _LT_CONFIG_STATUS_DECLARATIONS |
1130 # _LT_CONFIG_STATUS_DECLARATIONS |
1114 # ------------------------------ |
1131 # ------------------------------ |
1115 # We delimit libtool config variables with single quotes, so when |
1132 # We delimit libtool config variables with single quotes, so when |
1116 # we write them to config.status, we have to be sure to quote all |
1133 # we write them to config.status, we have to be sure to quote all |
1117 # embedded single quotes properly. In configure, this macro expands |
1134 # embedded single quotes properly. In configure, this macro expands |
1118 # each variable declared with _LT_DECL (and _LT_TAGDECL) into: |
1135 # each variable declared with _LT_DECL (and _LT_TAGDECL) into: |
1119 # |
1136 # |
1120 # <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`' |
1137 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`' |
1121 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], |
1138 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], |
1122 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), |
1139 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), |
1123 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) |
1140 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) |
1124 |
1141 |
1125 |
1142 |
1214 _LT_CONFIG_STATUS_DECLARATIONS |
1231 _LT_CONFIG_STATUS_DECLARATIONS |
1215 LTCC='$LTCC' |
1232 LTCC='$LTCC' |
1216 LTCFLAGS='$LTCFLAGS' |
1233 LTCFLAGS='$LTCFLAGS' |
1217 compiler='$compiler_DEFAULT' |
1234 compiler='$compiler_DEFAULT' |
1218 |
1235 |
1236 # A function that is used when there is no print builtin or printf. |
|
1237 func_fallback_echo () |
|
1238 { |
|
1239 eval 'cat <<_LTECHO_EOF |
|
1240 \$[]1 |
|
1241 _LTECHO_EOF' |
|
1242 } |
|
1243 |
|
1219 # Quote evaled strings. |
1244 # Quote evaled strings. |
1220 for var in lt_decl_all_varnames([[ \ |
1245 for var in lt_decl_all_varnames([[ \ |
1221 ]], lt_decl_quote_varnames); do |
1246 ]], lt_decl_quote_varnames); do |
1222 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
1247 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
1223 *[[\\\\\\\`\\"\\\$]]*) |
1248 *[[\\\\\\\`\\"\\\$]]*) |
1224 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
1249 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
1225 ;; |
1250 ;; |
1226 *) |
1251 *) |
1227 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
1252 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
1228 ;; |
1253 ;; |
1229 esac |
1254 esac |
1230 done |
1255 done |
1231 |
1256 |
1232 # Double-quote double-evaled strings. |
1257 # Double-quote double-evaled strings. |
1233 for var in lt_decl_all_varnames([[ \ |
1258 for var in lt_decl_all_varnames([[ \ |
1234 ]], lt_decl_dquote_varnames); do |
1259 ]], lt_decl_dquote_varnames); do |
1235 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
1260 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
1236 *[[\\\\\\\`\\"\\\$]]*) |
1261 *[[\\\\\\\`\\"\\\$]]*) |
1237 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
1262 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
1238 ;; |
1263 ;; |
1239 *) |
1264 *) |
1240 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
1265 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
1241 ;; |
1266 ;; |
1242 esac |
1267 esac |
1243 done |
1268 done |
1244 |
1269 |
1245 # Fix-up fallback echo if it was mangled by the above quoting rules. |
|
1246 case \$lt_ECHO in |
|
1247 *'\\\[$]0 --fallback-echo"')dnl " |
|
1248 lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\` |
|
1249 ;; |
|
1250 esac |
|
1251 |
|
1252 _LT_OUTPUT_LIBTOOL_INIT |
1270 _LT_OUTPUT_LIBTOOL_INIT |
1253 ]) |
1271 ]) |
1254 |
1272 |
1273 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) |
|
1274 # ------------------------------------ |
|
1275 # Generate a child script FILE with all initialization necessary to |
|
1276 # reuse the environment learned by the parent script, and make the |
|
1277 # file executable. If COMMENT is supplied, it is inserted after the |
|
1278 # `#!' sequence but before initialization text begins. After this |
|
1279 # macro, additional text can be appended to FILE to form the body of |
|
1280 # the child script. The macro ends with non-zero status if the |
|
1281 # file could not be fully written (such as if the disk is full). |
|
1282 m4_ifdef([AS_INIT_GENERATED], |
|
1283 [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], |
|
1284 [m4_defun([_LT_GENERATED_FILE_INIT], |
|
1285 [m4_require([AS_PREPARE])]dnl |
|
1286 [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl |
|
1287 [lt_write_fail=0 |
|
1288 cat >$1 <<_ASEOF || lt_write_fail=1 |
|
1289 #! $SHELL |
|
1290 # Generated by $as_me. |
|
1291 $2 |
|
1292 SHELL=\${CONFIG_SHELL-$SHELL} |
|
1293 export SHELL |
|
1294 _ASEOF |
|
1295 cat >>$1 <<\_ASEOF || lt_write_fail=1 |
|
1296 AS_SHELL_SANITIZE |
|
1297 _AS_PREPARE |
|
1298 exec AS_MESSAGE_FD>&1 |
|
1299 _ASEOF |
|
1300 test $lt_write_fail = 0 && chmod +x $1[]dnl |
|
1301 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT |
|
1255 |
1302 |
1256 # LT_OUTPUT |
1303 # LT_OUTPUT |
1257 # --------- |
1304 # --------- |
1258 # This macro allows early generation of the libtool script (before |
1305 # This macro allows early generation of the libtool script (before |
1259 # AC_OUTPUT is called), incase it is used in configure for compilation |
1306 # AC_OUTPUT is called), incase it is used in configure for compilation |
1260 # tests. |
1307 # tests. |
1261 AC_DEFUN([LT_OUTPUT], |
1308 AC_DEFUN([LT_OUTPUT], |
1262 [: ${CONFIG_LT=./config.lt} |
1309 [: ${CONFIG_LT=./config.lt} |
1263 AC_MSG_NOTICE([creating $CONFIG_LT]) |
1310 AC_MSG_NOTICE([creating $CONFIG_LT]) |
1264 cat >"$CONFIG_LT" <<_LTEOF |
1311 _LT_GENERATED_FILE_INIT(["$CONFIG_LT"], |
1265 #! $SHELL |
1312 [# Run this file to recreate a libtool stub with the current configuration.]) |
1266 # Generated by $as_me. |
1313 |
1267 # Run this file to recreate a libtool stub with the current configuration. |
1314 cat >>"$CONFIG_LT" <<\_LTEOF |
1268 |
|
1269 lt_cl_silent=false |
1315 lt_cl_silent=false |
1270 SHELL=\${CONFIG_SHELL-$SHELL} |
|
1271 _LTEOF |
|
1272 |
|
1273 cat >>"$CONFIG_LT" <<\_LTEOF |
|
1274 AS_SHELL_SANITIZE |
|
1275 _AS_PREPARE |
|
1276 |
|
1277 exec AS_MESSAGE_FD>&1 |
|
1278 exec AS_MESSAGE_LOG_FD>>config.log |
1316 exec AS_MESSAGE_LOG_FD>>config.log |
1279 { |
1317 { |
1280 echo |
1318 echo |
1281 AS_BOX([Running $as_me.]) |
1319 AS_BOX([Running $as_me.]) |
1282 } >&AS_MESSAGE_LOG_FD |
1320 } >&AS_MESSAGE_LOG_FD |
1298 lt_cl_version="\ |
1336 lt_cl_version="\ |
1299 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl |
1337 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl |
1300 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) |
1338 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) |
1301 configured by $[0], generated by m4_PACKAGE_STRING. |
1339 configured by $[0], generated by m4_PACKAGE_STRING. |
1302 |
1340 |
1303 Copyright (C) 2008 Free Software Foundation, Inc. |
1341 Copyright (C) 2011 Free Software Foundation, Inc. |
1304 This config.lt script is free software; the Free Software Foundation |
1342 This config.lt script is free software; the Free Software Foundation |
1305 gives unlimited permision to copy, distribute and modify it." |
1343 gives unlimited permision to copy, distribute and modify it." |
1306 |
1344 |
1307 while test $[#] != 0 |
1345 while test $[#] != 0 |
1308 do |
1346 do |
1343 |
1381 |
1344 # configure is writing to config.log, but config.lt does its own redirection, |
1382 # configure is writing to config.log, but config.lt does its own redirection, |
1345 # appending to config.log, which fails on DOS, as config.log is still kept |
1383 # appending to config.log, which fails on DOS, as config.log is still kept |
1346 # open by configure. Here we exec the FD to /dev/null, effectively closing |
1384 # open by configure. Here we exec the FD to /dev/null, effectively closing |
1347 # config.log, so it can be properly (re)opened and appended to by config.lt. |
1385 # config.log, so it can be properly (re)opened and appended to by config.lt. |
1348 if test "$no_create" != yes; then |
1386 lt_cl_success=: |
1349 lt_cl_success=: |
1387 test "$silent" = yes && |
1350 test "$silent" = yes && |
1388 lt_config_lt_args="$lt_config_lt_args --quiet" |
1351 lt_config_lt_args="$lt_config_lt_args --quiet" |
1389 exec AS_MESSAGE_LOG_FD>/dev/null |
1352 exec AS_MESSAGE_LOG_FD>/dev/null |
1390 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false |
1353 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false |
1391 exec AS_MESSAGE_LOG_FD>>config.log |
1354 exec AS_MESSAGE_LOG_FD>>config.log |
1392 $lt_cl_success || AS_EXIT(1) |
1355 $lt_cl_success || AS_EXIT(1) |
|
1356 fi |
|
1357 ])# LT_OUTPUT |
1393 ])# LT_OUTPUT |
1358 |
1394 |
1359 |
1395 |
1360 # _LT_CONFIG(TAG) |
1396 # _LT_CONFIG(TAG) |
1361 # --------------- |
1397 # --------------- |
1414 |
1450 |
1415 # We use sed instead of cat because bash on DJGPP gets confused if |
1451 # We use sed instead of cat because bash on DJGPP gets confused if |
1416 # if finds mixed CR/LF and LF-only lines. Since sed operates in |
1452 # if finds mixed CR/LF and LF-only lines. Since sed operates in |
1417 # text mode, it properly converts lines to CR/LF. This bash problem |
1453 # text mode, it properly converts lines to CR/LF. This bash problem |
1418 # is reportedly fixed, but why not run on old versions too? |
1454 # is reportedly fixed, but why not run on old versions too? |
1419 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ |
1455 sed '$q' "$ltmain" >> "$cfgfile" \ |
1420 || (rm -f "$cfgfile"; exit 1) |
1456 || (rm -f "$cfgfile"; exit 1) |
1421 |
1457 |
1422 _LT_PROG_XSI_SHELLFNS |
1458 _LT_PROG_REPLACE_SHELLFNS |
1423 |
1459 |
1424 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ |
1460 mv -f "$cfgfile" "$ofile" || |
1425 || (rm -f "$cfgfile"; exit 1) |
|
1426 |
|
1427 mv -f "$cfgfile" "$ofile" || |
|
1428 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
1461 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
1429 chmod +x "$ofile" |
1462 chmod +x "$ofile" |
1430 ], |
1463 ], |
1431 [cat <<_LT_EOF >> "$ofile" |
1464 [cat <<_LT_EOF >> "$ofile" |
1432 |
1465 |
1467 AC_DEFUN([LT_LANG], |
1500 AC_DEFUN([LT_LANG], |
1468 [AC_BEFORE([$0], [LT_OUTPUT])dnl |
1501 [AC_BEFORE([$0], [LT_OUTPUT])dnl |
1469 m4_case([$1], |
1502 m4_case([$1], |
1470 [C], [_LT_LANG(C)], |
1503 [C], [_LT_LANG(C)], |
1471 [C++], [_LT_LANG(CXX)], |
1504 [C++], [_LT_LANG(CXX)], |
1505 [Go], [_LT_LANG(GO)], |
|
1472 [Java], [_LT_LANG(GCJ)], |
1506 [Java], [_LT_LANG(GCJ)], |
1473 [Fortran 77], [_LT_LANG(F77)], |
1507 [Fortran 77], [_LT_LANG(F77)], |
1474 [Fortran], [_LT_LANG(FC)], |
1508 [Fortran], [_LT_LANG(FC)], |
1475 [Windows Resource], [_LT_LANG(RC)], |
1509 [Windows Resource], [_LT_LANG(RC)], |
1476 [m4_ifdef([_LT_LANG_]$1[_CONFIG], |
1510 [m4_ifdef([_LT_LANG_]$1[_CONFIG], |
1486 [LT_SUPPORTED_TAG([$1])dnl |
1520 [LT_SUPPORTED_TAG([$1])dnl |
1487 m4_append([_LT_TAGS], [$1 ])dnl |
1521 m4_append([_LT_TAGS], [$1 ])dnl |
1488 m4_define([_LT_LANG_]$1[_enabled], [])dnl |
1522 m4_define([_LT_LANG_]$1[_enabled], [])dnl |
1489 _LT_LANG_$1_CONFIG($1)])dnl |
1523 _LT_LANG_$1_CONFIG($1)])dnl |
1490 ])# _LT_LANG |
1524 ])# _LT_LANG |
1525 |
|
1526 |
|
1527 m4_ifndef([AC_PROG_GO], [ |
|
1528 ############################################################ |
|
1529 # NOTE: This macro has been submitted for inclusion into # |
|
1530 # GNU Autoconf as AC_PROG_GO. When it is available in # |
|
1531 # a released version of Autoconf we should remove this # |
|
1532 # macro and use it instead. # |
|
1533 ############################################################ |
|
1534 m4_defun([AC_PROG_GO], |
|
1535 [AC_LANG_PUSH(Go)dnl |
|
1536 AC_ARG_VAR([GOC], [Go compiler command])dnl |
|
1537 AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl |
|
1538 _AC_ARG_VAR_LDFLAGS()dnl |
|
1539 AC_CHECK_TOOL(GOC, gccgo) |
|
1540 if test -z "$GOC"; then |
|
1541 if test -n "$ac_tool_prefix"; then |
|
1542 AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) |
|
1543 fi |
|
1544 fi |
|
1545 if test -z "$GOC"; then |
|
1546 AC_CHECK_PROG(GOC, gccgo, gccgo, false) |
|
1547 fi |
|
1548 ])#m4_defun |
|
1549 ])#m4_ifndef |
|
1491 |
1550 |
1492 |
1551 |
1493 # _LT_LANG_DEFAULT_CONFIG |
1552 # _LT_LANG_DEFAULT_CONFIG |
1494 # ----------------------- |
1553 # ----------------------- |
1495 m4_defun([_LT_LANG_DEFAULT_CONFIG], |
1554 m4_defun([_LT_LANG_DEFAULT_CONFIG], |
1518 m4_ifdef([A][M_PROG_GCJ], |
1577 m4_ifdef([A][M_PROG_GCJ], |
1519 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) |
1578 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) |
1520 m4_ifdef([LT_PROG_GCJ], |
1579 m4_ifdef([LT_PROG_GCJ], |
1521 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) |
1580 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) |
1522 |
1581 |
1582 AC_PROVIDE_IFELSE([AC_PROG_GO], |
|
1583 [LT_LANG(GO)], |
|
1584 [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) |
|
1585 |
|
1523 AC_PROVIDE_IFELSE([LT_PROG_RC], |
1586 AC_PROVIDE_IFELSE([LT_PROG_RC], |
1524 [LT_LANG(RC)], |
1587 [LT_LANG(RC)], |
1525 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) |
1588 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) |
1526 ])# _LT_LANG_DEFAULT_CONFIG |
1589 ])# _LT_LANG_DEFAULT_CONFIG |
1527 |
1590 |
1528 # Obsolete macros: |
1591 # Obsolete macros: |
1529 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) |
1592 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) |
1530 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) |
1593 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) |
1531 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) |
1594 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) |
1532 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) |
1595 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) |
1596 AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) |
|
1533 dnl aclocal-1.4 backwards compatibility: |
1597 dnl aclocal-1.4 backwards compatibility: |
1534 dnl AC_DEFUN([AC_LIBTOOL_CXX], []) |
1598 dnl AC_DEFUN([AC_LIBTOOL_CXX], []) |
1535 dnl AC_DEFUN([AC_LIBTOOL_F77], []) |
1599 dnl AC_DEFUN([AC_LIBTOOL_F77], []) |
1536 dnl AC_DEFUN([AC_LIBTOOL_FC], []) |
1600 dnl AC_DEFUN([AC_LIBTOOL_FC], []) |
1537 dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) |
1601 dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) |
1602 dnl AC_DEFUN([AC_LIBTOOL_RC], []) |
|
1538 |
1603 |
1539 |
1604 |
1540 # _LT_TAG_COMPILER |
1605 # _LT_TAG_COMPILER |
1541 # ---------------- |
1606 # ---------------- |
1542 m4_defun([_LT_TAG_COMPILER], |
1607 m4_defun([_LT_TAG_COMPILER], |
1618 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
1683 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
1619 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD |
1684 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD |
1620 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
1685 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
1621 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
1686 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
1622 _lt_result=$? |
1687 _lt_result=$? |
1623 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then |
1688 # If there is a non-empty error log, and "single_module" |
1689 # appears in it, assume the flag caused a linker warning |
|
1690 if test -s conftest.err && $GREP single_module conftest.err; then |
|
1691 cat conftest.err >&AS_MESSAGE_LOG_FD |
|
1692 # Otherwise, if the output was created with a 0 exit code from |
|
1693 # the compiler, it worked. |
|
1694 elif test -f libconftest.dylib && test $_lt_result -eq 0; then |
|
1624 lt_cv_apple_cc_single_mod=yes |
1695 lt_cv_apple_cc_single_mod=yes |
1625 else |
1696 else |
1626 cat conftest.err >&AS_MESSAGE_LOG_FD |
1697 cat conftest.err >&AS_MESSAGE_LOG_FD |
1627 fi |
1698 fi |
1628 rm -rf libconftest.dylib* |
1699 rm -rf libconftest.dylib* |
1629 rm -f conftest.* |
1700 rm -f conftest.* |
1630 fi]) |
1701 fi]) |
1702 |
|
1631 AC_CACHE_CHECK([for -exported_symbols_list linker flag], |
1703 AC_CACHE_CHECK([for -exported_symbols_list linker flag], |
1632 [lt_cv_ld_exported_symbols_list], |
1704 [lt_cv_ld_exported_symbols_list], |
1633 [lt_cv_ld_exported_symbols_list=no |
1705 [lt_cv_ld_exported_symbols_list=no |
1634 save_LDFLAGS=$LDFLAGS |
1706 save_LDFLAGS=$LDFLAGS |
1635 echo "_main" > conftest.sym |
1707 echo "_main" > conftest.sym |
1636 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
1708 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
1637 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], |
1709 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], |
1638 [lt_cv_ld_exported_symbols_list=yes], |
1710 [lt_cv_ld_exported_symbols_list=yes], |
1639 [lt_cv_ld_exported_symbols_list=no]) |
1711 [lt_cv_ld_exported_symbols_list=no]) |
1640 LDFLAGS="$save_LDFLAGS" |
1712 LDFLAGS="$save_LDFLAGS" |
1713 ]) |
|
1714 |
|
1715 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], |
|
1716 [lt_cv_ld_force_load=no |
|
1717 cat > conftest.c << _LT_EOF |
|
1718 int forced_loaded() { return 2;} |
|
1719 _LT_EOF |
|
1720 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD |
|
1721 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD |
|
1722 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD |
|
1723 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD |
|
1724 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD |
|
1725 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD |
|
1726 cat > conftest.c << _LT_EOF |
|
1727 int main() { return 0;} |
|
1728 _LT_EOF |
|
1729 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD |
|
1730 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
|
1731 _lt_result=$? |
|
1732 if test -s conftest.err && $GREP force_load conftest.err; then |
|
1733 cat conftest.err >&AS_MESSAGE_LOG_FD |
|
1734 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then |
|
1735 lt_cv_ld_force_load=yes |
|
1736 else |
|
1737 cat conftest.err >&AS_MESSAGE_LOG_FD |
|
1738 fi |
|
1739 rm -f conftest.err libconftest.a conftest conftest.c |
|
1740 rm -rf conftest.dSYM |
|
1641 ]) |
1741 ]) |
1642 case $host_os in |
1742 case $host_os in |
1643 rhapsody* | darwin1.[[012]]) |
1743 rhapsody* | darwin1.[[012]]) |
1644 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
1744 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
1645 darwin1.*) |
1745 darwin1.*) |
1664 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
1764 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
1665 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
1765 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
1666 else |
1766 else |
1667 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
1767 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
1668 fi |
1768 fi |
1669 if test "$DSYMUTIL" != ":"; then |
1769 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
1670 _lt_dsymutil='~$DSYMUTIL $lib || :' |
1770 _lt_dsymutil='~$DSYMUTIL $lib || :' |
1671 else |
1771 else |
1672 _lt_dsymutil= |
1772 _lt_dsymutil= |
1673 fi |
1773 fi |
1674 ;; |
1774 ;; |
1675 esac |
1775 esac |
1676 ]) |
1776 ]) |
1677 |
1777 |
1678 |
1778 |
1679 # _LT_DARWIN_LINKER_FEATURES |
1779 # _LT_DARWIN_LINKER_FEATURES([TAG]) |
1680 # -------------------------- |
1780 # --------------------------------- |
1681 # Checks for linker and compiler features on darwin |
1781 # Checks for linker and compiler features on darwin |
1682 m4_defun([_LT_DARWIN_LINKER_FEATURES], |
1782 m4_defun([_LT_DARWIN_LINKER_FEATURES], |
1683 [ |
1783 [ |
1684 m4_require([_LT_REQUIRED_DARWIN_CHECKS]) |
1784 m4_require([_LT_REQUIRED_DARWIN_CHECKS]) |
1685 _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
1785 _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
1686 _LT_TAGVAR(hardcode_direct, $1)=no |
1786 _LT_TAGVAR(hardcode_direct, $1)=no |
1687 _LT_TAGVAR(hardcode_automatic, $1)=yes |
1787 _LT_TAGVAR(hardcode_automatic, $1)=yes |
1688 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
1788 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
1689 _LT_TAGVAR(whole_archive_flag_spec, $1)='' |
1789 if test "$lt_cv_ld_force_load" = "yes"; then |
1790 _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\"`' |
|
1791 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], |
|
1792 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) |
|
1793 else |
|
1794 _LT_TAGVAR(whole_archive_flag_spec, $1)='' |
|
1795 fi |
|
1690 _LT_TAGVAR(link_all_deplibs, $1)=yes |
1796 _LT_TAGVAR(link_all_deplibs, $1)=yes |
1691 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" |
1797 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" |
1692 case $cc_basename in |
1798 case $cc_basename in |
1693 ifort*) _lt_dar_can_shared=yes ;; |
1799 ifort*) _lt_dar_can_shared=yes ;; |
1694 *) _lt_dar_can_shared=$GCC ;; |
1800 *) _lt_dar_can_shared=$GCC ;; |
1695 esac |
1801 esac |
1696 if test "$_lt_dar_can_shared" = "yes"; then |
1802 if test "$_lt_dar_can_shared" = "yes"; then |
1697 output_verbose_link_cmd=echo |
1803 output_verbose_link_cmd=func_echo_all |
1698 _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}" |
1804 _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}" |
1699 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
1805 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
1700 _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}" |
1806 _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}" |
1701 _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}" |
1807 _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}" |
1702 m4_if([$1], [CXX], |
1808 m4_if([$1], [CXX], |
1708 else |
1814 else |
1709 _LT_TAGVAR(ld_shlibs, $1)=no |
1815 _LT_TAGVAR(ld_shlibs, $1)=no |
1710 fi |
1816 fi |
1711 ]) |
1817 ]) |
1712 |
1818 |
1713 # _LT_SYS_MODULE_PATH_AIX |
1819 # _LT_SYS_MODULE_PATH_AIX([TAGNAME]) |
1714 # ----------------------- |
1820 # ---------------------------------- |
1715 # Links a minimal program and checks the executable |
1821 # Links a minimal program and checks the executable |
1716 # for the system default hardcoded library path. In most cases, |
1822 # for the system default hardcoded library path. In most cases, |
1717 # this is /usr/lib:/lib, but when the MPI compilers are used |
1823 # this is /usr/lib:/lib, but when the MPI compilers are used |
1718 # the location of the communication and MPI libs are included too. |
1824 # the location of the communication and MPI libs are included too. |
1719 # If we don't find anything, use the default library path according |
1825 # If we don't find anything, use the default library path according |
1720 # to the aix ld manual. |
1826 # to the aix ld manual. |
1827 # Store the results from the different compilers for each TAGNAME. |
|
1828 # Allow to override them for all tags through lt_cv_aix_libpath. |
|
1721 m4_defun([_LT_SYS_MODULE_PATH_AIX], |
1829 m4_defun([_LT_SYS_MODULE_PATH_AIX], |
1722 [m4_require([_LT_DECL_SED])dnl |
1830 [m4_require([_LT_DECL_SED])dnl |
1723 AC_LINK_IFELSE(AC_LANG_PROGRAM,[ |
1831 if test "${lt_cv_aix_libpath+set}" = set; then |
1724 lt_aix_libpath_sed=' |
1832 aix_libpath=$lt_cv_aix_libpath |
1725 /Import File Strings/,/^$/ { |
1833 else |
1726 /^0/ { |
1834 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], |
1727 s/^0 *\(.*\)$/\1/ |
1835 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ |
1728 p |
1836 lt_aix_libpath_sed='[ |
1729 } |
1837 /Import File Strings/,/^$/ { |
1730 }' |
1838 /^0/ { |
1731 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
1839 s/^0 *\([^ ]*\) *$/\1/ |
1732 # Check for a 64-bit object if we didn't find anything. |
1840 p |
1733 if test -z "$aix_libpath"; then |
1841 } |
1734 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
1842 }]' |
1735 fi],[]) |
1843 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
1736 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
1844 # Check for a 64-bit object if we didn't find anything. |
1845 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then |
|
1846 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
|
1847 fi],[]) |
|
1848 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then |
|
1849 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib" |
|
1850 fi |
|
1851 ]) |
|
1852 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) |
|
1853 fi |
|
1737 ])# _LT_SYS_MODULE_PATH_AIX |
1854 ])# _LT_SYS_MODULE_PATH_AIX |
1738 |
1855 |
1739 |
1856 |
1740 # _LT_SHELL_INIT(ARG) |
1857 # _LT_SHELL_INIT(ARG) |
1741 # ------------------- |
1858 # ------------------- |
1742 m4_define([_LT_SHELL_INIT], |
1859 m4_define([_LT_SHELL_INIT], |
1743 [ifdef([AC_DIVERSION_NOTICE], |
1860 [m4_divert_text([M4SH-INIT], [$1 |
1744 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], |
1861 ])])# _LT_SHELL_INIT |
1745 [AC_DIVERT_PUSH(NOTICE)]) |
1862 |
1746 $1 |
|
1747 AC_DIVERT_POP |
|
1748 ])# _LT_SHELL_INIT |
|
1749 |
1863 |
1750 |
1864 |
1751 # _LT_PROG_ECHO_BACKSLASH |
1865 # _LT_PROG_ECHO_BACKSLASH |
1752 # ----------------------- |
1866 # ----------------------- |
1753 # Add some code to the start of the generated configure script which |
1867 # Find how we can fake an echo command that does not interpret backslash. |
1754 # will find an echo command which doesn't interpret backslashes. |
1868 # In particular, with Autoconf 2.60 or later we add some code to the start |
1869 # of the generated configure script which will find a shell with a builtin |
|
1870 # printf (which we can use as an echo command). |
|
1755 m4_defun([_LT_PROG_ECHO_BACKSLASH], |
1871 m4_defun([_LT_PROG_ECHO_BACKSLASH], |
1756 [_LT_SHELL_INIT([ |
1872 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
1757 # Check that we are running under the correct shell. |
1873 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
1758 SHELL=${CONFIG_SHELL-/bin/sh} |
1874 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
1759 |
1875 |
1760 case X$lt_ECHO in |
1876 AC_MSG_CHECKING([how to print strings]) |
1761 X*--fallback-echo) |
1877 # Test print first, because it will be a builtin if present. |
1762 # Remove one level of quotation (which was required for Make). |
1878 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ |
1763 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` |
1879 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
1764 ;; |
1880 ECHO='print -r --' |
1881 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
|
1882 ECHO='printf %s\n' |
|
1883 else |
|
1884 # Use this function as a fallback that always works. |
|
1885 func_fallback_echo () |
|
1886 { |
|
1887 eval 'cat <<_LTECHO_EOF |
|
1888 $[]1 |
|
1889 _LTECHO_EOF' |
|
1890 } |
|
1891 ECHO='func_fallback_echo' |
|
1892 fi |
|
1893 |
|
1894 # func_echo_all arg... |
|
1895 # Invoke $ECHO with all args, space-separated. |
|
1896 func_echo_all () |
|
1897 { |
|
1898 $ECHO "$*" |
|
1899 } |
|
1900 |
|
1901 case "$ECHO" in |
|
1902 printf*) AC_MSG_RESULT([printf]) ;; |
|
1903 print*) AC_MSG_RESULT([print -r]) ;; |
|
1904 *) AC_MSG_RESULT([cat]) ;; |
|
1765 esac |
1905 esac |
1766 |
1906 |
1767 ECHO=${lt_ECHO-echo} |
1907 m4_ifdef([_AS_DETECT_SUGGESTED], |
1768 if test "X[$]1" = X--no-reexec; then |
1908 [_AS_DETECT_SUGGESTED([ |
1769 # Discard the --no-reexec flag, and continue. |
1909 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( |
1770 shift |
1910 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
1771 elif test "X[$]1" = X--fallback-echo; then |
1911 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
1772 # Avoid inline document here, it may be left over |
1912 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
1773 : |
1913 PATH=/empty FPATH=/empty; export PATH FPATH |
1774 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then |
1914 test "X`printf %s $ECHO`" = "X$ECHO" \ |
1775 # Yippee, $ECHO works! |
1915 || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) |
1776 : |
1916 |
1777 else |
|
1778 # Restart under the correct shell. |
|
1779 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} |
|
1780 fi |
|
1781 |
|
1782 if test "X[$]1" = X--fallback-echo; then |
|
1783 # used as fallback echo |
|
1784 shift |
|
1785 cat <<_LT_EOF |
|
1786 [$]* |
|
1787 _LT_EOF |
|
1788 exit 0 |
|
1789 fi |
|
1790 |
|
1791 # The HP-UX ksh and POSIX shell print the target directory to stdout |
|
1792 # if CDPATH is set. |
|
1793 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
|
1794 |
|
1795 if test -z "$lt_ECHO"; then |
|
1796 if test "X${echo_test_string+set}" != Xset; then |
|
1797 # find a string as large as possible, as long as the shell can cope with it |
|
1798 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do |
|
1799 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
|
1800 if { echo_test_string=`eval $cmd`; } 2>/dev/null && |
|
1801 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null |
|
1802 then |
|
1803 break |
|
1804 fi |
|
1805 done |
|
1806 fi |
|
1807 |
|
1808 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
|
1809 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && |
|
1810 test "X$echo_testing_string" = "X$echo_test_string"; then |
|
1811 : |
|
1812 else |
|
1813 # The Solaris, AIX, and Digital Unix default echo programs unquote |
|
1814 # backslashes. This makes it impossible to quote backslashes using |
|
1815 # echo "$something" | sed 's/\\/\\\\/g' |
|
1816 # |
|
1817 # So, first we look for a working echo in the user's PATH. |
|
1818 |
|
1819 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
1820 for dir in $PATH /usr/ucb; do |
|
1821 IFS="$lt_save_ifs" |
|
1822 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
|
1823 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
|
1824 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
|
1825 test "X$echo_testing_string" = "X$echo_test_string"; then |
|
1826 ECHO="$dir/echo" |
|
1827 break |
|
1828 fi |
|
1829 done |
|
1830 IFS="$lt_save_ifs" |
|
1831 |
|
1832 if test "X$ECHO" = Xecho; then |
|
1833 # We didn't find a better echo, so look for alternatives. |
|
1834 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && |
|
1835 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && |
|
1836 test "X$echo_testing_string" = "X$echo_test_string"; then |
|
1837 # This shell has a builtin print -r that does the trick. |
|
1838 ECHO='print -r' |
|
1839 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && |
|
1840 test "X$CONFIG_SHELL" != X/bin/ksh; then |
|
1841 # If we have ksh, try running configure again with it. |
|
1842 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
|
1843 export ORIGINAL_CONFIG_SHELL |
|
1844 CONFIG_SHELL=/bin/ksh |
|
1845 export CONFIG_SHELL |
|
1846 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} |
|
1847 else |
|
1848 # Try using printf. |
|
1849 ECHO='printf %s\n' |
|
1850 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
|
1851 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && |
|
1852 test "X$echo_testing_string" = "X$echo_test_string"; then |
|
1853 # Cool, printf works |
|
1854 : |
|
1855 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && |
|
1856 test "X$echo_testing_string" = 'X\t' && |
|
1857 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
|
1858 test "X$echo_testing_string" = "X$echo_test_string"; then |
|
1859 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
|
1860 export CONFIG_SHELL |
|
1861 SHELL="$CONFIG_SHELL" |
|
1862 export SHELL |
|
1863 ECHO="$CONFIG_SHELL [$]0 --fallback-echo" |
|
1864 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && |
|
1865 test "X$echo_testing_string" = 'X\t' && |
|
1866 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
|
1867 test "X$echo_testing_string" = "X$echo_test_string"; then |
|
1868 ECHO="$CONFIG_SHELL [$]0 --fallback-echo" |
|
1869 else |
|
1870 # maybe with a smaller string... |
|
1871 prev=: |
|
1872 |
|
1873 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do |
|
1874 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null |
|
1875 then |
|
1876 break |
|
1877 fi |
|
1878 prev="$cmd" |
|
1879 done |
|
1880 |
|
1881 if test "$prev" != 'sed 50q "[$]0"'; then |
|
1882 echo_test_string=`eval $prev` |
|
1883 export echo_test_string |
|
1884 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} |
|
1885 else |
|
1886 # Oops. We lost completely, so just stick with echo. |
|
1887 ECHO=echo |
|
1888 fi |
|
1889 fi |
|
1890 fi |
|
1891 fi |
|
1892 fi |
|
1893 fi |
|
1894 |
|
1895 # Copy echo and quote the copy suitably for passing to libtool from |
|
1896 # the Makefile, instead of quoting the original, which is used later. |
|
1897 lt_ECHO=$ECHO |
|
1898 if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then |
|
1899 lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" |
|
1900 fi |
|
1901 |
|
1902 AC_SUBST(lt_ECHO) |
|
1903 ]) |
|
1904 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) |
1917 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) |
1905 _LT_DECL([], [ECHO], [1], |
1918 _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) |
1906 [An echo program that does not interpret backslashes]) |
|
1907 ])# _LT_PROG_ECHO_BACKSLASH |
1919 ])# _LT_PROG_ECHO_BACKSLASH |
1908 |
1920 |
1921 |
|
1922 # _LT_WITH_SYSROOT |
|
1923 # ---------------- |
|
1924 AC_DEFUN([_LT_WITH_SYSROOT], |
|
1925 [AC_MSG_CHECKING([for sysroot]) |
|
1926 AC_ARG_WITH([sysroot], |
|
1927 [ --with-sysroot[=DIR] Search for dependent libraries within DIR |
|
1928 (or the compiler's sysroot if not specified).], |
|
1929 [], [with_sysroot=no]) |
|
1930 |
|
1931 dnl lt_sysroot will always be passed unquoted. We quote it here |
|
1932 dnl in case the user passed a directory name. |
|
1933 lt_sysroot= |
|
1934 case ${with_sysroot} in #( |
|
1935 yes) |
|
1936 if test "$GCC" = yes; then |
|
1937 lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
|
1938 fi |
|
1939 ;; #( |
|
1940 /*) |
|
1941 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` |
|
1942 ;; #( |
|
1943 no|'') |
|
1944 ;; #( |
|
1945 *) |
|
1946 AC_MSG_RESULT([${with_sysroot}]) |
|
1947 AC_MSG_ERROR([The sysroot must be an absolute path.]) |
|
1948 ;; |
|
1949 esac |
|
1950 |
|
1951 AC_MSG_RESULT([${lt_sysroot:-no}]) |
|
1952 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl |
|
1953 [dependent libraries, and in which our libraries should be installed.])]) |
|
1909 |
1954 |
1910 # _LT_ENABLE_LOCK |
1955 # _LT_ENABLE_LOCK |
1911 # --------------- |
1956 # --------------- |
1912 m4_defun([_LT_ENABLE_LOCK], |
1957 m4_defun([_LT_ENABLE_LOCK], |
1913 [AC_ARG_ENABLE([libtool-lock], |
1958 [AC_ARG_ENABLE([libtool-lock], |
1933 fi |
1978 fi |
1934 rm -rf conftest* |
1979 rm -rf conftest* |
1935 ;; |
1980 ;; |
1936 *-*-irix6*) |
1981 *-*-irix6*) |
1937 # Find out which ABI we are using. |
1982 # Find out which ABI we are using. |
1938 echo '[#]line __oline__ "configure"' > conftest.$ac_ext |
1983 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext |
1939 if AC_TRY_EVAL(ac_compile); then |
1984 if AC_TRY_EVAL(ac_compile); then |
1940 if test "$lt_cv_prog_gnu_ld" = yes; then |
1985 if test "$lt_cv_prog_gnu_ld" = yes; then |
1941 case `/usr/bin/file conftest.$ac_objext` in |
1986 case `/usr/bin/file conftest.$ac_objext` in |
1942 *32-bit*) |
1987 *32-bit*) |
1943 LD="${LD-ld} -melf32bsmip" |
1988 LD="${LD-ld} -melf32bsmip" |
2026 if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
2071 if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
2027 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
2072 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
2028 CFLAGS="$SAVE_CFLAGS" |
2073 CFLAGS="$SAVE_CFLAGS" |
2029 fi |
2074 fi |
2030 ;; |
2075 ;; |
2031 sparc*-*solaris*) |
2076 *-*solaris*) |
2032 # Find out which ABI we are using. |
2077 # Find out which ABI we are using. |
2033 echo 'int i;' > conftest.$ac_ext |
2078 echo 'int i;' > conftest.$ac_ext |
2034 if AC_TRY_EVAL(ac_compile); then |
2079 if AC_TRY_EVAL(ac_compile); then |
2035 case `/usr/bin/file conftest.o` in |
2080 case `/usr/bin/file conftest.o` in |
2036 *64-bit*) |
2081 *64-bit*) |
2037 case $lt_cv_prog_gnu_ld in |
2082 case $lt_cv_prog_gnu_ld in |
2038 yes*) LD="${LD-ld} -m elf64_sparc" ;; |
2083 yes*) |
2084 case $host in |
|
2085 i?86-*-solaris*) |
|
2086 LD="${LD-ld} -m elf_x86_64" |
|
2087 ;; |
|
2088 sparc*-*-solaris*) |
|
2089 LD="${LD-ld} -m elf64_sparc" |
|
2090 ;; |
|
2091 esac |
|
2092 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. |
|
2093 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then |
|
2094 LD="${LD-ld}_sol2" |
|
2095 fi |
|
2096 ;; |
|
2039 *) |
2097 *) |
2040 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
2098 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
2041 LD="${LD-ld} -64" |
2099 LD="${LD-ld} -64" |
2042 fi |
2100 fi |
2043 ;; |
2101 ;; |
2051 |
2109 |
2052 need_locks="$enable_libtool_lock" |
2110 need_locks="$enable_libtool_lock" |
2053 ])# _LT_ENABLE_LOCK |
2111 ])# _LT_ENABLE_LOCK |
2054 |
2112 |
2055 |
2113 |
2114 # _LT_PROG_AR |
|
2115 # ----------- |
|
2116 m4_defun([_LT_PROG_AR], |
|
2117 [AC_CHECK_TOOLS(AR, [ar], false) |
|
2118 : ${AR=ar} |
|
2119 : ${AR_FLAGS=cru} |
|
2120 _LT_DECL([], [AR], [1], [The archiver]) |
|
2121 _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) |
|
2122 |
|
2123 AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], |
|
2124 [lt_cv_ar_at_file=no |
|
2125 AC_COMPILE_IFELSE([AC_LANG_PROGRAM], |
|
2126 [echo conftest.$ac_objext > conftest.lst |
|
2127 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' |
|
2128 AC_TRY_EVAL([lt_ar_try]) |
|
2129 if test "$ac_status" -eq 0; then |
|
2130 # Ensure the archiver fails upon bogus file names. |
|
2131 rm -f conftest.$ac_objext libconftest.a |
|
2132 AC_TRY_EVAL([lt_ar_try]) |
|
2133 if test "$ac_status" -ne 0; then |
|
2134 lt_cv_ar_at_file=@ |
|
2135 fi |
|
2136 fi |
|
2137 rm -f conftest.* libconftest.a |
|
2138 ]) |
|
2139 ]) |
|
2140 |
|
2141 if test "x$lt_cv_ar_at_file" = xno; then |
|
2142 archiver_list_spec= |
|
2143 else |
|
2144 archiver_list_spec=$lt_cv_ar_at_file |
|
2145 fi |
|
2146 _LT_DECL([], [archiver_list_spec], [1], |
|
2147 [How to feed a file listing to the archiver]) |
|
2148 ])# _LT_PROG_AR |
|
2149 |
|
2150 |
|
2056 # _LT_CMD_OLD_ARCHIVE |
2151 # _LT_CMD_OLD_ARCHIVE |
2057 # ------------------- |
2152 # ------------------- |
2058 m4_defun([_LT_CMD_OLD_ARCHIVE], |
2153 m4_defun([_LT_CMD_OLD_ARCHIVE], |
2059 [AC_CHECK_TOOL(AR, ar, false) |
2154 [_LT_PROG_AR |
2060 test -z "$AR" && AR=ar |
|
2061 test -z "$AR_FLAGS" && AR_FLAGS=cru |
|
2062 _LT_DECL([], [AR], [1], [The archiver]) |
|
2063 _LT_DECL([], [AR_FLAGS], [1]) |
|
2064 |
2155 |
2065 AC_CHECK_TOOL(STRIP, strip, :) |
2156 AC_CHECK_TOOL(STRIP, strip, :) |
2066 test -z "$STRIP" && STRIP=: |
2157 test -z "$STRIP" && STRIP=: |
2067 _LT_DECL([], [STRIP], [1], [A symbol stripping program]) |
2158 _LT_DECL([], [STRIP], [1], [A symbol stripping program]) |
2068 |
2159 |
2077 old_postuninstall_cmds= |
2168 old_postuninstall_cmds= |
2078 |
2169 |
2079 if test -n "$RANLIB"; then |
2170 if test -n "$RANLIB"; then |
2080 case $host_os in |
2171 case $host_os in |
2081 openbsd*) |
2172 openbsd*) |
2082 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
2173 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
2083 ;; |
2174 ;; |
2084 *) |
2175 *) |
2085 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
2176 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
2086 ;; |
2177 ;; |
2087 esac |
2178 esac |
2088 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
2179 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
2089 fi |
2180 fi |
2181 |
|
2182 case $host_os in |
|
2183 darwin*) |
|
2184 lock_old_archive_extraction=yes ;; |
|
2185 *) |
|
2186 lock_old_archive_extraction=no ;; |
|
2187 esac |
|
2090 _LT_DECL([], [old_postinstall_cmds], [2]) |
2188 _LT_DECL([], [old_postinstall_cmds], [2]) |
2091 _LT_DECL([], [old_postuninstall_cmds], [2]) |
2189 _LT_DECL([], [old_postuninstall_cmds], [2]) |
2092 _LT_TAGDECL([], [old_archive_cmds], [2], |
2190 _LT_TAGDECL([], [old_archive_cmds], [2], |
2093 [Commands used to build an old-style archive]) |
2191 [Commands used to build an old-style archive]) |
2192 _LT_DECL([], [lock_old_archive_extraction], [0], |
|
2193 [Whether to use a lock for old archive extraction]) |
|
2094 ])# _LT_CMD_OLD_ARCHIVE |
2194 ])# _LT_CMD_OLD_ARCHIVE |
2095 |
2195 |
2096 |
2196 |
2097 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
2197 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
2098 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) |
2198 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) |
2113 # The option is referenced via a variable to avoid confusing sed. |
2213 # The option is referenced via a variable to avoid confusing sed. |
2114 lt_compile=`echo "$ac_compile" | $SED \ |
2214 lt_compile=`echo "$ac_compile" | $SED \ |
2115 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
2215 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
2116 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
2216 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
2117 -e 's:$: $lt_compiler_flag:'` |
2217 -e 's:$: $lt_compiler_flag:'` |
2118 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
2218 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
2119 (eval "$lt_compile" 2>conftest.err) |
2219 (eval "$lt_compile" 2>conftest.err) |
2120 ac_status=$? |
2220 ac_status=$? |
2121 cat conftest.err >&AS_MESSAGE_LOG_FD |
2221 cat conftest.err >&AS_MESSAGE_LOG_FD |
2122 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
2123 if (exit $ac_status) && test -s "$ac_outfile"; then |
2223 if (exit $ac_status) && test -s "$ac_outfile"; then |
2124 # The compiler can only warn and ignore the option if not recognized |
2224 # The compiler can only warn and ignore the option if not recognized |
2125 # So say no if there are warnings other than the usual output. |
2225 # So say no if there are warnings other than the usual output. |
2126 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
2226 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
2127 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
2227 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
2128 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
2228 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
2129 $2=yes |
2229 $2=yes |
2130 fi |
2230 fi |
2131 fi |
2231 fi |
2161 # The linker can only warn and ignore the option if not recognized |
2261 # The linker can only warn and ignore the option if not recognized |
2162 # So say no if there are warnings |
2262 # So say no if there are warnings |
2163 if test -s conftest.err; then |
2263 if test -s conftest.err; then |
2164 # Append any errors to the config.log. |
2264 # Append any errors to the config.log. |
2165 cat conftest.err 1>&AS_MESSAGE_LOG_FD |
2265 cat conftest.err 1>&AS_MESSAGE_LOG_FD |
2166 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
2266 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
2167 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
2267 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
2168 if diff conftest.exp conftest.er2 >/dev/null; then |
2268 if diff conftest.exp conftest.er2 >/dev/null; then |
2169 $2=yes |
2269 $2=yes |
2170 fi |
2270 fi |
2171 else |
2271 else |
2224 # Instead, let's just punt: use the minimum linelength reported by |
2324 # Instead, let's just punt: use the minimum linelength reported by |
2225 # all of the supported platforms: 8192 (on NT/2K/XP). |
2325 # all of the supported platforms: 8192 (on NT/2K/XP). |
2226 lt_cv_sys_max_cmd_len=8192; |
2326 lt_cv_sys_max_cmd_len=8192; |
2227 ;; |
2327 ;; |
2228 |
2328 |
2229 beos*) |
2329 mint*) |
2230 # On BeOS, this test takes a really really long time. |
2330 # On MiNT this can take a long time and run out of memory. |
2231 # So we just punt and use a minimum line length of 8192. |
|
2232 lt_cv_sys_max_cmd_len=8192; |
2331 lt_cv_sys_max_cmd_len=8192; |
2233 ;; |
2332 ;; |
2234 |
2333 |
2235 amigaos*) |
2334 amigaos*) |
2236 # On AmigaOS with pdksh, this test takes hours, literally. |
2335 # On AmigaOS with pdksh, this test takes hours, literally. |
2253 ;; |
2352 ;; |
2254 |
2353 |
2255 interix*) |
2354 interix*) |
2256 # We know the value 262144 and hardcode it with a safety zone (like BSD) |
2355 # We know the value 262144 and hardcode it with a safety zone (like BSD) |
2257 lt_cv_sys_max_cmd_len=196608 |
2356 lt_cv_sys_max_cmd_len=196608 |
2357 ;; |
|
2358 |
|
2359 os2*) |
|
2360 # The test takes a long time on OS/2. |
|
2361 lt_cv_sys_max_cmd_len=8192 |
|
2258 ;; |
2362 ;; |
2259 |
2363 |
2260 osf*) |
2364 osf*) |
2261 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
2365 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
2262 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
2366 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
2294 done |
2398 done |
2295 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
2399 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
2296 # If test is not a shell built-in, we'll probably end up computing a |
2400 # If test is not a shell built-in, we'll probably end up computing a |
2297 # maximum length that is only half of the actual maximum length, but |
2401 # maximum length that is only half of the actual maximum length, but |
2298 # we can't tell. |
2402 # we can't tell. |
2299 while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ |
2403 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ |
2300 = "XX$teststring$teststring"; } >/dev/null 2>&1 && |
2404 = "X$teststring$teststring"; } >/dev/null 2>&1 && |
2301 test $i != 17 # 1/2 MB should be enough |
2405 test $i != 17 # 1/2 MB should be enough |
2302 do |
2406 do |
2303 i=`expr $i + 1` |
2407 i=`expr $i + 1` |
2304 teststring=$teststring$teststring |
2408 teststring=$teststring$teststring |
2305 done |
2409 done |
2346 [$4] |
2450 [$4] |
2347 else |
2451 else |
2348 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
2452 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
2349 lt_status=$lt_dlunknown |
2453 lt_status=$lt_dlunknown |
2350 cat > conftest.$ac_ext <<_LT_EOF |
2454 cat > conftest.$ac_ext <<_LT_EOF |
2351 [#line __oline__ "configure" |
2455 [#line $LINENO "configure" |
2352 #include "confdefs.h" |
2456 #include "confdefs.h" |
2353 |
2457 |
2354 #if HAVE_DLFCN_H |
2458 #if HAVE_DLFCN_H |
2355 #include <dlfcn.h> |
2459 #include <dlfcn.h> |
2356 #endif |
2460 #endif |
2387 # endif |
2491 # endif |
2388 # endif |
2492 # endif |
2389 # endif |
2493 # endif |
2390 #endif |
2494 #endif |
2391 |
2495 |
2392 void fnord() { int i=42;} |
2496 /* When -fvisbility=hidden is used, assume the code has been annotated |
2497 correspondingly for the symbols needed. */ |
|
2498 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
|
2499 int fnord () __attribute__((visibility("default"))); |
|
2500 #endif |
|
2501 |
|
2502 int fnord () { return 42; } |
|
2393 int main () |
2503 int main () |
2394 { |
2504 { |
2395 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
2505 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
2396 int status = $lt_dlunknown; |
2506 int status = $lt_dlunknown; |
2397 |
2507 |
2398 if (self) |
2508 if (self) |
2399 { |
2509 { |
2400 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
2510 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
2401 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
2511 else |
2512 { |
|
2513 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
2514 else puts (dlerror ()); |
|
2515 } |
|
2402 /* dlclose (self); */ |
2516 /* dlclose (self); */ |
2403 } |
2517 } |
2404 else |
2518 else |
2405 puts (dlerror ()); |
2519 puts (dlerror ()); |
2406 |
2520 |
2572 # with a dollar sign (not a hyphen), so the echo should work correctly. |
2686 # with a dollar sign (not a hyphen), so the echo should work correctly. |
2573 lt_compile=`echo "$ac_compile" | $SED \ |
2687 lt_compile=`echo "$ac_compile" | $SED \ |
2574 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
2688 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
2575 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
2689 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
2576 -e 's:$: $lt_compiler_flag:'` |
2690 -e 's:$: $lt_compiler_flag:'` |
2577 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
2691 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
2578 (eval "$lt_compile" 2>out/conftest.err) |
2692 (eval "$lt_compile" 2>out/conftest.err) |
2579 ac_status=$? |
2693 ac_status=$? |
2580 cat out/conftest.err >&AS_MESSAGE_LOG_FD |
2694 cat out/conftest.err >&AS_MESSAGE_LOG_FD |
2581 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
2582 if (exit $ac_status) && test -s out/conftest2.$ac_objext |
2696 if (exit $ac_status) && test -s out/conftest2.$ac_objext |
2583 then |
2697 then |
2584 # The compiler can only warn and ignore the option if not recognized |
2698 # The compiler can only warn and ignore the option if not recognized |
2585 # So say no if there are warnings |
2699 # So say no if there are warnings |
2586 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
2700 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
2587 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
2701 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
2588 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
2702 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
2589 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
2703 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
2590 fi |
2704 fi |
2591 fi |
2705 fi |
2740 [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
2854 [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
2741 m4_require([_LT_DECL_EGREP])dnl |
2855 m4_require([_LT_DECL_EGREP])dnl |
2742 m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
2856 m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
2743 m4_require([_LT_DECL_OBJDUMP])dnl |
2857 m4_require([_LT_DECL_OBJDUMP])dnl |
2744 m4_require([_LT_DECL_SED])dnl |
2858 m4_require([_LT_DECL_SED])dnl |
2859 m4_require([_LT_CHECK_SHELL_FEATURES])dnl |
|
2745 AC_MSG_CHECKING([dynamic linker characteristics]) |
2860 AC_MSG_CHECKING([dynamic linker characteristics]) |
2746 m4_if([$1], |
2861 m4_if([$1], |
2747 [], [ |
2862 [], [ |
2748 if test "$GCC" = yes; then |
2863 if test "$GCC" = yes; then |
2749 case $host_os in |
2864 case $host_os in |
2750 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
2865 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
2751 *) lt_awk_arg="/^libraries:/" ;; |
2866 *) lt_awk_arg="/^libraries:/" ;; |
2752 esac |
2867 esac |
2753 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
2868 case $host_os in |
2754 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then |
2869 mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;; |
2870 *) lt_sed_strip_eq="s,=/,/,g" ;; |
|
2871 esac |
|
2872 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` |
|
2873 case $lt_search_path_spec in |
|
2874 *\;*) |
|
2755 # if the path contains ";" then we assume it to be the separator |
2875 # if the path contains ";" then we assume it to be the separator |
2756 # otherwise default to the standard path separator (i.e. ":") - it is |
2876 # otherwise default to the standard path separator (i.e. ":") - it is |
2757 # assumed that no part of a normal pathname contains ";" but that should |
2877 # assumed that no part of a normal pathname contains ";" but that should |
2758 # okay in the real world where ";" in dirpaths is itself problematic. |
2878 # okay in the real world where ";" in dirpaths is itself problematic. |
2759 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` |
2879 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
2760 else |
2880 ;; |
2761 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
2881 *) |
2762 fi |
2882 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` |
2883 ;; |
|
2884 esac |
|
2763 # Ok, now we have the path, separated by spaces, we can step through it |
2885 # Ok, now we have the path, separated by spaces, we can step through it |
2764 # and add multilib dir if necessary. |
2886 # and add multilib dir if necessary. |
2765 lt_tmp_lt_search_path_spec= |
2887 lt_tmp_lt_search_path_spec= |
2766 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
2888 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
2767 for lt_sys_path in $lt_search_path_spec; do |
2889 for lt_sys_path in $lt_search_path_spec; do |
2770 else |
2892 else |
2771 test -d "$lt_sys_path" && \ |
2893 test -d "$lt_sys_path" && \ |
2772 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
2894 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
2773 fi |
2895 fi |
2774 done |
2896 done |
2775 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' |
2897 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
2776 BEGIN {RS=" "; FS="/|\n";} { |
2898 BEGIN {RS=" "; FS="/|\n";} { |
2777 lt_foo=""; |
2899 lt_foo=""; |
2778 lt_count=0; |
2900 lt_count=0; |
2779 for (lt_i = NF; lt_i > 0; lt_i--) { |
2901 for (lt_i = NF; lt_i > 0; lt_i--) { |
2780 if ($lt_i != "" && $lt_i != ".") { |
2902 if ($lt_i != "" && $lt_i != ".") { |
2790 } |
2912 } |
2791 } |
2913 } |
2792 if (lt_foo != "") { lt_freq[[lt_foo]]++; } |
2914 if (lt_foo != "") { lt_freq[[lt_foo]]++; } |
2793 if (lt_freq[[lt_foo]] == 1) { print lt_foo; } |
2915 if (lt_freq[[lt_foo]] == 1) { print lt_foo; } |
2794 }'` |
2916 }'` |
2795 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` |
2917 # AWK program above erroneously prepends '/' to C:/dos/paths |
2918 # for these hosts. |
|
2919 case $host_os in |
|
2920 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ |
|
2921 $SED 's,/\([[A-Za-z]]:\),\1,g'` ;; |
|
2922 esac |
|
2923 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` |
|
2796 else |
2924 else |
2797 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
2925 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
2798 fi]) |
2926 fi]) |
2799 library_names_spec= |
2927 library_names_spec= |
2800 libname_spec='lib$name' |
2928 libname_spec='lib$name' |
2816 # flags to be left without arguments |
2944 # flags to be left without arguments |
2817 need_version=unknown |
2945 need_version=unknown |
2818 |
2946 |
2819 case $host_os in |
2947 case $host_os in |
2820 aix3*) |
2948 aix3*) |
2821 version_type=linux |
2949 version_type=linux # correct to gnu/linux during the next big refactor |
2822 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
2950 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
2823 shlibpath_var=LIBPATH |
2951 shlibpath_var=LIBPATH |
2824 |
2952 |
2825 # AIX 3 has no versioning support, so we append a major version to the name. |
2953 # AIX 3 has no versioning support, so we append a major version to the name. |
2826 soname_spec='${libname}${release}${shared_ext}$major' |
2954 soname_spec='${libname}${release}${shared_ext}$major' |
2827 ;; |
2955 ;; |
2828 |
2956 |
2829 aix[[4-9]]*) |
2957 aix[[4-9]]*) |
2830 version_type=linux |
2958 version_type=linux # correct to gnu/linux during the next big refactor |
2831 need_lib_prefix=no |
2959 need_lib_prefix=no |
2832 need_version=no |
2960 need_version=no |
2833 hardcode_into_libs=yes |
2961 hardcode_into_libs=yes |
2834 if test "$host_cpu" = ia64; then |
2962 if test "$host_cpu" = ia64; then |
2835 # AIX 5 supports IA64 |
2963 # AIX 5 supports IA64 |
2878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
3006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2879 ;; |
3007 ;; |
2880 m68k) |
3008 m68k) |
2881 library_names_spec='$libname.ixlibrary $libname.a' |
3009 library_names_spec='$libname.ixlibrary $libname.a' |
2882 # Create ${libname}_ixlibrary.a entries in /sys/libs. |
3010 # Create ${libname}_ixlibrary.a entries in /sys/libs. |
2883 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' |
3011 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' |
2884 ;; |
3012 ;; |
2885 esac |
3013 esac |
2886 ;; |
3014 ;; |
2887 |
3015 |
2888 beos*) |
3016 beos*) |
2890 dynamic_linker="$host_os ld.so" |
3018 dynamic_linker="$host_os ld.so" |
2891 shlibpath_var=LIBRARY_PATH |
3019 shlibpath_var=LIBRARY_PATH |
2892 ;; |
3020 ;; |
2893 |
3021 |
2894 bsdi[[45]]*) |
3022 bsdi[[45]]*) |
2895 version_type=linux |
3023 version_type=linux # correct to gnu/linux during the next big refactor |
2896 need_version=no |
3024 need_version=no |
2897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
3025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2898 soname_spec='${libname}${release}${shared_ext}$major' |
3026 soname_spec='${libname}${release}${shared_ext}$major' |
2899 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
3027 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
2900 shlibpath_var=LD_LIBRARY_PATH |
3028 shlibpath_var=LD_LIBRARY_PATH |
2909 version_type=windows |
3037 version_type=windows |
2910 shrext_cmds=".dll" |
3038 shrext_cmds=".dll" |
2911 need_version=no |
3039 need_version=no |
2912 need_lib_prefix=no |
3040 need_lib_prefix=no |
2913 |
3041 |
2914 case $GCC,$host_os in |
3042 case $GCC,$cc_basename in |
2915 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) |
3043 yes,*) |
3044 # gcc |
|
2916 library_names_spec='$libname.dll.a' |
3045 library_names_spec='$libname.dll.a' |
2917 # DLL is installed to $(libdir)/../bin by postinstall_cmds |
3046 # DLL is installed to $(libdir)/../bin by postinstall_cmds |
2918 postinstall_cmds='base_file=`basename \${file}`~ |
3047 postinstall_cmds='base_file=`basename \${file}`~ |
2919 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
3048 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
2920 dldir=$destdir/`dirname \$dlpath`~ |
3049 dldir=$destdir/`dirname \$dlpath`~ |
2930 shlibpath_overrides_runpath=yes |
3059 shlibpath_overrides_runpath=yes |
2931 |
3060 |
2932 case $host_os in |
3061 case $host_os in |
2933 cygwin*) |
3062 cygwin*) |
2934 # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
3063 # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
2935 #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
3064 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
2936 soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}' |
3065 m4_if([$1], [],[ |
2937 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
3066 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) |
2938 ;; |
3067 ;; |
2939 mingw* | cegcc*) |
3068 mingw* | cegcc*) |
2940 # MinGW DLLs use traditional 'lib' prefix |
3069 # MinGW DLLs use traditional 'lib' prefix |
2941 #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
3070 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
2942 soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}' |
|
2943 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
2944 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then |
|
2945 # It is most probably a Windows format PATH printed by |
|
2946 # mingw gcc, but we are running on Cygwin. Gcc prints its search |
|
2947 # path with ; separators, and with drive letters. We can handle the |
|
2948 # drive letters (cygwin fileutils understands them), so leave them, |
|
2949 # especially as we might pass files found there to a mingw objdump, |
|
2950 # which wouldn't understand a cygwinified path. Ahh. |
|
2951 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
2952 else |
|
2953 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
2954 fi |
|
2955 ;; |
3071 ;; |
2956 pw32*) |
3072 pw32*) |
2957 # pw32 DLLs use 'pw' prefix rather than 'lib' |
3073 # pw32 DLLs use 'pw' prefix rather than 'lib' |
2958 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
3074 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
2959 ;; |
3075 ;; |
2960 esac |
3076 esac |
3077 dynamic_linker='Win32 ld.exe' |
|
2961 ;; |
3078 ;; |
2962 |
3079 |
3080 *,cl*) |
|
3081 # Native MSVC |
|
3082 libname_spec='$name' |
|
3083 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
|
3084 library_names_spec='${libname}.dll.lib' |
|
3085 |
|
3086 case $build_os in |
|
3087 mingw*) |
|
3088 sys_lib_search_path_spec= |
|
3089 lt_save_ifs=$IFS |
|
3090 IFS=';' |
|
3091 for lt_path in $LIB |
|
3092 do |
|
3093 IFS=$lt_save_ifs |
|
3094 # Let DOS variable expansion print the short 8.3 style file name. |
|
3095 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
|
3096 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
|
3097 done |
|
3098 IFS=$lt_save_ifs |
|
3099 # Convert to MSYS style. |
|
3100 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` |
|
3101 ;; |
|
3102 cygwin*) |
|
3103 # Convert to unix form, then to dos form, then back to unix form |
|
3104 # but this time dos style (no spaces!) so that the unix form looks |
|
3105 # like /cygdrive/c/PROGRA~1:/cygdr... |
|
3106 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
|
3107 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
|
3108 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
3109 ;; |
|
3110 *) |
|
3111 sys_lib_search_path_spec="$LIB" |
|
3112 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then |
|
3113 # It is most probably a Windows format PATH. |
|
3114 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
3115 else |
|
3116 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
3117 fi |
|
3118 # FIXME: find the short name or the path components, as spaces are |
|
3119 # common. (e.g. "Program Files" -> "PROGRA~1") |
|
3120 ;; |
|
3121 esac |
|
3122 |
|
3123 # DLL is installed to $(libdir)/../bin by postinstall_cmds |
|
3124 postinstall_cmds='base_file=`basename \${file}`~ |
|
3125 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
|
3126 dldir=$destdir/`dirname \$dlpath`~ |
|
3127 test -d \$dldir || mkdir -p \$dldir~ |
|
3128 $install_prog $dir/$dlname \$dldir/$dlname' |
|
3129 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
|
3130 dlpath=$dir/\$dldll~ |
|
3131 $RM \$dlpath' |
|
3132 shlibpath_overrides_runpath=yes |
|
3133 dynamic_linker='Win32 link.exe' |
|
3134 ;; |
|
3135 |
|
2963 *) |
3136 *) |
3137 # Assume MSVC wrapper |
|
2964 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' |
3138 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' |
3139 dynamic_linker='Win32 ld.exe' |
|
2965 ;; |
3140 ;; |
2966 esac |
3141 esac |
2967 dynamic_linker='Win32 ld.exe' |
|
2968 # FIXME: first we should search . and the directory the executable is in |
3142 # FIXME: first we should search . and the directory the executable is in |
2969 shlibpath_var=PATH |
3143 shlibpath_var=PATH |
2970 ;; |
3144 ;; |
2971 |
3145 |
2972 darwin* | rhapsody*) |
3146 darwin* | rhapsody*) |
2983 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) |
3157 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) |
2984 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
3158 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
2985 ;; |
3159 ;; |
2986 |
3160 |
2987 dgux*) |
3161 dgux*) |
2988 version_type=linux |
3162 version_type=linux # correct to gnu/linux during the next big refactor |
2989 need_lib_prefix=no |
3163 need_lib_prefix=no |
2990 need_version=no |
3164 need_version=no |
2991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
3165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
2992 soname_spec='${libname}${release}${shared_ext}$major' |
3166 soname_spec='${libname}${release}${shared_ext}$major' |
2993 shlibpath_var=LD_LIBRARY_PATH |
3167 shlibpath_var=LD_LIBRARY_PATH |
2994 ;; |
|
2995 |
|
2996 freebsd1*) |
|
2997 dynamic_linker=no |
|
2998 ;; |
3168 ;; |
2999 |
3169 |
3000 freebsd* | dragonfly*) |
3170 freebsd* | dragonfly*) |
3001 # DragonFly does not have aout. When/if they implement a new |
3171 # DragonFly does not have aout. When/if they implement a new |
3002 # versioning mechanism, adjust this. |
3172 # versioning mechanism, adjust this. |
3003 if test -x /usr/bin/objformat; then |
3173 if test -x /usr/bin/objformat; then |
3004 objformat=`/usr/bin/objformat` |
3174 objformat=`/usr/bin/objformat` |
3005 else |
3175 else |
3006 case $host_os in |
3176 case $host_os in |
3007 freebsd[[123]]*) objformat=aout ;; |
3177 freebsd[[23]].*) objformat=aout ;; |
3008 *) objformat=elf ;; |
3178 *) objformat=elf ;; |
3009 esac |
3179 esac |
3010 fi |
3180 fi |
3011 version_type=freebsd-$objformat |
3181 version_type=freebsd-$objformat |
3012 case $version_type in |
3182 case $version_type in |
3020 need_version=yes |
3190 need_version=yes |
3021 ;; |
3191 ;; |
3022 esac |
3192 esac |
3023 shlibpath_var=LD_LIBRARY_PATH |
3193 shlibpath_var=LD_LIBRARY_PATH |
3024 case $host_os in |
3194 case $host_os in |
3025 freebsd2*) |
3195 freebsd2.*) |
3026 shlibpath_overrides_runpath=yes |
3196 shlibpath_overrides_runpath=yes |
3027 ;; |
3197 ;; |
3028 freebsd3.[[01]]* | freebsdelf3.[[01]]*) |
3198 freebsd3.[[01]]* | freebsdelf3.[[01]]*) |
3029 shlibpath_overrides_runpath=yes |
3199 shlibpath_overrides_runpath=yes |
3030 hardcode_into_libs=yes |
3200 hardcode_into_libs=yes |
3040 ;; |
3210 ;; |
3041 esac |
3211 esac |
3042 ;; |
3212 ;; |
3043 |
3213 |
3044 gnu*) |
3214 gnu*) |
3045 version_type=linux |
3215 version_type=linux # correct to gnu/linux during the next big refactor |
3046 need_lib_prefix=no |
3216 need_lib_prefix=no |
3047 need_version=no |
3217 need_version=no |
3048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
3218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
3049 soname_spec='${libname}${release}${shared_ext}$major' |
3219 soname_spec='${libname}${release}${shared_ext}$major' |
3050 shlibpath_var=LD_LIBRARY_PATH |
3220 shlibpath_var=LD_LIBRARY_PATH |
3221 shlibpath_overrides_runpath=no |
|
3222 hardcode_into_libs=yes |
|
3223 ;; |
|
3224 |
|
3225 haiku*) |
|
3226 version_type=linux # correct to gnu/linux during the next big refactor |
|
3227 need_lib_prefix=no |
|
3228 need_version=no |
|
3229 dynamic_linker="$host_os runtime_loader" |
|
3230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
|
3231 soname_spec='${libname}${release}${shared_ext}$major' |
|
3232 shlibpath_var=LIBRARY_PATH |
|
3233 shlibpath_overrides_runpath=yes |
|
3234 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
|
3051 hardcode_into_libs=yes |
3235 hardcode_into_libs=yes |
3052 ;; |
3236 ;; |
3053 |
3237 |
3054 hpux9* | hpux10* | hpux11*) |
3238 hpux9* | hpux10* | hpux11*) |
3055 # Give a soname corresponding to the major version so that dld.sl refuses to |
3239 # Give a soname corresponding to the major version so that dld.sl refuses to |
3091 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
3275 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
3092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
3276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
3093 soname_spec='${libname}${release}${shared_ext}$major' |
3277 soname_spec='${libname}${release}${shared_ext}$major' |
3094 ;; |
3278 ;; |
3095 esac |
3279 esac |
3096 # HP-UX runs *really* slowly unless shared libraries are mode 555. |
3280 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
3097 postinstall_cmds='chmod 555 $lib' |
3281 postinstall_cmds='chmod 555 $lib' |
3282 # or fails outright, so override atomically: |
|
3283 install_override_mode=555 |
|
3098 ;; |
3284 ;; |
3099 |
3285 |
3100 interix[[3-9]]*) |
3286 interix[[3-9]]*) |
3101 version_type=linux |
3287 version_type=linux # correct to gnu/linux during the next big refactor |
3102 need_lib_prefix=no |
3288 need_lib_prefix=no |
3103 need_version=no |
3289 need_version=no |
3104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
3290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
3105 soname_spec='${libname}${release}${shared_ext}$major' |
3291 soname_spec='${libname}${release}${shared_ext}$major' |
3106 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
3292 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
3112 irix5* | irix6* | nonstopux*) |
3298 irix5* | irix6* | nonstopux*) |
3113 case $host_os in |
3299 case $host_os in |
3114 nonstopux*) version_type=nonstopux ;; |
3300 nonstopux*) version_type=nonstopux ;; |
3115 *) |
3301 *) |
3116 if test "$lt_cv_prog_gnu_ld" = yes; then |
3302 if test "$lt_cv_prog_gnu_ld" = yes; then |
3117 version_type=linux |
3303 version_type=linux # correct to gnu/linux during the next big refactor |
3118 else |
3304 else |
3119 version_type=irix |
3305 version_type=irix |
3120 fi ;; |
3306 fi ;; |
3121 esac |
3307 esac |
3122 need_lib_prefix=no |
3308 need_lib_prefix=no |
3149 # No shared lib support for Linux oldld, aout, or coff. |
3335 # No shared lib support for Linux oldld, aout, or coff. |
3150 linux*oldld* | linux*aout* | linux*coff*) |
3336 linux*oldld* | linux*aout* | linux*coff*) |
3151 dynamic_linker=no |
3337 dynamic_linker=no |
3152 ;; |
3338 ;; |
3153 |
3339 |
3154 # This must be Linux ELF. |
3340 # This must be glibc/ELF. |
3155 linux* | k*bsd*-gnu) |
3341 linux* | k*bsd*-gnu | kopensolaris*-gnu) |
3156 version_type=linux |
3342 version_type=linux # correct to gnu/linux during the next big refactor |
3157 need_lib_prefix=no |
3343 need_lib_prefix=no |
3158 need_version=no |
3344 need_version=no |
3159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
3345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
3160 soname_spec='${libname}${release}${shared_ext}$major' |
3346 soname_spec='${libname}${release}${shared_ext}$major' |
3161 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
3347 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
3162 shlibpath_var=LD_LIBRARY_PATH |
3348 shlibpath_var=LD_LIBRARY_PATH |
3163 shlibpath_overrides_runpath=no |
3349 shlibpath_overrides_runpath=no |
3350 |
|
3164 # Some binutils ld are patched to set DT_RUNPATH |
3351 # Some binutils ld are patched to set DT_RUNPATH |
3165 save_LDFLAGS=$LDFLAGS |
3352 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], |
3166 save_libdir=$libdir |
3353 [lt_cv_shlibpath_overrides_runpath=no |
3167 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ |
3354 save_LDFLAGS=$LDFLAGS |
3168 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" |
3355 save_libdir=$libdir |
3169 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], |
3356 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ |
3170 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], |
3357 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" |
3171 [shlibpath_overrides_runpath=yes])]) |
3358 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], |
3172 LDFLAGS=$save_LDFLAGS |
3359 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], |
3173 libdir=$save_libdir |
3360 [lt_cv_shlibpath_overrides_runpath=yes])]) |
3361 LDFLAGS=$save_LDFLAGS |
|
3362 libdir=$save_libdir |
|
3363 ]) |
|
3364 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
|
3174 |
3365 |
3175 # This implies no fast_install, which is unacceptable. |
3366 # This implies no fast_install, which is unacceptable. |
3176 # Some rework will be needed to allow for fast_install |
3367 # Some rework will be needed to allow for fast_install |
3177 # before this can be enabled. |
3368 # before this can be enabled. |
3178 hardcode_into_libs=yes |
3369 hardcode_into_libs=yes |
3179 |
3370 |
3180 # Append ld.so.conf contents to the search path |
3371 # Append ld.so.conf contents to the search path |
3181 if test -f /etc/ld.so.conf; then |
3372 if test -f /etc/ld.so.conf; then |
3182 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' ' '` |
3373 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' ' '` |
3183 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
3374 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
3184 fi |
3375 fi |
3185 |
3376 |
3186 # We used to test for /lib/ld.so.1 and disable shared libraries on |
3377 # We used to test for /lib/ld.so.1 and disable shared libraries on |
3187 # powerpc, because MkLinux only supported shared libraries with the |
3378 # powerpc, because MkLinux only supported shared libraries with the |
3209 shlibpath_overrides_runpath=yes |
3400 shlibpath_overrides_runpath=yes |
3210 hardcode_into_libs=yes |
3401 hardcode_into_libs=yes |
3211 ;; |
3402 ;; |
3212 |
3403 |
3213 newsos6) |
3404 newsos6) |
3214 version_type=linux |
3405 version_type=linux # correct to gnu/linux during the next big refactor |
3215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
3406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
3216 shlibpath_var=LD_LIBRARY_PATH |
3407 shlibpath_var=LD_LIBRARY_PATH |
3217 shlibpath_overrides_runpath=yes |
3408 shlibpath_overrides_runpath=yes |
3218 ;; |
3409 ;; |
3219 |
3410 |
3278 rdos*) |
3469 rdos*) |
3279 dynamic_linker=no |
3470 dynamic_linker=no |
3280 ;; |
3471 ;; |
3281 |
3472 |
3282 solaris*) |
3473 solaris*) |
3283 version_type=linux |
3474 version_type=linux # correct to gnu/linux during the next big refactor |
3284 need_lib_prefix=no |
3475 need_lib_prefix=no |
3285 need_version=no |
3476 need_version=no |
3286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
3477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
3287 soname_spec='${libname}${release}${shared_ext}$major' |
3478 soname_spec='${libname}${release}${shared_ext}$major' |
3288 shlibpath_var=LD_LIBRARY_PATH |
3479 shlibpath_var=LD_LIBRARY_PATH |
3303 fi |
3494 fi |
3304 need_version=yes |
3495 need_version=yes |
3305 ;; |
3496 ;; |
3306 |
3497 |
3307 sysv4 | sysv4.3*) |
3498 sysv4 | sysv4.3*) |
3308 version_type=linux |
3499 version_type=linux # correct to gnu/linux during the next big refactor |
3309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
3500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
3310 soname_spec='${libname}${release}${shared_ext}$major' |
3501 soname_spec='${libname}${release}${shared_ext}$major' |
3311 shlibpath_var=LD_LIBRARY_PATH |
3502 shlibpath_var=LD_LIBRARY_PATH |
3312 case $host_vendor in |
3503 case $host_vendor in |
3313 sni) |
3504 sni) |
3327 esac |
3518 esac |
3328 ;; |
3519 ;; |
3329 |
3520 |
3330 sysv4*MP*) |
3521 sysv4*MP*) |
3331 if test -d /usr/nec ;then |
3522 if test -d /usr/nec ;then |
3332 version_type=linux |
3523 version_type=linux # correct to gnu/linux during the next big refactor |
3333 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
3524 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
3334 soname_spec='$libname${shared_ext}.$major' |
3525 soname_spec='$libname${shared_ext}.$major' |
3335 shlibpath_var=LD_LIBRARY_PATH |
3526 shlibpath_var=LD_LIBRARY_PATH |
3336 fi |
3527 fi |
3337 ;; |
3528 ;; |
3358 sys_lib_dlsearch_path_spec='/usr/lib' |
3549 sys_lib_dlsearch_path_spec='/usr/lib' |
3359 ;; |
3550 ;; |
3360 |
3551 |
3361 tpf*) |
3552 tpf*) |
3362 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
3553 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
3363 version_type=linux |
3554 version_type=linux # correct to gnu/linux during the next big refactor |
3364 need_lib_prefix=no |
3555 need_lib_prefix=no |
3365 need_version=no |
3556 need_version=no |
3366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
3557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
3367 shlibpath_var=LD_LIBRARY_PATH |
3558 shlibpath_var=LD_LIBRARY_PATH |
3368 shlibpath_overrides_runpath=no |
3559 shlibpath_overrides_runpath=no |
3369 hardcode_into_libs=yes |
3560 hardcode_into_libs=yes |
3370 ;; |
3561 ;; |
3371 |
3562 |
3372 uts4*) |
3563 uts4*) |
3373 version_type=linux |
3564 version_type=linux # correct to gnu/linux during the next big refactor |
3374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
3565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
3375 soname_spec='${libname}${release}${shared_ext}$major' |
3566 soname_spec='${libname}${release}${shared_ext}$major' |
3376 shlibpath_var=LD_LIBRARY_PATH |
3567 shlibpath_var=LD_LIBRARY_PATH |
3377 ;; |
3568 ;; |
3378 |
3569 |
3410 _LT_DECL([], [library_names_spec], [1], |
3601 _LT_DECL([], [library_names_spec], [1], |
3411 [[List of archive names. First name is the real one, the rest are links. |
3602 [[List of archive names. First name is the real one, the rest are links. |
3412 The last name is the one that the linker finds with -lNAME]]) |
3603 The last name is the one that the linker finds with -lNAME]]) |
3413 _LT_DECL([], [soname_spec], [1], |
3604 _LT_DECL([], [soname_spec], [1], |
3414 [[The coded name of the library, if different from the real name]]) |
3605 [[The coded name of the library, if different from the real name]]) |
3606 _LT_DECL([], [install_override_mode], [1], |
|
3607 [Permission mode override for installation of shared libraries]) |
|
3415 _LT_DECL([], [postinstall_cmds], [2], |
3608 _LT_DECL([], [postinstall_cmds], [2], |
3416 [Command to use after installation of a shared archive]) |
3609 [Command to use after installation of a shared archive]) |
3417 _LT_DECL([], [postuninstall_cmds], [2], |
3610 _LT_DECL([], [postuninstall_cmds], [2], |
3418 [Command to use after uninstallation of a shared archive]) |
3611 [Command to use after uninstallation of a shared archive]) |
3419 _LT_DECL([], [finish_cmds], [2], |
3612 _LT_DECL([], [finish_cmds], [2], |
3522 [AC_REQUIRE([AC_PROG_CC])dnl |
3715 [AC_REQUIRE([AC_PROG_CC])dnl |
3523 AC_REQUIRE([AC_CANONICAL_HOST])dnl |
3716 AC_REQUIRE([AC_CANONICAL_HOST])dnl |
3524 AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
3717 AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
3525 m4_require([_LT_DECL_SED])dnl |
3718 m4_require([_LT_DECL_SED])dnl |
3526 m4_require([_LT_DECL_EGREP])dnl |
3719 m4_require([_LT_DECL_EGREP])dnl |
3720 m4_require([_LT_PROG_ECHO_BACKSLASH])dnl |
|
3527 |
3721 |
3528 AC_ARG_WITH([gnu-ld], |
3722 AC_ARG_WITH([gnu-ld], |
3529 [AS_HELP_STRING([--with-gnu-ld], |
3723 [AS_HELP_STRING([--with-gnu-ld], |
3530 [assume the C compiler uses GNU ld @<:@default=no@:>@])], |
3724 [assume the C compiler uses GNU ld @<:@default=no@:>@])], |
3531 [test "$withval" = no || with_gnu_ld=yes], |
3725 [test "$withval" = no || with_gnu_ld=yes], |
3643 "" | " "*) ;; |
3837 "" | " "*) ;; |
3644 *) reload_flag=" $reload_flag" ;; |
3838 *) reload_flag=" $reload_flag" ;; |
3645 esac |
3839 esac |
3646 reload_cmds='$LD$reload_flag -o $output$reload_objs' |
3840 reload_cmds='$LD$reload_flag -o $output$reload_objs' |
3647 case $host_os in |
3841 case $host_os in |
3842 cygwin* | mingw* | pw32* | cegcc*) |
|
3843 if test "$GCC" != yes; then |
|
3844 reload_cmds=false |
|
3845 fi |
|
3846 ;; |
|
3648 darwin*) |
3847 darwin*) |
3649 if test "$GCC" = yes; then |
3848 if test "$GCC" = yes; then |
3650 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
3849 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
3651 else |
3850 else |
3652 reload_cmds='$LD$reload_flag -o $output$reload_objs' |
3851 reload_cmds='$LD$reload_flag -o $output$reload_objs' |
3653 fi |
3852 fi |
3654 ;; |
3853 ;; |
3655 esac |
3854 esac |
3656 _LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl |
3855 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl |
3657 _LT_DECL([], [reload_cmds], [2])dnl |
3856 _LT_TAGDECL([], [reload_cmds], [2])dnl |
3658 ])# _LT_CMD_RELOAD |
3857 ])# _LT_CMD_RELOAD |
3659 |
3858 |
3660 |
3859 |
3661 # _LT_CHECK_MAGIC_METHOD |
3860 # _LT_CHECK_MAGIC_METHOD |
3662 # ---------------------- |
3861 # ---------------------- |
3697 ;; |
3896 ;; |
3698 |
3897 |
3699 cygwin*) |
3898 cygwin*) |
3700 # func_win32_libid is a shell function defined in ltmain.sh |
3899 # func_win32_libid is a shell function defined in ltmain.sh |
3701 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
3900 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
3702 lt_cv_deplibs_check_method=pass_all |
|
3703 lt_cv_file_magic_cmd='func_win32_libid' |
3901 lt_cv_file_magic_cmd='func_win32_libid' |
3704 ;; |
3902 ;; |
3705 |
3903 |
3706 mingw* | pw32*) |
3904 mingw* | pw32*) |
3707 # Base MSYS/MinGW do not provide the 'file' command needed by |
3905 # Base MSYS/MinGW do not provide the 'file' command needed by |
3708 # func_win32_libid shell function, so use a weaker test based on 'objdump', |
3906 # func_win32_libid shell function, so use a weaker test based on 'objdump', |
3709 # unless we find 'file', for example because we are cross-compiling. |
3907 # unless we find 'file', for example because we are cross-compiling. |
3710 if ( file / ) >/dev/null 2>&1; then |
3908 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
3909 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then |
|
3711 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
3910 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
3712 lt_cv_file_magic_cmd='func_win32_libid' |
3911 lt_cv_file_magic_cmd='func_win32_libid' |
3713 else |
3912 else |
3913 # Keep this pattern in sync with the one in func_win32_libid. |
|
3714 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' |
3914 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' |
3715 lt_cv_file_magic_cmd='$OBJDUMP -f' |
3915 lt_cv_file_magic_cmd='$OBJDUMP -f' |
3716 fi |
3916 fi |
3717 lt_cv_deplibs_check_method=pass_all |
|
3718 ;; |
3917 ;; |
3719 |
3918 |
3720 cegcc) |
3919 cegcc*) |
3721 # use the weaker test based on 'objdump'. See mingw*. |
3920 # use the weaker test based on 'objdump'. See mingw*. |
3722 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
3921 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
3723 lt_cv_file_magic_cmd='$OBJDUMP -f' |
3922 lt_cv_file_magic_cmd='$OBJDUMP -f' |
3724 ;; |
3923 ;; |
3725 |
3924 |
3745 |
3944 |
3746 gnu*) |
3945 gnu*) |
3747 lt_cv_deplibs_check_method=pass_all |
3946 lt_cv_deplibs_check_method=pass_all |
3748 ;; |
3947 ;; |
3749 |
3948 |
3949 haiku*) |
|
3950 lt_cv_deplibs_check_method=pass_all |
|
3951 ;; |
|
3952 |
|
3750 hpux10.20* | hpux11*) |
3953 hpux10.20* | hpux11*) |
3751 lt_cv_file_magic_cmd=/usr/bin/file |
3954 lt_cv_file_magic_cmd=/usr/bin/file |
3752 case $host_cpu in |
3955 case $host_cpu in |
3753 ia64*) |
3956 ia64*) |
3754 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' |
3957 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' |
3755 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
3958 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
3756 ;; |
3959 ;; |
3757 hppa*64*) |
3960 hppa*64*) |
3758 [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]'] |
3961 [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]'] |
3759 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
3962 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
3760 ;; |
3963 ;; |
3761 *) |
3964 *) |
3762 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' |
3965 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' |
3763 lt_cv_file_magic_test_file=/usr/lib/libc.sl |
3966 lt_cv_file_magic_test_file=/usr/lib/libc.sl |
3764 ;; |
3967 ;; |
3765 esac |
3968 esac |
3766 ;; |
3969 ;; |
3767 |
3970 |
3778 *) libmagic=never-match;; |
3981 *) libmagic=never-match;; |
3779 esac |
3982 esac |
3780 lt_cv_deplibs_check_method=pass_all |
3983 lt_cv_deplibs_check_method=pass_all |
3781 ;; |
3984 ;; |
3782 |
3985 |
3783 # This must be Linux ELF. |
3986 # This must be glibc/ELF. |
3784 linux* | k*bsd*-gnu) |
3987 linux* | k*bsd*-gnu | kopensolaris*-gnu) |
3785 lt_cv_deplibs_check_method=pass_all |
3988 lt_cv_deplibs_check_method=pass_all |
3786 ;; |
3989 ;; |
3787 |
3990 |
3788 netbsd*) |
3991 netbsd*) |
3789 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
3992 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
3857 tpf*) |
4060 tpf*) |
3858 lt_cv_deplibs_check_method=pass_all |
4061 lt_cv_deplibs_check_method=pass_all |
3859 ;; |
4062 ;; |
3860 esac |
4063 esac |
3861 ]) |
4064 ]) |
4065 |
|
4066 file_magic_glob= |
|
4067 want_nocaseglob=no |
|
4068 if test "$build" = "$host"; then |
|
4069 case $host_os in |
|
4070 mingw* | pw32*) |
|
4071 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then |
|
4072 want_nocaseglob=yes |
|
4073 else |
|
4074 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` |
|
4075 fi |
|
4076 ;; |
|
4077 esac |
|
4078 fi |
|
4079 |
|
3862 file_magic_cmd=$lt_cv_file_magic_cmd |
4080 file_magic_cmd=$lt_cv_file_magic_cmd |
3863 deplibs_check_method=$lt_cv_deplibs_check_method |
4081 deplibs_check_method=$lt_cv_deplibs_check_method |
3864 test -z "$deplibs_check_method" && deplibs_check_method=unknown |
4082 test -z "$deplibs_check_method" && deplibs_check_method=unknown |
3865 |
4083 |
3866 _LT_DECL([], [deplibs_check_method], [1], |
4084 _LT_DECL([], [deplibs_check_method], [1], |
3867 [Method to check whether dependent libraries are shared objects]) |
4085 [Method to check whether dependent libraries are shared objects]) |
3868 _LT_DECL([], [file_magic_cmd], [1], |
4086 _LT_DECL([], [file_magic_cmd], [1], |
3869 [Command to use when deplibs_check_method == "file_magic"]) |
4087 [Command to use when deplibs_check_method = "file_magic"]) |
4088 _LT_DECL([], [file_magic_glob], [1], |
|
4089 [How to find potential files when deplibs_check_method = "file_magic"]) |
|
4090 _LT_DECL([], [want_nocaseglob], [1], |
|
4091 [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) |
|
3870 ])# _LT_CHECK_MAGIC_METHOD |
4092 ])# _LT_CHECK_MAGIC_METHOD |
3871 |
4093 |
3872 |
4094 |
3873 # LT_PATH_NM |
4095 # LT_PATH_NM |
3874 # ---------- |
4096 # ---------- |
3921 fi]) |
4143 fi]) |
3922 if test "$lt_cv_path_NM" != "no"; then |
4144 if test "$lt_cv_path_NM" != "no"; then |
3923 NM="$lt_cv_path_NM" |
4145 NM="$lt_cv_path_NM" |
3924 else |
4146 else |
3925 # Didn't find any BSD compatible name lister, look for dumpbin. |
4147 # Didn't find any BSD compatible name lister, look for dumpbin. |
3926 AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :) |
4148 if test -n "$DUMPBIN"; then : |
4149 # Let the user override the test. |
|
4150 else |
|
4151 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) |
|
4152 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
|
4153 *COFF*) |
|
4154 DUMPBIN="$DUMPBIN -symbols" |
|
4155 ;; |
|
4156 *) |
|
4157 DUMPBIN=: |
|
4158 ;; |
|
4159 esac |
|
4160 fi |
|
3927 AC_SUBST([DUMPBIN]) |
4161 AC_SUBST([DUMPBIN]) |
3928 if test "$DUMPBIN" != ":"; then |
4162 if test "$DUMPBIN" != ":"; then |
3929 NM="$DUMPBIN" |
4163 NM="$DUMPBIN" |
3930 fi |
4164 fi |
3931 fi |
4165 fi |
3934 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl |
4168 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl |
3935 |
4169 |
3936 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], |
4170 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], |
3937 [lt_cv_nm_interface="BSD nm" |
4171 [lt_cv_nm_interface="BSD nm" |
3938 echo "int some_variable = 0;" > conftest.$ac_ext |
4172 echo "int some_variable = 0;" > conftest.$ac_ext |
3939 (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD) |
4173 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) |
3940 (eval "$ac_compile" 2>conftest.err) |
4174 (eval "$ac_compile" 2>conftest.err) |
3941 cat conftest.err >&AS_MESSAGE_LOG_FD |
4175 cat conftest.err >&AS_MESSAGE_LOG_FD |
3942 (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) |
4176 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) |
3943 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
4177 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
3944 cat conftest.err >&AS_MESSAGE_LOG_FD |
4178 cat conftest.err >&AS_MESSAGE_LOG_FD |
3945 (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD) |
4179 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) |
3946 cat conftest.out >&AS_MESSAGE_LOG_FD |
4180 cat conftest.out >&AS_MESSAGE_LOG_FD |
3947 if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
4181 if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
3948 lt_cv_nm_interface="MS dumpbin" |
4182 lt_cv_nm_interface="MS dumpbin" |
3949 fi |
4183 fi |
3950 rm -f conftest*]) |
4184 rm -f conftest*]) |
3954 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) |
4188 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) |
3955 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) |
4189 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) |
3956 dnl aclocal-1.4 backwards compatibility: |
4190 dnl aclocal-1.4 backwards compatibility: |
3957 dnl AC_DEFUN([AM_PROG_NM], []) |
4191 dnl AC_DEFUN([AM_PROG_NM], []) |
3958 dnl AC_DEFUN([AC_PROG_NM], []) |
4192 dnl AC_DEFUN([AC_PROG_NM], []) |
4193 |
|
4194 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB |
|
4195 # -------------------------------- |
|
4196 # how to determine the name of the shared library |
|
4197 # associated with a specific link library. |
|
4198 # -- PORTME fill in with the dynamic library characteristics |
|
4199 m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], |
|
4200 [m4_require([_LT_DECL_EGREP]) |
|
4201 m4_require([_LT_DECL_OBJDUMP]) |
|
4202 m4_require([_LT_DECL_DLLTOOL]) |
|
4203 AC_CACHE_CHECK([how to associate runtime and link libraries], |
|
4204 lt_cv_sharedlib_from_linklib_cmd, |
|
4205 [lt_cv_sharedlib_from_linklib_cmd='unknown' |
|
4206 |
|
4207 case $host_os in |
|
4208 cygwin* | mingw* | pw32* | cegcc*) |
|
4209 # two different shell functions defined in ltmain.sh |
|
4210 # decide which to use based on capabilities of $DLLTOOL |
|
4211 case `$DLLTOOL --help 2>&1` in |
|
4212 *--identify-strict*) |
|
4213 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
|
4214 ;; |
|
4215 *) |
|
4216 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback |
|
4217 ;; |
|
4218 esac |
|
4219 ;; |
|
4220 *) |
|
4221 # fallback: assume linklib IS sharedlib |
|
4222 lt_cv_sharedlib_from_linklib_cmd="$ECHO" |
|
4223 ;; |
|
4224 esac |
|
4225 ]) |
|
4226 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd |
|
4227 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO |
|
4228 |
|
4229 _LT_DECL([], [sharedlib_from_linklib_cmd], [1], |
|
4230 [Command to associate shared and link libraries]) |
|
4231 ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB |
|
4232 |
|
4233 |
|
4234 # _LT_PATH_MANIFEST_TOOL |
|
4235 # ---------------------- |
|
4236 # locate the manifest tool |
|
4237 m4_defun([_LT_PATH_MANIFEST_TOOL], |
|
4238 [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) |
|
4239 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
|
4240 AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], |
|
4241 [lt_cv_path_mainfest_tool=no |
|
4242 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD |
|
4243 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out |
|
4244 cat conftest.err >&AS_MESSAGE_LOG_FD |
|
4245 if $GREP 'Manifest Tool' conftest.out > /dev/null; then |
|
4246 lt_cv_path_mainfest_tool=yes |
|
4247 fi |
|
4248 rm -f conftest*]) |
|
4249 if test "x$lt_cv_path_mainfest_tool" != xyes; then |
|
4250 MANIFEST_TOOL=: |
|
4251 fi |
|
4252 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl |
|
4253 ])# _LT_PATH_MANIFEST_TOOL |
|
3959 |
4254 |
3960 |
4255 |
3961 # LT_LIB_M |
4256 # LT_LIB_M |
3962 # -------- |
4257 # -------- |
3963 # check for math library |
4258 # check for math library |
3964 AC_DEFUN([LT_LIB_M], |
4259 AC_DEFUN([LT_LIB_M], |
3965 [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
4260 [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
3966 LIBM= |
4261 LIBM= |
3967 case $host in |
4262 case $host in |
3968 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) |
4263 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) |
3969 # These system don't have libm, or don't need it |
4264 # These system don't have libm, or don't need it |
3970 ;; |
4265 ;; |
3971 *-ncr-sysv4.3*) |
4266 *-ncr-sysv4.3*) |
3972 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") |
4267 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") |
3973 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") |
4268 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") |
3991 [m4_require([_LT_TAG_COMPILER])dnl |
4286 [m4_require([_LT_TAG_COMPILER])dnl |
3992 |
4287 |
3993 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= |
4288 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= |
3994 |
4289 |
3995 if test "$GCC" = yes; then |
4290 if test "$GCC" = yes; then |
3996 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' |
4291 case $cc_basename in |
4292 nvcc*) |
|
4293 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; |
|
4294 *) |
|
4295 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; |
|
4296 esac |
|
3997 |
4297 |
3998 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], |
4298 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], |
3999 lt_cv_prog_compiler_rtti_exceptions, |
4299 lt_cv_prog_compiler_rtti_exceptions, |
4000 [-fno-rtti -fno-exceptions], [], |
4300 [-fno-rtti -fno-exceptions], [], |
4001 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) |
4301 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) |
4008 # _LT_CMD_GLOBAL_SYMBOLS |
4308 # _LT_CMD_GLOBAL_SYMBOLS |
4009 # ---------------------- |
4309 # ---------------------- |
4010 m4_defun([_LT_CMD_GLOBAL_SYMBOLS], |
4310 m4_defun([_LT_CMD_GLOBAL_SYMBOLS], |
4011 [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
4311 [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
4012 AC_REQUIRE([AC_PROG_CC])dnl |
4312 AC_REQUIRE([AC_PROG_CC])dnl |
4313 AC_REQUIRE([AC_PROG_AWK])dnl |
|
4013 AC_REQUIRE([LT_PATH_NM])dnl |
4314 AC_REQUIRE([LT_PATH_NM])dnl |
4014 AC_REQUIRE([LT_PATH_LD])dnl |
4315 AC_REQUIRE([LT_PATH_LD])dnl |
4015 m4_require([_LT_DECL_SED])dnl |
4316 m4_require([_LT_DECL_SED])dnl |
4016 m4_require([_LT_DECL_EGREP])dnl |
4317 m4_require([_LT_DECL_EGREP])dnl |
4017 m4_require([_LT_TAG_COMPILER])dnl |
4318 m4_require([_LT_TAG_COMPILER])dnl |
4075 # Some systems (esp. on ia64) link data and code symbols differently, |
4376 # Some systems (esp. on ia64) link data and code symbols differently, |
4076 # so use this general approach. |
4377 # so use this general approach. |
4077 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
4378 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
4078 |
4379 |
4079 # Transform an extracted symbol line into symbol name and symbol address |
4380 # Transform an extracted symbol line into symbol name and symbol address |
4080 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" |
4381 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" |
4081 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" |
4382 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" |
4082 |
4383 |
4083 # Handle CRLF in mingw tool chain |
4384 # Handle CRLF in mingw tool chain |
4084 opt_cr= |
4385 opt_cr= |
4085 case $build_os in |
4386 case $build_os in |
4086 mingw*) |
4387 mingw*) |
4100 # and D for any global variable. |
4401 # and D for any global variable. |
4101 # Also find C++ and __fastcall symbols from MSVC++, |
4402 # Also find C++ and __fastcall symbols from MSVC++, |
4102 # which start with @ or ?. |
4403 # which start with @ or ?. |
4103 lt_cv_sys_global_symbol_pipe="$AWK ['"\ |
4404 lt_cv_sys_global_symbol_pipe="$AWK ['"\ |
4104 " {last_section=section; section=\$ 3};"\ |
4405 " {last_section=section; section=\$ 3};"\ |
4406 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
|
4105 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
4407 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
4106 " \$ 0!~/External *\|/{next};"\ |
4408 " \$ 0!~/External *\|/{next};"\ |
4107 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
4409 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
4108 " {if(hide[section]) next};"\ |
4410 " {if(hide[section]) next};"\ |
4109 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
4411 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
4112 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
4414 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
4113 " ' prfx=^$ac_symprfx]" |
4415 " ' prfx=^$ac_symprfx]" |
4114 else |
4416 else |
4115 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
4417 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
4116 fi |
4418 fi |
4419 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
|
4117 |
4420 |
4118 # Check to see that the pipe works correctly. |
4421 # Check to see that the pipe works correctly. |
4119 pipe_works=no |
4422 pipe_works=no |
4120 |
4423 |
4121 rm -f conftest* |
4424 rm -f conftest* |
4133 _LT_EOF |
4436 _LT_EOF |
4134 |
4437 |
4135 if AC_TRY_EVAL(ac_compile); then |
4438 if AC_TRY_EVAL(ac_compile); then |
4136 # Now try to grab the symbols. |
4439 # Now try to grab the symbols. |
4137 nlist=conftest.nm |
4440 nlist=conftest.nm |
4138 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then |
4441 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then |
4139 # Try sorting and uniquifying the output. |
4442 # Try sorting and uniquifying the output. |
4140 if sort "$nlist" | uniq > "$nlist"T; then |
4443 if sort "$nlist" | uniq > "$nlist"T; then |
4141 mv -f "$nlist"T "$nlist" |
4444 mv -f "$nlist"T "$nlist" |
4142 else |
4445 else |
4143 rm -f "$nlist"T |
4446 rm -f "$nlist"T |
4145 |
4448 |
4146 # Make sure that we snagged all the symbols we need. |
4449 # Make sure that we snagged all the symbols we need. |
4147 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
4450 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
4148 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
4451 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
4149 cat <<_LT_EOF > conftest.$ac_ext |
4452 cat <<_LT_EOF > conftest.$ac_ext |
4453 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
|
4454 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) |
|
4455 /* DATA imports from DLLs on WIN32 con't be const, because runtime |
|
4456 relocations are performed -- see ld's documentation on pseudo-relocs. */ |
|
4457 # define LT@&t@_DLSYM_CONST |
|
4458 #elif defined(__osf__) |
|
4459 /* This system does not cope well with relocations in const data. */ |
|
4460 # define LT@&t@_DLSYM_CONST |
|
4461 #else |
|
4462 # define LT@&t@_DLSYM_CONST const |
|
4463 #endif |
|
4464 |
|
4150 #ifdef __cplusplus |
4465 #ifdef __cplusplus |
4151 extern "C" { |
4466 extern "C" { |
4152 #endif |
4467 #endif |
4153 |
4468 |
4154 _LT_EOF |
4469 _LT_EOF |
4156 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
4471 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
4157 |
4472 |
4158 cat <<_LT_EOF >> conftest.$ac_ext |
4473 cat <<_LT_EOF >> conftest.$ac_ext |
4159 |
4474 |
4160 /* The mapping between symbol names and symbols. */ |
4475 /* The mapping between symbol names and symbols. */ |
4161 const struct { |
4476 LT@&t@_DLSYM_CONST struct { |
4162 const char *name; |
4477 const char *name; |
4163 void *address; |
4478 void *address; |
4164 } |
4479 } |
4165 lt__PROGRAM__LTX_preloaded_symbols[[]] = |
4480 lt__PROGRAM__LTX_preloaded_symbols[[]] = |
4166 { |
4481 { |
4182 } |
4497 } |
4183 #endif |
4498 #endif |
4184 _LT_EOF |
4499 _LT_EOF |
4185 # Now try linking the two files. |
4500 # Now try linking the two files. |
4186 mv conftest.$ac_objext conftstm.$ac_objext |
4501 mv conftest.$ac_objext conftstm.$ac_objext |
4187 lt_save_LIBS="$LIBS" |
4502 lt_globsym_save_LIBS=$LIBS |
4188 lt_save_CFLAGS="$CFLAGS" |
4503 lt_globsym_save_CFLAGS=$CFLAGS |
4189 LIBS="conftstm.$ac_objext" |
4504 LIBS="conftstm.$ac_objext" |
4190 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" |
4505 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" |
4191 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then |
4506 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then |
4192 pipe_works=yes |
4507 pipe_works=yes |
4193 fi |
4508 fi |
4194 LIBS="$lt_save_LIBS" |
4509 LIBS=$lt_globsym_save_LIBS |
4195 CFLAGS="$lt_save_CFLAGS" |
4510 CFLAGS=$lt_globsym_save_CFLAGS |
4196 else |
4511 else |
4197 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD |
4512 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD |
4198 fi |
4513 fi |
4199 else |
4514 else |
4200 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD |
4515 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD |
4223 AC_MSG_RESULT(failed) |
4538 AC_MSG_RESULT(failed) |
4224 else |
4539 else |
4225 AC_MSG_RESULT(ok) |
4540 AC_MSG_RESULT(ok) |
4226 fi |
4541 fi |
4227 |
4542 |
4543 # Response file support. |
|
4544 if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
|
4545 nm_file_list_spec='@' |
|
4546 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then |
|
4547 nm_file_list_spec='@' |
|
4548 fi |
|
4549 |
|
4228 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], |
4550 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], |
4229 [Take the output of nm and produce a listing of raw symbols and C names]) |
4551 [Take the output of nm and produce a listing of raw symbols and C names]) |
4230 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], |
4552 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], |
4231 [Transform the output of nm in a proper C declaration]) |
4553 [Transform the output of nm in a proper C declaration]) |
4232 _LT_DECL([global_symbol_to_c_name_address], |
4554 _LT_DECL([global_symbol_to_c_name_address], |
4233 [lt_cv_sys_global_symbol_to_c_name_address], [1], |
4555 [lt_cv_sys_global_symbol_to_c_name_address], [1], |
4234 [Transform the output of nm in a C name address pair]) |
4556 [Transform the output of nm in a C name address pair]) |
4235 _LT_DECL([global_symbol_to_c_name_address_lib_prefix], |
4557 _LT_DECL([global_symbol_to_c_name_address_lib_prefix], |
4236 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], |
4558 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], |
4237 [Transform the output of nm in a C name address pair when lib prefix is needed]) |
4559 [Transform the output of nm in a C name address pair when lib prefix is needed]) |
4560 _LT_DECL([], [nm_file_list_spec], [1], |
|
4561 [Specify filename containing input files for $NM]) |
|
4238 ]) # _LT_CMD_GLOBAL_SYMBOLS |
4562 ]) # _LT_CMD_GLOBAL_SYMBOLS |
4239 |
4563 |
4240 |
4564 |
4241 # _LT_COMPILER_PIC([TAGNAME]) |
4565 # _LT_COMPILER_PIC([TAGNAME]) |
4242 # --------------------------- |
4566 # --------------------------- |
4244 [m4_require([_LT_TAG_COMPILER])dnl |
4568 [m4_require([_LT_TAG_COMPILER])dnl |
4245 _LT_TAGVAR(lt_prog_compiler_wl, $1)= |
4569 _LT_TAGVAR(lt_prog_compiler_wl, $1)= |
4246 _LT_TAGVAR(lt_prog_compiler_pic, $1)= |
4570 _LT_TAGVAR(lt_prog_compiler_pic, $1)= |
4247 _LT_TAGVAR(lt_prog_compiler_static, $1)= |
4571 _LT_TAGVAR(lt_prog_compiler_static, $1)= |
4248 |
4572 |
4249 AC_MSG_CHECKING([for $compiler option to produce PIC]) |
|
4250 m4_if([$1], [CXX], [ |
4573 m4_if([$1], [CXX], [ |
4251 # C++ specific cases for pic, static, wl, etc. |
4574 # C++ specific cases for pic, static, wl, etc. |
4252 if test "$GXX" = yes; then |
4575 if test "$GXX" = yes; then |
4253 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4576 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4254 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' |
4577 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' |
4294 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' |
4617 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' |
4295 ;; |
4618 ;; |
4296 *djgpp*) |
4619 *djgpp*) |
4297 # DJGPP does not support shared libraries at all |
4620 # DJGPP does not support shared libraries at all |
4298 _LT_TAGVAR(lt_prog_compiler_pic, $1)= |
4621 _LT_TAGVAR(lt_prog_compiler_pic, $1)= |
4622 ;; |
|
4623 haiku*) |
|
4624 # PIC is the default for Haiku. |
|
4625 # The "-static" flag exists, but is broken. |
|
4626 _LT_TAGVAR(lt_prog_compiler_static, $1)= |
|
4299 ;; |
4627 ;; |
4300 interix[[3-9]]*) |
4628 interix[[3-9]]*) |
4301 # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
4629 # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
4302 # Instead, we relocate shared libraries at runtime. |
4630 # Instead, we relocate shared libraries at runtime. |
4303 ;; |
4631 ;; |
4343 cxch68*) |
4671 cxch68*) |
4344 # Green Hills C++ Compiler |
4672 # Green Hills C++ Compiler |
4345 # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" |
4673 # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" |
4346 ;; |
4674 ;; |
4347 esac |
4675 esac |
4676 ;; |
|
4677 mingw* | cygwin* | os2* | pw32* | cegcc*) |
|
4678 # This hack is so that the source file can tell whether it is being |
|
4679 # built for inclusion in a dll (and should export symbols for example). |
|
4680 m4_if([$1], [GCJ], [], |
|
4681 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) |
|
4348 ;; |
4682 ;; |
4349 dgux*) |
4683 dgux*) |
4350 case $cc_basename in |
4684 case $cc_basename in |
4351 ec++*) |
4685 ec++*) |
4352 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4686 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4400 ;; |
4734 ;; |
4401 *) |
4735 *) |
4402 ;; |
4736 ;; |
4403 esac |
4737 esac |
4404 ;; |
4738 ;; |
4405 linux* | k*bsd*-gnu) |
4739 linux* | k*bsd*-gnu | kopensolaris*-gnu) |
4406 case $cc_basename in |
4740 case $cc_basename in |
4407 KCC*) |
4741 KCC*) |
4408 # KAI C++ Compiler |
4742 # KAI C++ Compiler |
4409 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' |
4743 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' |
4410 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
4744 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
4433 # Make sure the PIC flag is empty. It appears that all Alpha |
4767 # Make sure the PIC flag is empty. It appears that all Alpha |
4434 # Linux and Compaq Tru64 Unix objects are PIC. |
4768 # Linux and Compaq Tru64 Unix objects are PIC. |
4435 _LT_TAGVAR(lt_prog_compiler_pic, $1)= |
4769 _LT_TAGVAR(lt_prog_compiler_pic, $1)= |
4436 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
4770 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
4437 ;; |
4771 ;; |
4438 xlc* | xlC*) |
4772 xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) |
4439 # IBM XL 8.0 on PPC |
4773 # IBM XL 8.0, 9.0 on PPC and BlueGene |
4440 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4774 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4441 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' |
4775 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' |
4442 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' |
4776 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' |
4443 ;; |
4777 ;; |
4444 *) |
4778 *) |
4496 ;; |
4830 ;; |
4497 psos*) |
4831 psos*) |
4498 ;; |
4832 ;; |
4499 solaris*) |
4833 solaris*) |
4500 case $cc_basename in |
4834 case $cc_basename in |
4501 CC*) |
4835 CC* | sunCC*) |
4502 # Sun C++ 4.2, 5.x and Centerline C++ |
4836 # Sun C++ 4.2, 5.x and Centerline C++ |
4503 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4837 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4504 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4838 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4505 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
4839 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
4506 ;; |
4840 ;; |
4600 # PIC is the default on this platform |
4934 # PIC is the default on this platform |
4601 # Common symbols not allowed in MH_DYLIB files |
4935 # Common symbols not allowed in MH_DYLIB files |
4602 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' |
4936 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' |
4603 ;; |
4937 ;; |
4604 |
4938 |
4939 haiku*) |
|
4940 # PIC is the default for Haiku. |
|
4941 # The "-static" flag exists, but is broken. |
|
4942 _LT_TAGVAR(lt_prog_compiler_static, $1)= |
|
4943 ;; |
|
4944 |
|
4605 hpux*) |
4945 hpux*) |
4606 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
4946 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
4607 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
4947 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
4608 # sets the default TLS model and affects inlining. |
4948 # sets the default TLS model and affects inlining. |
4609 case $host_cpu in |
4949 case $host_cpu in |
4640 fi |
4980 fi |
4641 ;; |
4981 ;; |
4642 |
4982 |
4643 *) |
4983 *) |
4644 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
4984 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
4985 ;; |
|
4986 esac |
|
4987 |
|
4988 case $cc_basename in |
|
4989 nvcc*) # Cuda Compiler Driver 2.2 |
|
4990 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' |
|
4991 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then |
|
4992 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)" |
|
4993 fi |
|
4645 ;; |
4994 ;; |
4646 esac |
4995 esac |
4647 else |
4996 else |
4648 # PORTME Check for flag to pass linker flags through the system compiler. |
4997 # PORTME Check for flag to pass linker flags through the system compiler. |
4649 case $host_os in |
4998 case $host_os in |
4684 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
5033 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4685 # PIC (with -KPIC) is the default. |
5034 # PIC (with -KPIC) is the default. |
4686 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
5035 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
4687 ;; |
5036 ;; |
4688 |
5037 |
4689 linux* | k*bsd*-gnu) |
5038 linux* | k*bsd*-gnu | kopensolaris*-gnu) |
4690 case $cc_basename in |
5039 case $cc_basename in |
4691 # old Intel for x86_64 which still supported -KPIC. |
5040 # old Intel for x86_64 which still supported -KPIC. |
4692 ecc*) |
5041 ecc*) |
4693 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
5042 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4694 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
5043 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4705 lf95*) |
5054 lf95*) |
4706 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
5055 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4707 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' |
5056 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' |
4708 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' |
5057 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' |
4709 ;; |
5058 ;; |
4710 pgcc* | pgf77* | pgf90* | pgf95*) |
5059 nagfor*) |
5060 # NAG Fortran compiler |
|
5061 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' |
|
5062 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' |
|
5063 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
|
5064 ;; |
|
5065 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
|
4711 # Portland Group compilers (*not* the Pentium gcc compiler, |
5066 # Portland Group compilers (*not* the Pentium gcc compiler, |
4712 # which looks to be a dead project) |
5067 # which looks to be a dead project) |
4713 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
5068 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4714 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' |
5069 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' |
4715 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
5070 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4717 ccc*) |
5072 ccc*) |
4718 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
5073 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4719 # All Alpha code is PIC. |
5074 # All Alpha code is PIC. |
4720 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
5075 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
4721 ;; |
5076 ;; |
4722 xl*) |
5077 xl* | bgxl* | bgf* | mpixl*) |
4723 # IBM XL C 8.0/Fortran 10.1 on PPC |
5078 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
4724 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
5079 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4725 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' |
5080 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' |
4726 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' |
5081 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' |
4727 ;; |
5082 ;; |
4728 *) |
5083 *) |
4729 case `$CC -V 2>&1 | sed 5q` in |
5084 case `$CC -V 2>&1 | sed 5q` in |
5085 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*) |
|
5086 # Sun Fortran 8.3 passes all unrecognized flags to the linker |
|
5087 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
|
5088 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
|
5089 _LT_TAGVAR(lt_prog_compiler_wl, $1)='' |
|
5090 ;; |
|
5091 *Sun\ F* | *Sun*Fortran*) |
|
5092 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
|
5093 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
|
5094 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
|
5095 ;; |
|
4730 *Sun\ C*) |
5096 *Sun\ C*) |
4731 # Sun C 5.9 |
5097 # Sun C 5.9 |
4732 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
5098 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4733 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
5099 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4734 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
5100 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4735 ;; |
5101 ;; |
4736 *Sun\ F*) |
5102 *Intel*\ [[CF]]*Compiler*) |
4737 # Sun Fortran 8.3 passes all unrecognized flags to the linker |
5103 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4738 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
5104 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
5105 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' |
|
5106 ;; |
|
5107 *Portland\ Group*) |
|
5108 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
|
5109 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' |
|
4739 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
5110 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4740 _LT_TAGVAR(lt_prog_compiler_wl, $1)='' |
|
4741 ;; |
5111 ;; |
4742 esac |
5112 esac |
4743 ;; |
5113 ;; |
4744 esac |
5114 esac |
4745 ;; |
5115 ;; |
4767 |
5137 |
4768 solaris*) |
5138 solaris*) |
4769 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
5139 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4770 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
5140 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4771 case $cc_basename in |
5141 case $cc_basename in |
4772 f77* | f90* | f95*) |
5142 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
4773 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; |
5143 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; |
4774 *) |
5144 *) |
4775 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; |
5145 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; |
4776 esac |
5146 esac |
4777 ;; |
5147 ;; |
4824 ;; |
5194 ;; |
4825 *) |
5195 *) |
4826 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" |
5196 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" |
4827 ;; |
5197 ;; |
4828 esac |
5198 esac |
4829 AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) |
5199 |
4830 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], |
5200 AC_CACHE_CHECK([for $compiler option to produce PIC], |
4831 [How to pass a linker flag through the compiler]) |
5201 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], |
5202 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) |
|
5203 _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) |
|
4832 |
5204 |
4833 # |
5205 # |
4834 # Check to make sure the PIC flag actually works. |
5206 # Check to make sure the PIC flag actually works. |
4835 # |
5207 # |
4836 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then |
5208 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then |
4845 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) |
5217 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) |
4846 fi |
5218 fi |
4847 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], |
5219 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], |
4848 [Additional compiler flags for building library objects]) |
5220 [Additional compiler flags for building library objects]) |
4849 |
5221 |
5222 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], |
|
5223 [How to pass a linker flag through the compiler]) |
|
4850 # |
5224 # |
4851 # Check to make sure the static flag actually works. |
5225 # Check to make sure the static flag actually works. |
4852 # |
5226 # |
4853 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" |
5227 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" |
4854 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], |
5228 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], |
4865 # ---------------------------- |
5239 # ---------------------------- |
4866 # See if the linker supports building shared libraries. |
5240 # See if the linker supports building shared libraries. |
4867 m4_defun([_LT_LINKER_SHLIBS], |
5241 m4_defun([_LT_LINKER_SHLIBS], |
4868 [AC_REQUIRE([LT_PATH_LD])dnl |
5242 [AC_REQUIRE([LT_PATH_LD])dnl |
4869 AC_REQUIRE([LT_PATH_NM])dnl |
5243 AC_REQUIRE([LT_PATH_NM])dnl |
5244 m4_require([_LT_PATH_MANIFEST_TOOL])dnl |
|
4870 m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
5245 m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
4871 m4_require([_LT_DECL_EGREP])dnl |
5246 m4_require([_LT_DECL_EGREP])dnl |
4872 m4_require([_LT_DECL_SED])dnl |
5247 m4_require([_LT_DECL_SED])dnl |
4873 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl |
5248 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl |
4874 m4_require([_LT_TAG_COMPILER])dnl |
5249 m4_require([_LT_TAG_COMPILER])dnl |
4875 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) |
5250 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) |
4876 m4_if([$1], [CXX], [ |
5251 m4_if([$1], [CXX], [ |
4877 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
5252 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
5253 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] |
|
4878 case $host_os in |
5254 case $host_os in |
4879 aix[[4-9]]*) |
5255 aix[[4-9]]*) |
4880 # If we're using GNU nm, then we don't want the "-C" option. |
5256 # If we're using GNU nm, then we don't want the "-C" option. |
4881 # -C means demangle to AIX nm, but means don't demangle with GNU nm |
5257 # -C means demangle to AIX nm, but means don't demangle with GNU nm |
5258 # Also, AIX nm treats weak defined symbols like other global defined |
|
5259 # symbols, whereas GNU nm marks them as "W". |
|
4882 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
5260 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
4883 _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' |
5261 _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' |
4884 else |
5262 else |
4885 _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' |
5263 _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' |
4886 fi |
5264 fi |
4887 ;; |
5265 ;; |
4888 pw32*) |
5266 pw32*) |
4889 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" |
5267 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" |
4890 ;; |
5268 ;; |
4891 cygwin* | mingw* | cegcc*) |
5269 cygwin* | mingw* | cegcc*) |
4892 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' |
5270 case $cc_basename in |
4893 ;; |
5271 cl*) |
5272 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
|
5273 ;; |
|
5274 *) |
|
5275 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' |
|
5276 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] |
|
5277 ;; |
|
5278 esac |
|
5279 ;; |
|
4894 *) |
5280 *) |
4895 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
5281 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
4896 ;; |
5282 ;; |
4897 esac |
5283 esac |
4898 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] |
|
4899 ], [ |
5284 ], [ |
4900 runpath_var= |
5285 runpath_var= |
4901 _LT_TAGVAR(allow_undefined_flag, $1)= |
5286 _LT_TAGVAR(allow_undefined_flag, $1)= |
4902 _LT_TAGVAR(always_export_symbols, $1)=no |
5287 _LT_TAGVAR(always_export_symbols, $1)=no |
4903 _LT_TAGVAR(archive_cmds, $1)= |
5288 _LT_TAGVAR(archive_cmds, $1)= |
4908 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
5293 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
4909 _LT_TAGVAR(hardcode_automatic, $1)=no |
5294 _LT_TAGVAR(hardcode_automatic, $1)=no |
4910 _LT_TAGVAR(hardcode_direct, $1)=no |
5295 _LT_TAGVAR(hardcode_direct, $1)=no |
4911 _LT_TAGVAR(hardcode_direct_absolute, $1)=no |
5296 _LT_TAGVAR(hardcode_direct_absolute, $1)=no |
4912 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
5297 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
4913 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
|
4914 _LT_TAGVAR(hardcode_libdir_separator, $1)= |
5298 _LT_TAGVAR(hardcode_libdir_separator, $1)= |
4915 _LT_TAGVAR(hardcode_minus_L, $1)=no |
5299 _LT_TAGVAR(hardcode_minus_L, $1)=no |
4916 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
5300 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
4917 _LT_TAGVAR(inherit_rpath, $1)=no |
5301 _LT_TAGVAR(inherit_rpath, $1)=no |
4918 _LT_TAGVAR(link_all_deplibs, $1)=unknown |
5302 _LT_TAGVAR(link_all_deplibs, $1)=unknown |
4956 with_gnu_ld=no |
5340 with_gnu_ld=no |
4957 ;; |
5341 ;; |
4958 esac |
5342 esac |
4959 |
5343 |
4960 _LT_TAGVAR(ld_shlibs, $1)=yes |
5344 _LT_TAGVAR(ld_shlibs, $1)=yes |
5345 |
|
5346 # On some targets, GNU ld is compatible enough with the native linker |
|
5347 # that we're better off using the native interface for both. |
|
5348 lt_use_gnu_ld_interface=no |
|
4961 if test "$with_gnu_ld" = yes; then |
5349 if test "$with_gnu_ld" = yes; then |
5350 case $host_os in |
|
5351 aix*) |
|
5352 # The AIX port of GNU ld has always aspired to compatibility |
|
5353 # with the native linker. However, as the warning in the GNU ld |
|
5354 # block says, versions before 2.19.5* couldn't really create working |
|
5355 # shared libraries, regardless of the interface used. |
|
5356 case `$LD -v 2>&1` in |
|
5357 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; |
|
5358 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; |
|
5359 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; |
|
5360 *) |
|
5361 lt_use_gnu_ld_interface=yes |
|
5362 ;; |
|
5363 esac |
|
5364 ;; |
|
5365 *) |
|
5366 lt_use_gnu_ld_interface=yes |
|
5367 ;; |
|
5368 esac |
|
5369 fi |
|
5370 |
|
5371 if test "$lt_use_gnu_ld_interface" = yes; then |
|
4962 # If archive_cmds runs LD, not CC, wlarc should be empty |
5372 # If archive_cmds runs LD, not CC, wlarc should be empty |
4963 wlarc='${wl}' |
5373 wlarc='${wl}' |
4964 |
5374 |
4965 # Set some defaults for GNU ld with shared library support. These |
5375 # Set some defaults for GNU ld with shared library support. These |
4966 # are reset later if shared libraries are not supported. Putting them |
5376 # are reset later if shared libraries are not supported. Putting them |
4974 else |
5384 else |
4975 _LT_TAGVAR(whole_archive_flag_spec, $1)= |
5385 _LT_TAGVAR(whole_archive_flag_spec, $1)= |
4976 fi |
5386 fi |
4977 supports_anon_versioning=no |
5387 supports_anon_versioning=no |
4978 case `$LD -v 2>&1` in |
5388 case `$LD -v 2>&1` in |
5389 *GNU\ gold*) supports_anon_versioning=yes ;; |
|
4979 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 |
5390 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 |
4980 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
5391 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
4981 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
5392 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
4982 *\ 2.11.*) ;; # other 2.11 versions |
5393 *\ 2.11.*) ;; # other 2.11 versions |
4983 *) supports_anon_versioning=yes ;; |
5394 *) supports_anon_versioning=yes ;; |
4989 # On AIX/PPC, the GNU linker is very broken |
5400 # On AIX/PPC, the GNU linker is very broken |
4990 if test "$host_cpu" != ia64; then |
5401 if test "$host_cpu" != ia64; then |
4991 _LT_TAGVAR(ld_shlibs, $1)=no |
5402 _LT_TAGVAR(ld_shlibs, $1)=no |
4992 cat <<_LT_EOF 1>&2 |
5403 cat <<_LT_EOF 1>&2 |
4993 |
5404 |
4994 *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
5405 *** Warning: the GNU linker, at least up to release 2.19, is reported |
4995 *** to be unable to reliably create shared libraries on AIX. |
5406 *** to be unable to reliably create shared libraries on AIX. |
4996 *** Therefore, libtool is disabling shared libraries support. If you |
5407 *** Therefore, libtool is disabling shared libraries support. If you |
4997 *** really care for shared libraries, you may want to modify your PATH |
5408 *** really care for shared libraries, you may want to install binutils |
4998 *** so that a non-GNU linker is found, and then restart. |
5409 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. |
5410 *** You will then need to restart the configuration process. |
|
4999 |
5411 |
5000 _LT_EOF |
5412 _LT_EOF |
5001 fi |
5413 fi |
5002 ;; |
5414 ;; |
5003 |
5415 |
5029 |
5441 |
5030 cygwin* | mingw* | pw32* | cegcc*) |
5442 cygwin* | mingw* | pw32* | cegcc*) |
5031 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
5443 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
5032 # as there is no search path for DLLs. |
5444 # as there is no search path for DLLs. |
5033 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
5445 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
5446 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' |
|
5034 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
5447 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
5035 _LT_TAGVAR(always_export_symbols, $1)=no |
5448 _LT_TAGVAR(always_export_symbols, $1)=no |
5036 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
5449 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
5037 _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' |
5450 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' |
5451 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] |
|
5038 |
5452 |
5039 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
5453 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
5040 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
5454 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
5041 # If the export-symbols file already is a .def file (1st line |
5455 # If the export-symbols file already is a .def file (1st line |
5042 # is EXPORTS), use it as is; otherwise, prepend... |
5456 # is EXPORTS), use it as is; otherwise, prepend... |
5050 else |
5464 else |
5051 _LT_TAGVAR(ld_shlibs, $1)=no |
5465 _LT_TAGVAR(ld_shlibs, $1)=no |
5052 fi |
5466 fi |
5053 ;; |
5467 ;; |
5054 |
5468 |
5469 haiku*) |
|
5470 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
5471 _LT_TAGVAR(link_all_deplibs, $1)=yes |
|
5472 ;; |
|
5473 |
|
5055 interix[[3-9]]*) |
5474 interix[[3-9]]*) |
5056 _LT_TAGVAR(hardcode_direct, $1)=no |
5475 _LT_TAGVAR(hardcode_direct, $1)=no |
5057 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
5476 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
5058 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
5477 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
5059 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
5478 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
5065 # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
5484 # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
5066 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
5485 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
5067 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
5486 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
5068 ;; |
5487 ;; |
5069 |
5488 |
5070 gnu* | linux* | tpf* | k*bsd*-gnu) |
5489 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
5071 tmp_diet=no |
5490 tmp_diet=no |
5072 if test "$host_os" = linux-dietlibc; then |
5491 if test "$host_os" = linux-dietlibc; then |
5073 case $cc_basename in |
5492 case $cc_basename in |
5074 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
5493 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
5075 esac |
5494 esac |
5076 fi |
5495 fi |
5077 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
5496 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
5078 && test "$tmp_diet" = no |
5497 && test "$tmp_diet" = no |
5079 then |
5498 then |
5080 tmp_addflag= |
5499 tmp_addflag=' $pic_flag' |
5081 tmp_sharedflag='-shared' |
5500 tmp_sharedflag='-shared' |
5082 case $cc_basename,$host_cpu in |
5501 case $cc_basename,$host_cpu in |
5083 pgcc*) # Portland Group C compiler |
5502 pgcc*) # Portland Group C compiler |
5084 _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' |
5503 _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' |
5085 tmp_addflag=' $pic_flag' |
5504 tmp_addflag=' $pic_flag' |
5086 ;; |
5505 ;; |
5087 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
5506 pgf77* | pgf90* | pgf95* | pgfortran*) |
5088 _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' |
5507 # Portland Group f77 and f90 compilers |
5508 _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' |
|
5089 tmp_addflag=' $pic_flag -Mnomain' ;; |
5509 tmp_addflag=' $pic_flag -Mnomain' ;; |
5090 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
5510 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
5091 tmp_addflag=' -i_dynamic' ;; |
5511 tmp_addflag=' -i_dynamic' ;; |
5092 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
5512 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
5093 tmp_addflag=' -i_dynamic -nofor_main' ;; |
5513 tmp_addflag=' -i_dynamic -nofor_main' ;; |
5094 ifc* | ifort*) # Intel Fortran compiler |
5514 ifc* | ifort*) # Intel Fortran compiler |
5095 tmp_addflag=' -nofor_main' ;; |
5515 tmp_addflag=' -nofor_main' ;; |
5096 lf95*) # Lahey Fortran 8.1 |
5516 lf95*) # Lahey Fortran 8.1 |
5097 _LT_TAGVAR(whole_archive_flag_spec, $1)= |
5517 _LT_TAGVAR(whole_archive_flag_spec, $1)= |
5098 tmp_sharedflag='--shared' ;; |
5518 tmp_sharedflag='--shared' ;; |
5099 xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
5519 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
5100 tmp_sharedflag='-qmkshrobj' |
5520 tmp_sharedflag='-qmkshrobj' |
5101 tmp_addflag= ;; |
5521 tmp_addflag= ;; |
5522 nvcc*) # Cuda Compiler Driver 2.2 |
|
5523 _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' |
|
5524 _LT_TAGVAR(compiler_needs_object, $1)=yes |
|
5525 ;; |
|
5102 esac |
5526 esac |
5103 case `$CC -V 2>&1 | sed 5q` in |
5527 case `$CC -V 2>&1 | sed 5q` in |
5104 *Sun\ C*) # Sun C 5.9 |
5528 *Sun\ C*) # Sun C 5.9 |
5105 _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' |
5529 _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' |
5106 _LT_TAGVAR(compiler_needs_object, $1)=yes |
5530 _LT_TAGVAR(compiler_needs_object, $1)=yes |
5107 tmp_sharedflag='-G' ;; |
5531 tmp_sharedflag='-G' ;; |
5108 *Sun\ F*) # Sun Fortran 8.3 |
5532 *Sun\ F*) # Sun Fortran 8.3 |
5109 tmp_sharedflag='-G' ;; |
5533 tmp_sharedflag='-G' ;; |
5110 esac |
5534 esac |
5116 echo "local: *; };" >> $output_objdir/$libname.ver~ |
5540 echo "local: *; };" >> $output_objdir/$libname.ver~ |
5117 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
5541 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
5118 fi |
5542 fi |
5119 |
5543 |
5120 case $cc_basename in |
5544 case $cc_basename in |
5121 xlf*) |
5545 xlf* | bgf* | bgxlf* | mpixlf*) |
5122 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
5546 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
5123 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' |
5547 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' |
5124 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
5548 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
5125 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' |
5549 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
5126 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' |
|
5127 if test "x$supports_anon_versioning" = xyes; then |
5550 if test "x$supports_anon_versioning" = xyes; then |
5128 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ |
5551 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ |
5129 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
5552 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
5130 echo "local: *; };" >> $output_objdir/$libname.ver~ |
5553 echo "local: *; };" >> $output_objdir/$libname.ver~ |
5131 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
5554 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
5132 fi |
5555 fi |
5133 ;; |
5556 ;; |
5134 esac |
5557 esac |
5135 else |
5558 else |
5136 _LT_TAGVAR(ld_shlibs, $1)=no |
5559 _LT_TAGVAR(ld_shlibs, $1)=no |
5140 netbsd*) |
5563 netbsd*) |
5141 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
5564 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
5142 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
5565 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
5143 wlarc= |
5566 wlarc= |
5144 else |
5567 else |
5145 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
5568 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
5146 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
5569 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
5147 fi |
5570 fi |
5148 ;; |
5571 ;; |
5149 |
5572 |
5150 solaris*) |
5573 solaris*) |
5151 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
5574 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
5159 *** your PATH or compiler configuration so that the native linker is |
5582 *** your PATH or compiler configuration so that the native linker is |
5160 *** used, and then restart. |
5583 *** used, and then restart. |
5161 |
5584 |
5162 _LT_EOF |
5585 _LT_EOF |
5163 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
5586 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
5164 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
5587 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
5165 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
5588 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
5166 else |
5589 else |
5167 _LT_TAGVAR(ld_shlibs, $1)=no |
5590 _LT_TAGVAR(ld_shlibs, $1)=no |
5168 fi |
5591 fi |
5169 ;; |
5592 ;; |
5170 |
5593 |
5206 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
5629 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
5207 ;; |
5630 ;; |
5208 |
5631 |
5209 *) |
5632 *) |
5210 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
5633 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
5211 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
5634 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
5212 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
5635 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
5213 else |
5636 else |
5214 _LT_TAGVAR(ld_shlibs, $1)=no |
5637 _LT_TAGVAR(ld_shlibs, $1)=no |
5215 fi |
5638 fi |
5216 ;; |
5639 ;; |
5217 esac |
5640 esac |
5247 exp_sym_flag='-Bexport' |
5670 exp_sym_flag='-Bexport' |
5248 no_entry_flag="" |
5671 no_entry_flag="" |
5249 else |
5672 else |
5250 # If we're using GNU nm, then we don't want the "-C" option. |
5673 # If we're using GNU nm, then we don't want the "-C" option. |
5251 # -C means demangle to AIX nm, but means don't demangle with GNU nm |
5674 # -C means demangle to AIX nm, but means don't demangle with GNU nm |
5675 # Also, AIX nm treats weak defined symbols like other global |
|
5676 # defined symbols, whereas GNU nm marks them as "W". |
|
5252 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
5677 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
5253 _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' |
5678 _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' |
5254 else |
5679 else |
5255 _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' |
5680 _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' |
5256 fi |
5681 fi |
5257 aix_use_runtimelinking=no |
5682 aix_use_runtimelinking=no |
5258 |
5683 |
5335 # Warning - without using the other runtime loading flags (-brtl), |
5760 # Warning - without using the other runtime loading flags (-brtl), |
5336 # -berok will link without error, but may produce a broken library. |
5761 # -berok will link without error, but may produce a broken library. |
5337 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' |
5762 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' |
5338 # Determine the default libpath from the value encoded in an |
5763 # Determine the default libpath from the value encoded in an |
5339 # empty executable. |
5764 # empty executable. |
5340 _LT_SYS_MODULE_PATH_AIX |
5765 _LT_SYS_MODULE_PATH_AIX([$1]) |
5341 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
5766 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
5342 _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" |
5767 _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" |
5343 else |
5768 else |
5344 if test "$host_cpu" = ia64; then |
5769 if test "$host_cpu" = ia64; then |
5345 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
5770 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
5346 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
5771 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
5347 _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" |
5772 _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" |
5348 else |
5773 else |
5349 # Determine the default libpath from the value encoded in an |
5774 # Determine the default libpath from the value encoded in an |
5350 # empty executable. |
5775 # empty executable. |
5351 _LT_SYS_MODULE_PATH_AIX |
5776 _LT_SYS_MODULE_PATH_AIX([$1]) |
5352 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
5777 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
5353 # Warning - without using the other run time loading flags, |
5778 # Warning - without using the other run time loading flags, |
5354 # -berok will link without error, but may produce a broken library. |
5779 # -berok will link without error, but may produce a broken library. |
5355 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
5780 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
5356 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
5781 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
5357 # Exported symbols can be pulled into shared objects from archives |
5782 if test "$with_gnu_ld" = yes; then |
5358 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' |
5783 # We only use this code for GNU lds that support --whole-archive. |
5784 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
|
5785 else |
|
5786 # Exported symbols can be pulled into shared objects from archives |
|
5787 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' |
|
5788 fi |
|
5359 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes |
5789 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes |
5360 # This is similar to how AIX traditionally builds its shared libraries. |
5790 # This is similar to how AIX traditionally builds its shared libraries. |
5361 _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' |
5791 _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' |
5362 fi |
5792 fi |
5363 fi |
5793 fi |
5385 cygwin* | mingw* | pw32* | cegcc*) |
5815 cygwin* | mingw* | pw32* | cegcc*) |
5386 # When not using gcc, we currently assume that we are using |
5816 # When not using gcc, we currently assume that we are using |
5387 # Microsoft Visual C++. |
5817 # Microsoft Visual C++. |
5388 # hardcode_libdir_flag_spec is actually meaningless, as there is |
5818 # hardcode_libdir_flag_spec is actually meaningless, as there is |
5389 # no search path for DLLs. |
5819 # no search path for DLLs. |
5390 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' |
5820 case $cc_basename in |
5391 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
5821 cl*) |
5392 # Tell ltmain to make .lib files, not .a files. |
5822 # Native MSVC |
5393 libext=lib |
5823 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' |
5394 # Tell ltmain to make .dll files, not .so files. |
5824 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
5395 shrext_cmds=".dll" |
5825 _LT_TAGVAR(always_export_symbols, $1)=yes |
5396 # FIXME: Setting linknames here is a bad hack. |
5826 _LT_TAGVAR(file_list_spec, $1)='@' |
5397 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
5827 # Tell ltmain to make .lib files, not .a files. |
5398 # The linker will automatically build a .lib file if we build a DLL. |
5828 libext=lib |
5399 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' |
5829 # Tell ltmain to make .dll files, not .so files. |
5400 # FIXME: Should let the user specify the lib program. |
5830 shrext_cmds=".dll" |
5401 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' |
5831 # FIXME: Setting linknames here is a bad hack. |
5402 _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' |
5832 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' |
5403 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
5833 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
5834 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; |
|
5835 else |
|
5836 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; |
|
5837 fi~ |
|
5838 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
|
5839 linknames=' |
|
5840 # The linker will not automatically build a static lib if we build a DLL. |
|
5841 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' |
|
5842 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
|
5843 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
|
5844 _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' |
|
5845 # Don't use ranlib |
|
5846 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' |
|
5847 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ |
|
5848 lt_tool_outputfile="@TOOL_OUTPUT@"~ |
|
5849 case $lt_outputfile in |
|
5850 *.exe|*.EXE) ;; |
|
5851 *) |
|
5852 lt_outputfile="$lt_outputfile.exe" |
|
5853 lt_tool_outputfile="$lt_tool_outputfile.exe" |
|
5854 ;; |
|
5855 esac~ |
|
5856 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then |
|
5857 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
|
5858 $RM "$lt_outputfile.manifest"; |
|
5859 fi' |
|
5860 ;; |
|
5861 *) |
|
5862 # Assume MSVC wrapper |
|
5863 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' |
|
5864 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
|
5865 # Tell ltmain to make .lib files, not .a files. |
|
5866 libext=lib |
|
5867 # Tell ltmain to make .dll files, not .so files. |
|
5868 shrext_cmds=".dll" |
|
5869 # FIXME: Setting linknames here is a bad hack. |
|
5870 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
|
5871 # The linker will automatically build a .lib file if we build a DLL. |
|
5872 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' |
|
5873 # FIXME: Should let the user specify the lib program. |
|
5874 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' |
|
5875 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
|
5876 ;; |
|
5877 esac |
|
5404 ;; |
5878 ;; |
5405 |
5879 |
5406 darwin* | rhapsody*) |
5880 darwin* | rhapsody*) |
5407 _LT_DARWIN_LINKER_FEATURES($1) |
5881 _LT_DARWIN_LINKER_FEATURES($1) |
5408 ;; |
5882 ;; |
5409 |
5883 |
5410 dgux*) |
5884 dgux*) |
5411 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
5885 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
5412 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
5886 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
5413 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
5887 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
5414 ;; |
|
5415 |
|
5416 freebsd1*) |
|
5417 _LT_TAGVAR(ld_shlibs, $1)=no |
|
5418 ;; |
5888 ;; |
5419 |
5889 |
5420 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
5890 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
5421 # support. Future versions do this automatically, but an explicit c++rt0.o |
5891 # support. Future versions do this automatically, but an explicit c++rt0.o |
5422 # does not break anything, and helps significantly (at the cost of a little |
5892 # does not break anything, and helps significantly (at the cost of a little |
5427 _LT_TAGVAR(hardcode_direct, $1)=yes |
5897 _LT_TAGVAR(hardcode_direct, $1)=yes |
5428 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
5898 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
5429 ;; |
5899 ;; |
5430 |
5900 |
5431 # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
5901 # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
5432 freebsd2*) |
5902 freebsd2.*) |
5433 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
5903 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
5434 _LT_TAGVAR(hardcode_direct, $1)=yes |
5904 _LT_TAGVAR(hardcode_direct, $1)=yes |
5435 _LT_TAGVAR(hardcode_minus_L, $1)=yes |
5905 _LT_TAGVAR(hardcode_minus_L, $1)=yes |
5436 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
5906 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
5437 ;; |
5907 ;; |
5438 |
5908 |
5439 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
5909 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
5440 freebsd* | dragonfly*) |
5910 freebsd* | dragonfly*) |
5441 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
5911 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
5442 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
5912 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
5443 _LT_TAGVAR(hardcode_direct, $1)=yes |
5913 _LT_TAGVAR(hardcode_direct, $1)=yes |
5444 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
5914 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
5445 ;; |
5915 ;; |
5446 |
5916 |
5447 hpux9*) |
5917 hpux9*) |
5448 if test "$GCC" = yes; then |
5918 if test "$GCC" = yes; then |
5449 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
5919 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
5450 else |
5920 else |
5451 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
5921 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
5452 fi |
5922 fi |
5453 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
5923 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
5454 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
5924 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
5459 _LT_TAGVAR(hardcode_minus_L, $1)=yes |
5929 _LT_TAGVAR(hardcode_minus_L, $1)=yes |
5460 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
5930 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
5461 ;; |
5931 ;; |
5462 |
5932 |
5463 hpux10*) |
5933 hpux10*) |
5464 if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
5934 if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
5465 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
5935 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
5466 else |
5936 else |
5467 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
5937 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
5468 fi |
5938 fi |
5469 if test "$with_gnu_ld" = no; then |
5939 if test "$with_gnu_ld" = no; then |
5470 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
5940 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
5471 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' |
|
5472 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
5941 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
5473 _LT_TAGVAR(hardcode_direct, $1)=yes |
5942 _LT_TAGVAR(hardcode_direct, $1)=yes |
5474 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes |
5943 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes |
5475 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
5944 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
5476 # hardcode_minus_L: Not really in the search PATH, |
5945 # hardcode_minus_L: Not really in the search PATH, |
5478 _LT_TAGVAR(hardcode_minus_L, $1)=yes |
5947 _LT_TAGVAR(hardcode_minus_L, $1)=yes |
5479 fi |
5948 fi |
5480 ;; |
5949 ;; |
5481 |
5950 |
5482 hpux11*) |
5951 hpux11*) |
5483 if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
5952 if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
5484 case $host_cpu in |
5953 case $host_cpu in |
5485 hppa*64*) |
5954 hppa*64*) |
5486 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
5955 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
5487 ;; |
5956 ;; |
5488 ia64*) |
5957 ia64*) |
5489 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
5958 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
5490 ;; |
5959 ;; |
5491 *) |
5960 *) |
5492 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
5961 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
5493 ;; |
5962 ;; |
5494 esac |
5963 esac |
5495 else |
5964 else |
5496 case $host_cpu in |
5965 case $host_cpu in |
5497 hppa*64*) |
5966 hppa*64*) |
5499 ;; |
5968 ;; |
5500 ia64*) |
5969 ia64*) |
5501 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
5970 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
5502 ;; |
5971 ;; |
5503 *) |
5972 *) |
5504 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
5973 m4_if($1, [], [ |
5974 # Older versions of the 11.00 compiler do not understand -b yet |
|
5975 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) |
|
5976 _LT_LINKER_OPTION([if $CC understands -b], |
|
5977 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], |
|
5978 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], |
|
5979 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], |
|
5980 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) |
|
5505 ;; |
5981 ;; |
5506 esac |
5982 esac |
5507 fi |
5983 fi |
5508 if test "$with_gnu_ld" = no; then |
5984 if test "$with_gnu_ld" = no; then |
5509 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
5985 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
5527 fi |
6003 fi |
5528 ;; |
6004 ;; |
5529 |
6005 |
5530 irix5* | irix6* | nonstopux*) |
6006 irix5* | irix6* | nonstopux*) |
5531 if test "$GCC" = yes; then |
6007 if test "$GCC" = yes; then |
5532 _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' |
6008 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_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' |
5533 # Try to use the -exported_symbol ld option, if it does not |
6009 # Try to use the -exported_symbol ld option, if it does not |
5534 # work, assume that -exports_file does not work either and |
6010 # work, assume that -exports_file does not work either and |
5535 # implicitly export all symbols. |
6011 # implicitly export all symbols. |
5536 save_LDFLAGS="$LDFLAGS" |
6012 # This should be the same for all languages, so no per-tag cache variable. |
5537 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
6013 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], |
5538 AC_LINK_IFELSE(int foo(void) {}, |
6014 [lt_cv_irix_exported_symbol], |
5539 _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' |
6015 [save_LDFLAGS="$LDFLAGS" |
5540 ) |
6016 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
5541 LDFLAGS="$save_LDFLAGS" |
6017 AC_LINK_IFELSE( |
6018 [AC_LANG_SOURCE( |
|
6019 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], |
|
6020 [C++], [[int foo (void) { return 0; }]], |
|
6021 [Fortran 77], [[ |
|
6022 subroutine foo |
|
6023 end]], |
|
6024 [Fortran], [[ |
|
6025 subroutine foo |
|
6026 end]])])], |
|
6027 [lt_cv_irix_exported_symbol=yes], |
|
6028 [lt_cv_irix_exported_symbol=no]) |
|
6029 LDFLAGS="$save_LDFLAGS"]) |
|
6030 if test "$lt_cv_irix_exported_symbol" = yes; then |
|
6031 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_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 ${wl}-exports_file ${wl}$export_symbols -o $lib' |
|
6032 fi |
|
5542 else |
6033 else |
5543 _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' |
6034 _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' |
5544 _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' |
6035 _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' |
5545 fi |
6036 fi |
5546 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' |
6037 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' |
5547 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
6038 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
5548 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
6039 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
5549 _LT_TAGVAR(inherit_rpath, $1)=yes |
6040 _LT_TAGVAR(inherit_rpath, $1)=yes |
5601 |
6092 |
5602 os2*) |
6093 os2*) |
5603 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
6094 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
5604 _LT_TAGVAR(hardcode_minus_L, $1)=yes |
6095 _LT_TAGVAR(hardcode_minus_L, $1)=yes |
5605 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
6096 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
5606 _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' |
6097 _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' |
5607 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
6098 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
5608 ;; |
6099 ;; |
5609 |
6100 |
5610 osf3*) |
6101 osf3*) |
5611 if test "$GCC" = yes; then |
6102 if test "$GCC" = yes; then |
5612 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
6103 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
5613 _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' |
6104 _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' |
5614 else |
6105 else |
5615 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
6106 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
5616 _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' |
6107 _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' |
5617 fi |
6108 fi |
5618 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' |
6109 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' |
5619 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
6110 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
5620 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
6111 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
5621 ;; |
6112 ;; |
5622 |
6113 |
5623 osf4* | osf5*) # as osf3* with the addition of -msym flag |
6114 osf4* | osf5*) # as osf3* with the addition of -msym flag |
5624 if test "$GCC" = yes; then |
6115 if test "$GCC" = yes; then |
5625 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
6116 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
5626 _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' |
6117 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_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' |
5627 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
6118 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
5628 else |
6119 else |
5629 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
6120 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
5630 _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' |
6121 _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' |
5631 _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~ |
6122 _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~ |
5632 $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' |
6123 $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' |
5633 |
6124 |
5634 # Both c and cxx compiler support -rpath directly |
6125 # Both c and cxx compiler support -rpath directly |
5635 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
6126 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
5636 fi |
6127 fi |
5637 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' |
6128 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' |
5640 |
6131 |
5641 solaris*) |
6132 solaris*) |
5642 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' |
6133 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' |
5643 if test "$GCC" = yes; then |
6134 if test "$GCC" = yes; then |
5644 wlarc='${wl}' |
6135 wlarc='${wl}' |
5645 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
6136 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
5646 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
6137 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
5647 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
6138 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
5648 else |
6139 else |
5649 case `$CC -V 2>&1` in |
6140 case `$CC -V 2>&1` in |
5650 *"Compilers 5.0"*) |
6141 *"Compilers 5.0"*) |
5651 wlarc='' |
6142 wlarc='' |
5652 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
6143 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
5818 ;; |
6309 ;; |
5819 '$CC '*) |
6310 '$CC '*) |
5820 # Test whether the compiler implicitly links with -lc since on some |
6311 # Test whether the compiler implicitly links with -lc since on some |
5821 # systems, -lgcc has to come before -lc. If gcc already passes -lc |
6312 # systems, -lgcc has to come before -lc. If gcc already passes -lc |
5822 # to ld, don't add -lc before -lgcc. |
6313 # to ld, don't add -lc before -lgcc. |
5823 AC_MSG_CHECKING([whether -lc should be explicitly linked in]) |
6314 AC_CACHE_CHECK([whether -lc should be explicitly linked in], |
5824 $RM conftest* |
6315 [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), |
5825 echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
6316 [$RM conftest* |
5826 |
6317 echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
5827 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then |
6318 |
5828 soname=conftest |
6319 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then |
5829 lib=conftest |
6320 soname=conftest |
5830 libobjs=conftest.$ac_objext |
6321 lib=conftest |
5831 deplibs= |
6322 libobjs=conftest.$ac_objext |
5832 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) |
6323 deplibs= |
5833 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) |
6324 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) |
5834 compiler_flags=-v |
6325 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) |
5835 linker_flags=-v |
6326 compiler_flags=-v |
5836 verstring= |
6327 linker_flags=-v |
5837 output_objdir=. |
6328 verstring= |
5838 libname=conftest |
6329 output_objdir=. |
5839 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) |
6330 libname=conftest |
5840 _LT_TAGVAR(allow_undefined_flag, $1)= |
6331 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) |
5841 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) |
6332 _LT_TAGVAR(allow_undefined_flag, $1)= |
5842 then |
6333 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) |
5843 _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
6334 then |
5844 else |
6335 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no |
5845 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes |
6336 else |
5846 fi |
6337 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes |
5847 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag |
6338 fi |
5848 else |
6339 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag |
5849 cat conftest.err 1>&5 |
6340 else |
5850 fi |
6341 cat conftest.err 1>&5 |
5851 $RM conftest* |
6342 fi |
5852 AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)]) |
6343 $RM conftest* |
6344 ]) |
|
6345 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) |
|
5853 ;; |
6346 ;; |
5854 esac |
6347 esac |
5855 fi |
6348 fi |
5856 ;; |
6349 ;; |
5857 esac |
6350 esac |
5884 _LT_TAGDECL([], [no_undefined_flag], [1], |
6377 _LT_TAGDECL([], [no_undefined_flag], [1], |
5885 [Flag that enforces no undefined symbols]) |
6378 [Flag that enforces no undefined symbols]) |
5886 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], |
6379 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], |
5887 [Flag to hardcode $libdir into a binary during linking. |
6380 [Flag to hardcode $libdir into a binary during linking. |
5888 This must work even if $libdir does not exist]) |
6381 This must work even if $libdir does not exist]) |
5889 _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1], |
|
5890 [[If ld is used when linking, flag to hardcode $libdir into a binary |
|
5891 during linking. This must work even if $libdir does not exist]]) |
|
5892 _LT_TAGDECL([], [hardcode_libdir_separator], [1], |
6382 _LT_TAGDECL([], [hardcode_libdir_separator], [1], |
5893 [Whether we need a single "-rpath" flag with a separated argument]) |
6383 [Whether we need a single "-rpath" flag with a separated argument]) |
5894 _LT_TAGDECL([], [hardcode_direct], [0], |
6384 _LT_TAGDECL([], [hardcode_direct], [0], |
5895 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes |
6385 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes |
5896 DIR into the resulting binary]) |
6386 DIR into the resulting binary]) |
5912 _LT_TAGDECL([], [inherit_rpath], [0], |
6402 _LT_TAGDECL([], [inherit_rpath], [0], |
5913 [Set to yes if linker adds runtime paths of dependent libraries |
6403 [Set to yes if linker adds runtime paths of dependent libraries |
5914 to runtime path list]) |
6404 to runtime path list]) |
5915 _LT_TAGDECL([], [link_all_deplibs], [0], |
6405 _LT_TAGDECL([], [link_all_deplibs], [0], |
5916 [Whether libtool must link a program against all its dependency libraries]) |
6406 [Whether libtool must link a program against all its dependency libraries]) |
5917 _LT_TAGDECL([], [fix_srcfile_path], [1], |
|
5918 [Fix the shell variable $srcfile for the compiler]) |
|
5919 _LT_TAGDECL([], [always_export_symbols], [0], |
6407 _LT_TAGDECL([], [always_export_symbols], [0], |
5920 [Set to "yes" if exported symbols are required]) |
6408 [Set to "yes" if exported symbols are required]) |
5921 _LT_TAGDECL([], [export_symbols_cmds], [2], |
6409 _LT_TAGDECL([], [export_symbols_cmds], [2], |
5922 [The commands to list exported symbols]) |
6410 [The commands to list exported symbols]) |
5923 _LT_TAGDECL([], [exclude_expsyms], [1], |
6411 _LT_TAGDECL([], [exclude_expsyms], [1], |
5924 [Symbols that should not be listed in the preloaded symbols]) |
6412 [Symbols that should not be listed in the preloaded symbols]) |
5925 _LT_TAGDECL([], [include_expsyms], [1], |
6413 _LT_TAGDECL([], [include_expsyms], [1], |
5926 [Symbols that must always be exported]) |
6414 [Symbols that must always be exported]) |
5927 _LT_TAGDECL([], [prelink_cmds], [2], |
6415 _LT_TAGDECL([], [prelink_cmds], [2], |
5928 [Commands necessary for linking programs (against libraries) with templates]) |
6416 [Commands necessary for linking programs (against libraries) with templates]) |
6417 _LT_TAGDECL([], [postlink_cmds], [2], |
|
6418 [Commands necessary for finishing linking programs]) |
|
5929 _LT_TAGDECL([], [file_list_spec], [1], |
6419 _LT_TAGDECL([], [file_list_spec], [1], |
5930 [Specify filename containing input files]) |
6420 [Specify filename containing input files]) |
5931 dnl FIXME: Not yet implemented |
6421 dnl FIXME: Not yet implemented |
5932 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], |
6422 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], |
5933 dnl [Compiler flag to generate thread safe objects]) |
6423 dnl [Compiler flag to generate thread safe objects]) |
6017 AC_LANG_POP |
6507 AC_LANG_POP |
6018 CC="$lt_save_CC" |
6508 CC="$lt_save_CC" |
6019 ])# _LT_LANG_C_CONFIG |
6509 ])# _LT_LANG_C_CONFIG |
6020 |
6510 |
6021 |
6511 |
6022 # _LT_PROG_CXX |
6512 # _LT_LANG_CXX_CONFIG([TAG]) |
6023 # ------------ |
6513 # -------------------------- |
6024 # Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++ |
6514 # Ensure that the configuration variables for a C++ compiler are suitably |
6025 # compiler, we have our own version here. |
6515 # defined. These variables are subsequently used by _LT_CONFIG to write |
6026 m4_defun([_LT_PROG_CXX], |
6516 # the compiler configuration to `libtool'. |
6027 [ |
6517 m4_defun([_LT_LANG_CXX_CONFIG], |
6028 pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes]) |
6518 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
6029 AC_PROG_CXX |
6519 m4_require([_LT_DECL_EGREP])dnl |
6520 m4_require([_LT_PATH_MANIFEST_TOOL])dnl |
|
6030 if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
6521 if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
6031 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
6522 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
6032 (test "X$CXX" != "Xg++"))) ; then |
6523 (test "X$CXX" != "Xg++"))) ; then |
6033 AC_PROG_CXXCPP |
6524 AC_PROG_CXXCPP |
6034 else |
6525 else |
6035 _lt_caught_CXX_error=yes |
6526 _lt_caught_CXX_error=yes |
6036 fi |
6527 fi |
6037 popdef([AC_MSG_ERROR]) |
|
6038 ])# _LT_PROG_CXX |
|
6039 |
|
6040 dnl aclocal-1.4 backwards compatibility: |
|
6041 dnl AC_DEFUN([_LT_PROG_CXX], []) |
|
6042 |
|
6043 |
|
6044 # _LT_LANG_CXX_CONFIG([TAG]) |
|
6045 # -------------------------- |
|
6046 # Ensure that the configuration variables for a C++ compiler are suitably |
|
6047 # defined. These variables are subsequently used by _LT_CONFIG to write |
|
6048 # the compiler configuration to `libtool'. |
|
6049 m4_defun([_LT_LANG_CXX_CONFIG], |
|
6050 [AC_REQUIRE([_LT_PROG_CXX])dnl |
|
6051 m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
|
6052 m4_require([_LT_DECL_EGREP])dnl |
|
6053 |
6528 |
6054 AC_LANG_PUSH(C++) |
6529 AC_LANG_PUSH(C++) |
6055 _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
6530 _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
6056 _LT_TAGVAR(allow_undefined_flag, $1)= |
6531 _LT_TAGVAR(allow_undefined_flag, $1)= |
6057 _LT_TAGVAR(always_export_symbols, $1)=no |
6532 _LT_TAGVAR(always_export_symbols, $1)=no |
6059 _LT_TAGVAR(compiler_needs_object, $1)=no |
6534 _LT_TAGVAR(compiler_needs_object, $1)=no |
6060 _LT_TAGVAR(export_dynamic_flag_spec, $1)= |
6535 _LT_TAGVAR(export_dynamic_flag_spec, $1)= |
6061 _LT_TAGVAR(hardcode_direct, $1)=no |
6536 _LT_TAGVAR(hardcode_direct, $1)=no |
6062 _LT_TAGVAR(hardcode_direct_absolute, $1)=no |
6537 _LT_TAGVAR(hardcode_direct_absolute, $1)=no |
6063 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
6538 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
6064 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
|
6065 _LT_TAGVAR(hardcode_libdir_separator, $1)= |
6539 _LT_TAGVAR(hardcode_libdir_separator, $1)= |
6066 _LT_TAGVAR(hardcode_minus_L, $1)=no |
6540 _LT_TAGVAR(hardcode_minus_L, $1)=no |
6067 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
6541 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
6068 _LT_TAGVAR(hardcode_automatic, $1)=no |
6542 _LT_TAGVAR(hardcode_automatic, $1)=no |
6069 _LT_TAGVAR(inherit_rpath, $1)=no |
6543 _LT_TAGVAR(inherit_rpath, $1)=no |
6070 _LT_TAGVAR(module_cmds, $1)= |
6544 _LT_TAGVAR(module_cmds, $1)= |
6071 _LT_TAGVAR(module_expsym_cmds, $1)= |
6545 _LT_TAGVAR(module_expsym_cmds, $1)= |
6072 _LT_TAGVAR(link_all_deplibs, $1)=unknown |
6546 _LT_TAGVAR(link_all_deplibs, $1)=unknown |
6073 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
6547 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
6548 _LT_TAGVAR(reload_flag, $1)=$reload_flag |
|
6549 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds |
|
6074 _LT_TAGVAR(no_undefined_flag, $1)= |
6550 _LT_TAGVAR(no_undefined_flag, $1)= |
6075 _LT_TAGVAR(whole_archive_flag_spec, $1)= |
6551 _LT_TAGVAR(whole_archive_flag_spec, $1)= |
6076 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
6552 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
6077 |
6553 |
6078 # Source file extension for C++ test sources. |
6554 # Source file extension for C++ test sources. |
6100 _LT_COMPILER_BOILERPLATE |
6576 _LT_COMPILER_BOILERPLATE |
6101 _LT_LINKER_BOILERPLATE |
6577 _LT_LINKER_BOILERPLATE |
6102 |
6578 |
6103 # Allow CC to be a program name with arguments. |
6579 # Allow CC to be a program name with arguments. |
6104 lt_save_CC=$CC |
6580 lt_save_CC=$CC |
6581 lt_save_CFLAGS=$CFLAGS |
|
6105 lt_save_LD=$LD |
6582 lt_save_LD=$LD |
6106 lt_save_GCC=$GCC |
6583 lt_save_GCC=$GCC |
6107 GCC=$GXX |
6584 GCC=$GXX |
6108 lt_save_with_gnu_ld=$with_gnu_ld |
6585 lt_save_with_gnu_ld=$with_gnu_ld |
6109 lt_save_path_LD=$lt_cv_path_LD |
6586 lt_save_path_LD=$lt_cv_path_LD |
6117 else |
6594 else |
6118 $as_unset lt_cv_path_LD |
6595 $as_unset lt_cv_path_LD |
6119 fi |
6596 fi |
6120 test -z "${LDCXX+set}" || LD=$LDCXX |
6597 test -z "${LDCXX+set}" || LD=$LDCXX |
6121 CC=${CXX-"c++"} |
6598 CC=${CXX-"c++"} |
6599 CFLAGS=$CXXFLAGS |
|
6122 compiler=$CC |
6600 compiler=$CC |
6123 _LT_TAGVAR(compiler, $1)=$CC |
6601 _LT_TAGVAR(compiler, $1)=$CC |
6124 _LT_CC_BASENAME([$compiler]) |
6602 _LT_CC_BASENAME([$compiler]) |
6125 |
6603 |
6126 if test -n "$compiler"; then |
6604 if test -n "$compiler"; then |
6138 LT_PATH_LD |
6616 LT_PATH_LD |
6139 |
6617 |
6140 # Check if GNU C++ uses GNU ld as the underlying linker, since the |
6618 # Check if GNU C++ uses GNU ld as the underlying linker, since the |
6141 # archiving commands below assume that GNU ld is being used. |
6619 # archiving commands below assume that GNU ld is being used. |
6142 if test "$with_gnu_ld" = yes; then |
6620 if test "$with_gnu_ld" = yes; then |
6143 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
6621 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
6144 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
6622 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
6145 |
6623 |
6146 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
6624 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
6147 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
6625 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
6148 |
6626 |
6149 # If archive_cmds runs LD, not CC, wlarc should be empty |
6627 # If archive_cmds runs LD, not CC, wlarc should be empty |
6171 fi |
6649 fi |
6172 |
6650 |
6173 # Commands to make compiler produce verbose output that lists |
6651 # Commands to make compiler produce verbose output that lists |
6174 # what "hidden" libraries, object files and flags are used when |
6652 # what "hidden" libraries, object files and flags are used when |
6175 # linking a shared library. |
6653 # linking a shared library. |
6176 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
6654 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
6177 |
6655 |
6178 else |
6656 else |
6179 GXX=no |
6657 GXX=no |
6180 with_gnu_ld=no |
6658 with_gnu_ld=no |
6181 wlarc= |
6659 wlarc= |
6280 # Warning - without using the other runtime loading flags (-brtl), |
6758 # Warning - without using the other runtime loading flags (-brtl), |
6281 # -berok will link without error, but may produce a broken library. |
6759 # -berok will link without error, but may produce a broken library. |
6282 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' |
6760 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' |
6283 # Determine the default libpath from the value encoded in an empty |
6761 # Determine the default libpath from the value encoded in an empty |
6284 # executable. |
6762 # executable. |
6285 _LT_SYS_MODULE_PATH_AIX |
6763 _LT_SYS_MODULE_PATH_AIX([$1]) |
6286 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
6764 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
6287 |
6765 |
6288 _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" |
6766 _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" |
6289 else |
6767 else |
6290 if test "$host_cpu" = ia64; then |
6768 if test "$host_cpu" = ia64; then |
6291 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
6769 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
6292 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
6770 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
6293 _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" |
6771 _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" |
6294 else |
6772 else |
6295 # Determine the default libpath from the value encoded in an |
6773 # Determine the default libpath from the value encoded in an |
6296 # empty executable. |
6774 # empty executable. |
6297 _LT_SYS_MODULE_PATH_AIX |
6775 _LT_SYS_MODULE_PATH_AIX([$1]) |
6298 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
6776 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
6299 # Warning - without using the other run time loading flags, |
6777 # Warning - without using the other run time loading flags, |
6300 # -berok will link without error, but may produce a broken library. |
6778 # -berok will link without error, but may produce a broken library. |
6301 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
6779 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
6302 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
6780 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
6303 # Exported symbols can be pulled into shared objects from archives |
6781 if test "$with_gnu_ld" = yes; then |
6304 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' |
6782 # We only use this code for GNU lds that support --whole-archive. |
6783 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
|
6784 else |
|
6785 # Exported symbols can be pulled into shared objects from archives |
|
6786 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' |
|
6787 fi |
|
6305 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes |
6788 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes |
6306 # This is similar to how AIX traditionally builds its shared |
6789 # This is similar to how AIX traditionally builds its shared |
6307 # libraries. |
6790 # libraries. |
6308 _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' |
6791 _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' |
6309 fi |
6792 fi |
6329 ;; |
6812 ;; |
6330 esac |
6813 esac |
6331 ;; |
6814 ;; |
6332 |
6815 |
6333 cygwin* | mingw* | pw32* | cegcc*) |
6816 cygwin* | mingw* | pw32* | cegcc*) |
6334 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
6817 case $GXX,$cc_basename in |
6335 # as there is no search path for DLLs. |
6818 ,cl* | no,cl*) |
6336 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
6819 # Native MSVC |
6337 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
6820 # hardcode_libdir_flag_spec is actually meaningless, as there is |
6338 _LT_TAGVAR(always_export_symbols, $1)=no |
6821 # no search path for DLLs. |
6339 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
6822 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' |
6340 |
6823 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
6341 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
6824 _LT_TAGVAR(always_export_symbols, $1)=yes |
6342 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
6825 _LT_TAGVAR(file_list_spec, $1)='@' |
6343 # If the export-symbols file already is a .def file (1st line |
6826 # Tell ltmain to make .lib files, not .a files. |
6344 # is EXPORTS), use it as is; otherwise, prepend... |
6827 libext=lib |
6345 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
6828 # Tell ltmain to make .dll files, not .so files. |
6346 cp $export_symbols $output_objdir/$soname.def; |
6829 shrext_cmds=".dll" |
6347 else |
6830 # FIXME: Setting linknames here is a bad hack. |
6348 echo EXPORTS > $output_objdir/$soname.def; |
6831 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' |
6349 cat $export_symbols >> $output_objdir/$soname.def; |
6832 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
6350 fi~ |
6833 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; |
6351 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
6834 else |
6352 else |
6835 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; |
6353 _LT_TAGVAR(ld_shlibs, $1)=no |
6836 fi~ |
6354 fi |
6837 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
6355 ;; |
6838 linknames=' |
6839 # The linker will not automatically build a static lib if we build a DLL. |
|
6840 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' |
|
6841 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
|
6842 # Don't use ranlib |
|
6843 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' |
|
6844 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ |
|
6845 lt_tool_outputfile="@TOOL_OUTPUT@"~ |
|
6846 case $lt_outputfile in |
|
6847 *.exe|*.EXE) ;; |
|
6848 *) |
|
6849 lt_outputfile="$lt_outputfile.exe" |
|
6850 lt_tool_outputfile="$lt_tool_outputfile.exe" |
|
6851 ;; |
|
6852 esac~ |
|
6853 func_to_tool_file "$lt_outputfile"~ |
|
6854 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then |
|
6855 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
|
6856 $RM "$lt_outputfile.manifest"; |
|
6857 fi' |
|
6858 ;; |
|
6859 *) |
|
6860 # g++ |
|
6861 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
|
6862 # as there is no search path for DLLs. |
|
6863 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
|
6864 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' |
|
6865 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
|
6866 _LT_TAGVAR(always_export_symbols, $1)=no |
|
6867 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
|
6868 |
|
6869 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
|
6870 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
|
6871 # If the export-symbols file already is a .def file (1st line |
|
6872 # is EXPORTS), use it as is; otherwise, prepend... |
|
6873 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
|
6874 cp $export_symbols $output_objdir/$soname.def; |
|
6875 else |
|
6876 echo EXPORTS > $output_objdir/$soname.def; |
|
6877 cat $export_symbols >> $output_objdir/$soname.def; |
|
6878 fi~ |
|
6879 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
|
6880 else |
|
6881 _LT_TAGVAR(ld_shlibs, $1)=no |
|
6882 fi |
|
6883 ;; |
|
6884 esac |
|
6885 ;; |
|
6356 darwin* | rhapsody*) |
6886 darwin* | rhapsody*) |
6357 _LT_DARWIN_LINKER_FEATURES($1) |
6887 _LT_DARWIN_LINKER_FEATURES($1) |
6358 ;; |
6888 ;; |
6359 |
6889 |
6360 dgux*) |
6890 dgux*) |
6373 _LT_TAGVAR(ld_shlibs, $1)=no |
6903 _LT_TAGVAR(ld_shlibs, $1)=no |
6374 ;; |
6904 ;; |
6375 esac |
6905 esac |
6376 ;; |
6906 ;; |
6377 |
6907 |
6378 freebsd[[12]]*) |
6908 freebsd2.*) |
6379 # C++ shared libraries reported to be fairly broken before |
6909 # C++ shared libraries reported to be fairly broken before |
6380 # switch to ELF |
6910 # switch to ELF |
6381 _LT_TAGVAR(ld_shlibs, $1)=no |
6911 _LT_TAGVAR(ld_shlibs, $1)=no |
6382 ;; |
6912 ;; |
6383 |
6913 |
6390 # conventions |
6920 # conventions |
6391 _LT_TAGVAR(ld_shlibs, $1)=yes |
6921 _LT_TAGVAR(ld_shlibs, $1)=yes |
6392 ;; |
6922 ;; |
6393 |
6923 |
6394 gnu*) |
6924 gnu*) |
6925 ;; |
|
6926 |
|
6927 haiku*) |
|
6928 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
6929 _LT_TAGVAR(link_all_deplibs, $1)=yes |
|
6395 ;; |
6930 ;; |
6396 |
6931 |
6397 hpux9*) |
6932 hpux9*) |
6398 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
6933 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
6399 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
6934 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
6416 # |
6951 # |
6417 # There doesn't appear to be a way to prevent this compiler from |
6952 # There doesn't appear to be a way to prevent this compiler from |
6418 # explicitly linking system object files so we need to strip them |
6953 # explicitly linking system object files so we need to strip them |
6419 # from the output so that they don't get included in the library |
6954 # from the output so that they don't get included in the library |
6420 # dependencies. |
6955 # dependencies. |
6421 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' |
6956 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"' |
6422 ;; |
6957 ;; |
6423 *) |
6958 *) |
6424 if test "$GXX" = yes; then |
6959 if test "$GXX" = yes; then |
6425 _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' |
6960 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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' |
6426 else |
6961 else |
6427 # FIXME: insert proper C++ library support |
6962 # FIXME: insert proper C++ library support |
6428 _LT_TAGVAR(ld_shlibs, $1)=no |
6963 _LT_TAGVAR(ld_shlibs, $1)=no |
6429 fi |
6964 fi |
6430 ;; |
6965 ;; |
6481 # |
7016 # |
6482 # There doesn't appear to be a way to prevent this compiler from |
7017 # There doesn't appear to be a way to prevent this compiler from |
6483 # explicitly linking system object files so we need to strip them |
7018 # explicitly linking system object files so we need to strip them |
6484 # from the output so that they don't get included in the library |
7019 # from the output so that they don't get included in the library |
6485 # dependencies. |
7020 # dependencies. |
6486 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' |
7021 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"' |
6487 ;; |
7022 ;; |
6488 *) |
7023 *) |
6489 if test "$GXX" = yes; then |
7024 if test "$GXX" = yes; then |
6490 if test $with_gnu_ld = no; then |
7025 if test $with_gnu_ld = no; then |
6491 case $host_cpu in |
7026 case $host_cpu in |
6492 hppa*64*) |
7027 hppa*64*) |
6493 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
7028 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
6494 ;; |
7029 ;; |
6495 ia64*) |
7030 ia64*) |
6496 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
7031 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
6497 ;; |
7032 ;; |
6498 *) |
7033 *) |
6499 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
7034 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
6500 ;; |
7035 ;; |
6501 esac |
7036 esac |
6502 fi |
7037 fi |
6503 else |
7038 else |
6504 # FIXME: insert proper C++ library support |
7039 # FIXME: insert proper C++ library support |
6524 ;; |
7059 ;; |
6525 irix5* | irix6*) |
7060 irix5* | irix6*) |
6526 case $cc_basename in |
7061 case $cc_basename in |
6527 CC*) |
7062 CC*) |
6528 # SGI C++ |
7063 # SGI C++ |
6529 _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' |
7064 _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' |
6530 |
7065 |
6531 # Archives containing C++ object files must be created using |
7066 # Archives containing C++ object files must be created using |
6532 # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
7067 # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
6533 # necessary to make sure instantiated templates are included |
7068 # necessary to make sure instantiated templates are included |
6534 # in the archive. |
7069 # in the archive. |
6535 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' |
7070 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' |
6536 ;; |
7071 ;; |
6537 *) |
7072 *) |
6538 if test "$GXX" = yes; then |
7073 if test "$GXX" = yes; then |
6539 if test "$with_gnu_ld" = no; then |
7074 if test "$with_gnu_ld" = no; then |
6540 _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' |
7075 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -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' |
6541 else |
7076 else |
6542 _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' |
7077 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -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' |
6543 fi |
7078 fi |
6544 fi |
7079 fi |
6545 _LT_TAGVAR(link_all_deplibs, $1)=yes |
7080 _LT_TAGVAR(link_all_deplibs, $1)=yes |
6546 ;; |
7081 ;; |
6547 esac |
7082 esac |
6548 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
7083 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
6549 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
7084 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
6550 _LT_TAGVAR(inherit_rpath, $1)=yes |
7085 _LT_TAGVAR(inherit_rpath, $1)=yes |
6551 ;; |
7086 ;; |
6552 |
7087 |
6553 linux* | k*bsd*-gnu) |
7088 linux* | k*bsd*-gnu | kopensolaris*-gnu) |
6554 case $cc_basename in |
7089 case $cc_basename in |
6555 KCC*) |
7090 KCC*) |
6556 # Kuck and Associates, Inc. (KAI) C++ Compiler |
7091 # Kuck and Associates, Inc. (KAI) C++ Compiler |
6557 |
7092 |
6558 # KCC will only create a shared library if the output file |
7093 # KCC will only create a shared library if the output file |
6566 # |
7101 # |
6567 # There doesn't appear to be a way to prevent this compiler from |
7102 # There doesn't appear to be a way to prevent this compiler from |
6568 # explicitly linking system object files so we need to strip them |
7103 # explicitly linking system object files so we need to strip them |
6569 # from the output so that they don't get included in the library |
7104 # from the output so that they don't get included in the library |
6570 # dependencies. |
7105 # dependencies. |
6571 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' |
7106 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"' |
6572 |
7107 |
6573 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
7108 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
6574 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
7109 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
6575 |
7110 |
6576 # Archives containing C++ object files must be created using |
7111 # Archives containing C++ object files must be created using |
6603 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
7138 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
6604 ;; |
7139 ;; |
6605 pgCC* | pgcpp*) |
7140 pgCC* | pgcpp*) |
6606 # Portland Group C++ compiler |
7141 # Portland Group C++ compiler |
6607 case `$CC -V` in |
7142 case `$CC -V` in |
6608 *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*) |
7143 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) |
6609 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ |
7144 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ |
6610 rm -rf $tpldir~ |
7145 rm -rf $tpldir~ |
6611 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ |
7146 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ |
6612 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' |
7147 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' |
6613 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ |
7148 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ |
6614 rm -rf $tpldir~ |
7149 rm -rf $tpldir~ |
6615 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ |
7150 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ |
6616 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ |
7151 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ |
6617 $RANLIB $oldlib' |
7152 $RANLIB $oldlib' |
6618 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ |
7153 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ |
6619 rm -rf $tpldir~ |
7154 rm -rf $tpldir~ |
6620 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
7155 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
6621 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
7156 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
6622 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ |
7157 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ |
6623 rm -rf $tpldir~ |
7158 rm -rf $tpldir~ |
6624 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
7159 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
6625 $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' |
7160 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' |
6626 ;; |
7161 ;; |
6627 *) # Version 6 will use weak symbols |
7162 *) # Version 6 and above use weak symbols |
6628 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
7163 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
6629 _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' |
7164 _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' |
6630 ;; |
7165 ;; |
6631 esac |
7166 esac |
6632 |
7167 |
6633 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' |
7168 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' |
6634 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
7169 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
6635 _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' |
7170 _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' |
6636 ;; |
7171 ;; |
6637 cxx*) |
7172 cxx*) |
6638 # Compaq C++ |
7173 # Compaq C++ |
6639 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7174 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
6640 _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' |
7175 _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' |
6649 # |
7184 # |
6650 # There doesn't appear to be a way to prevent this compiler from |
7185 # There doesn't appear to be a way to prevent this compiler from |
6651 # explicitly linking system object files so we need to strip them |
7186 # explicitly linking system object files so we need to strip them |
6652 # from the output so that they don't get included in the library |
7187 # from the output so that they don't get included in the library |
6653 # dependencies. |
7188 # dependencies. |
6654 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' |
7189 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' |
6655 ;; |
7190 ;; |
6656 xl*) |
7191 xl* | mpixl* | bgxl*) |
6657 # IBM XL 8.0 on PPC, with GNU ld |
7192 # IBM XL 8.0 on PPC, with GNU ld |
6658 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
7193 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
6659 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
7194 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
6660 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7195 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
6661 if test "x$supports_anon_versioning" = xyes; then |
7196 if test "x$supports_anon_versioning" = xyes; then |
6671 # Sun C++ 5.9 |
7206 # Sun C++ 5.9 |
6672 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' |
7207 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' |
6673 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
7208 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
6674 _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' |
7209 _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' |
6675 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
7210 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
6676 _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' |
7211 _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' |
6677 _LT_TAGVAR(compiler_needs_object, $1)=yes |
7212 _LT_TAGVAR(compiler_needs_object, $1)=yes |
6678 |
7213 |
6679 # Not sure whether something based on |
7214 # Not sure whether something based on |
6680 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
7215 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
6681 # would be better. |
7216 # would be better. |
6682 output_verbose_link_cmd='echo' |
7217 output_verbose_link_cmd='func_echo_all' |
6683 |
7218 |
6684 # Archives containing C++ object files must be created using |
7219 # Archives containing C++ object files must be created using |
6685 # "CC -xar", where "CC" is the Sun C++ compiler. This is |
7220 # "CC -xar", where "CC" is the Sun C++ compiler. This is |
6686 # necessary to make sure instantiated templates are included |
7221 # necessary to make sure instantiated templates are included |
6687 # in the archive. |
7222 # in the archive. |
6746 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
7281 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
6747 _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' |
7282 _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' |
6748 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
7283 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
6749 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
7284 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
6750 fi |
7285 fi |
6751 output_verbose_link_cmd=echo |
7286 output_verbose_link_cmd=func_echo_all |
6752 else |
7287 else |
6753 _LT_TAGVAR(ld_shlibs, $1)=no |
7288 _LT_TAGVAR(ld_shlibs, $1)=no |
6754 fi |
7289 fi |
6755 ;; |
7290 ;; |
6756 |
7291 |
6781 ;; |
7316 ;; |
6782 cxx*) |
7317 cxx*) |
6783 case $host in |
7318 case $host in |
6784 osf3*) |
7319 osf3*) |
6785 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
7320 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
6786 _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' |
7321 _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' |
6787 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
7322 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
6788 ;; |
7323 ;; |
6789 *) |
7324 *) |
6790 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
7325 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
6791 _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' |
7326 _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' |
6792 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
7327 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
6793 echo "-hidden">> $lib.exp~ |
7328 echo "-hidden">> $lib.exp~ |
6794 $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~ |
7329 $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~ |
6795 $RM $lib.exp' |
7330 $RM $lib.exp' |
6796 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
7331 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
6797 ;; |
7332 ;; |
6798 esac |
7333 esac |
6799 |
7334 |
6805 # |
7340 # |
6806 # There doesn't appear to be a way to prevent this compiler from |
7341 # There doesn't appear to be a way to prevent this compiler from |
6807 # explicitly linking system object files so we need to strip them |
7342 # explicitly linking system object files so we need to strip them |
6808 # from the output so that they don't get included in the library |
7343 # from the output so that they don't get included in the library |
6809 # dependencies. |
7344 # dependencies. |
6810 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' |
7345 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"' |
6811 ;; |
7346 ;; |
6812 *) |
7347 *) |
6813 if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
7348 if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
6814 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
7349 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
6815 case $host in |
7350 case $host in |
6816 osf3*) |
7351 osf3*) |
6817 _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' |
7352 _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' |
6818 ;; |
7353 ;; |
6819 *) |
7354 *) |
6820 _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' |
7355 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -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' |
6821 ;; |
7356 ;; |
6822 esac |
7357 esac |
6823 |
7358 |
6824 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
7359 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
6825 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
7360 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
6826 |
7361 |
6827 # Commands to make compiler produce verbose output that lists |
7362 # Commands to make compiler produce verbose output that lists |
6828 # what "hidden" libraries, object files and flags are used when |
7363 # what "hidden" libraries, object files and flags are used when |
6829 # linking a shared library. |
7364 # linking a shared library. |
6830 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
7365 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
6831 |
7366 |
6832 else |
7367 else |
6833 # FIXME: insert proper C++ library support |
7368 # FIXME: insert proper C++ library support |
6834 _LT_TAGVAR(ld_shlibs, $1)=no |
7369 _LT_TAGVAR(ld_shlibs, $1)=no |
6835 fi |
7370 fi |
6861 esac |
7396 esac |
6862 ;; |
7397 ;; |
6863 |
7398 |
6864 solaris*) |
7399 solaris*) |
6865 case $cc_basename in |
7400 case $cc_basename in |
6866 CC*) |
7401 CC* | sunCC*) |
6867 # Sun C++ 4.2, 5.x and Centerline C++ |
7402 # Sun C++ 4.2, 5.x and Centerline C++ |
6868 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes |
7403 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes |
6869 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' |
7404 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' |
6870 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
7405 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
6871 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
7406 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
6882 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' |
7417 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' |
6883 ;; |
7418 ;; |
6884 esac |
7419 esac |
6885 _LT_TAGVAR(link_all_deplibs, $1)=yes |
7420 _LT_TAGVAR(link_all_deplibs, $1)=yes |
6886 |
7421 |
6887 output_verbose_link_cmd='echo' |
7422 output_verbose_link_cmd='func_echo_all' |
6888 |
7423 |
6889 # Archives containing C++ object files must be created using |
7424 # Archives containing C++ object files must be created using |
6890 # "CC -xar", where "CC" is the Sun C++ compiler. This is |
7425 # "CC -xar", where "CC" is the Sun C++ compiler. This is |
6891 # necessary to make sure instantiated templates are included |
7426 # necessary to make sure instantiated templates are included |
6892 # in the archive. |
7427 # in the archive. |
6902 *) |
7437 *) |
6903 # GNU C++ compiler with Solaris linker |
7438 # GNU C++ compiler with Solaris linker |
6904 if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
7439 if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
6905 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' |
7440 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' |
6906 if $CC --version | $GREP -v '^2\.7' > /dev/null; then |
7441 if $CC --version | $GREP -v '^2\.7' > /dev/null; then |
6907 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
7442 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
6908 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
7443 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
6909 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
7444 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
6910 |
7445 |
6911 # Commands to make compiler produce verbose output that lists |
7446 # Commands to make compiler produce verbose output that lists |
6912 # what "hidden" libraries, object files and flags are used when |
7447 # what "hidden" libraries, object files and flags are used when |
6913 # linking a shared library. |
7448 # linking a shared library. |
6914 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
7449 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
6915 else |
7450 else |
6916 # g++ 2.7 appears to require `-G' NOT `-shared' on this |
7451 # g++ 2.7 appears to require `-G' NOT `-shared' on this |
6917 # platform. |
7452 # platform. |
6918 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
7453 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
6919 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
7454 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
6920 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
7455 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
6921 |
7456 |
6922 # Commands to make compiler produce verbose output that lists |
7457 # Commands to make compiler produce verbose output that lists |
6923 # what "hidden" libraries, object files and flags are used when |
7458 # what "hidden" libraries, object files and flags are used when |
6924 # linking a shared library. |
7459 # linking a shared library. |
6925 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
7460 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
6926 fi |
7461 fi |
6927 |
7462 |
6928 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' |
7463 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' |
6929 case $host_os in |
7464 case $host_os in |
6930 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; |
7465 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; |
6974 |
7509 |
6975 case $cc_basename in |
7510 case $cc_basename in |
6976 CC*) |
7511 CC*) |
6977 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
7512 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
6978 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
7513 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
7514 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ |
|
7515 '"$_LT_TAGVAR(old_archive_cmds, $1)" |
|
7516 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ |
|
7517 '"$_LT_TAGVAR(reload_cmds, $1)" |
|
6979 ;; |
7518 ;; |
6980 *) |
7519 *) |
6981 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
7520 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
6982 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
7521 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
6983 ;; |
7522 ;; |
7029 |
7568 |
7030 _LT_CONFIG($1) |
7569 _LT_CONFIG($1) |
7031 fi # test -n "$compiler" |
7570 fi # test -n "$compiler" |
7032 |
7571 |
7033 CC=$lt_save_CC |
7572 CC=$lt_save_CC |
7573 CFLAGS=$lt_save_CFLAGS |
|
7034 LDCXX=$LD |
7574 LDCXX=$LD |
7035 LD=$lt_save_LD |
7575 LD=$lt_save_LD |
7036 GCC=$lt_save_GCC |
7576 GCC=$lt_save_GCC |
7037 with_gnu_ld=$lt_save_with_gnu_ld |
7577 with_gnu_ld=$lt_save_with_gnu_ld |
7038 lt_cv_path_LDCXX=$lt_cv_path_LD |
7578 lt_cv_path_LDCXX=$lt_cv_path_LD |
7043 |
7583 |
7044 AC_LANG_POP |
7584 AC_LANG_POP |
7045 ])# _LT_LANG_CXX_CONFIG |
7585 ])# _LT_LANG_CXX_CONFIG |
7046 |
7586 |
7047 |
7587 |
7588 # _LT_FUNC_STRIPNAME_CNF |
|
7589 # ---------------------- |
|
7590 # func_stripname_cnf prefix suffix name |
|
7591 # strip PREFIX and SUFFIX off of NAME. |
|
7592 # PREFIX and SUFFIX must not contain globbing or regex special |
|
7593 # characters, hashes, percent signs, but SUFFIX may contain a leading |
|
7594 # dot (in which case that matches only a dot). |
|
7595 # |
|
7596 # This function is identical to the (non-XSI) version of func_stripname, |
|
7597 # except this one can be used by m4 code that may be executed by configure, |
|
7598 # rather than the libtool script. |
|
7599 m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl |
|
7600 AC_REQUIRE([_LT_DECL_SED]) |
|
7601 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) |
|
7602 func_stripname_cnf () |
|
7603 { |
|
7604 case ${2} in |
|
7605 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; |
|
7606 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; |
|
7607 esac |
|
7608 } # func_stripname_cnf |
|
7609 ])# _LT_FUNC_STRIPNAME_CNF |
|
7610 |
|
7048 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) |
7611 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) |
7049 # --------------------------------- |
7612 # --------------------------------- |
7050 # Figure out "hidden" library dependencies from verbose |
7613 # Figure out "hidden" library dependencies from verbose |
7051 # compiler output when linking a shared library. |
7614 # compiler output when linking a shared library. |
7052 # Parse the compiler output and extract the necessary |
7615 # Parse the compiler output and extract the necessary |
7053 # objects, libraries and library flags. |
7616 # objects, libraries and library flags. |
7054 m4_defun([_LT_SYS_HIDDEN_LIBDEPS], |
7617 m4_defun([_LT_SYS_HIDDEN_LIBDEPS], |
7055 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
7618 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
7619 AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl |
|
7056 # Dependencies to place before and after the object being linked: |
7620 # Dependencies to place before and after the object being linked: |
7057 _LT_TAGVAR(predep_objects, $1)= |
7621 _LT_TAGVAR(predep_objects, $1)= |
7058 _LT_TAGVAR(postdep_objects, $1)= |
7622 _LT_TAGVAR(postdep_objects, $1)= |
7059 _LT_TAGVAR(predeps, $1)= |
7623 _LT_TAGVAR(predeps, $1)= |
7060 _LT_TAGVAR(postdeps, $1)= |
7624 _LT_TAGVAR(postdeps, $1)= |
7100 public void bar (void) { |
7664 public void bar (void) { |
7101 a = 0; |
7665 a = 0; |
7102 } |
7666 } |
7103 }; |
7667 }; |
7104 _LT_EOF |
7668 _LT_EOF |
7669 ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF |
|
7670 package foo |
|
7671 func foo() { |
|
7672 } |
|
7673 _LT_EOF |
|
7105 ]) |
7674 ]) |
7675 |
|
7676 _lt_libdeps_save_CFLAGS=$CFLAGS |
|
7677 case "$CC $CFLAGS " in #( |
|
7678 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; |
|
7679 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; |
|
7680 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; |
|
7681 esac |
|
7682 |
|
7106 dnl Parse the compiler output and extract the necessary |
7683 dnl Parse the compiler output and extract the necessary |
7107 dnl objects, libraries and library flags. |
7684 dnl objects, libraries and library flags. |
7108 if AC_TRY_EVAL(ac_compile); then |
7685 if AC_TRY_EVAL(ac_compile); then |
7109 # Parse the compiler output and extract the necessary |
7686 # Parse the compiler output and extract the necessary |
7110 # objects, libraries and library flags. |
7687 # objects, libraries and library flags. |
7112 # Sentinel used to keep track of whether or not we are before |
7689 # Sentinel used to keep track of whether or not we are before |
7113 # the conftest object file. |
7690 # the conftest object file. |
7114 pre_test_object_deps_done=no |
7691 pre_test_object_deps_done=no |
7115 |
7692 |
7116 for p in `eval "$output_verbose_link_cmd"`; do |
7693 for p in `eval "$output_verbose_link_cmd"`; do |
7117 case $p in |
7694 case ${prev}${p} in |
7118 |
7695 |
7119 -L* | -R* | -l*) |
7696 -L* | -R* | -l*) |
7120 # Some compilers place space between "-{L,R}" and the path. |
7697 # Some compilers place space between "-{L,R}" and the path. |
7121 # Remove the space. |
7698 # Remove the space. |
7122 if test $p = "-L" || |
7699 if test $p = "-L" || |
7123 test $p = "-R"; then |
7700 test $p = "-R"; then |
7124 prev=$p |
7701 prev=$p |
7125 continue |
7702 continue |
7126 else |
|
7127 prev= |
|
7128 fi |
7703 fi |
7129 |
7704 |
7705 # Expand the sysroot to ease extracting the directories later. |
|
7706 if test -z "$prev"; then |
|
7707 case $p in |
|
7708 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; |
|
7709 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; |
|
7710 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; |
|
7711 esac |
|
7712 fi |
|
7713 case $p in |
|
7714 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; |
|
7715 esac |
|
7130 if test "$pre_test_object_deps_done" = no; then |
7716 if test "$pre_test_object_deps_done" = no; then |
7131 case $p in |
7717 case ${prev} in |
7132 -L* | -R*) |
7718 -L | -R) |
7133 # Internal compiler library paths should come after those |
7719 # Internal compiler library paths should come after those |
7134 # provided the user. The postdeps already come after the |
7720 # provided the user. The postdeps already come after the |
7135 # user supplied libs so there is no need to process them. |
7721 # user supplied libs so there is no need to process them. |
7136 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then |
7722 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then |
7137 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" |
7723 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" |
7147 _LT_TAGVAR(postdeps, $1)="${prev}${p}" |
7733 _LT_TAGVAR(postdeps, $1)="${prev}${p}" |
7148 else |
7734 else |
7149 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" |
7735 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" |
7150 fi |
7736 fi |
7151 fi |
7737 fi |
7738 prev= |
|
7152 ;; |
7739 ;; |
7153 |
7740 |
7741 *.lto.$objext) ;; # Ignore GCC LTO objects |
|
7154 *.$objext) |
7742 *.$objext) |
7155 # This assumes that the test object file only shows up |
7743 # This assumes that the test object file only shows up |
7156 # once in the compiler output. |
7744 # once in the compiler output. |
7157 if test "$p" = "conftest.$objext"; then |
7745 if test "$p" = "conftest.$objext"; then |
7158 pre_test_object_deps_done=yes |
7746 pre_test_object_deps_done=yes |
7184 else |
7772 else |
7185 echo "libtool.m4: error: problem compiling $1 test program" |
7773 echo "libtool.m4: error: problem compiling $1 test program" |
7186 fi |
7774 fi |
7187 |
7775 |
7188 $RM -f confest.$objext |
7776 $RM -f confest.$objext |
7777 CFLAGS=$_lt_libdeps_save_CFLAGS |
|
7189 |
7778 |
7190 # PORTME: override above test on systems where it is broken |
7779 # PORTME: override above test on systems where it is broken |
7191 m4_if([$1], [CXX], |
7780 m4_if([$1], [CXX], |
7192 [case $host_os in |
7781 [case $host_os in |
7193 interix[[3-9]]*) |
7782 interix[[3-9]]*) |
7220 esac |
7809 esac |
7221 ;; |
7810 ;; |
7222 |
7811 |
7223 solaris*) |
7812 solaris*) |
7224 case $cc_basename in |
7813 case $cc_basename in |
7225 CC*) |
7814 CC* | sunCC*) |
7226 # The more standards-conforming stlport4 library is |
7815 # The more standards-conforming stlport4 library is |
7227 # incompatible with the Cstd library. Avoid specifying |
7816 # incompatible with the Cstd library. Avoid specifying |
7228 # it if it's in CXXFLAGS. Ignore libCrun as |
7817 # it if it's in CXXFLAGS. Ignore libCrun as |
7229 # -library=stlport4 depends on it. |
7818 # -library=stlport4 depends on it. |
7230 case " $CXX $CXXFLAGS " in |
7819 case " $CXX $CXXFLAGS " in |
7264 [The library search path used internally by the compiler when linking |
7853 [The library search path used internally by the compiler when linking |
7265 a shared library]) |
7854 a shared library]) |
7266 ])# _LT_SYS_HIDDEN_LIBDEPS |
7855 ])# _LT_SYS_HIDDEN_LIBDEPS |
7267 |
7856 |
7268 |
7857 |
7269 # _LT_PROG_F77 |
|
7270 # ------------ |
|
7271 # Since AC_PROG_F77 is broken, in that it returns the empty string |
|
7272 # if there is no fortran compiler, we have our own version here. |
|
7273 m4_defun([_LT_PROG_F77], |
|
7274 [ |
|
7275 pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes]) |
|
7276 AC_PROG_F77 |
|
7277 if test -z "$F77" || test "X$F77" = "Xno"; then |
|
7278 _lt_disable_F77=yes |
|
7279 fi |
|
7280 popdef([AC_MSG_ERROR]) |
|
7281 ])# _LT_PROG_F77 |
|
7282 |
|
7283 dnl aclocal-1.4 backwards compatibility: |
|
7284 dnl AC_DEFUN([_LT_PROG_F77], []) |
|
7285 |
|
7286 |
|
7287 # _LT_LANG_F77_CONFIG([TAG]) |
7858 # _LT_LANG_F77_CONFIG([TAG]) |
7288 # -------------------------- |
7859 # -------------------------- |
7289 # Ensure that the configuration variables for a Fortran 77 compiler are |
7860 # Ensure that the configuration variables for a Fortran 77 compiler are |
7290 # suitably defined. These variables are subsequently used by _LT_CONFIG |
7861 # suitably defined. These variables are subsequently used by _LT_CONFIG |
7291 # to write the compiler configuration to `libtool'. |
7862 # to write the compiler configuration to `libtool'. |
7292 m4_defun([_LT_LANG_F77_CONFIG], |
7863 m4_defun([_LT_LANG_F77_CONFIG], |
7293 [AC_REQUIRE([_LT_PROG_F77])dnl |
7864 [AC_LANG_PUSH(Fortran 77) |
7294 AC_LANG_PUSH(Fortran 77) |
7865 if test -z "$F77" || test "X$F77" = "Xno"; then |
7866 _lt_disable_F77=yes |
|
7867 fi |
|
7295 |
7868 |
7296 _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
7869 _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
7297 _LT_TAGVAR(allow_undefined_flag, $1)= |
7870 _LT_TAGVAR(allow_undefined_flag, $1)= |
7298 _LT_TAGVAR(always_export_symbols, $1)=no |
7871 _LT_TAGVAR(always_export_symbols, $1)=no |
7299 _LT_TAGVAR(archive_expsym_cmds, $1)= |
7872 _LT_TAGVAR(archive_expsym_cmds, $1)= |
7300 _LT_TAGVAR(export_dynamic_flag_spec, $1)= |
7873 _LT_TAGVAR(export_dynamic_flag_spec, $1)= |
7301 _LT_TAGVAR(hardcode_direct, $1)=no |
7874 _LT_TAGVAR(hardcode_direct, $1)=no |
7302 _LT_TAGVAR(hardcode_direct_absolute, $1)=no |
7875 _LT_TAGVAR(hardcode_direct_absolute, $1)=no |
7303 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
7876 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
7304 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
|
7305 _LT_TAGVAR(hardcode_libdir_separator, $1)= |
7877 _LT_TAGVAR(hardcode_libdir_separator, $1)= |
7306 _LT_TAGVAR(hardcode_minus_L, $1)=no |
7878 _LT_TAGVAR(hardcode_minus_L, $1)=no |
7307 _LT_TAGVAR(hardcode_automatic, $1)=no |
7879 _LT_TAGVAR(hardcode_automatic, $1)=no |
7308 _LT_TAGVAR(inherit_rpath, $1)=no |
7880 _LT_TAGVAR(inherit_rpath, $1)=no |
7309 _LT_TAGVAR(module_cmds, $1)= |
7881 _LT_TAGVAR(module_cmds, $1)= |
7310 _LT_TAGVAR(module_expsym_cmds, $1)= |
7882 _LT_TAGVAR(module_expsym_cmds, $1)= |
7311 _LT_TAGVAR(link_all_deplibs, $1)=unknown |
7883 _LT_TAGVAR(link_all_deplibs, $1)=unknown |
7312 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
7884 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
7885 _LT_TAGVAR(reload_flag, $1)=$reload_flag |
|
7886 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds |
|
7313 _LT_TAGVAR(no_undefined_flag, $1)= |
7887 _LT_TAGVAR(no_undefined_flag, $1)= |
7314 _LT_TAGVAR(whole_archive_flag_spec, $1)= |
7888 _LT_TAGVAR(whole_archive_flag_spec, $1)= |
7315 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
7889 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
7316 |
7890 |
7317 # Source file extension for f77 test sources. |
7891 # Source file extension for f77 test sources. |
7347 _LT_LINKER_BOILERPLATE |
7921 _LT_LINKER_BOILERPLATE |
7348 |
7922 |
7349 # Allow CC to be a program name with arguments. |
7923 # Allow CC to be a program name with arguments. |
7350 lt_save_CC="$CC" |
7924 lt_save_CC="$CC" |
7351 lt_save_GCC=$GCC |
7925 lt_save_GCC=$GCC |
7926 lt_save_CFLAGS=$CFLAGS |
|
7352 CC=${F77-"f77"} |
7927 CC=${F77-"f77"} |
7928 CFLAGS=$FFLAGS |
|
7353 compiler=$CC |
7929 compiler=$CC |
7354 _LT_TAGVAR(compiler, $1)=$CC |
7930 _LT_TAGVAR(compiler, $1)=$CC |
7355 _LT_CC_BASENAME([$compiler]) |
7931 _LT_CC_BASENAME([$compiler]) |
7356 GCC=$G77 |
7932 GCC=$G77 |
7357 if test -n "$compiler"; then |
7933 if test -n "$compiler"; then |
7401 _LT_CONFIG($1) |
7977 _LT_CONFIG($1) |
7402 fi # test -n "$compiler" |
7978 fi # test -n "$compiler" |
7403 |
7979 |
7404 GCC=$lt_save_GCC |
7980 GCC=$lt_save_GCC |
7405 CC="$lt_save_CC" |
7981 CC="$lt_save_CC" |
7982 CFLAGS="$lt_save_CFLAGS" |
|
7406 fi # test "$_lt_disable_F77" != yes |
7983 fi # test "$_lt_disable_F77" != yes |
7407 |
7984 |
7408 AC_LANG_POP |
7985 AC_LANG_POP |
7409 ])# _LT_LANG_F77_CONFIG |
7986 ])# _LT_LANG_F77_CONFIG |
7410 |
|
7411 |
|
7412 # _LT_PROG_FC |
|
7413 # ----------- |
|
7414 # Since AC_PROG_FC is broken, in that it returns the empty string |
|
7415 # if there is no fortran compiler, we have our own version here. |
|
7416 m4_defun([_LT_PROG_FC], |
|
7417 [ |
|
7418 pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes]) |
|
7419 AC_PROG_FC |
|
7420 if test -z "$FC" || test "X$FC" = "Xno"; then |
|
7421 _lt_disable_FC=yes |
|
7422 fi |
|
7423 popdef([AC_MSG_ERROR]) |
|
7424 ])# _LT_PROG_FC |
|
7425 |
|
7426 dnl aclocal-1.4 backwards compatibility: |
|
7427 dnl AC_DEFUN([_LT_PROG_FC], []) |
|
7428 |
7987 |
7429 |
7988 |
7430 # _LT_LANG_FC_CONFIG([TAG]) |
7989 # _LT_LANG_FC_CONFIG([TAG]) |
7431 # ------------------------- |
7990 # ------------------------- |
7432 # Ensure that the configuration variables for a Fortran compiler are |
7991 # Ensure that the configuration variables for a Fortran compiler are |
7433 # suitably defined. These variables are subsequently used by _LT_CONFIG |
7992 # suitably defined. These variables are subsequently used by _LT_CONFIG |
7434 # to write the compiler configuration to `libtool'. |
7993 # to write the compiler configuration to `libtool'. |
7435 m4_defun([_LT_LANG_FC_CONFIG], |
7994 m4_defun([_LT_LANG_FC_CONFIG], |
7436 [AC_REQUIRE([_LT_PROG_FC])dnl |
7995 [AC_LANG_PUSH(Fortran) |
7437 AC_LANG_PUSH(Fortran) |
7996 |
7997 if test -z "$FC" || test "X$FC" = "Xno"; then |
|
7998 _lt_disable_FC=yes |
|
7999 fi |
|
7438 |
8000 |
7439 _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
8001 _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
7440 _LT_TAGVAR(allow_undefined_flag, $1)= |
8002 _LT_TAGVAR(allow_undefined_flag, $1)= |
7441 _LT_TAGVAR(always_export_symbols, $1)=no |
8003 _LT_TAGVAR(always_export_symbols, $1)=no |
7442 _LT_TAGVAR(archive_expsym_cmds, $1)= |
8004 _LT_TAGVAR(archive_expsym_cmds, $1)= |