annotate GEMBASSY-1.0.3/m4/libtool.m4 @ 1:84a17b3fad1f draft

Uploaded
author ktnyt
date Fri, 26 Jun 2015 05:20:29 -0400
parents 8300eb051bea
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3 # Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4 # Written by Gordon Matzigkeit, 1996
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6 # This file is free software; the Free Software Foundation gives
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7 # unlimited permission to copy and/or distribute it, with or without
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8 # modifications, as long as this notice is preserved.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
9
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
10 m4_define([_LT_COPYING], [dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
11 # Copyright (C) 2014 Free Software Foundation, Inc.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
12 # This is free software; see the source for copying conditions. There is NO
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
13 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
14
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
15 # GNU Libtool is free software; you can redistribute it and/or modify
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
16 # it under the terms of the GNU General Public License as published by
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
17 # the Free Software Foundation; either version 2 of of the License, or
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
18 # (at your option) any later version.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
19 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
20 # As a special exception to the GNU General Public License, if you
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
21 # distribute this file as part of a program or library that is built
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
22 # using GNU Libtool, you may include this file under the same
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
23 # distribution terms that you use for the rest of that program.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
24 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
25 # GNU Libtool is distributed in the hope that it will be useful, but
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
26 # WITHOUT ANY WARRANTY; without even the implied warranty of
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
27 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
28 # GNU General Public License for more details.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
29 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
30 # You should have received a copy of the GNU General Public License
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
31 # along with this program. If not, see <http://www.gnu.org/licenses/>.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
32 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
33
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
34 # serial 58 LT_INIT
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
35
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
36
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
37 # LT_PREREQ(VERSION)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
38 # ------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
39 # Complain and exit if this libtool version is less that VERSION.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
40 m4_defun([LT_PREREQ],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
41 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
42 [m4_default([$3],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
43 [m4_fatal([Libtool version $1 or higher is required],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
44 63)])],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
45 [$2])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
46
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
47
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
48 # _LT_CHECK_BUILDDIR
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
49 # ------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
50 # Complain if the absolute build directory name contains unusual characters
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
51 m4_defun([_LT_CHECK_BUILDDIR],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
52 [case `pwd` in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
53 *\ * | *\ *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
54 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
55 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
56 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
57
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
58
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
59 # LT_INIT([OPTIONS])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
60 # ------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
61 AC_DEFUN([LT_INIT],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
62 [AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
63 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
64 AC_BEFORE([$0], [LT_LANG])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
65 AC_BEFORE([$0], [LT_OUTPUT])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
66 AC_BEFORE([$0], [LTDL_INIT])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
67 m4_require([_LT_CHECK_BUILDDIR])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
68
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
69 dnl Autoconf doesn't catch unexpanded LT_ macros by default:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
70 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
71 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
72 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
73 dnl unless we require an AC_DEFUNed macro:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
74 AC_REQUIRE([LTOPTIONS_VERSION])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
75 AC_REQUIRE([LTSUGAR_VERSION])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
76 AC_REQUIRE([LTVERSION_VERSION])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
77 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
78 m4_require([_LT_PROG_LTMAIN])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
79
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
80 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
81
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
82 dnl Parse OPTIONS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
83 _LT_SET_OPTIONS([$0], [$1])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
84
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
85 # This can be used to rebuild libtool when needed
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
86 LIBTOOL_DEPS=$ltmain
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
87
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
88 # Always use our own libtool.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
89 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
90 AC_SUBST(LIBTOOL)dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
91
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
92 _LT_SETUP
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
93
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
94 # Only expand once:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
95 m4_define([LT_INIT])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
96 ])# LT_INIT
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
97
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
98 # Old names:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
99 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
100 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
101 dnl aclocal-1.4 backwards compatibility:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
102 dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
103 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
104
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
105
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
106 # _LT_PREPARE_CC_BASENAME
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
107 # -----------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
108 m4_defun([_LT_PREPARE_CC_BASENAME], [
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
109 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
110 func_cc_basename ()
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
111 {
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
112 for cc_temp in @S|@*""; do
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
113 case $cc_temp in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
114 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
115 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
116 \-*) ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
117 *) break;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
118 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
119 done
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
120 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
121 }
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
122 ])# _LT_PREPARE_CC_BASENAME
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
123
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
124
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
125 # _LT_CC_BASENAME(CC)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
126 # -------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
127 # It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
128 # but that macro is also expanded into generated libtool script, which
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
129 # arranges for $SED and $ECHO to be set by different means.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
130 m4_defun([_LT_CC_BASENAME],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
131 [m4_require([_LT_PREPARE_CC_BASENAME])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
132 AC_REQUIRE([_LT_DECL_SED])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
133 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
134 func_cc_basename $1
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
135 cc_basename=$func_cc_basename_result
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
136 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
137
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
138
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
139 # _LT_FILEUTILS_DEFAULTS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
140 # ----------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
141 # It is okay to use these file commands and assume they have been set
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
142 # sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
143 m4_defun([_LT_FILEUTILS_DEFAULTS],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
144 [: ${CP="cp -f"}
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
145 : ${MV="mv -f"}
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
146 : ${RM="rm -f"}
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
147 ])# _LT_FILEUTILS_DEFAULTS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
148
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
149
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
150 # _LT_SETUP
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
151 # ---------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
152 m4_defun([_LT_SETUP],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
153 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
154 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
155 AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
156 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
157
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
158 _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
159 dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
160 _LT_DECL([], [host_alias], [0], [The host system])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
161 _LT_DECL([], [host], [0])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
162 _LT_DECL([], [host_os], [0])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
163 dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
164 _LT_DECL([], [build_alias], [0], [The build system])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
165 _LT_DECL([], [build], [0])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
166 _LT_DECL([], [build_os], [0])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
167 dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
168 AC_REQUIRE([AC_PROG_CC])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
169 AC_REQUIRE([LT_PATH_LD])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
170 AC_REQUIRE([LT_PATH_NM])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
171 dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
172 AC_REQUIRE([AC_PROG_LN_S])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
173 test -z "$LN_S" && LN_S="ln -s"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
174 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
175 dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
176 AC_REQUIRE([LT_CMD_MAX_LEN])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
177 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
178 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
179 dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
180 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
181 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
182 m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
183 m4_require([_LT_CMD_RELOAD])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
184 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
185 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
186 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
187 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
188 m4_require([_LT_WITH_SYSROOT])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
189 m4_require([_LT_CMD_TRUNCATE])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
190
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
191 _LT_CONFIG_LIBTOOL_INIT([
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
192 # See if we are running on zsh, and set the options that allow our
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
193 # commands through without removal of \ escapes INIT.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
194 if test -n "\${ZSH_VERSION+set}"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
195 setopt NO_GLOB_SUBST
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
196 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
197 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
198 if test -n "${ZSH_VERSION+set}"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
199 setopt NO_GLOB_SUBST
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
200 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
201
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
202 _LT_CHECK_OBJDIR
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
203
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
204 m4_require([_LT_TAG_COMPILER])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
205
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
206 case $host_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
207 aix3*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
208 # AIX sometimes has problems with the GCC collect2 program. For some
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
209 # reason, if we set the COLLECT_NAMES environment variable, the problems
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
210 # vanish in a puff of smoke.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
211 if test set != "${COLLECT_NAMES+set}"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
212 COLLECT_NAMES=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
213 export COLLECT_NAMES
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
214 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
215 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
216 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
217
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
218 # Global variables:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
219 ofile=libtool
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
220 can_build_shared=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
221
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
222 # All known linkers require a '.a' archive for static linking (except MSVC,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
223 # which needs '.lib').
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
224 libext=a
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
225
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
226 with_gnu_ld=$lt_cv_prog_gnu_ld
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
227
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
228 old_CC=$CC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
229 old_CFLAGS=$CFLAGS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
230
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
231 # Set sane defaults for various variables
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
232 test -z "$CC" && CC=cc
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
233 test -z "$LTCC" && LTCC=$CC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
234 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
235 test -z "$LD" && LD=ld
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
236 test -z "$ac_objext" && ac_objext=o
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
237
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
238 _LT_CC_BASENAME([$compiler])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
239
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
240 # Only perform the check for file, if the check method requires it
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
241 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
242 case $deplibs_check_method in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
243 file_magic*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
244 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
245 _LT_PATH_MAGIC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
246 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
247 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
248 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
249
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
250 # Use C for the default configuration in the libtool script
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
251 LT_SUPPORTED_TAG([CC])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
252 _LT_LANG_C_CONFIG
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
253 _LT_LANG_DEFAULT_CONFIG
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
254 _LT_CONFIG_COMMANDS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
255 ])# _LT_SETUP
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
256
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
257
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
258 # _LT_PREPARE_SED_QUOTE_VARS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
259 # --------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
260 # Define a few sed substitution that help us do robust quoting.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
261 m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
262 [# Backslashify metacharacters that are still active within
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
263 # double-quoted strings.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
264 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
265
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
266 # Same as above, but do not quote variable references.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
267 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
268
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
269 # Sed substitution to delay expansion of an escaped shell variable in a
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
270 # double_quote_subst'ed string.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
271 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
272
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
273 # Sed substitution to delay expansion of an escaped single quote.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
274 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
275
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
276 # Sed substitution to avoid accidental globbing in evaled expressions
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
277 no_glob_subst='s/\*/\\\*/g'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
278 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
279
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
280 # _LT_PROG_LTMAIN
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
281 # ---------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
282 # Note that this code is called both from 'configure', and 'config.status'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
283 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
284 # 'config.status' has no value for ac_aux_dir unless we are using Automake,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
285 # so we pass a copy along to make sure it has a sensible value anyway.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
286 m4_defun([_LT_PROG_LTMAIN],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
287 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
288 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
289 ltmain=$ac_aux_dir/ltmain.sh
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
290 ])# _LT_PROG_LTMAIN
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
291
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
292
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
293 ## ------------------------------------- ##
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
294 ## Accumulate code for creating libtool. ##
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
295 ## ------------------------------------- ##
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
296
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
297 # So that we can recreate a full libtool script including additional
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
298 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
299 # in macros and then make a single call at the end using the 'libtool'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
300 # label.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
301
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
302
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
303 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
304 # ----------------------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
305 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
306 m4_define([_LT_CONFIG_LIBTOOL_INIT],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
307 [m4_ifval([$1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
308 [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
309 [$1
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
310 ])])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
311
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
312 # Initialize.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
313 m4_define([_LT_OUTPUT_LIBTOOL_INIT])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
314
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
315
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
316 # _LT_CONFIG_LIBTOOL([COMMANDS])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
317 # ------------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
318 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
319 m4_define([_LT_CONFIG_LIBTOOL],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
320 [m4_ifval([$1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
321 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
322 [$1
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
323 ])])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
324
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
325 # Initialize.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
326 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
327
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
328
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
329 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
330 # -----------------------------------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
331 m4_defun([_LT_CONFIG_SAVE_COMMANDS],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
332 [_LT_CONFIG_LIBTOOL([$1])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
333 _LT_CONFIG_LIBTOOL_INIT([$2])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
334 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
335
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
336
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
337 # _LT_FORMAT_COMMENT([COMMENT])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
338 # -----------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
339 # Add leading comment marks to the start of each line, and a trailing
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
340 # full-stop to the whole comment if one is not present already.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
341 m4_define([_LT_FORMAT_COMMENT],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
342 [m4_ifval([$1], [
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
343 m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
344 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
345 )])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
346
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
347
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
348
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
349 ## ------------------------ ##
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
350 ## FIXME: Eliminate VARNAME ##
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
351 ## ------------------------ ##
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
352
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
353
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
354 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
355 # -------------------------------------------------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
356 # CONFIGNAME is the name given to the value in the libtool script.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
357 # VARNAME is the (base) name used in the configure script.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
358 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
359 # VARNAME. Any other value will be used directly.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
360 m4_define([_LT_DECL],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
361 [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
362 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
363 [m4_ifval([$1], [$1], [$2])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
364 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
365 m4_ifval([$4],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
366 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
367 lt_dict_add_subkey([lt_decl_dict], [$2],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
368 [tagged?], [m4_ifval([$5], [yes], [no])])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
369 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
370
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
371
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
372 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
373 # --------------------------------------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
374 m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
375
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
376
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
377 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
378 # ------------------------------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
379 m4_define([lt_decl_tag_varnames],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
380 [_lt_decl_filter([tagged?], [yes], $@)])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
381
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
382
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
383 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
384 # ---------------------------------------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
385 m4_define([_lt_decl_filter],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
386 [m4_case([$#],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
387 [0], [m4_fatal([$0: too few arguments: $#])],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
388 [1], [m4_fatal([$0: too few arguments: $#: $1])],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
389 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
390 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
391 [lt_dict_filter([lt_decl_dict], $@)])[]dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
392 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
393
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
394
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
395 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
396 # --------------------------------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
397 m4_define([lt_decl_quote_varnames],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
398 [_lt_decl_filter([value], [1], $@)])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
399
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
400
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
401 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
402 # ---------------------------------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
403 m4_define([lt_decl_dquote_varnames],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
404 [_lt_decl_filter([value], [2], $@)])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
405
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
406
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
407 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
408 # ---------------------------------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
409 m4_define([lt_decl_varnames_tagged],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
410 [m4_assert([$# <= 2])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
411 _$0(m4_quote(m4_default([$1], [[, ]])),
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
412 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
413 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
414 m4_define([_lt_decl_varnames_tagged],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
415 [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
416
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
417
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
418 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
419 # ------------------------------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
420 m4_define([lt_decl_all_varnames],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
421 [_$0(m4_quote(m4_default([$1], [[, ]])),
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
422 m4_if([$2], [],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
423 m4_quote(lt_decl_varnames),
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
424 m4_quote(m4_shift($@))))[]dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
425 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
426 m4_define([_lt_decl_all_varnames],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
427 [lt_join($@, lt_decl_varnames_tagged([$1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
428 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
429 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
430
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
431
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
432 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
433 # ------------------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
434 # Quote a variable value, and forward it to 'config.status' so that its
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
435 # declaration there will have the same value as in 'configure'. VARNAME
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
436 # must have a single quote delimited value for this to work.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
437 m4_define([_LT_CONFIG_STATUS_DECLARE],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
438 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
439
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
440
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
441 # _LT_CONFIG_STATUS_DECLARATIONS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
442 # ------------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
443 # We delimit libtool config variables with single quotes, so when
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
444 # we write them to config.status, we have to be sure to quote all
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
445 # embedded single quotes properly. In configure, this macro expands
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
446 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
447 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
448 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
449 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
450 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
451 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
452
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
453
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
454 # _LT_LIBTOOL_TAGS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
455 # ----------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
456 # Output comment and list of tags supported by the script
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
457 m4_defun([_LT_LIBTOOL_TAGS],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
458 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
459 available_tags='_LT_TAGS'dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
460 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
461
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
462
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
463 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
464 # -----------------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
465 # Extract the dictionary values for VARNAME (optionally with TAG) and
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
466 # expand to a commented shell variable setting:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
467 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
468 # # Some comment about what VAR is for.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
469 # visible_name=$lt_internal_name
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
470 m4_define([_LT_LIBTOOL_DECLARE],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
471 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
472 [description])))[]dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
473 m4_pushdef([_libtool_name],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
474 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
475 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
476 [0], [_libtool_name=[$]$1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
477 [1], [_libtool_name=$lt_[]$1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
478 [2], [_libtool_name=$lt_[]$1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
479 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
480 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
481 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
482
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
483
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
484 # _LT_LIBTOOL_CONFIG_VARS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
485 # -----------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
486 # Produce commented declarations of non-tagged libtool config variables
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
487 # suitable for insertion in the LIBTOOL CONFIG section of the 'libtool'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
488 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
489 # section) are produced by _LT_LIBTOOL_TAG_VARS.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
490 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
491 [m4_foreach([_lt_var],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
492 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
493 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
494
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
495
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
496 # _LT_LIBTOOL_TAG_VARS(TAG)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
497 # -------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
498 m4_define([_LT_LIBTOOL_TAG_VARS],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
499 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
500 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
501
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
502
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
503 # _LT_TAGVAR(VARNAME, [TAGNAME])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
504 # ------------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
505 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
506
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
507
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
508 # _LT_CONFIG_COMMANDS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
509 # -------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
510 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
511 # variables for single and double quote escaping we saved from calls
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
512 # to _LT_DECL, we can put quote escaped variables declarations
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
513 # into 'config.status', and then the shell code to quote escape them in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
514 # for loops in 'config.status'. Finally, any additional code accumulated
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
515 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
516 m4_defun([_LT_CONFIG_COMMANDS],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
517 [AC_PROVIDE_IFELSE([LT_OUTPUT],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
518 dnl If the libtool generation code has been placed in $CONFIG_LT,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
519 dnl instead of duplicating it all over again into config.status,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
520 dnl then we will have config.status run $CONFIG_LT later, so it
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
521 dnl needs to know what name is stored there:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
522 [AC_CONFIG_COMMANDS([libtool],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
523 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
524 dnl If the libtool generation code is destined for config.status,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
525 dnl expand the accumulated commands and init code now:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
526 [AC_CONFIG_COMMANDS([libtool],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
527 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
528 ])#_LT_CONFIG_COMMANDS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
529
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
530
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
531 # Initialize.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
532 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
533 [
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
534
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
535 # The HP-UX ksh and POSIX shell print the target directory to stdout
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
536 # if CDPATH is set.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
537 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
538
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
539 sed_quote_subst='$sed_quote_subst'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
540 double_quote_subst='$double_quote_subst'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
541 delay_variable_subst='$delay_variable_subst'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
542 _LT_CONFIG_STATUS_DECLARATIONS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
543 LTCC='$LTCC'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
544 LTCFLAGS='$LTCFLAGS'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
545 compiler='$compiler_DEFAULT'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
546
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
547 # A function that is used when there is no print builtin or printf.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
548 func_fallback_echo ()
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
549 {
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
550 eval 'cat <<_LTECHO_EOF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
551 \$[]1
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
552 _LTECHO_EOF'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
553 }
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
554
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
555 # Quote evaled strings.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
556 for var in lt_decl_all_varnames([[ \
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
557 ]], lt_decl_quote_varnames); do
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
558 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
559 *[[\\\\\\\`\\"\\\$]]*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
560 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
561 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
562 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
563 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
564 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
565 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
566 done
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
567
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
568 # Double-quote double-evaled strings.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
569 for var in lt_decl_all_varnames([[ \
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
570 ]], lt_decl_dquote_varnames); do
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
571 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
572 *[[\\\\\\\`\\"\\\$]]*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
573 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
574 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
575 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
576 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
577 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
578 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
579 done
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
580
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
581 _LT_OUTPUT_LIBTOOL_INIT
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
582 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
583
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
584 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
585 # ------------------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
586 # Generate a child script FILE with all initialization necessary to
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
587 # reuse the environment learned by the parent script, and make the
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
588 # file executable. If COMMENT is supplied, it is inserted after the
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
589 # '#!' sequence but before initialization text begins. After this
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
590 # macro, additional text can be appended to FILE to form the body of
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
591 # the child script. The macro ends with non-zero status if the
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
592 # file could not be fully written (such as if the disk is full).
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
593 m4_ifdef([AS_INIT_GENERATED],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
594 [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
595 [m4_defun([_LT_GENERATED_FILE_INIT],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
596 [m4_require([AS_PREPARE])]dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
597 [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
598 [lt_write_fail=0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
599 cat >$1 <<_ASEOF || lt_write_fail=1
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
600 #! $SHELL
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
601 # Generated by $as_me.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
602 $2
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
603 SHELL=\${CONFIG_SHELL-$SHELL}
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
604 export SHELL
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
605 _ASEOF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
606 cat >>$1 <<\_ASEOF || lt_write_fail=1
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
607 AS_SHELL_SANITIZE
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
608 _AS_PREPARE
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
609 exec AS_MESSAGE_FD>&1
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
610 _ASEOF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
611 test 0 = "$lt_write_fail" && chmod +x $1[]dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
612 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
613
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
614 # LT_OUTPUT
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
615 # ---------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
616 # This macro allows early generation of the libtool script (before
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
617 # AC_OUTPUT is called), incase it is used in configure for compilation
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
618 # tests.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
619 AC_DEFUN([LT_OUTPUT],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
620 [: ${CONFIG_LT=./config.lt}
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
621 AC_MSG_NOTICE([creating $CONFIG_LT])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
622 _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
623 [# Run this file to recreate a libtool stub with the current configuration.])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
624
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
625 cat >>"$CONFIG_LT" <<\_LTEOF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
626 lt_cl_silent=false
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
627 exec AS_MESSAGE_LOG_FD>>config.log
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
628 {
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
629 echo
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
630 AS_BOX([Running $as_me.])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
631 } >&AS_MESSAGE_LOG_FD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
632
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
633 lt_cl_help="\
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
634 '$as_me' creates a local libtool stub from the current configuration,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
635 for use in further configure time tests before the real libtool is
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
636 generated.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
637
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
638 Usage: $[0] [[OPTIONS]]
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
639
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
640 -h, --help print this help, then exit
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
641 -V, --version print version number, then exit
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
642 -q, --quiet do not print progress messages
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
643 -d, --debug don't remove temporary files
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
644
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
645 Report bugs to <bug-libtool@gnu.org>."
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
646
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
647 lt_cl_version="\
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
648 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
649 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
650 configured by $[0], generated by m4_PACKAGE_STRING.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
651
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
652 Copyright (C) 2011 Free Software Foundation, Inc.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
653 This config.lt script is free software; the Free Software Foundation
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
654 gives unlimited permision to copy, distribute and modify it."
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
655
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
656 while test 0 != $[#]
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
657 do
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
658 case $[1] in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
659 --version | --v* | -V )
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
660 echo "$lt_cl_version"; exit 0 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
661 --help | --h* | -h )
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
662 echo "$lt_cl_help"; exit 0 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
663 --debug | --d* | -d )
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
664 debug=: ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
665 --quiet | --q* | --silent | --s* | -q )
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
666 lt_cl_silent=: ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
667
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
668 -*) AC_MSG_ERROR([unrecognized option: $[1]
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
669 Try '$[0] --help' for more information.]) ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
670
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
671 *) AC_MSG_ERROR([unrecognized argument: $[1]
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
672 Try '$[0] --help' for more information.]) ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
673 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
674 shift
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
675 done
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
676
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
677 if $lt_cl_silent; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
678 exec AS_MESSAGE_FD>/dev/null
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
679 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
680 _LTEOF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
681
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
682 cat >>"$CONFIG_LT" <<_LTEOF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
683 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
684 _LTEOF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
685
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
686 cat >>"$CONFIG_LT" <<\_LTEOF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
687 AC_MSG_NOTICE([creating $ofile])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
688 _LT_OUTPUT_LIBTOOL_COMMANDS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
689 AS_EXIT(0)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
690 _LTEOF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
691 chmod +x "$CONFIG_LT"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
692
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
693 # configure is writing to config.log, but config.lt does its own redirection,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
694 # appending to config.log, which fails on DOS, as config.log is still kept
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
695 # open by configure. Here we exec the FD to /dev/null, effectively closing
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
696 # config.log, so it can be properly (re)opened and appended to by config.lt.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
697 lt_cl_success=:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
698 test yes = "$silent" &&
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
699 lt_config_lt_args="$lt_config_lt_args --quiet"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
700 exec AS_MESSAGE_LOG_FD>/dev/null
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
701 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
702 exec AS_MESSAGE_LOG_FD>>config.log
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
703 $lt_cl_success || AS_EXIT(1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
704 ])# LT_OUTPUT
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
705
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
706
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
707 # _LT_CONFIG(TAG)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
708 # ---------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
709 # If TAG is the built-in tag, create an initial libtool script with a
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
710 # default configuration from the untagged config vars. Otherwise add code
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
711 # to config.status for appending the configuration named by TAG from the
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
712 # matching tagged config vars.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
713 m4_defun([_LT_CONFIG],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
714 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
715 _LT_CONFIG_SAVE_COMMANDS([
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
716 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
717 m4_if(_LT_TAG, [C], [
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
718 # See if we are running on zsh, and set the options that allow our
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
719 # commands through without removal of \ escapes.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
720 if test -n "${ZSH_VERSION+set}"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
721 setopt NO_GLOB_SUBST
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
722 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
723
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
724 cfgfile=${ofile}T
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
725 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
726 $RM "$cfgfile"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
727
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
728 cat <<_LT_EOF >> "$cfgfile"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
729 #! $SHELL
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
730 # Generated automatically by $as_me ($PACKAGE) $VERSION
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
731 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
732 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
733
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
734 # Provide generalized library-building support services.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
735 # Written by Gordon Matzigkeit, 1996
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
736
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
737 _LT_COPYING
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
738 _LT_LIBTOOL_TAGS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
739
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
740 # Configured defaults for sys_lib_dlsearch_path munging.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
741 : \${LT_SYS_LIBRARY_PATH="$LT_SYS_LIBRARY_PATH"}
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
742
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
743 # ### BEGIN LIBTOOL CONFIG
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
744 _LT_LIBTOOL_CONFIG_VARS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
745 _LT_LIBTOOL_TAG_VARS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
746 # ### END LIBTOOL CONFIG
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
747
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
748 _LT_EOF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
749
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
750 cat <<'_LT_EOF' >> "$cfgfile"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
751 ## -------------------------------------- ##
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
752 ## Shell functions shared with configure. ##
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
753 ## -------------------------------------- ##
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
754
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
755 _LT_PREPARE_MUNGE_PATH_LIST
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
756 _LT_PREPARE_CC_BASENAME
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
757
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
758 _LT_EOF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
759
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
760 case $host_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
761 aix3*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
762 cat <<\_LT_EOF >> "$cfgfile"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
763 # AIX sometimes has problems with the GCC collect2 program. For some
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
764 # reason, if we set the COLLECT_NAMES environment variable, the problems
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
765 # vanish in a puff of smoke.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
766 if test set != "${COLLECT_NAMES+set}"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
767 COLLECT_NAMES=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
768 export COLLECT_NAMES
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
769 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
770 _LT_EOF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
771 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
772 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
773
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
774 _LT_PROG_LTMAIN
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
775
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
776 # We use sed instead of cat because bash on DJGPP gets confused if
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
777 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
778 # text mode, it properly converts lines to CR/LF. This bash problem
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
779 # is reportedly fixed, but why not run on old versions too?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
780 sed '$q' "$ltmain" >> "$cfgfile" \
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
781 || (rm -f "$cfgfile"; exit 1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
782
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
783 mv -f "$cfgfile" "$ofile" ||
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
784 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
785 chmod +x "$ofile"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
786 ],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
787 [cat <<_LT_EOF >> "$ofile"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
788
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
789 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
790 dnl in a comment (ie after a #).
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
791 # ### BEGIN LIBTOOL TAG CONFIG: $1
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
792 _LT_LIBTOOL_TAG_VARS(_LT_TAG)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
793 # ### END LIBTOOL TAG CONFIG: $1
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
794 _LT_EOF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
795 ])dnl /m4_if
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
796 ],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
797 [m4_if([$1], [], [
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
798 PACKAGE='$PACKAGE'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
799 VERSION='$VERSION'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
800 RM='$RM'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
801 ofile='$ofile'], [])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
802 ])dnl /_LT_CONFIG_SAVE_COMMANDS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
803 ])# _LT_CONFIG
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
804
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
805
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
806 # LT_SUPPORTED_TAG(TAG)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
807 # ---------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
808 # Trace this macro to discover what tags are supported by the libtool
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
809 # --tag option, using:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
810 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
811 AC_DEFUN([LT_SUPPORTED_TAG], [])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
812
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
813
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
814 # C support is built-in for now
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
815 m4_define([_LT_LANG_C_enabled], [])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
816 m4_define([_LT_TAGS], [])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
817
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
818
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
819 # LT_LANG(LANG)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
820 # -------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
821 # Enable libtool support for the given language if not already enabled.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
822 AC_DEFUN([LT_LANG],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
823 [AC_BEFORE([$0], [LT_OUTPUT])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
824 m4_case([$1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
825 [C], [_LT_LANG(C)],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
826 [C++], [_LT_LANG(CXX)],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
827 [Go], [_LT_LANG(GO)],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
828 [Java], [_LT_LANG(GCJ)],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
829 [Fortran 77], [_LT_LANG(F77)],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
830 [Fortran], [_LT_LANG(FC)],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
831 [Windows Resource], [_LT_LANG(RC)],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
832 [m4_ifdef([_LT_LANG_]$1[_CONFIG],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
833 [_LT_LANG($1)],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
834 [m4_fatal([$0: unsupported language: "$1"])])])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
835 ])# LT_LANG
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
836
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
837
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
838 # _LT_LANG(LANGNAME)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
839 # ------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
840 m4_defun([_LT_LANG],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
841 [m4_ifdef([_LT_LANG_]$1[_enabled], [],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
842 [LT_SUPPORTED_TAG([$1])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
843 m4_append([_LT_TAGS], [$1 ])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
844 m4_define([_LT_LANG_]$1[_enabled], [])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
845 _LT_LANG_$1_CONFIG($1)])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
846 ])# _LT_LANG
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
847
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
848
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
849 m4_ifndef([AC_PROG_GO], [
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
850 ############################################################
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
851 # NOTE: This macro has been submitted for inclusion into #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
852 # GNU Autoconf as AC_PROG_GO. When it is available in #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
853 # a released version of Autoconf we should remove this #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
854 # macro and use it instead. #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
855 ############################################################
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
856 m4_defun([AC_PROG_GO],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
857 [AC_LANG_PUSH(Go)dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
858 AC_ARG_VAR([GOC], [Go compiler command])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
859 AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
860 _AC_ARG_VAR_LDFLAGS()dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
861 AC_CHECK_TOOL(GOC, gccgo)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
862 if test -z "$GOC"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
863 if test -n "$ac_tool_prefix"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
864 AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
865 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
866 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
867 if test -z "$GOC"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
868 AC_CHECK_PROG(GOC, gccgo, gccgo, false)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
869 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
870 ])#m4_defun
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
871 ])#m4_ifndef
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
872
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
873
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
874 # _LT_LANG_DEFAULT_CONFIG
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
875 # -----------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
876 m4_defun([_LT_LANG_DEFAULT_CONFIG],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
877 [AC_PROVIDE_IFELSE([AC_PROG_CXX],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
878 [LT_LANG(CXX)],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
879 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
880
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
881 AC_PROVIDE_IFELSE([AC_PROG_F77],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
882 [LT_LANG(F77)],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
883 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
884
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
885 AC_PROVIDE_IFELSE([AC_PROG_FC],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
886 [LT_LANG(FC)],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
887 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
888
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
889 dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
890 dnl pulling things in needlessly.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
891 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
892 [LT_LANG(GCJ)],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
893 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
894 [LT_LANG(GCJ)],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
895 [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
896 [LT_LANG(GCJ)],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
897 [m4_ifdef([AC_PROG_GCJ],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
898 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
899 m4_ifdef([A][M_PROG_GCJ],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
900 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
901 m4_ifdef([LT_PROG_GCJ],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
902 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
903
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
904 AC_PROVIDE_IFELSE([AC_PROG_GO],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
905 [LT_LANG(GO)],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
906 [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
907
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
908 AC_PROVIDE_IFELSE([LT_PROG_RC],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
909 [LT_LANG(RC)],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
910 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
911 ])# _LT_LANG_DEFAULT_CONFIG
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
912
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
913 # Obsolete macros:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
914 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
915 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
916 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
917 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
918 AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
919 dnl aclocal-1.4 backwards compatibility:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
920 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
921 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
922 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
923 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
924 dnl AC_DEFUN([AC_LIBTOOL_RC], [])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
925
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
926
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
927 # _LT_TAG_COMPILER
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
928 # ----------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
929 m4_defun([_LT_TAG_COMPILER],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
930 [AC_REQUIRE([AC_PROG_CC])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
931
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
932 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
933 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
934 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
935 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
936
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
937 # If no C compiler was specified, use CC.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
938 LTCC=${LTCC-"$CC"}
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
939
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
940 # If no C compiler flags were specified, use CFLAGS.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
941 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
942
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
943 # Allow CC to be a program name with arguments.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
944 compiler=$CC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
945 ])# _LT_TAG_COMPILER
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
946
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
947
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
948 # _LT_COMPILER_BOILERPLATE
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
949 # ------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
950 # Check for compiler boilerplate output or warnings with
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
951 # the simple compiler test code.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
952 m4_defun([_LT_COMPILER_BOILERPLATE],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
953 [m4_require([_LT_DECL_SED])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
954 ac_outfile=conftest.$ac_objext
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
955 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
956 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
957 _lt_compiler_boilerplate=`cat conftest.err`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
958 $RM conftest*
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
959 ])# _LT_COMPILER_BOILERPLATE
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
960
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
961
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
962 # _LT_LINKER_BOILERPLATE
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
963 # ----------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
964 # Check for linker boilerplate output or warnings with
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
965 # the simple link test code.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
966 m4_defun([_LT_LINKER_BOILERPLATE],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
967 [m4_require([_LT_DECL_SED])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
968 ac_outfile=conftest.$ac_objext
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
969 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
970 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
971 _lt_linker_boilerplate=`cat conftest.err`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
972 $RM -r conftest*
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
973 ])# _LT_LINKER_BOILERPLATE
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
974
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
975 # _LT_REQUIRED_DARWIN_CHECKS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
976 # -------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
977 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
978 case $host_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
979 rhapsody* | darwin*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
980 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
981 AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
982 AC_CHECK_TOOL([LIPO], [lipo], [:])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
983 AC_CHECK_TOOL([OTOOL], [otool], [:])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
984 AC_CHECK_TOOL([OTOOL64], [otool64], [:])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
985 _LT_DECL([], [DSYMUTIL], [1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
986 [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
987 _LT_DECL([], [NMEDIT], [1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
988 [Tool to change global to local symbols on Mac OS X])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
989 _LT_DECL([], [LIPO], [1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
990 [Tool to manipulate fat objects and archives on Mac OS X])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
991 _LT_DECL([], [OTOOL], [1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
992 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
993 _LT_DECL([], [OTOOL64], [1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
994 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
995
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
996 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
997 [lt_cv_apple_cc_single_mod=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
998 if test -z "$LT_MULTI_MODULE"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
999 # By default we will add the -single_module flag. You can override
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1000 # by either setting the environment variable LT_MULTI_MODULE
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1001 # non-empty at configure time, or by adding -multi_module to the
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1002 # link flags.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1003 rm -rf libconftest.dylib*
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1004 echo "int foo(void){return 1;}" > conftest.c
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1005 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1006 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1007 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1008 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1009 _lt_result=$?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1010 # If there is a non-empty error log, and "single_module"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1011 # appears in it, assume the flag caused a linker warning
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1012 if test -s conftest.err && $GREP single_module conftest.err; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1013 cat conftest.err >&AS_MESSAGE_LOG_FD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1014 # Otherwise, if the output was created with a 0 exit code from
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1015 # the compiler, it worked.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1016 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1017 lt_cv_apple_cc_single_mod=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1018 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1019 cat conftest.err >&AS_MESSAGE_LOG_FD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1020 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1021 rm -rf libconftest.dylib*
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1022 rm -f conftest.*
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1023 fi])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1024
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1025 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1026 [lt_cv_ld_exported_symbols_list],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1027 [lt_cv_ld_exported_symbols_list=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1028 save_LDFLAGS=$LDFLAGS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1029 echo "_main" > conftest.sym
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1030 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1031 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1032 [lt_cv_ld_exported_symbols_list=yes],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1033 [lt_cv_ld_exported_symbols_list=no])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1034 LDFLAGS=$save_LDFLAGS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1035 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1036
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1037 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1038 [lt_cv_ld_force_load=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1039 cat > conftest.c << _LT_EOF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1040 int forced_loaded() { return 2;}
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1041 _LT_EOF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1042 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1043 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1044 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1045 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1046 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1047 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1048 cat > conftest.c << _LT_EOF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1049 int main() { return 0;}
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1050 _LT_EOF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1051 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1052 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1053 _lt_result=$?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1054 if test -s conftest.err && $GREP force_load conftest.err; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1055 cat conftest.err >&AS_MESSAGE_LOG_FD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1056 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1057 lt_cv_ld_force_load=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1058 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1059 cat conftest.err >&AS_MESSAGE_LOG_FD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1060 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1061 rm -f conftest.err libconftest.a conftest conftest.c
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1062 rm -rf conftest.dSYM
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1063 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1064 case $host_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1065 rhapsody* | darwin1.[[012]])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1066 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1067 darwin1.*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1068 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1069 darwin*) # darwin 5.x on
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1070 # if running on 10.5 or later, the deployment target defaults
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1071 # to the OS version, if on x86, and 10.4, the deployment
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1072 # target defaults to 10.4. Don't you love it?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1073 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1074 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1075 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1076 10.[[012]][[,.]]*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1077 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1078 10.*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1079 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1080 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1081 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1082 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1083 if test yes = "$lt_cv_apple_cc_single_mod"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1084 _lt_dar_single_mod='$single_module'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1085 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1086 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1087 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1088 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1089 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1090 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1091 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1092 _lt_dsymutil='~$DSYMUTIL $lib || :'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1093 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1094 _lt_dsymutil=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1095 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1096 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1097 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1098 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1099
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1100
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1101 # _LT_DARWIN_LINKER_FEATURES([TAG])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1102 # ---------------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1103 # Checks for linker and compiler features on darwin
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1104 m4_defun([_LT_DARWIN_LINKER_FEATURES],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1105 [
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1106 m4_require([_LT_REQUIRED_DARWIN_CHECKS])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1107 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1108 _LT_TAGVAR(hardcode_direct, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1109 _LT_TAGVAR(hardcode_automatic, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1110 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1111 if test yes = "$lt_cv_ld_force_load"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1112 _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\"`'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1113 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1114 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1115 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1116 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1117 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1118 _LT_TAGVAR(link_all_deplibs, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1119 _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1120 case $cc_basename in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1121 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1122 *) _lt_dar_can_shared=$GCC ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1123 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1124 if test yes = "$_lt_dar_can_shared"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1125 output_verbose_link_cmd=func_echo_all
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1126 _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"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1127 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1128 _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"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1129 _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"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1130 m4_if([$1], [CXX],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1131 [ if test yes != "$lt_cv_apple_cc_single_mod"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1132 _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1133 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1134 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1135 ],[])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1136 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1137 _LT_TAGVAR(ld_shlibs, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1138 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1139 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1140
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1141 # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1142 # ----------------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1143 # Links a minimal program and checks the executable
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1144 # for the system default hardcoded library path. In most cases,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1145 # this is /usr/lib:/lib, but when the MPI compilers are used
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1146 # the location of the communication and MPI libs are included too.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1147 # If we don't find anything, use the default library path according
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1148 # to the aix ld manual.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1149 # Store the results from the different compilers for each TAGNAME.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1150 # Allow to override them for all tags through lt_cv_aix_libpath.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1151 m4_defun([_LT_SYS_MODULE_PATH_AIX],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1152 [m4_require([_LT_DECL_SED])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1153 if test set = "${lt_cv_aix_libpath+set}"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1154 aix_libpath=$lt_cv_aix_libpath
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1155 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1156 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1157 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1158 lt_aix_libpath_sed='[
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1159 /Import File Strings/,/^$/ {
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1160 /^0/ {
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1161 s/^0 *\([^ ]*\) *$/\1/
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1162 p
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1163 }
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1164 }]'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1165 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1166 # Check for a 64-bit object if we didn't find anything.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1167 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1168 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1169 fi],[])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1170 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1171 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1172 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1173 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1174 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1175 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1176 ])# _LT_SYS_MODULE_PATH_AIX
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1177
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1178
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1179 # _LT_SHELL_INIT(ARG)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1180 # -------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1181 m4_define([_LT_SHELL_INIT],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1182 [m4_divert_text([M4SH-INIT], [$1
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1183 ])])# _LT_SHELL_INIT
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1184
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1185
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1186
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1187 # _LT_PROG_ECHO_BACKSLASH
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1188 # -----------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1189 # Find how we can fake an echo command that does not interpret backslash.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1190 # In particular, with Autoconf 2.60 or later we add some code to the start
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1191 # of the generated configure script that will find a shell with a builtin
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1192 # printf (that we can use as an echo command).
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1193 m4_defun([_LT_PROG_ECHO_BACKSLASH],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1194 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1195 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1196 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1197
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1198 AC_MSG_CHECKING([how to print strings])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1199 # Test print first, because it will be a builtin if present.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1200 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1201 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1202 ECHO='print -r --'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1203 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1204 ECHO='printf %s\n'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1205 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1206 # Use this function as a fallback that always works.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1207 func_fallback_echo ()
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1208 {
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1209 eval 'cat <<_LTECHO_EOF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1210 $[]1
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1211 _LTECHO_EOF'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1212 }
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1213 ECHO='func_fallback_echo'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1214 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1215
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1216 # func_echo_all arg...
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1217 # Invoke $ECHO with all args, space-separated.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1218 func_echo_all ()
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1219 {
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1220 $ECHO "$*"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1221 }
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1222
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1223 case $ECHO in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1224 printf*) AC_MSG_RESULT([printf]) ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1225 print*) AC_MSG_RESULT([print -r]) ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1226 *) AC_MSG_RESULT([cat]) ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1227 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1228
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1229 m4_ifdef([_AS_DETECT_SUGGESTED],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1230 [_AS_DETECT_SUGGESTED([
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1231 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1232 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1233 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1234 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1235 PATH=/empty FPATH=/empty; export PATH FPATH
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1236 test "X`printf %s $ECHO`" = "X$ECHO" \
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1237 || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1238
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1239 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1240 _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1241 ])# _LT_PROG_ECHO_BACKSLASH
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1242
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1243
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1244 # _LT_WITH_SYSROOT
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1245 # ----------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1246 AC_DEFUN([_LT_WITH_SYSROOT],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1247 [AC_MSG_CHECKING([for sysroot])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1248 AC_ARG_WITH([sysroot],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1249 [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1250 [Search for dependent libraries within DIR (or the compiler's sysroot
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1251 if not specified).])],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1252 [], [with_sysroot=no])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1253
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1254 dnl lt_sysroot will always be passed unquoted. We quote it here
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1255 dnl in case the user passed a directory name.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1256 lt_sysroot=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1257 case $with_sysroot in #(
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1258 yes)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1259 if test yes = "$GCC"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1260 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1261 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1262 ;; #(
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1263 /*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1264 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1265 ;; #(
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1266 no|'')
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1267 ;; #(
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1268 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1269 AC_MSG_RESULT([$with_sysroot])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1270 AC_MSG_ERROR([The sysroot must be an absolute path.])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1271 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1272 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1273
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1274 AC_MSG_RESULT([${lt_sysroot:-no}])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1275 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1276 [dependent libraries, and where our libraries should be installed.])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1277
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1278 # _LT_ENABLE_LOCK
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1279 # ---------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1280 m4_defun([_LT_ENABLE_LOCK],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1281 [AC_ARG_ENABLE([libtool-lock],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1282 [AS_HELP_STRING([--disable-libtool-lock],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1283 [avoid locking (might break parallel builds)])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1284 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1285
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1286 # Some flags need to be propagated to the compiler or linker for good
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1287 # libtool support.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1288 case $host in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1289 ia64-*-hpux*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1290 # Find out what ABI is being produced by ac_compile, and set mode
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1291 # options accordingly.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1292 echo 'int i;' > conftest.$ac_ext
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1293 if AC_TRY_EVAL(ac_compile); then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1294 case `/usr/bin/file conftest.$ac_objext` in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1295 *ELF-32*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1296 HPUX_IA64_MODE=32
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1297 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1298 *ELF-64*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1299 HPUX_IA64_MODE=64
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1300 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1301 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1302 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1303 rm -rf conftest*
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1304 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1305 *-*-irix6*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1306 # Find out what ABI is being produced by ac_compile, and set linker
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1307 # options accordingly.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1308 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1309 if AC_TRY_EVAL(ac_compile); then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1310 if test yes = "$lt_cv_prog_gnu_ld"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1311 case `/usr/bin/file conftest.$ac_objext` in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1312 *32-bit*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1313 LD="${LD-ld} -melf32bsmip"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1314 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1315 *N32*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1316 LD="${LD-ld} -melf32bmipn32"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1317 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1318 *64-bit*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1319 LD="${LD-ld} -melf64bmip"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1320 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1321 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1322 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1323 case `/usr/bin/file conftest.$ac_objext` in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1324 *32-bit*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1325 LD="${LD-ld} -32"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1326 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1327 *N32*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1328 LD="${LD-ld} -n32"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1329 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1330 *64-bit*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1331 LD="${LD-ld} -64"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1332 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1333 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1334 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1335 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1336 rm -rf conftest*
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1337 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1338
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1339 mips64*-*linux*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1340 # Find out what ABI is being produced by ac_compile, and set linker
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1341 # options accordingly.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1342 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1343 if AC_TRY_EVAL(ac_compile); then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1344 emul=elf
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1345 case `/usr/bin/file conftest.$ac_objext` in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1346 *32-bit*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1347 emul="${emul}32"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1348 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1349 *64-bit*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1350 emul="${emul}64"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1351 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1352 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1353 case `/usr/bin/file conftest.$ac_objext` in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1354 *MSB*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1355 emul="${emul}btsmip"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1356 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1357 *LSB*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1358 emul="${emul}ltsmip"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1359 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1360 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1361 case `/usr/bin/file conftest.$ac_objext` in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1362 *N32*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1363 emul="${emul}n32"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1364 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1365 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1366 LD="${LD-ld} -m $emul"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1367 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1368 rm -rf conftest*
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1369 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1370
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1371 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1372 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1373 # Find out what ABI is being produced by ac_compile, and set linker
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1374 # options accordingly. Note that the listed cases only cover the
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1375 # situations where additional linker options are needed (such as when
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1376 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1377 # vice versa); the common cases where no linker options are needed do
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1378 # not appear in the list.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1379 echo 'int i;' > conftest.$ac_ext
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1380 if AC_TRY_EVAL(ac_compile); then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1381 case `/usr/bin/file conftest.o` in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1382 *32-bit*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1383 case $host in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1384 x86_64-*kfreebsd*-gnu)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1385 LD="${LD-ld} -m elf_i386_fbsd"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1386 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1387 x86_64-*linux*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1388 case `/usr/bin/file conftest.o` in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1389 *x86-64*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1390 LD="${LD-ld} -m elf32_x86_64"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1391 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1392 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1393 LD="${LD-ld} -m elf_i386"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1394 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1395 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1396 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1397 powerpc64le-*linux*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1398 LD="${LD-ld} -m elf32lppclinux"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1399 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1400 powerpc64-*linux*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1401 LD="${LD-ld} -m elf32ppclinux"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1402 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1403 s390x-*linux*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1404 LD="${LD-ld} -m elf_s390"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1405 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1406 sparc64-*linux*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1407 LD="${LD-ld} -m elf32_sparc"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1408 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1409 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1410 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1411 *64-bit*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1412 case $host in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1413 x86_64-*kfreebsd*-gnu)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1414 LD="${LD-ld} -m elf_x86_64_fbsd"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1415 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1416 x86_64-*linux*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1417 LD="${LD-ld} -m elf_x86_64"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1418 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1419 powerpcle-*linux*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1420 LD="${LD-ld} -m elf64lppc"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1421 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1422 powerpc-*linux*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1423 LD="${LD-ld} -m elf64ppc"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1424 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1425 s390*-*linux*|s390*-*tpf*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1426 LD="${LD-ld} -m elf64_s390"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1427 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1428 sparc*-*linux*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1429 LD="${LD-ld} -m elf64_sparc"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1430 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1431 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1432 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1433 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1434 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1435 rm -rf conftest*
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1436 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1437
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1438 *-*-sco3.2v5*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1439 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1440 SAVE_CFLAGS=$CFLAGS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1441 CFLAGS="$CFLAGS -belf"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1442 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1443 [AC_LANG_PUSH(C)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1444 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1445 AC_LANG_POP])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1446 if test yes != "$lt_cv_cc_needs_belf"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1447 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1448 CFLAGS=$SAVE_CFLAGS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1449 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1450 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1451 *-*solaris*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1452 # Find out what ABI is being produced by ac_compile, and set linker
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1453 # options accordingly.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1454 echo 'int i;' > conftest.$ac_ext
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1455 if AC_TRY_EVAL(ac_compile); then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1456 case `/usr/bin/file conftest.o` in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1457 *64-bit*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1458 case $lt_cv_prog_gnu_ld in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1459 yes*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1460 case $host in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1461 i?86-*-solaris*|x86_64-*-solaris*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1462 LD="${LD-ld} -m elf_x86_64"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1463 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1464 sparc*-*-solaris*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1465 LD="${LD-ld} -m elf64_sparc"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1466 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1467 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1468 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1469 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1470 LD=${LD-ld}_sol2
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1471 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1472 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1473 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1474 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1475 LD="${LD-ld} -64"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1476 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1477 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1478 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1479 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1480 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1481 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1482 rm -rf conftest*
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1483 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1484 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1485
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1486 need_locks=$enable_libtool_lock
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1487 ])# _LT_ENABLE_LOCK
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1488
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1489
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1490 # _LT_PROG_AR
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1491 # -----------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1492 m4_defun([_LT_PROG_AR],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1493 [AC_CHECK_TOOLS(AR, [ar], false)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1494 : ${AR=ar}
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1495 : ${AR_FLAGS=cru}
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1496 _LT_DECL([], [AR], [1], [The archiver])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1497 _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1498
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1499 AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1500 [lt_cv_ar_at_file=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1501 AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1502 [echo conftest.$ac_objext > conftest.lst
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1503 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1504 AC_TRY_EVAL([lt_ar_try])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1505 if test 0 -eq "$ac_status"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1506 # Ensure the archiver fails upon bogus file names.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1507 rm -f conftest.$ac_objext libconftest.a
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1508 AC_TRY_EVAL([lt_ar_try])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1509 if test 0 -ne "$ac_status"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1510 lt_cv_ar_at_file=@
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1511 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1512 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1513 rm -f conftest.* libconftest.a
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1514 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1515 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1516
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1517 if test no = "$lt_cv_ar_at_file"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1518 archiver_list_spec=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1519 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1520 archiver_list_spec=$lt_cv_ar_at_file
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1521 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1522 _LT_DECL([], [archiver_list_spec], [1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1523 [How to feed a file listing to the archiver])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1524 ])# _LT_PROG_AR
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1525
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1526
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1527 # _LT_CMD_OLD_ARCHIVE
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1528 # -------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1529 m4_defun([_LT_CMD_OLD_ARCHIVE],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1530 [_LT_PROG_AR
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1531
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1532 AC_CHECK_TOOL(STRIP, strip, :)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1533 test -z "$STRIP" && STRIP=:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1534 _LT_DECL([], [STRIP], [1], [A symbol stripping program])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1535
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1536 AC_CHECK_TOOL(RANLIB, ranlib, :)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1537 test -z "$RANLIB" && RANLIB=:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1538 _LT_DECL([], [RANLIB], [1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1539 [Commands used to install an old-style archive])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1540
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1541 # Determine commands to create old-style static archives.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1542 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1543 old_postinstall_cmds='chmod 644 $oldlib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1544 old_postuninstall_cmds=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1545
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1546 if test -n "$RANLIB"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1547 case $host_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1548 bitrig* | openbsd*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1549 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1550 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1551 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1552 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1553 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1554 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1555 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1556 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1557
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1558 case $host_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1559 darwin*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1560 lock_old_archive_extraction=yes ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1561 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1562 lock_old_archive_extraction=no ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1563 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1564 _LT_DECL([], [old_postinstall_cmds], [2])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1565 _LT_DECL([], [old_postuninstall_cmds], [2])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1566 _LT_TAGDECL([], [old_archive_cmds], [2],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1567 [Commands used to build an old-style archive])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1568 _LT_DECL([], [lock_old_archive_extraction], [0],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1569 [Whether to use a lock for old archive extraction])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1570 ])# _LT_CMD_OLD_ARCHIVE
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1571
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1572
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1573 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1574 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1575 # ----------------------------------------------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1576 # Check whether the given compiler option works
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1577 AC_DEFUN([_LT_COMPILER_OPTION],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1578 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1579 m4_require([_LT_DECL_SED])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1580 AC_CACHE_CHECK([$1], [$2],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1581 [$2=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1582 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1583 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1584 lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1585 # Insert the option either (1) after the last *FLAGS variable, or
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1586 # (2) before a word containing "conftest.", or (3) at the end.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1587 # Note that $ac_compile itself does not contain backslashes and begins
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1588 # with a dollar sign (not a hyphen), so the echo should work correctly.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1589 # The option is referenced via a variable to avoid confusing sed.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1590 lt_compile=`echo "$ac_compile" | $SED \
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1591 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1592 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1593 -e 's:$: $lt_compiler_flag:'`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1594 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1595 (eval "$lt_compile" 2>conftest.err)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1596 ac_status=$?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1597 cat conftest.err >&AS_MESSAGE_LOG_FD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1598 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1599 if (exit $ac_status) && test -s "$ac_outfile"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1600 # The compiler can only warn and ignore the option if not recognized
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1601 # So say no if there are warnings other than the usual output.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1602 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1603 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1604 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1605 $2=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1606 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1607 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1608 $RM conftest*
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1609 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1610
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1611 if test yes = "[$]$2"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1612 m4_if([$5], , :, [$5])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1613 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1614 m4_if([$6], , :, [$6])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1615 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1616 ])# _LT_COMPILER_OPTION
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1617
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1618 # Old name:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1619 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1620 dnl aclocal-1.4 backwards compatibility:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1621 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1622
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1623
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1624 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1625 # [ACTION-SUCCESS], [ACTION-FAILURE])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1626 # ----------------------------------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1627 # Check whether the given linker option works
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1628 AC_DEFUN([_LT_LINKER_OPTION],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1629 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1630 m4_require([_LT_DECL_SED])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1631 AC_CACHE_CHECK([$1], [$2],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1632 [$2=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1633 save_LDFLAGS=$LDFLAGS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1634 LDFLAGS="$LDFLAGS $3"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1635 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1636 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1637 # The linker can only warn and ignore the option if not recognized
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1638 # So say no if there are warnings
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1639 if test -s conftest.err; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1640 # Append any errors to the config.log.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1641 cat conftest.err 1>&AS_MESSAGE_LOG_FD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1642 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1643 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1644 if diff conftest.exp conftest.er2 >/dev/null; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1645 $2=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1646 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1647 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1648 $2=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1649 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1650 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1651 $RM -r conftest*
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1652 LDFLAGS=$save_LDFLAGS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1653 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1654
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1655 if test yes = "[$]$2"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1656 m4_if([$4], , :, [$4])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1657 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1658 m4_if([$5], , :, [$5])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1659 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1660 ])# _LT_LINKER_OPTION
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1661
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1662 # Old name:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1663 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1664 dnl aclocal-1.4 backwards compatibility:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1665 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1666
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1667
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1668 # LT_CMD_MAX_LEN
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1669 #---------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1670 AC_DEFUN([LT_CMD_MAX_LEN],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1671 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1672 # find the maximum length of command line arguments
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1673 AC_MSG_CHECKING([the maximum length of command line arguments])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1674 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1675 i=0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1676 teststring=ABCD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1677
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1678 case $build_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1679 msdosdjgpp*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1680 # On DJGPP, this test can blow up pretty badly due to problems in libc
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1681 # (any single argument exceeding 2000 bytes causes a buffer overrun
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1682 # during glob expansion). Even if it were fixed, the result of this
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1683 # check would be larger than it should be.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1684 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1685 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1686
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1687 gnu*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1688 # Under GNU Hurd, this test is not required because there is
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1689 # no limit to the length of command line arguments.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1690 # Libtool will interpret -1 as no limit whatsoever
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1691 lt_cv_sys_max_cmd_len=-1;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1692 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1693
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1694 cygwin* | mingw* | cegcc*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1695 # On Win9x/ME, this test blows up -- it succeeds, but takes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1696 # about 5 minutes as the teststring grows exponentially.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1697 # Worse, since 9x/ME are not pre-emptively multitasking,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1698 # you end up with a "frozen" computer, even though with patience
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1699 # the test eventually succeeds (with a max line length of 256k).
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1700 # Instead, let's just punt: use the minimum linelength reported by
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1701 # all of the supported platforms: 8192 (on NT/2K/XP).
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1702 lt_cv_sys_max_cmd_len=8192;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1703 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1704
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1705 mint*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1706 # On MiNT this can take a long time and run out of memory.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1707 lt_cv_sys_max_cmd_len=8192;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1708 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1709
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1710 amigaos*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1711 # On AmigaOS with pdksh, this test takes hours, literally.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1712 # So we just punt and use a minimum line length of 8192.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1713 lt_cv_sys_max_cmd_len=8192;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1714 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1715
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1716 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1717 # This has been around since 386BSD, at least. Likely further.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1718 if test -x /sbin/sysctl; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1719 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1720 elif test -x /usr/sbin/sysctl; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1721 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1722 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1723 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1724 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1725 # And add a safety zone
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1726 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1727 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1728 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1729
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1730 interix*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1731 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1732 lt_cv_sys_max_cmd_len=196608
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1733 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1734
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1735 os2*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1736 # The test takes a long time on OS/2.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1737 lt_cv_sys_max_cmd_len=8192
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1738 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1739
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1740 osf*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1741 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1742 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1743 # nice to cause kernel panics so lets avoid the loop below.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1744 # First set a reasonable default.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1745 lt_cv_sys_max_cmd_len=16384
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1746 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1747 if test -x /sbin/sysconfig; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1748 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1749 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1750 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1751 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1752 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1753 sco3.2v5*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1754 lt_cv_sys_max_cmd_len=102400
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1755 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1756 sysv5* | sco5v6* | sysv4.2uw2*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1757 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1758 if test -n "$kargmax"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1759 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1760 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1761 lt_cv_sys_max_cmd_len=32768
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1762 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1763 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1764 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1765 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1766 if test -n "$lt_cv_sys_max_cmd_len" && \
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1767 test undefined != "$lt_cv_sys_max_cmd_len"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1768 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1769 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1770 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1771 # Make teststring a little bigger before we do anything with it.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1772 # a 1K string should be a reasonable start.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1773 for i in 1 2 3 4 5 6 7 8; do
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1774 teststring=$teststring$teststring
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1775 done
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1776 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1777 # If test is not a shell built-in, we'll probably end up computing a
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1778 # maximum length that is only half of the actual maximum length, but
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1779 # we can't tell.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1780 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1781 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1782 test 17 != "$i" # 1/2 MB should be enough
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1783 do
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1784 i=`expr $i + 1`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1785 teststring=$teststring$teststring
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1786 done
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1787 # Only check the string length outside the loop.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1788 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1789 teststring=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1790 # Add a significant safety factor because C++ compilers can tack on
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1791 # massive amounts of additional arguments before passing them to the
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1792 # linker. It appears as though 1/2 is a usable value.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1793 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1794 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1795 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1796 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1797 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1798 if test -n "$lt_cv_sys_max_cmd_len"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1799 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1800 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1801 AC_MSG_RESULT(none)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1802 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1803 max_cmd_len=$lt_cv_sys_max_cmd_len
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1804 _LT_DECL([], [max_cmd_len], [0],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1805 [What is the maximum length of a command?])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1806 ])# LT_CMD_MAX_LEN
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1807
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1808 # Old name:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1809 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1810 dnl aclocal-1.4 backwards compatibility:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1811 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1812
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1813
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1814 # _LT_HEADER_DLFCN
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1815 # ----------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1816 m4_defun([_LT_HEADER_DLFCN],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1817 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1818 ])# _LT_HEADER_DLFCN
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1819
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1820
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1821 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1822 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1823 # ----------------------------------------------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1824 m4_defun([_LT_TRY_DLOPEN_SELF],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1825 [m4_require([_LT_HEADER_DLFCN])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1826 if test yes = "$cross_compiling"; then :
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1827 [$4]
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1828 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1829 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1830 lt_status=$lt_dlunknown
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1831 cat > conftest.$ac_ext <<_LT_EOF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1832 [#line $LINENO "configure"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1833 #include "confdefs.h"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1834
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1835 #if HAVE_DLFCN_H
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1836 #include <dlfcn.h>
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1837 #endif
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1838
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1839 #include <stdio.h>
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1840
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1841 #ifdef RTLD_GLOBAL
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1842 # define LT_DLGLOBAL RTLD_GLOBAL
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1843 #else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1844 # ifdef DL_GLOBAL
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1845 # define LT_DLGLOBAL DL_GLOBAL
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1846 # else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1847 # define LT_DLGLOBAL 0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1848 # endif
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1849 #endif
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1850
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1851 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1852 find out it does not work in some platform. */
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1853 #ifndef LT_DLLAZY_OR_NOW
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1854 # ifdef RTLD_LAZY
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1855 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1856 # else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1857 # ifdef DL_LAZY
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1858 # define LT_DLLAZY_OR_NOW DL_LAZY
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1859 # else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1860 # ifdef RTLD_NOW
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1861 # define LT_DLLAZY_OR_NOW RTLD_NOW
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1862 # else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1863 # ifdef DL_NOW
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1864 # define LT_DLLAZY_OR_NOW DL_NOW
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1865 # else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1866 # define LT_DLLAZY_OR_NOW 0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1867 # endif
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1868 # endif
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1869 # endif
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1870 # endif
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1871 #endif
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1872
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1873 /* When -fvisibility=hidden is used, assume the code has been annotated
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1874 correspondingly for the symbols needed. */
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1875 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1876 int fnord () __attribute__((visibility("default")));
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1877 #endif
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1878
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1879 int fnord () { return 42; }
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1880 int main ()
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1881 {
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1882 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1883 int status = $lt_dlunknown;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1884
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1885 if (self)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1886 {
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1887 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1888 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1889 {
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1890 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1891 else puts (dlerror ());
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1892 }
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1893 /* dlclose (self); */
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1894 }
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1895 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1896 puts (dlerror ());
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1897
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1898 return status;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1899 }]
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1900 _LT_EOF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1901 if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1902 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1903 lt_status=$?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1904 case x$lt_status in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1905 x$lt_dlno_uscore) $1 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1906 x$lt_dlneed_uscore) $2 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1907 x$lt_dlunknown|x*) $3 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1908 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1909 else :
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1910 # compilation failed
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1911 $3
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1912 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1913 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1914 rm -fr conftest*
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1915 ])# _LT_TRY_DLOPEN_SELF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1916
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1917
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1918 # LT_SYS_DLOPEN_SELF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1919 # ------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1920 AC_DEFUN([LT_SYS_DLOPEN_SELF],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1921 [m4_require([_LT_HEADER_DLFCN])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1922 if test yes != "$enable_dlopen"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1923 enable_dlopen=unknown
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1924 enable_dlopen_self=unknown
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1925 enable_dlopen_self_static=unknown
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1926 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1927 lt_cv_dlopen=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1928 lt_cv_dlopen_libs=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1929
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1930 case $host_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1931 beos*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1932 lt_cv_dlopen=load_add_on
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1933 lt_cv_dlopen_libs=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1934 lt_cv_dlopen_self=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1935 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1936
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1937 mingw* | pw32* | cegcc*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1938 lt_cv_dlopen=LoadLibrary
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1939 lt_cv_dlopen_libs=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1940 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1941
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1942 cygwin*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1943 lt_cv_dlopen=dlopen
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1944 lt_cv_dlopen_libs=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1945 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1946
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1947 darwin*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1948 # if libdl is installed we need to link against it
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1949 AC_CHECK_LIB([dl], [dlopen],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1950 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1951 lt_cv_dlopen=dyld
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1952 lt_cv_dlopen_libs=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1953 lt_cv_dlopen_self=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1954 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1955 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1956
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1957 tpf*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1958 # Don't try to run any link tests for TPF. We know it's impossible
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1959 # because TPF is a cross-compiler, and we know how we open DSOs.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1960 lt_cv_dlopen=dlopen
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1961 lt_cv_dlopen_libs=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1962 lt_cv_dlopen_self=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1963 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1964
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1965 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1966 AC_CHECK_FUNC([shl_load],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1967 [lt_cv_dlopen=shl_load],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1968 [AC_CHECK_LIB([dld], [shl_load],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1969 [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1970 [AC_CHECK_FUNC([dlopen],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1971 [lt_cv_dlopen=dlopen],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1972 [AC_CHECK_LIB([dl], [dlopen],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1973 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1974 [AC_CHECK_LIB([svld], [dlopen],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1975 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1976 [AC_CHECK_LIB([dld], [dld_link],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1977 [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1978 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1979 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1980 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1981 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1982 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1983 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1984 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1985
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1986 if test no = "$lt_cv_dlopen"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1987 enable_dlopen=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1988 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1989 enable_dlopen=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1990 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1991
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1992 case $lt_cv_dlopen in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1993 dlopen)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1994 save_CPPFLAGS=$CPPFLAGS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1995 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1996
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1997 save_LDFLAGS=$LDFLAGS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1998 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1999
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2000 save_LIBS=$LIBS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2001 LIBS="$lt_cv_dlopen_libs $LIBS"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2002
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2003 AC_CACHE_CHECK([whether a program can dlopen itself],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2004 lt_cv_dlopen_self, [dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2005 _LT_TRY_DLOPEN_SELF(
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2006 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2007 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2008 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2009
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2010 if test yes = "$lt_cv_dlopen_self"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2011 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2012 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2013 lt_cv_dlopen_self_static, [dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2014 _LT_TRY_DLOPEN_SELF(
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2015 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2016 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2017 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2018 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2019
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2020 CPPFLAGS=$save_CPPFLAGS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2021 LDFLAGS=$save_LDFLAGS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2022 LIBS=$save_LIBS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2023 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2024 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2025
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2026 case $lt_cv_dlopen_self in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2027 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2028 *) enable_dlopen_self=unknown ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2029 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2030
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2031 case $lt_cv_dlopen_self_static in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2032 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2033 *) enable_dlopen_self_static=unknown ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2034 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2035 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2036 _LT_DECL([dlopen_support], [enable_dlopen], [0],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2037 [Whether dlopen is supported])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2038 _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2039 [Whether dlopen of programs is supported])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2040 _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2041 [Whether dlopen of statically linked programs is supported])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2042 ])# LT_SYS_DLOPEN_SELF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2043
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2044 # Old name:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2045 AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2046 dnl aclocal-1.4 backwards compatibility:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2047 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2048
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2049
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2050 # _LT_COMPILER_C_O([TAGNAME])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2051 # ---------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2052 # Check to see if options -c and -o are simultaneously supported by compiler.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2053 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2054 m4_defun([_LT_COMPILER_C_O],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2055 [m4_require([_LT_DECL_SED])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2056 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2057 m4_require([_LT_TAG_COMPILER])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2058 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2059 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2060 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2061 $RM -r conftest 2>/dev/null
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2062 mkdir conftest
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2063 cd conftest
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2064 mkdir out
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2065 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2066
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2067 lt_compiler_flag="-o out/conftest2.$ac_objext"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2068 # Insert the option either (1) after the last *FLAGS variable, or
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2069 # (2) before a word containing "conftest.", or (3) at the end.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2070 # Note that $ac_compile itself does not contain backslashes and begins
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2071 # with a dollar sign (not a hyphen), so the echo should work correctly.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2072 lt_compile=`echo "$ac_compile" | $SED \
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2073 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2074 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2075 -e 's:$: $lt_compiler_flag:'`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2076 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2077 (eval "$lt_compile" 2>out/conftest.err)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2078 ac_status=$?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2079 cat out/conftest.err >&AS_MESSAGE_LOG_FD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2080 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2081 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2082 then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2083 # The compiler can only warn and ignore the option if not recognized
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2084 # So say no if there are warnings
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2085 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2086 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2087 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2088 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2089 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2090 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2091 chmod u+w . 2>&AS_MESSAGE_LOG_FD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2092 $RM conftest*
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2093 # SGI C++ compiler will create directory out/ii_files/ for
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2094 # template instantiation
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2095 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2096 $RM out/* && rmdir out
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2097 cd ..
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2098 $RM -r conftest
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2099 $RM conftest*
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2100 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2101 _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2102 [Does compiler simultaneously support -c and -o options?])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2103 ])# _LT_COMPILER_C_O
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2104
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2105
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2106 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2107 # ----------------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2108 # Check to see if we can do hard links to lock some files if needed
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2109 m4_defun([_LT_COMPILER_FILE_LOCKS],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2110 [m4_require([_LT_ENABLE_LOCK])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2111 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2112 _LT_COMPILER_C_O([$1])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2113
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2114 hard_links=nottested
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2115 if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2116 # do not overwrite the value of need_locks provided by the user
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2117 AC_MSG_CHECKING([if we can lock with hard links])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2118 hard_links=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2119 $RM conftest*
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2120 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2121 touch conftest.a
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2122 ln conftest.a conftest.b 2>&5 || hard_links=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2123 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2124 AC_MSG_RESULT([$hard_links])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2125 if test no = "$hard_links"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2126 AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2127 need_locks=warn
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2128 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2129 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2130 need_locks=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2131 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2132 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2133 ])# _LT_COMPILER_FILE_LOCKS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2134
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2135
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2136 # _LT_CHECK_OBJDIR
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2137 # ----------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2138 m4_defun([_LT_CHECK_OBJDIR],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2139 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2140 [rm -f .libs 2>/dev/null
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2141 mkdir .libs 2>/dev/null
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2142 if test -d .libs; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2143 lt_cv_objdir=.libs
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2144 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2145 # MS-DOS does not allow filenames that begin with a dot.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2146 lt_cv_objdir=_libs
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2147 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2148 rmdir .libs 2>/dev/null])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2149 objdir=$lt_cv_objdir
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2150 _LT_DECL([], [objdir], [0],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2151 [The name of the directory that contains temporary libtool files])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2152 m4_pattern_allow([LT_OBJDIR])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2153 AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/",
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2154 [Define to the sub-directory where libtool stores uninstalled libraries.])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2155 ])# _LT_CHECK_OBJDIR
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2156
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2157
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2158 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2159 # --------------------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2160 # Check hardcoding attributes.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2161 m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2162 [AC_MSG_CHECKING([how to hardcode library paths into programs])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2163 _LT_TAGVAR(hardcode_action, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2164 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2165 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2166 test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2167
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2168 # We can hardcode non-existent directories.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2169 if test no != "$_LT_TAGVAR(hardcode_direct, $1)" &&
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2170 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2171 # have to relink, otherwise we might link with an installed library
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2172 # when we should be linking with a yet-to-be-installed one
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2173 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" &&
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2174 test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2175 # Linking always hardcodes the temporary library directory.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2176 _LT_TAGVAR(hardcode_action, $1)=relink
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2177 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2178 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2179 _LT_TAGVAR(hardcode_action, $1)=immediate
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2180 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2181 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2182 # We cannot hardcode anything, or else we can only hardcode existing
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2183 # directories.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2184 _LT_TAGVAR(hardcode_action, $1)=unsupported
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2185 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2186 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2187
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2188 if test relink = "$_LT_TAGVAR(hardcode_action, $1)" ||
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2189 test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2190 # Fast installation is not supported
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2191 enable_fast_install=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2192 elif test yes = "$shlibpath_overrides_runpath" ||
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2193 test no = "$enable_shared"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2194 # Fast installation is not necessary
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2195 enable_fast_install=needless
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2196 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2197 _LT_TAGDECL([], [hardcode_action], [0],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2198 [How to hardcode a shared library path into an executable])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2199 ])# _LT_LINKER_HARDCODE_LIBPATH
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2200
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2201
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2202 # _LT_CMD_STRIPLIB
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2203 # ----------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2204 m4_defun([_LT_CMD_STRIPLIB],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2205 [m4_require([_LT_DECL_EGREP])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2206 striplib=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2207 old_striplib=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2208 AC_MSG_CHECKING([whether stripping libraries is possible])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2209 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2210 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2211 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2212 AC_MSG_RESULT([yes])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2213 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2214 # FIXME - insert some real tests, host_os isn't really good enough
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2215 case $host_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2216 darwin*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2217 if test -n "$STRIP"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2218 striplib="$STRIP -x"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2219 old_striplib="$STRIP -S"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2220 AC_MSG_RESULT([yes])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2221 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2222 AC_MSG_RESULT([no])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2223 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2224 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2225 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2226 AC_MSG_RESULT([no])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2227 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2228 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2229 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2230 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2231 _LT_DECL([], [striplib], [1])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2232 ])# _LT_CMD_STRIPLIB
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2233
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2234
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2235 # _LT_PREPARE_MUNGE_PATH_LIST
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2236 # ---------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2237 # Make sure func_munge_path_list() is defined correctly.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2238 m4_defun([_LT_PREPARE_MUNGE_PATH_LIST],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2239 [[# func_munge_path_list VARIABLE PATH
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2240 # -----------------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2241 # VARIABLE is name of variable containing _space_ separated list of
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2242 # directories to be munged by the contents of PATH, which is string
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2243 # having a format:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2244 # "DIR[:DIR]:"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2245 # string "DIR[ DIR]" will be prepended to VARIABLE
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2246 # ":DIR[:DIR]"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2247 # string "DIR[ DIR]" will be appended to VARIABLE
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2248 # "DIRP[:DIRP]::[DIRA:]DIRA"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2249 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2250 # "DIRA[ DIRA]" will be appended to VARIABLE
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2251 # "DIR[:DIR]"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2252 # VARIABLE will be replaced by "DIR[ DIR]"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2253 func_munge_path_list ()
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2254 {
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2255 case x@S|@2 in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2256 x)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2257 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2258 *:)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2259 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \$@S|@1\"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2260 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2261 x:*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2262 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2263 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2264 *::*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2265 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2266 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2267 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2268 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2269 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2270 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2271 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2272 }
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2273 ]])# _LT_PREPARE_PATH_LIST
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2274
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2275
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2276 # _LT_SYS_DYNAMIC_LINKER([TAG])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2277 # -----------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2278 # PORTME Fill in your ld.so characteristics
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2279 m4_defun([_LT_SYS_DYNAMIC_LINKER],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2280 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2281 m4_require([_LT_DECL_EGREP])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2282 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2283 m4_require([_LT_DECL_OBJDUMP])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2284 m4_require([_LT_DECL_SED])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2285 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2286 m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2287 AC_MSG_CHECKING([dynamic linker characteristics])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2288 m4_if([$1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2289 [], [
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2290 if test yes = "$GCC"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2291 case $host_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2292 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2293 *) lt_awk_arg='/^libraries:/' ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2294 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2295 case $host_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2296 mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2297 *) lt_sed_strip_eq='s|=/|/|g' ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2298 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2299 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2300 case $lt_search_path_spec in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2301 *\;*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2302 # if the path contains ";" then we assume it to be the separator
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2303 # otherwise default to the standard path separator (i.e. ":") - it is
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2304 # assumed that no part of a normal pathname contains ";" but that should
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2305 # okay in the real world where ";" in dirpaths is itself problematic.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2306 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2307 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2308 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2309 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2310 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2311 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2312 # Ok, now we have the path, separated by spaces, we can step through it
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2313 # and add multilib dir if necessary...
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2314 lt_tmp_lt_search_path_spec=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2315 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2316 # ...but if some path component already ends with the multilib dir we assume
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2317 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2318 case "$lt_multi_os_dir; $lt_search_path_spec " in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2319 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2320 lt_multi_os_dir=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2321 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2322 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2323 for lt_sys_path in $lt_search_path_spec; do
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2324 if test -d "$lt_sys_path$lt_multi_os_dir"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2325 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2326 elif test -n "$lt_multi_os_dir"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2327 test -d "$lt_sys_path" && \
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2328 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2329 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2330 done
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2331 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2332 BEGIN {RS = " "; FS = "/|\n";} {
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2333 lt_foo = "";
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2334 lt_count = 0;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2335 for (lt_i = NF; lt_i > 0; lt_i--) {
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2336 if ($lt_i != "" && $lt_i != ".") {
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2337 if ($lt_i == "..") {
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2338 lt_count++;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2339 } else {
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2340 if (lt_count == 0) {
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2341 lt_foo = "/" $lt_i lt_foo;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2342 } else {
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2343 lt_count--;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2344 }
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2345 }
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2346 }
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2347 }
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2348 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2349 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2350 }'`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2351 # AWK program above erroneously prepends '/' to C:/dos/paths
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2352 # for these hosts.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2353 case $host_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2354 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2355 $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2356 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2357 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2358 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2359 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2360 fi])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2361 library_names_spec=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2362 libname_spec='lib$name'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2363 soname_spec=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2364 shrext_cmds=.so
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2365 postinstall_cmds=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2366 postuninstall_cmds=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2367 finish_cmds=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2368 finish_eval=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2369 shlibpath_var=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2370 shlibpath_overrides_runpath=unknown
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2371 version_type=none
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2372 dynamic_linker="$host_os ld.so"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2373 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2374 need_lib_prefix=unknown
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2375 hardcode_into_libs=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2376
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2377 # when you set need_version to no, make sure it does not cause -set_version
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2378 # flags to be left without arguments
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2379 need_version=unknown
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2380
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2381 AC_ARG_VAR([LT_SYS_LIBRARY_PATH],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2382 [User-defined run-time library search path.])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2383
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2384 case $host_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2385 aix3*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2386 version_type=linux # correct to gnu/linux during the next big refactor
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2387 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2388 shlibpath_var=LIBPATH
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2389
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2390 # AIX 3 has no versioning support, so we append a major version to the name.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2391 soname_spec='$libname$release$shared_ext$major'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2392 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2393
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2394 aix[[4-9]]*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2395 version_type=linux # correct to gnu/linux during the next big refactor
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2396 need_lib_prefix=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2397 need_version=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2398 hardcode_into_libs=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2399 if test ia64 = "$host_cpu"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2400 # AIX 5 supports IA64
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2401 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2402 shlibpath_var=LD_LIBRARY_PATH
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2403 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2404 # With GCC up to 2.95.x, collect2 would create an import file
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2405 # for dependence libraries. The import file would start with
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2406 # the line '#! .'. This would cause the generated library to
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2407 # depend on '.', always an invalid library. This was fixed in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2408 # development snapshots of GCC prior to 3.0.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2409 case $host_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2410 aix4 | aix4.[[01]] | aix4.[[01]].*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2411 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2412 echo ' yes '
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2413 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2414 :
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2415 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2416 can_build_shared=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2417 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2418 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2419 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2420 # Using Import Files as archive members, it is possible to support
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2421 # filename-based versioning of shared library archives on AIX. While
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2422 # this would work for both with and without runtime linking, it will
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2423 # prevent static linking of such archives. So we do filename-based
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2424 # shared library versioning with .so extension only, which is used
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2425 # when both runtime linking and shared linking is enabled.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2426 # Unfortunately, runtime linking may impact performance, so we do
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2427 # not want this to be the default eventually. Also, we use the
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2428 # versioned .so libs for executables only if there is the -brtl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2429 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2430 # To allow for filename-based versioning support, we need to create
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2431 # libNAME.so.V as an archive file, containing:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2432 # *) an Import File, referring to the versioned filename of the
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2433 # archive as well as the shared archive member, telling the
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2434 # bitwidth (32 or 64) of that shared object, and providing the
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2435 # list of exported symbols of that shared object, eventually
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2436 # decorated with the 'weak' keyword
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2437 # *) the shared object with the F_LOADONLY flag set, to really avoid
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2438 # it being seen by the linker.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2439 # At run time we better use the real file rather than another symlink,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2440 # but for link time we create the symlink libNAME.so -> libNAME.so.V
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2441
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2442 case $with_aix_soname,$aix_use_runtimelinking in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2443 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2444 # soname into executable. Probably we can add versioning support to
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2445 # collect2, so additional links can be useful in future.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2446 aix,yes) # traditional libtool
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2447 dynamic_linker='AIX unversionable lib.so'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2448 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2449 # instead of lib<name>.a to let people know that these are not
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2450 # typical AIX shared libraries.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2451 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2452 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2453 aix,no) # traditional AIX only
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2454 dynamic_linker='AIX lib.a[(]lib.so.V[)]'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2455 # We preserve .a as extension for shared libraries through AIX4.2
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2456 # and later when we are not doing run time linking.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2457 library_names_spec='$libname$release.a $libname.a'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2458 soname_spec='$libname$release$shared_ext$major'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2459 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2460 svr4,*) # full svr4 only
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2461 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2462 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2463 # We do not specify a path in Import Files, so LIBPATH fires.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2464 shlibpath_overrides_runpath=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2465 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2466 *,yes) # both, prefer svr4
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2467 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2468 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2469 # unpreferred sharedlib libNAME.a needs extra handling
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2470 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2471 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2472 # We do not specify a path in Import Files, so LIBPATH fires.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2473 shlibpath_overrides_runpath=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2474 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2475 *,no) # both, prefer aix
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2476 dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2477 library_names_spec='$libname$release.a $libname.a'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2478 soname_spec='$libname$release$shared_ext$major'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2479 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2480 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2481 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2482 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2483 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2484 shlibpath_var=LIBPATH
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2485 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2486 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2487
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2488 amigaos*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2489 case $host_cpu in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2490 powerpc)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2491 # Since July 2007 AmigaOS4 officially supports .so libraries.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2492 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2493 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2494 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2495 m68k)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2496 library_names_spec='$libname.ixlibrary $libname.a'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2497 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2498 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; $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'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2499 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2500 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2501 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2502
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2503 beos*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2504 library_names_spec='$libname$shared_ext'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2505 dynamic_linker="$host_os ld.so"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2506 shlibpath_var=LIBRARY_PATH
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2507 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2508
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2509 bsdi[[45]]*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2510 version_type=linux # correct to gnu/linux during the next big refactor
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2511 need_version=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2512 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2513 soname_spec='$libname$release$shared_ext$major'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2514 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2515 shlibpath_var=LD_LIBRARY_PATH
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2516 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2517 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2518 # the default ld.so.conf also contains /usr/contrib/lib and
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2519 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2520 # libtool to hard-code these into programs
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2521 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2522
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2523 cygwin* | mingw* | pw32* | cegcc*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2524 version_type=windows
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2525 shrext_cmds=.dll
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2526 need_version=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2527 need_lib_prefix=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2528
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2529 case $GCC,$cc_basename in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2530 yes,*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2531 # gcc
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2532 library_names_spec='$libname.dll.a'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2533 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2534 postinstall_cmds='base_file=`basename \$file`~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2535 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2536 dldir=$destdir/`dirname \$dlpath`~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2537 test -d \$dldir || mkdir -p \$dldir~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2538 $install_prog $dir/$dlname \$dldir/$dlname~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2539 chmod a+x \$dldir/$dlname~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2540 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2541 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2542 fi'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2543 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2544 dlpath=$dir/\$dldll~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2545 $RM \$dlpath'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2546 shlibpath_overrides_runpath=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2547
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2548 case $host_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2549 cygwin*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2550 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2551 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2552 m4_if([$1], [],[
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2553 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2554 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2555 mingw* | cegcc*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2556 # MinGW DLLs use traditional 'lib' prefix
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2557 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2558 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2559 pw32*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2560 # pw32 DLLs use 'pw' prefix rather than 'lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2561 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2562 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2563 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2564 dynamic_linker='Win32 ld.exe'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2565 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2566
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2567 *,cl*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2568 # Native MSVC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2569 libname_spec='$name'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2570 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2571 library_names_spec='$libname.dll.lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2572
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2573 case $build_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2574 mingw*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2575 sys_lib_search_path_spec=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2576 lt_save_ifs=$IFS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2577 IFS=';'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2578 for lt_path in $LIB
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2579 do
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2580 IFS=$lt_save_ifs
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2581 # Let DOS variable expansion print the short 8.3 style file name.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2582 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2583 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2584 done
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2585 IFS=$lt_save_ifs
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2586 # Convert to MSYS style.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2587 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2588 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2589 cygwin*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2590 # Convert to unix form, then to dos form, then back to unix form
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2591 # but this time dos style (no spaces!) so that the unix form looks
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2592 # like /cygdrive/c/PROGRA~1:/cygdr...
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2593 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2594 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2595 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2596 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2597 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2598 sys_lib_search_path_spec=$LIB
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2599 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2600 # It is most probably a Windows format PATH.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2601 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2602 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2603 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2604 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2605 # FIXME: find the short name or the path components, as spaces are
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2606 # common. (e.g. "Program Files" -> "PROGRA~1")
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2607 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2608 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2609
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2610 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2611 postinstall_cmds='base_file=`basename \$file`~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2612 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2613 dldir=$destdir/`dirname \$dlpath`~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2614 test -d \$dldir || mkdir -p \$dldir~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2615 $install_prog $dir/$dlname \$dldir/$dlname'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2616 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2617 dlpath=$dir/\$dldll~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2618 $RM \$dlpath'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2619 shlibpath_overrides_runpath=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2620 dynamic_linker='Win32 link.exe'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2621 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2622
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2623 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2624 # Assume MSVC wrapper
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2625 library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2626 dynamic_linker='Win32 ld.exe'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2627 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2628 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2629 # FIXME: first we should search . and the directory the executable is in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2630 shlibpath_var=PATH
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2631 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2632
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2633 darwin* | rhapsody*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2634 dynamic_linker="$host_os dyld"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2635 version_type=darwin
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2636 need_lib_prefix=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2637 need_version=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2638 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2639 soname_spec='$libname$release$major$shared_ext'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2640 shlibpath_overrides_runpath=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2641 shlibpath_var=DYLD_LIBRARY_PATH
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2642 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2643 m4_if([$1], [],[
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2644 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2645 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2646 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2647
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2648 dgux*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2649 version_type=linux # correct to gnu/linux during the next big refactor
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2650 need_lib_prefix=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2651 need_version=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2652 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2653 soname_spec='$libname$release$shared_ext$major'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2654 shlibpath_var=LD_LIBRARY_PATH
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2655 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2656
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2657 freebsd* | dragonfly*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2658 # DragonFly does not have aout. When/if they implement a new
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2659 # versioning mechanism, adjust this.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2660 if test -x /usr/bin/objformat; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2661 objformat=`/usr/bin/objformat`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2662 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2663 case $host_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2664 freebsd[[23]].*) objformat=aout ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2665 *) objformat=elf ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2666 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2667 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2668 version_type=freebsd-$objformat
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2669 case $version_type in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2670 freebsd-elf*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2671 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2672 soname_spec='$libname$release$shared_ext$major'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2673 need_version=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2674 need_lib_prefix=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2675 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2676 freebsd-*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2677 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2678 need_version=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2679 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2680 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2681 shlibpath_var=LD_LIBRARY_PATH
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2682 case $host_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2683 freebsd2.*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2684 shlibpath_overrides_runpath=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2685 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2686 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2687 shlibpath_overrides_runpath=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2688 hardcode_into_libs=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2689 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2690 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2691 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2692 shlibpath_overrides_runpath=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2693 hardcode_into_libs=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2694 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2695 *) # from 4.6 on, and DragonFly
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2696 shlibpath_overrides_runpath=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2697 hardcode_into_libs=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2698 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2699 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2700 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2701
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2702 haiku*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2703 version_type=linux # correct to gnu/linux during the next big refactor
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2704 need_lib_prefix=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2705 need_version=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2706 dynamic_linker="$host_os runtime_loader"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2707 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2708 soname_spec='$libname$release$shared_ext$major'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2709 shlibpath_var=LIBRARY_PATH
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2710 shlibpath_overrides_runpath=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2711 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2712 hardcode_into_libs=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2713 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2714
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2715 hpux9* | hpux10* | hpux11*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2716 # Give a soname corresponding to the major version so that dld.sl refuses to
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2717 # link against other versions.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2718 version_type=sunos
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2719 need_lib_prefix=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2720 need_version=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2721 case $host_cpu in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2722 ia64*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2723 shrext_cmds='.so'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2724 hardcode_into_libs=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2725 dynamic_linker="$host_os dld.so"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2726 shlibpath_var=LD_LIBRARY_PATH
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2727 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2728 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2729 soname_spec='$libname$release$shared_ext$major'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2730 if test 32 = "$HPUX_IA64_MODE"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2731 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2732 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2733 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2734 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2735 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2736 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2737 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2738 hppa*64*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2739 shrext_cmds='.sl'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2740 hardcode_into_libs=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2741 dynamic_linker="$host_os dld.sl"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2742 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2743 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2744 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2745 soname_spec='$libname$release$shared_ext$major'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2746 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2747 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2748 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2749 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2750 shrext_cmds='.sl'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2751 dynamic_linker="$host_os dld.sl"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2752 shlibpath_var=SHLIB_PATH
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2753 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2754 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2755 soname_spec='$libname$release$shared_ext$major'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2756 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2757 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2758 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2759 postinstall_cmds='chmod 555 $lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2760 # or fails outright, so override atomically:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2761 install_override_mode=555
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2762 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2763
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2764 interix[[3-9]]*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2765 version_type=linux # correct to gnu/linux during the next big refactor
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2766 need_lib_prefix=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2767 need_version=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2768 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2769 soname_spec='$libname$release$shared_ext$major'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2770 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2771 shlibpath_var=LD_LIBRARY_PATH
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2772 shlibpath_overrides_runpath=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2773 hardcode_into_libs=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2774 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2775
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2776 irix5* | irix6* | nonstopux*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2777 case $host_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2778 nonstopux*) version_type=nonstopux ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2779 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2780 if test yes = "$lt_cv_prog_gnu_ld"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2781 version_type=linux # correct to gnu/linux during the next big refactor
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2782 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2783 version_type=irix
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2784 fi ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2785 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2786 need_lib_prefix=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2787 need_version=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2788 soname_spec='$libname$release$shared_ext$major'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2789 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2790 case $host_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2791 irix5* | nonstopux*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2792 libsuff= shlibsuff=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2793 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2794 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2795 case $LD in # libtool.m4 will add one of these switches to LD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2796 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2797 libsuff= shlibsuff= libmagic=32-bit;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2798 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2799 libsuff=32 shlibsuff=N32 libmagic=N32;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2800 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2801 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2802 *) libsuff= shlibsuff= libmagic=never-match;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2803 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2804 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2805 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2806 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2807 shlibpath_overrides_runpath=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2808 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2809 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2810 hardcode_into_libs=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2811 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2812
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2813 # No shared lib support for Linux oldld, aout, or coff.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2814 linux*oldld* | linux*aout* | linux*coff*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2815 dynamic_linker=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2816 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2817
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2818 linux*android*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2819 version_type=none # Android doesn't support versioned libraries.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2820 need_lib_prefix=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2821 need_version=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2822 library_names_spec='$libname$release$shared_ext'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2823 soname_spec='$libname$release$shared_ext'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2824 finish_cmds=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2825 shlibpath_var=LD_LIBRARY_PATH
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2826 shlibpath_overrides_runpath=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2827
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2828 # This implies no fast_install, which is unacceptable.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2829 # Some rework will be needed to allow for fast_install
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2830 # before this can be enabled.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2831 hardcode_into_libs=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2832
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2833 dynamic_linker='Android linker'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2834 # Don't embed -rpath directories since the linker doesn't support them.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2835 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2836 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2837
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2838 # This must be glibc/ELF.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2839 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2840 version_type=linux # correct to gnu/linux during the next big refactor
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2841 need_lib_prefix=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2842 need_version=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2843 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2844 soname_spec='$libname$release$shared_ext$major'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2845 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2846 shlibpath_var=LD_LIBRARY_PATH
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2847 shlibpath_overrides_runpath=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2848
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2849 # Some binutils ld are patched to set DT_RUNPATH
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2850 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2851 [lt_cv_shlibpath_overrides_runpath=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2852 save_LDFLAGS=$LDFLAGS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2853 save_libdir=$libdir
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2854 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2855 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2856 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2857 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2858 [lt_cv_shlibpath_overrides_runpath=yes])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2859 LDFLAGS=$save_LDFLAGS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2860 libdir=$save_libdir
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2861 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2862 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2863
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2864 # This implies no fast_install, which is unacceptable.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2865 # Some rework will be needed to allow for fast_install
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2866 # before this can be enabled.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2867 hardcode_into_libs=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2868
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2869 # Ideally, we could use ldconfig to report *all* directores which are
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2870 # searched for libraries, however this is still not possible. Aside from not
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2871 # being certain /sbin/ldconfig is available, command
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2872 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2873 # even though it is searched at run-time. Try to do the best guess by
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2874 # appending ld.so.conf contents (and includes) to the search path.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2875 if test -f /etc/ld.so.conf; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2876 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' ' '`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2877 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2878 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2879
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2880 # We used to test for /lib/ld.so.1 and disable shared libraries on
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2881 # powerpc, because MkLinux only supported shared libraries with the
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2882 # GNU dynamic linker. Since this was broken with cross compilers,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2883 # most powerpc-linux boxes support dynamic linking these days and
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2884 # people can always --disable-shared, the test was removed, and we
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2885 # assume the GNU/Linux dynamic linker is in use.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2886 dynamic_linker='GNU/Linux ld.so'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2887 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2888
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2889 netbsd*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2890 version_type=sunos
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2891 need_lib_prefix=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2892 need_version=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2893 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2894 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2895 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2896 dynamic_linker='NetBSD (a.out) ld.so'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2897 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2898 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2899 soname_spec='$libname$release$shared_ext$major'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2900 dynamic_linker='NetBSD ld.elf_so'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2901 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2902 shlibpath_var=LD_LIBRARY_PATH
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2903 shlibpath_overrides_runpath=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2904 hardcode_into_libs=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2905 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2906
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2907 newsos6)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2908 version_type=linux # correct to gnu/linux during the next big refactor
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2909 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2910 shlibpath_var=LD_LIBRARY_PATH
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2911 shlibpath_overrides_runpath=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2912 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2913
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2914 *nto* | *qnx*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2915 version_type=qnx
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2916 need_lib_prefix=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2917 need_version=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2918 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2919 soname_spec='$libname$release$shared_ext$major'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2920 shlibpath_var=LD_LIBRARY_PATH
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2921 shlibpath_overrides_runpath=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2922 hardcode_into_libs=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2923 dynamic_linker='ldqnx.so'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2924 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2925
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2926 openbsd* | bitrig*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2927 version_type=sunos
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2928 sys_lib_dlsearch_path_spec=/usr/lib
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2929 need_lib_prefix=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2930 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2931 need_version=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2932 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2933 need_version=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2934 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2935 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2936 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2937 shlibpath_var=LD_LIBRARY_PATH
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2938 shlibpath_overrides_runpath=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2939 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2940
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2941 os2*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2942 libname_spec='$name'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2943 version_type=windows
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2944 shrext_cmds=.dll
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2945 need_version=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2946 need_lib_prefix=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2947 # OS/2 can only load a DLL with a base name of 8 characters or less.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2948 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2949 v=$($ECHO $release$versuffix | tr -d .-);
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2950 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2951 $ECHO $n$v`$shared_ext'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2952 library_names_spec='${libname}_dll.$libext'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2953 dynamic_linker='OS/2 ld.exe'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2954 shlibpath_var=BEGINLIBPATH
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2955 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2956 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2957 postinstall_cmds='base_file=`basename \$file`~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2958 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2959 dldir=$destdir/`dirname \$dlpath`~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2960 test -d \$dldir || mkdir -p \$dldir~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2961 $install_prog $dir/$dlname \$dldir/$dlname~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2962 chmod a+x \$dldir/$dlname~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2963 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2964 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2965 fi'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2966 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2967 dlpath=$dir/\$dldll~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2968 $RM \$dlpath'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2969 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2970
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2971 osf3* | osf4* | osf5*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2972 version_type=osf
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2973 need_lib_prefix=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2974 need_version=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2975 soname_spec='$libname$release$shared_ext$major'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2976 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2977 shlibpath_var=LD_LIBRARY_PATH
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2978 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2979 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2980 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2981
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2982 rdos*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2983 dynamic_linker=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2984 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2985
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2986 solaris*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2987 version_type=linux # correct to gnu/linux during the next big refactor
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2988 need_lib_prefix=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2989 need_version=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2990 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2991 soname_spec='$libname$release$shared_ext$major'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2992 shlibpath_var=LD_LIBRARY_PATH
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2993 shlibpath_overrides_runpath=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2994 hardcode_into_libs=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2995 # ldd complains unless libraries are executable
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2996 postinstall_cmds='chmod +x $lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2997 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2998
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2999 sunos4*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3000 version_type=sunos
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3001 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3002 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3003 shlibpath_var=LD_LIBRARY_PATH
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3004 shlibpath_overrides_runpath=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3005 if test yes = "$with_gnu_ld"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3006 need_lib_prefix=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3007 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3008 need_version=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3009 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3010
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3011 sysv4 | sysv4.3*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3012 version_type=linux # correct to gnu/linux during the next big refactor
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3013 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3014 soname_spec='$libname$release$shared_ext$major'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3015 shlibpath_var=LD_LIBRARY_PATH
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3016 case $host_vendor in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3017 sni)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3018 shlibpath_overrides_runpath=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3019 need_lib_prefix=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3020 runpath_var=LD_RUN_PATH
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3021 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3022 siemens)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3023 need_lib_prefix=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3024 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3025 motorola)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3026 need_lib_prefix=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3027 need_version=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3028 shlibpath_overrides_runpath=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3029 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3030 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3031 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3032 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3033
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3034 sysv4*MP*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3035 if test -d /usr/nec; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3036 version_type=linux # correct to gnu/linux during the next big refactor
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3037 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3038 soname_spec='$libname$shared_ext.$major'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3039 shlibpath_var=LD_LIBRARY_PATH
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3040 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3041 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3042
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3043 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3044 version_type=sco
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3045 need_lib_prefix=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3046 need_version=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3047 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3048 soname_spec='$libname$release$shared_ext$major'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3049 shlibpath_var=LD_LIBRARY_PATH
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3050 shlibpath_overrides_runpath=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3051 hardcode_into_libs=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3052 if test yes = "$with_gnu_ld"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3053 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3054 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3055 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3056 case $host_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3057 sco3.2v5*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3058 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3059 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3060 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3061 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3062 sys_lib_dlsearch_path_spec='/usr/lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3063 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3064
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3065 tpf*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3066 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3067 version_type=linux # correct to gnu/linux during the next big refactor
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3068 need_lib_prefix=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3069 need_version=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3070 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3071 shlibpath_var=LD_LIBRARY_PATH
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3072 shlibpath_overrides_runpath=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3073 hardcode_into_libs=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3074 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3075
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3076 uts4*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3077 version_type=linux # correct to gnu/linux during the next big refactor
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3078 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3079 soname_spec='$libname$release$shared_ext$major'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3080 shlibpath_var=LD_LIBRARY_PATH
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3081 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3082
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3083 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3084 dynamic_linker=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3085 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3086 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3087 AC_MSG_RESULT([$dynamic_linker])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3088 test no = "$dynamic_linker" && can_build_shared=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3089
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3090 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3091 if test yes = "$GCC"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3092 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3093 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3094
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3095 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3096 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3097 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3098
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3099 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3100 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3101 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3102
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3103 # lt_cv_sys_lib... is unaugmented for libtool script decls...
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3104 lt_cv_sys_lib_dlsearch_path_spec=$sys_lib_dlsearch_path_spec
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3105
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3106 # ..but sys_lib_... needs LT_SYS_LIBRARY_PATH munging for
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3107 # LT_SYS_DLSEARCH_PATH macro in ltdl.m4 to work with the correct paths:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3108 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3109
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3110 _LT_DECL([], [variables_saved_for_relink], [1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3111 [Variables whose values should be saved in libtool wrapper scripts and
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3112 restored at link time])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3113 _LT_DECL([], [need_lib_prefix], [0],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3114 [Do we need the "lib" prefix for modules?])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3115 _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3116 _LT_DECL([], [version_type], [0], [Library versioning type])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3117 _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3118 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3119 _LT_DECL([], [shlibpath_overrides_runpath], [0],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3120 [Is shlibpath searched before the hard-coded library search path?])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3121 _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3122 _LT_DECL([], [library_names_spec], [1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3123 [[List of archive names. First name is the real one, the rest are links.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3124 The last name is the one that the linker finds with -lNAME]])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3125 _LT_DECL([], [soname_spec], [1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3126 [[The coded name of the library, if different from the real name]])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3127 _LT_DECL([], [install_override_mode], [1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3128 [Permission mode override for installation of shared libraries])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3129 _LT_DECL([], [postinstall_cmds], [2],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3130 [Command to use after installation of a shared archive])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3131 _LT_DECL([], [postuninstall_cmds], [2],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3132 [Command to use after uninstallation of a shared archive])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3133 _LT_DECL([], [finish_cmds], [2],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3134 [Commands used to finish a libtool library installation in a directory])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3135 _LT_DECL([], [finish_eval], [1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3136 [[As "finish_cmds", except a single script fragment to be evaled but
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3137 not shown]])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3138 _LT_DECL([], [hardcode_into_libs], [0],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3139 [Whether we should hardcode library paths into libraries])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3140 _LT_DECL([], [sys_lib_search_path_spec], [2],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3141 [Compile-time system search path for libraries])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3142 _LT_DECL([sys_lib_dlsearch_path_spec], [lt_cv_sys_lib_dlsearch_path_spec], [2],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3143 [Run-time system search path for libraries])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3144 ])# _LT_SYS_DYNAMIC_LINKER
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3145
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3146
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3147 # _LT_PATH_TOOL_PREFIX(TOOL)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3148 # --------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3149 # find a file program that can recognize shared library
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3150 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3151 [m4_require([_LT_DECL_EGREP])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3152 AC_MSG_CHECKING([for $1])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3153 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3154 [case $MAGIC_CMD in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3155 [[\\/*] | ?:[\\/]*])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3156 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3157 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3158 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3159 lt_save_MAGIC_CMD=$MAGIC_CMD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3160 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3161 dnl $ac_dummy forces splitting on constant user-supplied paths.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3162 dnl POSIX.2 word splitting is done only on the output of word expansions,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3163 dnl not every word. This closes a longstanding sh security hole.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3164 ac_dummy="m4_if([$2], , $PATH, [$2])"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3165 for ac_dir in $ac_dummy; do
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3166 IFS=$lt_save_ifs
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3167 test -z "$ac_dir" && ac_dir=.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3168 if test -f "$ac_dir/$1"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3169 lt_cv_path_MAGIC_CMD=$ac_dir/"$1"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3170 if test -n "$file_magic_test_file"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3171 case $deplibs_check_method in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3172 "file_magic "*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3173 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3174 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3175 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3176 $EGREP "$file_magic_regex" > /dev/null; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3177 :
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3178 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3179 cat <<_LT_EOF 1>&2
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3180
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3181 *** Warning: the command libtool uses to detect shared libraries,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3182 *** $file_magic_cmd, produces output that libtool cannot recognize.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3183 *** The result is that libtool may fail to recognize shared libraries
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3184 *** as such. This will affect the creation of libtool libraries that
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3185 *** depend on shared libraries, but programs linked with such libtool
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3186 *** libraries will work regardless of this problem. Nevertheless, you
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3187 *** may want to report the problem to your system manager and/or to
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3188 *** bug-libtool@gnu.org
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3189
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3190 _LT_EOF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3191 fi ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3192 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3193 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3194 break
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3195 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3196 done
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3197 IFS=$lt_save_ifs
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3198 MAGIC_CMD=$lt_save_MAGIC_CMD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3199 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3200 esac])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3201 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3202 if test -n "$MAGIC_CMD"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3203 AC_MSG_RESULT($MAGIC_CMD)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3204 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3205 AC_MSG_RESULT(no)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3206 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3207 _LT_DECL([], [MAGIC_CMD], [0],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3208 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3209 ])# _LT_PATH_TOOL_PREFIX
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3210
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3211 # Old name:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3212 AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3213 dnl aclocal-1.4 backwards compatibility:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3214 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3215
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3216
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3217 # _LT_PATH_MAGIC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3218 # --------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3219 # find a file program that can recognize a shared library
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3220 m4_defun([_LT_PATH_MAGIC],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3221 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3222 if test -z "$lt_cv_path_MAGIC_CMD"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3223 if test -n "$ac_tool_prefix"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3224 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3225 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3226 MAGIC_CMD=:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3227 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3228 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3229 ])# _LT_PATH_MAGIC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3230
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3231
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3232 # LT_PATH_LD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3233 # ----------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3234 # find the pathname to the GNU or non-GNU linker
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3235 AC_DEFUN([LT_PATH_LD],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3236 [AC_REQUIRE([AC_PROG_CC])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3237 AC_REQUIRE([AC_CANONICAL_HOST])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3238 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3239 m4_require([_LT_DECL_SED])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3240 m4_require([_LT_DECL_EGREP])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3241 m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3242
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3243 AC_ARG_WITH([gnu-ld],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3244 [AS_HELP_STRING([--with-gnu-ld],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3245 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3246 [test no = "$withval" || with_gnu_ld=yes],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3247 [with_gnu_ld=no])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3248
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3249 ac_prog=ld
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3250 if test yes = "$GCC"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3251 # Check if gcc -print-prog-name=ld gives a path.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3252 AC_MSG_CHECKING([for ld used by $CC])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3253 case $host in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3254 *-*-mingw*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3255 # gcc leaves a trailing carriage return, which upsets mingw
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3256 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3257 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3258 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3259 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3260 case $ac_prog in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3261 # Accept absolute paths.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3262 [[\\/]]* | ?:[[\\/]]*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3263 re_direlt='/[[^/]][[^/]]*/\.\./'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3264 # Canonicalize the pathname of ld
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3265 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3266 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3267 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3268 done
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3269 test -z "$LD" && LD=$ac_prog
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3270 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3271 "")
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3272 # If it fails, then pretend we aren't using GCC.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3273 ac_prog=ld
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3274 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3275 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3276 # If it is relative, then search for the first ld in PATH.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3277 with_gnu_ld=unknown
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3278 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3279 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3280 elif test yes = "$with_gnu_ld"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3281 AC_MSG_CHECKING([for GNU ld])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3282 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3283 AC_MSG_CHECKING([for non-GNU ld])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3284 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3285 AC_CACHE_VAL(lt_cv_path_LD,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3286 [if test -z "$LD"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3287 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3288 for ac_dir in $PATH; do
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3289 IFS=$lt_save_ifs
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3290 test -z "$ac_dir" && ac_dir=.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3291 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3292 lt_cv_path_LD=$ac_dir/$ac_prog
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3293 # Check to see if the program is GNU ld. I'd rather use --version,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3294 # but apparently some variants of GNU ld only accept -v.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3295 # Break only if it was the GNU/non-GNU ld that we prefer.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3296 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3297 *GNU* | *'with BFD'*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3298 test no != "$with_gnu_ld" && break
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3299 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3300 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3301 test yes != "$with_gnu_ld" && break
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3302 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3303 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3304 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3305 done
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3306 IFS=$lt_save_ifs
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3307 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3308 lt_cv_path_LD=$LD # Let the user override the test with a path.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3309 fi])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3310 LD=$lt_cv_path_LD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3311 if test -n "$LD"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3312 AC_MSG_RESULT($LD)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3313 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3314 AC_MSG_RESULT(no)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3315 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3316 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3317 _LT_PATH_LD_GNU
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3318 AC_SUBST([LD])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3319
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3320 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3321 ])# LT_PATH_LD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3322
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3323 # Old names:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3324 AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3325 AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3326 dnl aclocal-1.4 backwards compatibility:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3327 dnl AC_DEFUN([AM_PROG_LD], [])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3328 dnl AC_DEFUN([AC_PROG_LD], [])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3329
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3330
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3331 # _LT_PATH_LD_GNU
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3332 #- --------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3333 m4_defun([_LT_PATH_LD_GNU],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3334 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3335 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3336 case `$LD -v 2>&1 </dev/null` in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3337 *GNU* | *'with BFD'*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3338 lt_cv_prog_gnu_ld=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3339 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3340 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3341 lt_cv_prog_gnu_ld=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3342 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3343 esac])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3344 with_gnu_ld=$lt_cv_prog_gnu_ld
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3345 ])# _LT_PATH_LD_GNU
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3346
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3347
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3348 # _LT_CMD_RELOAD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3349 # --------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3350 # find reload flag for linker
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3351 # -- PORTME Some linkers may need a different reload flag.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3352 m4_defun([_LT_CMD_RELOAD],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3353 [AC_CACHE_CHECK([for $LD option to reload object files],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3354 lt_cv_ld_reload_flag,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3355 [lt_cv_ld_reload_flag='-r'])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3356 reload_flag=$lt_cv_ld_reload_flag
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3357 case $reload_flag in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3358 "" | " "*) ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3359 *) reload_flag=" $reload_flag" ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3360 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3361 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3362 case $host_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3363 cygwin* | mingw* | pw32* | cegcc*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3364 if test yes != "$GCC"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3365 reload_cmds=false
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3366 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3367 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3368 darwin*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3369 if test yes = "$GCC"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3370 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3371 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3372 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3373 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3374 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3375 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3376 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3377 _LT_TAGDECL([], [reload_cmds], [2])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3378 ])# _LT_CMD_RELOAD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3379
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3380
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3381 # _LT_PATH_DD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3382 # -----------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3383 # find a working dd
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3384 m4_defun([_LT_PATH_DD],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3385 [AC_CACHE_CHECK([for a working dd], [ac_cv_path_lt_DD],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3386 [printf 0123456789abcdef0123456789abcdef >conftest.i
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3387 cat conftest.i conftest.i >conftest2.i
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3388 : ${lt_DD:=$DD}
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3389 AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3390 [if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3391 cmp -s conftest.i conftest.out \
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3392 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3393 fi])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3394 rm -f conftest.i conftest2.i conftest.out])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3395 ])# _LT_PATH_DD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3396
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3397
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3398 # _LT_CMD_TRUNCATE
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3399 # ----------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3400 # find command to truncate a binary pipe
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3401 m4_defun([_LT_CMD_TRUNCATE],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3402 [m4_require([_LT_PATH_DD])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3403 AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3404 [printf 0123456789abcdef0123456789abcdef >conftest.i
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3405 cat conftest.i conftest.i >conftest2.i
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3406 lt_cv_truncate_bin=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3407 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3408 cmp -s conftest.i conftest.out \
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3409 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3410 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3411 rm -f conftest.i conftest2.i conftest.out
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3412 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3413 _LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3414 [Command to truncate a binary pipe])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3415 ])# _LT_CMD_TRUNCATE
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3416
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3417
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3418 # _LT_CHECK_MAGIC_METHOD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3419 # ----------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3420 # how to check for library dependencies
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3421 # -- PORTME fill in with the dynamic library characteristics
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3422 m4_defun([_LT_CHECK_MAGIC_METHOD],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3423 [m4_require([_LT_DECL_EGREP])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3424 m4_require([_LT_DECL_OBJDUMP])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3425 AC_CACHE_CHECK([how to recognize dependent libraries],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3426 lt_cv_deplibs_check_method,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3427 [lt_cv_file_magic_cmd='$MAGIC_CMD'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3428 lt_cv_file_magic_test_file=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3429 lt_cv_deplibs_check_method='unknown'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3430 # Need to set the preceding variable on all platforms that support
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3431 # interlibrary dependencies.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3432 # 'none' -- dependencies not supported.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3433 # 'unknown' -- same as none, but documents that we really don't know.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3434 # 'pass_all' -- all dependencies passed with no checks.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3435 # 'test_compile' -- check by making test program.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3436 # 'file_magic [[regex]]' -- check by looking for files in library path
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3437 # that responds to the $file_magic_cmd with a given extended regex.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3438 # If you have 'file' or equivalent on your system and you're not sure
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3439 # whether 'pass_all' will *always* work, you probably want this one.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3440
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3441 case $host_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3442 aix[[4-9]]*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3443 lt_cv_deplibs_check_method=pass_all
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3444 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3445
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3446 beos*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3447 lt_cv_deplibs_check_method=pass_all
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3448 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3449
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3450 bsdi[[45]]*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3451 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3452 lt_cv_file_magic_cmd='/usr/bin/file -L'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3453 lt_cv_file_magic_test_file=/shlib/libc.so
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3454 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3455
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3456 cygwin*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3457 # func_win32_libid is a shell function defined in ltmain.sh
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3458 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3459 lt_cv_file_magic_cmd='func_win32_libid'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3460 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3461
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3462 mingw* | pw32*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3463 # Base MSYS/MinGW do not provide the 'file' command needed by
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3464 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3465 # unless we find 'file', for example because we are cross-compiling.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3466 if ( file / ) >/dev/null 2>&1; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3467 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3468 lt_cv_file_magic_cmd='func_win32_libid'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3469 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3470 # Keep this pattern in sync with the one in func_win32_libid.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3471 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3472 lt_cv_file_magic_cmd='$OBJDUMP -f'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3473 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3474 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3475
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3476 cegcc*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3477 # use the weaker test based on 'objdump'. See mingw*.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3478 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3479 lt_cv_file_magic_cmd='$OBJDUMP -f'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3480 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3481
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3482 darwin* | rhapsody*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3483 lt_cv_deplibs_check_method=pass_all
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3484 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3485
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3486 freebsd* | dragonfly*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3487 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3488 case $host_cpu in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3489 i*86 )
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3490 # Not sure whether the presence of OpenBSD here was a mistake.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3491 # Let's accept both of them until this is cleared up.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3492 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3493 lt_cv_file_magic_cmd=/usr/bin/file
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3494 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3495 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3496 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3497 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3498 lt_cv_deplibs_check_method=pass_all
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3499 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3500 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3501
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3502 haiku*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3503 lt_cv_deplibs_check_method=pass_all
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3504 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3505
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3506 hpux10.20* | hpux11*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3507 lt_cv_file_magic_cmd=/usr/bin/file
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3508 case $host_cpu in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3509 ia64*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3510 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3511 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3512 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3513 hppa*64*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3514 [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]']
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3515 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3516 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3517 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3518 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3519 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3520 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3521 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3522 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3523
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3524 interix[[3-9]]*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3525 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3526 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3527 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3528
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3529 irix5* | irix6* | nonstopux*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3530 case $LD in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3531 *-32|*"-32 ") libmagic=32-bit;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3532 *-n32|*"-n32 ") libmagic=N32;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3533 *-64|*"-64 ") libmagic=64-bit;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3534 *) libmagic=never-match;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3535 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3536 lt_cv_deplibs_check_method=pass_all
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3537 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3538
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3539 # This must be glibc/ELF.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3540 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3541 lt_cv_deplibs_check_method=pass_all
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3542 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3543
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3544 netbsd*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3545 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3546 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3547 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3548 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3549 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3550 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3551
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3552 newos6*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3553 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3554 lt_cv_file_magic_cmd=/usr/bin/file
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3555 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3556 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3557
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3558 *nto* | *qnx*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3559 lt_cv_deplibs_check_method=pass_all
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3560 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3561
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3562 openbsd* | bitrig*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3563 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3564 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3565 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3566 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3567 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3568 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3569
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3570 osf3* | osf4* | osf5*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3571 lt_cv_deplibs_check_method=pass_all
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3572 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3573
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3574 rdos*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3575 lt_cv_deplibs_check_method=pass_all
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3576 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3577
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3578 solaris*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3579 lt_cv_deplibs_check_method=pass_all
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3580 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3581
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3582 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3583 lt_cv_deplibs_check_method=pass_all
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3584 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3585
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3586 sysv4 | sysv4.3*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3587 case $host_vendor in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3588 motorola)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3589 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3590 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3591 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3592 ncr)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3593 lt_cv_deplibs_check_method=pass_all
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3594 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3595 sequent)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3596 lt_cv_file_magic_cmd='/bin/file'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3597 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3598 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3599 sni)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3600 lt_cv_file_magic_cmd='/bin/file'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3601 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3602 lt_cv_file_magic_test_file=/lib/libc.so
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3603 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3604 siemens)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3605 lt_cv_deplibs_check_method=pass_all
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3606 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3607 pc)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3608 lt_cv_deplibs_check_method=pass_all
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3609 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3610 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3611 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3612
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3613 tpf*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3614 lt_cv_deplibs_check_method=pass_all
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3615 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3616 os2*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3617 lt_cv_deplibs_check_method=pass_all
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3618 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3619 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3620 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3621
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3622 file_magic_glob=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3623 want_nocaseglob=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3624 if test "$build" = "$host"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3625 case $host_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3626 mingw* | pw32*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3627 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3628 want_nocaseglob=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3629 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3630 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3631 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3632 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3633 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3634 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3635
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3636 file_magic_cmd=$lt_cv_file_magic_cmd
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3637 deplibs_check_method=$lt_cv_deplibs_check_method
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3638 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3639
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3640 _LT_DECL([], [deplibs_check_method], [1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3641 [Method to check whether dependent libraries are shared objects])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3642 _LT_DECL([], [file_magic_cmd], [1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3643 [Command to use when deplibs_check_method = "file_magic"])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3644 _LT_DECL([], [file_magic_glob], [1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3645 [How to find potential files when deplibs_check_method = "file_magic"])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3646 _LT_DECL([], [want_nocaseglob], [1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3647 [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3648 ])# _LT_CHECK_MAGIC_METHOD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3649
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3650
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3651 # LT_PATH_NM
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3652 # ----------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3653 # find the pathname to a BSD- or MS-compatible name lister
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3654 AC_DEFUN([LT_PATH_NM],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3655 [AC_REQUIRE([AC_PROG_CC])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3656 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3657 [if test -n "$NM"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3658 # Let the user override the test.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3659 lt_cv_path_NM=$NM
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3660 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3661 lt_nm_to_check=${ac_tool_prefix}nm
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3662 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3663 lt_nm_to_check="$lt_nm_to_check nm"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3664 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3665 for lt_tmp_nm in $lt_nm_to_check; do
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3666 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3667 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3668 IFS=$lt_save_ifs
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3669 test -z "$ac_dir" && ac_dir=.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3670 tmp_nm=$ac_dir/$lt_tmp_nm
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3671 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3672 # Check to see if the nm accepts a BSD-compat flag.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3673 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3674 # nm: unknown option "B" ignored
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3675 # Tru64's nm complains that /dev/null is an invalid object file
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3676 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3677 case $build_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3678 mingw*) lt_bad_file=conftest.nm/nofile ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3679 *) lt_bad_file=/dev/null ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3680 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3681 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3682 *$lt_bad_file* | *'Invalid file or object type'*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3683 lt_cv_path_NM="$tmp_nm -B"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3684 break 2
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3685 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3686 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3687 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3688 */dev/null*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3689 lt_cv_path_NM="$tmp_nm -p"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3690 break 2
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3691 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3692 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3693 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3694 continue # so that we can try to find one that supports BSD flags
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3695 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3696 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3697 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3698 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3699 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3700 done
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3701 IFS=$lt_save_ifs
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3702 done
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3703 : ${lt_cv_path_NM=no}
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3704 fi])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3705 if test no != "$lt_cv_path_NM"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3706 NM=$lt_cv_path_NM
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3707 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3708 # Didn't find any BSD compatible name lister, look for dumpbin.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3709 if test -n "$DUMPBIN"; then :
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3710 # Let the user override the test.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3711 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3712 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3713 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3714 *COFF*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3715 DUMPBIN="$DUMPBIN -symbols -headers"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3716 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3717 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3718 DUMPBIN=:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3719 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3720 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3721 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3722 AC_SUBST([DUMPBIN])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3723 if test : != "$DUMPBIN"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3724 NM=$DUMPBIN
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3725 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3726 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3727 test -z "$NM" && NM=nm
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3728 AC_SUBST([NM])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3729 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3730
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3731 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3732 [lt_cv_nm_interface="BSD nm"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3733 echo "int some_variable = 0;" > conftest.$ac_ext
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3734 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3735 (eval "$ac_compile" 2>conftest.err)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3736 cat conftest.err >&AS_MESSAGE_LOG_FD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3737 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3738 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3739 cat conftest.err >&AS_MESSAGE_LOG_FD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3740 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3741 cat conftest.out >&AS_MESSAGE_LOG_FD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3742 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3743 lt_cv_nm_interface="MS dumpbin"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3744 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3745 rm -f conftest*])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3746 ])# LT_PATH_NM
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3747
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3748 # Old names:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3749 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3750 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3751 dnl aclocal-1.4 backwards compatibility:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3752 dnl AC_DEFUN([AM_PROG_NM], [])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3753 dnl AC_DEFUN([AC_PROG_NM], [])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3754
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3755 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3756 # --------------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3757 # how to determine the name of the shared library
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3758 # associated with a specific link library.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3759 # -- PORTME fill in with the dynamic library characteristics
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3760 m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3761 [m4_require([_LT_DECL_EGREP])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3762 m4_require([_LT_DECL_OBJDUMP])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3763 m4_require([_LT_DECL_DLLTOOL])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3764 AC_CACHE_CHECK([how to associate runtime and link libraries],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3765 lt_cv_sharedlib_from_linklib_cmd,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3766 [lt_cv_sharedlib_from_linklib_cmd='unknown'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3767
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3768 case $host_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3769 cygwin* | mingw* | pw32* | cegcc*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3770 # two different shell functions defined in ltmain.sh;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3771 # decide which one to use based on capabilities of $DLLTOOL
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3772 case `$DLLTOOL --help 2>&1` in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3773 *--identify-strict*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3774 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3775 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3776 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3777 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3778 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3779 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3780 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3781 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3782 # fallback: assume linklib IS sharedlib
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3783 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3784 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3785 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3786 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3787 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3788 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3789
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3790 _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3791 [Command to associate shared and link libraries])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3792 ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3793
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3794
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3795 # _LT_PATH_MANIFEST_TOOL
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3796 # ----------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3797 # locate the manifest tool
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3798 m4_defun([_LT_PATH_MANIFEST_TOOL],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3799 [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3800 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3801 AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3802 [lt_cv_path_mainfest_tool=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3803 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3804 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3805 cat conftest.err >&AS_MESSAGE_LOG_FD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3806 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3807 lt_cv_path_mainfest_tool=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3808 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3809 rm -f conftest*])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3810 if test yes != "$lt_cv_path_mainfest_tool"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3811 MANIFEST_TOOL=:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3812 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3813 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3814 ])# _LT_PATH_MANIFEST_TOOL
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3815
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3816
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3817 # _LT_DLL_DEF_P([FILE])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3818 # ---------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3819 # True iff FILE is a Windows DLL '.def' file.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3820 # Keep in sync with func_dll_def_p in the libtool script
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3821 AC_DEFUN([_LT_DLL_DEF_P],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3822 [dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3823 test DEF = "`$SED -n dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3824 -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3825 -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3826 -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3827 -e q dnl Only consider the first "real" line
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3828 $1`" dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3829 ])# _LT_DLL_DEF_P
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3830
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3831
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3832 # LT_LIB_M
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3833 # --------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3834 # check for math library
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3835 AC_DEFUN([LT_LIB_M],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3836 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3837 LIBM=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3838 case $host in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3839 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3840 # These system don't have libm, or don't need it
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3841 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3842 *-ncr-sysv4.3*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3843 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3844 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3845 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3846 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3847 AC_CHECK_LIB(m, cos, LIBM=-lm)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3848 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3849 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3850 AC_SUBST([LIBM])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3851 ])# LT_LIB_M
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3852
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3853 # Old name:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3854 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3855 dnl aclocal-1.4 backwards compatibility:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3856 dnl AC_DEFUN([AC_CHECK_LIBM], [])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3857
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3858
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3859 # _LT_COMPILER_NO_RTTI([TAGNAME])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3860 # -------------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3861 m4_defun([_LT_COMPILER_NO_RTTI],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3862 [m4_require([_LT_TAG_COMPILER])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3863
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3864 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3865
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3866 if test yes = "$GCC"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3867 case $cc_basename in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3868 nvcc*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3869 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3870 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3871 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3872 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3873
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3874 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3875 lt_cv_prog_compiler_rtti_exceptions,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3876 [-fno-rtti -fno-exceptions], [],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3877 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3878 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3879 _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3880 [Compiler flag to turn off builtin functions])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3881 ])# _LT_COMPILER_NO_RTTI
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3882
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3883
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3884 # _LT_CMD_GLOBAL_SYMBOLS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3885 # ----------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3886 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3887 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3888 AC_REQUIRE([AC_PROG_CC])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3889 AC_REQUIRE([AC_PROG_AWK])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3890 AC_REQUIRE([LT_PATH_NM])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3891 AC_REQUIRE([LT_PATH_LD])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3892 m4_require([_LT_DECL_SED])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3893 m4_require([_LT_DECL_EGREP])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3894 m4_require([_LT_TAG_COMPILER])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3895
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3896 # Check for command to grab the raw symbol name followed by C symbol from nm.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3897 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3898 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3899 [
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3900 # These are sane defaults that work on at least a few old systems.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3901 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3902
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3903 # Character class describing NM global symbol codes.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3904 symcode='[[BCDEGRST]]'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3905
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3906 # Regexp to match symbols that can be accessed directly from C.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3907 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3908
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3909 # Define system-specific variables.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3910 case $host_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3911 aix*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3912 symcode='[[BCDT]]'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3913 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3914 cygwin* | mingw* | pw32* | cegcc*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3915 symcode='[[ABCDGISTW]]'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3916 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3917 hpux*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3918 if test ia64 = "$host_cpu"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3919 symcode='[[ABCDEGRST]]'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3920 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3921 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3922 irix* | nonstopux*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3923 symcode='[[BCDEGRST]]'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3924 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3925 osf*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3926 symcode='[[BCDEGQRST]]'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3927 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3928 solaris*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3929 symcode='[[BDRT]]'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3930 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3931 sco3.2v5*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3932 symcode='[[DT]]'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3933 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3934 sysv4.2uw2*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3935 symcode='[[DT]]'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3936 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3937 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3938 symcode='[[ABDT]]'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3939 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3940 sysv4)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3941 symcode='[[DFNSTU]]'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3942 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3943 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3944
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3945 # If we're using GNU nm, then use its standard symbol codes.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3946 case `$NM -V 2>&1` in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3947 *GNU* | *'with BFD'*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3948 symcode='[[ABCDGIRSTW]]' ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3949 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3950
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3951 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3952 # Gets list of data symbols to import.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3953 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3954 # Adjust the below global symbol transforms to fixup imported variables.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3955 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3956 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3957 lt_c_name_lib_hook="\
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3958 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3959 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3960 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3961 # Disable hooks by default.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3962 lt_cv_sys_global_symbol_to_import=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3963 lt_cdecl_hook=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3964 lt_c_name_hook=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3965 lt_c_name_lib_hook=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3966 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3967
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3968 # Transform an extracted symbol line into a proper C declaration.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3969 # Some systems (esp. on ia64) link data and code symbols differently,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3970 # so use this general approach.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3971 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3972 $lt_cdecl_hook\
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3973 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3974 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3975
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3976 # Transform an extracted symbol line into symbol name and symbol address
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3977 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3978 $lt_c_name_hook\
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3979 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3980 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3981
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3982 # Transform an extracted symbol line into symbol name with lib prefix and
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3983 # symbol address.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3984 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3985 $lt_c_name_lib_hook\
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3986 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3987 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3988 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3989
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3990 # Handle CRLF in mingw tool chain
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3991 opt_cr=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3992 case $build_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3993 mingw*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3994 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3995 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3996 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3997
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3998 # Try without a prefix underscore, then with it.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3999 for ac_symprfx in "" "_"; do
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4000
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4001 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4002 symxfrm="\\1 $ac_symprfx\\2 \\2"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4003
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4004 # Write the raw and C identifiers.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4005 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4006 # Fake it for dumpbin and say T for any non-static function,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4007 # D for any global variable and I for any imported variable.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4008 # Also find C++ and __fastcall symbols from MSVC++,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4009 # which start with @ or ?.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4010 lt_cv_sys_global_symbol_pipe="$AWK ['"\
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4011 " {last_section=section; section=\$ 3};"\
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4012 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4013 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4014 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4015 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4016 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4017 " \$ 0!~/External *\|/{next};"\
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4018 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4019 " {if(hide[section]) next};"\
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4020 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4021 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4022 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4023 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4024 " ' prfx=^$ac_symprfx]"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4025 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4026 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4027 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4028 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4029
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4030 # Check to see that the pipe works correctly.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4031 pipe_works=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4032
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4033 rm -f conftest*
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4034 cat > conftest.$ac_ext <<_LT_EOF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4035 #ifdef __cplusplus
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4036 extern "C" {
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4037 #endif
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4038 char nm_test_var;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4039 void nm_test_func(void);
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4040 void nm_test_func(void){}
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4041 #ifdef __cplusplus
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4042 }
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4043 #endif
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4044 int main(){nm_test_var='a';nm_test_func();return(0);}
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4045 _LT_EOF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4046
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4047 if AC_TRY_EVAL(ac_compile); then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4048 # Now try to grab the symbols.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4049 nlist=conftest.nm
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4050 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4051 # Try sorting and uniquifying the output.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4052 if sort "$nlist" | uniq > "$nlist"T; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4053 mv -f "$nlist"T "$nlist"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4054 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4055 rm -f "$nlist"T
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4056 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4057
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4058 # Make sure that we snagged all the symbols we need.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4059 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4060 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4061 cat <<_LT_EOF > conftest.$ac_ext
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4062 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4063 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4064 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4065 relocations are performed -- see ld's documentation on pseudo-relocs. */
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4066 # define LT@&t@_DLSYM_CONST
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4067 #elif defined __osf__
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4068 /* This system does not cope well with relocations in const data. */
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4069 # define LT@&t@_DLSYM_CONST
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4070 #else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4071 # define LT@&t@_DLSYM_CONST const
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4072 #endif
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4073
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4074 #ifdef __cplusplus
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4075 extern "C" {
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4076 #endif
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4077
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4078 _LT_EOF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4079 # Now generate the symbol file.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4080 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4081
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4082 cat <<_LT_EOF >> conftest.$ac_ext
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4083
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4084 /* The mapping between symbol names and symbols. */
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4085 LT@&t@_DLSYM_CONST struct {
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4086 const char *name;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4087 void *address;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4088 }
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4089 lt__PROGRAM__LTX_preloaded_symbols[[]] =
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4090 {
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4091 { "@PROGRAM@", (void *) 0 },
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4092 _LT_EOF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4093 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4094 cat <<\_LT_EOF >> conftest.$ac_ext
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4095 {0, (void *) 0}
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4096 };
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4097
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4098 /* This works around a problem in FreeBSD linker */
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4099 #ifdef FREEBSD_WORKAROUND
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4100 static const void *lt_preloaded_setup() {
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4101 return lt__PROGRAM__LTX_preloaded_symbols;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4102 }
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4103 #endif
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4104
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4105 #ifdef __cplusplus
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4106 }
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4107 #endif
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4108 _LT_EOF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4109 # Now try linking the two files.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4110 mv conftest.$ac_objext conftstm.$ac_objext
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4111 lt_globsym_save_LIBS=$LIBS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4112 lt_globsym_save_CFLAGS=$CFLAGS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4113 LIBS=conftstm.$ac_objext
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4114 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4115 if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4116 pipe_works=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4117 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4118 LIBS=$lt_globsym_save_LIBS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4119 CFLAGS=$lt_globsym_save_CFLAGS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4120 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4121 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4122 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4123 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4124 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4125 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4126 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4127 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4128 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4129 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4130 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4131 cat conftest.$ac_ext >&5
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4132 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4133 rm -rf conftest* conftst*
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4134
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4135 # Do not use the global_symbol_pipe unless it works.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4136 if test yes = "$pipe_works"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4137 break
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4138 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4139 lt_cv_sys_global_symbol_pipe=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4140 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4141 done
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4142 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4143 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4144 lt_cv_sys_global_symbol_to_cdecl=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4145 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4146 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4147 AC_MSG_RESULT(failed)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4148 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4149 AC_MSG_RESULT(ok)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4150 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4151
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4152 # Response file support.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4153 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4154 nm_file_list_spec='@'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4155 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4156 nm_file_list_spec='@'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4157 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4158
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4159 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4160 [Take the output of nm and produce a listing of raw symbols and C names])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4161 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4162 [Transform the output of nm in a proper C declaration])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4163 _LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4164 [Transform the output of nm into a list of symbols to manually relocate])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4165 _LT_DECL([global_symbol_to_c_name_address],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4166 [lt_cv_sys_global_symbol_to_c_name_address], [1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4167 [Transform the output of nm in a C name address pair])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4168 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4169 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4170 [Transform the output of nm in a C name address pair when lib prefix is needed])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4171 _LT_DECL([nm_interface], [lt_cv_nm_interface], [1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4172 [The name lister interface])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4173 _LT_DECL([], [nm_file_list_spec], [1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4174 [Specify filename containing input files for $NM])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4175 ]) # _LT_CMD_GLOBAL_SYMBOLS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4176
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4177
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4178 # _LT_COMPILER_PIC([TAGNAME])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4179 # ---------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4180 m4_defun([_LT_COMPILER_PIC],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4181 [m4_require([_LT_TAG_COMPILER])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4182 _LT_TAGVAR(lt_prog_compiler_wl, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4183 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4184 _LT_TAGVAR(lt_prog_compiler_static, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4185
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4186 m4_if([$1], [CXX], [
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4187 # C++ specific cases for pic, static, wl, etc.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4188 if test yes = "$GXX"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4189 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4190 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4191
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4192 case $host_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4193 aix*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4194 # All AIX code is PIC.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4195 if test ia64 = "$host_cpu"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4196 # AIX 5 now supports IA64 processor
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4197 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4198 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4199 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4200 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4201
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4202 amigaos*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4203 case $host_cpu in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4204 powerpc)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4205 # see comment about AmigaOS4 .so support
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4206 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4207 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4208 m68k)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4209 # FIXME: we need at least 68020 code to build shared libraries, but
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4210 # adding the '-m68020' flag to GCC prevents building anything better,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4211 # like '-m68040'.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4212 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4213 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4214 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4215 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4216
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4217 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4218 # PIC is the default for these OSes.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4219 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4220 mingw* | cygwin* | os2* | pw32* | cegcc*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4221 # This hack is so that the source file can tell whether it is being
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4222 # built for inclusion in a dll (and should export symbols for example).
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4223 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4224 # (--disable-auto-import) libraries
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4225 m4_if([$1], [GCJ], [],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4226 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4227 case $host_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4228 os2*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4229 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4230 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4231 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4232 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4233 darwin* | rhapsody*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4234 # PIC is the default on this platform
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4235 # Common symbols not allowed in MH_DYLIB files
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4236 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4237 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4238 *djgpp*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4239 # DJGPP does not support shared libraries at all
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4240 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4241 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4242 haiku*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4243 # PIC is the default for Haiku.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4244 # The "-static" flag exists, but is broken.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4245 _LT_TAGVAR(lt_prog_compiler_static, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4246 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4247 interix[[3-9]]*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4248 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4249 # Instead, we relocate shared libraries at runtime.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4250 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4251 sysv4*MP*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4252 if test -d /usr/nec; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4253 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4254 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4255 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4256 hpux*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4257 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4258 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4259 # sets the default TLS model and affects inlining.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4260 case $host_cpu in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4261 hppa*64*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4262 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4263 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4264 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4265 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4266 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4267 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4268 *qnx* | *nto*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4269 # QNX uses GNU C++, but need to define -shared option too, otherwise
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4270 # it will coredump.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4271 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4272 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4273 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4274 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4275 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4276 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4277 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4278 case $host_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4279 aix[[4-9]]*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4280 # All AIX code is PIC.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4281 if test ia64 = "$host_cpu"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4282 # AIX 5 now supports IA64 processor
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4283 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4284 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4285 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4286 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4287 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4288 chorus*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4289 case $cc_basename in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4290 cxch68*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4291 # Green Hills C++ Compiler
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4292 # _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"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4293 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4294 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4295 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4296 mingw* | cygwin* | os2* | pw32* | cegcc*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4297 # This hack is so that the source file can tell whether it is being
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4298 # built for inclusion in a dll (and should export symbols for example).
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4299 m4_if([$1], [GCJ], [],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4300 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4301 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4302 dgux*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4303 case $cc_basename in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4304 ec++*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4305 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4306 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4307 ghcx*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4308 # Green Hills C++ Compiler
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4309 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4310 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4311 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4312 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4313 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4314 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4315 freebsd* | dragonfly*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4316 # FreeBSD uses GNU C++
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4317 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4318 hpux9* | hpux10* | hpux11*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4319 case $cc_basename in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4320 CC*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4321 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4322 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4323 if test ia64 != "$host_cpu"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4324 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4325 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4326 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4327 aCC*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4328 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4329 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4330 case $host_cpu in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4331 hppa*64*|ia64*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4332 # +Z the default
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4333 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4334 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4335 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4336 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4337 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4338 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4339 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4340 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4341 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4342 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4343 interix*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4344 # This is c89, which is MS Visual C++ (no shared libs)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4345 # Anyone wants to do a port?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4346 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4347 irix5* | irix6* | nonstopux*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4348 case $cc_basename in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4349 CC*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4350 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4351 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4352 # CC pic flag -KPIC is the default.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4353 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4354 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4355 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4356 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4357 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4358 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4359 case $cc_basename in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4360 KCC*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4361 # KAI C++ Compiler
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4362 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4363 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4364 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4365 ecpc* )
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4366 # old Intel C++ for x86_64, which still supported -KPIC.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4367 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4368 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4369 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4370 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4371 icpc* )
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4372 # Intel C++, used to be incompatible with GCC.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4373 # ICC 10 doesn't accept -KPIC any more.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4374 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4375 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4376 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4377 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4378 pgCC* | pgcpp*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4379 # Portland Group C++ compiler
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4380 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4381 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4382 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4383 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4384 cxx*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4385 # Compaq C++
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4386 # Make sure the PIC flag is empty. It appears that all Alpha
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4387 # Linux and Compaq Tru64 Unix objects are PIC.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4388 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4389 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4390 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4391 xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4392 # IBM XL 8.0, 9.0 on PPC and BlueGene
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4393 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4394 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4395 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4396 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4397 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4398 case `$CC -V 2>&1 | sed 5q` in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4399 *Sun\ C*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4400 # Sun C++ 5.9
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4401 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4402 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4403 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4404 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4405 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4406 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4407 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4408 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4409 lynxos*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4410 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4411 m88k*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4412 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4413 mvs*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4414 case $cc_basename in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4415 cxx*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4416 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4417 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4418 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4419 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4420 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4421 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4422 netbsd*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4423 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4424 *qnx* | *nto*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4425 # QNX uses GNU C++, but need to define -shared option too, otherwise
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4426 # it will coredump.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4427 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4428 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4429 osf3* | osf4* | osf5*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4430 case $cc_basename in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4431 KCC*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4432 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4433 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4434 RCC*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4435 # Rational C++ 2.4.1
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4436 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4437 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4438 cxx*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4439 # Digital/Compaq C++
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4440 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4441 # Make sure the PIC flag is empty. It appears that all Alpha
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4442 # Linux and Compaq Tru64 Unix objects are PIC.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4443 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4444 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4445 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4446 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4447 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4448 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4449 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4450 psos*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4451 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4452 solaris*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4453 case $cc_basename in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4454 CC* | sunCC*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4455 # Sun C++ 4.2, 5.x and Centerline C++
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4456 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4457 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4458 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4459 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4460 gcx*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4461 # Green Hills C++ Compiler
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4462 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4463 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4464 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4465 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4466 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4467 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4468 sunos4*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4469 case $cc_basename in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4470 CC*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4471 # Sun C++ 4.x
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4472 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4473 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4474 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4475 lcc*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4476 # Lucid
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4477 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4478 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4479 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4480 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4481 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4482 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4483 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4484 case $cc_basename in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4485 CC*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4486 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4487 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4488 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4489 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4490 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4491 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4492 tandem*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4493 case $cc_basename in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4494 NCC*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4495 # NonStop-UX NCC 3.20
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4496 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4497 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4498 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4499 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4500 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4501 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4502 vxworks*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4503 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4504 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4505 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4506 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4507 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4508 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4509 ],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4510 [
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4511 if test yes = "$GCC"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4512 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4513 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4514
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4515 case $host_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4516 aix*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4517 # All AIX code is PIC.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4518 if test ia64 = "$host_cpu"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4519 # AIX 5 now supports IA64 processor
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4520 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4521 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4522 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4523 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4524
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4525 amigaos*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4526 case $host_cpu in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4527 powerpc)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4528 # see comment about AmigaOS4 .so support
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4529 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4530 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4531 m68k)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4532 # FIXME: we need at least 68020 code to build shared libraries, but
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4533 # adding the '-m68020' flag to GCC prevents building anything better,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4534 # like '-m68040'.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4535 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4536 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4537 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4538 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4539
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4540 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4541 # PIC is the default for these OSes.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4542 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4543
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4544 mingw* | cygwin* | pw32* | os2* | cegcc*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4545 # This hack is so that the source file can tell whether it is being
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4546 # built for inclusion in a dll (and should export symbols for example).
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4547 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4548 # (--disable-auto-import) libraries
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4549 m4_if([$1], [GCJ], [],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4550 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4551 case $host_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4552 os2*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4553 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4554 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4555 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4556 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4557
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4558 darwin* | rhapsody*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4559 # PIC is the default on this platform
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4560 # Common symbols not allowed in MH_DYLIB files
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4561 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4562 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4563
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4564 haiku*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4565 # PIC is the default for Haiku.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4566 # The "-static" flag exists, but is broken.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4567 _LT_TAGVAR(lt_prog_compiler_static, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4568 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4569
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4570 hpux*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4571 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4572 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4573 # sets the default TLS model and affects inlining.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4574 case $host_cpu in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4575 hppa*64*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4576 # +Z the default
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4577 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4578 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4579 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4580 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4581 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4582 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4583
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4584 interix[[3-9]]*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4585 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4586 # Instead, we relocate shared libraries at runtime.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4587 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4588
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4589 msdosdjgpp*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4590 # Just because we use GCC doesn't mean we suddenly get shared libraries
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4591 # on systems that don't support them.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4592 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4593 enable_shared=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4594 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4595
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4596 *nto* | *qnx*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4597 # QNX uses GNU C++, but need to define -shared option too, otherwise
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4598 # it will coredump.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4599 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4600 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4601
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4602 sysv4*MP*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4603 if test -d /usr/nec; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4604 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4605 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4606 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4607
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4608 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4609 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4610 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4611 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4612
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4613 case $cc_basename in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4614 nvcc*) # Cuda Compiler Driver 2.2
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4615 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4616 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4617 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4618 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4619 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4620 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4621 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4622 # PORTME Check for flag to pass linker flags through the system compiler.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4623 case $host_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4624 aix*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4625 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4626 if test ia64 = "$host_cpu"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4627 # AIX 5 now supports IA64 processor
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4628 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4629 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4630 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4631 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4632 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4633
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4634 darwin* | rhapsody*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4635 # PIC is the default on this platform
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4636 # Common symbols not allowed in MH_DYLIB files
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4637 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4638 case $cc_basename in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4639 nagfor*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4640 # NAG Fortran compiler
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4641 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4642 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4643 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4644 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4645 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4646 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4647
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4648 mingw* | cygwin* | pw32* | os2* | cegcc*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4649 # This hack is so that the source file can tell whether it is being
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4650 # built for inclusion in a dll (and should export symbols for example).
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4651 m4_if([$1], [GCJ], [],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4652 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4653 case $host_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4654 os2*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4655 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4656 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4657 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4658 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4659
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4660 hpux9* | hpux10* | hpux11*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4661 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4662 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4663 # not for PA HP-UX.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4664 case $host_cpu in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4665 hppa*64*|ia64*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4666 # +Z the default
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4667 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4668 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4669 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4670 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4671 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4672 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4673 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4674 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4675
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4676 irix5* | irix6* | nonstopux*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4677 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4678 # PIC (with -KPIC) is the default.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4679 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4680 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4681
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4682 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4683 case $cc_basename in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4684 # old Intel for x86_64, which still supported -KPIC.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4685 ecc*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4686 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4687 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4688 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4689 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4690 # icc used to be incompatible with GCC.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4691 # ICC 10 doesn't accept -KPIC any more.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4692 icc* | ifort*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4693 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4694 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4695 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4696 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4697 # Lahey Fortran 8.1.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4698 lf95*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4699 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4700 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4701 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4702 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4703 nagfor*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4704 # NAG Fortran compiler
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4705 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4706 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4707 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4708 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4709 tcc*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4710 # Fabrice Bellard et al's Tiny C Compiler
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4711 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4712 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4713 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4714 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4715 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4716 # Portland Group compilers (*not* the Pentium gcc compiler,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4717 # which looks to be a dead project)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4718 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4719 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4720 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4721 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4722 ccc*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4723 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4724 # All Alpha code is PIC.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4725 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4726 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4727 xl* | bgxl* | bgf* | mpixl*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4728 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4729 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4730 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4731 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4732 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4733 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4734 case `$CC -V 2>&1 | sed 5q` in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4735 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4736 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4737 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4738 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4739 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4740 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4741 *Sun\ F* | *Sun*Fortran*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4742 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4743 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4744 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4745 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4746 *Sun\ C*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4747 # Sun C 5.9
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4748 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4749 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4750 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4751 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4752 *Intel*\ [[CF]]*Compiler*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4753 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4754 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4755 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4756 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4757 *Portland\ Group*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4758 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4759 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4760 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4761 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4762 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4763 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4764 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4765 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4766
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4767 newsos6)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4768 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4769 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4770 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4771
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4772 *nto* | *qnx*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4773 # QNX uses GNU C++, but need to define -shared option too, otherwise
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4774 # it will coredump.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4775 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4776 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4777
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4778 osf3* | osf4* | osf5*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4779 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4780 # All OSF/1 code is PIC.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4781 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4782 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4783
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4784 rdos*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4785 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4786 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4787
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4788 solaris*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4789 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4790 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4791 case $cc_basename in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4792 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4793 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4794 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4795 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4796 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4797 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4798
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4799 sunos4*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4800 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4801 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4802 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4803 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4804
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4805 sysv4 | sysv4.2uw2* | sysv4.3*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4806 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4807 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4808 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4809 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4810
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4811 sysv4*MP*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4812 if test -d /usr/nec; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4813 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4814 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4815 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4816 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4817
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4818 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4819 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4820 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4821 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4822 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4823
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4824 unicos*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4825 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4826 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4827 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4828
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4829 uts4*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4830 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4831 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4832 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4833
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4834 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4835 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4836 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4837 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4838 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4839 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4840 case $host_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4841 # For platforms that do not support PIC, -DPIC is meaningless:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4842 *djgpp*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4843 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4844 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4845 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4846 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4847 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4848 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4849
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4850 AC_CACHE_CHECK([for $compiler option to produce PIC],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4851 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4852 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4853 _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4854
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4855 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4856 # Check to make sure the PIC flag actually works.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4857 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4858 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4859 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4860 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4861 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4862 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4863 "" | " "*) ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4864 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4865 esac],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4866 [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4867 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4868 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4869 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4870 [Additional compiler flags for building library objects])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4871
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4872 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4873 [How to pass a linker flag through the compiler])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4874 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4875 # Check to make sure the static flag actually works.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4876 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4877 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4878 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4879 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4880 $lt_tmp_static_flag,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4881 [],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4882 [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4883 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4884 [Compiler flag to prevent dynamic linking])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4885 ])# _LT_COMPILER_PIC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4886
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4887
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4888 # _LT_LINKER_SHLIBS([TAGNAME])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4889 # ----------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4890 # See if the linker supports building shared libraries.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4891 m4_defun([_LT_LINKER_SHLIBS],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4892 [AC_REQUIRE([LT_PATH_LD])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4893 AC_REQUIRE([LT_PATH_NM])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4894 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4895 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4896 m4_require([_LT_DECL_EGREP])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4897 m4_require([_LT_DECL_SED])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4898 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4899 m4_require([_LT_TAG_COMPILER])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4900 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4901 m4_if([$1], [CXX], [
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4902 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4903 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4904 case $host_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4905 aix[[4-9]]*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4906 # If we're using GNU nm, then we don't want the "-C" option.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4907 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4908 # Without the "-l" option, or with the "-B" option, AIX nm treats
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4909 # weak defined symbols like other global defined symbols, whereas
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4910 # GNU nm marks them as "W".
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4911 # While the 'weak' keyword is ignored in the Export File, we need
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4912 # it in the Import File for the 'aix-soname' feature, so we have
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4913 # to replace the "-B" option with "-P" for AIX nm.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4914 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4915 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4916 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4917 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4918 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4919 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4920 pw32*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4921 _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4922 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4923 cygwin* | mingw* | cegcc*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4924 case $cc_basename in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4925 cl*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4926 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4927 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4928 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4929 _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'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4930 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4931 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4932 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4933 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4934 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4935 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4936 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4937 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4938 ], [
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4939 runpath_var=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4940 _LT_TAGVAR(allow_undefined_flag, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4941 _LT_TAGVAR(always_export_symbols, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4942 _LT_TAGVAR(archive_cmds, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4943 _LT_TAGVAR(archive_expsym_cmds, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4944 _LT_TAGVAR(compiler_needs_object, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4945 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4946 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4947 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4948 _LT_TAGVAR(hardcode_automatic, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4949 _LT_TAGVAR(hardcode_direct, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4950 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4951 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4952 _LT_TAGVAR(hardcode_libdir_separator, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4953 _LT_TAGVAR(hardcode_minus_L, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4954 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4955 _LT_TAGVAR(inherit_rpath, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4956 _LT_TAGVAR(link_all_deplibs, $1)=unknown
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4957 _LT_TAGVAR(module_cmds, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4958 _LT_TAGVAR(module_expsym_cmds, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4959 _LT_TAGVAR(old_archive_from_new_cmds, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4960 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4961 _LT_TAGVAR(thread_safe_flag_spec, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4962 _LT_TAGVAR(whole_archive_flag_spec, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4963 # include_expsyms should be a list of space-separated symbols to be *always*
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4964 # included in the symbol list
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4965 _LT_TAGVAR(include_expsyms, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4966 # exclude_expsyms can be an extended regexp of symbols to exclude
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4967 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4968 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4969 # as well as any symbol that contains 'd'.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4970 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4971 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4972 # platforms (ab)use it in PIC code, but their linkers get confused if
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4973 # the symbol is explicitly referenced. Since portable code cannot
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4974 # rely on this symbol name, it's probably fine to never include it in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4975 # preloaded symbol tables.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4976 # Exclude shared library initialization/finalization symbols.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4977 dnl Note also adjust exclude_expsyms for C++ above.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4978 extract_expsyms_cmds=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4979
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4980 case $host_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4981 cygwin* | mingw* | pw32* | cegcc*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4982 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4983 # When not using gcc, we currently assume that we are using
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4984 # Microsoft Visual C++.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4985 if test yes != "$GCC"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4986 with_gnu_ld=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4987 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4988 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4989 interix*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4990 # we just hope/assume this is gcc and not c89 (= MSVC++)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4991 with_gnu_ld=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4992 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4993 openbsd* | bitrig*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4994 with_gnu_ld=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4995 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4996 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4997
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4998 _LT_TAGVAR(ld_shlibs, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4999
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5000 # On some targets, GNU ld is compatible enough with the native linker
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5001 # that we're better off using the native interface for both.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5002 lt_use_gnu_ld_interface=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5003 if test yes = "$with_gnu_ld"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5004 case $host_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5005 aix*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5006 # The AIX port of GNU ld has always aspired to compatibility
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5007 # with the native linker. However, as the warning in the GNU ld
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5008 # block says, versions before 2.19.5* couldn't really create working
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5009 # shared libraries, regardless of the interface used.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5010 case `$LD -v 2>&1` in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5011 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5012 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5013 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5014 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5015 lt_use_gnu_ld_interface=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5016 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5017 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5018 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5019 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5020 lt_use_gnu_ld_interface=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5021 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5022 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5023 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5024
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5025 if test yes = "$lt_use_gnu_ld_interface"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5026 # If archive_cmds runs LD, not CC, wlarc should be empty
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5027 wlarc='$wl'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5028
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5029 # Set some defaults for GNU ld with shared library support. These
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5030 # are reset later if shared libraries are not supported. Putting them
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5031 # here allows them to be overridden if necessary.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5032 runpath_var=LD_RUN_PATH
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5033 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5034 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5035 # ancient GNU ld didn't support --whole-archive et. al.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5036 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5037 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5038 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5039 _LT_TAGVAR(whole_archive_flag_spec, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5040 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5041 supports_anon_versioning=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5042 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5043 *GNU\ gold*) supports_anon_versioning=yes ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5044 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5045 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5046 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5047 *\ 2.11.*) ;; # other 2.11 versions
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5048 *) supports_anon_versioning=yes ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5049 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5050
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5051 # See if GNU ld supports shared libraries.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5052 case $host_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5053 aix[[3-9]]*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5054 # On AIX/PPC, the GNU linker is very broken
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5055 if test ia64 != "$host_cpu"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5056 _LT_TAGVAR(ld_shlibs, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5057 cat <<_LT_EOF 1>&2
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5058
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5059 *** Warning: the GNU linker, at least up to release 2.19, is reported
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5060 *** to be unable to reliably create shared libraries on AIX.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5061 *** Therefore, libtool is disabling shared libraries support. If you
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5062 *** really care for shared libraries, you may want to install binutils
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5063 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5064 *** You will then need to restart the configuration process.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5065
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5066 _LT_EOF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5067 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5068 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5069
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5070 amigaos*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5071 case $host_cpu in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5072 powerpc)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5073 # see comment about AmigaOS4 .so support
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5074 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5075 _LT_TAGVAR(archive_expsym_cmds, $1)=''
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5076 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5077 m68k)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5078 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5079 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5080 _LT_TAGVAR(hardcode_minus_L, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5081 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5082 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5083 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5084
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5085 beos*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5086 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5087 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5088 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5089 # support --undefined. This deserves some investigation. FIXME
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5090 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5091 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5092 _LT_TAGVAR(ld_shlibs, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5093 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5094 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5095
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5096 cygwin* | mingw* | pw32* | cegcc*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5097 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5098 # as there is no search path for DLLs.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5099 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5100 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5101 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5102 _LT_TAGVAR(always_export_symbols, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5103 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5104 _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'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5105 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5106
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5107 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5108 _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'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5109 # If the export-symbols file already is a .def file, use it as
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5110 # is; otherwise, prepend EXPORTS...
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5111 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5112 cp $export_symbols $output_objdir/$soname.def;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5113 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5114 echo EXPORTS > $output_objdir/$soname.def;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5115 cat $export_symbols >> $output_objdir/$soname.def;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5116 fi~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5117 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5118 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5119 _LT_TAGVAR(ld_shlibs, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5120 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5121 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5122
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5123 haiku*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5124 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5125 _LT_TAGVAR(link_all_deplibs, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5126 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5127
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5128 os2*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5129 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5130 _LT_TAGVAR(hardcode_minus_L, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5131 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5132 shrext_cmds=.dll
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5133 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5134 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5135 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5136 $ECHO EXPORTS >> $output_objdir/$libname.def~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5137 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5138 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5139 emximp -o $lib $output_objdir/$libname.def'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5140 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5141 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5142 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5143 $ECHO EXPORTS >> $output_objdir/$libname.def~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5144 prefix_cmds="$SED"~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5145 if test EXPORTS = "`$SED 1q $export_symbols`"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5146 prefix_cmds="$prefix_cmds -e 1d";
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5147 fi~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5148 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5149 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5150 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5151 emximp -o $lib $output_objdir/$libname.def'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5152 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5153 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5154 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5155
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5156 interix[[3-9]]*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5157 _LT_TAGVAR(hardcode_direct, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5158 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5159 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5160 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5161 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5162 # Instead, shared libraries are loaded at an image base (0x10000000 by
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5163 # default) and relocated if they conflict, which is a slow very memory
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5164 # consuming and fragmenting process. To avoid this, we pick a random,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5165 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5166 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5167 _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'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5168 _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'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5169 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5170
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5171 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5172 tmp_diet=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5173 if test linux-dietlibc = "$host_os"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5174 case $cc_basename in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5175 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5176 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5177 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5178 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5179 && test no = "$tmp_diet"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5180 then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5181 tmp_addflag=' $pic_flag'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5182 tmp_sharedflag='-shared'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5183 case $cc_basename,$host_cpu in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5184 pgcc*) # Portland Group C compiler
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5185 _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'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5186 tmp_addflag=' $pic_flag'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5187 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5188 pgf77* | pgf90* | pgf95* | pgfortran*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5189 # Portland Group f77 and f90 compilers
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5190 _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'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5191 tmp_addflag=' $pic_flag -Mnomain' ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5192 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5193 tmp_addflag=' -i_dynamic' ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5194 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5195 tmp_addflag=' -i_dynamic -nofor_main' ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5196 ifc* | ifort*) # Intel Fortran compiler
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5197 tmp_addflag=' -nofor_main' ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5198 lf95*) # Lahey Fortran 8.1
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5199 _LT_TAGVAR(whole_archive_flag_spec, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5200 tmp_sharedflag='--shared' ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5201 nagfor*) # NAGFOR 5.3
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5202 tmp_sharedflag='-Wl,-shared' ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5203 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5204 tmp_sharedflag='-qmkshrobj'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5205 tmp_addflag= ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5206 nvcc*) # Cuda Compiler Driver 2.2
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5207 _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'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5208 _LT_TAGVAR(compiler_needs_object, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5209 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5210 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5211 case `$CC -V 2>&1 | sed 5q` in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5212 *Sun\ C*) # Sun C 5.9
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5213 _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'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5214 _LT_TAGVAR(compiler_needs_object, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5215 tmp_sharedflag='-G' ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5216 *Sun\ F*) # Sun Fortran 8.3
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5217 tmp_sharedflag='-G' ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5218 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5219 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5220
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5221 if test yes = "$supports_anon_versioning"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5222 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5223 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5224 echo "local: *; };" >> $output_objdir/$libname.ver~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5225 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5226 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5227
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5228 case $cc_basename in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5229 tcc*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5230 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5231 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5232 xlf* | bgf* | bgxlf* | mpixlf*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5233 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5234 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5235 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5236 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5237 if test yes = "$supports_anon_versioning"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5238 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5239 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5240 echo "local: *; };" >> $output_objdir/$libname.ver~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5241 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5242 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5243 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5244 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5245 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5246 _LT_TAGVAR(ld_shlibs, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5247 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5248 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5249
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5250 netbsd*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5251 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5252 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5253 wlarc=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5254 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5255 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5256 _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'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5257 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5258 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5259
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5260 solaris*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5261 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5262 _LT_TAGVAR(ld_shlibs, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5263 cat <<_LT_EOF 1>&2
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5264
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5265 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5266 *** create shared libraries on Solaris systems. Therefore, libtool
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5267 *** is disabling shared libraries support. We urge you to upgrade GNU
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5268 *** binutils to release 2.9.1 or newer. Another option is to modify
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5269 *** your PATH or compiler configuration so that the native linker is
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5270 *** used, and then restart.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5271
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5272 _LT_EOF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5273 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5274 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5275 _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'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5276 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5277 _LT_TAGVAR(ld_shlibs, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5278 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5279 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5280
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5281 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5282 case `$LD -v 2>&1` in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5283 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5284 _LT_TAGVAR(ld_shlibs, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5285 cat <<_LT_EOF 1>&2
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5286
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5287 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5288 *** reliably create shared libraries on SCO systems. Therefore, libtool
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5289 *** is disabling shared libraries support. We urge you to upgrade GNU
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5290 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5291 *** your PATH or compiler configuration so that the native linker is
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5292 *** used, and then restart.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5293
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5294 _LT_EOF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5295 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5296 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5297 # For security reasons, it is highly recommended that you always
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5298 # use absolute paths for naming shared libraries, and exclude the
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5299 # DT_RUNPATH tag from executables and libraries. But doing so
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5300 # requires that you compile everything twice, which is a pain.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5301 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5302 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5303 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5304 _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'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5305 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5306 _LT_TAGVAR(ld_shlibs, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5307 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5308 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5309 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5310 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5311
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5312 sunos4*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5313 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5314 wlarc=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5315 _LT_TAGVAR(hardcode_direct, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5316 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5317 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5318
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5319 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5320 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5321 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5322 _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'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5323 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5324 _LT_TAGVAR(ld_shlibs, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5325 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5326 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5327 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5328
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5329 if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5330 runpath_var=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5331 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5332 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5333 _LT_TAGVAR(whole_archive_flag_spec, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5334 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5335 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5336 # PORTME fill in a description of your system's linker (not GNU ld)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5337 case $host_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5338 aix3*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5339 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5340 _LT_TAGVAR(always_export_symbols, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5341 _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5342 # Note: this linker hardcodes the directories in LIBPATH if there
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5343 # are no directories specified by -L.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5344 _LT_TAGVAR(hardcode_minus_L, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5345 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5346 # Neither direct hardcoding nor static linking is supported with a
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5347 # broken collect2.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5348 _LT_TAGVAR(hardcode_direct, $1)=unsupported
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5349 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5350 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5351
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5352 aix[[4-9]]*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5353 if test ia64 = "$host_cpu"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5354 # On IA64, the linker does run time linking by default, so we don't
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5355 # have to do anything special.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5356 aix_use_runtimelinking=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5357 exp_sym_flag='-Bexport'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5358 no_entry_flag=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5359 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5360 # If we're using GNU nm, then we don't want the "-C" option.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5361 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5362 # Without the "-l" option, or with the "-B" option, AIX nm treats
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5363 # weak defined symbols like other global defined symbols, whereas
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5364 # GNU nm marks them as "W".
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5365 # While the 'weak' keyword is ignored in the Export File, we need
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5366 # it in the Import File for the 'aix-soname' feature, so we have
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5367 # to replace the "-B" option with "-P" for AIX nm.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5368 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5369 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5370 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5371 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5372 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5373 aix_use_runtimelinking=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5374
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5375 # Test if we are trying to use run time linking or normal
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5376 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5377 # have runtime linking enabled, and use it for executables.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5378 # For shared libraries, we enable/disable runtime linking
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5379 # depending on the kind of the shared library created -
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5380 # when "with_aix_soname,aix_use_runtimelinking" is:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5381 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5382 # "aix,yes" lib.so shared, rtl:yes, for executables
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5383 # lib.a static archive
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5384 # "both,no" lib.so.V(shr.o) shared, rtl:yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5385 # lib.a(lib.so.V) shared, rtl:no, for executables
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5386 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5387 # lib.a(lib.so.V) shared, rtl:no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5388 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5389 # lib.a static archive
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5390 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5391 for ld_flag in $LDFLAGS; do
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5392 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5393 aix_use_runtimelinking=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5394 break
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5395 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5396 done
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5397 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5398 # With aix-soname=svr4, we create the lib.so.V shared archives only,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5399 # so we don't have lib.a shared libs to link our executables.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5400 # We have to force runtime linking in this case.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5401 aix_use_runtimelinking=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5402 LDFLAGS="$LDFLAGS -Wl,-brtl"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5403 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5404 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5405 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5406
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5407 exp_sym_flag='-bexport'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5408 no_entry_flag='-bnoentry'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5409 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5410
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5411 # When large executables or shared objects are built, AIX ld can
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5412 # have problems creating the table of contents. If linking a library
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5413 # or program results in "error TOC overflow" add -mminimal-toc to
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5414 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5415 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5416
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5417 _LT_TAGVAR(archive_cmds, $1)=''
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5418 _LT_TAGVAR(hardcode_direct, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5419 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5420 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5421 _LT_TAGVAR(link_all_deplibs, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5422 _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5423 case $with_aix_soname,$aix_use_runtimelinking in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5424 aix,*) ;; # traditional, no import file
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5425 svr4,* | *,yes) # use import file
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5426 # The Import File defines what to hardcode.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5427 _LT_TAGVAR(hardcode_direct, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5428 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5429 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5430 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5431
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5432 if test yes = "$GCC"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5433 case $host_os in aix4.[[012]]|aix4.[[012]].*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5434 # We only want to do this on AIX 4.2 and lower, the check
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5435 # below for broken collect2 doesn't work under 4.3+
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5436 collect2name=`$CC -print-prog-name=collect2`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5437 if test -f "$collect2name" &&
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5438 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5439 then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5440 # We have reworked collect2
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5441 :
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5442 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5443 # We have old collect2
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5444 _LT_TAGVAR(hardcode_direct, $1)=unsupported
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5445 # It fails to find uninstalled libraries when the uninstalled
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5446 # path is not listed in the libpath. Setting hardcode_minus_L
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5447 # to unsupported forces relinking
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5448 _LT_TAGVAR(hardcode_minus_L, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5449 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5450 _LT_TAGVAR(hardcode_libdir_separator, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5451 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5452 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5453 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5454 shared_flag='-shared'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5455 if test yes = "$aix_use_runtimelinking"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5456 shared_flag="$shared_flag "'$wl-G'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5457 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5458 # Need to ensure runtime linking is disabled for the traditional
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5459 # shared library, or the linker may eventually find shared libraries
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5460 # /with/ Import File - we do not want to mix them.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5461 shared_flag_aix='-shared'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5462 shared_flag_svr4='-shared $wl-G'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5463 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5464 # not using gcc
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5465 if test ia64 = "$host_cpu"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5466 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5467 # chokes on -Wl,-G. The following line is correct:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5468 shared_flag='-G'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5469 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5470 if test yes = "$aix_use_runtimelinking"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5471 shared_flag='$wl-G'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5472 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5473 shared_flag='$wl-bM:SRE'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5474 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5475 shared_flag_aix='$wl-bM:SRE'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5476 shared_flag_svr4='$wl-G'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5477 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5478 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5479
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5480 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5481 # It seems that -bexpall does not export symbols beginning with
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5482 # underscore (_), so it is better to generate a list of symbols to export.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5483 _LT_TAGVAR(always_export_symbols, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5484 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5485 # Warning - without using the other runtime loading flags (-brtl),
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5486 # -berok will link without error, but may produce a broken library.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5487 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5488 # Determine the default libpath from the value encoded in an
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5489 # empty executable.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5490 _LT_SYS_MODULE_PATH_AIX([$1])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5491 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5492 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5493 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5494 if test ia64 = "$host_cpu"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5495 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5496 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5497 _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"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5498 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5499 # Determine the default libpath from the value encoded in an
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5500 # empty executable.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5501 _LT_SYS_MODULE_PATH_AIX([$1])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5502 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5503 # Warning - without using the other run time loading flags,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5504 # -berok will link without error, but may produce a broken library.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5505 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5506 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5507 if test yes = "$with_gnu_ld"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5508 # We only use this code for GNU lds that support --whole-archive.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5509 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5510 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5511 # Exported symbols can be pulled into shared objects from archives
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5512 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5513 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5514 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5515 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5516 # -brtl affects multiple linker settings, -berok does not and is overridden later
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5517 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5518 if test svr4 != "$with_aix_soname"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5519 # This is similar to how AIX traditionally builds its shared libraries.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5520 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5521 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5522 if test aix != "$with_aix_soname"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5523 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5524 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5525 # used by -dlpreopen to get the symbols
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5526 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5527 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5528 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5529 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5530 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5531 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5532
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5533 amigaos*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5534 case $host_cpu in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5535 powerpc)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5536 # see comment about AmigaOS4 .so support
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5537 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5538 _LT_TAGVAR(archive_expsym_cmds, $1)=''
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5539 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5540 m68k)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5541 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5542 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5543 _LT_TAGVAR(hardcode_minus_L, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5544 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5545 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5546 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5547
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5548 bsdi[[45]]*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5549 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5550 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5551
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5552 cygwin* | mingw* | pw32* | cegcc*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5553 # When not using gcc, we currently assume that we are using
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5554 # Microsoft Visual C++.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5555 # hardcode_libdir_flag_spec is actually meaningless, as there is
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5556 # no search path for DLLs.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5557 case $cc_basename in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5558 cl*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5559 # Native MSVC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5560 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5561 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5562 _LT_TAGVAR(always_export_symbols, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5563 _LT_TAGVAR(file_list_spec, $1)='@'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5564 # Tell ltmain to make .lib files, not .a files.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5565 libext=lib
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5566 # Tell ltmain to make .dll files, not .so files.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5567 shrext_cmds=.dll
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5568 # FIXME: Setting linknames here is a bad hack.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5569 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5570 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5571 cp "$export_symbols" "$output_objdir/$soname.def";
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5572 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5573 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5574 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5575 fi~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5576 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5577 linknames='
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5578 # The linker will not automatically build a static lib if we build a DLL.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5579 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5580 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5581 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5582 _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'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5583 # Don't use ranlib
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5584 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5585 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5586 lt_tool_outputfile="@TOOL_OUTPUT@"~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5587 case $lt_outputfile in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5588 *.exe|*.EXE) ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5589 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5590 lt_outputfile=$lt_outputfile.exe
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5591 lt_tool_outputfile=$lt_tool_outputfile.exe
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5592 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5593 esac~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5594 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5595 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5596 $RM "$lt_outputfile.manifest";
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5597 fi'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5598 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5599 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5600 # Assume MSVC wrapper
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5601 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5602 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5603 # Tell ltmain to make .lib files, not .a files.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5604 libext=lib
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5605 # Tell ltmain to make .dll files, not .so files.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5606 shrext_cmds=.dll
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5607 # FIXME: Setting linknames here is a bad hack.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5608 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5609 # The linker will automatically build a .lib file if we build a DLL.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5610 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5611 # FIXME: Should let the user specify the lib program.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5612 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5613 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5614 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5615 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5616 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5617
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5618 darwin* | rhapsody*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5619 _LT_DARWIN_LINKER_FEATURES($1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5620 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5621
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5622 dgux*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5623 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5624 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5625 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5626 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5627
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5628 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5629 # support. Future versions do this automatically, but an explicit c++rt0.o
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5630 # does not break anything, and helps significantly (at the cost of a little
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5631 # extra space).
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5632 freebsd2.2*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5633 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5634 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5635 _LT_TAGVAR(hardcode_direct, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5636 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5637 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5638
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5639 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5640 freebsd2.*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5641 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5642 _LT_TAGVAR(hardcode_direct, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5643 _LT_TAGVAR(hardcode_minus_L, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5644 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5645 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5646
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5647 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5648 freebsd* | dragonfly*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5649 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5650 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5651 _LT_TAGVAR(hardcode_direct, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5652 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5653 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5654
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5655 hpux9*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5656 if test yes = "$GCC"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5657 _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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5658 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5659 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5660 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5661 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5662 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5663 _LT_TAGVAR(hardcode_direct, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5664
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5665 # hardcode_minus_L: Not really in the search PATH,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5666 # but as the default location of the library.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5667 _LT_TAGVAR(hardcode_minus_L, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5668 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5669 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5670
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5671 hpux10*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5672 if test yes,no = "$GCC,$with_gnu_ld"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5673 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5674 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5675 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5676 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5677 if test no = "$with_gnu_ld"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5678 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5679 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5680 _LT_TAGVAR(hardcode_direct, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5681 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5682 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5683 # hardcode_minus_L: Not really in the search PATH,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5684 # but as the default location of the library.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5685 _LT_TAGVAR(hardcode_minus_L, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5686 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5687 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5688
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5689 hpux11*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5690 if test yes,no = "$GCC,$with_gnu_ld"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5691 case $host_cpu in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5692 hppa*64*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5693 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5694 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5695 ia64*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5696 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5697 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5698 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5699 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5700 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5701 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5702 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5703 case $host_cpu in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5704 hppa*64*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5705 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5706 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5707 ia64*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5708 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5709 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5710 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5711 m4_if($1, [], [
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5712 # Older versions of the 11.00 compiler do not understand -b yet
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5713 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5714 _LT_LINKER_OPTION([if $CC understands -b],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5715 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5716 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5717 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5718 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5719 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5720 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5721 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5722 if test no = "$with_gnu_ld"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5723 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5724 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5725
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5726 case $host_cpu in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5727 hppa*64*|ia64*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5728 _LT_TAGVAR(hardcode_direct, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5729 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5730 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5731 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5732 _LT_TAGVAR(hardcode_direct, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5733 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5734 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5735
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5736 # hardcode_minus_L: Not really in the search PATH,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5737 # but as the default location of the library.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5738 _LT_TAGVAR(hardcode_minus_L, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5739 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5740 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5741 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5742 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5743
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5744 irix5* | irix6* | nonstopux*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5745 if test yes = "$GCC"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5746 _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'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5747 # Try to use the -exported_symbol ld option, if it does not
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5748 # work, assume that -exports_file does not work either and
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5749 # implicitly export all symbols.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5750 # This should be the same for all languages, so no per-tag cache variable.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5751 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5752 [lt_cv_irix_exported_symbol],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5753 [save_LDFLAGS=$LDFLAGS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5754 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5755 AC_LINK_IFELSE(
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5756 [AC_LANG_SOURCE(
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5757 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5758 [C++], [[int foo (void) { return 0; }]],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5759 [Fortran 77], [[
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5760 subroutine foo
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5761 end]],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5762 [Fortran], [[
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5763 subroutine foo
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5764 end]])])],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5765 [lt_cv_irix_exported_symbol=yes],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5766 [lt_cv_irix_exported_symbol=no])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5767 LDFLAGS=$save_LDFLAGS])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5768 if test yes = "$lt_cv_irix_exported_symbol"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5769 _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'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5770 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5771 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5772 _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'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5773 _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'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5774 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5775 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5776 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5777 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5778 _LT_TAGVAR(inherit_rpath, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5779 _LT_TAGVAR(link_all_deplibs, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5780 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5781
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5782 linux*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5783 case $cc_basename in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5784 tcc*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5785 # Fabrice Bellard et al's Tiny C Compiler
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5786 _LT_TAGVAR(ld_shlibs, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5787 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5788 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5789 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5790 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5791
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5792 netbsd*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5793 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5794 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5795 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5796 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5797 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5798 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5799 _LT_TAGVAR(hardcode_direct, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5800 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5801 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5802
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5803 newsos6)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5804 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5805 _LT_TAGVAR(hardcode_direct, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5806 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5807 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5808 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5809 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5810
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5811 *nto* | *qnx*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5812 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5813
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5814 openbsd* | bitrig*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5815 if test -f /usr/libexec/ld.so; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5816 _LT_TAGVAR(hardcode_direct, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5817 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5818 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5819 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5820 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5821 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5822 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5823 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5824 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5825 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5826 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5827 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5828 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5829 _LT_TAGVAR(ld_shlibs, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5830 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5831 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5832
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5833 os2*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5834 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5835 _LT_TAGVAR(hardcode_minus_L, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5836 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5837 shrext_cmds=.dll
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5838 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5839 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5840 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5841 $ECHO EXPORTS >> $output_objdir/$libname.def~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5842 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5843 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5844 emximp -o $lib $output_objdir/$libname.def'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5845 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5846 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5847 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5848 $ECHO EXPORTS >> $output_objdir/$libname.def~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5849 prefix_cmds="$SED"~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5850 if test EXPORTS = "`$SED 1q $export_symbols`"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5851 prefix_cmds="$prefix_cmds -e 1d";
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5852 fi~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5853 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5854 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5855 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5856 emximp -o $lib $output_objdir/$libname.def'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5857 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5858 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5859 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5860
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5861 osf3*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5862 if test yes = "$GCC"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5863 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5864 _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'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5865 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5866 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5867 _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'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5868 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5869 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5870 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5871 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5872 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5873
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5874 osf4* | osf5*) # as osf3* with the addition of -msym flag
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5875 if test yes = "$GCC"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5876 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5877 _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'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5878 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5879 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5880 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5881 _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'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5882 _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~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5883 $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'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5884
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5885 # Both c and cxx compiler support -rpath directly
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5886 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5887 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5888 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5889 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5890 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5891
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5892 solaris*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5893 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5894 if test yes = "$GCC"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5895 wlarc='$wl'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5896 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5897 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5898 $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'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5899 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5900 case `$CC -V 2>&1` in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5901 *"Compilers 5.0"*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5902 wlarc=''
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5903 _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5904 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5905 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5906 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5907 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5908 wlarc='$wl'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5909 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5910 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5911 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5912 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5913 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5914 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5915 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5916 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5917 case $host_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5918 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5919 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5920 # The compiler driver will combine and reorder linker options,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5921 # but understands '-z linker_flag'. GCC discards it without '$wl',
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5922 # but is careful enough not to reorder.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5923 # Supported since Solaris 2.6 (maybe 2.5.1?)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5924 if test yes = "$GCC"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5925 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5926 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5927 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5928 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5929 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5930 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5931 _LT_TAGVAR(link_all_deplibs, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5932 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5933
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5934 sunos4*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5935 if test sequent = "$host_vendor"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5936 # Use $CC to link under sequent, because it throws in some extra .o
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5937 # files that make .init and .fini sections work.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5938 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5939 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5940 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5941 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5942 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5943 _LT_TAGVAR(hardcode_direct, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5944 _LT_TAGVAR(hardcode_minus_L, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5945 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5946 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5947
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5948 sysv4)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5949 case $host_vendor in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5950 sni)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5951 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5952 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5953 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5954 siemens)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5955 ## LD is ld it makes a PLAMLIB
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5956 ## CC just makes a GrossModule.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5957 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5958 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5959 _LT_TAGVAR(hardcode_direct, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5960 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5961 motorola)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5962 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5963 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5964 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5965 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5966 runpath_var='LD_RUN_PATH'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5967 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5968 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5969
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5970 sysv4.3*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5971 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5972 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5973 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5974 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5975
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5976 sysv4*MP*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5977 if test -d /usr/nec; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5978 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5979 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5980 runpath_var=LD_RUN_PATH
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5981 hardcode_runpath_var=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5982 _LT_TAGVAR(ld_shlibs, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5983 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5984 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5985
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5986 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5987 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5988 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5989 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5990 runpath_var='LD_RUN_PATH'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5991
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5992 if test yes = "$GCC"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5993 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5994 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5995 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5996 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5997 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5998 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5999 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6000
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6001 sysv5* | sco3.2v5* | sco5v6*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6002 # Note: We CANNOT use -z defs as we might desire, because we do not
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6003 # link with -lc, and that would cause any symbols used from libc to
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6004 # always be unresolved, which means just about no library would
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6005 # ever link correctly. If we're not using GNU ld we use -z text
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6006 # though, which does catch some bad symbols but isn't as heavy-handed
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6007 # as -z defs.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6008 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6009 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6010 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6011 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6012 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6013 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6014 _LT_TAGVAR(link_all_deplibs, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6015 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6016 runpath_var='LD_RUN_PATH'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6017
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6018 if test yes = "$GCC"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6019 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6020 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6021 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6022 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6023 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6024 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6025 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6026
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6027 uts4*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6028 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6029 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6030 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6031 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6032
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6033 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6034 _LT_TAGVAR(ld_shlibs, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6035 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6036 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6037
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6038 if test sni = "$host_vendor"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6039 case $host in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6040 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6041 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6042 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6043 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6044 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6045 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6046 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6047 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6048 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6049
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6050 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6051
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6052 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6053 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6054 _LT_DECL([], [extract_expsyms_cmds], [2],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6055 [The commands to extract the exported symbol list from a shared archive])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6056
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6057 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6058 # Do we need to explicitly link libc?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6059 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6060 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6061 x|xyes)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6062 # Assume -lc should be added
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6063 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6064
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6065 if test yes,yes = "$GCC,$enable_shared"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6066 case $_LT_TAGVAR(archive_cmds, $1) in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6067 *'~'*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6068 # FIXME: we may have to deal with multi-command sequences.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6069 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6070 '$CC '*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6071 # Test whether the compiler implicitly links with -lc since on some
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6072 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6073 # to ld, don't add -lc before -lgcc.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6074 AC_CACHE_CHECK([whether -lc should be explicitly linked in],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6075 [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6076 [$RM conftest*
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6077 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6078
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6079 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6080 soname=conftest
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6081 lib=conftest
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6082 libobjs=conftest.$ac_objext
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6083 deplibs=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6084 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6085 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6086 compiler_flags=-v
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6087 linker_flags=-v
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6088 verstring=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6089 output_objdir=.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6090 libname=conftest
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6091 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6092 _LT_TAGVAR(allow_undefined_flag, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6093 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6094 then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6095 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6096 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6097 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6098 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6099 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6100 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6101 cat conftest.err 1>&5
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6102 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6103 $RM conftest*
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6104 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6105 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6106 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6107 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6108 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6109 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6110 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6111
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6112 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6113 [Whether or not to add -lc for building shared libraries])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6114 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6115 [enable_shared_with_static_runtimes], [0],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6116 [Whether or not to disallow shared libs when runtime libs are static])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6117 _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6118 [Compiler flag to allow reflexive dlopens])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6119 _LT_TAGDECL([], [whole_archive_flag_spec], [1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6120 [Compiler flag to generate shared objects directly from archives])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6121 _LT_TAGDECL([], [compiler_needs_object], [1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6122 [Whether the compiler copes with passing no objects directly])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6123 _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6124 [Create an old-style archive from a shared archive])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6125 _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6126 [Create a temporary old-style archive to link instead of a shared archive])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6127 _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6128 _LT_TAGDECL([], [archive_expsym_cmds], [2])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6129 _LT_TAGDECL([], [module_cmds], [2],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6130 [Commands used to build a loadable module if different from building
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6131 a shared archive.])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6132 _LT_TAGDECL([], [module_expsym_cmds], [2])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6133 _LT_TAGDECL([], [with_gnu_ld], [1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6134 [Whether we are building with GNU ld or not])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6135 _LT_TAGDECL([], [allow_undefined_flag], [1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6136 [Flag that allows shared libraries with undefined symbols to be built])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6137 _LT_TAGDECL([], [no_undefined_flag], [1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6138 [Flag that enforces no undefined symbols])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6139 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6140 [Flag to hardcode $libdir into a binary during linking.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6141 This must work even if $libdir does not exist])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6142 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6143 [Whether we need a single "-rpath" flag with a separated argument])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6144 _LT_TAGDECL([], [hardcode_direct], [0],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6145 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6146 DIR into the resulting binary])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6147 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6148 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6149 DIR into the resulting binary and the resulting library dependency is
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6150 "absolute", i.e impossible to change by setting $shlibpath_var if the
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6151 library is relocated])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6152 _LT_TAGDECL([], [hardcode_minus_L], [0],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6153 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6154 into the resulting binary])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6155 _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6156 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6157 into the resulting binary])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6158 _LT_TAGDECL([], [hardcode_automatic], [0],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6159 [Set to "yes" if building a shared library automatically hardcodes DIR
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6160 into the library and all subsequent libraries and executables linked
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6161 against it])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6162 _LT_TAGDECL([], [inherit_rpath], [0],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6163 [Set to yes if linker adds runtime paths of dependent libraries
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6164 to runtime path list])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6165 _LT_TAGDECL([], [link_all_deplibs], [0],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6166 [Whether libtool must link a program against all its dependency libraries])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6167 _LT_TAGDECL([], [always_export_symbols], [0],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6168 [Set to "yes" if exported symbols are required])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6169 _LT_TAGDECL([], [export_symbols_cmds], [2],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6170 [The commands to list exported symbols])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6171 _LT_TAGDECL([], [exclude_expsyms], [1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6172 [Symbols that should not be listed in the preloaded symbols])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6173 _LT_TAGDECL([], [include_expsyms], [1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6174 [Symbols that must always be exported])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6175 _LT_TAGDECL([], [prelink_cmds], [2],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6176 [Commands necessary for linking programs (against libraries) with templates])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6177 _LT_TAGDECL([], [postlink_cmds], [2],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6178 [Commands necessary for finishing linking programs])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6179 _LT_TAGDECL([], [file_list_spec], [1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6180 [Specify filename containing input files])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6181 dnl FIXME: Not yet implemented
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6182 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6183 dnl [Compiler flag to generate thread safe objects])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6184 ])# _LT_LINKER_SHLIBS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6185
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6186
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6187 # _LT_LANG_C_CONFIG([TAG])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6188 # ------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6189 # Ensure that the configuration variables for a C compiler are suitably
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6190 # defined. These variables are subsequently used by _LT_CONFIG to write
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6191 # the compiler configuration to 'libtool'.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6192 m4_defun([_LT_LANG_C_CONFIG],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6193 [m4_require([_LT_DECL_EGREP])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6194 lt_save_CC=$CC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6195 AC_LANG_PUSH(C)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6196
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6197 # Source file extension for C test sources.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6198 ac_ext=c
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6199
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6200 # Object file extension for compiled C test sources.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6201 objext=o
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6202 _LT_TAGVAR(objext, $1)=$objext
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6203
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6204 # Code to be used in simple compile tests
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6205 lt_simple_compile_test_code="int some_variable = 0;"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6206
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6207 # Code to be used in simple link tests
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6208 lt_simple_link_test_code='int main(){return(0);}'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6209
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6210 _LT_TAG_COMPILER
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6211 # Save the default compiler, since it gets overwritten when the other
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6212 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6213 compiler_DEFAULT=$CC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6214
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6215 # save warnings/boilerplate of simple test code
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6216 _LT_COMPILER_BOILERPLATE
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6217 _LT_LINKER_BOILERPLATE
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6218
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6219 ## CAVEAT EMPTOR:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6220 ## There is no encapsulation within the following macros, do not change
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6221 ## the running order or otherwise move them around unless you know exactly
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6222 ## what you are doing...
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6223 if test -n "$compiler"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6224 _LT_COMPILER_NO_RTTI($1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6225 _LT_COMPILER_PIC($1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6226 _LT_COMPILER_C_O($1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6227 _LT_COMPILER_FILE_LOCKS($1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6228 _LT_LINKER_SHLIBS($1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6229 _LT_SYS_DYNAMIC_LINKER($1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6230 _LT_LINKER_HARDCODE_LIBPATH($1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6231 LT_SYS_DLOPEN_SELF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6232 _LT_CMD_STRIPLIB
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6233
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6234 # Report what library types will actually be built
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6235 AC_MSG_CHECKING([if libtool supports shared libraries])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6236 AC_MSG_RESULT([$can_build_shared])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6237
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6238 AC_MSG_CHECKING([whether to build shared libraries])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6239 test no = "$can_build_shared" && enable_shared=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6240
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6241 # On AIX, shared libraries and static libraries use the same namespace, and
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6242 # are all built from PIC.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6243 case $host_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6244 aix3*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6245 test yes = "$enable_shared" && enable_static=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6246 if test -n "$RANLIB"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6247 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6248 postinstall_cmds='$RANLIB $lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6249 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6250 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6251
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6252 aix[[4-9]]*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6253 if test ia64 != "$host_cpu"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6254 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6255 yes,aix,yes) ;; # shared object as lib.so file only
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6256 yes,svr4,*) ;; # shared object as lib.so archive member only
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6257 yes,*) enable_static=no ;; # shared object in lib.a archive as well
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6258 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6259 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6260 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6261 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6262 AC_MSG_RESULT([$enable_shared])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6263
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6264 AC_MSG_CHECKING([whether to build static libraries])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6265 # Make sure either enable_shared or enable_static is yes.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6266 test yes = "$enable_shared" || enable_static=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6267 AC_MSG_RESULT([$enable_static])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6268
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6269 _LT_CONFIG($1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6270 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6271 AC_LANG_POP
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6272 CC=$lt_save_CC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6273 ])# _LT_LANG_C_CONFIG
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6274
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6275
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6276 # _LT_LANG_CXX_CONFIG([TAG])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6277 # --------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6278 # Ensure that the configuration variables for a C++ compiler are suitably
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6279 # defined. These variables are subsequently used by _LT_CONFIG to write
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6280 # the compiler configuration to 'libtool'.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6281 m4_defun([_LT_LANG_CXX_CONFIG],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6282 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6283 m4_require([_LT_DECL_EGREP])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6284 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6285 if test -n "$CXX" && ( test no != "$CXX" &&
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6286 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6287 (test g++ != "$CXX"))); then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6288 AC_PROG_CXXCPP
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6289 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6290 _lt_caught_CXX_error=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6291 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6292
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6293 AC_LANG_PUSH(C++)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6294 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6295 _LT_TAGVAR(allow_undefined_flag, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6296 _LT_TAGVAR(always_export_symbols, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6297 _LT_TAGVAR(archive_expsym_cmds, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6298 _LT_TAGVAR(compiler_needs_object, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6299 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6300 _LT_TAGVAR(hardcode_direct, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6301 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6302 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6303 _LT_TAGVAR(hardcode_libdir_separator, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6304 _LT_TAGVAR(hardcode_minus_L, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6305 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6306 _LT_TAGVAR(hardcode_automatic, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6307 _LT_TAGVAR(inherit_rpath, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6308 _LT_TAGVAR(module_cmds, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6309 _LT_TAGVAR(module_expsym_cmds, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6310 _LT_TAGVAR(link_all_deplibs, $1)=unknown
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6311 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6312 _LT_TAGVAR(reload_flag, $1)=$reload_flag
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6313 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6314 _LT_TAGVAR(no_undefined_flag, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6315 _LT_TAGVAR(whole_archive_flag_spec, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6316 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6317
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6318 # Source file extension for C++ test sources.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6319 ac_ext=cpp
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6320
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6321 # Object file extension for compiled C++ test sources.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6322 objext=o
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6323 _LT_TAGVAR(objext, $1)=$objext
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6324
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6325 # No sense in running all these tests if we already determined that
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6326 # the CXX compiler isn't working. Some variables (like enable_shared)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6327 # are currently assumed to apply to all compilers on this platform,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6328 # and will be corrupted by setting them based on a non-working compiler.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6329 if test yes != "$_lt_caught_CXX_error"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6330 # Code to be used in simple compile tests
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6331 lt_simple_compile_test_code="int some_variable = 0;"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6332
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6333 # Code to be used in simple link tests
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6334 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6335
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6336 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6337 _LT_TAG_COMPILER
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6338
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6339 # save warnings/boilerplate of simple test code
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6340 _LT_COMPILER_BOILERPLATE
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6341 _LT_LINKER_BOILERPLATE
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6342
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6343 # Allow CC to be a program name with arguments.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6344 lt_save_CC=$CC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6345 lt_save_CFLAGS=$CFLAGS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6346 lt_save_LD=$LD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6347 lt_save_GCC=$GCC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6348 GCC=$GXX
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6349 lt_save_with_gnu_ld=$with_gnu_ld
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6350 lt_save_path_LD=$lt_cv_path_LD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6351 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6352 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6353 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6354 $as_unset lt_cv_prog_gnu_ld
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6355 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6356 if test -n "${lt_cv_path_LDCXX+set}"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6357 lt_cv_path_LD=$lt_cv_path_LDCXX
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6358 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6359 $as_unset lt_cv_path_LD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6360 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6361 test -z "${LDCXX+set}" || LD=$LDCXX
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6362 CC=${CXX-"c++"}
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6363 CFLAGS=$CXXFLAGS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6364 compiler=$CC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6365 _LT_TAGVAR(compiler, $1)=$CC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6366 _LT_CC_BASENAME([$compiler])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6367
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6368 if test -n "$compiler"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6369 # We don't want -fno-exception when compiling C++ code, so set the
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6370 # no_builtin_flag separately
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6371 if test yes = "$GXX"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6372 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6373 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6374 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6375 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6376
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6377 if test yes = "$GXX"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6378 # Set up default GNU C++ configuration
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6379
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6380 LT_PATH_LD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6381
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6382 # Check if GNU C++ uses GNU ld as the underlying linker, since the
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6383 # archiving commands below assume that GNU ld is being used.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6384 if test yes = "$with_gnu_ld"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6385 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6386 _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'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6387
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6388 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6389 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6390
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6391 # If archive_cmds runs LD, not CC, wlarc should be empty
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6392 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6393 # investigate it a little bit more. (MM)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6394 wlarc='$wl'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6395
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6396 # ancient GNU ld didn't support --whole-archive et. al.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6397 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6398 $GREP 'no-whole-archive' > /dev/null; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6399 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6400 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6401 _LT_TAGVAR(whole_archive_flag_spec, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6402 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6403 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6404 with_gnu_ld=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6405 wlarc=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6406
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6407 # A generic and very simple default shared library creation
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6408 # command for GNU C++ for the case where it uses the native
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6409 # linker, instead of GNU ld. If possible, this setting should
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6410 # overridden to take advantage of the native linker features on
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6411 # the platform it is being used on.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6412 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6413 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6414
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6415 # Commands to make compiler produce verbose output that lists
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6416 # what "hidden" libraries, object files and flags are used when
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6417 # linking a shared library.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6418 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6419
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6420 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6421 GXX=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6422 with_gnu_ld=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6423 wlarc=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6424 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6425
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6426 # PORTME: fill in a description of your system's C++ link characteristics
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6427 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6428 _LT_TAGVAR(ld_shlibs, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6429 case $host_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6430 aix3*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6431 # FIXME: insert proper C++ library support
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6432 _LT_TAGVAR(ld_shlibs, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6433 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6434 aix[[4-9]]*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6435 if test ia64 = "$host_cpu"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6436 # On IA64, the linker does run time linking by default, so we don't
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6437 # have to do anything special.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6438 aix_use_runtimelinking=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6439 exp_sym_flag='-Bexport'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6440 no_entry_flag=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6441 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6442 aix_use_runtimelinking=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6443
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6444 # Test if we are trying to use run time linking or normal
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6445 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6446 # have runtime linking enabled, and use it for executables.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6447 # For shared libraries, we enable/disable runtime linking
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6448 # depending on the kind of the shared library created -
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6449 # when "with_aix_soname,aix_use_runtimelinking" is:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6450 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6451 # "aix,yes" lib.so shared, rtl:yes, for executables
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6452 # lib.a static archive
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6453 # "both,no" lib.so.V(shr.o) shared, rtl:yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6454 # lib.a(lib.so.V) shared, rtl:no, for executables
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6455 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6456 # lib.a(lib.so.V) shared, rtl:no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6457 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6458 # lib.a static archive
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6459 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6460 for ld_flag in $LDFLAGS; do
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6461 case $ld_flag in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6462 *-brtl*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6463 aix_use_runtimelinking=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6464 break
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6465 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6466 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6467 done
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6468 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6469 # With aix-soname=svr4, we create the lib.so.V shared archives only,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6470 # so we don't have lib.a shared libs to link our executables.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6471 # We have to force runtime linking in this case.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6472 aix_use_runtimelinking=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6473 LDFLAGS="$LDFLAGS -Wl,-brtl"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6474 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6475 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6476 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6477
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6478 exp_sym_flag='-bexport'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6479 no_entry_flag='-bnoentry'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6480 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6481
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6482 # When large executables or shared objects are built, AIX ld can
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6483 # have problems creating the table of contents. If linking a library
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6484 # or program results in "error TOC overflow" add -mminimal-toc to
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6485 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6486 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6487
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6488 _LT_TAGVAR(archive_cmds, $1)=''
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6489 _LT_TAGVAR(hardcode_direct, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6490 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6491 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6492 _LT_TAGVAR(link_all_deplibs, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6493 _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6494 case $with_aix_soname,$aix_use_runtimelinking in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6495 aix,*) ;; # no import file
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6496 svr4,* | *,yes) # use import file
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6497 # The Import File defines what to hardcode.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6498 _LT_TAGVAR(hardcode_direct, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6499 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6500 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6501 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6502
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6503 if test yes = "$GXX"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6504 case $host_os in aix4.[[012]]|aix4.[[012]].*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6505 # We only want to do this on AIX 4.2 and lower, the check
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6506 # below for broken collect2 doesn't work under 4.3+
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6507 collect2name=`$CC -print-prog-name=collect2`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6508 if test -f "$collect2name" &&
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6509 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6510 then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6511 # We have reworked collect2
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6512 :
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6513 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6514 # We have old collect2
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6515 _LT_TAGVAR(hardcode_direct, $1)=unsupported
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6516 # It fails to find uninstalled libraries when the uninstalled
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6517 # path is not listed in the libpath. Setting hardcode_minus_L
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6518 # to unsupported forces relinking
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6519 _LT_TAGVAR(hardcode_minus_L, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6520 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6521 _LT_TAGVAR(hardcode_libdir_separator, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6522 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6523 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6524 shared_flag='-shared'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6525 if test yes = "$aix_use_runtimelinking"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6526 shared_flag=$shared_flag' $wl-G'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6527 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6528 # Need to ensure runtime linking is disabled for the traditional
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6529 # shared library, or the linker may eventually find shared libraries
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6530 # /with/ Import File - we do not want to mix them.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6531 shared_flag_aix='-shared'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6532 shared_flag_svr4='-shared $wl-G'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6533 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6534 # not using gcc
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6535 if test ia64 = "$host_cpu"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6536 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6537 # chokes on -Wl,-G. The following line is correct:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6538 shared_flag='-G'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6539 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6540 if test yes = "$aix_use_runtimelinking"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6541 shared_flag='$wl-G'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6542 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6543 shared_flag='$wl-bM:SRE'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6544 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6545 shared_flag_aix='$wl-bM:SRE'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6546 shared_flag_svr4='$wl-G'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6547 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6548 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6549
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6550 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6551 # It seems that -bexpall does not export symbols beginning with
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6552 # underscore (_), so it is better to generate a list of symbols to
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6553 # export.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6554 _LT_TAGVAR(always_export_symbols, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6555 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6556 # Warning - without using the other runtime loading flags (-brtl),
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6557 # -berok will link without error, but may produce a broken library.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6558 # The "-G" linker flag allows undefined symbols.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6559 _LT_TAGVAR(no_undefined_flag, $1)='-bernotok'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6560 # Determine the default libpath from the value encoded in an empty
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6561 # executable.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6562 _LT_SYS_MODULE_PATH_AIX([$1])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6563 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6564
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6565 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6566 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6567 if test ia64 = "$host_cpu"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6568 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6569 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6570 _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"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6571 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6572 # Determine the default libpath from the value encoded in an
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6573 # empty executable.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6574 _LT_SYS_MODULE_PATH_AIX([$1])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6575 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6576 # Warning - without using the other run time loading flags,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6577 # -berok will link without error, but may produce a broken library.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6578 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6579 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6580 if test yes = "$with_gnu_ld"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6581 # We only use this code for GNU lds that support --whole-archive.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6582 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6583 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6584 # Exported symbols can be pulled into shared objects from archives
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6585 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6586 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6587 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6588 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6589 # -brtl affects multiple linker settings, -berok does not and is overridden later
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6590 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6591 if test svr4 != "$with_aix_soname"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6592 # This is similar to how AIX traditionally builds its shared
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6593 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6594 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6595 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6596 if test aix != "$with_aix_soname"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6597 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6598 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6599 # used by -dlpreopen to get the symbols
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6600 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6601 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6602 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6603 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6604 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6605 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6606
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6607 beos*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6608 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6609 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6610 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6611 # support --undefined. This deserves some investigation. FIXME
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6612 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6613 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6614 _LT_TAGVAR(ld_shlibs, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6615 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6616 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6617
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6618 chorus*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6619 case $cc_basename in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6620 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6621 # FIXME: insert proper C++ library support
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6622 _LT_TAGVAR(ld_shlibs, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6623 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6624 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6625 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6626
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6627 cygwin* | mingw* | pw32* | cegcc*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6628 case $GXX,$cc_basename in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6629 ,cl* | no,cl*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6630 # Native MSVC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6631 # hardcode_libdir_flag_spec is actually meaningless, as there is
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6632 # no search path for DLLs.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6633 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6634 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6635 _LT_TAGVAR(always_export_symbols, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6636 _LT_TAGVAR(file_list_spec, $1)='@'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6637 # Tell ltmain to make .lib files, not .a files.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6638 libext=lib
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6639 # Tell ltmain to make .dll files, not .so files.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6640 shrext_cmds=.dll
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6641 # FIXME: Setting linknames here is a bad hack.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6642 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6643 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6644 cp "$export_symbols" "$output_objdir/$soname.def";
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6645 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6646 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6647 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6648 fi~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6649 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6650 linknames='
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6651 # The linker will not automatically build a static lib if we build a DLL.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6652 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6653 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6654 # Don't use ranlib
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6655 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6656 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6657 lt_tool_outputfile="@TOOL_OUTPUT@"~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6658 case $lt_outputfile in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6659 *.exe|*.EXE) ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6660 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6661 lt_outputfile=$lt_outputfile.exe
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6662 lt_tool_outputfile=$lt_tool_outputfile.exe
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6663 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6664 esac~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6665 func_to_tool_file "$lt_outputfile"~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6666 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6667 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6668 $RM "$lt_outputfile.manifest";
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6669 fi'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6670 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6671 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6672 # g++
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6673 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6674 # as there is no search path for DLLs.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6675 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6676 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6677 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6678 _LT_TAGVAR(always_export_symbols, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6679 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6680
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6681 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6682 _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'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6683 # If the export-symbols file already is a .def file, use it as
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6684 # is; otherwise, prepend EXPORTS...
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6685 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6686 cp $export_symbols $output_objdir/$soname.def;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6687 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6688 echo EXPORTS > $output_objdir/$soname.def;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6689 cat $export_symbols >> $output_objdir/$soname.def;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6690 fi~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6691 $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'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6692 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6693 _LT_TAGVAR(ld_shlibs, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6694 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6695 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6696 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6697 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6698 darwin* | rhapsody*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6699 _LT_DARWIN_LINKER_FEATURES($1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6700 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6701
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6702 os2*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6703 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6704 _LT_TAGVAR(hardcode_minus_L, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6705 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6706 shrext_cmds=.dll
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6707 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6708 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6709 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6710 $ECHO EXPORTS >> $output_objdir/$libname.def~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6711 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6712 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6713 emximp -o $lib $output_objdir/$libname.def'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6714 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6715 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6716 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6717 $ECHO EXPORTS >> $output_objdir/$libname.def~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6718 prefix_cmds="$SED"~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6719 if test EXPORTS = "`$SED 1q $export_symbols`"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6720 prefix_cmds="$prefix_cmds -e 1d";
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6721 fi~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6722 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6723 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6724 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6725 emximp -o $lib $output_objdir/$libname.def'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6726 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6727 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6728 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6729
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6730 dgux*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6731 case $cc_basename in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6732 ec++*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6733 # FIXME: insert proper C++ library support
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6734 _LT_TAGVAR(ld_shlibs, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6735 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6736 ghcx*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6737 # Green Hills C++ Compiler
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6738 # FIXME: insert proper C++ library support
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6739 _LT_TAGVAR(ld_shlibs, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6740 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6741 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6742 # FIXME: insert proper C++ library support
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6743 _LT_TAGVAR(ld_shlibs, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6744 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6745 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6746 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6747
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6748 freebsd2.*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6749 # C++ shared libraries reported to be fairly broken before
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6750 # switch to ELF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6751 _LT_TAGVAR(ld_shlibs, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6752 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6753
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6754 freebsd-elf*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6755 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6756 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6757
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6758 freebsd* | dragonfly*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6759 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6760 # conventions
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6761 _LT_TAGVAR(ld_shlibs, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6762 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6763
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6764 haiku*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6765 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6766 _LT_TAGVAR(link_all_deplibs, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6767 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6768
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6769 hpux9*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6770 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6771 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6772 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6773 _LT_TAGVAR(hardcode_direct, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6774 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6775 # but as the default
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6776 # location of the library.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6777
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6778 case $cc_basename in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6779 CC*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6780 # FIXME: insert proper C++ library support
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6781 _LT_TAGVAR(ld_shlibs, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6782 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6783 aCC*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6784 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6785 # Commands to make compiler produce verbose output that lists
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6786 # what "hidden" libraries, object files and flags are used when
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6787 # linking a shared library.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6788 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6789 # There doesn't appear to be a way to prevent this compiler from
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6790 # explicitly linking system object files so we need to strip them
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6791 # from the output so that they don't get included in the library
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6792 # dependencies.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6793 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"'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6794 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6795 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6796 if test yes = "$GXX"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6797 _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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6798 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6799 # FIXME: insert proper C++ library support
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6800 _LT_TAGVAR(ld_shlibs, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6801 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6802 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6803 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6804 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6805
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6806 hpux10*|hpux11*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6807 if test no = "$with_gnu_ld"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6808 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6809 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6810
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6811 case $host_cpu in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6812 hppa*64*|ia64*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6813 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6814 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6815 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6816 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6817 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6818 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6819 case $host_cpu in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6820 hppa*64*|ia64*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6821 _LT_TAGVAR(hardcode_direct, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6822 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6823 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6824 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6825 _LT_TAGVAR(hardcode_direct, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6826 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6827 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6828 # but as the default
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6829 # location of the library.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6830 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6831 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6832
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6833 case $cc_basename in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6834 CC*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6835 # FIXME: insert proper C++ library support
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6836 _LT_TAGVAR(ld_shlibs, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6837 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6838 aCC*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6839 case $host_cpu in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6840 hppa*64*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6841 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6842 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6843 ia64*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6844 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6845 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6846 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6847 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6848 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6849 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6850 # Commands to make compiler produce verbose output that lists
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6851 # what "hidden" libraries, object files and flags are used when
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6852 # linking a shared library.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6853 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6854 # There doesn't appear to be a way to prevent this compiler from
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6855 # explicitly linking system object files so we need to strip them
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6856 # from the output so that they don't get included in the library
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6857 # dependencies.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6858 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"'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6859 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6860 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6861 if test yes = "$GXX"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6862 if test no = "$with_gnu_ld"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6863 case $host_cpu in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6864 hppa*64*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6865 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6866 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6867 ia64*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6868 _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'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6869 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6870 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6871 _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'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6872 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6873 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6874 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6875 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6876 # FIXME: insert proper C++ library support
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6877 _LT_TAGVAR(ld_shlibs, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6878 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6879 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6880 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6881 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6882
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6883 interix[[3-9]]*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6884 _LT_TAGVAR(hardcode_direct, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6885 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6886 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6887 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6888 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6889 # Instead, shared libraries are loaded at an image base (0x10000000 by
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6890 # default) and relocated if they conflict, which is a slow very memory
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6891 # consuming and fragmenting process. To avoid this, we pick a random,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6892 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6893 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6894 _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'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6895 _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'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6896 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6897 irix5* | irix6*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6898 case $cc_basename in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6899 CC*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6900 # SGI C++
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6901 _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'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6902
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6903 # Archives containing C++ object files must be created using
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6904 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6905 # necessary to make sure instantiated templates are included
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6906 # in the archive.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6907 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6908 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6909 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6910 if test yes = "$GXX"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6911 if test no = "$with_gnu_ld"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6912 _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'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6913 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6914 _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'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6915 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6916 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6917 _LT_TAGVAR(link_all_deplibs, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6918 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6919 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6920 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6921 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6922 _LT_TAGVAR(inherit_rpath, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6923 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6924
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6925 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6926 case $cc_basename in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6927 KCC*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6928 # Kuck and Associates, Inc. (KAI) C++ Compiler
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6929
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6930 # KCC will only create a shared library if the output file
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6931 # ends with ".so" (or ".sl" for HP-UX), so rename the library
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6932 # to its proper name (with version) after linking.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6933 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6934 _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6935 # Commands to make compiler produce verbose output that lists
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6936 # what "hidden" libraries, object files and flags are used when
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6937 # linking a shared library.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6938 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6939 # There doesn't appear to be a way to prevent this compiler from
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6940 # explicitly linking system object files so we need to strip them
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6941 # from the output so that they don't get included in the library
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6942 # dependencies.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6943 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"'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6944
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6945 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6946 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6947
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6948 # Archives containing C++ object files must be created using
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6949 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6950 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6951 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6952 icpc* | ecpc* )
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6953 # Intel C++
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6954 with_gnu_ld=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6955 # version 8.0 and above of icpc choke on multiply defined symbols
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6956 # if we add $predep_objects and $postdep_objects, however 7.1 and
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6957 # earlier do not add the objects themselves.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6958 case `$CC -V 2>&1` in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6959 *"Version 7."*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6960 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6961 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6962 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6963 *) # Version 8.0 or newer
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6964 tmp_idyn=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6965 case $host_cpu in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6966 ia64*) tmp_idyn=' -i_dynamic';;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6967 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6968 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6969 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6970 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6971 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6972 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6973 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6974 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6975 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6976 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6977 pgCC* | pgcpp*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6978 # Portland Group C++ compiler
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6979 case `$CC -V` in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6980 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6981 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6982 rm -rf $tpldir~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6983 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6984 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6985 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6986 rm -rf $tpldir~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6987 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6988 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6989 $RANLIB $oldlib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6990 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6991 rm -rf $tpldir~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6992 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6993 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6994 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6995 rm -rf $tpldir~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6996 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6997 $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'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6998 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6999 *) # Version 6 and above use weak symbols
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7000 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7001 _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'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7002 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7003 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7004
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7005 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7006 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7007 _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'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7008 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7009 cxx*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7010 # Compaq C++
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7011 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7012 _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'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7013
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7014 runpath_var=LD_RUN_PATH
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7015 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7016 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7017
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7018 # Commands to make compiler produce verbose output that lists
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7019 # what "hidden" libraries, object files and flags are used when
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7020 # linking a shared library.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7021 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7022 # There doesn't appear to be a way to prevent this compiler from
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7023 # explicitly linking system object files so we need to strip them
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7024 # from the output so that they don't get included in the library
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7025 # dependencies.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7026 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'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7027 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7028 xl* | mpixl* | bgxl*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7029 # IBM XL 8.0 on PPC, with GNU ld
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7030 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7031 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7032 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7033 if test yes = "$supports_anon_versioning"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7034 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7035 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7036 echo "local: *; };" >> $output_objdir/$libname.ver~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7037 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7038 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7039 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7040 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7041 case `$CC -V 2>&1 | sed 5q` in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7042 *Sun\ C*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7043 # Sun C++ 5.9
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7044 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7045 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7046 _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'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7047 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7048 _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'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7049 _LT_TAGVAR(compiler_needs_object, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7050
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7051 # Not sure whether something based on
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7052 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7053 # would be better.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7054 output_verbose_link_cmd='func_echo_all'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7055
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7056 # Archives containing C++ object files must be created using
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7057 # "CC -xar", where "CC" is the Sun C++ compiler. This is
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7058 # necessary to make sure instantiated templates are included
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7059 # in the archive.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7060 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7061 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7062 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7063 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7064 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7065 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7066
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7067 lynxos*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7068 # FIXME: insert proper C++ library support
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7069 _LT_TAGVAR(ld_shlibs, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7070 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7071
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7072 m88k*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7073 # FIXME: insert proper C++ library support
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7074 _LT_TAGVAR(ld_shlibs, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7075 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7076
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7077 mvs*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7078 case $cc_basename in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7079 cxx*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7080 # FIXME: insert proper C++ library support
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7081 _LT_TAGVAR(ld_shlibs, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7082 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7083 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7084 # FIXME: insert proper C++ library support
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7085 _LT_TAGVAR(ld_shlibs, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7086 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7087 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7088 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7089
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7090 netbsd*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7091 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7092 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7093 wlarc=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7094 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7095 _LT_TAGVAR(hardcode_direct, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7096 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7097 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7098 # Workaround some broken pre-1.5 toolchains
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7099 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7100 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7101
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7102 *nto* | *qnx*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7103 _LT_TAGVAR(ld_shlibs, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7104 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7105
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7106 openbsd* | bitrig*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7107 if test -f /usr/libexec/ld.so; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7108 _LT_TAGVAR(hardcode_direct, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7109 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7110 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7111 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7112 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7113 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7114 _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'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7115 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7116 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7117 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7118 output_verbose_link_cmd=func_echo_all
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7119 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7120 _LT_TAGVAR(ld_shlibs, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7121 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7122 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7123
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7124 osf3* | osf4* | osf5*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7125 case $cc_basename in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7126 KCC*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7127 # Kuck and Associates, Inc. (KAI) C++ Compiler
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7128
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7129 # KCC will only create a shared library if the output file
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7130 # ends with ".so" (or ".sl" for HP-UX), so rename the library
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7131 # to its proper name (with version) after linking.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7132 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7133
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7134 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7135 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7136
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7137 # Archives containing C++ object files must be created using
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7138 # the KAI C++ compiler.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7139 case $host in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7140 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7141 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7142 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7143 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7144 RCC*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7145 # Rational C++ 2.4.1
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7146 # FIXME: insert proper C++ library support
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7147 _LT_TAGVAR(ld_shlibs, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7148 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7149 cxx*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7150 case $host in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7151 osf3*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7152 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7153 _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'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7154 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7155 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7156 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7157 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7158 _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'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7159 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7160 echo "-hidden">> $lib.exp~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7161 $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~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7162 $RM $lib.exp'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7163 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7164 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7165 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7166
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7167 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7168
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7169 # Commands to make compiler produce verbose output that lists
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7170 # what "hidden" libraries, object files and flags are used when
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7171 # linking a shared library.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7172 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7173 # There doesn't appear to be a way to prevent this compiler from
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7174 # explicitly linking system object files so we need to strip them
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7175 # from the output so that they don't get included in the library
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7176 # dependencies.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7177 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"'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7178 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7179 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7180 if test yes,no = "$GXX,$with_gnu_ld"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7181 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7182 case $host in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7183 osf3*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7184 _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'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7185 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7186 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7187 _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'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7188 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7189 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7190
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7191 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7192 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7193
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7194 # Commands to make compiler produce verbose output that lists
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7195 # what "hidden" libraries, object files and flags are used when
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7196 # linking a shared library.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7197 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7198
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7199 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7200 # FIXME: insert proper C++ library support
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7201 _LT_TAGVAR(ld_shlibs, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7202 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7203 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7204 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7205 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7206
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7207 psos*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7208 # FIXME: insert proper C++ library support
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7209 _LT_TAGVAR(ld_shlibs, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7210 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7211
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7212 sunos4*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7213 case $cc_basename in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7214 CC*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7215 # Sun C++ 4.x
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7216 # FIXME: insert proper C++ library support
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7217 _LT_TAGVAR(ld_shlibs, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7218 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7219 lcc*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7220 # Lucid
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7221 # FIXME: insert proper C++ library support
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7222 _LT_TAGVAR(ld_shlibs, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7223 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7224 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7225 # FIXME: insert proper C++ library support
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7226 _LT_TAGVAR(ld_shlibs, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7227 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7228 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7229 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7230
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7231 solaris*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7232 case $cc_basename in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7233 CC* | sunCC*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7234 # Sun C++ 4.2, 5.x and Centerline C++
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7235 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7236 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7237 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7238 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7239 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7240
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7241 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7242 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7243 case $host_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7244 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7245 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7246 # The compiler driver will combine and reorder linker options,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7247 # but understands '-z linker_flag'.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7248 # Supported since Solaris 2.6 (maybe 2.5.1?)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7249 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7250 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7251 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7252 _LT_TAGVAR(link_all_deplibs, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7253
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7254 output_verbose_link_cmd='func_echo_all'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7255
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7256 # Archives containing C++ object files must be created using
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7257 # "CC -xar", where "CC" is the Sun C++ compiler. This is
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7258 # necessary to make sure instantiated templates are included
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7259 # in the archive.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7260 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7261 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7262 gcx*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7263 # Green Hills C++ Compiler
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7264 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7265
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7266 # The C++ compiler must be used to create the archive.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7267 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7268 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7269 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7270 # GNU C++ compiler with Solaris linker
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7271 if test yes,no = "$GXX,$with_gnu_ld"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7272 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7273 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7274 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7275 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7276 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7277
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7278 # Commands to make compiler produce verbose output that lists
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7279 # what "hidden" libraries, object files and flags are used when
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7280 # linking a shared library.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7281 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7282 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7283 # g++ 2.7 appears to require '-G' NOT '-shared' on this
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7284 # platform.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7285 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7286 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7287 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7288
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7289 # Commands to make compiler produce verbose output that lists
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7290 # what "hidden" libraries, object files and flags are used when
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7291 # linking a shared library.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7292 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7293 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7294
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7295 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7296 case $host_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7297 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7298 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7299 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7300 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7301 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7302 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7303 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7304 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7305 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7306
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7307 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7308 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7309 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7310 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7311 runpath_var='LD_RUN_PATH'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7312
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7313 case $cc_basename in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7314 CC*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7315 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7316 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7317 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7318 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7319 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7320 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7321 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7322 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7323 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7324
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7325 sysv5* | sco3.2v5* | sco5v6*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7326 # Note: We CANNOT use -z defs as we might desire, because we do not
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7327 # link with -lc, and that would cause any symbols used from libc to
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7328 # always be unresolved, which means just about no library would
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7329 # ever link correctly. If we're not using GNU ld we use -z text
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7330 # though, which does catch some bad symbols but isn't as heavy-handed
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7331 # as -z defs.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7332 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7333 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7334 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7335 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7336 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7337 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7338 _LT_TAGVAR(link_all_deplibs, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7339 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7340 runpath_var='LD_RUN_PATH'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7341
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7342 case $cc_basename in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7343 CC*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7344 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7345 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7346 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7347 '"$_LT_TAGVAR(old_archive_cmds, $1)"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7348 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7349 '"$_LT_TAGVAR(reload_cmds, $1)"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7350 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7351 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7352 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7353 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7354 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7355 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7356 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7357
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7358 tandem*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7359 case $cc_basename in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7360 NCC*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7361 # NonStop-UX NCC 3.20
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7362 # FIXME: insert proper C++ library support
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7363 _LT_TAGVAR(ld_shlibs, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7364 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7365 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7366 # FIXME: insert proper C++ library support
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7367 _LT_TAGVAR(ld_shlibs, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7368 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7369 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7370 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7371
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7372 vxworks*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7373 # FIXME: insert proper C++ library support
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7374 _LT_TAGVAR(ld_shlibs, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7375 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7376
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7377 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7378 # FIXME: insert proper C++ library support
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7379 _LT_TAGVAR(ld_shlibs, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7380 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7381 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7382
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7383 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7384 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7385
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7386 _LT_TAGVAR(GCC, $1)=$GXX
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7387 _LT_TAGVAR(LD, $1)=$LD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7388
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7389 ## CAVEAT EMPTOR:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7390 ## There is no encapsulation within the following macros, do not change
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7391 ## the running order or otherwise move them around unless you know exactly
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7392 ## what you are doing...
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7393 _LT_SYS_HIDDEN_LIBDEPS($1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7394 _LT_COMPILER_PIC($1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7395 _LT_COMPILER_C_O($1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7396 _LT_COMPILER_FILE_LOCKS($1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7397 _LT_LINKER_SHLIBS($1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7398 _LT_SYS_DYNAMIC_LINKER($1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7399 _LT_LINKER_HARDCODE_LIBPATH($1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7400
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7401 _LT_CONFIG($1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7402 fi # test -n "$compiler"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7403
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7404 CC=$lt_save_CC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7405 CFLAGS=$lt_save_CFLAGS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7406 LDCXX=$LD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7407 LD=$lt_save_LD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7408 GCC=$lt_save_GCC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7409 with_gnu_ld=$lt_save_with_gnu_ld
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7410 lt_cv_path_LDCXX=$lt_cv_path_LD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7411 lt_cv_path_LD=$lt_save_path_LD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7412 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7413 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7414 fi # test yes != "$_lt_caught_CXX_error"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7415
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7416 AC_LANG_POP
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7417 ])# _LT_LANG_CXX_CONFIG
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7418
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7419
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7420 # _LT_FUNC_STRIPNAME_CNF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7421 # ----------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7422 # func_stripname_cnf prefix suffix name
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7423 # strip PREFIX and SUFFIX off of NAME.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7424 # PREFIX and SUFFIX must not contain globbing or regex special
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7425 # characters, hashes, percent signs, but SUFFIX may contain a leading
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7426 # dot (in which case that matches only a dot).
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7427 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7428 # This function is identical to the (non-XSI) version of func_stripname,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7429 # except this one can be used by m4 code that may be executed by configure,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7430 # rather than the libtool script.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7431 m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7432 AC_REQUIRE([_LT_DECL_SED])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7433 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7434 func_stripname_cnf ()
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7435 {
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7436 case @S|@2 in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7437 .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7438 *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7439 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7440 } # func_stripname_cnf
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7441 ])# _LT_FUNC_STRIPNAME_CNF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7442
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7443
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7444 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7445 # ---------------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7446 # Figure out "hidden" library dependencies from verbose
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7447 # compiler output when linking a shared library.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7448 # Parse the compiler output and extract the necessary
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7449 # objects, libraries and library flags.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7450 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7451 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7452 AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7453 # Dependencies to place before and after the object being linked:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7454 _LT_TAGVAR(predep_objects, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7455 _LT_TAGVAR(postdep_objects, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7456 _LT_TAGVAR(predeps, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7457 _LT_TAGVAR(postdeps, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7458 _LT_TAGVAR(compiler_lib_search_path, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7459
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7460 dnl we can't use the lt_simple_compile_test_code here,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7461 dnl because it contains code intended for an executable,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7462 dnl not a library. It's possible we should let each
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7463 dnl tag define a new lt_????_link_test_code variable,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7464 dnl but it's only used here...
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7465 m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7466 int a;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7467 void foo (void) { a = 0; }
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7468 _LT_EOF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7469 ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7470 class Foo
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7471 {
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7472 public:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7473 Foo (void) { a = 0; }
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7474 private:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7475 int a;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7476 };
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7477 _LT_EOF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7478 ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7479 subroutine foo
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7480 implicit none
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7481 integer*4 a
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7482 a=0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7483 return
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7484 end
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7485 _LT_EOF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7486 ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7487 subroutine foo
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7488 implicit none
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7489 integer a
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7490 a=0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7491 return
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7492 end
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7493 _LT_EOF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7494 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7495 public class foo {
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7496 private int a;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7497 public void bar (void) {
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7498 a = 0;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7499 }
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7500 };
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7501 _LT_EOF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7502 ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7503 package foo
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7504 func foo() {
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7505 }
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7506 _LT_EOF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7507 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7508
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7509 _lt_libdeps_save_CFLAGS=$CFLAGS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7510 case "$CC $CFLAGS " in #(
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7511 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7512 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7513 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7514 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7515
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7516 dnl Parse the compiler output and extract the necessary
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7517 dnl objects, libraries and library flags.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7518 if AC_TRY_EVAL(ac_compile); then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7519 # Parse the compiler output and extract the necessary
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7520 # objects, libraries and library flags.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7521
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7522 # Sentinel used to keep track of whether or not we are before
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7523 # the conftest object file.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7524 pre_test_object_deps_done=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7525
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7526 for p in `eval "$output_verbose_link_cmd"`; do
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7527 case $prev$p in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7528
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7529 -L* | -R* | -l*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7530 # Some compilers place space between "-{L,R}" and the path.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7531 # Remove the space.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7532 if test x-L = "$p" ||
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7533 test x-R = "$p"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7534 prev=$p
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7535 continue
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7536 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7537
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7538 # Expand the sysroot to ease extracting the directories later.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7539 if test -z "$prev"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7540 case $p in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7541 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7542 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7543 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7544 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7545 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7546 case $p in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7547 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7548 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7549 if test no = "$pre_test_object_deps_done"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7550 case $prev in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7551 -L | -R)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7552 # Internal compiler library paths should come after those
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7553 # provided the user. The postdeps already come after the
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7554 # user supplied libs so there is no need to process them.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7555 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7556 _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7557 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7558 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7559 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7560 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7561 # The "-l" case would never come before the object being
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7562 # linked, so don't bother handling this case.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7563 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7564 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7565 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7566 _LT_TAGVAR(postdeps, $1)=$prev$p
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7567 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7568 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7569 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7570 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7571 prev=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7572 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7573
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7574 *.lto.$objext) ;; # Ignore GCC LTO objects
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7575 *.$objext)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7576 # This assumes that the test object file only shows up
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7577 # once in the compiler output.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7578 if test "$p" = "conftest.$objext"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7579 pre_test_object_deps_done=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7580 continue
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7581 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7582
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7583 if test no = "$pre_test_object_deps_done"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7584 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7585 _LT_TAGVAR(predep_objects, $1)=$p
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7586 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7587 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7588 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7589 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7590 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7591 _LT_TAGVAR(postdep_objects, $1)=$p
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7592 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7593 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7594 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7595 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7596 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7597
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7598 *) ;; # Ignore the rest.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7599
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7600 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7601 done
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7602
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7603 # Clean up.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7604 rm -f a.out a.exe
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7605 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7606 echo "libtool.m4: error: problem compiling $1 test program"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7607 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7608
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7609 $RM -f confest.$objext
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7610 CFLAGS=$_lt_libdeps_save_CFLAGS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7611
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7612 # PORTME: override above test on systems where it is broken
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7613 m4_if([$1], [CXX],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7614 [case $host_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7615 interix[[3-9]]*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7616 # Interix 3.5 installs completely hosed .la files for C++, so rather than
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7617 # hack all around it, let's just trust "g++" to DTRT.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7618 _LT_TAGVAR(predep_objects,$1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7619 _LT_TAGVAR(postdep_objects,$1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7620 _LT_TAGVAR(postdeps,$1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7621 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7622 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7623 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7624
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7625 case " $_LT_TAGVAR(postdeps, $1) " in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7626 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7627 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7628 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7629 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7630 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7631 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7632 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7633 [The directories searched by this compiler when creating a shared library])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7634 _LT_TAGDECL([], [predep_objects], [1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7635 [Dependencies to place before and after the objects being linked to
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7636 create a shared library])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7637 _LT_TAGDECL([], [postdep_objects], [1])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7638 _LT_TAGDECL([], [predeps], [1])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7639 _LT_TAGDECL([], [postdeps], [1])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7640 _LT_TAGDECL([], [compiler_lib_search_path], [1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7641 [The library search path used internally by the compiler when linking
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7642 a shared library])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7643 ])# _LT_SYS_HIDDEN_LIBDEPS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7644
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7645
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7646 # _LT_LANG_F77_CONFIG([TAG])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7647 # --------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7648 # Ensure that the configuration variables for a Fortran 77 compiler are
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7649 # suitably defined. These variables are subsequently used by _LT_CONFIG
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7650 # to write the compiler configuration to 'libtool'.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7651 m4_defun([_LT_LANG_F77_CONFIG],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7652 [AC_LANG_PUSH(Fortran 77)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7653 if test -z "$F77" || test no = "$F77"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7654 _lt_disable_F77=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7655 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7656
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7657 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7658 _LT_TAGVAR(allow_undefined_flag, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7659 _LT_TAGVAR(always_export_symbols, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7660 _LT_TAGVAR(archive_expsym_cmds, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7661 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7662 _LT_TAGVAR(hardcode_direct, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7663 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7664 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7665 _LT_TAGVAR(hardcode_libdir_separator, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7666 _LT_TAGVAR(hardcode_minus_L, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7667 _LT_TAGVAR(hardcode_automatic, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7668 _LT_TAGVAR(inherit_rpath, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7669 _LT_TAGVAR(module_cmds, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7670 _LT_TAGVAR(module_expsym_cmds, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7671 _LT_TAGVAR(link_all_deplibs, $1)=unknown
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7672 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7673 _LT_TAGVAR(reload_flag, $1)=$reload_flag
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7674 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7675 _LT_TAGVAR(no_undefined_flag, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7676 _LT_TAGVAR(whole_archive_flag_spec, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7677 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7678
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7679 # Source file extension for f77 test sources.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7680 ac_ext=f
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7681
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7682 # Object file extension for compiled f77 test sources.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7683 objext=o
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7684 _LT_TAGVAR(objext, $1)=$objext
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7685
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7686 # No sense in running all these tests if we already determined that
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7687 # the F77 compiler isn't working. Some variables (like enable_shared)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7688 # are currently assumed to apply to all compilers on this platform,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7689 # and will be corrupted by setting them based on a non-working compiler.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7690 if test yes != "$_lt_disable_F77"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7691 # Code to be used in simple compile tests
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7692 lt_simple_compile_test_code="\
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7693 subroutine t
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7694 return
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7695 end
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7696 "
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7697
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7698 # Code to be used in simple link tests
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7699 lt_simple_link_test_code="\
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7700 program t
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7701 end
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7702 "
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7703
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7704 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7705 _LT_TAG_COMPILER
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7706
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7707 # save warnings/boilerplate of simple test code
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7708 _LT_COMPILER_BOILERPLATE
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7709 _LT_LINKER_BOILERPLATE
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7710
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7711 # Allow CC to be a program name with arguments.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7712 lt_save_CC=$CC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7713 lt_save_GCC=$GCC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7714 lt_save_CFLAGS=$CFLAGS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7715 CC=${F77-"f77"}
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7716 CFLAGS=$FFLAGS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7717 compiler=$CC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7718 _LT_TAGVAR(compiler, $1)=$CC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7719 _LT_CC_BASENAME([$compiler])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7720 GCC=$G77
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7721 if test -n "$compiler"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7722 AC_MSG_CHECKING([if libtool supports shared libraries])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7723 AC_MSG_RESULT([$can_build_shared])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7724
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7725 AC_MSG_CHECKING([whether to build shared libraries])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7726 test no = "$can_build_shared" && enable_shared=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7727
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7728 # On AIX, shared libraries and static libraries use the same namespace, and
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7729 # are all built from PIC.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7730 case $host_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7731 aix3*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7732 test yes = "$enable_shared" && enable_static=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7733 if test -n "$RANLIB"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7734 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7735 postinstall_cmds='$RANLIB $lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7736 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7737 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7738 aix[[4-9]]*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7739 if test ia64 != "$host_cpu"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7740 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7741 yes,aix,yes) ;; # shared object as lib.so file only
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7742 yes,svr4,*) ;; # shared object as lib.so archive member only
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7743 yes,*) enable_static=no ;; # shared object in lib.a archive as well
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7744 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7745 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7746 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7747 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7748 AC_MSG_RESULT([$enable_shared])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7749
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7750 AC_MSG_CHECKING([whether to build static libraries])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7751 # Make sure either enable_shared or enable_static is yes.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7752 test yes = "$enable_shared" || enable_static=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7753 AC_MSG_RESULT([$enable_static])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7754
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7755 _LT_TAGVAR(GCC, $1)=$G77
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7756 _LT_TAGVAR(LD, $1)=$LD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7757
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7758 ## CAVEAT EMPTOR:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7759 ## There is no encapsulation within the following macros, do not change
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7760 ## the running order or otherwise move them around unless you know exactly
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7761 ## what you are doing...
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7762 _LT_COMPILER_PIC($1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7763 _LT_COMPILER_C_O($1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7764 _LT_COMPILER_FILE_LOCKS($1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7765 _LT_LINKER_SHLIBS($1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7766 _LT_SYS_DYNAMIC_LINKER($1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7767 _LT_LINKER_HARDCODE_LIBPATH($1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7768
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7769 _LT_CONFIG($1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7770 fi # test -n "$compiler"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7771
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7772 GCC=$lt_save_GCC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7773 CC=$lt_save_CC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7774 CFLAGS=$lt_save_CFLAGS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7775 fi # test yes != "$_lt_disable_F77"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7776
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7777 AC_LANG_POP
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7778 ])# _LT_LANG_F77_CONFIG
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7779
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7780
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7781 # _LT_LANG_FC_CONFIG([TAG])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7782 # -------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7783 # Ensure that the configuration variables for a Fortran compiler are
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7784 # suitably defined. These variables are subsequently used by _LT_CONFIG
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7785 # to write the compiler configuration to 'libtool'.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7786 m4_defun([_LT_LANG_FC_CONFIG],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7787 [AC_LANG_PUSH(Fortran)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7788
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7789 if test -z "$FC" || test no = "$FC"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7790 _lt_disable_FC=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7791 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7792
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7793 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7794 _LT_TAGVAR(allow_undefined_flag, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7795 _LT_TAGVAR(always_export_symbols, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7796 _LT_TAGVAR(archive_expsym_cmds, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7797 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7798 _LT_TAGVAR(hardcode_direct, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7799 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7800 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7801 _LT_TAGVAR(hardcode_libdir_separator, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7802 _LT_TAGVAR(hardcode_minus_L, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7803 _LT_TAGVAR(hardcode_automatic, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7804 _LT_TAGVAR(inherit_rpath, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7805 _LT_TAGVAR(module_cmds, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7806 _LT_TAGVAR(module_expsym_cmds, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7807 _LT_TAGVAR(link_all_deplibs, $1)=unknown
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7808 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7809 _LT_TAGVAR(reload_flag, $1)=$reload_flag
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7810 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7811 _LT_TAGVAR(no_undefined_flag, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7812 _LT_TAGVAR(whole_archive_flag_spec, $1)=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7813 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7814
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7815 # Source file extension for fc test sources.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7816 ac_ext=${ac_fc_srcext-f}
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7817
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7818 # Object file extension for compiled fc test sources.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7819 objext=o
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7820 _LT_TAGVAR(objext, $1)=$objext
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7821
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7822 # No sense in running all these tests if we already determined that
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7823 # the FC compiler isn't working. Some variables (like enable_shared)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7824 # are currently assumed to apply to all compilers on this platform,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7825 # and will be corrupted by setting them based on a non-working compiler.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7826 if test yes != "$_lt_disable_FC"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7827 # Code to be used in simple compile tests
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7828 lt_simple_compile_test_code="\
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7829 subroutine t
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7830 return
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7831 end
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7832 "
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7833
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7834 # Code to be used in simple link tests
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7835 lt_simple_link_test_code="\
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7836 program t
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7837 end
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7838 "
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7839
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7840 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7841 _LT_TAG_COMPILER
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7842
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7843 # save warnings/boilerplate of simple test code
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7844 _LT_COMPILER_BOILERPLATE
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7845 _LT_LINKER_BOILERPLATE
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7846
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7847 # Allow CC to be a program name with arguments.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7848 lt_save_CC=$CC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7849 lt_save_GCC=$GCC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7850 lt_save_CFLAGS=$CFLAGS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7851 CC=${FC-"f95"}
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7852 CFLAGS=$FCFLAGS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7853 compiler=$CC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7854 GCC=$ac_cv_fc_compiler_gnu
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7855
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7856 _LT_TAGVAR(compiler, $1)=$CC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7857 _LT_CC_BASENAME([$compiler])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7858
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7859 if test -n "$compiler"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7860 AC_MSG_CHECKING([if libtool supports shared libraries])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7861 AC_MSG_RESULT([$can_build_shared])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7862
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7863 AC_MSG_CHECKING([whether to build shared libraries])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7864 test no = "$can_build_shared" && enable_shared=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7865
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7866 # On AIX, shared libraries and static libraries use the same namespace, and
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7867 # are all built from PIC.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7868 case $host_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7869 aix3*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7870 test yes = "$enable_shared" && enable_static=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7871 if test -n "$RANLIB"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7872 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7873 postinstall_cmds='$RANLIB $lib'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7874 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7875 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7876 aix[[4-9]]*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7877 if test ia64 != "$host_cpu"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7878 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7879 yes,aix,yes) ;; # shared object as lib.so file only
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7880 yes,svr4,*) ;; # shared object as lib.so archive member only
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7881 yes,*) enable_static=no ;; # shared object in lib.a archive as well
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7882 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7883 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7884 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7885 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7886 AC_MSG_RESULT([$enable_shared])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7887
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7888 AC_MSG_CHECKING([whether to build static libraries])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7889 # Make sure either enable_shared or enable_static is yes.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7890 test yes = "$enable_shared" || enable_static=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7891 AC_MSG_RESULT([$enable_static])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7892
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7893 _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7894 _LT_TAGVAR(LD, $1)=$LD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7895
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7896 ## CAVEAT EMPTOR:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7897 ## There is no encapsulation within the following macros, do not change
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7898 ## the running order or otherwise move them around unless you know exactly
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7899 ## what you are doing...
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7900 _LT_SYS_HIDDEN_LIBDEPS($1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7901 _LT_COMPILER_PIC($1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7902 _LT_COMPILER_C_O($1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7903 _LT_COMPILER_FILE_LOCKS($1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7904 _LT_LINKER_SHLIBS($1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7905 _LT_SYS_DYNAMIC_LINKER($1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7906 _LT_LINKER_HARDCODE_LIBPATH($1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7907
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7908 _LT_CONFIG($1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7909 fi # test -n "$compiler"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7910
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7911 GCC=$lt_save_GCC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7912 CC=$lt_save_CC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7913 CFLAGS=$lt_save_CFLAGS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7914 fi # test yes != "$_lt_disable_FC"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7915
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7916 AC_LANG_POP
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7917 ])# _LT_LANG_FC_CONFIG
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7918
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7919
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7920 # _LT_LANG_GCJ_CONFIG([TAG])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7921 # --------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7922 # Ensure that the configuration variables for the GNU Java Compiler compiler
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7923 # are suitably defined. These variables are subsequently used by _LT_CONFIG
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7924 # to write the compiler configuration to 'libtool'.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7925 m4_defun([_LT_LANG_GCJ_CONFIG],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7926 [AC_REQUIRE([LT_PROG_GCJ])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7927 AC_LANG_SAVE
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7928
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7929 # Source file extension for Java test sources.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7930 ac_ext=java
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7931
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7932 # Object file extension for compiled Java test sources.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7933 objext=o
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7934 _LT_TAGVAR(objext, $1)=$objext
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7935
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7936 # Code to be used in simple compile tests
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7937 lt_simple_compile_test_code="class foo {}"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7938
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7939 # Code to be used in simple link tests
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7940 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7941
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7942 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7943 _LT_TAG_COMPILER
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7944
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7945 # save warnings/boilerplate of simple test code
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7946 _LT_COMPILER_BOILERPLATE
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7947 _LT_LINKER_BOILERPLATE
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7948
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7949 # Allow CC to be a program name with arguments.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7950 lt_save_CC=$CC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7951 lt_save_CFLAGS=$CFLAGS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7952 lt_save_GCC=$GCC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7953 GCC=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7954 CC=${GCJ-"gcj"}
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7955 CFLAGS=$GCJFLAGS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7956 compiler=$CC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7957 _LT_TAGVAR(compiler, $1)=$CC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7958 _LT_TAGVAR(LD, $1)=$LD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7959 _LT_CC_BASENAME([$compiler])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7960
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7961 # GCJ did not exist at the time GCC didn't implicitly link libc in.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7962 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7963
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7964 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7965 _LT_TAGVAR(reload_flag, $1)=$reload_flag
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7966 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7967
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7968 ## CAVEAT EMPTOR:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7969 ## There is no encapsulation within the following macros, do not change
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7970 ## the running order or otherwise move them around unless you know exactly
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7971 ## what you are doing...
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7972 if test -n "$compiler"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7973 _LT_COMPILER_NO_RTTI($1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7974 _LT_COMPILER_PIC($1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7975 _LT_COMPILER_C_O($1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7976 _LT_COMPILER_FILE_LOCKS($1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7977 _LT_LINKER_SHLIBS($1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7978 _LT_LINKER_HARDCODE_LIBPATH($1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7979
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7980 _LT_CONFIG($1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7981 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7982
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7983 AC_LANG_RESTORE
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7984
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7985 GCC=$lt_save_GCC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7986 CC=$lt_save_CC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7987 CFLAGS=$lt_save_CFLAGS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7988 ])# _LT_LANG_GCJ_CONFIG
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7989
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7990
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7991 # _LT_LANG_GO_CONFIG([TAG])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7992 # --------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7993 # Ensure that the configuration variables for the GNU Go compiler
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7994 # are suitably defined. These variables are subsequently used by _LT_CONFIG
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7995 # to write the compiler configuration to 'libtool'.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7996 m4_defun([_LT_LANG_GO_CONFIG],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7997 [AC_REQUIRE([LT_PROG_GO])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7998 AC_LANG_SAVE
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7999
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8000 # Source file extension for Go test sources.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8001 ac_ext=go
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8002
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8003 # Object file extension for compiled Go test sources.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8004 objext=o
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8005 _LT_TAGVAR(objext, $1)=$objext
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8006
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8007 # Code to be used in simple compile tests
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8008 lt_simple_compile_test_code="package main; func main() { }"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8009
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8010 # Code to be used in simple link tests
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8011 lt_simple_link_test_code='package main; func main() { }'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8012
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8013 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8014 _LT_TAG_COMPILER
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8015
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8016 # save warnings/boilerplate of simple test code
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8017 _LT_COMPILER_BOILERPLATE
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8018 _LT_LINKER_BOILERPLATE
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8019
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8020 # Allow CC to be a program name with arguments.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8021 lt_save_CC=$CC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8022 lt_save_CFLAGS=$CFLAGS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8023 lt_save_GCC=$GCC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8024 GCC=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8025 CC=${GOC-"gccgo"}
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8026 CFLAGS=$GOFLAGS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8027 compiler=$CC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8028 _LT_TAGVAR(compiler, $1)=$CC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8029 _LT_TAGVAR(LD, $1)=$LD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8030 _LT_CC_BASENAME([$compiler])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8031
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8032 # Go did not exist at the time GCC didn't implicitly link libc in.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8033 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8034
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8035 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8036 _LT_TAGVAR(reload_flag, $1)=$reload_flag
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8037 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8038
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8039 ## CAVEAT EMPTOR:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8040 ## There is no encapsulation within the following macros, do not change
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8041 ## the running order or otherwise move them around unless you know exactly
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8042 ## what you are doing...
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8043 if test -n "$compiler"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8044 _LT_COMPILER_NO_RTTI($1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8045 _LT_COMPILER_PIC($1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8046 _LT_COMPILER_C_O($1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8047 _LT_COMPILER_FILE_LOCKS($1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8048 _LT_LINKER_SHLIBS($1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8049 _LT_LINKER_HARDCODE_LIBPATH($1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8050
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8051 _LT_CONFIG($1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8052 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8053
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8054 AC_LANG_RESTORE
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8055
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8056 GCC=$lt_save_GCC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8057 CC=$lt_save_CC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8058 CFLAGS=$lt_save_CFLAGS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8059 ])# _LT_LANG_GO_CONFIG
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8060
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8061
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8062 # _LT_LANG_RC_CONFIG([TAG])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8063 # -------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8064 # Ensure that the configuration variables for the Windows resource compiler
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8065 # are suitably defined. These variables are subsequently used by _LT_CONFIG
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8066 # to write the compiler configuration to 'libtool'.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8067 m4_defun([_LT_LANG_RC_CONFIG],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8068 [AC_REQUIRE([LT_PROG_RC])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8069 AC_LANG_SAVE
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8070
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8071 # Source file extension for RC test sources.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8072 ac_ext=rc
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8073
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8074 # Object file extension for compiled RC test sources.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8075 objext=o
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8076 _LT_TAGVAR(objext, $1)=$objext
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8077
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8078 # Code to be used in simple compile tests
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8079 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8080
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8081 # Code to be used in simple link tests
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8082 lt_simple_link_test_code=$lt_simple_compile_test_code
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8083
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8084 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8085 _LT_TAG_COMPILER
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8086
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8087 # save warnings/boilerplate of simple test code
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8088 _LT_COMPILER_BOILERPLATE
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8089 _LT_LINKER_BOILERPLATE
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8090
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8091 # Allow CC to be a program name with arguments.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8092 lt_save_CC=$CC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8093 lt_save_CFLAGS=$CFLAGS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8094 lt_save_GCC=$GCC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8095 GCC=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8096 CC=${RC-"windres"}
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8097 CFLAGS=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8098 compiler=$CC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8099 _LT_TAGVAR(compiler, $1)=$CC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8100 _LT_CC_BASENAME([$compiler])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8101 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8102
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8103 if test -n "$compiler"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8104 :
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8105 _LT_CONFIG($1)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8106 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8107
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8108 GCC=$lt_save_GCC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8109 AC_LANG_RESTORE
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8110 CC=$lt_save_CC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8111 CFLAGS=$lt_save_CFLAGS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8112 ])# _LT_LANG_RC_CONFIG
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8113
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8114
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8115 # LT_PROG_GCJ
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8116 # -----------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8117 AC_DEFUN([LT_PROG_GCJ],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8118 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8119 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8120 [AC_CHECK_TOOL(GCJ, gcj,)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8121 test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8122 AC_SUBST(GCJFLAGS)])])[]dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8123 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8124
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8125 # Old name:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8126 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8127 dnl aclocal-1.4 backwards compatibility:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8128 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8129
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8130
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8131 # LT_PROG_GO
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8132 # ----------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8133 AC_DEFUN([LT_PROG_GO],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8134 [AC_CHECK_TOOL(GOC, gccgo,)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8135 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8136
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8137
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8138 # LT_PROG_RC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8139 # ----------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8140 AC_DEFUN([LT_PROG_RC],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8141 [AC_CHECK_TOOL(RC, windres,)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8142 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8143
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8144 # Old name:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8145 AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8146 dnl aclocal-1.4 backwards compatibility:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8147 dnl AC_DEFUN([LT_AC_PROG_RC], [])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8148
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8149
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8150 # _LT_DECL_EGREP
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8151 # --------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8152 # If we don't have a new enough Autoconf to choose the best grep
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8153 # available, choose the one first in the user's PATH.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8154 m4_defun([_LT_DECL_EGREP],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8155 [AC_REQUIRE([AC_PROG_EGREP])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8156 AC_REQUIRE([AC_PROG_FGREP])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8157 test -z "$GREP" && GREP=grep
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8158 _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8159 _LT_DECL([], [EGREP], [1], [An ERE matcher])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8160 _LT_DECL([], [FGREP], [1], [A literal string matcher])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8161 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8162 AC_SUBST([GREP])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8163 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8164
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8165
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8166 # _LT_DECL_OBJDUMP
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8167 # --------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8168 # If we don't have a new enough Autoconf to choose the best objdump
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8169 # available, choose the one first in the user's PATH.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8170 m4_defun([_LT_DECL_OBJDUMP],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8171 [AC_CHECK_TOOL(OBJDUMP, objdump, false)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8172 test -z "$OBJDUMP" && OBJDUMP=objdump
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8173 _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8174 AC_SUBST([OBJDUMP])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8175 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8176
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8177 # _LT_DECL_DLLTOOL
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8178 # ----------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8179 # Ensure DLLTOOL variable is set.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8180 m4_defun([_LT_DECL_DLLTOOL],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8181 [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8182 test -z "$DLLTOOL" && DLLTOOL=dlltool
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8183 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8184 AC_SUBST([DLLTOOL])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8185 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8186
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8187 # _LT_DECL_SED
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8188 # ------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8189 # Check for a fully-functional sed program, that truncates
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8190 # as few characters as possible. Prefer GNU sed if found.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8191 m4_defun([_LT_DECL_SED],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8192 [AC_PROG_SED
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8193 test -z "$SED" && SED=sed
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8194 Xsed="$SED -e 1s/^X//"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8195 _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8196 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8197 [Sed that helps us avoid accidentally triggering echo(1) options like -n])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8198 ])# _LT_DECL_SED
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8199
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8200 m4_ifndef([AC_PROG_SED], [
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8201 ############################################################
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8202 # NOTE: This macro has been submitted for inclusion into #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8203 # GNU Autoconf as AC_PROG_SED. When it is available in #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8204 # a released version of Autoconf we should remove this #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8205 # macro and use it instead. #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8206 ############################################################
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8207
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8208 m4_defun([AC_PROG_SED],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8209 [AC_MSG_CHECKING([for a sed that does not truncate output])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8210 AC_CACHE_VAL(lt_cv_path_SED,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8211 [# Loop through the user's path and test for sed and gsed.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8212 # Then use that list of sed's as ones to test for truncation.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8214 for as_dir in $PATH
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8215 do
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8216 IFS=$as_save_IFS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8217 test -z "$as_dir" && as_dir=.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8218 for lt_ac_prog in sed gsed; do
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8219 for ac_exec_ext in '' $ac_executable_extensions; do
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8220 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8221 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8222 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8223 done
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8224 done
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8225 done
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8226 IFS=$as_save_IFS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8227 lt_ac_max=0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8228 lt_ac_count=0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8229 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8230 # along with /bin/sed that truncates output.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8231 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8232 test ! -f "$lt_ac_sed" && continue
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8233 cat /dev/null > conftest.in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8234 lt_ac_count=0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8235 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8236 # Check for GNU sed and select it if it is found.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8237 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8238 lt_cv_path_SED=$lt_ac_sed
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8239 break
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8240 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8241 while true; do
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8242 cat conftest.in conftest.in >conftest.tmp
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8243 mv conftest.tmp conftest.in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8244 cp conftest.in conftest.nl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8245 echo >>conftest.nl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8246 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8247 cmp -s conftest.out conftest.nl || break
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8248 # 10000 chars as input seems more than enough
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8249 test 10 -lt "$lt_ac_count" && break
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8250 lt_ac_count=`expr $lt_ac_count + 1`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8251 if test "$lt_ac_count" -gt "$lt_ac_max"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8252 lt_ac_max=$lt_ac_count
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8253 lt_cv_path_SED=$lt_ac_sed
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8254 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8255 done
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8256 done
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8257 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8258 SED=$lt_cv_path_SED
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8259 AC_SUBST([SED])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8260 AC_MSG_RESULT([$SED])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8261 ])#AC_PROG_SED
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8262 ])#m4_ifndef
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8263
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8264 # Old name:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8265 AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8266 dnl aclocal-1.4 backwards compatibility:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8267 dnl AC_DEFUN([LT_AC_PROG_SED], [])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8268
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8269
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8270 # _LT_CHECK_SHELL_FEATURES
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8271 # ------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8272 # Find out whether the shell is Bourne or XSI compatible,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8273 # or has some other useful features.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8274 m4_defun([_LT_CHECK_SHELL_FEATURES],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8275 [if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8276 lt_unset=unset
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8277 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8278 lt_unset=false
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8279 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8280 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8281
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8282 # test EBCDIC or ASCII
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8283 case `echo X|tr X '\101'` in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8284 A) # ASCII based system
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8285 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8286 lt_SP2NL='tr \040 \012'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8287 lt_NL2SP='tr \015\012 \040\040'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8288 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8289 *) # EBCDIC based system
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8290 lt_SP2NL='tr \100 \n'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8291 lt_NL2SP='tr \r\n \100\100'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8292 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8293 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8294 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8295 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8296 ])# _LT_CHECK_SHELL_FEATURES
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8297
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8298
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8299 # _LT_PATH_CONVERSION_FUNCTIONS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8300 # -----------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8301 # Determine what file name conversion functions should be used by
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8302 # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8303 # for certain cross-compile configurations and native mingw.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8304 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8305 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8306 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8307 AC_MSG_CHECKING([how to convert $build file names to $host format])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8308 AC_CACHE_VAL(lt_cv_to_host_file_cmd,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8309 [case $host in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8310 *-*-mingw* )
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8311 case $build in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8312 *-*-mingw* ) # actually msys
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8313 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8314 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8315 *-*-cygwin* )
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8316 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8317 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8318 * ) # otherwise, assume *nix
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8319 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8320 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8321 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8322 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8323 *-*-cygwin* )
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8324 case $build in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8325 *-*-mingw* ) # actually msys
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8326 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8327 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8328 *-*-cygwin* )
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8329 lt_cv_to_host_file_cmd=func_convert_file_noop
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8330 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8331 * ) # otherwise, assume *nix
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8332 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8333 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8334 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8335 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8336 * ) # unhandled hosts (and "normal" native builds)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8337 lt_cv_to_host_file_cmd=func_convert_file_noop
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8338 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8339 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8340 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8341 to_host_file_cmd=$lt_cv_to_host_file_cmd
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8342 AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8343 _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8344 [0], [convert $build file names to $host format])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8345
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8346 AC_MSG_CHECKING([how to convert $build file names to toolchain format])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8347 AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8348 [#assume ordinary cross tools, or native build.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8349 lt_cv_to_tool_file_cmd=func_convert_file_noop
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8350 case $host in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8351 *-*-mingw* )
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8352 case $build in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8353 *-*-mingw* ) # actually msys
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8354 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8355 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8356 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8357 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8358 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8359 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8360 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8361 AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8362 _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8363 [0], [convert $build files to toolchain format])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8364 ])# _LT_PATH_CONVERSION_FUNCTIONS