cannam@154
|
1 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
|
cannam@154
|
2 #
|
cannam@154
|
3 # Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc.
|
cannam@154
|
4 # Written by Gordon Matzigkeit, 1996
|
cannam@154
|
5 #
|
cannam@154
|
6 # This file is free software; the Free Software Foundation gives
|
cannam@154
|
7 # unlimited permission to copy and/or distribute it, with or without
|
cannam@154
|
8 # modifications, as long as this notice is preserved.
|
cannam@154
|
9
|
cannam@154
|
10 m4_define([_LT_COPYING], [dnl
|
cannam@154
|
11 # Copyright (C) 2014 Free Software Foundation, Inc.
|
cannam@154
|
12 # This is free software; see the source for copying conditions. There is NO
|
cannam@154
|
13 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
cannam@154
|
14
|
cannam@154
|
15 # GNU Libtool is free software; you can redistribute it and/or modify
|
cannam@154
|
16 # it under the terms of the GNU General Public License as published by
|
cannam@154
|
17 # the Free Software Foundation; either version 2 of of the License, or
|
cannam@154
|
18 # (at your option) any later version.
|
cannam@154
|
19 #
|
cannam@154
|
20 # As a special exception to the GNU General Public License, if you
|
cannam@154
|
21 # distribute this file as part of a program or library that is built
|
cannam@154
|
22 # using GNU Libtool, you may include this file under the same
|
cannam@154
|
23 # distribution terms that you use for the rest of that program.
|
cannam@154
|
24 #
|
cannam@154
|
25 # GNU Libtool is distributed in the hope that it will be useful, but
|
cannam@154
|
26 # WITHOUT ANY WARRANTY; without even the implied warranty of
|
cannam@154
|
27 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
cannam@154
|
28 # GNU General Public License for more details.
|
cannam@154
|
29 #
|
cannam@154
|
30 # You should have received a copy of the GNU General Public License
|
cannam@154
|
31 # along with this program. If not, see <http://www.gnu.org/licenses/>.
|
cannam@154
|
32 ])
|
cannam@154
|
33
|
cannam@154
|
34 # serial 58 LT_INIT
|
cannam@154
|
35
|
cannam@154
|
36
|
cannam@154
|
37 # LT_PREREQ(VERSION)
|
cannam@154
|
38 # ------------------
|
cannam@154
|
39 # Complain and exit if this libtool version is less that VERSION.
|
cannam@154
|
40 m4_defun([LT_PREREQ],
|
cannam@154
|
41 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
|
cannam@154
|
42 [m4_default([$3],
|
cannam@154
|
43 [m4_fatal([Libtool version $1 or higher is required],
|
cannam@154
|
44 63)])],
|
cannam@154
|
45 [$2])])
|
cannam@154
|
46
|
cannam@154
|
47
|
cannam@154
|
48 # _LT_CHECK_BUILDDIR
|
cannam@154
|
49 # ------------------
|
cannam@154
|
50 # Complain if the absolute build directory name contains unusual characters
|
cannam@154
|
51 m4_defun([_LT_CHECK_BUILDDIR],
|
cannam@154
|
52 [case `pwd` in
|
cannam@154
|
53 *\ * | *\ *)
|
cannam@154
|
54 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
|
cannam@154
|
55 esac
|
cannam@154
|
56 ])
|
cannam@154
|
57
|
cannam@154
|
58
|
cannam@154
|
59 # LT_INIT([OPTIONS])
|
cannam@154
|
60 # ------------------
|
cannam@154
|
61 AC_DEFUN([LT_INIT],
|
cannam@154
|
62 [AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK
|
cannam@154
|
63 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
|
cannam@154
|
64 AC_BEFORE([$0], [LT_LANG])dnl
|
cannam@154
|
65 AC_BEFORE([$0], [LT_OUTPUT])dnl
|
cannam@154
|
66 AC_BEFORE([$0], [LTDL_INIT])dnl
|
cannam@154
|
67 m4_require([_LT_CHECK_BUILDDIR])dnl
|
cannam@154
|
68
|
cannam@154
|
69 dnl Autoconf doesn't catch unexpanded LT_ macros by default:
|
cannam@154
|
70 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
|
cannam@154
|
71 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
|
cannam@154
|
72 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
|
cannam@154
|
73 dnl unless we require an AC_DEFUNed macro:
|
cannam@154
|
74 AC_REQUIRE([LTOPTIONS_VERSION])dnl
|
cannam@154
|
75 AC_REQUIRE([LTSUGAR_VERSION])dnl
|
cannam@154
|
76 AC_REQUIRE([LTVERSION_VERSION])dnl
|
cannam@154
|
77 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
|
cannam@154
|
78 m4_require([_LT_PROG_LTMAIN])dnl
|
cannam@154
|
79
|
cannam@154
|
80 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
|
cannam@154
|
81
|
cannam@154
|
82 dnl Parse OPTIONS
|
cannam@154
|
83 _LT_SET_OPTIONS([$0], [$1])
|
cannam@154
|
84
|
cannam@154
|
85 # This can be used to rebuild libtool when needed
|
cannam@154
|
86 LIBTOOL_DEPS=$ltmain
|
cannam@154
|
87
|
cannam@154
|
88 # Always use our own libtool.
|
cannam@154
|
89 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
cannam@154
|
90 AC_SUBST(LIBTOOL)dnl
|
cannam@154
|
91
|
cannam@154
|
92 _LT_SETUP
|
cannam@154
|
93
|
cannam@154
|
94 # Only expand once:
|
cannam@154
|
95 m4_define([LT_INIT])
|
cannam@154
|
96 ])# LT_INIT
|
cannam@154
|
97
|
cannam@154
|
98 # Old names:
|
cannam@154
|
99 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
|
cannam@154
|
100 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
|
cannam@154
|
101 dnl aclocal-1.4 backwards compatibility:
|
cannam@154
|
102 dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
|
cannam@154
|
103 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
|
cannam@154
|
104
|
cannam@154
|
105
|
cannam@154
|
106 # _LT_PREPARE_CC_BASENAME
|
cannam@154
|
107 # -----------------------
|
cannam@154
|
108 m4_defun([_LT_PREPARE_CC_BASENAME], [
|
cannam@154
|
109 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
|
cannam@154
|
110 func_cc_basename ()
|
cannam@154
|
111 {
|
cannam@154
|
112 for cc_temp in @S|@*""; do
|
cannam@154
|
113 case $cc_temp in
|
cannam@154
|
114 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
|
cannam@154
|
115 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
|
cannam@154
|
116 \-*) ;;
|
cannam@154
|
117 *) break;;
|
cannam@154
|
118 esac
|
cannam@154
|
119 done
|
cannam@154
|
120 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
|
cannam@154
|
121 }
|
cannam@154
|
122 ])# _LT_PREPARE_CC_BASENAME
|
cannam@154
|
123
|
cannam@154
|
124
|
cannam@154
|
125 # _LT_CC_BASENAME(CC)
|
cannam@154
|
126 # -------------------
|
cannam@154
|
127 # It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME,
|
cannam@154
|
128 # but that macro is also expanded into generated libtool script, which
|
cannam@154
|
129 # arranges for $SED and $ECHO to be set by different means.
|
cannam@154
|
130 m4_defun([_LT_CC_BASENAME],
|
cannam@154
|
131 [m4_require([_LT_PREPARE_CC_BASENAME])dnl
|
cannam@154
|
132 AC_REQUIRE([_LT_DECL_SED])dnl
|
cannam@154
|
133 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
|
cannam@154
|
134 func_cc_basename $1
|
cannam@154
|
135 cc_basename=$func_cc_basename_result
|
cannam@154
|
136 ])
|
cannam@154
|
137
|
cannam@154
|
138
|
cannam@154
|
139 # _LT_FILEUTILS_DEFAULTS
|
cannam@154
|
140 # ----------------------
|
cannam@154
|
141 # It is okay to use these file commands and assume they have been set
|
cannam@154
|
142 # sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'.
|
cannam@154
|
143 m4_defun([_LT_FILEUTILS_DEFAULTS],
|
cannam@154
|
144 [: ${CP="cp -f"}
|
cannam@154
|
145 : ${MV="mv -f"}
|
cannam@154
|
146 : ${RM="rm -f"}
|
cannam@154
|
147 ])# _LT_FILEUTILS_DEFAULTS
|
cannam@154
|
148
|
cannam@154
|
149
|
cannam@154
|
150 # _LT_SETUP
|
cannam@154
|
151 # ---------
|
cannam@154
|
152 m4_defun([_LT_SETUP],
|
cannam@154
|
153 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
cannam@154
|
154 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
|
cannam@154
|
155 AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
|
cannam@154
|
156 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
|
cannam@154
|
157
|
cannam@154
|
158 _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
|
cannam@154
|
159 dnl
|
cannam@154
|
160 _LT_DECL([], [host_alias], [0], [The host system])dnl
|
cannam@154
|
161 _LT_DECL([], [host], [0])dnl
|
cannam@154
|
162 _LT_DECL([], [host_os], [0])dnl
|
cannam@154
|
163 dnl
|
cannam@154
|
164 _LT_DECL([], [build_alias], [0], [The build system])dnl
|
cannam@154
|
165 _LT_DECL([], [build], [0])dnl
|
cannam@154
|
166 _LT_DECL([], [build_os], [0])dnl
|
cannam@154
|
167 dnl
|
cannam@154
|
168 AC_REQUIRE([AC_PROG_CC])dnl
|
cannam@154
|
169 AC_REQUIRE([LT_PATH_LD])dnl
|
cannam@154
|
170 AC_REQUIRE([LT_PATH_NM])dnl
|
cannam@154
|
171 dnl
|
cannam@154
|
172 AC_REQUIRE([AC_PROG_LN_S])dnl
|
cannam@154
|
173 test -z "$LN_S" && LN_S="ln -s"
|
cannam@154
|
174 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
|
cannam@154
|
175 dnl
|
cannam@154
|
176 AC_REQUIRE([LT_CMD_MAX_LEN])dnl
|
cannam@154
|
177 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
|
cannam@154
|
178 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
|
cannam@154
|
179 dnl
|
cannam@154
|
180 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
cannam@154
|
181 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
|
cannam@154
|
182 m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
|
cannam@154
|
183 m4_require([_LT_CMD_RELOAD])dnl
|
cannam@154
|
184 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
|
cannam@154
|
185 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
|
cannam@154
|
186 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
|
cannam@154
|
187 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
|
cannam@154
|
188 m4_require([_LT_WITH_SYSROOT])dnl
|
cannam@154
|
189 m4_require([_LT_CMD_TRUNCATE])dnl
|
cannam@154
|
190
|
cannam@154
|
191 _LT_CONFIG_LIBTOOL_INIT([
|
cannam@154
|
192 # See if we are running on zsh, and set the options that allow our
|
cannam@154
|
193 # commands through without removal of \ escapes INIT.
|
cannam@154
|
194 if test -n "\${ZSH_VERSION+set}"; then
|
cannam@154
|
195 setopt NO_GLOB_SUBST
|
cannam@154
|
196 fi
|
cannam@154
|
197 ])
|
cannam@154
|
198 if test -n "${ZSH_VERSION+set}"; then
|
cannam@154
|
199 setopt NO_GLOB_SUBST
|
cannam@154
|
200 fi
|
cannam@154
|
201
|
cannam@154
|
202 _LT_CHECK_OBJDIR
|
cannam@154
|
203
|
cannam@154
|
204 m4_require([_LT_TAG_COMPILER])dnl
|
cannam@154
|
205
|
cannam@154
|
206 case $host_os in
|
cannam@154
|
207 aix3*)
|
cannam@154
|
208 # AIX sometimes has problems with the GCC collect2 program. For some
|
cannam@154
|
209 # reason, if we set the COLLECT_NAMES environment variable, the problems
|
cannam@154
|
210 # vanish in a puff of smoke.
|
cannam@154
|
211 if test set != "${COLLECT_NAMES+set}"; then
|
cannam@154
|
212 COLLECT_NAMES=
|
cannam@154
|
213 export COLLECT_NAMES
|
cannam@154
|
214 fi
|
cannam@154
|
215 ;;
|
cannam@154
|
216 esac
|
cannam@154
|
217
|
cannam@154
|
218 # Global variables:
|
cannam@154
|
219 ofile=libtool
|
cannam@154
|
220 can_build_shared=yes
|
cannam@154
|
221
|
cannam@154
|
222 # All known linkers require a '.a' archive for static linking (except MSVC,
|
cannam@154
|
223 # which needs '.lib').
|
cannam@154
|
224 libext=a
|
cannam@154
|
225
|
cannam@154
|
226 with_gnu_ld=$lt_cv_prog_gnu_ld
|
cannam@154
|
227
|
cannam@154
|
228 old_CC=$CC
|
cannam@154
|
229 old_CFLAGS=$CFLAGS
|
cannam@154
|
230
|
cannam@154
|
231 # Set sane defaults for various variables
|
cannam@154
|
232 test -z "$CC" && CC=cc
|
cannam@154
|
233 test -z "$LTCC" && LTCC=$CC
|
cannam@154
|
234 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
|
cannam@154
|
235 test -z "$LD" && LD=ld
|
cannam@154
|
236 test -z "$ac_objext" && ac_objext=o
|
cannam@154
|
237
|
cannam@154
|
238 _LT_CC_BASENAME([$compiler])
|
cannam@154
|
239
|
cannam@154
|
240 # Only perform the check for file, if the check method requires it
|
cannam@154
|
241 test -z "$MAGIC_CMD" && MAGIC_CMD=file
|
cannam@154
|
242 case $deplibs_check_method in
|
cannam@154
|
243 file_magic*)
|
cannam@154
|
244 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
cannam@154
|
245 _LT_PATH_MAGIC
|
cannam@154
|
246 fi
|
cannam@154
|
247 ;;
|
cannam@154
|
248 esac
|
cannam@154
|
249
|
cannam@154
|
250 # Use C for the default configuration in the libtool script
|
cannam@154
|
251 LT_SUPPORTED_TAG([CC])
|
cannam@154
|
252 _LT_LANG_C_CONFIG
|
cannam@154
|
253 _LT_LANG_DEFAULT_CONFIG
|
cannam@154
|
254 _LT_CONFIG_COMMANDS
|
cannam@154
|
255 ])# _LT_SETUP
|
cannam@154
|
256
|
cannam@154
|
257
|
cannam@154
|
258 # _LT_PREPARE_SED_QUOTE_VARS
|
cannam@154
|
259 # --------------------------
|
cannam@154
|
260 # Define a few sed substitution that help us do robust quoting.
|
cannam@154
|
261 m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
|
cannam@154
|
262 [# Backslashify metacharacters that are still active within
|
cannam@154
|
263 # double-quoted strings.
|
cannam@154
|
264 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
|
cannam@154
|
265
|
cannam@154
|
266 # Same as above, but do not quote variable references.
|
cannam@154
|
267 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
|
cannam@154
|
268
|
cannam@154
|
269 # Sed substitution to delay expansion of an escaped shell variable in a
|
cannam@154
|
270 # double_quote_subst'ed string.
|
cannam@154
|
271 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
|
cannam@154
|
272
|
cannam@154
|
273 # Sed substitution to delay expansion of an escaped single quote.
|
cannam@154
|
274 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
|
cannam@154
|
275
|
cannam@154
|
276 # Sed substitution to avoid accidental globbing in evaled expressions
|
cannam@154
|
277 no_glob_subst='s/\*/\\\*/g'
|
cannam@154
|
278 ])
|
cannam@154
|
279
|
cannam@154
|
280 # _LT_PROG_LTMAIN
|
cannam@154
|
281 # ---------------
|
cannam@154
|
282 # Note that this code is called both from 'configure', and 'config.status'
|
cannam@154
|
283 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
|
cannam@154
|
284 # 'config.status' has no value for ac_aux_dir unless we are using Automake,
|
cannam@154
|
285 # so we pass a copy along to make sure it has a sensible value anyway.
|
cannam@154
|
286 m4_defun([_LT_PROG_LTMAIN],
|
cannam@154
|
287 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
|
cannam@154
|
288 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
|
cannam@154
|
289 ltmain=$ac_aux_dir/ltmain.sh
|
cannam@154
|
290 ])# _LT_PROG_LTMAIN
|
cannam@154
|
291
|
cannam@154
|
292
|
cannam@154
|
293 ## ------------------------------------- ##
|
cannam@154
|
294 ## Accumulate code for creating libtool. ##
|
cannam@154
|
295 ## ------------------------------------- ##
|
cannam@154
|
296
|
cannam@154
|
297 # So that we can recreate a full libtool script including additional
|
cannam@154
|
298 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
|
cannam@154
|
299 # in macros and then make a single call at the end using the 'libtool'
|
cannam@154
|
300 # label.
|
cannam@154
|
301
|
cannam@154
|
302
|
cannam@154
|
303 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
|
cannam@154
|
304 # ----------------------------------------
|
cannam@154
|
305 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
|
cannam@154
|
306 m4_define([_LT_CONFIG_LIBTOOL_INIT],
|
cannam@154
|
307 [m4_ifval([$1],
|
cannam@154
|
308 [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
|
cannam@154
|
309 [$1
|
cannam@154
|
310 ])])])
|
cannam@154
|
311
|
cannam@154
|
312 # Initialize.
|
cannam@154
|
313 m4_define([_LT_OUTPUT_LIBTOOL_INIT])
|
cannam@154
|
314
|
cannam@154
|
315
|
cannam@154
|
316 # _LT_CONFIG_LIBTOOL([COMMANDS])
|
cannam@154
|
317 # ------------------------------
|
cannam@154
|
318 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
|
cannam@154
|
319 m4_define([_LT_CONFIG_LIBTOOL],
|
cannam@154
|
320 [m4_ifval([$1],
|
cannam@154
|
321 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
|
cannam@154
|
322 [$1
|
cannam@154
|
323 ])])])
|
cannam@154
|
324
|
cannam@154
|
325 # Initialize.
|
cannam@154
|
326 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
|
cannam@154
|
327
|
cannam@154
|
328
|
cannam@154
|
329 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
|
cannam@154
|
330 # -----------------------------------------------------
|
cannam@154
|
331 m4_defun([_LT_CONFIG_SAVE_COMMANDS],
|
cannam@154
|
332 [_LT_CONFIG_LIBTOOL([$1])
|
cannam@154
|
333 _LT_CONFIG_LIBTOOL_INIT([$2])
|
cannam@154
|
334 ])
|
cannam@154
|
335
|
cannam@154
|
336
|
cannam@154
|
337 # _LT_FORMAT_COMMENT([COMMENT])
|
cannam@154
|
338 # -----------------------------
|
cannam@154
|
339 # Add leading comment marks to the start of each line, and a trailing
|
cannam@154
|
340 # full-stop to the whole comment if one is not present already.
|
cannam@154
|
341 m4_define([_LT_FORMAT_COMMENT],
|
cannam@154
|
342 [m4_ifval([$1], [
|
cannam@154
|
343 m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
|
cannam@154
|
344 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
|
cannam@154
|
345 )])
|
cannam@154
|
346
|
cannam@154
|
347
|
cannam@154
|
348
|
cannam@154
|
349 ## ------------------------ ##
|
cannam@154
|
350 ## FIXME: Eliminate VARNAME ##
|
cannam@154
|
351 ## ------------------------ ##
|
cannam@154
|
352
|
cannam@154
|
353
|
cannam@154
|
354 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
|
cannam@154
|
355 # -------------------------------------------------------------------
|
cannam@154
|
356 # CONFIGNAME is the name given to the value in the libtool script.
|
cannam@154
|
357 # VARNAME is the (base) name used in the configure script.
|
cannam@154
|
358 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
|
cannam@154
|
359 # VARNAME. Any other value will be used directly.
|
cannam@154
|
360 m4_define([_LT_DECL],
|
cannam@154
|
361 [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
|
cannam@154
|
362 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
|
cannam@154
|
363 [m4_ifval([$1], [$1], [$2])])
|
cannam@154
|
364 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
|
cannam@154
|
365 m4_ifval([$4],
|
cannam@154
|
366 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
|
cannam@154
|
367 lt_dict_add_subkey([lt_decl_dict], [$2],
|
cannam@154
|
368 [tagged?], [m4_ifval([$5], [yes], [no])])])
|
cannam@154
|
369 ])
|
cannam@154
|
370
|
cannam@154
|
371
|
cannam@154
|
372 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
|
cannam@154
|
373 # --------------------------------------------------------
|
cannam@154
|
374 m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
|
cannam@154
|
375
|
cannam@154
|
376
|
cannam@154
|
377 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
|
cannam@154
|
378 # ------------------------------------------------
|
cannam@154
|
379 m4_define([lt_decl_tag_varnames],
|
cannam@154
|
380 [_lt_decl_filter([tagged?], [yes], $@)])
|
cannam@154
|
381
|
cannam@154
|
382
|
cannam@154
|
383 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
|
cannam@154
|
384 # ---------------------------------------------------------
|
cannam@154
|
385 m4_define([_lt_decl_filter],
|
cannam@154
|
386 [m4_case([$#],
|
cannam@154
|
387 [0], [m4_fatal([$0: too few arguments: $#])],
|
cannam@154
|
388 [1], [m4_fatal([$0: too few arguments: $#: $1])],
|
cannam@154
|
389 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
|
cannam@154
|
390 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
|
cannam@154
|
391 [lt_dict_filter([lt_decl_dict], $@)])[]dnl
|
cannam@154
|
392 ])
|
cannam@154
|
393
|
cannam@154
|
394
|
cannam@154
|
395 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
|
cannam@154
|
396 # --------------------------------------------------
|
cannam@154
|
397 m4_define([lt_decl_quote_varnames],
|
cannam@154
|
398 [_lt_decl_filter([value], [1], $@)])
|
cannam@154
|
399
|
cannam@154
|
400
|
cannam@154
|
401 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
|
cannam@154
|
402 # ---------------------------------------------------
|
cannam@154
|
403 m4_define([lt_decl_dquote_varnames],
|
cannam@154
|
404 [_lt_decl_filter([value], [2], $@)])
|
cannam@154
|
405
|
cannam@154
|
406
|
cannam@154
|
407 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
|
cannam@154
|
408 # ---------------------------------------------------
|
cannam@154
|
409 m4_define([lt_decl_varnames_tagged],
|
cannam@154
|
410 [m4_assert([$# <= 2])dnl
|
cannam@154
|
411 _$0(m4_quote(m4_default([$1], [[, ]])),
|
cannam@154
|
412 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
|
cannam@154
|
413 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
|
cannam@154
|
414 m4_define([_lt_decl_varnames_tagged],
|
cannam@154
|
415 [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
|
cannam@154
|
416
|
cannam@154
|
417
|
cannam@154
|
418 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
|
cannam@154
|
419 # ------------------------------------------------
|
cannam@154
|
420 m4_define([lt_decl_all_varnames],
|
cannam@154
|
421 [_$0(m4_quote(m4_default([$1], [[, ]])),
|
cannam@154
|
422 m4_if([$2], [],
|
cannam@154
|
423 m4_quote(lt_decl_varnames),
|
cannam@154
|
424 m4_quote(m4_shift($@))))[]dnl
|
cannam@154
|
425 ])
|
cannam@154
|
426 m4_define([_lt_decl_all_varnames],
|
cannam@154
|
427 [lt_join($@, lt_decl_varnames_tagged([$1],
|
cannam@154
|
428 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
|
cannam@154
|
429 ])
|
cannam@154
|
430
|
cannam@154
|
431
|
cannam@154
|
432 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
|
cannam@154
|
433 # ------------------------------------
|
cannam@154
|
434 # Quote a variable value, and forward it to 'config.status' so that its
|
cannam@154
|
435 # declaration there will have the same value as in 'configure'. VARNAME
|
cannam@154
|
436 # must have a single quote delimited value for this to work.
|
cannam@154
|
437 m4_define([_LT_CONFIG_STATUS_DECLARE],
|
cannam@154
|
438 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
|
cannam@154
|
439
|
cannam@154
|
440
|
cannam@154
|
441 # _LT_CONFIG_STATUS_DECLARATIONS
|
cannam@154
|
442 # ------------------------------
|
cannam@154
|
443 # We delimit libtool config variables with single quotes, so when
|
cannam@154
|
444 # we write them to config.status, we have to be sure to quote all
|
cannam@154
|
445 # embedded single quotes properly. In configure, this macro expands
|
cannam@154
|
446 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
|
cannam@154
|
447 #
|
cannam@154
|
448 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
449 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
|
cannam@154
|
450 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
|
cannam@154
|
451 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
|
cannam@154
|
452
|
cannam@154
|
453
|
cannam@154
|
454 # _LT_LIBTOOL_TAGS
|
cannam@154
|
455 # ----------------
|
cannam@154
|
456 # Output comment and list of tags supported by the script
|
cannam@154
|
457 m4_defun([_LT_LIBTOOL_TAGS],
|
cannam@154
|
458 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
|
cannam@154
|
459 available_tags='_LT_TAGS'dnl
|
cannam@154
|
460 ])
|
cannam@154
|
461
|
cannam@154
|
462
|
cannam@154
|
463 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
|
cannam@154
|
464 # -----------------------------------
|
cannam@154
|
465 # Extract the dictionary values for VARNAME (optionally with TAG) and
|
cannam@154
|
466 # expand to a commented shell variable setting:
|
cannam@154
|
467 #
|
cannam@154
|
468 # # Some comment about what VAR is for.
|
cannam@154
|
469 # visible_name=$lt_internal_name
|
cannam@154
|
470 m4_define([_LT_LIBTOOL_DECLARE],
|
cannam@154
|
471 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
|
cannam@154
|
472 [description])))[]dnl
|
cannam@154
|
473 m4_pushdef([_libtool_name],
|
cannam@154
|
474 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
|
cannam@154
|
475 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
|
cannam@154
|
476 [0], [_libtool_name=[$]$1],
|
cannam@154
|
477 [1], [_libtool_name=$lt_[]$1],
|
cannam@154
|
478 [2], [_libtool_name=$lt_[]$1],
|
cannam@154
|
479 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
|
cannam@154
|
480 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
|
cannam@154
|
481 ])
|
cannam@154
|
482
|
cannam@154
|
483
|
cannam@154
|
484 # _LT_LIBTOOL_CONFIG_VARS
|
cannam@154
|
485 # -----------------------
|
cannam@154
|
486 # Produce commented declarations of non-tagged libtool config variables
|
cannam@154
|
487 # suitable for insertion in the LIBTOOL CONFIG section of the 'libtool'
|
cannam@154
|
488 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
|
cannam@154
|
489 # section) are produced by _LT_LIBTOOL_TAG_VARS.
|
cannam@154
|
490 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
|
cannam@154
|
491 [m4_foreach([_lt_var],
|
cannam@154
|
492 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
|
cannam@154
|
493 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
|
cannam@154
|
494
|
cannam@154
|
495
|
cannam@154
|
496 # _LT_LIBTOOL_TAG_VARS(TAG)
|
cannam@154
|
497 # -------------------------
|
cannam@154
|
498 m4_define([_LT_LIBTOOL_TAG_VARS],
|
cannam@154
|
499 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
|
cannam@154
|
500 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
|
cannam@154
|
501
|
cannam@154
|
502
|
cannam@154
|
503 # _LT_TAGVAR(VARNAME, [TAGNAME])
|
cannam@154
|
504 # ------------------------------
|
cannam@154
|
505 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
|
cannam@154
|
506
|
cannam@154
|
507
|
cannam@154
|
508 # _LT_CONFIG_COMMANDS
|
cannam@154
|
509 # -------------------
|
cannam@154
|
510 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
|
cannam@154
|
511 # variables for single and double quote escaping we saved from calls
|
cannam@154
|
512 # to _LT_DECL, we can put quote escaped variables declarations
|
cannam@154
|
513 # into 'config.status', and then the shell code to quote escape them in
|
cannam@154
|
514 # for loops in 'config.status'. Finally, any additional code accumulated
|
cannam@154
|
515 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
|
cannam@154
|
516 m4_defun([_LT_CONFIG_COMMANDS],
|
cannam@154
|
517 [AC_PROVIDE_IFELSE([LT_OUTPUT],
|
cannam@154
|
518 dnl If the libtool generation code has been placed in $CONFIG_LT,
|
cannam@154
|
519 dnl instead of duplicating it all over again into config.status,
|
cannam@154
|
520 dnl then we will have config.status run $CONFIG_LT later, so it
|
cannam@154
|
521 dnl needs to know what name is stored there:
|
cannam@154
|
522 [AC_CONFIG_COMMANDS([libtool],
|
cannam@154
|
523 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
|
cannam@154
|
524 dnl If the libtool generation code is destined for config.status,
|
cannam@154
|
525 dnl expand the accumulated commands and init code now:
|
cannam@154
|
526 [AC_CONFIG_COMMANDS([libtool],
|
cannam@154
|
527 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
|
cannam@154
|
528 ])#_LT_CONFIG_COMMANDS
|
cannam@154
|
529
|
cannam@154
|
530
|
cannam@154
|
531 # Initialize.
|
cannam@154
|
532 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
|
cannam@154
|
533 [
|
cannam@154
|
534
|
cannam@154
|
535 # The HP-UX ksh and POSIX shell print the target directory to stdout
|
cannam@154
|
536 # if CDPATH is set.
|
cannam@154
|
537 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
cannam@154
|
538
|
cannam@154
|
539 sed_quote_subst='$sed_quote_subst'
|
cannam@154
|
540 double_quote_subst='$double_quote_subst'
|
cannam@154
|
541 delay_variable_subst='$delay_variable_subst'
|
cannam@154
|
542 _LT_CONFIG_STATUS_DECLARATIONS
|
cannam@154
|
543 LTCC='$LTCC'
|
cannam@154
|
544 LTCFLAGS='$LTCFLAGS'
|
cannam@154
|
545 compiler='$compiler_DEFAULT'
|
cannam@154
|
546
|
cannam@154
|
547 # A function that is used when there is no print builtin or printf.
|
cannam@154
|
548 func_fallback_echo ()
|
cannam@154
|
549 {
|
cannam@154
|
550 eval 'cat <<_LTECHO_EOF
|
cannam@154
|
551 \$[]1
|
cannam@154
|
552 _LTECHO_EOF'
|
cannam@154
|
553 }
|
cannam@154
|
554
|
cannam@154
|
555 # Quote evaled strings.
|
cannam@154
|
556 for var in lt_decl_all_varnames([[ \
|
cannam@154
|
557 ]], lt_decl_quote_varnames); do
|
cannam@154
|
558 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
|
cannam@154
|
559 *[[\\\\\\\`\\"\\\$]]*)
|
cannam@154
|
560 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
|
cannam@154
|
561 ;;
|
cannam@154
|
562 *)
|
cannam@154
|
563 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
|
cannam@154
|
564 ;;
|
cannam@154
|
565 esac
|
cannam@154
|
566 done
|
cannam@154
|
567
|
cannam@154
|
568 # Double-quote double-evaled strings.
|
cannam@154
|
569 for var in lt_decl_all_varnames([[ \
|
cannam@154
|
570 ]], lt_decl_dquote_varnames); do
|
cannam@154
|
571 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
|
cannam@154
|
572 *[[\\\\\\\`\\"\\\$]]*)
|
cannam@154
|
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
|
cannam@154
|
574 ;;
|
cannam@154
|
575 *)
|
cannam@154
|
576 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
|
cannam@154
|
577 ;;
|
cannam@154
|
578 esac
|
cannam@154
|
579 done
|
cannam@154
|
580
|
cannam@154
|
581 _LT_OUTPUT_LIBTOOL_INIT
|
cannam@154
|
582 ])
|
cannam@154
|
583
|
cannam@154
|
584 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
|
cannam@154
|
585 # ------------------------------------
|
cannam@154
|
586 # Generate a child script FILE with all initialization necessary to
|
cannam@154
|
587 # reuse the environment learned by the parent script, and make the
|
cannam@154
|
588 # file executable. If COMMENT is supplied, it is inserted after the
|
cannam@154
|
589 # '#!' sequence but before initialization text begins. After this
|
cannam@154
|
590 # macro, additional text can be appended to FILE to form the body of
|
cannam@154
|
591 # the child script. The macro ends with non-zero status if the
|
cannam@154
|
592 # file could not be fully written (such as if the disk is full).
|
cannam@154
|
593 m4_ifdef([AS_INIT_GENERATED],
|
cannam@154
|
594 [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
|
cannam@154
|
595 [m4_defun([_LT_GENERATED_FILE_INIT],
|
cannam@154
|
596 [m4_require([AS_PREPARE])]dnl
|
cannam@154
|
597 [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
|
cannam@154
|
598 [lt_write_fail=0
|
cannam@154
|
599 cat >$1 <<_ASEOF || lt_write_fail=1
|
cannam@154
|
600 #! $SHELL
|
cannam@154
|
601 # Generated by $as_me.
|
cannam@154
|
602 $2
|
cannam@154
|
603 SHELL=\${CONFIG_SHELL-$SHELL}
|
cannam@154
|
604 export SHELL
|
cannam@154
|
605 _ASEOF
|
cannam@154
|
606 cat >>$1 <<\_ASEOF || lt_write_fail=1
|
cannam@154
|
607 AS_SHELL_SANITIZE
|
cannam@154
|
608 _AS_PREPARE
|
cannam@154
|
609 exec AS_MESSAGE_FD>&1
|
cannam@154
|
610 _ASEOF
|
cannam@154
|
611 test 0 = "$lt_write_fail" && chmod +x $1[]dnl
|
cannam@154
|
612 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
|
cannam@154
|
613
|
cannam@154
|
614 # LT_OUTPUT
|
cannam@154
|
615 # ---------
|
cannam@154
|
616 # This macro allows early generation of the libtool script (before
|
cannam@154
|
617 # AC_OUTPUT is called), incase it is used in configure for compilation
|
cannam@154
|
618 # tests.
|
cannam@154
|
619 AC_DEFUN([LT_OUTPUT],
|
cannam@154
|
620 [: ${CONFIG_LT=./config.lt}
|
cannam@154
|
621 AC_MSG_NOTICE([creating $CONFIG_LT])
|
cannam@154
|
622 _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
|
cannam@154
|
623 [# Run this file to recreate a libtool stub with the current configuration.])
|
cannam@154
|
624
|
cannam@154
|
625 cat >>"$CONFIG_LT" <<\_LTEOF
|
cannam@154
|
626 lt_cl_silent=false
|
cannam@154
|
627 exec AS_MESSAGE_LOG_FD>>config.log
|
cannam@154
|
628 {
|
cannam@154
|
629 echo
|
cannam@154
|
630 AS_BOX([Running $as_me.])
|
cannam@154
|
631 } >&AS_MESSAGE_LOG_FD
|
cannam@154
|
632
|
cannam@154
|
633 lt_cl_help="\
|
cannam@154
|
634 '$as_me' creates a local libtool stub from the current configuration,
|
cannam@154
|
635 for use in further configure time tests before the real libtool is
|
cannam@154
|
636 generated.
|
cannam@154
|
637
|
cannam@154
|
638 Usage: $[0] [[OPTIONS]]
|
cannam@154
|
639
|
cannam@154
|
640 -h, --help print this help, then exit
|
cannam@154
|
641 -V, --version print version number, then exit
|
cannam@154
|
642 -q, --quiet do not print progress messages
|
cannam@154
|
643 -d, --debug don't remove temporary files
|
cannam@154
|
644
|
cannam@154
|
645 Report bugs to <bug-libtool@gnu.org>."
|
cannam@154
|
646
|
cannam@154
|
647 lt_cl_version="\
|
cannam@154
|
648 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
|
cannam@154
|
649 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
|
cannam@154
|
650 configured by $[0], generated by m4_PACKAGE_STRING.
|
cannam@154
|
651
|
cannam@154
|
652 Copyright (C) 2011 Free Software Foundation, Inc.
|
cannam@154
|
653 This config.lt script is free software; the Free Software Foundation
|
cannam@154
|
654 gives unlimited permision to copy, distribute and modify it."
|
cannam@154
|
655
|
cannam@154
|
656 while test 0 != $[#]
|
cannam@154
|
657 do
|
cannam@154
|
658 case $[1] in
|
cannam@154
|
659 --version | --v* | -V )
|
cannam@154
|
660 echo "$lt_cl_version"; exit 0 ;;
|
cannam@154
|
661 --help | --h* | -h )
|
cannam@154
|
662 echo "$lt_cl_help"; exit 0 ;;
|
cannam@154
|
663 --debug | --d* | -d )
|
cannam@154
|
664 debug=: ;;
|
cannam@154
|
665 --quiet | --q* | --silent | --s* | -q )
|
cannam@154
|
666 lt_cl_silent=: ;;
|
cannam@154
|
667
|
cannam@154
|
668 -*) AC_MSG_ERROR([unrecognized option: $[1]
|
cannam@154
|
669 Try '$[0] --help' for more information.]) ;;
|
cannam@154
|
670
|
cannam@154
|
671 *) AC_MSG_ERROR([unrecognized argument: $[1]
|
cannam@154
|
672 Try '$[0] --help' for more information.]) ;;
|
cannam@154
|
673 esac
|
cannam@154
|
674 shift
|
cannam@154
|
675 done
|
cannam@154
|
676
|
cannam@154
|
677 if $lt_cl_silent; then
|
cannam@154
|
678 exec AS_MESSAGE_FD>/dev/null
|
cannam@154
|
679 fi
|
cannam@154
|
680 _LTEOF
|
cannam@154
|
681
|
cannam@154
|
682 cat >>"$CONFIG_LT" <<_LTEOF
|
cannam@154
|
683 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
|
cannam@154
|
684 _LTEOF
|
cannam@154
|
685
|
cannam@154
|
686 cat >>"$CONFIG_LT" <<\_LTEOF
|
cannam@154
|
687 AC_MSG_NOTICE([creating $ofile])
|
cannam@154
|
688 _LT_OUTPUT_LIBTOOL_COMMANDS
|
cannam@154
|
689 AS_EXIT(0)
|
cannam@154
|
690 _LTEOF
|
cannam@154
|
691 chmod +x "$CONFIG_LT"
|
cannam@154
|
692
|
cannam@154
|
693 # configure is writing to config.log, but config.lt does its own redirection,
|
cannam@154
|
694 # appending to config.log, which fails on DOS, as config.log is still kept
|
cannam@154
|
695 # open by configure. Here we exec the FD to /dev/null, effectively closing
|
cannam@154
|
696 # config.log, so it can be properly (re)opened and appended to by config.lt.
|
cannam@154
|
697 lt_cl_success=:
|
cannam@154
|
698 test yes = "$silent" &&
|
cannam@154
|
699 lt_config_lt_args="$lt_config_lt_args --quiet"
|
cannam@154
|
700 exec AS_MESSAGE_LOG_FD>/dev/null
|
cannam@154
|
701 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
|
cannam@154
|
702 exec AS_MESSAGE_LOG_FD>>config.log
|
cannam@154
|
703 $lt_cl_success || AS_EXIT(1)
|
cannam@154
|
704 ])# LT_OUTPUT
|
cannam@154
|
705
|
cannam@154
|
706
|
cannam@154
|
707 # _LT_CONFIG(TAG)
|
cannam@154
|
708 # ---------------
|
cannam@154
|
709 # If TAG is the built-in tag, create an initial libtool script with a
|
cannam@154
|
710 # default configuration from the untagged config vars. Otherwise add code
|
cannam@154
|
711 # to config.status for appending the configuration named by TAG from the
|
cannam@154
|
712 # matching tagged config vars.
|
cannam@154
|
713 m4_defun([_LT_CONFIG],
|
cannam@154
|
714 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
cannam@154
|
715 _LT_CONFIG_SAVE_COMMANDS([
|
cannam@154
|
716 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
|
cannam@154
|
717 m4_if(_LT_TAG, [C], [
|
cannam@154
|
718 # See if we are running on zsh, and set the options that allow our
|
cannam@154
|
719 # commands through without removal of \ escapes.
|
cannam@154
|
720 if test -n "${ZSH_VERSION+set}"; then
|
cannam@154
|
721 setopt NO_GLOB_SUBST
|
cannam@154
|
722 fi
|
cannam@154
|
723
|
cannam@154
|
724 cfgfile=${ofile}T
|
cannam@154
|
725 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
|
cannam@154
|
726 $RM "$cfgfile"
|
cannam@154
|
727
|
cannam@154
|
728 cat <<_LT_EOF >> "$cfgfile"
|
cannam@154
|
729 #! $SHELL
|
cannam@154
|
730 # Generated automatically by $as_me ($PACKAGE) $VERSION
|
cannam@154
|
731 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
cannam@154
|
732 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
cannam@154
|
733
|
cannam@154
|
734 # Provide generalized library-building support services.
|
cannam@154
|
735 # Written by Gordon Matzigkeit, 1996
|
cannam@154
|
736
|
cannam@154
|
737 _LT_COPYING
|
cannam@154
|
738 _LT_LIBTOOL_TAGS
|
cannam@154
|
739
|
cannam@154
|
740 # Configured defaults for sys_lib_dlsearch_path munging.
|
cannam@154
|
741 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
|
cannam@154
|
742
|
cannam@154
|
743 # ### BEGIN LIBTOOL CONFIG
|
cannam@154
|
744 _LT_LIBTOOL_CONFIG_VARS
|
cannam@154
|
745 _LT_LIBTOOL_TAG_VARS
|
cannam@154
|
746 # ### END LIBTOOL CONFIG
|
cannam@154
|
747
|
cannam@154
|
748 _LT_EOF
|
cannam@154
|
749
|
cannam@154
|
750 cat <<'_LT_EOF' >> "$cfgfile"
|
cannam@154
|
751
|
cannam@154
|
752 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
|
cannam@154
|
753
|
cannam@154
|
754 _LT_PREPARE_MUNGE_PATH_LIST
|
cannam@154
|
755 _LT_PREPARE_CC_BASENAME
|
cannam@154
|
756
|
cannam@154
|
757 # ### END FUNCTIONS SHARED WITH CONFIGURE
|
cannam@154
|
758
|
cannam@154
|
759 _LT_EOF
|
cannam@154
|
760
|
cannam@154
|
761 case $host_os in
|
cannam@154
|
762 aix3*)
|
cannam@154
|
763 cat <<\_LT_EOF >> "$cfgfile"
|
cannam@154
|
764 # AIX sometimes has problems with the GCC collect2 program. For some
|
cannam@154
|
765 # reason, if we set the COLLECT_NAMES environment variable, the problems
|
cannam@154
|
766 # vanish in a puff of smoke.
|
cannam@154
|
767 if test set != "${COLLECT_NAMES+set}"; then
|
cannam@154
|
768 COLLECT_NAMES=
|
cannam@154
|
769 export COLLECT_NAMES
|
cannam@154
|
770 fi
|
cannam@154
|
771 _LT_EOF
|
cannam@154
|
772 ;;
|
cannam@154
|
773 esac
|
cannam@154
|
774
|
cannam@154
|
775 _LT_PROG_LTMAIN
|
cannam@154
|
776
|
cannam@154
|
777 # We use sed instead of cat because bash on DJGPP gets confused if
|
cannam@154
|
778 # if finds mixed CR/LF and LF-only lines. Since sed operates in
|
cannam@154
|
779 # text mode, it properly converts lines to CR/LF. This bash problem
|
cannam@154
|
780 # is reportedly fixed, but why not run on old versions too?
|
cannam@154
|
781 sed '$q' "$ltmain" >> "$cfgfile" \
|
cannam@154
|
782 || (rm -f "$cfgfile"; exit 1)
|
cannam@154
|
783
|
cannam@154
|
784 mv -f "$cfgfile" "$ofile" ||
|
cannam@154
|
785 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
|
cannam@154
|
786 chmod +x "$ofile"
|
cannam@154
|
787 ],
|
cannam@154
|
788 [cat <<_LT_EOF >> "$ofile"
|
cannam@154
|
789
|
cannam@154
|
790 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
|
cannam@154
|
791 dnl in a comment (ie after a #).
|
cannam@154
|
792 # ### BEGIN LIBTOOL TAG CONFIG: $1
|
cannam@154
|
793 _LT_LIBTOOL_TAG_VARS(_LT_TAG)
|
cannam@154
|
794 # ### END LIBTOOL TAG CONFIG: $1
|
cannam@154
|
795 _LT_EOF
|
cannam@154
|
796 ])dnl /m4_if
|
cannam@154
|
797 ],
|
cannam@154
|
798 [m4_if([$1], [], [
|
cannam@154
|
799 PACKAGE='$PACKAGE'
|
cannam@154
|
800 VERSION='$VERSION'
|
cannam@154
|
801 RM='$RM'
|
cannam@154
|
802 ofile='$ofile'], [])
|
cannam@154
|
803 ])dnl /_LT_CONFIG_SAVE_COMMANDS
|
cannam@154
|
804 ])# _LT_CONFIG
|
cannam@154
|
805
|
cannam@154
|
806
|
cannam@154
|
807 # LT_SUPPORTED_TAG(TAG)
|
cannam@154
|
808 # ---------------------
|
cannam@154
|
809 # Trace this macro to discover what tags are supported by the libtool
|
cannam@154
|
810 # --tag option, using:
|
cannam@154
|
811 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
|
cannam@154
|
812 AC_DEFUN([LT_SUPPORTED_TAG], [])
|
cannam@154
|
813
|
cannam@154
|
814
|
cannam@154
|
815 # C support is built-in for now
|
cannam@154
|
816 m4_define([_LT_LANG_C_enabled], [])
|
cannam@154
|
817 m4_define([_LT_TAGS], [])
|
cannam@154
|
818
|
cannam@154
|
819
|
cannam@154
|
820 # LT_LANG(LANG)
|
cannam@154
|
821 # -------------
|
cannam@154
|
822 # Enable libtool support for the given language if not already enabled.
|
cannam@154
|
823 AC_DEFUN([LT_LANG],
|
cannam@154
|
824 [AC_BEFORE([$0], [LT_OUTPUT])dnl
|
cannam@154
|
825 m4_case([$1],
|
cannam@154
|
826 [C], [_LT_LANG(C)],
|
cannam@154
|
827 [C++], [_LT_LANG(CXX)],
|
cannam@154
|
828 [Go], [_LT_LANG(GO)],
|
cannam@154
|
829 [Java], [_LT_LANG(GCJ)],
|
cannam@154
|
830 [Fortran 77], [_LT_LANG(F77)],
|
cannam@154
|
831 [Fortran], [_LT_LANG(FC)],
|
cannam@154
|
832 [Windows Resource], [_LT_LANG(RC)],
|
cannam@154
|
833 [m4_ifdef([_LT_LANG_]$1[_CONFIG],
|
cannam@154
|
834 [_LT_LANG($1)],
|
cannam@154
|
835 [m4_fatal([$0: unsupported language: "$1"])])])dnl
|
cannam@154
|
836 ])# LT_LANG
|
cannam@154
|
837
|
cannam@154
|
838
|
cannam@154
|
839 # _LT_LANG(LANGNAME)
|
cannam@154
|
840 # ------------------
|
cannam@154
|
841 m4_defun([_LT_LANG],
|
cannam@154
|
842 [m4_ifdef([_LT_LANG_]$1[_enabled], [],
|
cannam@154
|
843 [LT_SUPPORTED_TAG([$1])dnl
|
cannam@154
|
844 m4_append([_LT_TAGS], [$1 ])dnl
|
cannam@154
|
845 m4_define([_LT_LANG_]$1[_enabled], [])dnl
|
cannam@154
|
846 _LT_LANG_$1_CONFIG($1)])dnl
|
cannam@154
|
847 ])# _LT_LANG
|
cannam@154
|
848
|
cannam@154
|
849
|
cannam@154
|
850 m4_ifndef([AC_PROG_GO], [
|
cannam@154
|
851 ############################################################
|
cannam@154
|
852 # NOTE: This macro has been submitted for inclusion into #
|
cannam@154
|
853 # GNU Autoconf as AC_PROG_GO. When it is available in #
|
cannam@154
|
854 # a released version of Autoconf we should remove this #
|
cannam@154
|
855 # macro and use it instead. #
|
cannam@154
|
856 ############################################################
|
cannam@154
|
857 m4_defun([AC_PROG_GO],
|
cannam@154
|
858 [AC_LANG_PUSH(Go)dnl
|
cannam@154
|
859 AC_ARG_VAR([GOC], [Go compiler command])dnl
|
cannam@154
|
860 AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
|
cannam@154
|
861 _AC_ARG_VAR_LDFLAGS()dnl
|
cannam@154
|
862 AC_CHECK_TOOL(GOC, gccgo)
|
cannam@154
|
863 if test -z "$GOC"; then
|
cannam@154
|
864 if test -n "$ac_tool_prefix"; then
|
cannam@154
|
865 AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
|
cannam@154
|
866 fi
|
cannam@154
|
867 fi
|
cannam@154
|
868 if test -z "$GOC"; then
|
cannam@154
|
869 AC_CHECK_PROG(GOC, gccgo, gccgo, false)
|
cannam@154
|
870 fi
|
cannam@154
|
871 ])#m4_defun
|
cannam@154
|
872 ])#m4_ifndef
|
cannam@154
|
873
|
cannam@154
|
874
|
cannam@154
|
875 # _LT_LANG_DEFAULT_CONFIG
|
cannam@154
|
876 # -----------------------
|
cannam@154
|
877 m4_defun([_LT_LANG_DEFAULT_CONFIG],
|
cannam@154
|
878 [AC_PROVIDE_IFELSE([AC_PROG_CXX],
|
cannam@154
|
879 [LT_LANG(CXX)],
|
cannam@154
|
880 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
|
cannam@154
|
881
|
cannam@154
|
882 AC_PROVIDE_IFELSE([AC_PROG_F77],
|
cannam@154
|
883 [LT_LANG(F77)],
|
cannam@154
|
884 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
|
cannam@154
|
885
|
cannam@154
|
886 AC_PROVIDE_IFELSE([AC_PROG_FC],
|
cannam@154
|
887 [LT_LANG(FC)],
|
cannam@154
|
888 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
|
cannam@154
|
889
|
cannam@154
|
890 dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
|
cannam@154
|
891 dnl pulling things in needlessly.
|
cannam@154
|
892 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
|
cannam@154
|
893 [LT_LANG(GCJ)],
|
cannam@154
|
894 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
|
cannam@154
|
895 [LT_LANG(GCJ)],
|
cannam@154
|
896 [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
|
cannam@154
|
897 [LT_LANG(GCJ)],
|
cannam@154
|
898 [m4_ifdef([AC_PROG_GCJ],
|
cannam@154
|
899 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
|
cannam@154
|
900 m4_ifdef([A][M_PROG_GCJ],
|
cannam@154
|
901 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
|
cannam@154
|
902 m4_ifdef([LT_PROG_GCJ],
|
cannam@154
|
903 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
|
cannam@154
|
904
|
cannam@154
|
905 AC_PROVIDE_IFELSE([AC_PROG_GO],
|
cannam@154
|
906 [LT_LANG(GO)],
|
cannam@154
|
907 [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
|
cannam@154
|
908
|
cannam@154
|
909 AC_PROVIDE_IFELSE([LT_PROG_RC],
|
cannam@154
|
910 [LT_LANG(RC)],
|
cannam@154
|
911 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
|
cannam@154
|
912 ])# _LT_LANG_DEFAULT_CONFIG
|
cannam@154
|
913
|
cannam@154
|
914 # Obsolete macros:
|
cannam@154
|
915 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
|
cannam@154
|
916 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
|
cannam@154
|
917 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
|
cannam@154
|
918 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
|
cannam@154
|
919 AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
|
cannam@154
|
920 dnl aclocal-1.4 backwards compatibility:
|
cannam@154
|
921 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
|
cannam@154
|
922 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
|
cannam@154
|
923 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
|
cannam@154
|
924 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
|
cannam@154
|
925 dnl AC_DEFUN([AC_LIBTOOL_RC], [])
|
cannam@154
|
926
|
cannam@154
|
927
|
cannam@154
|
928 # _LT_TAG_COMPILER
|
cannam@154
|
929 # ----------------
|
cannam@154
|
930 m4_defun([_LT_TAG_COMPILER],
|
cannam@154
|
931 [AC_REQUIRE([AC_PROG_CC])dnl
|
cannam@154
|
932
|
cannam@154
|
933 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
|
cannam@154
|
934 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
|
cannam@154
|
935 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
|
cannam@154
|
936 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
|
cannam@154
|
937
|
cannam@154
|
938 # If no C compiler was specified, use CC.
|
cannam@154
|
939 LTCC=${LTCC-"$CC"}
|
cannam@154
|
940
|
cannam@154
|
941 # If no C compiler flags were specified, use CFLAGS.
|
cannam@154
|
942 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
cannam@154
|
943
|
cannam@154
|
944 # Allow CC to be a program name with arguments.
|
cannam@154
|
945 compiler=$CC
|
cannam@154
|
946 ])# _LT_TAG_COMPILER
|
cannam@154
|
947
|
cannam@154
|
948
|
cannam@154
|
949 # _LT_COMPILER_BOILERPLATE
|
cannam@154
|
950 # ------------------------
|
cannam@154
|
951 # Check for compiler boilerplate output or warnings with
|
cannam@154
|
952 # the simple compiler test code.
|
cannam@154
|
953 m4_defun([_LT_COMPILER_BOILERPLATE],
|
cannam@154
|
954 [m4_require([_LT_DECL_SED])dnl
|
cannam@154
|
955 ac_outfile=conftest.$ac_objext
|
cannam@154
|
956 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
|
cannam@154
|
957 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
cannam@154
|
958 _lt_compiler_boilerplate=`cat conftest.err`
|
cannam@154
|
959 $RM conftest*
|
cannam@154
|
960 ])# _LT_COMPILER_BOILERPLATE
|
cannam@154
|
961
|
cannam@154
|
962
|
cannam@154
|
963 # _LT_LINKER_BOILERPLATE
|
cannam@154
|
964 # ----------------------
|
cannam@154
|
965 # Check for linker boilerplate output or warnings with
|
cannam@154
|
966 # the simple link test code.
|
cannam@154
|
967 m4_defun([_LT_LINKER_BOILERPLATE],
|
cannam@154
|
968 [m4_require([_LT_DECL_SED])dnl
|
cannam@154
|
969 ac_outfile=conftest.$ac_objext
|
cannam@154
|
970 echo "$lt_simple_link_test_code" >conftest.$ac_ext
|
cannam@154
|
971 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
cannam@154
|
972 _lt_linker_boilerplate=`cat conftest.err`
|
cannam@154
|
973 $RM -r conftest*
|
cannam@154
|
974 ])# _LT_LINKER_BOILERPLATE
|
cannam@154
|
975
|
cannam@154
|
976 # _LT_REQUIRED_DARWIN_CHECKS
|
cannam@154
|
977 # -------------------------
|
cannam@154
|
978 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
|
cannam@154
|
979 case $host_os in
|
cannam@154
|
980 rhapsody* | darwin*)
|
cannam@154
|
981 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
|
cannam@154
|
982 AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
|
cannam@154
|
983 AC_CHECK_TOOL([LIPO], [lipo], [:])
|
cannam@154
|
984 AC_CHECK_TOOL([OTOOL], [otool], [:])
|
cannam@154
|
985 AC_CHECK_TOOL([OTOOL64], [otool64], [:])
|
cannam@154
|
986 _LT_DECL([], [DSYMUTIL], [1],
|
cannam@154
|
987 [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
|
cannam@154
|
988 _LT_DECL([], [NMEDIT], [1],
|
cannam@154
|
989 [Tool to change global to local symbols on Mac OS X])
|
cannam@154
|
990 _LT_DECL([], [LIPO], [1],
|
cannam@154
|
991 [Tool to manipulate fat objects and archives on Mac OS X])
|
cannam@154
|
992 _LT_DECL([], [OTOOL], [1],
|
cannam@154
|
993 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
|
cannam@154
|
994 _LT_DECL([], [OTOOL64], [1],
|
cannam@154
|
995 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
|
cannam@154
|
996
|
cannam@154
|
997 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
|
cannam@154
|
998 [lt_cv_apple_cc_single_mod=no
|
cannam@154
|
999 if test -z "$LT_MULTI_MODULE"; then
|
cannam@154
|
1000 # By default we will add the -single_module flag. You can override
|
cannam@154
|
1001 # by either setting the environment variable LT_MULTI_MODULE
|
cannam@154
|
1002 # non-empty at configure time, or by adding -multi_module to the
|
cannam@154
|
1003 # link flags.
|
cannam@154
|
1004 rm -rf libconftest.dylib*
|
cannam@154
|
1005 echo "int foo(void){return 1;}" > conftest.c
|
cannam@154
|
1006 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
|
cannam@154
|
1007 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
|
cannam@154
|
1008 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
|
cannam@154
|
1009 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
|
cannam@154
|
1010 _lt_result=$?
|
cannam@154
|
1011 # If there is a non-empty error log, and "single_module"
|
cannam@154
|
1012 # appears in it, assume the flag caused a linker warning
|
cannam@154
|
1013 if test -s conftest.err && $GREP single_module conftest.err; then
|
cannam@154
|
1014 cat conftest.err >&AS_MESSAGE_LOG_FD
|
cannam@154
|
1015 # Otherwise, if the output was created with a 0 exit code from
|
cannam@154
|
1016 # the compiler, it worked.
|
cannam@154
|
1017 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
|
cannam@154
|
1018 lt_cv_apple_cc_single_mod=yes
|
cannam@154
|
1019 else
|
cannam@154
|
1020 cat conftest.err >&AS_MESSAGE_LOG_FD
|
cannam@154
|
1021 fi
|
cannam@154
|
1022 rm -rf libconftest.dylib*
|
cannam@154
|
1023 rm -f conftest.*
|
cannam@154
|
1024 fi])
|
cannam@154
|
1025
|
cannam@154
|
1026 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
|
cannam@154
|
1027 [lt_cv_ld_exported_symbols_list],
|
cannam@154
|
1028 [lt_cv_ld_exported_symbols_list=no
|
cannam@154
|
1029 save_LDFLAGS=$LDFLAGS
|
cannam@154
|
1030 echo "_main" > conftest.sym
|
cannam@154
|
1031 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
|
cannam@154
|
1032 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
|
cannam@154
|
1033 [lt_cv_ld_exported_symbols_list=yes],
|
cannam@154
|
1034 [lt_cv_ld_exported_symbols_list=no])
|
cannam@154
|
1035 LDFLAGS=$save_LDFLAGS
|
cannam@154
|
1036 ])
|
cannam@154
|
1037
|
cannam@154
|
1038 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
|
cannam@154
|
1039 [lt_cv_ld_force_load=no
|
cannam@154
|
1040 cat > conftest.c << _LT_EOF
|
cannam@154
|
1041 int forced_loaded() { return 2;}
|
cannam@154
|
1042 _LT_EOF
|
cannam@154
|
1043 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
|
cannam@154
|
1044 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
|
cannam@154
|
1045 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
|
cannam@154
|
1046 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
|
cannam@154
|
1047 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
|
cannam@154
|
1048 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
|
cannam@154
|
1049 cat > conftest.c << _LT_EOF
|
cannam@154
|
1050 int main() { return 0;}
|
cannam@154
|
1051 _LT_EOF
|
cannam@154
|
1052 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
|
cannam@154
|
1053 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
|
cannam@154
|
1054 _lt_result=$?
|
cannam@154
|
1055 if test -s conftest.err && $GREP force_load conftest.err; then
|
cannam@154
|
1056 cat conftest.err >&AS_MESSAGE_LOG_FD
|
cannam@154
|
1057 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
|
cannam@154
|
1058 lt_cv_ld_force_load=yes
|
cannam@154
|
1059 else
|
cannam@154
|
1060 cat conftest.err >&AS_MESSAGE_LOG_FD
|
cannam@154
|
1061 fi
|
cannam@154
|
1062 rm -f conftest.err libconftest.a conftest conftest.c
|
cannam@154
|
1063 rm -rf conftest.dSYM
|
cannam@154
|
1064 ])
|
cannam@154
|
1065 case $host_os in
|
cannam@154
|
1066 rhapsody* | darwin1.[[012]])
|
cannam@154
|
1067 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
|
cannam@154
|
1068 darwin1.*)
|
cannam@154
|
1069 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
|
cannam@154
|
1070 darwin*) # darwin 5.x on
|
cannam@154
|
1071 # if running on 10.5 or later, the deployment target defaults
|
cannam@154
|
1072 # to the OS version, if on x86, and 10.4, the deployment
|
cannam@154
|
1073 # target defaults to 10.4. Don't you love it?
|
cannam@154
|
1074 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
|
cannam@154
|
1075 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
|
cannam@154
|
1076 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
|
cannam@154
|
1077 10.[[012]][[,.]]*)
|
cannam@154
|
1078 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
|
cannam@154
|
1079 10.*)
|
cannam@154
|
1080 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
|
cannam@154
|
1081 esac
|
cannam@154
|
1082 ;;
|
cannam@154
|
1083 esac
|
cannam@154
|
1084 if test yes = "$lt_cv_apple_cc_single_mod"; then
|
cannam@154
|
1085 _lt_dar_single_mod='$single_module'
|
cannam@154
|
1086 fi
|
cannam@154
|
1087 if test yes = "$lt_cv_ld_exported_symbols_list"; then
|
cannam@154
|
1088 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
|
cannam@154
|
1089 else
|
cannam@154
|
1090 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
|
cannam@154
|
1091 fi
|
cannam@154
|
1092 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
|
cannam@154
|
1093 _lt_dsymutil='~$DSYMUTIL $lib || :'
|
cannam@154
|
1094 else
|
cannam@154
|
1095 _lt_dsymutil=
|
cannam@154
|
1096 fi
|
cannam@154
|
1097 ;;
|
cannam@154
|
1098 esac
|
cannam@154
|
1099 ])
|
cannam@154
|
1100
|
cannam@154
|
1101
|
cannam@154
|
1102 # _LT_DARWIN_LINKER_FEATURES([TAG])
|
cannam@154
|
1103 # ---------------------------------
|
cannam@154
|
1104 # Checks for linker and compiler features on darwin
|
cannam@154
|
1105 m4_defun([_LT_DARWIN_LINKER_FEATURES],
|
cannam@154
|
1106 [
|
cannam@154
|
1107 m4_require([_LT_REQUIRED_DARWIN_CHECKS])
|
cannam@154
|
1108 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
cannam@154
|
1109 _LT_TAGVAR(hardcode_direct, $1)=no
|
cannam@154
|
1110 _LT_TAGVAR(hardcode_automatic, $1)=yes
|
cannam@154
|
1111 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
|
cannam@154
|
1112 if test yes = "$lt_cv_ld_force_load"; then
|
cannam@154
|
1113 _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\"`'
|
cannam@154
|
1114 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
|
cannam@154
|
1115 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
|
cannam@154
|
1116 else
|
cannam@154
|
1117 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
|
cannam@154
|
1118 fi
|
cannam@154
|
1119 _LT_TAGVAR(link_all_deplibs, $1)=yes
|
cannam@154
|
1120 _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined
|
cannam@154
|
1121 case $cc_basename in
|
cannam@154
|
1122 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
|
cannam@154
|
1123 *) _lt_dar_can_shared=$GCC ;;
|
cannam@154
|
1124 esac
|
cannam@154
|
1125 if test yes = "$_lt_dar_can_shared"; then
|
cannam@154
|
1126 output_verbose_link_cmd=func_echo_all
|
cannam@154
|
1127 _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"
|
cannam@154
|
1128 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
|
cannam@154
|
1129 _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"
|
cannam@154
|
1130 _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"
|
cannam@154
|
1131 m4_if([$1], [CXX],
|
cannam@154
|
1132 [ if test yes != "$lt_cv_apple_cc_single_mod"; then
|
cannam@154
|
1133 _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"
|
cannam@154
|
1134 _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"
|
cannam@154
|
1135 fi
|
cannam@154
|
1136 ],[])
|
cannam@154
|
1137 else
|
cannam@154
|
1138 _LT_TAGVAR(ld_shlibs, $1)=no
|
cannam@154
|
1139 fi
|
cannam@154
|
1140 ])
|
cannam@154
|
1141
|
cannam@154
|
1142 # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
|
cannam@154
|
1143 # ----------------------------------
|
cannam@154
|
1144 # Links a minimal program and checks the executable
|
cannam@154
|
1145 # for the system default hardcoded library path. In most cases,
|
cannam@154
|
1146 # this is /usr/lib:/lib, but when the MPI compilers are used
|
cannam@154
|
1147 # the location of the communication and MPI libs are included too.
|
cannam@154
|
1148 # If we don't find anything, use the default library path according
|
cannam@154
|
1149 # to the aix ld manual.
|
cannam@154
|
1150 # Store the results from the different compilers for each TAGNAME.
|
cannam@154
|
1151 # Allow to override them for all tags through lt_cv_aix_libpath.
|
cannam@154
|
1152 m4_defun([_LT_SYS_MODULE_PATH_AIX],
|
cannam@154
|
1153 [m4_require([_LT_DECL_SED])dnl
|
cannam@154
|
1154 if test set = "${lt_cv_aix_libpath+set}"; then
|
cannam@154
|
1155 aix_libpath=$lt_cv_aix_libpath
|
cannam@154
|
1156 else
|
cannam@154
|
1157 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
|
cannam@154
|
1158 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
|
cannam@154
|
1159 lt_aix_libpath_sed='[
|
cannam@154
|
1160 /Import File Strings/,/^$/ {
|
cannam@154
|
1161 /^0/ {
|
cannam@154
|
1162 s/^0 *\([^ ]*\) *$/\1/
|
cannam@154
|
1163 p
|
cannam@154
|
1164 }
|
cannam@154
|
1165 }]'
|
cannam@154
|
1166 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
cannam@154
|
1167 # Check for a 64-bit object if we didn't find anything.
|
cannam@154
|
1168 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
|
cannam@154
|
1169 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
cannam@154
|
1170 fi],[])
|
cannam@154
|
1171 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
|
cannam@154
|
1172 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib
|
cannam@154
|
1173 fi
|
cannam@154
|
1174 ])
|
cannam@154
|
1175 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
|
cannam@154
|
1176 fi
|
cannam@154
|
1177 ])# _LT_SYS_MODULE_PATH_AIX
|
cannam@154
|
1178
|
cannam@154
|
1179
|
cannam@154
|
1180 # _LT_SHELL_INIT(ARG)
|
cannam@154
|
1181 # -------------------
|
cannam@154
|
1182 m4_define([_LT_SHELL_INIT],
|
cannam@154
|
1183 [m4_divert_text([M4SH-INIT], [$1
|
cannam@154
|
1184 ])])# _LT_SHELL_INIT
|
cannam@154
|
1185
|
cannam@154
|
1186
|
cannam@154
|
1187
|
cannam@154
|
1188 # _LT_PROG_ECHO_BACKSLASH
|
cannam@154
|
1189 # -----------------------
|
cannam@154
|
1190 # Find how we can fake an echo command that does not interpret backslash.
|
cannam@154
|
1191 # In particular, with Autoconf 2.60 or later we add some code to the start
|
cannam@154
|
1192 # of the generated configure script that will find a shell with a builtin
|
cannam@154
|
1193 # printf (that we can use as an echo command).
|
cannam@154
|
1194 m4_defun([_LT_PROG_ECHO_BACKSLASH],
|
cannam@154
|
1195 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
cannam@154
|
1196 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
|
cannam@154
|
1197 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
|
cannam@154
|
1198
|
cannam@154
|
1199 AC_MSG_CHECKING([how to print strings])
|
cannam@154
|
1200 # Test print first, because it will be a builtin if present.
|
cannam@154
|
1201 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
|
cannam@154
|
1202 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
|
cannam@154
|
1203 ECHO='print -r --'
|
cannam@154
|
1204 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
|
cannam@154
|
1205 ECHO='printf %s\n'
|
cannam@154
|
1206 else
|
cannam@154
|
1207 # Use this function as a fallback that always works.
|
cannam@154
|
1208 func_fallback_echo ()
|
cannam@154
|
1209 {
|
cannam@154
|
1210 eval 'cat <<_LTECHO_EOF
|
cannam@154
|
1211 $[]1
|
cannam@154
|
1212 _LTECHO_EOF'
|
cannam@154
|
1213 }
|
cannam@154
|
1214 ECHO='func_fallback_echo'
|
cannam@154
|
1215 fi
|
cannam@154
|
1216
|
cannam@154
|
1217 # func_echo_all arg...
|
cannam@154
|
1218 # Invoke $ECHO with all args, space-separated.
|
cannam@154
|
1219 func_echo_all ()
|
cannam@154
|
1220 {
|
cannam@154
|
1221 $ECHO "$*"
|
cannam@154
|
1222 }
|
cannam@154
|
1223
|
cannam@154
|
1224 case $ECHO in
|
cannam@154
|
1225 printf*) AC_MSG_RESULT([printf]) ;;
|
cannam@154
|
1226 print*) AC_MSG_RESULT([print -r]) ;;
|
cannam@154
|
1227 *) AC_MSG_RESULT([cat]) ;;
|
cannam@154
|
1228 esac
|
cannam@154
|
1229
|
cannam@154
|
1230 m4_ifdef([_AS_DETECT_SUGGESTED],
|
cannam@154
|
1231 [_AS_DETECT_SUGGESTED([
|
cannam@154
|
1232 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
|
cannam@154
|
1233 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
cannam@154
|
1234 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
|
cannam@154
|
1235 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
|
cannam@154
|
1236 PATH=/empty FPATH=/empty; export PATH FPATH
|
cannam@154
|
1237 test "X`printf %s $ECHO`" = "X$ECHO" \
|
cannam@154
|
1238 || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
|
cannam@154
|
1239
|
cannam@154
|
1240 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
|
cannam@154
|
1241 _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
|
cannam@154
|
1242 ])# _LT_PROG_ECHO_BACKSLASH
|
cannam@154
|
1243
|
cannam@154
|
1244
|
cannam@154
|
1245 # _LT_WITH_SYSROOT
|
cannam@154
|
1246 # ----------------
|
cannam@154
|
1247 AC_DEFUN([_LT_WITH_SYSROOT],
|
cannam@154
|
1248 [AC_MSG_CHECKING([for sysroot])
|
cannam@154
|
1249 AC_ARG_WITH([sysroot],
|
cannam@154
|
1250 [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@],
|
cannam@154
|
1251 [Search for dependent libraries within DIR (or the compiler's sysroot
|
cannam@154
|
1252 if not specified).])],
|
cannam@154
|
1253 [], [with_sysroot=no])
|
cannam@154
|
1254
|
cannam@154
|
1255 dnl lt_sysroot will always be passed unquoted. We quote it here
|
cannam@154
|
1256 dnl in case the user passed a directory name.
|
cannam@154
|
1257 lt_sysroot=
|
cannam@154
|
1258 case $with_sysroot in #(
|
cannam@154
|
1259 yes)
|
cannam@154
|
1260 if test yes = "$GCC"; then
|
cannam@154
|
1261 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
|
cannam@154
|
1262 fi
|
cannam@154
|
1263 ;; #(
|
cannam@154
|
1264 /*)
|
cannam@154
|
1265 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
|
cannam@154
|
1266 ;; #(
|
cannam@154
|
1267 no|'')
|
cannam@154
|
1268 ;; #(
|
cannam@154
|
1269 *)
|
cannam@154
|
1270 AC_MSG_RESULT([$with_sysroot])
|
cannam@154
|
1271 AC_MSG_ERROR([The sysroot must be an absolute path.])
|
cannam@154
|
1272 ;;
|
cannam@154
|
1273 esac
|
cannam@154
|
1274
|
cannam@154
|
1275 AC_MSG_RESULT([${lt_sysroot:-no}])
|
cannam@154
|
1276 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
|
cannam@154
|
1277 [dependent libraries, and where our libraries should be installed.])])
|
cannam@154
|
1278
|
cannam@154
|
1279 # _LT_ENABLE_LOCK
|
cannam@154
|
1280 # ---------------
|
cannam@154
|
1281 m4_defun([_LT_ENABLE_LOCK],
|
cannam@154
|
1282 [AC_ARG_ENABLE([libtool-lock],
|
cannam@154
|
1283 [AS_HELP_STRING([--disable-libtool-lock],
|
cannam@154
|
1284 [avoid locking (might break parallel builds)])])
|
cannam@154
|
1285 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
|
cannam@154
|
1286
|
cannam@154
|
1287 # Some flags need to be propagated to the compiler or linker for good
|
cannam@154
|
1288 # libtool support.
|
cannam@154
|
1289 case $host in
|
cannam@154
|
1290 ia64-*-hpux*)
|
cannam@154
|
1291 # Find out what ABI is being produced by ac_compile, and set mode
|
cannam@154
|
1292 # options accordingly.
|
cannam@154
|
1293 echo 'int i;' > conftest.$ac_ext
|
cannam@154
|
1294 if AC_TRY_EVAL(ac_compile); then
|
cannam@154
|
1295 case `/usr/bin/file conftest.$ac_objext` in
|
cannam@154
|
1296 *ELF-32*)
|
cannam@154
|
1297 HPUX_IA64_MODE=32
|
cannam@154
|
1298 ;;
|
cannam@154
|
1299 *ELF-64*)
|
cannam@154
|
1300 HPUX_IA64_MODE=64
|
cannam@154
|
1301 ;;
|
cannam@154
|
1302 esac
|
cannam@154
|
1303 fi
|
cannam@154
|
1304 rm -rf conftest*
|
cannam@154
|
1305 ;;
|
cannam@154
|
1306 *-*-irix6*)
|
cannam@154
|
1307 # Find out what ABI is being produced by ac_compile, and set linker
|
cannam@154
|
1308 # options accordingly.
|
cannam@154
|
1309 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
|
cannam@154
|
1310 if AC_TRY_EVAL(ac_compile); then
|
cannam@154
|
1311 if test yes = "$lt_cv_prog_gnu_ld"; then
|
cannam@154
|
1312 case `/usr/bin/file conftest.$ac_objext` in
|
cannam@154
|
1313 *32-bit*)
|
cannam@154
|
1314 LD="${LD-ld} -melf32bsmip"
|
cannam@154
|
1315 ;;
|
cannam@154
|
1316 *N32*)
|
cannam@154
|
1317 LD="${LD-ld} -melf32bmipn32"
|
cannam@154
|
1318 ;;
|
cannam@154
|
1319 *64-bit*)
|
cannam@154
|
1320 LD="${LD-ld} -melf64bmip"
|
cannam@154
|
1321 ;;
|
cannam@154
|
1322 esac
|
cannam@154
|
1323 else
|
cannam@154
|
1324 case `/usr/bin/file conftest.$ac_objext` in
|
cannam@154
|
1325 *32-bit*)
|
cannam@154
|
1326 LD="${LD-ld} -32"
|
cannam@154
|
1327 ;;
|
cannam@154
|
1328 *N32*)
|
cannam@154
|
1329 LD="${LD-ld} -n32"
|
cannam@154
|
1330 ;;
|
cannam@154
|
1331 *64-bit*)
|
cannam@154
|
1332 LD="${LD-ld} -64"
|
cannam@154
|
1333 ;;
|
cannam@154
|
1334 esac
|
cannam@154
|
1335 fi
|
cannam@154
|
1336 fi
|
cannam@154
|
1337 rm -rf conftest*
|
cannam@154
|
1338 ;;
|
cannam@154
|
1339
|
cannam@154
|
1340 mips64*-*linux*)
|
cannam@154
|
1341 # Find out what ABI is being produced by ac_compile, and set linker
|
cannam@154
|
1342 # options accordingly.
|
cannam@154
|
1343 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
|
cannam@154
|
1344 if AC_TRY_EVAL(ac_compile); then
|
cannam@154
|
1345 emul=elf
|
cannam@154
|
1346 case `/usr/bin/file conftest.$ac_objext` in
|
cannam@154
|
1347 *32-bit*)
|
cannam@154
|
1348 emul="${emul}32"
|
cannam@154
|
1349 ;;
|
cannam@154
|
1350 *64-bit*)
|
cannam@154
|
1351 emul="${emul}64"
|
cannam@154
|
1352 ;;
|
cannam@154
|
1353 esac
|
cannam@154
|
1354 case `/usr/bin/file conftest.$ac_objext` in
|
cannam@154
|
1355 *MSB*)
|
cannam@154
|
1356 emul="${emul}btsmip"
|
cannam@154
|
1357 ;;
|
cannam@154
|
1358 *LSB*)
|
cannam@154
|
1359 emul="${emul}ltsmip"
|
cannam@154
|
1360 ;;
|
cannam@154
|
1361 esac
|
cannam@154
|
1362 case `/usr/bin/file conftest.$ac_objext` in
|
cannam@154
|
1363 *N32*)
|
cannam@154
|
1364 emul="${emul}n32"
|
cannam@154
|
1365 ;;
|
cannam@154
|
1366 esac
|
cannam@154
|
1367 LD="${LD-ld} -m $emul"
|
cannam@154
|
1368 fi
|
cannam@154
|
1369 rm -rf conftest*
|
cannam@154
|
1370 ;;
|
cannam@154
|
1371
|
cannam@154
|
1372 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
|
cannam@154
|
1373 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
|
cannam@154
|
1374 # Find out what ABI is being produced by ac_compile, and set linker
|
cannam@154
|
1375 # options accordingly. Note that the listed cases only cover the
|
cannam@154
|
1376 # situations where additional linker options are needed (such as when
|
cannam@154
|
1377 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
|
cannam@154
|
1378 # vice versa); the common cases where no linker options are needed do
|
cannam@154
|
1379 # not appear in the list.
|
cannam@154
|
1380 echo 'int i;' > conftest.$ac_ext
|
cannam@154
|
1381 if AC_TRY_EVAL(ac_compile); then
|
cannam@154
|
1382 case `/usr/bin/file conftest.o` in
|
cannam@154
|
1383 *32-bit*)
|
cannam@154
|
1384 case $host in
|
cannam@154
|
1385 x86_64-*kfreebsd*-gnu)
|
cannam@154
|
1386 LD="${LD-ld} -m elf_i386_fbsd"
|
cannam@154
|
1387 ;;
|
cannam@154
|
1388 x86_64-*linux*)
|
cannam@154
|
1389 case `/usr/bin/file conftest.o` in
|
cannam@154
|
1390 *x86-64*)
|
cannam@154
|
1391 LD="${LD-ld} -m elf32_x86_64"
|
cannam@154
|
1392 ;;
|
cannam@154
|
1393 *)
|
cannam@154
|
1394 LD="${LD-ld} -m elf_i386"
|
cannam@154
|
1395 ;;
|
cannam@154
|
1396 esac
|
cannam@154
|
1397 ;;
|
cannam@154
|
1398 powerpc64le-*linux*)
|
cannam@154
|
1399 LD="${LD-ld} -m elf32lppclinux"
|
cannam@154
|
1400 ;;
|
cannam@154
|
1401 powerpc64-*linux*)
|
cannam@154
|
1402 LD="${LD-ld} -m elf32ppclinux"
|
cannam@154
|
1403 ;;
|
cannam@154
|
1404 s390x-*linux*)
|
cannam@154
|
1405 LD="${LD-ld} -m elf_s390"
|
cannam@154
|
1406 ;;
|
cannam@154
|
1407 sparc64-*linux*)
|
cannam@154
|
1408 LD="${LD-ld} -m elf32_sparc"
|
cannam@154
|
1409 ;;
|
cannam@154
|
1410 esac
|
cannam@154
|
1411 ;;
|
cannam@154
|
1412 *64-bit*)
|
cannam@154
|
1413 case $host in
|
cannam@154
|
1414 x86_64-*kfreebsd*-gnu)
|
cannam@154
|
1415 LD="${LD-ld} -m elf_x86_64_fbsd"
|
cannam@154
|
1416 ;;
|
cannam@154
|
1417 x86_64-*linux*)
|
cannam@154
|
1418 LD="${LD-ld} -m elf_x86_64"
|
cannam@154
|
1419 ;;
|
cannam@154
|
1420 powerpcle-*linux*)
|
cannam@154
|
1421 LD="${LD-ld} -m elf64lppc"
|
cannam@154
|
1422 ;;
|
cannam@154
|
1423 powerpc-*linux*)
|
cannam@154
|
1424 LD="${LD-ld} -m elf64ppc"
|
cannam@154
|
1425 ;;
|
cannam@154
|
1426 s390*-*linux*|s390*-*tpf*)
|
cannam@154
|
1427 LD="${LD-ld} -m elf64_s390"
|
cannam@154
|
1428 ;;
|
cannam@154
|
1429 sparc*-*linux*)
|
cannam@154
|
1430 LD="${LD-ld} -m elf64_sparc"
|
cannam@154
|
1431 ;;
|
cannam@154
|
1432 esac
|
cannam@154
|
1433 ;;
|
cannam@154
|
1434 esac
|
cannam@154
|
1435 fi
|
cannam@154
|
1436 rm -rf conftest*
|
cannam@154
|
1437 ;;
|
cannam@154
|
1438
|
cannam@154
|
1439 *-*-sco3.2v5*)
|
cannam@154
|
1440 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
cannam@154
|
1441 SAVE_CFLAGS=$CFLAGS
|
cannam@154
|
1442 CFLAGS="$CFLAGS -belf"
|
cannam@154
|
1443 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
|
cannam@154
|
1444 [AC_LANG_PUSH(C)
|
cannam@154
|
1445 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
|
cannam@154
|
1446 AC_LANG_POP])
|
cannam@154
|
1447 if test yes != "$lt_cv_cc_needs_belf"; then
|
cannam@154
|
1448 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
cannam@154
|
1449 CFLAGS=$SAVE_CFLAGS
|
cannam@154
|
1450 fi
|
cannam@154
|
1451 ;;
|
cannam@154
|
1452 *-*solaris*)
|
cannam@154
|
1453 # Find out what ABI is being produced by ac_compile, and set linker
|
cannam@154
|
1454 # options accordingly.
|
cannam@154
|
1455 echo 'int i;' > conftest.$ac_ext
|
cannam@154
|
1456 if AC_TRY_EVAL(ac_compile); then
|
cannam@154
|
1457 case `/usr/bin/file conftest.o` in
|
cannam@154
|
1458 *64-bit*)
|
cannam@154
|
1459 case $lt_cv_prog_gnu_ld in
|
cannam@154
|
1460 yes*)
|
cannam@154
|
1461 case $host in
|
cannam@154
|
1462 i?86-*-solaris*|x86_64-*-solaris*)
|
cannam@154
|
1463 LD="${LD-ld} -m elf_x86_64"
|
cannam@154
|
1464 ;;
|
cannam@154
|
1465 sparc*-*-solaris*)
|
cannam@154
|
1466 LD="${LD-ld} -m elf64_sparc"
|
cannam@154
|
1467 ;;
|
cannam@154
|
1468 esac
|
cannam@154
|
1469 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
|
cannam@154
|
1470 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
|
cannam@154
|
1471 LD=${LD-ld}_sol2
|
cannam@154
|
1472 fi
|
cannam@154
|
1473 ;;
|
cannam@154
|
1474 *)
|
cannam@154
|
1475 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
|
cannam@154
|
1476 LD="${LD-ld} -64"
|
cannam@154
|
1477 fi
|
cannam@154
|
1478 ;;
|
cannam@154
|
1479 esac
|
cannam@154
|
1480 ;;
|
cannam@154
|
1481 esac
|
cannam@154
|
1482 fi
|
cannam@154
|
1483 rm -rf conftest*
|
cannam@154
|
1484 ;;
|
cannam@154
|
1485 esac
|
cannam@154
|
1486
|
cannam@154
|
1487 need_locks=$enable_libtool_lock
|
cannam@154
|
1488 ])# _LT_ENABLE_LOCK
|
cannam@154
|
1489
|
cannam@154
|
1490
|
cannam@154
|
1491 # _LT_PROG_AR
|
cannam@154
|
1492 # -----------
|
cannam@154
|
1493 m4_defun([_LT_PROG_AR],
|
cannam@154
|
1494 [AC_CHECK_TOOLS(AR, [ar], false)
|
cannam@154
|
1495 : ${AR=ar}
|
cannam@154
|
1496 : ${AR_FLAGS=cru}
|
cannam@154
|
1497 _LT_DECL([], [AR], [1], [The archiver])
|
cannam@154
|
1498 _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
|
cannam@154
|
1499
|
cannam@154
|
1500 AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
|
cannam@154
|
1501 [lt_cv_ar_at_file=no
|
cannam@154
|
1502 AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
|
cannam@154
|
1503 [echo conftest.$ac_objext > conftest.lst
|
cannam@154
|
1504 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
|
cannam@154
|
1505 AC_TRY_EVAL([lt_ar_try])
|
cannam@154
|
1506 if test 0 -eq "$ac_status"; then
|
cannam@154
|
1507 # Ensure the archiver fails upon bogus file names.
|
cannam@154
|
1508 rm -f conftest.$ac_objext libconftest.a
|
cannam@154
|
1509 AC_TRY_EVAL([lt_ar_try])
|
cannam@154
|
1510 if test 0 -ne "$ac_status"; then
|
cannam@154
|
1511 lt_cv_ar_at_file=@
|
cannam@154
|
1512 fi
|
cannam@154
|
1513 fi
|
cannam@154
|
1514 rm -f conftest.* libconftest.a
|
cannam@154
|
1515 ])
|
cannam@154
|
1516 ])
|
cannam@154
|
1517
|
cannam@154
|
1518 if test no = "$lt_cv_ar_at_file"; then
|
cannam@154
|
1519 archiver_list_spec=
|
cannam@154
|
1520 else
|
cannam@154
|
1521 archiver_list_spec=$lt_cv_ar_at_file
|
cannam@154
|
1522 fi
|
cannam@154
|
1523 _LT_DECL([], [archiver_list_spec], [1],
|
cannam@154
|
1524 [How to feed a file listing to the archiver])
|
cannam@154
|
1525 ])# _LT_PROG_AR
|
cannam@154
|
1526
|
cannam@154
|
1527
|
cannam@154
|
1528 # _LT_CMD_OLD_ARCHIVE
|
cannam@154
|
1529 # -------------------
|
cannam@154
|
1530 m4_defun([_LT_CMD_OLD_ARCHIVE],
|
cannam@154
|
1531 [_LT_PROG_AR
|
cannam@154
|
1532
|
cannam@154
|
1533 AC_CHECK_TOOL(STRIP, strip, :)
|
cannam@154
|
1534 test -z "$STRIP" && STRIP=:
|
cannam@154
|
1535 _LT_DECL([], [STRIP], [1], [A symbol stripping program])
|
cannam@154
|
1536
|
cannam@154
|
1537 AC_CHECK_TOOL(RANLIB, ranlib, :)
|
cannam@154
|
1538 test -z "$RANLIB" && RANLIB=:
|
cannam@154
|
1539 _LT_DECL([], [RANLIB], [1],
|
cannam@154
|
1540 [Commands used to install an old-style archive])
|
cannam@154
|
1541
|
cannam@154
|
1542 # Determine commands to create old-style static archives.
|
cannam@154
|
1543 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
|
cannam@154
|
1544 old_postinstall_cmds='chmod 644 $oldlib'
|
cannam@154
|
1545 old_postuninstall_cmds=
|
cannam@154
|
1546
|
cannam@154
|
1547 if test -n "$RANLIB"; then
|
cannam@154
|
1548 case $host_os in
|
cannam@154
|
1549 bitrig* | openbsd*)
|
cannam@154
|
1550 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
|
cannam@154
|
1551 ;;
|
cannam@154
|
1552 *)
|
cannam@154
|
1553 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
|
cannam@154
|
1554 ;;
|
cannam@154
|
1555 esac
|
cannam@154
|
1556 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
|
cannam@154
|
1557 fi
|
cannam@154
|
1558
|
cannam@154
|
1559 case $host_os in
|
cannam@154
|
1560 darwin*)
|
cannam@154
|
1561 lock_old_archive_extraction=yes ;;
|
cannam@154
|
1562 *)
|
cannam@154
|
1563 lock_old_archive_extraction=no ;;
|
cannam@154
|
1564 esac
|
cannam@154
|
1565 _LT_DECL([], [old_postinstall_cmds], [2])
|
cannam@154
|
1566 _LT_DECL([], [old_postuninstall_cmds], [2])
|
cannam@154
|
1567 _LT_TAGDECL([], [old_archive_cmds], [2],
|
cannam@154
|
1568 [Commands used to build an old-style archive])
|
cannam@154
|
1569 _LT_DECL([], [lock_old_archive_extraction], [0],
|
cannam@154
|
1570 [Whether to use a lock for old archive extraction])
|
cannam@154
|
1571 ])# _LT_CMD_OLD_ARCHIVE
|
cannam@154
|
1572
|
cannam@154
|
1573
|
cannam@154
|
1574 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
|
cannam@154
|
1575 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
|
cannam@154
|
1576 # ----------------------------------------------------------------
|
cannam@154
|
1577 # Check whether the given compiler option works
|
cannam@154
|
1578 AC_DEFUN([_LT_COMPILER_OPTION],
|
cannam@154
|
1579 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
cannam@154
|
1580 m4_require([_LT_DECL_SED])dnl
|
cannam@154
|
1581 AC_CACHE_CHECK([$1], [$2],
|
cannam@154
|
1582 [$2=no
|
cannam@154
|
1583 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
|
cannam@154
|
1584 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
cannam@154
|
1585 lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment
|
cannam@154
|
1586 # Insert the option either (1) after the last *FLAGS variable, or
|
cannam@154
|
1587 # (2) before a word containing "conftest.", or (3) at the end.
|
cannam@154
|
1588 # Note that $ac_compile itself does not contain backslashes and begins
|
cannam@154
|
1589 # with a dollar sign (not a hyphen), so the echo should work correctly.
|
cannam@154
|
1590 # The option is referenced via a variable to avoid confusing sed.
|
cannam@154
|
1591 lt_compile=`echo "$ac_compile" | $SED \
|
cannam@154
|
1592 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
cannam@154
|
1593 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
|
cannam@154
|
1594 -e 's:$: $lt_compiler_flag:'`
|
cannam@154
|
1595 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
|
cannam@154
|
1596 (eval "$lt_compile" 2>conftest.err)
|
cannam@154
|
1597 ac_status=$?
|
cannam@154
|
1598 cat conftest.err >&AS_MESSAGE_LOG_FD
|
cannam@154
|
1599 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
|
cannam@154
|
1600 if (exit $ac_status) && test -s "$ac_outfile"; then
|
cannam@154
|
1601 # The compiler can only warn and ignore the option if not recognized
|
cannam@154
|
1602 # So say no if there are warnings other than the usual output.
|
cannam@154
|
1603 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
|
cannam@154
|
1604 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
cannam@154
|
1605 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
cannam@154
|
1606 $2=yes
|
cannam@154
|
1607 fi
|
cannam@154
|
1608 fi
|
cannam@154
|
1609 $RM conftest*
|
cannam@154
|
1610 ])
|
cannam@154
|
1611
|
cannam@154
|
1612 if test yes = "[$]$2"; then
|
cannam@154
|
1613 m4_if([$5], , :, [$5])
|
cannam@154
|
1614 else
|
cannam@154
|
1615 m4_if([$6], , :, [$6])
|
cannam@154
|
1616 fi
|
cannam@154
|
1617 ])# _LT_COMPILER_OPTION
|
cannam@154
|
1618
|
cannam@154
|
1619 # Old name:
|
cannam@154
|
1620 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
|
cannam@154
|
1621 dnl aclocal-1.4 backwards compatibility:
|
cannam@154
|
1622 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
|
cannam@154
|
1623
|
cannam@154
|
1624
|
cannam@154
|
1625 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
|
cannam@154
|
1626 # [ACTION-SUCCESS], [ACTION-FAILURE])
|
cannam@154
|
1627 # ----------------------------------------------------
|
cannam@154
|
1628 # Check whether the given linker option works
|
cannam@154
|
1629 AC_DEFUN([_LT_LINKER_OPTION],
|
cannam@154
|
1630 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
cannam@154
|
1631 m4_require([_LT_DECL_SED])dnl
|
cannam@154
|
1632 AC_CACHE_CHECK([$1], [$2],
|
cannam@154
|
1633 [$2=no
|
cannam@154
|
1634 save_LDFLAGS=$LDFLAGS
|
cannam@154
|
1635 LDFLAGS="$LDFLAGS $3"
|
cannam@154
|
1636 echo "$lt_simple_link_test_code" > conftest.$ac_ext
|
cannam@154
|
1637 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
cannam@154
|
1638 # The linker can only warn and ignore the option if not recognized
|
cannam@154
|
1639 # So say no if there are warnings
|
cannam@154
|
1640 if test -s conftest.err; then
|
cannam@154
|
1641 # Append any errors to the config.log.
|
cannam@154
|
1642 cat conftest.err 1>&AS_MESSAGE_LOG_FD
|
cannam@154
|
1643 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
|
cannam@154
|
1644 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
cannam@154
|
1645 if diff conftest.exp conftest.er2 >/dev/null; then
|
cannam@154
|
1646 $2=yes
|
cannam@154
|
1647 fi
|
cannam@154
|
1648 else
|
cannam@154
|
1649 $2=yes
|
cannam@154
|
1650 fi
|
cannam@154
|
1651 fi
|
cannam@154
|
1652 $RM -r conftest*
|
cannam@154
|
1653 LDFLAGS=$save_LDFLAGS
|
cannam@154
|
1654 ])
|
cannam@154
|
1655
|
cannam@154
|
1656 if test yes = "[$]$2"; then
|
cannam@154
|
1657 m4_if([$4], , :, [$4])
|
cannam@154
|
1658 else
|
cannam@154
|
1659 m4_if([$5], , :, [$5])
|
cannam@154
|
1660 fi
|
cannam@154
|
1661 ])# _LT_LINKER_OPTION
|
cannam@154
|
1662
|
cannam@154
|
1663 # Old name:
|
cannam@154
|
1664 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
|
cannam@154
|
1665 dnl aclocal-1.4 backwards compatibility:
|
cannam@154
|
1666 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
|
cannam@154
|
1667
|
cannam@154
|
1668
|
cannam@154
|
1669 # LT_CMD_MAX_LEN
|
cannam@154
|
1670 #---------------
|
cannam@154
|
1671 AC_DEFUN([LT_CMD_MAX_LEN],
|
cannam@154
|
1672 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
cannam@154
|
1673 # find the maximum length of command line arguments
|
cannam@154
|
1674 AC_MSG_CHECKING([the maximum length of command line arguments])
|
cannam@154
|
1675 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
|
cannam@154
|
1676 i=0
|
cannam@154
|
1677 teststring=ABCD
|
cannam@154
|
1678
|
cannam@154
|
1679 case $build_os in
|
cannam@154
|
1680 msdosdjgpp*)
|
cannam@154
|
1681 # On DJGPP, this test can blow up pretty badly due to problems in libc
|
cannam@154
|
1682 # (any single argument exceeding 2000 bytes causes a buffer overrun
|
cannam@154
|
1683 # during glob expansion). Even if it were fixed, the result of this
|
cannam@154
|
1684 # check would be larger than it should be.
|
cannam@154
|
1685 lt_cv_sys_max_cmd_len=12288; # 12K is about right
|
cannam@154
|
1686 ;;
|
cannam@154
|
1687
|
cannam@154
|
1688 gnu*)
|
cannam@154
|
1689 # Under GNU Hurd, this test is not required because there is
|
cannam@154
|
1690 # no limit to the length of command line arguments.
|
cannam@154
|
1691 # Libtool will interpret -1 as no limit whatsoever
|
cannam@154
|
1692 lt_cv_sys_max_cmd_len=-1;
|
cannam@154
|
1693 ;;
|
cannam@154
|
1694
|
cannam@154
|
1695 cygwin* | mingw* | cegcc*)
|
cannam@154
|
1696 # On Win9x/ME, this test blows up -- it succeeds, but takes
|
cannam@154
|
1697 # about 5 minutes as the teststring grows exponentially.
|
cannam@154
|
1698 # Worse, since 9x/ME are not pre-emptively multitasking,
|
cannam@154
|
1699 # you end up with a "frozen" computer, even though with patience
|
cannam@154
|
1700 # the test eventually succeeds (with a max line length of 256k).
|
cannam@154
|
1701 # Instead, let's just punt: use the minimum linelength reported by
|
cannam@154
|
1702 # all of the supported platforms: 8192 (on NT/2K/XP).
|
cannam@154
|
1703 lt_cv_sys_max_cmd_len=8192;
|
cannam@154
|
1704 ;;
|
cannam@154
|
1705
|
cannam@154
|
1706 mint*)
|
cannam@154
|
1707 # On MiNT this can take a long time and run out of memory.
|
cannam@154
|
1708 lt_cv_sys_max_cmd_len=8192;
|
cannam@154
|
1709 ;;
|
cannam@154
|
1710
|
cannam@154
|
1711 amigaos*)
|
cannam@154
|
1712 # On AmigaOS with pdksh, this test takes hours, literally.
|
cannam@154
|
1713 # So we just punt and use a minimum line length of 8192.
|
cannam@154
|
1714 lt_cv_sys_max_cmd_len=8192;
|
cannam@154
|
1715 ;;
|
cannam@154
|
1716
|
cannam@154
|
1717 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
|
cannam@154
|
1718 # This has been around since 386BSD, at least. Likely further.
|
cannam@154
|
1719 if test -x /sbin/sysctl; then
|
cannam@154
|
1720 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
|
cannam@154
|
1721 elif test -x /usr/sbin/sysctl; then
|
cannam@154
|
1722 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
|
cannam@154
|
1723 else
|
cannam@154
|
1724 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
|
cannam@154
|
1725 fi
|
cannam@154
|
1726 # And add a safety zone
|
cannam@154
|
1727 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
cannam@154
|
1728 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
cannam@154
|
1729 ;;
|
cannam@154
|
1730
|
cannam@154
|
1731 interix*)
|
cannam@154
|
1732 # We know the value 262144 and hardcode it with a safety zone (like BSD)
|
cannam@154
|
1733 lt_cv_sys_max_cmd_len=196608
|
cannam@154
|
1734 ;;
|
cannam@154
|
1735
|
cannam@154
|
1736 os2*)
|
cannam@154
|
1737 # The test takes a long time on OS/2.
|
cannam@154
|
1738 lt_cv_sys_max_cmd_len=8192
|
cannam@154
|
1739 ;;
|
cannam@154
|
1740
|
cannam@154
|
1741 osf*)
|
cannam@154
|
1742 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
|
cannam@154
|
1743 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
|
cannam@154
|
1744 # nice to cause kernel panics so lets avoid the loop below.
|
cannam@154
|
1745 # First set a reasonable default.
|
cannam@154
|
1746 lt_cv_sys_max_cmd_len=16384
|
cannam@154
|
1747 #
|
cannam@154
|
1748 if test -x /sbin/sysconfig; then
|
cannam@154
|
1749 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
|
cannam@154
|
1750 *1*) lt_cv_sys_max_cmd_len=-1 ;;
|
cannam@154
|
1751 esac
|
cannam@154
|
1752 fi
|
cannam@154
|
1753 ;;
|
cannam@154
|
1754 sco3.2v5*)
|
cannam@154
|
1755 lt_cv_sys_max_cmd_len=102400
|
cannam@154
|
1756 ;;
|
cannam@154
|
1757 sysv5* | sco5v6* | sysv4.2uw2*)
|
cannam@154
|
1758 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
|
cannam@154
|
1759 if test -n "$kargmax"; then
|
cannam@154
|
1760 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
|
cannam@154
|
1761 else
|
cannam@154
|
1762 lt_cv_sys_max_cmd_len=32768
|
cannam@154
|
1763 fi
|
cannam@154
|
1764 ;;
|
cannam@154
|
1765 *)
|
cannam@154
|
1766 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
|
cannam@154
|
1767 if test -n "$lt_cv_sys_max_cmd_len" && \
|
cannam@154
|
1768 test undefined != "$lt_cv_sys_max_cmd_len"; then
|
cannam@154
|
1769 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
cannam@154
|
1770 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
cannam@154
|
1771 else
|
cannam@154
|
1772 # Make teststring a little bigger before we do anything with it.
|
cannam@154
|
1773 # a 1K string should be a reasonable start.
|
cannam@154
|
1774 for i in 1 2 3 4 5 6 7 8; do
|
cannam@154
|
1775 teststring=$teststring$teststring
|
cannam@154
|
1776 done
|
cannam@154
|
1777 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
|
cannam@154
|
1778 # If test is not a shell built-in, we'll probably end up computing a
|
cannam@154
|
1779 # maximum length that is only half of the actual maximum length, but
|
cannam@154
|
1780 # we can't tell.
|
cannam@154
|
1781 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
|
cannam@154
|
1782 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
|
cannam@154
|
1783 test 17 != "$i" # 1/2 MB should be enough
|
cannam@154
|
1784 do
|
cannam@154
|
1785 i=`expr $i + 1`
|
cannam@154
|
1786 teststring=$teststring$teststring
|
cannam@154
|
1787 done
|
cannam@154
|
1788 # Only check the string length outside the loop.
|
cannam@154
|
1789 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
|
cannam@154
|
1790 teststring=
|
cannam@154
|
1791 # Add a significant safety factor because C++ compilers can tack on
|
cannam@154
|
1792 # massive amounts of additional arguments before passing them to the
|
cannam@154
|
1793 # linker. It appears as though 1/2 is a usable value.
|
cannam@154
|
1794 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
|
cannam@154
|
1795 fi
|
cannam@154
|
1796 ;;
|
cannam@154
|
1797 esac
|
cannam@154
|
1798 ])
|
cannam@154
|
1799 if test -n "$lt_cv_sys_max_cmd_len"; then
|
cannam@154
|
1800 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
|
cannam@154
|
1801 else
|
cannam@154
|
1802 AC_MSG_RESULT(none)
|
cannam@154
|
1803 fi
|
cannam@154
|
1804 max_cmd_len=$lt_cv_sys_max_cmd_len
|
cannam@154
|
1805 _LT_DECL([], [max_cmd_len], [0],
|
cannam@154
|
1806 [What is the maximum length of a command?])
|
cannam@154
|
1807 ])# LT_CMD_MAX_LEN
|
cannam@154
|
1808
|
cannam@154
|
1809 # Old name:
|
cannam@154
|
1810 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
|
cannam@154
|
1811 dnl aclocal-1.4 backwards compatibility:
|
cannam@154
|
1812 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
|
cannam@154
|
1813
|
cannam@154
|
1814
|
cannam@154
|
1815 # _LT_HEADER_DLFCN
|
cannam@154
|
1816 # ----------------
|
cannam@154
|
1817 m4_defun([_LT_HEADER_DLFCN],
|
cannam@154
|
1818 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
|
cannam@154
|
1819 ])# _LT_HEADER_DLFCN
|
cannam@154
|
1820
|
cannam@154
|
1821
|
cannam@154
|
1822 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
|
cannam@154
|
1823 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
|
cannam@154
|
1824 # ----------------------------------------------------------------
|
cannam@154
|
1825 m4_defun([_LT_TRY_DLOPEN_SELF],
|
cannam@154
|
1826 [m4_require([_LT_HEADER_DLFCN])dnl
|
cannam@154
|
1827 if test yes = "$cross_compiling"; then :
|
cannam@154
|
1828 [$4]
|
cannam@154
|
1829 else
|
cannam@154
|
1830 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
cannam@154
|
1831 lt_status=$lt_dlunknown
|
cannam@154
|
1832 cat > conftest.$ac_ext <<_LT_EOF
|
cannam@154
|
1833 [#line $LINENO "configure"
|
cannam@154
|
1834 #include "confdefs.h"
|
cannam@154
|
1835
|
cannam@154
|
1836 #if HAVE_DLFCN_H
|
cannam@154
|
1837 #include <dlfcn.h>
|
cannam@154
|
1838 #endif
|
cannam@154
|
1839
|
cannam@154
|
1840 #include <stdio.h>
|
cannam@154
|
1841
|
cannam@154
|
1842 #ifdef RTLD_GLOBAL
|
cannam@154
|
1843 # define LT_DLGLOBAL RTLD_GLOBAL
|
cannam@154
|
1844 #else
|
cannam@154
|
1845 # ifdef DL_GLOBAL
|
cannam@154
|
1846 # define LT_DLGLOBAL DL_GLOBAL
|
cannam@154
|
1847 # else
|
cannam@154
|
1848 # define LT_DLGLOBAL 0
|
cannam@154
|
1849 # endif
|
cannam@154
|
1850 #endif
|
cannam@154
|
1851
|
cannam@154
|
1852 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
cannam@154
|
1853 find out it does not work in some platform. */
|
cannam@154
|
1854 #ifndef LT_DLLAZY_OR_NOW
|
cannam@154
|
1855 # ifdef RTLD_LAZY
|
cannam@154
|
1856 # define LT_DLLAZY_OR_NOW RTLD_LAZY
|
cannam@154
|
1857 # else
|
cannam@154
|
1858 # ifdef DL_LAZY
|
cannam@154
|
1859 # define LT_DLLAZY_OR_NOW DL_LAZY
|
cannam@154
|
1860 # else
|
cannam@154
|
1861 # ifdef RTLD_NOW
|
cannam@154
|
1862 # define LT_DLLAZY_OR_NOW RTLD_NOW
|
cannam@154
|
1863 # else
|
cannam@154
|
1864 # ifdef DL_NOW
|
cannam@154
|
1865 # define LT_DLLAZY_OR_NOW DL_NOW
|
cannam@154
|
1866 # else
|
cannam@154
|
1867 # define LT_DLLAZY_OR_NOW 0
|
cannam@154
|
1868 # endif
|
cannam@154
|
1869 # endif
|
cannam@154
|
1870 # endif
|
cannam@154
|
1871 # endif
|
cannam@154
|
1872 #endif
|
cannam@154
|
1873
|
cannam@154
|
1874 /* When -fvisibility=hidden is used, assume the code has been annotated
|
cannam@154
|
1875 correspondingly for the symbols needed. */
|
cannam@154
|
1876 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
|
cannam@154
|
1877 int fnord () __attribute__((visibility("default")));
|
cannam@154
|
1878 #endif
|
cannam@154
|
1879
|
cannam@154
|
1880 int fnord () { return 42; }
|
cannam@154
|
1881 int main ()
|
cannam@154
|
1882 {
|
cannam@154
|
1883 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
cannam@154
|
1884 int status = $lt_dlunknown;
|
cannam@154
|
1885
|
cannam@154
|
1886 if (self)
|
cannam@154
|
1887 {
|
cannam@154
|
1888 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
cannam@154
|
1889 else
|
cannam@154
|
1890 {
|
cannam@154
|
1891 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
cannam@154
|
1892 else puts (dlerror ());
|
cannam@154
|
1893 }
|
cannam@154
|
1894 /* dlclose (self); */
|
cannam@154
|
1895 }
|
cannam@154
|
1896 else
|
cannam@154
|
1897 puts (dlerror ());
|
cannam@154
|
1898
|
cannam@154
|
1899 return status;
|
cannam@154
|
1900 }]
|
cannam@154
|
1901 _LT_EOF
|
cannam@154
|
1902 if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then
|
cannam@154
|
1903 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
|
cannam@154
|
1904 lt_status=$?
|
cannam@154
|
1905 case x$lt_status in
|
cannam@154
|
1906 x$lt_dlno_uscore) $1 ;;
|
cannam@154
|
1907 x$lt_dlneed_uscore) $2 ;;
|
cannam@154
|
1908 x$lt_dlunknown|x*) $3 ;;
|
cannam@154
|
1909 esac
|
cannam@154
|
1910 else :
|
cannam@154
|
1911 # compilation failed
|
cannam@154
|
1912 $3
|
cannam@154
|
1913 fi
|
cannam@154
|
1914 fi
|
cannam@154
|
1915 rm -fr conftest*
|
cannam@154
|
1916 ])# _LT_TRY_DLOPEN_SELF
|
cannam@154
|
1917
|
cannam@154
|
1918
|
cannam@154
|
1919 # LT_SYS_DLOPEN_SELF
|
cannam@154
|
1920 # ------------------
|
cannam@154
|
1921 AC_DEFUN([LT_SYS_DLOPEN_SELF],
|
cannam@154
|
1922 [m4_require([_LT_HEADER_DLFCN])dnl
|
cannam@154
|
1923 if test yes != "$enable_dlopen"; then
|
cannam@154
|
1924 enable_dlopen=unknown
|
cannam@154
|
1925 enable_dlopen_self=unknown
|
cannam@154
|
1926 enable_dlopen_self_static=unknown
|
cannam@154
|
1927 else
|
cannam@154
|
1928 lt_cv_dlopen=no
|
cannam@154
|
1929 lt_cv_dlopen_libs=
|
cannam@154
|
1930
|
cannam@154
|
1931 case $host_os in
|
cannam@154
|
1932 beos*)
|
cannam@154
|
1933 lt_cv_dlopen=load_add_on
|
cannam@154
|
1934 lt_cv_dlopen_libs=
|
cannam@154
|
1935 lt_cv_dlopen_self=yes
|
cannam@154
|
1936 ;;
|
cannam@154
|
1937
|
cannam@154
|
1938 mingw* | pw32* | cegcc*)
|
cannam@154
|
1939 lt_cv_dlopen=LoadLibrary
|
cannam@154
|
1940 lt_cv_dlopen_libs=
|
cannam@154
|
1941 ;;
|
cannam@154
|
1942
|
cannam@154
|
1943 cygwin*)
|
cannam@154
|
1944 lt_cv_dlopen=dlopen
|
cannam@154
|
1945 lt_cv_dlopen_libs=
|
cannam@154
|
1946 ;;
|
cannam@154
|
1947
|
cannam@154
|
1948 darwin*)
|
cannam@154
|
1949 # if libdl is installed we need to link against it
|
cannam@154
|
1950 AC_CHECK_LIB([dl], [dlopen],
|
cannam@154
|
1951 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[
|
cannam@154
|
1952 lt_cv_dlopen=dyld
|
cannam@154
|
1953 lt_cv_dlopen_libs=
|
cannam@154
|
1954 lt_cv_dlopen_self=yes
|
cannam@154
|
1955 ])
|
cannam@154
|
1956 ;;
|
cannam@154
|
1957
|
cannam@154
|
1958 tpf*)
|
cannam@154
|
1959 # Don't try to run any link tests for TPF. We know it's impossible
|
cannam@154
|
1960 # because TPF is a cross-compiler, and we know how we open DSOs.
|
cannam@154
|
1961 lt_cv_dlopen=dlopen
|
cannam@154
|
1962 lt_cv_dlopen_libs=
|
cannam@154
|
1963 lt_cv_dlopen_self=no
|
cannam@154
|
1964 ;;
|
cannam@154
|
1965
|
cannam@154
|
1966 *)
|
cannam@154
|
1967 AC_CHECK_FUNC([shl_load],
|
cannam@154
|
1968 [lt_cv_dlopen=shl_load],
|
cannam@154
|
1969 [AC_CHECK_LIB([dld], [shl_load],
|
cannam@154
|
1970 [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld],
|
cannam@154
|
1971 [AC_CHECK_FUNC([dlopen],
|
cannam@154
|
1972 [lt_cv_dlopen=dlopen],
|
cannam@154
|
1973 [AC_CHECK_LIB([dl], [dlopen],
|
cannam@154
|
1974 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],
|
cannam@154
|
1975 [AC_CHECK_LIB([svld], [dlopen],
|
cannam@154
|
1976 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld],
|
cannam@154
|
1977 [AC_CHECK_LIB([dld], [dld_link],
|
cannam@154
|
1978 [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld])
|
cannam@154
|
1979 ])
|
cannam@154
|
1980 ])
|
cannam@154
|
1981 ])
|
cannam@154
|
1982 ])
|
cannam@154
|
1983 ])
|
cannam@154
|
1984 ;;
|
cannam@154
|
1985 esac
|
cannam@154
|
1986
|
cannam@154
|
1987 if test no = "$lt_cv_dlopen"; then
|
cannam@154
|
1988 enable_dlopen=no
|
cannam@154
|
1989 else
|
cannam@154
|
1990 enable_dlopen=yes
|
cannam@154
|
1991 fi
|
cannam@154
|
1992
|
cannam@154
|
1993 case $lt_cv_dlopen in
|
cannam@154
|
1994 dlopen)
|
cannam@154
|
1995 save_CPPFLAGS=$CPPFLAGS
|
cannam@154
|
1996 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
|
cannam@154
|
1997
|
cannam@154
|
1998 save_LDFLAGS=$LDFLAGS
|
cannam@154
|
1999 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
|
cannam@154
|
2000
|
cannam@154
|
2001 save_LIBS=$LIBS
|
cannam@154
|
2002 LIBS="$lt_cv_dlopen_libs $LIBS"
|
cannam@154
|
2003
|
cannam@154
|
2004 AC_CACHE_CHECK([whether a program can dlopen itself],
|
cannam@154
|
2005 lt_cv_dlopen_self, [dnl
|
cannam@154
|
2006 _LT_TRY_DLOPEN_SELF(
|
cannam@154
|
2007 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
|
cannam@154
|
2008 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
|
cannam@154
|
2009 ])
|
cannam@154
|
2010
|
cannam@154
|
2011 if test yes = "$lt_cv_dlopen_self"; then
|
cannam@154
|
2012 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
|
cannam@154
|
2013 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
|
cannam@154
|
2014 lt_cv_dlopen_self_static, [dnl
|
cannam@154
|
2015 _LT_TRY_DLOPEN_SELF(
|
cannam@154
|
2016 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
|
cannam@154
|
2017 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
|
cannam@154
|
2018 ])
|
cannam@154
|
2019 fi
|
cannam@154
|
2020
|
cannam@154
|
2021 CPPFLAGS=$save_CPPFLAGS
|
cannam@154
|
2022 LDFLAGS=$save_LDFLAGS
|
cannam@154
|
2023 LIBS=$save_LIBS
|
cannam@154
|
2024 ;;
|
cannam@154
|
2025 esac
|
cannam@154
|
2026
|
cannam@154
|
2027 case $lt_cv_dlopen_self in
|
cannam@154
|
2028 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
|
cannam@154
|
2029 *) enable_dlopen_self=unknown ;;
|
cannam@154
|
2030 esac
|
cannam@154
|
2031
|
cannam@154
|
2032 case $lt_cv_dlopen_self_static in
|
cannam@154
|
2033 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
|
cannam@154
|
2034 *) enable_dlopen_self_static=unknown ;;
|
cannam@154
|
2035 esac
|
cannam@154
|
2036 fi
|
cannam@154
|
2037 _LT_DECL([dlopen_support], [enable_dlopen], [0],
|
cannam@154
|
2038 [Whether dlopen is supported])
|
cannam@154
|
2039 _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
|
cannam@154
|
2040 [Whether dlopen of programs is supported])
|
cannam@154
|
2041 _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
|
cannam@154
|
2042 [Whether dlopen of statically linked programs is supported])
|
cannam@154
|
2043 ])# LT_SYS_DLOPEN_SELF
|
cannam@154
|
2044
|
cannam@154
|
2045 # Old name:
|
cannam@154
|
2046 AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
|
cannam@154
|
2047 dnl aclocal-1.4 backwards compatibility:
|
cannam@154
|
2048 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
|
cannam@154
|
2049
|
cannam@154
|
2050
|
cannam@154
|
2051 # _LT_COMPILER_C_O([TAGNAME])
|
cannam@154
|
2052 # ---------------------------
|
cannam@154
|
2053 # Check to see if options -c and -o are simultaneously supported by compiler.
|
cannam@154
|
2054 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
|
cannam@154
|
2055 m4_defun([_LT_COMPILER_C_O],
|
cannam@154
|
2056 [m4_require([_LT_DECL_SED])dnl
|
cannam@154
|
2057 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
cannam@154
|
2058 m4_require([_LT_TAG_COMPILER])dnl
|
cannam@154
|
2059 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
|
cannam@154
|
2060 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
|
cannam@154
|
2061 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
|
cannam@154
|
2062 $RM -r conftest 2>/dev/null
|
cannam@154
|
2063 mkdir conftest
|
cannam@154
|
2064 cd conftest
|
cannam@154
|
2065 mkdir out
|
cannam@154
|
2066 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
cannam@154
|
2067
|
cannam@154
|
2068 lt_compiler_flag="-o out/conftest2.$ac_objext"
|
cannam@154
|
2069 # Insert the option either (1) after the last *FLAGS variable, or
|
cannam@154
|
2070 # (2) before a word containing "conftest.", or (3) at the end.
|
cannam@154
|
2071 # Note that $ac_compile itself does not contain backslashes and begins
|
cannam@154
|
2072 # with a dollar sign (not a hyphen), so the echo should work correctly.
|
cannam@154
|
2073 lt_compile=`echo "$ac_compile" | $SED \
|
cannam@154
|
2074 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
cannam@154
|
2075 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
|
cannam@154
|
2076 -e 's:$: $lt_compiler_flag:'`
|
cannam@154
|
2077 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
|
cannam@154
|
2078 (eval "$lt_compile" 2>out/conftest.err)
|
cannam@154
|
2079 ac_status=$?
|
cannam@154
|
2080 cat out/conftest.err >&AS_MESSAGE_LOG_FD
|
cannam@154
|
2081 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
|
cannam@154
|
2082 if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
cannam@154
|
2083 then
|
cannam@154
|
2084 # The compiler can only warn and ignore the option if not recognized
|
cannam@154
|
2085 # So say no if there are warnings
|
cannam@154
|
2086 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
|
cannam@154
|
2087 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
cannam@154
|
2088 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
cannam@154
|
2089 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
|
cannam@154
|
2090 fi
|
cannam@154
|
2091 fi
|
cannam@154
|
2092 chmod u+w . 2>&AS_MESSAGE_LOG_FD
|
cannam@154
|
2093 $RM conftest*
|
cannam@154
|
2094 # SGI C++ compiler will create directory out/ii_files/ for
|
cannam@154
|
2095 # template instantiation
|
cannam@154
|
2096 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
|
cannam@154
|
2097 $RM out/* && rmdir out
|
cannam@154
|
2098 cd ..
|
cannam@154
|
2099 $RM -r conftest
|
cannam@154
|
2100 $RM conftest*
|
cannam@154
|
2101 ])
|
cannam@154
|
2102 _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
|
cannam@154
|
2103 [Does compiler simultaneously support -c and -o options?])
|
cannam@154
|
2104 ])# _LT_COMPILER_C_O
|
cannam@154
|
2105
|
cannam@154
|
2106
|
cannam@154
|
2107 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
|
cannam@154
|
2108 # ----------------------------------
|
cannam@154
|
2109 # Check to see if we can do hard links to lock some files if needed
|
cannam@154
|
2110 m4_defun([_LT_COMPILER_FILE_LOCKS],
|
cannam@154
|
2111 [m4_require([_LT_ENABLE_LOCK])dnl
|
cannam@154
|
2112 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
cannam@154
|
2113 _LT_COMPILER_C_O([$1])
|
cannam@154
|
2114
|
cannam@154
|
2115 hard_links=nottested
|
cannam@154
|
2116 if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then
|
cannam@154
|
2117 # do not overwrite the value of need_locks provided by the user
|
cannam@154
|
2118 AC_MSG_CHECKING([if we can lock with hard links])
|
cannam@154
|
2119 hard_links=yes
|
cannam@154
|
2120 $RM conftest*
|
cannam@154
|
2121 ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
cannam@154
|
2122 touch conftest.a
|
cannam@154
|
2123 ln conftest.a conftest.b 2>&5 || hard_links=no
|
cannam@154
|
2124 ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
cannam@154
|
2125 AC_MSG_RESULT([$hard_links])
|
cannam@154
|
2126 if test no = "$hard_links"; then
|
cannam@154
|
2127 AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe])
|
cannam@154
|
2128 need_locks=warn
|
cannam@154
|
2129 fi
|
cannam@154
|
2130 else
|
cannam@154
|
2131 need_locks=no
|
cannam@154
|
2132 fi
|
cannam@154
|
2133 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
|
cannam@154
|
2134 ])# _LT_COMPILER_FILE_LOCKS
|
cannam@154
|
2135
|
cannam@154
|
2136
|
cannam@154
|
2137 # _LT_CHECK_OBJDIR
|
cannam@154
|
2138 # ----------------
|
cannam@154
|
2139 m4_defun([_LT_CHECK_OBJDIR],
|
cannam@154
|
2140 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
|
cannam@154
|
2141 [rm -f .libs 2>/dev/null
|
cannam@154
|
2142 mkdir .libs 2>/dev/null
|
cannam@154
|
2143 if test -d .libs; then
|
cannam@154
|
2144 lt_cv_objdir=.libs
|
cannam@154
|
2145 else
|
cannam@154
|
2146 # MS-DOS does not allow filenames that begin with a dot.
|
cannam@154
|
2147 lt_cv_objdir=_libs
|
cannam@154
|
2148 fi
|
cannam@154
|
2149 rmdir .libs 2>/dev/null])
|
cannam@154
|
2150 objdir=$lt_cv_objdir
|
cannam@154
|
2151 _LT_DECL([], [objdir], [0],
|
cannam@154
|
2152 [The name of the directory that contains temporary libtool files])dnl
|
cannam@154
|
2153 m4_pattern_allow([LT_OBJDIR])dnl
|
cannam@154
|
2154 AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/",
|
cannam@154
|
2155 [Define to the sub-directory where libtool stores uninstalled libraries.])
|
cannam@154
|
2156 ])# _LT_CHECK_OBJDIR
|
cannam@154
|
2157
|
cannam@154
|
2158
|
cannam@154
|
2159 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
|
cannam@154
|
2160 # --------------------------------------
|
cannam@154
|
2161 # Check hardcoding attributes.
|
cannam@154
|
2162 m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
|
cannam@154
|
2163 [AC_MSG_CHECKING([how to hardcode library paths into programs])
|
cannam@154
|
2164 _LT_TAGVAR(hardcode_action, $1)=
|
cannam@154
|
2165 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
|
cannam@154
|
2166 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
|
cannam@154
|
2167 test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then
|
cannam@154
|
2168
|
cannam@154
|
2169 # We can hardcode non-existent directories.
|
cannam@154
|
2170 if test no != "$_LT_TAGVAR(hardcode_direct, $1)" &&
|
cannam@154
|
2171 # If the only mechanism to avoid hardcoding is shlibpath_var, we
|
cannam@154
|
2172 # have to relink, otherwise we might link with an installed library
|
cannam@154
|
2173 # when we should be linking with a yet-to-be-installed one
|
cannam@154
|
2174 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" &&
|
cannam@154
|
2175 test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then
|
cannam@154
|
2176 # Linking always hardcodes the temporary library directory.
|
cannam@154
|
2177 _LT_TAGVAR(hardcode_action, $1)=relink
|
cannam@154
|
2178 else
|
cannam@154
|
2179 # We can link without hardcoding, and we can hardcode nonexisting dirs.
|
cannam@154
|
2180 _LT_TAGVAR(hardcode_action, $1)=immediate
|
cannam@154
|
2181 fi
|
cannam@154
|
2182 else
|
cannam@154
|
2183 # We cannot hardcode anything, or else we can only hardcode existing
|
cannam@154
|
2184 # directories.
|
cannam@154
|
2185 _LT_TAGVAR(hardcode_action, $1)=unsupported
|
cannam@154
|
2186 fi
|
cannam@154
|
2187 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
|
cannam@154
|
2188
|
cannam@154
|
2189 if test relink = "$_LT_TAGVAR(hardcode_action, $1)" ||
|
cannam@154
|
2190 test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then
|
cannam@154
|
2191 # Fast installation is not supported
|
cannam@154
|
2192 enable_fast_install=no
|
cannam@154
|
2193 elif test yes = "$shlibpath_overrides_runpath" ||
|
cannam@154
|
2194 test no = "$enable_shared"; then
|
cannam@154
|
2195 # Fast installation is not necessary
|
cannam@154
|
2196 enable_fast_install=needless
|
cannam@154
|
2197 fi
|
cannam@154
|
2198 _LT_TAGDECL([], [hardcode_action], [0],
|
cannam@154
|
2199 [How to hardcode a shared library path into an executable])
|
cannam@154
|
2200 ])# _LT_LINKER_HARDCODE_LIBPATH
|
cannam@154
|
2201
|
cannam@154
|
2202
|
cannam@154
|
2203 # _LT_CMD_STRIPLIB
|
cannam@154
|
2204 # ----------------
|
cannam@154
|
2205 m4_defun([_LT_CMD_STRIPLIB],
|
cannam@154
|
2206 [m4_require([_LT_DECL_EGREP])
|
cannam@154
|
2207 striplib=
|
cannam@154
|
2208 old_striplib=
|
cannam@154
|
2209 AC_MSG_CHECKING([whether stripping libraries is possible])
|
cannam@154
|
2210 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
|
cannam@154
|
2211 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
|
cannam@154
|
2212 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
|
cannam@154
|
2213 AC_MSG_RESULT([yes])
|
cannam@154
|
2214 else
|
cannam@154
|
2215 # FIXME - insert some real tests, host_os isn't really good enough
|
cannam@154
|
2216 case $host_os in
|
cannam@154
|
2217 darwin*)
|
cannam@154
|
2218 if test -n "$STRIP"; then
|
cannam@154
|
2219 striplib="$STRIP -x"
|
cannam@154
|
2220 old_striplib="$STRIP -S"
|
cannam@154
|
2221 AC_MSG_RESULT([yes])
|
cannam@154
|
2222 else
|
cannam@154
|
2223 AC_MSG_RESULT([no])
|
cannam@154
|
2224 fi
|
cannam@154
|
2225 ;;
|
cannam@154
|
2226 *)
|
cannam@154
|
2227 AC_MSG_RESULT([no])
|
cannam@154
|
2228 ;;
|
cannam@154
|
2229 esac
|
cannam@154
|
2230 fi
|
cannam@154
|
2231 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
|
cannam@154
|
2232 _LT_DECL([], [striplib], [1])
|
cannam@154
|
2233 ])# _LT_CMD_STRIPLIB
|
cannam@154
|
2234
|
cannam@154
|
2235
|
cannam@154
|
2236 # _LT_PREPARE_MUNGE_PATH_LIST
|
cannam@154
|
2237 # ---------------------------
|
cannam@154
|
2238 # Make sure func_munge_path_list() is defined correctly.
|
cannam@154
|
2239 m4_defun([_LT_PREPARE_MUNGE_PATH_LIST],
|
cannam@154
|
2240 [[# func_munge_path_list VARIABLE PATH
|
cannam@154
|
2241 # -----------------------------------
|
cannam@154
|
2242 # VARIABLE is name of variable containing _space_ separated list of
|
cannam@154
|
2243 # directories to be munged by the contents of PATH, which is string
|
cannam@154
|
2244 # having a format:
|
cannam@154
|
2245 # "DIR[:DIR]:"
|
cannam@154
|
2246 # string "DIR[ DIR]" will be prepended to VARIABLE
|
cannam@154
|
2247 # ":DIR[:DIR]"
|
cannam@154
|
2248 # string "DIR[ DIR]" will be appended to VARIABLE
|
cannam@154
|
2249 # "DIRP[:DIRP]::[DIRA:]DIRA"
|
cannam@154
|
2250 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
|
cannam@154
|
2251 # "DIRA[ DIRA]" will be appended to VARIABLE
|
cannam@154
|
2252 # "DIR[:DIR]"
|
cannam@154
|
2253 # VARIABLE will be replaced by "DIR[ DIR]"
|
cannam@154
|
2254 func_munge_path_list ()
|
cannam@154
|
2255 {
|
cannam@154
|
2256 case x@S|@2 in
|
cannam@154
|
2257 x)
|
cannam@154
|
2258 ;;
|
cannam@154
|
2259 *:)
|
cannam@154
|
2260 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
|
cannam@154
|
2261 ;;
|
cannam@154
|
2262 x:*)
|
cannam@154
|
2263 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
|
cannam@154
|
2264 ;;
|
cannam@154
|
2265 *::*)
|
cannam@154
|
2266 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
|
cannam@154
|
2267 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
|
cannam@154
|
2268 ;;
|
cannam@154
|
2269 *)
|
cannam@154
|
2270 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
|
cannam@154
|
2271 ;;
|
cannam@154
|
2272 esac
|
cannam@154
|
2273 }
|
cannam@154
|
2274 ]])# _LT_PREPARE_PATH_LIST
|
cannam@154
|
2275
|
cannam@154
|
2276
|
cannam@154
|
2277 # _LT_SYS_DYNAMIC_LINKER([TAG])
|
cannam@154
|
2278 # -----------------------------
|
cannam@154
|
2279 # PORTME Fill in your ld.so characteristics
|
cannam@154
|
2280 m4_defun([_LT_SYS_DYNAMIC_LINKER],
|
cannam@154
|
2281 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
cannam@154
|
2282 m4_require([_LT_DECL_EGREP])dnl
|
cannam@154
|
2283 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
cannam@154
|
2284 m4_require([_LT_DECL_OBJDUMP])dnl
|
cannam@154
|
2285 m4_require([_LT_DECL_SED])dnl
|
cannam@154
|
2286 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
|
cannam@154
|
2287 m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl
|
cannam@154
|
2288 AC_MSG_CHECKING([dynamic linker characteristics])
|
cannam@154
|
2289 m4_if([$1],
|
cannam@154
|
2290 [], [
|
cannam@154
|
2291 if test yes = "$GCC"; then
|
cannam@154
|
2292 case $host_os in
|
cannam@154
|
2293 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
|
cannam@154
|
2294 *) lt_awk_arg='/^libraries:/' ;;
|
cannam@154
|
2295 esac
|
cannam@154
|
2296 case $host_os in
|
cannam@154
|
2297 mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;;
|
cannam@154
|
2298 *) lt_sed_strip_eq='s|=/|/|g' ;;
|
cannam@154
|
2299 esac
|
cannam@154
|
2300 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
|
cannam@154
|
2301 case $lt_search_path_spec in
|
cannam@154
|
2302 *\;*)
|
cannam@154
|
2303 # if the path contains ";" then we assume it to be the separator
|
cannam@154
|
2304 # otherwise default to the standard path separator (i.e. ":") - it is
|
cannam@154
|
2305 # assumed that no part of a normal pathname contains ";" but that should
|
cannam@154
|
2306 # okay in the real world where ";" in dirpaths is itself problematic.
|
cannam@154
|
2307 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
|
cannam@154
|
2308 ;;
|
cannam@154
|
2309 *)
|
cannam@154
|
2310 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
|
cannam@154
|
2311 ;;
|
cannam@154
|
2312 esac
|
cannam@154
|
2313 # Ok, now we have the path, separated by spaces, we can step through it
|
cannam@154
|
2314 # and add multilib dir if necessary...
|
cannam@154
|
2315 lt_tmp_lt_search_path_spec=
|
cannam@154
|
2316 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
|
cannam@154
|
2317 # ...but if some path component already ends with the multilib dir we assume
|
cannam@154
|
2318 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
|
cannam@154
|
2319 case "$lt_multi_os_dir; $lt_search_path_spec " in
|
cannam@154
|
2320 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
|
cannam@154
|
2321 lt_multi_os_dir=
|
cannam@154
|
2322 ;;
|
cannam@154
|
2323 esac
|
cannam@154
|
2324 for lt_sys_path in $lt_search_path_spec; do
|
cannam@154
|
2325 if test -d "$lt_sys_path$lt_multi_os_dir"; then
|
cannam@154
|
2326 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
|
cannam@154
|
2327 elif test -n "$lt_multi_os_dir"; then
|
cannam@154
|
2328 test -d "$lt_sys_path" && \
|
cannam@154
|
2329 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
|
cannam@154
|
2330 fi
|
cannam@154
|
2331 done
|
cannam@154
|
2332 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
|
cannam@154
|
2333 BEGIN {RS = " "; FS = "/|\n";} {
|
cannam@154
|
2334 lt_foo = "";
|
cannam@154
|
2335 lt_count = 0;
|
cannam@154
|
2336 for (lt_i = NF; lt_i > 0; lt_i--) {
|
cannam@154
|
2337 if ($lt_i != "" && $lt_i != ".") {
|
cannam@154
|
2338 if ($lt_i == "..") {
|
cannam@154
|
2339 lt_count++;
|
cannam@154
|
2340 } else {
|
cannam@154
|
2341 if (lt_count == 0) {
|
cannam@154
|
2342 lt_foo = "/" $lt_i lt_foo;
|
cannam@154
|
2343 } else {
|
cannam@154
|
2344 lt_count--;
|
cannam@154
|
2345 }
|
cannam@154
|
2346 }
|
cannam@154
|
2347 }
|
cannam@154
|
2348 }
|
cannam@154
|
2349 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
|
cannam@154
|
2350 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
|
cannam@154
|
2351 }'`
|
cannam@154
|
2352 # AWK program above erroneously prepends '/' to C:/dos/paths
|
cannam@154
|
2353 # for these hosts.
|
cannam@154
|
2354 case $host_os in
|
cannam@154
|
2355 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
|
cannam@154
|
2356 $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;;
|
cannam@154
|
2357 esac
|
cannam@154
|
2358 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
|
cannam@154
|
2359 else
|
cannam@154
|
2360 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
|
cannam@154
|
2361 fi])
|
cannam@154
|
2362 library_names_spec=
|
cannam@154
|
2363 libname_spec='lib$name'
|
cannam@154
|
2364 soname_spec=
|
cannam@154
|
2365 shrext_cmds=.so
|
cannam@154
|
2366 postinstall_cmds=
|
cannam@154
|
2367 postuninstall_cmds=
|
cannam@154
|
2368 finish_cmds=
|
cannam@154
|
2369 finish_eval=
|
cannam@154
|
2370 shlibpath_var=
|
cannam@154
|
2371 shlibpath_overrides_runpath=unknown
|
cannam@154
|
2372 version_type=none
|
cannam@154
|
2373 dynamic_linker="$host_os ld.so"
|
cannam@154
|
2374 sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
cannam@154
|
2375 need_lib_prefix=unknown
|
cannam@154
|
2376 hardcode_into_libs=no
|
cannam@154
|
2377
|
cannam@154
|
2378 # when you set need_version to no, make sure it does not cause -set_version
|
cannam@154
|
2379 # flags to be left without arguments
|
cannam@154
|
2380 need_version=unknown
|
cannam@154
|
2381
|
cannam@154
|
2382 AC_ARG_VAR([LT_SYS_LIBRARY_PATH],
|
cannam@154
|
2383 [User-defined run-time library search path.])
|
cannam@154
|
2384
|
cannam@154
|
2385 case $host_os in
|
cannam@154
|
2386 aix3*)
|
cannam@154
|
2387 version_type=linux # correct to gnu/linux during the next big refactor
|
cannam@154
|
2388 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
|
cannam@154
|
2389 shlibpath_var=LIBPATH
|
cannam@154
|
2390
|
cannam@154
|
2391 # AIX 3 has no versioning support, so we append a major version to the name.
|
cannam@154
|
2392 soname_spec='$libname$release$shared_ext$major'
|
cannam@154
|
2393 ;;
|
cannam@154
|
2394
|
cannam@154
|
2395 aix[[4-9]]*)
|
cannam@154
|
2396 version_type=linux # correct to gnu/linux during the next big refactor
|
cannam@154
|
2397 need_lib_prefix=no
|
cannam@154
|
2398 need_version=no
|
cannam@154
|
2399 hardcode_into_libs=yes
|
cannam@154
|
2400 if test ia64 = "$host_cpu"; then
|
cannam@154
|
2401 # AIX 5 supports IA64
|
cannam@154
|
2402 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
|
cannam@154
|
2403 shlibpath_var=LD_LIBRARY_PATH
|
cannam@154
|
2404 else
|
cannam@154
|
2405 # With GCC up to 2.95.x, collect2 would create an import file
|
cannam@154
|
2406 # for dependence libraries. The import file would start with
|
cannam@154
|
2407 # the line '#! .'. This would cause the generated library to
|
cannam@154
|
2408 # depend on '.', always an invalid library. This was fixed in
|
cannam@154
|
2409 # development snapshots of GCC prior to 3.0.
|
cannam@154
|
2410 case $host_os in
|
cannam@154
|
2411 aix4 | aix4.[[01]] | aix4.[[01]].*)
|
cannam@154
|
2412 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
|
cannam@154
|
2413 echo ' yes '
|
cannam@154
|
2414 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
|
cannam@154
|
2415 :
|
cannam@154
|
2416 else
|
cannam@154
|
2417 can_build_shared=no
|
cannam@154
|
2418 fi
|
cannam@154
|
2419 ;;
|
cannam@154
|
2420 esac
|
cannam@154
|
2421 # Using Import Files as archive members, it is possible to support
|
cannam@154
|
2422 # filename-based versioning of shared library archives on AIX. While
|
cannam@154
|
2423 # this would work for both with and without runtime linking, it will
|
cannam@154
|
2424 # prevent static linking of such archives. So we do filename-based
|
cannam@154
|
2425 # shared library versioning with .so extension only, which is used
|
cannam@154
|
2426 # when both runtime linking and shared linking is enabled.
|
cannam@154
|
2427 # Unfortunately, runtime linking may impact performance, so we do
|
cannam@154
|
2428 # not want this to be the default eventually. Also, we use the
|
cannam@154
|
2429 # versioned .so libs for executables only if there is the -brtl
|
cannam@154
|
2430 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
|
cannam@154
|
2431 # To allow for filename-based versioning support, we need to create
|
cannam@154
|
2432 # libNAME.so.V as an archive file, containing:
|
cannam@154
|
2433 # *) an Import File, referring to the versioned filename of the
|
cannam@154
|
2434 # archive as well as the shared archive member, telling the
|
cannam@154
|
2435 # bitwidth (32 or 64) of that shared object, and providing the
|
cannam@154
|
2436 # list of exported symbols of that shared object, eventually
|
cannam@154
|
2437 # decorated with the 'weak' keyword
|
cannam@154
|
2438 # *) the shared object with the F_LOADONLY flag set, to really avoid
|
cannam@154
|
2439 # it being seen by the linker.
|
cannam@154
|
2440 # At run time we better use the real file rather than another symlink,
|
cannam@154
|
2441 # but for link time we create the symlink libNAME.so -> libNAME.so.V
|
cannam@154
|
2442
|
cannam@154
|
2443 case $with_aix_soname,$aix_use_runtimelinking in
|
cannam@154
|
2444 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
|
cannam@154
|
2445 # soname into executable. Probably we can add versioning support to
|
cannam@154
|
2446 # collect2, so additional links can be useful in future.
|
cannam@154
|
2447 aix,yes) # traditional libtool
|
cannam@154
|
2448 dynamic_linker='AIX unversionable lib.so'
|
cannam@154
|
2449 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
|
cannam@154
|
2450 # instead of lib<name>.a to let people know that these are not
|
cannam@154
|
2451 # typical AIX shared libraries.
|
cannam@154
|
2452 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
cannam@154
|
2453 ;;
|
cannam@154
|
2454 aix,no) # traditional AIX only
|
cannam@154
|
2455 dynamic_linker='AIX lib.a[(]lib.so.V[)]'
|
cannam@154
|
2456 # We preserve .a as extension for shared libraries through AIX4.2
|
cannam@154
|
2457 # and later when we are not doing run time linking.
|
cannam@154
|
2458 library_names_spec='$libname$release.a $libname.a'
|
cannam@154
|
2459 soname_spec='$libname$release$shared_ext$major'
|
cannam@154
|
2460 ;;
|
cannam@154
|
2461 svr4,*) # full svr4 only
|
cannam@154
|
2462 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]"
|
cannam@154
|
2463 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
|
cannam@154
|
2464 # We do not specify a path in Import Files, so LIBPATH fires.
|
cannam@154
|
2465 shlibpath_overrides_runpath=yes
|
cannam@154
|
2466 ;;
|
cannam@154
|
2467 *,yes) # both, prefer svr4
|
cannam@154
|
2468 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]"
|
cannam@154
|
2469 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
|
cannam@154
|
2470 # unpreferred sharedlib libNAME.a needs extra handling
|
cannam@154
|
2471 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"'
|
cannam@154
|
2472 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"'
|
cannam@154
|
2473 # We do not specify a path in Import Files, so LIBPATH fires.
|
cannam@154
|
2474 shlibpath_overrides_runpath=yes
|
cannam@154
|
2475 ;;
|
cannam@154
|
2476 *,no) # both, prefer aix
|
cannam@154
|
2477 dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]"
|
cannam@154
|
2478 library_names_spec='$libname$release.a $libname.a'
|
cannam@154
|
2479 soname_spec='$libname$release$shared_ext$major'
|
cannam@154
|
2480 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
|
cannam@154
|
2481 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)'
|
cannam@154
|
2482 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"'
|
cannam@154
|
2483 ;;
|
cannam@154
|
2484 esac
|
cannam@154
|
2485 shlibpath_var=LIBPATH
|
cannam@154
|
2486 fi
|
cannam@154
|
2487 ;;
|
cannam@154
|
2488
|
cannam@154
|
2489 amigaos*)
|
cannam@154
|
2490 case $host_cpu in
|
cannam@154
|
2491 powerpc)
|
cannam@154
|
2492 # Since July 2007 AmigaOS4 officially supports .so libraries.
|
cannam@154
|
2493 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
|
cannam@154
|
2494 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
cannam@154
|
2495 ;;
|
cannam@154
|
2496 m68k)
|
cannam@154
|
2497 library_names_spec='$libname.ixlibrary $libname.a'
|
cannam@154
|
2498 # Create ${libname}_ixlibrary.a entries in /sys/libs.
|
cannam@154
|
2499 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'
|
cannam@154
|
2500 ;;
|
cannam@154
|
2501 esac
|
cannam@154
|
2502 ;;
|
cannam@154
|
2503
|
cannam@154
|
2504 beos*)
|
cannam@154
|
2505 library_names_spec='$libname$shared_ext'
|
cannam@154
|
2506 dynamic_linker="$host_os ld.so"
|
cannam@154
|
2507 shlibpath_var=LIBRARY_PATH
|
cannam@154
|
2508 ;;
|
cannam@154
|
2509
|
cannam@154
|
2510 bsdi[[45]]*)
|
cannam@154
|
2511 version_type=linux # correct to gnu/linux during the next big refactor
|
cannam@154
|
2512 need_version=no
|
cannam@154
|
2513 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
cannam@154
|
2514 soname_spec='$libname$release$shared_ext$major'
|
cannam@154
|
2515 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
|
cannam@154
|
2516 shlibpath_var=LD_LIBRARY_PATH
|
cannam@154
|
2517 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
|
cannam@154
|
2518 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
|
cannam@154
|
2519 # the default ld.so.conf also contains /usr/contrib/lib and
|
cannam@154
|
2520 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
|
cannam@154
|
2521 # libtool to hard-code these into programs
|
cannam@154
|
2522 ;;
|
cannam@154
|
2523
|
cannam@154
|
2524 cygwin* | mingw* | pw32* | cegcc*)
|
cannam@154
|
2525 version_type=windows
|
cannam@154
|
2526 shrext_cmds=.dll
|
cannam@154
|
2527 need_version=no
|
cannam@154
|
2528 need_lib_prefix=no
|
cannam@154
|
2529
|
cannam@154
|
2530 case $GCC,$cc_basename in
|
cannam@154
|
2531 yes,*)
|
cannam@154
|
2532 # gcc
|
cannam@154
|
2533 library_names_spec='$libname.dll.a'
|
cannam@154
|
2534 # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
cannam@154
|
2535 postinstall_cmds='base_file=`basename \$file`~
|
cannam@154
|
2536 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
|
cannam@154
|
2537 dldir=$destdir/`dirname \$dlpath`~
|
cannam@154
|
2538 test -d \$dldir || mkdir -p \$dldir~
|
cannam@154
|
2539 $install_prog $dir/$dlname \$dldir/$dlname~
|
cannam@154
|
2540 chmod a+x \$dldir/$dlname~
|
cannam@154
|
2541 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
|
cannam@154
|
2542 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
|
cannam@154
|
2543 fi'
|
cannam@154
|
2544 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
cannam@154
|
2545 dlpath=$dir/\$dldll~
|
cannam@154
|
2546 $RM \$dlpath'
|
cannam@154
|
2547 shlibpath_overrides_runpath=yes
|
cannam@154
|
2548
|
cannam@154
|
2549 case $host_os in
|
cannam@154
|
2550 cygwin*)
|
cannam@154
|
2551 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
|
cannam@154
|
2552 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
|
cannam@154
|
2553 m4_if([$1], [],[
|
cannam@154
|
2554 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
|
cannam@154
|
2555 ;;
|
cannam@154
|
2556 mingw* | cegcc*)
|
cannam@154
|
2557 # MinGW DLLs use traditional 'lib' prefix
|
cannam@154
|
2558 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
|
cannam@154
|
2559 ;;
|
cannam@154
|
2560 pw32*)
|
cannam@154
|
2561 # pw32 DLLs use 'pw' prefix rather than 'lib'
|
cannam@154
|
2562 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
|
cannam@154
|
2563 ;;
|
cannam@154
|
2564 esac
|
cannam@154
|
2565 dynamic_linker='Win32 ld.exe'
|
cannam@154
|
2566 ;;
|
cannam@154
|
2567
|
cannam@154
|
2568 *,cl*)
|
cannam@154
|
2569 # Native MSVC
|
cannam@154
|
2570 libname_spec='$name'
|
cannam@154
|
2571 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
|
cannam@154
|
2572 library_names_spec='$libname.dll.lib'
|
cannam@154
|
2573
|
cannam@154
|
2574 case $build_os in
|
cannam@154
|
2575 mingw*)
|
cannam@154
|
2576 sys_lib_search_path_spec=
|
cannam@154
|
2577 lt_save_ifs=$IFS
|
cannam@154
|
2578 IFS=';'
|
cannam@154
|
2579 for lt_path in $LIB
|
cannam@154
|
2580 do
|
cannam@154
|
2581 IFS=$lt_save_ifs
|
cannam@154
|
2582 # Let DOS variable expansion print the short 8.3 style file name.
|
cannam@154
|
2583 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
|
cannam@154
|
2584 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
|
cannam@154
|
2585 done
|
cannam@154
|
2586 IFS=$lt_save_ifs
|
cannam@154
|
2587 # Convert to MSYS style.
|
cannam@154
|
2588 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
|
cannam@154
|
2589 ;;
|
cannam@154
|
2590 cygwin*)
|
cannam@154
|
2591 # Convert to unix form, then to dos form, then back to unix form
|
cannam@154
|
2592 # but this time dos style (no spaces!) so that the unix form looks
|
cannam@154
|
2593 # like /cygdrive/c/PROGRA~1:/cygdr...
|
cannam@154
|
2594 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
|
cannam@154
|
2595 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
|
cannam@154
|
2596 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
cannam@154
|
2597 ;;
|
cannam@154
|
2598 *)
|
cannam@154
|
2599 sys_lib_search_path_spec=$LIB
|
cannam@154
|
2600 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
|
cannam@154
|
2601 # It is most probably a Windows format PATH.
|
cannam@154
|
2602 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
cannam@154
|
2603 else
|
cannam@154
|
2604 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
cannam@154
|
2605 fi
|
cannam@154
|
2606 # FIXME: find the short name or the path components, as spaces are
|
cannam@154
|
2607 # common. (e.g. "Program Files" -> "PROGRA~1")
|
cannam@154
|
2608 ;;
|
cannam@154
|
2609 esac
|
cannam@154
|
2610
|
cannam@154
|
2611 # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
cannam@154
|
2612 postinstall_cmds='base_file=`basename \$file`~
|
cannam@154
|
2613 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
|
cannam@154
|
2614 dldir=$destdir/`dirname \$dlpath`~
|
cannam@154
|
2615 test -d \$dldir || mkdir -p \$dldir~
|
cannam@154
|
2616 $install_prog $dir/$dlname \$dldir/$dlname'
|
cannam@154
|
2617 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
cannam@154
|
2618 dlpath=$dir/\$dldll~
|
cannam@154
|
2619 $RM \$dlpath'
|
cannam@154
|
2620 shlibpath_overrides_runpath=yes
|
cannam@154
|
2621 dynamic_linker='Win32 link.exe'
|
cannam@154
|
2622 ;;
|
cannam@154
|
2623
|
cannam@154
|
2624 *)
|
cannam@154
|
2625 # Assume MSVC wrapper
|
cannam@154
|
2626 library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib'
|
cannam@154
|
2627 dynamic_linker='Win32 ld.exe'
|
cannam@154
|
2628 ;;
|
cannam@154
|
2629 esac
|
cannam@154
|
2630 # FIXME: first we should search . and the directory the executable is in
|
cannam@154
|
2631 shlibpath_var=PATH
|
cannam@154
|
2632 ;;
|
cannam@154
|
2633
|
cannam@154
|
2634 darwin* | rhapsody*)
|
cannam@154
|
2635 dynamic_linker="$host_os dyld"
|
cannam@154
|
2636 version_type=darwin
|
cannam@154
|
2637 need_lib_prefix=no
|
cannam@154
|
2638 need_version=no
|
cannam@154
|
2639 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
|
cannam@154
|
2640 soname_spec='$libname$release$major$shared_ext'
|
cannam@154
|
2641 shlibpath_overrides_runpath=yes
|
cannam@154
|
2642 shlibpath_var=DYLD_LIBRARY_PATH
|
cannam@154
|
2643 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
|
cannam@154
|
2644 m4_if([$1], [],[
|
cannam@154
|
2645 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
|
cannam@154
|
2646 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
cannam@154
|
2647 ;;
|
cannam@154
|
2648
|
cannam@154
|
2649 dgux*)
|
cannam@154
|
2650 version_type=linux # correct to gnu/linux during the next big refactor
|
cannam@154
|
2651 need_lib_prefix=no
|
cannam@154
|
2652 need_version=no
|
cannam@154
|
2653 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
cannam@154
|
2654 soname_spec='$libname$release$shared_ext$major'
|
cannam@154
|
2655 shlibpath_var=LD_LIBRARY_PATH
|
cannam@154
|
2656 ;;
|
cannam@154
|
2657
|
cannam@154
|
2658 freebsd* | dragonfly*)
|
cannam@154
|
2659 # DragonFly does not have aout. When/if they implement a new
|
cannam@154
|
2660 # versioning mechanism, adjust this.
|
cannam@154
|
2661 if test -x /usr/bin/objformat; then
|
cannam@154
|
2662 objformat=`/usr/bin/objformat`
|
cannam@154
|
2663 else
|
cannam@154
|
2664 case $host_os in
|
cannam@154
|
2665 freebsd[[23]].*) objformat=aout ;;
|
cannam@154
|
2666 *) objformat=elf ;;
|
cannam@154
|
2667 esac
|
cannam@154
|
2668 fi
|
cannam@154
|
2669 version_type=freebsd-$objformat
|
cannam@154
|
2670 case $version_type in
|
cannam@154
|
2671 freebsd-elf*)
|
cannam@154
|
2672 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
cannam@154
|
2673 soname_spec='$libname$release$shared_ext$major'
|
cannam@154
|
2674 need_version=no
|
cannam@154
|
2675 need_lib_prefix=no
|
cannam@154
|
2676 ;;
|
cannam@154
|
2677 freebsd-*)
|
cannam@154
|
2678 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
|
cannam@154
|
2679 need_version=yes
|
cannam@154
|
2680 ;;
|
cannam@154
|
2681 esac
|
cannam@154
|
2682 shlibpath_var=LD_LIBRARY_PATH
|
cannam@154
|
2683 case $host_os in
|
cannam@154
|
2684 freebsd2.*)
|
cannam@154
|
2685 shlibpath_overrides_runpath=yes
|
cannam@154
|
2686 ;;
|
cannam@154
|
2687 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
|
cannam@154
|
2688 shlibpath_overrides_runpath=yes
|
cannam@154
|
2689 hardcode_into_libs=yes
|
cannam@154
|
2690 ;;
|
cannam@154
|
2691 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
|
cannam@154
|
2692 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
|
cannam@154
|
2693 shlibpath_overrides_runpath=no
|
cannam@154
|
2694 hardcode_into_libs=yes
|
cannam@154
|
2695 ;;
|
cannam@154
|
2696 *) # from 4.6 on, and DragonFly
|
cannam@154
|
2697 shlibpath_overrides_runpath=yes
|
cannam@154
|
2698 hardcode_into_libs=yes
|
cannam@154
|
2699 ;;
|
cannam@154
|
2700 esac
|
cannam@154
|
2701 ;;
|
cannam@154
|
2702
|
cannam@154
|
2703 haiku*)
|
cannam@154
|
2704 version_type=linux # correct to gnu/linux during the next big refactor
|
cannam@154
|
2705 need_lib_prefix=no
|
cannam@154
|
2706 need_version=no
|
cannam@154
|
2707 dynamic_linker="$host_os runtime_loader"
|
cannam@154
|
2708 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
cannam@154
|
2709 soname_spec='$libname$release$shared_ext$major'
|
cannam@154
|
2710 shlibpath_var=LIBRARY_PATH
|
cannam@154
|
2711 shlibpath_overrides_runpath=no
|
cannam@154
|
2712 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
|
cannam@154
|
2713 hardcode_into_libs=yes
|
cannam@154
|
2714 ;;
|
cannam@154
|
2715
|
cannam@154
|
2716 hpux9* | hpux10* | hpux11*)
|
cannam@154
|
2717 # Give a soname corresponding to the major version so that dld.sl refuses to
|
cannam@154
|
2718 # link against other versions.
|
cannam@154
|
2719 version_type=sunos
|
cannam@154
|
2720 need_lib_prefix=no
|
cannam@154
|
2721 need_version=no
|
cannam@154
|
2722 case $host_cpu in
|
cannam@154
|
2723 ia64*)
|
cannam@154
|
2724 shrext_cmds='.so'
|
cannam@154
|
2725 hardcode_into_libs=yes
|
cannam@154
|
2726 dynamic_linker="$host_os dld.so"
|
cannam@154
|
2727 shlibpath_var=LD_LIBRARY_PATH
|
cannam@154
|
2728 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
cannam@154
|
2729 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
cannam@154
|
2730 soname_spec='$libname$release$shared_ext$major'
|
cannam@154
|
2731 if test 32 = "$HPUX_IA64_MODE"; then
|
cannam@154
|
2732 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
|
cannam@154
|
2733 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
|
cannam@154
|
2734 else
|
cannam@154
|
2735 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
|
cannam@154
|
2736 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
|
cannam@154
|
2737 fi
|
cannam@154
|
2738 ;;
|
cannam@154
|
2739 hppa*64*)
|
cannam@154
|
2740 shrext_cmds='.sl'
|
cannam@154
|
2741 hardcode_into_libs=yes
|
cannam@154
|
2742 dynamic_linker="$host_os dld.sl"
|
cannam@154
|
2743 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
|
cannam@154
|
2744 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
cannam@154
|
2745 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
cannam@154
|
2746 soname_spec='$libname$release$shared_ext$major'
|
cannam@154
|
2747 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
|
cannam@154
|
2748 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
cannam@154
|
2749 ;;
|
cannam@154
|
2750 *)
|
cannam@154
|
2751 shrext_cmds='.sl'
|
cannam@154
|
2752 dynamic_linker="$host_os dld.sl"
|
cannam@154
|
2753 shlibpath_var=SHLIB_PATH
|
cannam@154
|
2754 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
|
cannam@154
|
2755 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
cannam@154
|
2756 soname_spec='$libname$release$shared_ext$major'
|
cannam@154
|
2757 ;;
|
cannam@154
|
2758 esac
|
cannam@154
|
2759 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
|
cannam@154
|
2760 postinstall_cmds='chmod 555 $lib'
|
cannam@154
|
2761 # or fails outright, so override atomically:
|
cannam@154
|
2762 install_override_mode=555
|
cannam@154
|
2763 ;;
|
cannam@154
|
2764
|
cannam@154
|
2765 interix[[3-9]]*)
|
cannam@154
|
2766 version_type=linux # correct to gnu/linux during the next big refactor
|
cannam@154
|
2767 need_lib_prefix=no
|
cannam@154
|
2768 need_version=no
|
cannam@154
|
2769 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
cannam@154
|
2770 soname_spec='$libname$release$shared_ext$major'
|
cannam@154
|
2771 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
|
cannam@154
|
2772 shlibpath_var=LD_LIBRARY_PATH
|
cannam@154
|
2773 shlibpath_overrides_runpath=no
|
cannam@154
|
2774 hardcode_into_libs=yes
|
cannam@154
|
2775 ;;
|
cannam@154
|
2776
|
cannam@154
|
2777 irix5* | irix6* | nonstopux*)
|
cannam@154
|
2778 case $host_os in
|
cannam@154
|
2779 nonstopux*) version_type=nonstopux ;;
|
cannam@154
|
2780 *)
|
cannam@154
|
2781 if test yes = "$lt_cv_prog_gnu_ld"; then
|
cannam@154
|
2782 version_type=linux # correct to gnu/linux during the next big refactor
|
cannam@154
|
2783 else
|
cannam@154
|
2784 version_type=irix
|
cannam@154
|
2785 fi ;;
|
cannam@154
|
2786 esac
|
cannam@154
|
2787 need_lib_prefix=no
|
cannam@154
|
2788 need_version=no
|
cannam@154
|
2789 soname_spec='$libname$release$shared_ext$major'
|
cannam@154
|
2790 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
|
cannam@154
|
2791 case $host_os in
|
cannam@154
|
2792 irix5* | nonstopux*)
|
cannam@154
|
2793 libsuff= shlibsuff=
|
cannam@154
|
2794 ;;
|
cannam@154
|
2795 *)
|
cannam@154
|
2796 case $LD in # libtool.m4 will add one of these switches to LD
|
cannam@154
|
2797 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
|
cannam@154
|
2798 libsuff= shlibsuff= libmagic=32-bit;;
|
cannam@154
|
2799 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
|
cannam@154
|
2800 libsuff=32 shlibsuff=N32 libmagic=N32;;
|
cannam@154
|
2801 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
|
cannam@154
|
2802 libsuff=64 shlibsuff=64 libmagic=64-bit;;
|
cannam@154
|
2803 *) libsuff= shlibsuff= libmagic=never-match;;
|
cannam@154
|
2804 esac
|
cannam@154
|
2805 ;;
|
cannam@154
|
2806 esac
|
cannam@154
|
2807 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
|
cannam@154
|
2808 shlibpath_overrides_runpath=no
|
cannam@154
|
2809 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
|
cannam@154
|
2810 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
|
cannam@154
|
2811 hardcode_into_libs=yes
|
cannam@154
|
2812 ;;
|
cannam@154
|
2813
|
cannam@154
|
2814 # No shared lib support for Linux oldld, aout, or coff.
|
cannam@154
|
2815 linux*oldld* | linux*aout* | linux*coff*)
|
cannam@154
|
2816 dynamic_linker=no
|
cannam@154
|
2817 ;;
|
cannam@154
|
2818
|
cannam@154
|
2819 linux*android*)
|
cannam@154
|
2820 version_type=none # Android doesn't support versioned libraries.
|
cannam@154
|
2821 need_lib_prefix=no
|
cannam@154
|
2822 need_version=no
|
cannam@154
|
2823 library_names_spec='$libname$release$shared_ext'
|
cannam@154
|
2824 soname_spec='$libname$release$shared_ext'
|
cannam@154
|
2825 finish_cmds=
|
cannam@154
|
2826 shlibpath_var=LD_LIBRARY_PATH
|
cannam@154
|
2827 shlibpath_overrides_runpath=yes
|
cannam@154
|
2828
|
cannam@154
|
2829 # This implies no fast_install, which is unacceptable.
|
cannam@154
|
2830 # Some rework will be needed to allow for fast_install
|
cannam@154
|
2831 # before this can be enabled.
|
cannam@154
|
2832 hardcode_into_libs=yes
|
cannam@154
|
2833
|
cannam@154
|
2834 dynamic_linker='Android linker'
|
cannam@154
|
2835 # Don't embed -rpath directories since the linker doesn't support them.
|
cannam@154
|
2836 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
cannam@154
|
2837 ;;
|
cannam@154
|
2838
|
cannam@154
|
2839 # This must be glibc/ELF.
|
cannam@154
|
2840 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
|
cannam@154
|
2841 version_type=linux # correct to gnu/linux during the next big refactor
|
cannam@154
|
2842 need_lib_prefix=no
|
cannam@154
|
2843 need_version=no
|
cannam@154
|
2844 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
cannam@154
|
2845 soname_spec='$libname$release$shared_ext$major'
|
cannam@154
|
2846 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
cannam@154
|
2847 shlibpath_var=LD_LIBRARY_PATH
|
cannam@154
|
2848 shlibpath_overrides_runpath=no
|
cannam@154
|
2849
|
cannam@154
|
2850 # Some binutils ld are patched to set DT_RUNPATH
|
cannam@154
|
2851 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
|
cannam@154
|
2852 [lt_cv_shlibpath_overrides_runpath=no
|
cannam@154
|
2853 save_LDFLAGS=$LDFLAGS
|
cannam@154
|
2854 save_libdir=$libdir
|
cannam@154
|
2855 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
|
cannam@154
|
2856 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
|
cannam@154
|
2857 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
|
cannam@154
|
2858 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
|
cannam@154
|
2859 [lt_cv_shlibpath_overrides_runpath=yes])])
|
cannam@154
|
2860 LDFLAGS=$save_LDFLAGS
|
cannam@154
|
2861 libdir=$save_libdir
|
cannam@154
|
2862 ])
|
cannam@154
|
2863 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
|
cannam@154
|
2864
|
cannam@154
|
2865 # This implies no fast_install, which is unacceptable.
|
cannam@154
|
2866 # Some rework will be needed to allow for fast_install
|
cannam@154
|
2867 # before this can be enabled.
|
cannam@154
|
2868 hardcode_into_libs=yes
|
cannam@154
|
2869
|
cannam@154
|
2870 # Add ABI-specific directories to the system library path.
|
cannam@154
|
2871 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
|
cannam@154
|
2872
|
cannam@154
|
2873 # Ideally, we could use ldconfig to report *all* directores which are
|
cannam@154
|
2874 # searched for libraries, however this is still not possible. Aside from not
|
cannam@154
|
2875 # being certain /sbin/ldconfig is available, command
|
cannam@154
|
2876 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
|
cannam@154
|
2877 # even though it is searched at run-time. Try to do the best guess by
|
cannam@154
|
2878 # appending ld.so.conf contents (and includes) to the search path.
|
cannam@154
|
2879 if test -f /etc/ld.so.conf; then
|
cannam@154
|
2880 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' ' '`
|
cannam@154
|
2881 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
|
cannam@154
|
2882 fi
|
cannam@154
|
2883
|
cannam@154
|
2884 # We used to test for /lib/ld.so.1 and disable shared libraries on
|
cannam@154
|
2885 # powerpc, because MkLinux only supported shared libraries with the
|
cannam@154
|
2886 # GNU dynamic linker. Since this was broken with cross compilers,
|
cannam@154
|
2887 # most powerpc-linux boxes support dynamic linking these days and
|
cannam@154
|
2888 # people can always --disable-shared, the test was removed, and we
|
cannam@154
|
2889 # assume the GNU/Linux dynamic linker is in use.
|
cannam@154
|
2890 dynamic_linker='GNU/Linux ld.so'
|
cannam@154
|
2891 ;;
|
cannam@154
|
2892
|
cannam@154
|
2893 netbsd*)
|
cannam@154
|
2894 version_type=sunos
|
cannam@154
|
2895 need_lib_prefix=no
|
cannam@154
|
2896 need_version=no
|
cannam@154
|
2897 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
cannam@154
|
2898 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
|
cannam@154
|
2899 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
cannam@154
|
2900 dynamic_linker='NetBSD (a.out) ld.so'
|
cannam@154
|
2901 else
|
cannam@154
|
2902 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
cannam@154
|
2903 soname_spec='$libname$release$shared_ext$major'
|
cannam@154
|
2904 dynamic_linker='NetBSD ld.elf_so'
|
cannam@154
|
2905 fi
|
cannam@154
|
2906 shlibpath_var=LD_LIBRARY_PATH
|
cannam@154
|
2907 shlibpath_overrides_runpath=yes
|
cannam@154
|
2908 hardcode_into_libs=yes
|
cannam@154
|
2909 ;;
|
cannam@154
|
2910
|
cannam@154
|
2911 newsos6)
|
cannam@154
|
2912 version_type=linux # correct to gnu/linux during the next big refactor
|
cannam@154
|
2913 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
cannam@154
|
2914 shlibpath_var=LD_LIBRARY_PATH
|
cannam@154
|
2915 shlibpath_overrides_runpath=yes
|
cannam@154
|
2916 ;;
|
cannam@154
|
2917
|
cannam@154
|
2918 *nto* | *qnx*)
|
cannam@154
|
2919 version_type=qnx
|
cannam@154
|
2920 need_lib_prefix=no
|
cannam@154
|
2921 need_version=no
|
cannam@154
|
2922 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
cannam@154
|
2923 soname_spec='$libname$release$shared_ext$major'
|
cannam@154
|
2924 shlibpath_var=LD_LIBRARY_PATH
|
cannam@154
|
2925 shlibpath_overrides_runpath=no
|
cannam@154
|
2926 hardcode_into_libs=yes
|
cannam@154
|
2927 dynamic_linker='ldqnx.so'
|
cannam@154
|
2928 ;;
|
cannam@154
|
2929
|
cannam@154
|
2930 openbsd* | bitrig*)
|
cannam@154
|
2931 version_type=sunos
|
cannam@154
|
2932 sys_lib_dlsearch_path_spec=/usr/lib
|
cannam@154
|
2933 need_lib_prefix=no
|
cannam@154
|
2934 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
|
cannam@154
|
2935 need_version=no
|
cannam@154
|
2936 else
|
cannam@154
|
2937 need_version=yes
|
cannam@154
|
2938 fi
|
cannam@154
|
2939 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
|
cannam@154
|
2940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
cannam@154
|
2941 shlibpath_var=LD_LIBRARY_PATH
|
cannam@154
|
2942 shlibpath_overrides_runpath=yes
|
cannam@154
|
2943 ;;
|
cannam@154
|
2944
|
cannam@154
|
2945 os2*)
|
cannam@154
|
2946 libname_spec='$name'
|
cannam@154
|
2947 version_type=windows
|
cannam@154
|
2948 shrext_cmds=.dll
|
cannam@154
|
2949 need_version=no
|
cannam@154
|
2950 need_lib_prefix=no
|
cannam@154
|
2951 # OS/2 can only load a DLL with a base name of 8 characters or less.
|
cannam@154
|
2952 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
|
cannam@154
|
2953 v=$($ECHO $release$versuffix | tr -d .-);
|
cannam@154
|
2954 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
|
cannam@154
|
2955 $ECHO $n$v`$shared_ext'
|
cannam@154
|
2956 library_names_spec='${libname}_dll.$libext'
|
cannam@154
|
2957 dynamic_linker='OS/2 ld.exe'
|
cannam@154
|
2958 shlibpath_var=BEGINLIBPATH
|
cannam@154
|
2959 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
|
cannam@154
|
2960 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
cannam@154
|
2961 postinstall_cmds='base_file=`basename \$file`~
|
cannam@154
|
2962 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
|
cannam@154
|
2963 dldir=$destdir/`dirname \$dlpath`~
|
cannam@154
|
2964 test -d \$dldir || mkdir -p \$dldir~
|
cannam@154
|
2965 $install_prog $dir/$dlname \$dldir/$dlname~
|
cannam@154
|
2966 chmod a+x \$dldir/$dlname~
|
cannam@154
|
2967 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
|
cannam@154
|
2968 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
|
cannam@154
|
2969 fi'
|
cannam@154
|
2970 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
|
cannam@154
|
2971 dlpath=$dir/\$dldll~
|
cannam@154
|
2972 $RM \$dlpath'
|
cannam@154
|
2973 ;;
|
cannam@154
|
2974
|
cannam@154
|
2975 osf3* | osf4* | osf5*)
|
cannam@154
|
2976 version_type=osf
|
cannam@154
|
2977 need_lib_prefix=no
|
cannam@154
|
2978 need_version=no
|
cannam@154
|
2979 soname_spec='$libname$release$shared_ext$major'
|
cannam@154
|
2980 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
cannam@154
|
2981 shlibpath_var=LD_LIBRARY_PATH
|
cannam@154
|
2982 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
|
cannam@154
|
2983 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
cannam@154
|
2984 ;;
|
cannam@154
|
2985
|
cannam@154
|
2986 rdos*)
|
cannam@154
|
2987 dynamic_linker=no
|
cannam@154
|
2988 ;;
|
cannam@154
|
2989
|
cannam@154
|
2990 solaris*)
|
cannam@154
|
2991 version_type=linux # correct to gnu/linux during the next big refactor
|
cannam@154
|
2992 need_lib_prefix=no
|
cannam@154
|
2993 need_version=no
|
cannam@154
|
2994 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
cannam@154
|
2995 soname_spec='$libname$release$shared_ext$major'
|
cannam@154
|
2996 shlibpath_var=LD_LIBRARY_PATH
|
cannam@154
|
2997 shlibpath_overrides_runpath=yes
|
cannam@154
|
2998 hardcode_into_libs=yes
|
cannam@154
|
2999 # ldd complains unless libraries are executable
|
cannam@154
|
3000 postinstall_cmds='chmod +x $lib'
|
cannam@154
|
3001 ;;
|
cannam@154
|
3002
|
cannam@154
|
3003 sunos4*)
|
cannam@154
|
3004 version_type=sunos
|
cannam@154
|
3005 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
|
cannam@154
|
3006 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
|
cannam@154
|
3007 shlibpath_var=LD_LIBRARY_PATH
|
cannam@154
|
3008 shlibpath_overrides_runpath=yes
|
cannam@154
|
3009 if test yes = "$with_gnu_ld"; then
|
cannam@154
|
3010 need_lib_prefix=no
|
cannam@154
|
3011 fi
|
cannam@154
|
3012 need_version=yes
|
cannam@154
|
3013 ;;
|
cannam@154
|
3014
|
cannam@154
|
3015 sysv4 | sysv4.3*)
|
cannam@154
|
3016 version_type=linux # correct to gnu/linux during the next big refactor
|
cannam@154
|
3017 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
cannam@154
|
3018 soname_spec='$libname$release$shared_ext$major'
|
cannam@154
|
3019 shlibpath_var=LD_LIBRARY_PATH
|
cannam@154
|
3020 case $host_vendor in
|
cannam@154
|
3021 sni)
|
cannam@154
|
3022 shlibpath_overrides_runpath=no
|
cannam@154
|
3023 need_lib_prefix=no
|
cannam@154
|
3024 runpath_var=LD_RUN_PATH
|
cannam@154
|
3025 ;;
|
cannam@154
|
3026 siemens)
|
cannam@154
|
3027 need_lib_prefix=no
|
cannam@154
|
3028 ;;
|
cannam@154
|
3029 motorola)
|
cannam@154
|
3030 need_lib_prefix=no
|
cannam@154
|
3031 need_version=no
|
cannam@154
|
3032 shlibpath_overrides_runpath=no
|
cannam@154
|
3033 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
|
cannam@154
|
3034 ;;
|
cannam@154
|
3035 esac
|
cannam@154
|
3036 ;;
|
cannam@154
|
3037
|
cannam@154
|
3038 sysv4*MP*)
|
cannam@154
|
3039 if test -d /usr/nec; then
|
cannam@154
|
3040 version_type=linux # correct to gnu/linux during the next big refactor
|
cannam@154
|
3041 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
|
cannam@154
|
3042 soname_spec='$libname$shared_ext.$major'
|
cannam@154
|
3043 shlibpath_var=LD_LIBRARY_PATH
|
cannam@154
|
3044 fi
|
cannam@154
|
3045 ;;
|
cannam@154
|
3046
|
cannam@154
|
3047 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
cannam@154
|
3048 version_type=sco
|
cannam@154
|
3049 need_lib_prefix=no
|
cannam@154
|
3050 need_version=no
|
cannam@154
|
3051 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
|
cannam@154
|
3052 soname_spec='$libname$release$shared_ext$major'
|
cannam@154
|
3053 shlibpath_var=LD_LIBRARY_PATH
|
cannam@154
|
3054 shlibpath_overrides_runpath=yes
|
cannam@154
|
3055 hardcode_into_libs=yes
|
cannam@154
|
3056 if test yes = "$with_gnu_ld"; then
|
cannam@154
|
3057 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
|
cannam@154
|
3058 else
|
cannam@154
|
3059 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
|
cannam@154
|
3060 case $host_os in
|
cannam@154
|
3061 sco3.2v5*)
|
cannam@154
|
3062 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
|
cannam@154
|
3063 ;;
|
cannam@154
|
3064 esac
|
cannam@154
|
3065 fi
|
cannam@154
|
3066 sys_lib_dlsearch_path_spec='/usr/lib'
|
cannam@154
|
3067 ;;
|
cannam@154
|
3068
|
cannam@154
|
3069 tpf*)
|
cannam@154
|
3070 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
|
cannam@154
|
3071 version_type=linux # correct to gnu/linux during the next big refactor
|
cannam@154
|
3072 need_lib_prefix=no
|
cannam@154
|
3073 need_version=no
|
cannam@154
|
3074 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
cannam@154
|
3075 shlibpath_var=LD_LIBRARY_PATH
|
cannam@154
|
3076 shlibpath_overrides_runpath=no
|
cannam@154
|
3077 hardcode_into_libs=yes
|
cannam@154
|
3078 ;;
|
cannam@154
|
3079
|
cannam@154
|
3080 uts4*)
|
cannam@154
|
3081 version_type=linux # correct to gnu/linux during the next big refactor
|
cannam@154
|
3082 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
cannam@154
|
3083 soname_spec='$libname$release$shared_ext$major'
|
cannam@154
|
3084 shlibpath_var=LD_LIBRARY_PATH
|
cannam@154
|
3085 ;;
|
cannam@154
|
3086
|
cannam@154
|
3087 *)
|
cannam@154
|
3088 dynamic_linker=no
|
cannam@154
|
3089 ;;
|
cannam@154
|
3090 esac
|
cannam@154
|
3091 AC_MSG_RESULT([$dynamic_linker])
|
cannam@154
|
3092 test no = "$dynamic_linker" && can_build_shared=no
|
cannam@154
|
3093
|
cannam@154
|
3094 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
cannam@154
|
3095 if test yes = "$GCC"; then
|
cannam@154
|
3096 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
cannam@154
|
3097 fi
|
cannam@154
|
3098
|
cannam@154
|
3099 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
|
cannam@154
|
3100 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
|
cannam@154
|
3101 fi
|
cannam@154
|
3102
|
cannam@154
|
3103 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
|
cannam@154
|
3104 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
|
cannam@154
|
3105 fi
|
cannam@154
|
3106
|
cannam@154
|
3107 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
|
cannam@154
|
3108 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
|
cannam@154
|
3109
|
cannam@154
|
3110 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
|
cannam@154
|
3111 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
|
cannam@154
|
3112
|
cannam@154
|
3113 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
|
cannam@154
|
3114 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
|
cannam@154
|
3115
|
cannam@154
|
3116 _LT_DECL([], [variables_saved_for_relink], [1],
|
cannam@154
|
3117 [Variables whose values should be saved in libtool wrapper scripts and
|
cannam@154
|
3118 restored at link time])
|
cannam@154
|
3119 _LT_DECL([], [need_lib_prefix], [0],
|
cannam@154
|
3120 [Do we need the "lib" prefix for modules?])
|
cannam@154
|
3121 _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
|
cannam@154
|
3122 _LT_DECL([], [version_type], [0], [Library versioning type])
|
cannam@154
|
3123 _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
|
cannam@154
|
3124 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
|
cannam@154
|
3125 _LT_DECL([], [shlibpath_overrides_runpath], [0],
|
cannam@154
|
3126 [Is shlibpath searched before the hard-coded library search path?])
|
cannam@154
|
3127 _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
|
cannam@154
|
3128 _LT_DECL([], [library_names_spec], [1],
|
cannam@154
|
3129 [[List of archive names. First name is the real one, the rest are links.
|
cannam@154
|
3130 The last name is the one that the linker finds with -lNAME]])
|
cannam@154
|
3131 _LT_DECL([], [soname_spec], [1],
|
cannam@154
|
3132 [[The coded name of the library, if different from the real name]])
|
cannam@154
|
3133 _LT_DECL([], [install_override_mode], [1],
|
cannam@154
|
3134 [Permission mode override for installation of shared libraries])
|
cannam@154
|
3135 _LT_DECL([], [postinstall_cmds], [2],
|
cannam@154
|
3136 [Command to use after installation of a shared archive])
|
cannam@154
|
3137 _LT_DECL([], [postuninstall_cmds], [2],
|
cannam@154
|
3138 [Command to use after uninstallation of a shared archive])
|
cannam@154
|
3139 _LT_DECL([], [finish_cmds], [2],
|
cannam@154
|
3140 [Commands used to finish a libtool library installation in a directory])
|
cannam@154
|
3141 _LT_DECL([], [finish_eval], [1],
|
cannam@154
|
3142 [[As "finish_cmds", except a single script fragment to be evaled but
|
cannam@154
|
3143 not shown]])
|
cannam@154
|
3144 _LT_DECL([], [hardcode_into_libs], [0],
|
cannam@154
|
3145 [Whether we should hardcode library paths into libraries])
|
cannam@154
|
3146 _LT_DECL([], [sys_lib_search_path_spec], [2],
|
cannam@154
|
3147 [Compile-time system search path for libraries])
|
cannam@154
|
3148 _LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2],
|
cannam@154
|
3149 [Detected run-time system search path for libraries])
|
cannam@154
|
3150 _LT_DECL([], [configure_time_lt_sys_library_path], [2],
|
cannam@154
|
3151 [Explicit LT_SYS_LIBRARY_PATH set during ./configure time])
|
cannam@154
|
3152 ])# _LT_SYS_DYNAMIC_LINKER
|
cannam@154
|
3153
|
cannam@154
|
3154
|
cannam@154
|
3155 # _LT_PATH_TOOL_PREFIX(TOOL)
|
cannam@154
|
3156 # --------------------------
|
cannam@154
|
3157 # find a file program that can recognize shared library
|
cannam@154
|
3158 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
|
cannam@154
|
3159 [m4_require([_LT_DECL_EGREP])dnl
|
cannam@154
|
3160 AC_MSG_CHECKING([for $1])
|
cannam@154
|
3161 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
|
cannam@154
|
3162 [case $MAGIC_CMD in
|
cannam@154
|
3163 [[\\/*] | ?:[\\/]*])
|
cannam@154
|
3164 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
|
cannam@154
|
3165 ;;
|
cannam@154
|
3166 *)
|
cannam@154
|
3167 lt_save_MAGIC_CMD=$MAGIC_CMD
|
cannam@154
|
3168 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
3169 dnl $ac_dummy forces splitting on constant user-supplied paths.
|
cannam@154
|
3170 dnl POSIX.2 word splitting is done only on the output of word expansions,
|
cannam@154
|
3171 dnl not every word. This closes a longstanding sh security hole.
|
cannam@154
|
3172 ac_dummy="m4_if([$2], , $PATH, [$2])"
|
cannam@154
|
3173 for ac_dir in $ac_dummy; do
|
cannam@154
|
3174 IFS=$lt_save_ifs
|
cannam@154
|
3175 test -z "$ac_dir" && ac_dir=.
|
cannam@154
|
3176 if test -f "$ac_dir/$1"; then
|
cannam@154
|
3177 lt_cv_path_MAGIC_CMD=$ac_dir/"$1"
|
cannam@154
|
3178 if test -n "$file_magic_test_file"; then
|
cannam@154
|
3179 case $deplibs_check_method in
|
cannam@154
|
3180 "file_magic "*)
|
cannam@154
|
3181 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
|
cannam@154
|
3182 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
|
cannam@154
|
3183 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
cannam@154
|
3184 $EGREP "$file_magic_regex" > /dev/null; then
|
cannam@154
|
3185 :
|
cannam@154
|
3186 else
|
cannam@154
|
3187 cat <<_LT_EOF 1>&2
|
cannam@154
|
3188
|
cannam@154
|
3189 *** Warning: the command libtool uses to detect shared libraries,
|
cannam@154
|
3190 *** $file_magic_cmd, produces output that libtool cannot recognize.
|
cannam@154
|
3191 *** The result is that libtool may fail to recognize shared libraries
|
cannam@154
|
3192 *** as such. This will affect the creation of libtool libraries that
|
cannam@154
|
3193 *** depend on shared libraries, but programs linked with such libtool
|
cannam@154
|
3194 *** libraries will work regardless of this problem. Nevertheless, you
|
cannam@154
|
3195 *** may want to report the problem to your system manager and/or to
|
cannam@154
|
3196 *** bug-libtool@gnu.org
|
cannam@154
|
3197
|
cannam@154
|
3198 _LT_EOF
|
cannam@154
|
3199 fi ;;
|
cannam@154
|
3200 esac
|
cannam@154
|
3201 fi
|
cannam@154
|
3202 break
|
cannam@154
|
3203 fi
|
cannam@154
|
3204 done
|
cannam@154
|
3205 IFS=$lt_save_ifs
|
cannam@154
|
3206 MAGIC_CMD=$lt_save_MAGIC_CMD
|
cannam@154
|
3207 ;;
|
cannam@154
|
3208 esac])
|
cannam@154
|
3209 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
|
cannam@154
|
3210 if test -n "$MAGIC_CMD"; then
|
cannam@154
|
3211 AC_MSG_RESULT($MAGIC_CMD)
|
cannam@154
|
3212 else
|
cannam@154
|
3213 AC_MSG_RESULT(no)
|
cannam@154
|
3214 fi
|
cannam@154
|
3215 _LT_DECL([], [MAGIC_CMD], [0],
|
cannam@154
|
3216 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
|
cannam@154
|
3217 ])# _LT_PATH_TOOL_PREFIX
|
cannam@154
|
3218
|
cannam@154
|
3219 # Old name:
|
cannam@154
|
3220 AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
|
cannam@154
|
3221 dnl aclocal-1.4 backwards compatibility:
|
cannam@154
|
3222 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
|
cannam@154
|
3223
|
cannam@154
|
3224
|
cannam@154
|
3225 # _LT_PATH_MAGIC
|
cannam@154
|
3226 # --------------
|
cannam@154
|
3227 # find a file program that can recognize a shared library
|
cannam@154
|
3228 m4_defun([_LT_PATH_MAGIC],
|
cannam@154
|
3229 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
|
cannam@154
|
3230 if test -z "$lt_cv_path_MAGIC_CMD"; then
|
cannam@154
|
3231 if test -n "$ac_tool_prefix"; then
|
cannam@154
|
3232 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
|
cannam@154
|
3233 else
|
cannam@154
|
3234 MAGIC_CMD=:
|
cannam@154
|
3235 fi
|
cannam@154
|
3236 fi
|
cannam@154
|
3237 ])# _LT_PATH_MAGIC
|
cannam@154
|
3238
|
cannam@154
|
3239
|
cannam@154
|
3240 # LT_PATH_LD
|
cannam@154
|
3241 # ----------
|
cannam@154
|
3242 # find the pathname to the GNU or non-GNU linker
|
cannam@154
|
3243 AC_DEFUN([LT_PATH_LD],
|
cannam@154
|
3244 [AC_REQUIRE([AC_PROG_CC])dnl
|
cannam@154
|
3245 AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
cannam@154
|
3246 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
|
cannam@154
|
3247 m4_require([_LT_DECL_SED])dnl
|
cannam@154
|
3248 m4_require([_LT_DECL_EGREP])dnl
|
cannam@154
|
3249 m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
|
cannam@154
|
3250
|
cannam@154
|
3251 AC_ARG_WITH([gnu-ld],
|
cannam@154
|
3252 [AS_HELP_STRING([--with-gnu-ld],
|
cannam@154
|
3253 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
|
cannam@154
|
3254 [test no = "$withval" || with_gnu_ld=yes],
|
cannam@154
|
3255 [with_gnu_ld=no])dnl
|
cannam@154
|
3256
|
cannam@154
|
3257 ac_prog=ld
|
cannam@154
|
3258 if test yes = "$GCC"; then
|
cannam@154
|
3259 # Check if gcc -print-prog-name=ld gives a path.
|
cannam@154
|
3260 AC_MSG_CHECKING([for ld used by $CC])
|
cannam@154
|
3261 case $host in
|
cannam@154
|
3262 *-*-mingw*)
|
cannam@154
|
3263 # gcc leaves a trailing carriage return, which upsets mingw
|
cannam@154
|
3264 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
cannam@154
|
3265 *)
|
cannam@154
|
3266 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
cannam@154
|
3267 esac
|
cannam@154
|
3268 case $ac_prog in
|
cannam@154
|
3269 # Accept absolute paths.
|
cannam@154
|
3270 [[\\/]]* | ?:[[\\/]]*)
|
cannam@154
|
3271 re_direlt='/[[^/]][[^/]]*/\.\./'
|
cannam@154
|
3272 # Canonicalize the pathname of ld
|
cannam@154
|
3273 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
|
cannam@154
|
3274 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
|
cannam@154
|
3275 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
|
cannam@154
|
3276 done
|
cannam@154
|
3277 test -z "$LD" && LD=$ac_prog
|
cannam@154
|
3278 ;;
|
cannam@154
|
3279 "")
|
cannam@154
|
3280 # If it fails, then pretend we aren't using GCC.
|
cannam@154
|
3281 ac_prog=ld
|
cannam@154
|
3282 ;;
|
cannam@154
|
3283 *)
|
cannam@154
|
3284 # If it is relative, then search for the first ld in PATH.
|
cannam@154
|
3285 with_gnu_ld=unknown
|
cannam@154
|
3286 ;;
|
cannam@154
|
3287 esac
|
cannam@154
|
3288 elif test yes = "$with_gnu_ld"; then
|
cannam@154
|
3289 AC_MSG_CHECKING([for GNU ld])
|
cannam@154
|
3290 else
|
cannam@154
|
3291 AC_MSG_CHECKING([for non-GNU ld])
|
cannam@154
|
3292 fi
|
cannam@154
|
3293 AC_CACHE_VAL(lt_cv_path_LD,
|
cannam@154
|
3294 [if test -z "$LD"; then
|
cannam@154
|
3295 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
3296 for ac_dir in $PATH; do
|
cannam@154
|
3297 IFS=$lt_save_ifs
|
cannam@154
|
3298 test -z "$ac_dir" && ac_dir=.
|
cannam@154
|
3299 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
cannam@154
|
3300 lt_cv_path_LD=$ac_dir/$ac_prog
|
cannam@154
|
3301 # Check to see if the program is GNU ld. I'd rather use --version,
|
cannam@154
|
3302 # but apparently some variants of GNU ld only accept -v.
|
cannam@154
|
3303 # Break only if it was the GNU/non-GNU ld that we prefer.
|
cannam@154
|
3304 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
|
cannam@154
|
3305 *GNU* | *'with BFD'*)
|
cannam@154
|
3306 test no != "$with_gnu_ld" && break
|
cannam@154
|
3307 ;;
|
cannam@154
|
3308 *)
|
cannam@154
|
3309 test yes != "$with_gnu_ld" && break
|
cannam@154
|
3310 ;;
|
cannam@154
|
3311 esac
|
cannam@154
|
3312 fi
|
cannam@154
|
3313 done
|
cannam@154
|
3314 IFS=$lt_save_ifs
|
cannam@154
|
3315 else
|
cannam@154
|
3316 lt_cv_path_LD=$LD # Let the user override the test with a path.
|
cannam@154
|
3317 fi])
|
cannam@154
|
3318 LD=$lt_cv_path_LD
|
cannam@154
|
3319 if test -n "$LD"; then
|
cannam@154
|
3320 AC_MSG_RESULT($LD)
|
cannam@154
|
3321 else
|
cannam@154
|
3322 AC_MSG_RESULT(no)
|
cannam@154
|
3323 fi
|
cannam@154
|
3324 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
|
cannam@154
|
3325 _LT_PATH_LD_GNU
|
cannam@154
|
3326 AC_SUBST([LD])
|
cannam@154
|
3327
|
cannam@154
|
3328 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
|
cannam@154
|
3329 ])# LT_PATH_LD
|
cannam@154
|
3330
|
cannam@154
|
3331 # Old names:
|
cannam@154
|
3332 AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
|
cannam@154
|
3333 AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
|
cannam@154
|
3334 dnl aclocal-1.4 backwards compatibility:
|
cannam@154
|
3335 dnl AC_DEFUN([AM_PROG_LD], [])
|
cannam@154
|
3336 dnl AC_DEFUN([AC_PROG_LD], [])
|
cannam@154
|
3337
|
cannam@154
|
3338
|
cannam@154
|
3339 # _LT_PATH_LD_GNU
|
cannam@154
|
3340 #- --------------
|
cannam@154
|
3341 m4_defun([_LT_PATH_LD_GNU],
|
cannam@154
|
3342 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
|
cannam@154
|
3343 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
|
cannam@154
|
3344 case `$LD -v 2>&1 </dev/null` in
|
cannam@154
|
3345 *GNU* | *'with BFD'*)
|
cannam@154
|
3346 lt_cv_prog_gnu_ld=yes
|
cannam@154
|
3347 ;;
|
cannam@154
|
3348 *)
|
cannam@154
|
3349 lt_cv_prog_gnu_ld=no
|
cannam@154
|
3350 ;;
|
cannam@154
|
3351 esac])
|
cannam@154
|
3352 with_gnu_ld=$lt_cv_prog_gnu_ld
|
cannam@154
|
3353 ])# _LT_PATH_LD_GNU
|
cannam@154
|
3354
|
cannam@154
|
3355
|
cannam@154
|
3356 # _LT_CMD_RELOAD
|
cannam@154
|
3357 # --------------
|
cannam@154
|
3358 # find reload flag for linker
|
cannam@154
|
3359 # -- PORTME Some linkers may need a different reload flag.
|
cannam@154
|
3360 m4_defun([_LT_CMD_RELOAD],
|
cannam@154
|
3361 [AC_CACHE_CHECK([for $LD option to reload object files],
|
cannam@154
|
3362 lt_cv_ld_reload_flag,
|
cannam@154
|
3363 [lt_cv_ld_reload_flag='-r'])
|
cannam@154
|
3364 reload_flag=$lt_cv_ld_reload_flag
|
cannam@154
|
3365 case $reload_flag in
|
cannam@154
|
3366 "" | " "*) ;;
|
cannam@154
|
3367 *) reload_flag=" $reload_flag" ;;
|
cannam@154
|
3368 esac
|
cannam@154
|
3369 reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
cannam@154
|
3370 case $host_os in
|
cannam@154
|
3371 cygwin* | mingw* | pw32* | cegcc*)
|
cannam@154
|
3372 if test yes != "$GCC"; then
|
cannam@154
|
3373 reload_cmds=false
|
cannam@154
|
3374 fi
|
cannam@154
|
3375 ;;
|
cannam@154
|
3376 darwin*)
|
cannam@154
|
3377 if test yes = "$GCC"; then
|
cannam@154
|
3378 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
|
cannam@154
|
3379 else
|
cannam@154
|
3380 reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
cannam@154
|
3381 fi
|
cannam@154
|
3382 ;;
|
cannam@154
|
3383 esac
|
cannam@154
|
3384 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
|
cannam@154
|
3385 _LT_TAGDECL([], [reload_cmds], [2])dnl
|
cannam@154
|
3386 ])# _LT_CMD_RELOAD
|
cannam@154
|
3387
|
cannam@154
|
3388
|
cannam@154
|
3389 # _LT_PATH_DD
|
cannam@154
|
3390 # -----------
|
cannam@154
|
3391 # find a working dd
|
cannam@154
|
3392 m4_defun([_LT_PATH_DD],
|
cannam@154
|
3393 [AC_CACHE_CHECK([for a working dd], [ac_cv_path_lt_DD],
|
cannam@154
|
3394 [printf 0123456789abcdef0123456789abcdef >conftest.i
|
cannam@154
|
3395 cat conftest.i conftest.i >conftest2.i
|
cannam@154
|
3396 : ${lt_DD:=$DD}
|
cannam@154
|
3397 AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd],
|
cannam@154
|
3398 [if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
|
cannam@154
|
3399 cmp -s conftest.i conftest.out \
|
cannam@154
|
3400 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
|
cannam@154
|
3401 fi])
|
cannam@154
|
3402 rm -f conftest.i conftest2.i conftest.out])
|
cannam@154
|
3403 ])# _LT_PATH_DD
|
cannam@154
|
3404
|
cannam@154
|
3405
|
cannam@154
|
3406 # _LT_CMD_TRUNCATE
|
cannam@154
|
3407 # ----------------
|
cannam@154
|
3408 # find command to truncate a binary pipe
|
cannam@154
|
3409 m4_defun([_LT_CMD_TRUNCATE],
|
cannam@154
|
3410 [m4_require([_LT_PATH_DD])
|
cannam@154
|
3411 AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin],
|
cannam@154
|
3412 [printf 0123456789abcdef0123456789abcdef >conftest.i
|
cannam@154
|
3413 cat conftest.i conftest.i >conftest2.i
|
cannam@154
|
3414 lt_cv_truncate_bin=
|
cannam@154
|
3415 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
|
cannam@154
|
3416 cmp -s conftest.i conftest.out \
|
cannam@154
|
3417 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
|
cannam@154
|
3418 fi
|
cannam@154
|
3419 rm -f conftest.i conftest2.i conftest.out
|
cannam@154
|
3420 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"])
|
cannam@154
|
3421 _LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1],
|
cannam@154
|
3422 [Command to truncate a binary pipe])
|
cannam@154
|
3423 ])# _LT_CMD_TRUNCATE
|
cannam@154
|
3424
|
cannam@154
|
3425
|
cannam@154
|
3426 # _LT_CHECK_MAGIC_METHOD
|
cannam@154
|
3427 # ----------------------
|
cannam@154
|
3428 # how to check for library dependencies
|
cannam@154
|
3429 # -- PORTME fill in with the dynamic library characteristics
|
cannam@154
|
3430 m4_defun([_LT_CHECK_MAGIC_METHOD],
|
cannam@154
|
3431 [m4_require([_LT_DECL_EGREP])
|
cannam@154
|
3432 m4_require([_LT_DECL_OBJDUMP])
|
cannam@154
|
3433 AC_CACHE_CHECK([how to recognize dependent libraries],
|
cannam@154
|
3434 lt_cv_deplibs_check_method,
|
cannam@154
|
3435 [lt_cv_file_magic_cmd='$MAGIC_CMD'
|
cannam@154
|
3436 lt_cv_file_magic_test_file=
|
cannam@154
|
3437 lt_cv_deplibs_check_method='unknown'
|
cannam@154
|
3438 # Need to set the preceding variable on all platforms that support
|
cannam@154
|
3439 # interlibrary dependencies.
|
cannam@154
|
3440 # 'none' -- dependencies not supported.
|
cannam@154
|
3441 # 'unknown' -- same as none, but documents that we really don't know.
|
cannam@154
|
3442 # 'pass_all' -- all dependencies passed with no checks.
|
cannam@154
|
3443 # 'test_compile' -- check by making test program.
|
cannam@154
|
3444 # 'file_magic [[regex]]' -- check by looking for files in library path
|
cannam@154
|
3445 # that responds to the $file_magic_cmd with a given extended regex.
|
cannam@154
|
3446 # If you have 'file' or equivalent on your system and you're not sure
|
cannam@154
|
3447 # whether 'pass_all' will *always* work, you probably want this one.
|
cannam@154
|
3448
|
cannam@154
|
3449 case $host_os in
|
cannam@154
|
3450 aix[[4-9]]*)
|
cannam@154
|
3451 lt_cv_deplibs_check_method=pass_all
|
cannam@154
|
3452 ;;
|
cannam@154
|
3453
|
cannam@154
|
3454 beos*)
|
cannam@154
|
3455 lt_cv_deplibs_check_method=pass_all
|
cannam@154
|
3456 ;;
|
cannam@154
|
3457
|
cannam@154
|
3458 bsdi[[45]]*)
|
cannam@154
|
3459 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
|
cannam@154
|
3460 lt_cv_file_magic_cmd='/usr/bin/file -L'
|
cannam@154
|
3461 lt_cv_file_magic_test_file=/shlib/libc.so
|
cannam@154
|
3462 ;;
|
cannam@154
|
3463
|
cannam@154
|
3464 cygwin*)
|
cannam@154
|
3465 # func_win32_libid is a shell function defined in ltmain.sh
|
cannam@154
|
3466 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
cannam@154
|
3467 lt_cv_file_magic_cmd='func_win32_libid'
|
cannam@154
|
3468 ;;
|
cannam@154
|
3469
|
cannam@154
|
3470 mingw* | pw32*)
|
cannam@154
|
3471 # Base MSYS/MinGW do not provide the 'file' command needed by
|
cannam@154
|
3472 # func_win32_libid shell function, so use a weaker test based on 'objdump',
|
cannam@154
|
3473 # unless we find 'file', for example because we are cross-compiling.
|
cannam@154
|
3474 if ( file / ) >/dev/null 2>&1; then
|
cannam@154
|
3475 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
cannam@154
|
3476 lt_cv_file_magic_cmd='func_win32_libid'
|
cannam@154
|
3477 else
|
cannam@154
|
3478 # Keep this pattern in sync with the one in func_win32_libid.
|
cannam@154
|
3479 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
|
cannam@154
|
3480 lt_cv_file_magic_cmd='$OBJDUMP -f'
|
cannam@154
|
3481 fi
|
cannam@154
|
3482 ;;
|
cannam@154
|
3483
|
cannam@154
|
3484 cegcc*)
|
cannam@154
|
3485 # use the weaker test based on 'objdump'. See mingw*.
|
cannam@154
|
3486 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
|
cannam@154
|
3487 lt_cv_file_magic_cmd='$OBJDUMP -f'
|
cannam@154
|
3488 ;;
|
cannam@154
|
3489
|
cannam@154
|
3490 darwin* | rhapsody*)
|
cannam@154
|
3491 lt_cv_deplibs_check_method=pass_all
|
cannam@154
|
3492 ;;
|
cannam@154
|
3493
|
cannam@154
|
3494 freebsd* | dragonfly*)
|
cannam@154
|
3495 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
|
cannam@154
|
3496 case $host_cpu in
|
cannam@154
|
3497 i*86 )
|
cannam@154
|
3498 # Not sure whether the presence of OpenBSD here was a mistake.
|
cannam@154
|
3499 # Let's accept both of them until this is cleared up.
|
cannam@154
|
3500 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
|
cannam@154
|
3501 lt_cv_file_magic_cmd=/usr/bin/file
|
cannam@154
|
3502 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
cannam@154
|
3503 ;;
|
cannam@154
|
3504 esac
|
cannam@154
|
3505 else
|
cannam@154
|
3506 lt_cv_deplibs_check_method=pass_all
|
cannam@154
|
3507 fi
|
cannam@154
|
3508 ;;
|
cannam@154
|
3509
|
cannam@154
|
3510 haiku*)
|
cannam@154
|
3511 lt_cv_deplibs_check_method=pass_all
|
cannam@154
|
3512 ;;
|
cannam@154
|
3513
|
cannam@154
|
3514 hpux10.20* | hpux11*)
|
cannam@154
|
3515 lt_cv_file_magic_cmd=/usr/bin/file
|
cannam@154
|
3516 case $host_cpu in
|
cannam@154
|
3517 ia64*)
|
cannam@154
|
3518 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
|
cannam@154
|
3519 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
|
cannam@154
|
3520 ;;
|
cannam@154
|
3521 hppa*64*)
|
cannam@154
|
3522 [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]']
|
cannam@154
|
3523 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
|
cannam@154
|
3524 ;;
|
cannam@154
|
3525 *)
|
cannam@154
|
3526 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
|
cannam@154
|
3527 lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
cannam@154
|
3528 ;;
|
cannam@154
|
3529 esac
|
cannam@154
|
3530 ;;
|
cannam@154
|
3531
|
cannam@154
|
3532 interix[[3-9]]*)
|
cannam@154
|
3533 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
|
cannam@154
|
3534 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
|
cannam@154
|
3535 ;;
|
cannam@154
|
3536
|
cannam@154
|
3537 irix5* | irix6* | nonstopux*)
|
cannam@154
|
3538 case $LD in
|
cannam@154
|
3539 *-32|*"-32 ") libmagic=32-bit;;
|
cannam@154
|
3540 *-n32|*"-n32 ") libmagic=N32;;
|
cannam@154
|
3541 *-64|*"-64 ") libmagic=64-bit;;
|
cannam@154
|
3542 *) libmagic=never-match;;
|
cannam@154
|
3543 esac
|
cannam@154
|
3544 lt_cv_deplibs_check_method=pass_all
|
cannam@154
|
3545 ;;
|
cannam@154
|
3546
|
cannam@154
|
3547 # This must be glibc/ELF.
|
cannam@154
|
3548 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
|
cannam@154
|
3549 lt_cv_deplibs_check_method=pass_all
|
cannam@154
|
3550 ;;
|
cannam@154
|
3551
|
cannam@154
|
3552 netbsd*)
|
cannam@154
|
3553 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
|
cannam@154
|
3554 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
|
cannam@154
|
3555 else
|
cannam@154
|
3556 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
|
cannam@154
|
3557 fi
|
cannam@154
|
3558 ;;
|
cannam@154
|
3559
|
cannam@154
|
3560 newos6*)
|
cannam@154
|
3561 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
|
cannam@154
|
3562 lt_cv_file_magic_cmd=/usr/bin/file
|
cannam@154
|
3563 lt_cv_file_magic_test_file=/usr/lib/libnls.so
|
cannam@154
|
3564 ;;
|
cannam@154
|
3565
|
cannam@154
|
3566 *nto* | *qnx*)
|
cannam@154
|
3567 lt_cv_deplibs_check_method=pass_all
|
cannam@154
|
3568 ;;
|
cannam@154
|
3569
|
cannam@154
|
3570 openbsd* | bitrig*)
|
cannam@154
|
3571 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
|
cannam@154
|
3572 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
|
cannam@154
|
3573 else
|
cannam@154
|
3574 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
|
cannam@154
|
3575 fi
|
cannam@154
|
3576 ;;
|
cannam@154
|
3577
|
cannam@154
|
3578 osf3* | osf4* | osf5*)
|
cannam@154
|
3579 lt_cv_deplibs_check_method=pass_all
|
cannam@154
|
3580 ;;
|
cannam@154
|
3581
|
cannam@154
|
3582 rdos*)
|
cannam@154
|
3583 lt_cv_deplibs_check_method=pass_all
|
cannam@154
|
3584 ;;
|
cannam@154
|
3585
|
cannam@154
|
3586 solaris*)
|
cannam@154
|
3587 lt_cv_deplibs_check_method=pass_all
|
cannam@154
|
3588 ;;
|
cannam@154
|
3589
|
cannam@154
|
3590 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
cannam@154
|
3591 lt_cv_deplibs_check_method=pass_all
|
cannam@154
|
3592 ;;
|
cannam@154
|
3593
|
cannam@154
|
3594 sysv4 | sysv4.3*)
|
cannam@154
|
3595 case $host_vendor in
|
cannam@154
|
3596 motorola)
|
cannam@154
|
3597 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]]'
|
cannam@154
|
3598 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
cannam@154
|
3599 ;;
|
cannam@154
|
3600 ncr)
|
cannam@154
|
3601 lt_cv_deplibs_check_method=pass_all
|
cannam@154
|
3602 ;;
|
cannam@154
|
3603 sequent)
|
cannam@154
|
3604 lt_cv_file_magic_cmd='/bin/file'
|
cannam@154
|
3605 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
|
cannam@154
|
3606 ;;
|
cannam@154
|
3607 sni)
|
cannam@154
|
3608 lt_cv_file_magic_cmd='/bin/file'
|
cannam@154
|
3609 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
|
cannam@154
|
3610 lt_cv_file_magic_test_file=/lib/libc.so
|
cannam@154
|
3611 ;;
|
cannam@154
|
3612 siemens)
|
cannam@154
|
3613 lt_cv_deplibs_check_method=pass_all
|
cannam@154
|
3614 ;;
|
cannam@154
|
3615 pc)
|
cannam@154
|
3616 lt_cv_deplibs_check_method=pass_all
|
cannam@154
|
3617 ;;
|
cannam@154
|
3618 esac
|
cannam@154
|
3619 ;;
|
cannam@154
|
3620
|
cannam@154
|
3621 tpf*)
|
cannam@154
|
3622 lt_cv_deplibs_check_method=pass_all
|
cannam@154
|
3623 ;;
|
cannam@154
|
3624 os2*)
|
cannam@154
|
3625 lt_cv_deplibs_check_method=pass_all
|
cannam@154
|
3626 ;;
|
cannam@154
|
3627 esac
|
cannam@154
|
3628 ])
|
cannam@154
|
3629
|
cannam@154
|
3630 file_magic_glob=
|
cannam@154
|
3631 want_nocaseglob=no
|
cannam@154
|
3632 if test "$build" = "$host"; then
|
cannam@154
|
3633 case $host_os in
|
cannam@154
|
3634 mingw* | pw32*)
|
cannam@154
|
3635 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
|
cannam@154
|
3636 want_nocaseglob=yes
|
cannam@154
|
3637 else
|
cannam@154
|
3638 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
|
cannam@154
|
3639 fi
|
cannam@154
|
3640 ;;
|
cannam@154
|
3641 esac
|
cannam@154
|
3642 fi
|
cannam@154
|
3643
|
cannam@154
|
3644 file_magic_cmd=$lt_cv_file_magic_cmd
|
cannam@154
|
3645 deplibs_check_method=$lt_cv_deplibs_check_method
|
cannam@154
|
3646 test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
cannam@154
|
3647
|
cannam@154
|
3648 _LT_DECL([], [deplibs_check_method], [1],
|
cannam@154
|
3649 [Method to check whether dependent libraries are shared objects])
|
cannam@154
|
3650 _LT_DECL([], [file_magic_cmd], [1],
|
cannam@154
|
3651 [Command to use when deplibs_check_method = "file_magic"])
|
cannam@154
|
3652 _LT_DECL([], [file_magic_glob], [1],
|
cannam@154
|
3653 [How to find potential files when deplibs_check_method = "file_magic"])
|
cannam@154
|
3654 _LT_DECL([], [want_nocaseglob], [1],
|
cannam@154
|
3655 [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
|
cannam@154
|
3656 ])# _LT_CHECK_MAGIC_METHOD
|
cannam@154
|
3657
|
cannam@154
|
3658
|
cannam@154
|
3659 # LT_PATH_NM
|
cannam@154
|
3660 # ----------
|
cannam@154
|
3661 # find the pathname to a BSD- or MS-compatible name lister
|
cannam@154
|
3662 AC_DEFUN([LT_PATH_NM],
|
cannam@154
|
3663 [AC_REQUIRE([AC_PROG_CC])dnl
|
cannam@154
|
3664 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
|
cannam@154
|
3665 [if test -n "$NM"; then
|
cannam@154
|
3666 # Let the user override the test.
|
cannam@154
|
3667 lt_cv_path_NM=$NM
|
cannam@154
|
3668 else
|
cannam@154
|
3669 lt_nm_to_check=${ac_tool_prefix}nm
|
cannam@154
|
3670 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
|
cannam@154
|
3671 lt_nm_to_check="$lt_nm_to_check nm"
|
cannam@154
|
3672 fi
|
cannam@154
|
3673 for lt_tmp_nm in $lt_nm_to_check; do
|
cannam@154
|
3674 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
3675 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
|
cannam@154
|
3676 IFS=$lt_save_ifs
|
cannam@154
|
3677 test -z "$ac_dir" && ac_dir=.
|
cannam@154
|
3678 tmp_nm=$ac_dir/$lt_tmp_nm
|
cannam@154
|
3679 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
|
cannam@154
|
3680 # Check to see if the nm accepts a BSD-compat flag.
|
cannam@154
|
3681 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
|
cannam@154
|
3682 # nm: unknown option "B" ignored
|
cannam@154
|
3683 # Tru64's nm complains that /dev/null is an invalid object file
|
cannam@154
|
3684 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
|
cannam@154
|
3685 case $build_os in
|
cannam@154
|
3686 mingw*) lt_bad_file=conftest.nm/nofile ;;
|
cannam@154
|
3687 *) lt_bad_file=/dev/null ;;
|
cannam@154
|
3688 esac
|
cannam@154
|
3689 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
|
cannam@154
|
3690 *$lt_bad_file* | *'Invalid file or object type'*)
|
cannam@154
|
3691 lt_cv_path_NM="$tmp_nm -B"
|
cannam@154
|
3692 break 2
|
cannam@154
|
3693 ;;
|
cannam@154
|
3694 *)
|
cannam@154
|
3695 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
|
cannam@154
|
3696 */dev/null*)
|
cannam@154
|
3697 lt_cv_path_NM="$tmp_nm -p"
|
cannam@154
|
3698 break 2
|
cannam@154
|
3699 ;;
|
cannam@154
|
3700 *)
|
cannam@154
|
3701 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
|
cannam@154
|
3702 continue # so that we can try to find one that supports BSD flags
|
cannam@154
|
3703 ;;
|
cannam@154
|
3704 esac
|
cannam@154
|
3705 ;;
|
cannam@154
|
3706 esac
|
cannam@154
|
3707 fi
|
cannam@154
|
3708 done
|
cannam@154
|
3709 IFS=$lt_save_ifs
|
cannam@154
|
3710 done
|
cannam@154
|
3711 : ${lt_cv_path_NM=no}
|
cannam@154
|
3712 fi])
|
cannam@154
|
3713 if test no != "$lt_cv_path_NM"; then
|
cannam@154
|
3714 NM=$lt_cv_path_NM
|
cannam@154
|
3715 else
|
cannam@154
|
3716 # Didn't find any BSD compatible name lister, look for dumpbin.
|
cannam@154
|
3717 if test -n "$DUMPBIN"; then :
|
cannam@154
|
3718 # Let the user override the test.
|
cannam@154
|
3719 else
|
cannam@154
|
3720 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
|
cannam@154
|
3721 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
|
cannam@154
|
3722 *COFF*)
|
cannam@154
|
3723 DUMPBIN="$DUMPBIN -symbols -headers"
|
cannam@154
|
3724 ;;
|
cannam@154
|
3725 *)
|
cannam@154
|
3726 DUMPBIN=:
|
cannam@154
|
3727 ;;
|
cannam@154
|
3728 esac
|
cannam@154
|
3729 fi
|
cannam@154
|
3730 AC_SUBST([DUMPBIN])
|
cannam@154
|
3731 if test : != "$DUMPBIN"; then
|
cannam@154
|
3732 NM=$DUMPBIN
|
cannam@154
|
3733 fi
|
cannam@154
|
3734 fi
|
cannam@154
|
3735 test -z "$NM" && NM=nm
|
cannam@154
|
3736 AC_SUBST([NM])
|
cannam@154
|
3737 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
|
cannam@154
|
3738
|
cannam@154
|
3739 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
|
cannam@154
|
3740 [lt_cv_nm_interface="BSD nm"
|
cannam@154
|
3741 echo "int some_variable = 0;" > conftest.$ac_ext
|
cannam@154
|
3742 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
|
cannam@154
|
3743 (eval "$ac_compile" 2>conftest.err)
|
cannam@154
|
3744 cat conftest.err >&AS_MESSAGE_LOG_FD
|
cannam@154
|
3745 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
|
cannam@154
|
3746 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
|
cannam@154
|
3747 cat conftest.err >&AS_MESSAGE_LOG_FD
|
cannam@154
|
3748 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
|
cannam@154
|
3749 cat conftest.out >&AS_MESSAGE_LOG_FD
|
cannam@154
|
3750 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
|
cannam@154
|
3751 lt_cv_nm_interface="MS dumpbin"
|
cannam@154
|
3752 fi
|
cannam@154
|
3753 rm -f conftest*])
|
cannam@154
|
3754 ])# LT_PATH_NM
|
cannam@154
|
3755
|
cannam@154
|
3756 # Old names:
|
cannam@154
|
3757 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
|
cannam@154
|
3758 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
|
cannam@154
|
3759 dnl aclocal-1.4 backwards compatibility:
|
cannam@154
|
3760 dnl AC_DEFUN([AM_PROG_NM], [])
|
cannam@154
|
3761 dnl AC_DEFUN([AC_PROG_NM], [])
|
cannam@154
|
3762
|
cannam@154
|
3763 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
|
cannam@154
|
3764 # --------------------------------
|
cannam@154
|
3765 # how to determine the name of the shared library
|
cannam@154
|
3766 # associated with a specific link library.
|
cannam@154
|
3767 # -- PORTME fill in with the dynamic library characteristics
|
cannam@154
|
3768 m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
|
cannam@154
|
3769 [m4_require([_LT_DECL_EGREP])
|
cannam@154
|
3770 m4_require([_LT_DECL_OBJDUMP])
|
cannam@154
|
3771 m4_require([_LT_DECL_DLLTOOL])
|
cannam@154
|
3772 AC_CACHE_CHECK([how to associate runtime and link libraries],
|
cannam@154
|
3773 lt_cv_sharedlib_from_linklib_cmd,
|
cannam@154
|
3774 [lt_cv_sharedlib_from_linklib_cmd='unknown'
|
cannam@154
|
3775
|
cannam@154
|
3776 case $host_os in
|
cannam@154
|
3777 cygwin* | mingw* | pw32* | cegcc*)
|
cannam@154
|
3778 # two different shell functions defined in ltmain.sh;
|
cannam@154
|
3779 # decide which one to use based on capabilities of $DLLTOOL
|
cannam@154
|
3780 case `$DLLTOOL --help 2>&1` in
|
cannam@154
|
3781 *--identify-strict*)
|
cannam@154
|
3782 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
|
cannam@154
|
3783 ;;
|
cannam@154
|
3784 *)
|
cannam@154
|
3785 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
|
cannam@154
|
3786 ;;
|
cannam@154
|
3787 esac
|
cannam@154
|
3788 ;;
|
cannam@154
|
3789 *)
|
cannam@154
|
3790 # fallback: assume linklib IS sharedlib
|
cannam@154
|
3791 lt_cv_sharedlib_from_linklib_cmd=$ECHO
|
cannam@154
|
3792 ;;
|
cannam@154
|
3793 esac
|
cannam@154
|
3794 ])
|
cannam@154
|
3795 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
|
cannam@154
|
3796 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
|
cannam@154
|
3797
|
cannam@154
|
3798 _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
|
cannam@154
|
3799 [Command to associate shared and link libraries])
|
cannam@154
|
3800 ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
|
cannam@154
|
3801
|
cannam@154
|
3802
|
cannam@154
|
3803 # _LT_PATH_MANIFEST_TOOL
|
cannam@154
|
3804 # ----------------------
|
cannam@154
|
3805 # locate the manifest tool
|
cannam@154
|
3806 m4_defun([_LT_PATH_MANIFEST_TOOL],
|
cannam@154
|
3807 [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
|
cannam@154
|
3808 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
|
cannam@154
|
3809 AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
|
cannam@154
|
3810 [lt_cv_path_mainfest_tool=no
|
cannam@154
|
3811 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
|
cannam@154
|
3812 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
|
cannam@154
|
3813 cat conftest.err >&AS_MESSAGE_LOG_FD
|
cannam@154
|
3814 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
|
cannam@154
|
3815 lt_cv_path_mainfest_tool=yes
|
cannam@154
|
3816 fi
|
cannam@154
|
3817 rm -f conftest*])
|
cannam@154
|
3818 if test yes != "$lt_cv_path_mainfest_tool"; then
|
cannam@154
|
3819 MANIFEST_TOOL=:
|
cannam@154
|
3820 fi
|
cannam@154
|
3821 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
|
cannam@154
|
3822 ])# _LT_PATH_MANIFEST_TOOL
|
cannam@154
|
3823
|
cannam@154
|
3824
|
cannam@154
|
3825 # _LT_DLL_DEF_P([FILE])
|
cannam@154
|
3826 # ---------------------
|
cannam@154
|
3827 # True iff FILE is a Windows DLL '.def' file.
|
cannam@154
|
3828 # Keep in sync with func_dll_def_p in the libtool script
|
cannam@154
|
3829 AC_DEFUN([_LT_DLL_DEF_P],
|
cannam@154
|
3830 [dnl
|
cannam@154
|
3831 test DEF = "`$SED -n dnl
|
cannam@154
|
3832 -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace
|
cannam@154
|
3833 -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments
|
cannam@154
|
3834 -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl
|
cannam@154
|
3835 -e q dnl Only consider the first "real" line
|
cannam@154
|
3836 $1`" dnl
|
cannam@154
|
3837 ])# _LT_DLL_DEF_P
|
cannam@154
|
3838
|
cannam@154
|
3839
|
cannam@154
|
3840 # LT_LIB_M
|
cannam@154
|
3841 # --------
|
cannam@154
|
3842 # check for math library
|
cannam@154
|
3843 AC_DEFUN([LT_LIB_M],
|
cannam@154
|
3844 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
cannam@154
|
3845 LIBM=
|
cannam@154
|
3846 case $host in
|
cannam@154
|
3847 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
|
cannam@154
|
3848 # These system don't have libm, or don't need it
|
cannam@154
|
3849 ;;
|
cannam@154
|
3850 *-ncr-sysv4.3*)
|
cannam@154
|
3851 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw)
|
cannam@154
|
3852 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
|
cannam@154
|
3853 ;;
|
cannam@154
|
3854 *)
|
cannam@154
|
3855 AC_CHECK_LIB(m, cos, LIBM=-lm)
|
cannam@154
|
3856 ;;
|
cannam@154
|
3857 esac
|
cannam@154
|
3858 AC_SUBST([LIBM])
|
cannam@154
|
3859 ])# LT_LIB_M
|
cannam@154
|
3860
|
cannam@154
|
3861 # Old name:
|
cannam@154
|
3862 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
|
cannam@154
|
3863 dnl aclocal-1.4 backwards compatibility:
|
cannam@154
|
3864 dnl AC_DEFUN([AC_CHECK_LIBM], [])
|
cannam@154
|
3865
|
cannam@154
|
3866
|
cannam@154
|
3867 # _LT_COMPILER_NO_RTTI([TAGNAME])
|
cannam@154
|
3868 # -------------------------------
|
cannam@154
|
3869 m4_defun([_LT_COMPILER_NO_RTTI],
|
cannam@154
|
3870 [m4_require([_LT_TAG_COMPILER])dnl
|
cannam@154
|
3871
|
cannam@154
|
3872 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
|
cannam@154
|
3873
|
cannam@154
|
3874 if test yes = "$GCC"; then
|
cannam@154
|
3875 case $cc_basename in
|
cannam@154
|
3876 nvcc*)
|
cannam@154
|
3877 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
|
cannam@154
|
3878 *)
|
cannam@154
|
3879 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
|
cannam@154
|
3880 esac
|
cannam@154
|
3881
|
cannam@154
|
3882 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
|
cannam@154
|
3883 lt_cv_prog_compiler_rtti_exceptions,
|
cannam@154
|
3884 [-fno-rtti -fno-exceptions], [],
|
cannam@154
|
3885 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
|
cannam@154
|
3886 fi
|
cannam@154
|
3887 _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
|
cannam@154
|
3888 [Compiler flag to turn off builtin functions])
|
cannam@154
|
3889 ])# _LT_COMPILER_NO_RTTI
|
cannam@154
|
3890
|
cannam@154
|
3891
|
cannam@154
|
3892 # _LT_CMD_GLOBAL_SYMBOLS
|
cannam@154
|
3893 # ----------------------
|
cannam@154
|
3894 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
|
cannam@154
|
3895 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
cannam@154
|
3896 AC_REQUIRE([AC_PROG_CC])dnl
|
cannam@154
|
3897 AC_REQUIRE([AC_PROG_AWK])dnl
|
cannam@154
|
3898 AC_REQUIRE([LT_PATH_NM])dnl
|
cannam@154
|
3899 AC_REQUIRE([LT_PATH_LD])dnl
|
cannam@154
|
3900 m4_require([_LT_DECL_SED])dnl
|
cannam@154
|
3901 m4_require([_LT_DECL_EGREP])dnl
|
cannam@154
|
3902 m4_require([_LT_TAG_COMPILER])dnl
|
cannam@154
|
3903
|
cannam@154
|
3904 # Check for command to grab the raw symbol name followed by C symbol from nm.
|
cannam@154
|
3905 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
|
cannam@154
|
3906 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
|
cannam@154
|
3907 [
|
cannam@154
|
3908 # These are sane defaults that work on at least a few old systems.
|
cannam@154
|
3909 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
|
cannam@154
|
3910
|
cannam@154
|
3911 # Character class describing NM global symbol codes.
|
cannam@154
|
3912 symcode='[[BCDEGRST]]'
|
cannam@154
|
3913
|
cannam@154
|
3914 # Regexp to match symbols that can be accessed directly from C.
|
cannam@154
|
3915 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
|
cannam@154
|
3916
|
cannam@154
|
3917 # Define system-specific variables.
|
cannam@154
|
3918 case $host_os in
|
cannam@154
|
3919 aix*)
|
cannam@154
|
3920 symcode='[[BCDT]]'
|
cannam@154
|
3921 ;;
|
cannam@154
|
3922 cygwin* | mingw* | pw32* | cegcc*)
|
cannam@154
|
3923 symcode='[[ABCDGISTW]]'
|
cannam@154
|
3924 ;;
|
cannam@154
|
3925 hpux*)
|
cannam@154
|
3926 if test ia64 = "$host_cpu"; then
|
cannam@154
|
3927 symcode='[[ABCDEGRST]]'
|
cannam@154
|
3928 fi
|
cannam@154
|
3929 ;;
|
cannam@154
|
3930 irix* | nonstopux*)
|
cannam@154
|
3931 symcode='[[BCDEGRST]]'
|
cannam@154
|
3932 ;;
|
cannam@154
|
3933 osf*)
|
cannam@154
|
3934 symcode='[[BCDEGQRST]]'
|
cannam@154
|
3935 ;;
|
cannam@154
|
3936 solaris*)
|
cannam@154
|
3937 symcode='[[BDRT]]'
|
cannam@154
|
3938 ;;
|
cannam@154
|
3939 sco3.2v5*)
|
cannam@154
|
3940 symcode='[[DT]]'
|
cannam@154
|
3941 ;;
|
cannam@154
|
3942 sysv4.2uw2*)
|
cannam@154
|
3943 symcode='[[DT]]'
|
cannam@154
|
3944 ;;
|
cannam@154
|
3945 sysv5* | sco5v6* | unixware* | OpenUNIX*)
|
cannam@154
|
3946 symcode='[[ABDT]]'
|
cannam@154
|
3947 ;;
|
cannam@154
|
3948 sysv4)
|
cannam@154
|
3949 symcode='[[DFNSTU]]'
|
cannam@154
|
3950 ;;
|
cannam@154
|
3951 esac
|
cannam@154
|
3952
|
cannam@154
|
3953 # If we're using GNU nm, then use its standard symbol codes.
|
cannam@154
|
3954 case `$NM -V 2>&1` in
|
cannam@154
|
3955 *GNU* | *'with BFD'*)
|
cannam@154
|
3956 symcode='[[ABCDGIRSTW]]' ;;
|
cannam@154
|
3957 esac
|
cannam@154
|
3958
|
cannam@154
|
3959 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
cannam@154
|
3960 # Gets list of data symbols to import.
|
cannam@154
|
3961 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
|
cannam@154
|
3962 # Adjust the below global symbol transforms to fixup imported variables.
|
cannam@154
|
3963 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
|
cannam@154
|
3964 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
|
cannam@154
|
3965 lt_c_name_lib_hook="\
|
cannam@154
|
3966 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
|
cannam@154
|
3967 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
|
cannam@154
|
3968 else
|
cannam@154
|
3969 # Disable hooks by default.
|
cannam@154
|
3970 lt_cv_sys_global_symbol_to_import=
|
cannam@154
|
3971 lt_cdecl_hook=
|
cannam@154
|
3972 lt_c_name_hook=
|
cannam@154
|
3973 lt_c_name_lib_hook=
|
cannam@154
|
3974 fi
|
cannam@154
|
3975
|
cannam@154
|
3976 # Transform an extracted symbol line into a proper C declaration.
|
cannam@154
|
3977 # Some systems (esp. on ia64) link data and code symbols differently,
|
cannam@154
|
3978 # so use this general approach.
|
cannam@154
|
3979 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
|
cannam@154
|
3980 $lt_cdecl_hook\
|
cannam@154
|
3981 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
|
cannam@154
|
3982 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
|
cannam@154
|
3983
|
cannam@154
|
3984 # Transform an extracted symbol line into symbol name and symbol address
|
cannam@154
|
3985 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
|
cannam@154
|
3986 $lt_c_name_hook\
|
cannam@154
|
3987 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
|
cannam@154
|
3988 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
|
cannam@154
|
3989
|
cannam@154
|
3990 # Transform an extracted symbol line into symbol name with lib prefix and
|
cannam@154
|
3991 # symbol address.
|
cannam@154
|
3992 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
|
cannam@154
|
3993 $lt_c_name_lib_hook\
|
cannam@154
|
3994 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
|
cannam@154
|
3995 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
|
cannam@154
|
3996 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
|
cannam@154
|
3997
|
cannam@154
|
3998 # Handle CRLF in mingw tool chain
|
cannam@154
|
3999 opt_cr=
|
cannam@154
|
4000 case $build_os in
|
cannam@154
|
4001 mingw*)
|
cannam@154
|
4002 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
|
cannam@154
|
4003 ;;
|
cannam@154
|
4004 esac
|
cannam@154
|
4005
|
cannam@154
|
4006 # Try without a prefix underscore, then with it.
|
cannam@154
|
4007 for ac_symprfx in "" "_"; do
|
cannam@154
|
4008
|
cannam@154
|
4009 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
|
cannam@154
|
4010 symxfrm="\\1 $ac_symprfx\\2 \\2"
|
cannam@154
|
4011
|
cannam@154
|
4012 # Write the raw and C identifiers.
|
cannam@154
|
4013 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
cannam@154
|
4014 # Fake it for dumpbin and say T for any non-static function,
|
cannam@154
|
4015 # D for any global variable and I for any imported variable.
|
cannam@154
|
4016 # Also find C++ and __fastcall symbols from MSVC++,
|
cannam@154
|
4017 # which start with @ or ?.
|
cannam@154
|
4018 lt_cv_sys_global_symbol_pipe="$AWK ['"\
|
cannam@154
|
4019 " {last_section=section; section=\$ 3};"\
|
cannam@154
|
4020 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
|
cannam@154
|
4021 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
|
cannam@154
|
4022 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
|
cannam@154
|
4023 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
|
cannam@154
|
4024 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
|
cannam@154
|
4025 " \$ 0!~/External *\|/{next};"\
|
cannam@154
|
4026 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
|
cannam@154
|
4027 " {if(hide[section]) next};"\
|
cannam@154
|
4028 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
|
cannam@154
|
4029 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
|
cannam@154
|
4030 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
|
cannam@154
|
4031 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
|
cannam@154
|
4032 " ' prfx=^$ac_symprfx]"
|
cannam@154
|
4033 else
|
cannam@154
|
4034 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
|
cannam@154
|
4035 fi
|
cannam@154
|
4036 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
|
cannam@154
|
4037
|
cannam@154
|
4038 # Check to see that the pipe works correctly.
|
cannam@154
|
4039 pipe_works=no
|
cannam@154
|
4040
|
cannam@154
|
4041 rm -f conftest*
|
cannam@154
|
4042 cat > conftest.$ac_ext <<_LT_EOF
|
cannam@154
|
4043 #ifdef __cplusplus
|
cannam@154
|
4044 extern "C" {
|
cannam@154
|
4045 #endif
|
cannam@154
|
4046 char nm_test_var;
|
cannam@154
|
4047 void nm_test_func(void);
|
cannam@154
|
4048 void nm_test_func(void){}
|
cannam@154
|
4049 #ifdef __cplusplus
|
cannam@154
|
4050 }
|
cannam@154
|
4051 #endif
|
cannam@154
|
4052 int main(){nm_test_var='a';nm_test_func();return(0);}
|
cannam@154
|
4053 _LT_EOF
|
cannam@154
|
4054
|
cannam@154
|
4055 if AC_TRY_EVAL(ac_compile); then
|
cannam@154
|
4056 # Now try to grab the symbols.
|
cannam@154
|
4057 nlist=conftest.nm
|
cannam@154
|
4058 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
|
cannam@154
|
4059 # Try sorting and uniquifying the output.
|
cannam@154
|
4060 if sort "$nlist" | uniq > "$nlist"T; then
|
cannam@154
|
4061 mv -f "$nlist"T "$nlist"
|
cannam@154
|
4062 else
|
cannam@154
|
4063 rm -f "$nlist"T
|
cannam@154
|
4064 fi
|
cannam@154
|
4065
|
cannam@154
|
4066 # Make sure that we snagged all the symbols we need.
|
cannam@154
|
4067 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
|
cannam@154
|
4068 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
|
cannam@154
|
4069 cat <<_LT_EOF > conftest.$ac_ext
|
cannam@154
|
4070 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
|
cannam@154
|
4071 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
|
cannam@154
|
4072 /* DATA imports from DLLs on WIN32 can't be const, because runtime
|
cannam@154
|
4073 relocations are performed -- see ld's documentation on pseudo-relocs. */
|
cannam@154
|
4074 # define LT@&t@_DLSYM_CONST
|
cannam@154
|
4075 #elif defined __osf__
|
cannam@154
|
4076 /* This system does not cope well with relocations in const data. */
|
cannam@154
|
4077 # define LT@&t@_DLSYM_CONST
|
cannam@154
|
4078 #else
|
cannam@154
|
4079 # define LT@&t@_DLSYM_CONST const
|
cannam@154
|
4080 #endif
|
cannam@154
|
4081
|
cannam@154
|
4082 #ifdef __cplusplus
|
cannam@154
|
4083 extern "C" {
|
cannam@154
|
4084 #endif
|
cannam@154
|
4085
|
cannam@154
|
4086 _LT_EOF
|
cannam@154
|
4087 # Now generate the symbol file.
|
cannam@154
|
4088 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
|
cannam@154
|
4089
|
cannam@154
|
4090 cat <<_LT_EOF >> conftest.$ac_ext
|
cannam@154
|
4091
|
cannam@154
|
4092 /* The mapping between symbol names and symbols. */
|
cannam@154
|
4093 LT@&t@_DLSYM_CONST struct {
|
cannam@154
|
4094 const char *name;
|
cannam@154
|
4095 void *address;
|
cannam@154
|
4096 }
|
cannam@154
|
4097 lt__PROGRAM__LTX_preloaded_symbols[[]] =
|
cannam@154
|
4098 {
|
cannam@154
|
4099 { "@PROGRAM@", (void *) 0 },
|
cannam@154
|
4100 _LT_EOF
|
cannam@154
|
4101 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
|
cannam@154
|
4102 cat <<\_LT_EOF >> conftest.$ac_ext
|
cannam@154
|
4103 {0, (void *) 0}
|
cannam@154
|
4104 };
|
cannam@154
|
4105
|
cannam@154
|
4106 /* This works around a problem in FreeBSD linker */
|
cannam@154
|
4107 #ifdef FREEBSD_WORKAROUND
|
cannam@154
|
4108 static const void *lt_preloaded_setup() {
|
cannam@154
|
4109 return lt__PROGRAM__LTX_preloaded_symbols;
|
cannam@154
|
4110 }
|
cannam@154
|
4111 #endif
|
cannam@154
|
4112
|
cannam@154
|
4113 #ifdef __cplusplus
|
cannam@154
|
4114 }
|
cannam@154
|
4115 #endif
|
cannam@154
|
4116 _LT_EOF
|
cannam@154
|
4117 # Now try linking the two files.
|
cannam@154
|
4118 mv conftest.$ac_objext conftstm.$ac_objext
|
cannam@154
|
4119 lt_globsym_save_LIBS=$LIBS
|
cannam@154
|
4120 lt_globsym_save_CFLAGS=$CFLAGS
|
cannam@154
|
4121 LIBS=conftstm.$ac_objext
|
cannam@154
|
4122 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
|
cannam@154
|
4123 if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
|
cannam@154
|
4124 pipe_works=yes
|
cannam@154
|
4125 fi
|
cannam@154
|
4126 LIBS=$lt_globsym_save_LIBS
|
cannam@154
|
4127 CFLAGS=$lt_globsym_save_CFLAGS
|
cannam@154
|
4128 else
|
cannam@154
|
4129 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
|
cannam@154
|
4130 fi
|
cannam@154
|
4131 else
|
cannam@154
|
4132 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
|
cannam@154
|
4133 fi
|
cannam@154
|
4134 else
|
cannam@154
|
4135 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
|
cannam@154
|
4136 fi
|
cannam@154
|
4137 else
|
cannam@154
|
4138 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
|
cannam@154
|
4139 cat conftest.$ac_ext >&5
|
cannam@154
|
4140 fi
|
cannam@154
|
4141 rm -rf conftest* conftst*
|
cannam@154
|
4142
|
cannam@154
|
4143 # Do not use the global_symbol_pipe unless it works.
|
cannam@154
|
4144 if test yes = "$pipe_works"; then
|
cannam@154
|
4145 break
|
cannam@154
|
4146 else
|
cannam@154
|
4147 lt_cv_sys_global_symbol_pipe=
|
cannam@154
|
4148 fi
|
cannam@154
|
4149 done
|
cannam@154
|
4150 ])
|
cannam@154
|
4151 if test -z "$lt_cv_sys_global_symbol_pipe"; then
|
cannam@154
|
4152 lt_cv_sys_global_symbol_to_cdecl=
|
cannam@154
|
4153 fi
|
cannam@154
|
4154 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
|
cannam@154
|
4155 AC_MSG_RESULT(failed)
|
cannam@154
|
4156 else
|
cannam@154
|
4157 AC_MSG_RESULT(ok)
|
cannam@154
|
4158 fi
|
cannam@154
|
4159
|
cannam@154
|
4160 # Response file support.
|
cannam@154
|
4161 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
cannam@154
|
4162 nm_file_list_spec='@'
|
cannam@154
|
4163 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
|
cannam@154
|
4164 nm_file_list_spec='@'
|
cannam@154
|
4165 fi
|
cannam@154
|
4166
|
cannam@154
|
4167 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
|
cannam@154
|
4168 [Take the output of nm and produce a listing of raw symbols and C names])
|
cannam@154
|
4169 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
|
cannam@154
|
4170 [Transform the output of nm in a proper C declaration])
|
cannam@154
|
4171 _LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1],
|
cannam@154
|
4172 [Transform the output of nm into a list of symbols to manually relocate])
|
cannam@154
|
4173 _LT_DECL([global_symbol_to_c_name_address],
|
cannam@154
|
4174 [lt_cv_sys_global_symbol_to_c_name_address], [1],
|
cannam@154
|
4175 [Transform the output of nm in a C name address pair])
|
cannam@154
|
4176 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
|
cannam@154
|
4177 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
|
cannam@154
|
4178 [Transform the output of nm in a C name address pair when lib prefix is needed])
|
cannam@154
|
4179 _LT_DECL([nm_interface], [lt_cv_nm_interface], [1],
|
cannam@154
|
4180 [The name lister interface])
|
cannam@154
|
4181 _LT_DECL([], [nm_file_list_spec], [1],
|
cannam@154
|
4182 [Specify filename containing input files for $NM])
|
cannam@154
|
4183 ]) # _LT_CMD_GLOBAL_SYMBOLS
|
cannam@154
|
4184
|
cannam@154
|
4185
|
cannam@154
|
4186 # _LT_COMPILER_PIC([TAGNAME])
|
cannam@154
|
4187 # ---------------------------
|
cannam@154
|
4188 m4_defun([_LT_COMPILER_PIC],
|
cannam@154
|
4189 [m4_require([_LT_TAG_COMPILER])dnl
|
cannam@154
|
4190 _LT_TAGVAR(lt_prog_compiler_wl, $1)=
|
cannam@154
|
4191 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
|
cannam@154
|
4192 _LT_TAGVAR(lt_prog_compiler_static, $1)=
|
cannam@154
|
4193
|
cannam@154
|
4194 m4_if([$1], [CXX], [
|
cannam@154
|
4195 # C++ specific cases for pic, static, wl, etc.
|
cannam@154
|
4196 if test yes = "$GXX"; then
|
cannam@154
|
4197 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
cannam@154
|
4198 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
cannam@154
|
4199
|
cannam@154
|
4200 case $host_os in
|
cannam@154
|
4201 aix*)
|
cannam@154
|
4202 # All AIX code is PIC.
|
cannam@154
|
4203 if test ia64 = "$host_cpu"; then
|
cannam@154
|
4204 # AIX 5 now supports IA64 processor
|
cannam@154
|
4205 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
cannam@154
|
4206 fi
|
cannam@154
|
4207 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
cannam@154
|
4208 ;;
|
cannam@154
|
4209
|
cannam@154
|
4210 amigaos*)
|
cannam@154
|
4211 case $host_cpu in
|
cannam@154
|
4212 powerpc)
|
cannam@154
|
4213 # see comment about AmigaOS4 .so support
|
cannam@154
|
4214 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
cannam@154
|
4215 ;;
|
cannam@154
|
4216 m68k)
|
cannam@154
|
4217 # FIXME: we need at least 68020 code to build shared libraries, but
|
cannam@154
|
4218 # adding the '-m68020' flag to GCC prevents building anything better,
|
cannam@154
|
4219 # like '-m68040'.
|
cannam@154
|
4220 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
|
cannam@154
|
4221 ;;
|
cannam@154
|
4222 esac
|
cannam@154
|
4223 ;;
|
cannam@154
|
4224
|
cannam@154
|
4225 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
cannam@154
|
4226 # PIC is the default for these OSes.
|
cannam@154
|
4227 ;;
|
cannam@154
|
4228 mingw* | cygwin* | os2* | pw32* | cegcc*)
|
cannam@154
|
4229 # This hack is so that the source file can tell whether it is being
|
cannam@154
|
4230 # built for inclusion in a dll (and should export symbols for example).
|
cannam@154
|
4231 # Although the cygwin gcc ignores -fPIC, still need this for old-style
|
cannam@154
|
4232 # (--disable-auto-import) libraries
|
cannam@154
|
4233 m4_if([$1], [GCJ], [],
|
cannam@154
|
4234 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
|
cannam@154
|
4235 case $host_os in
|
cannam@154
|
4236 os2*)
|
cannam@154
|
4237 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
|
cannam@154
|
4238 ;;
|
cannam@154
|
4239 esac
|
cannam@154
|
4240 ;;
|
cannam@154
|
4241 darwin* | rhapsody*)
|
cannam@154
|
4242 # PIC is the default on this platform
|
cannam@154
|
4243 # Common symbols not allowed in MH_DYLIB files
|
cannam@154
|
4244 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
|
cannam@154
|
4245 ;;
|
cannam@154
|
4246 *djgpp*)
|
cannam@154
|
4247 # DJGPP does not support shared libraries at all
|
cannam@154
|
4248 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
|
cannam@154
|
4249 ;;
|
cannam@154
|
4250 haiku*)
|
cannam@154
|
4251 # PIC is the default for Haiku.
|
cannam@154
|
4252 # The "-static" flag exists, but is broken.
|
cannam@154
|
4253 _LT_TAGVAR(lt_prog_compiler_static, $1)=
|
cannam@154
|
4254 ;;
|
cannam@154
|
4255 interix[[3-9]]*)
|
cannam@154
|
4256 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
cannam@154
|
4257 # Instead, we relocate shared libraries at runtime.
|
cannam@154
|
4258 ;;
|
cannam@154
|
4259 sysv4*MP*)
|
cannam@154
|
4260 if test -d /usr/nec; then
|
cannam@154
|
4261 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
|
cannam@154
|
4262 fi
|
cannam@154
|
4263 ;;
|
cannam@154
|
4264 hpux*)
|
cannam@154
|
4265 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
|
cannam@154
|
4266 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
|
cannam@154
|
4267 # sets the default TLS model and affects inlining.
|
cannam@154
|
4268 case $host_cpu in
|
cannam@154
|
4269 hppa*64*)
|
cannam@154
|
4270 ;;
|
cannam@154
|
4271 *)
|
cannam@154
|
4272 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
cannam@154
|
4273 ;;
|
cannam@154
|
4274 esac
|
cannam@154
|
4275 ;;
|
cannam@154
|
4276 *qnx* | *nto*)
|
cannam@154
|
4277 # QNX uses GNU C++, but need to define -shared option too, otherwise
|
cannam@154
|
4278 # it will coredump.
|
cannam@154
|
4279 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
|
cannam@154
|
4280 ;;
|
cannam@154
|
4281 *)
|
cannam@154
|
4282 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
cannam@154
|
4283 ;;
|
cannam@154
|
4284 esac
|
cannam@154
|
4285 else
|
cannam@154
|
4286 case $host_os in
|
cannam@154
|
4287 aix[[4-9]]*)
|
cannam@154
|
4288 # All AIX code is PIC.
|
cannam@154
|
4289 if test ia64 = "$host_cpu"; then
|
cannam@154
|
4290 # AIX 5 now supports IA64 processor
|
cannam@154
|
4291 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
cannam@154
|
4292 else
|
cannam@154
|
4293 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
|
cannam@154
|
4294 fi
|
cannam@154
|
4295 ;;
|
cannam@154
|
4296 chorus*)
|
cannam@154
|
4297 case $cc_basename in
|
cannam@154
|
4298 cxch68*)
|
cannam@154
|
4299 # Green Hills C++ Compiler
|
cannam@154
|
4300 # _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"
|
cannam@154
|
4301 ;;
|
cannam@154
|
4302 esac
|
cannam@154
|
4303 ;;
|
cannam@154
|
4304 mingw* | cygwin* | os2* | pw32* | cegcc*)
|
cannam@154
|
4305 # This hack is so that the source file can tell whether it is being
|
cannam@154
|
4306 # built for inclusion in a dll (and should export symbols for example).
|
cannam@154
|
4307 m4_if([$1], [GCJ], [],
|
cannam@154
|
4308 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
|
cannam@154
|
4309 ;;
|
cannam@154
|
4310 dgux*)
|
cannam@154
|
4311 case $cc_basename in
|
cannam@154
|
4312 ec++*)
|
cannam@154
|
4313 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
cannam@154
|
4314 ;;
|
cannam@154
|
4315 ghcx*)
|
cannam@154
|
4316 # Green Hills C++ Compiler
|
cannam@154
|
4317 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
|
cannam@154
|
4318 ;;
|
cannam@154
|
4319 *)
|
cannam@154
|
4320 ;;
|
cannam@154
|
4321 esac
|
cannam@154
|
4322 ;;
|
cannam@154
|
4323 freebsd* | dragonfly*)
|
cannam@154
|
4324 # FreeBSD uses GNU C++
|
cannam@154
|
4325 ;;
|
cannam@154
|
4326 hpux9* | hpux10* | hpux11*)
|
cannam@154
|
4327 case $cc_basename in
|
cannam@154
|
4328 CC*)
|
cannam@154
|
4329 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
cannam@154
|
4330 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
|
cannam@154
|
4331 if test ia64 != "$host_cpu"; then
|
cannam@154
|
4332 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
|
cannam@154
|
4333 fi
|
cannam@154
|
4334 ;;
|
cannam@154
|
4335 aCC*)
|
cannam@154
|
4336 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
cannam@154
|
4337 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
|
cannam@154
|
4338 case $host_cpu in
|
cannam@154
|
4339 hppa*64*|ia64*)
|
cannam@154
|
4340 # +Z the default
|
cannam@154
|
4341 ;;
|
cannam@154
|
4342 *)
|
cannam@154
|
4343 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
|
cannam@154
|
4344 ;;
|
cannam@154
|
4345 esac
|
cannam@154
|
4346 ;;
|
cannam@154
|
4347 *)
|
cannam@154
|
4348 ;;
|
cannam@154
|
4349 esac
|
cannam@154
|
4350 ;;
|
cannam@154
|
4351 interix*)
|
cannam@154
|
4352 # This is c89, which is MS Visual C++ (no shared libs)
|
cannam@154
|
4353 # Anyone wants to do a port?
|
cannam@154
|
4354 ;;
|
cannam@154
|
4355 irix5* | irix6* | nonstopux*)
|
cannam@154
|
4356 case $cc_basename in
|
cannam@154
|
4357 CC*)
|
cannam@154
|
4358 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
cannam@154
|
4359 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
cannam@154
|
4360 # CC pic flag -KPIC is the default.
|
cannam@154
|
4361 ;;
|
cannam@154
|
4362 *)
|
cannam@154
|
4363 ;;
|
cannam@154
|
4364 esac
|
cannam@154
|
4365 ;;
|
cannam@154
|
4366 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
|
cannam@154
|
4367 case $cc_basename in
|
cannam@154
|
4368 KCC*)
|
cannam@154
|
4369 # KAI C++ Compiler
|
cannam@154
|
4370 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
|
cannam@154
|
4371 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
cannam@154
|
4372 ;;
|
cannam@154
|
4373 ecpc* )
|
cannam@154
|
4374 # old Intel C++ for x86_64, which still supported -KPIC.
|
cannam@154
|
4375 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
cannam@154
|
4376 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
cannam@154
|
4377 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
cannam@154
|
4378 ;;
|
cannam@154
|
4379 icpc* )
|
cannam@154
|
4380 # Intel C++, used to be incompatible with GCC.
|
cannam@154
|
4381 # ICC 10 doesn't accept -KPIC any more.
|
cannam@154
|
4382 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
cannam@154
|
4383 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
cannam@154
|
4384 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
cannam@154
|
4385 ;;
|
cannam@154
|
4386 pgCC* | pgcpp*)
|
cannam@154
|
4387 # Portland Group C++ compiler
|
cannam@154
|
4388 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
cannam@154
|
4389 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
|
cannam@154
|
4390 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
cannam@154
|
4391 ;;
|
cannam@154
|
4392 cxx*)
|
cannam@154
|
4393 # Compaq C++
|
cannam@154
|
4394 # Make sure the PIC flag is empty. It appears that all Alpha
|
cannam@154
|
4395 # Linux and Compaq Tru64 Unix objects are PIC.
|
cannam@154
|
4396 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
|
cannam@154
|
4397 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
cannam@154
|
4398 ;;
|
cannam@154
|
4399 xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
|
cannam@154
|
4400 # IBM XL 8.0, 9.0 on PPC and BlueGene
|
cannam@154
|
4401 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
cannam@154
|
4402 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
|
cannam@154
|
4403 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
|
cannam@154
|
4404 ;;
|
cannam@154
|
4405 *)
|
cannam@154
|
4406 case `$CC -V 2>&1 | sed 5q` in
|
cannam@154
|
4407 *Sun\ C*)
|
cannam@154
|
4408 # Sun C++ 5.9
|
cannam@154
|
4409 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
cannam@154
|
4410 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
cannam@154
|
4411 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
|
cannam@154
|
4412 ;;
|
cannam@154
|
4413 esac
|
cannam@154
|
4414 ;;
|
cannam@154
|
4415 esac
|
cannam@154
|
4416 ;;
|
cannam@154
|
4417 lynxos*)
|
cannam@154
|
4418 ;;
|
cannam@154
|
4419 m88k*)
|
cannam@154
|
4420 ;;
|
cannam@154
|
4421 mvs*)
|
cannam@154
|
4422 case $cc_basename in
|
cannam@154
|
4423 cxx*)
|
cannam@154
|
4424 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
|
cannam@154
|
4425 ;;
|
cannam@154
|
4426 *)
|
cannam@154
|
4427 ;;
|
cannam@154
|
4428 esac
|
cannam@154
|
4429 ;;
|
cannam@154
|
4430 netbsd*)
|
cannam@154
|
4431 ;;
|
cannam@154
|
4432 *qnx* | *nto*)
|
cannam@154
|
4433 # QNX uses GNU C++, but need to define -shared option too, otherwise
|
cannam@154
|
4434 # it will coredump.
|
cannam@154
|
4435 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
|
cannam@154
|
4436 ;;
|
cannam@154
|
4437 osf3* | osf4* | osf5*)
|
cannam@154
|
4438 case $cc_basename in
|
cannam@154
|
4439 KCC*)
|
cannam@154
|
4440 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
|
cannam@154
|
4441 ;;
|
cannam@154
|
4442 RCC*)
|
cannam@154
|
4443 # Rational C++ 2.4.1
|
cannam@154
|
4444 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
|
cannam@154
|
4445 ;;
|
cannam@154
|
4446 cxx*)
|
cannam@154
|
4447 # Digital/Compaq C++
|
cannam@154
|
4448 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
cannam@154
|
4449 # Make sure the PIC flag is empty. It appears that all Alpha
|
cannam@154
|
4450 # Linux and Compaq Tru64 Unix objects are PIC.
|
cannam@154
|
4451 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
|
cannam@154
|
4452 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
cannam@154
|
4453 ;;
|
cannam@154
|
4454 *)
|
cannam@154
|
4455 ;;
|
cannam@154
|
4456 esac
|
cannam@154
|
4457 ;;
|
cannam@154
|
4458 psos*)
|
cannam@154
|
4459 ;;
|
cannam@154
|
4460 solaris*)
|
cannam@154
|
4461 case $cc_basename in
|
cannam@154
|
4462 CC* | sunCC*)
|
cannam@154
|
4463 # Sun C++ 4.2, 5.x and Centerline C++
|
cannam@154
|
4464 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
cannam@154
|
4465 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
cannam@154
|
4466 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
|
cannam@154
|
4467 ;;
|
cannam@154
|
4468 gcx*)
|
cannam@154
|
4469 # Green Hills C++ Compiler
|
cannam@154
|
4470 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
|
cannam@154
|
4471 ;;
|
cannam@154
|
4472 *)
|
cannam@154
|
4473 ;;
|
cannam@154
|
4474 esac
|
cannam@154
|
4475 ;;
|
cannam@154
|
4476 sunos4*)
|
cannam@154
|
4477 case $cc_basename in
|
cannam@154
|
4478 CC*)
|
cannam@154
|
4479 # Sun C++ 4.x
|
cannam@154
|
4480 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
|
cannam@154
|
4481 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
cannam@154
|
4482 ;;
|
cannam@154
|
4483 lcc*)
|
cannam@154
|
4484 # Lucid
|
cannam@154
|
4485 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
|
cannam@154
|
4486 ;;
|
cannam@154
|
4487 *)
|
cannam@154
|
4488 ;;
|
cannam@154
|
4489 esac
|
cannam@154
|
4490 ;;
|
cannam@154
|
4491 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
|
cannam@154
|
4492 case $cc_basename in
|
cannam@154
|
4493 CC*)
|
cannam@154
|
4494 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
cannam@154
|
4495 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
cannam@154
|
4496 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
cannam@154
|
4497 ;;
|
cannam@154
|
4498 esac
|
cannam@154
|
4499 ;;
|
cannam@154
|
4500 tandem*)
|
cannam@154
|
4501 case $cc_basename in
|
cannam@154
|
4502 NCC*)
|
cannam@154
|
4503 # NonStop-UX NCC 3.20
|
cannam@154
|
4504 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
cannam@154
|
4505 ;;
|
cannam@154
|
4506 *)
|
cannam@154
|
4507 ;;
|
cannam@154
|
4508 esac
|
cannam@154
|
4509 ;;
|
cannam@154
|
4510 vxworks*)
|
cannam@154
|
4511 ;;
|
cannam@154
|
4512 *)
|
cannam@154
|
4513 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
|
cannam@154
|
4514 ;;
|
cannam@154
|
4515 esac
|
cannam@154
|
4516 fi
|
cannam@154
|
4517 ],
|
cannam@154
|
4518 [
|
cannam@154
|
4519 if test yes = "$GCC"; then
|
cannam@154
|
4520 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
cannam@154
|
4521 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
cannam@154
|
4522
|
cannam@154
|
4523 case $host_os in
|
cannam@154
|
4524 aix*)
|
cannam@154
|
4525 # All AIX code is PIC.
|
cannam@154
|
4526 if test ia64 = "$host_cpu"; then
|
cannam@154
|
4527 # AIX 5 now supports IA64 processor
|
cannam@154
|
4528 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
cannam@154
|
4529 fi
|
cannam@154
|
4530 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
cannam@154
|
4531 ;;
|
cannam@154
|
4532
|
cannam@154
|
4533 amigaos*)
|
cannam@154
|
4534 case $host_cpu in
|
cannam@154
|
4535 powerpc)
|
cannam@154
|
4536 # see comment about AmigaOS4 .so support
|
cannam@154
|
4537 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
cannam@154
|
4538 ;;
|
cannam@154
|
4539 m68k)
|
cannam@154
|
4540 # FIXME: we need at least 68020 code to build shared libraries, but
|
cannam@154
|
4541 # adding the '-m68020' flag to GCC prevents building anything better,
|
cannam@154
|
4542 # like '-m68040'.
|
cannam@154
|
4543 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
|
cannam@154
|
4544 ;;
|
cannam@154
|
4545 esac
|
cannam@154
|
4546 ;;
|
cannam@154
|
4547
|
cannam@154
|
4548 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
cannam@154
|
4549 # PIC is the default for these OSes.
|
cannam@154
|
4550 ;;
|
cannam@154
|
4551
|
cannam@154
|
4552 mingw* | cygwin* | pw32* | os2* | cegcc*)
|
cannam@154
|
4553 # This hack is so that the source file can tell whether it is being
|
cannam@154
|
4554 # built for inclusion in a dll (and should export symbols for example).
|
cannam@154
|
4555 # Although the cygwin gcc ignores -fPIC, still need this for old-style
|
cannam@154
|
4556 # (--disable-auto-import) libraries
|
cannam@154
|
4557 m4_if([$1], [GCJ], [],
|
cannam@154
|
4558 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
|
cannam@154
|
4559 case $host_os in
|
cannam@154
|
4560 os2*)
|
cannam@154
|
4561 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
|
cannam@154
|
4562 ;;
|
cannam@154
|
4563 esac
|
cannam@154
|
4564 ;;
|
cannam@154
|
4565
|
cannam@154
|
4566 darwin* | rhapsody*)
|
cannam@154
|
4567 # PIC is the default on this platform
|
cannam@154
|
4568 # Common symbols not allowed in MH_DYLIB files
|
cannam@154
|
4569 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
|
cannam@154
|
4570 ;;
|
cannam@154
|
4571
|
cannam@154
|
4572 haiku*)
|
cannam@154
|
4573 # PIC is the default for Haiku.
|
cannam@154
|
4574 # The "-static" flag exists, but is broken.
|
cannam@154
|
4575 _LT_TAGVAR(lt_prog_compiler_static, $1)=
|
cannam@154
|
4576 ;;
|
cannam@154
|
4577
|
cannam@154
|
4578 hpux*)
|
cannam@154
|
4579 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
|
cannam@154
|
4580 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
|
cannam@154
|
4581 # sets the default TLS model and affects inlining.
|
cannam@154
|
4582 case $host_cpu in
|
cannam@154
|
4583 hppa*64*)
|
cannam@154
|
4584 # +Z the default
|
cannam@154
|
4585 ;;
|
cannam@154
|
4586 *)
|
cannam@154
|
4587 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
cannam@154
|
4588 ;;
|
cannam@154
|
4589 esac
|
cannam@154
|
4590 ;;
|
cannam@154
|
4591
|
cannam@154
|
4592 interix[[3-9]]*)
|
cannam@154
|
4593 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
cannam@154
|
4594 # Instead, we relocate shared libraries at runtime.
|
cannam@154
|
4595 ;;
|
cannam@154
|
4596
|
cannam@154
|
4597 msdosdjgpp*)
|
cannam@154
|
4598 # Just because we use GCC doesn't mean we suddenly get shared libraries
|
cannam@154
|
4599 # on systems that don't support them.
|
cannam@154
|
4600 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
|
cannam@154
|
4601 enable_shared=no
|
cannam@154
|
4602 ;;
|
cannam@154
|
4603
|
cannam@154
|
4604 *nto* | *qnx*)
|
cannam@154
|
4605 # QNX uses GNU C++, but need to define -shared option too, otherwise
|
cannam@154
|
4606 # it will coredump.
|
cannam@154
|
4607 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
|
cannam@154
|
4608 ;;
|
cannam@154
|
4609
|
cannam@154
|
4610 sysv4*MP*)
|
cannam@154
|
4611 if test -d /usr/nec; then
|
cannam@154
|
4612 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
|
cannam@154
|
4613 fi
|
cannam@154
|
4614 ;;
|
cannam@154
|
4615
|
cannam@154
|
4616 *)
|
cannam@154
|
4617 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
cannam@154
|
4618 ;;
|
cannam@154
|
4619 esac
|
cannam@154
|
4620
|
cannam@154
|
4621 case $cc_basename in
|
cannam@154
|
4622 nvcc*) # Cuda Compiler Driver 2.2
|
cannam@154
|
4623 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
|
cannam@154
|
4624 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
|
cannam@154
|
4625 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
|
cannam@154
|
4626 fi
|
cannam@154
|
4627 ;;
|
cannam@154
|
4628 esac
|
cannam@154
|
4629 else
|
cannam@154
|
4630 # PORTME Check for flag to pass linker flags through the system compiler.
|
cannam@154
|
4631 case $host_os in
|
cannam@154
|
4632 aix*)
|
cannam@154
|
4633 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
cannam@154
|
4634 if test ia64 = "$host_cpu"; then
|
cannam@154
|
4635 # AIX 5 now supports IA64 processor
|
cannam@154
|
4636 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
cannam@154
|
4637 else
|
cannam@154
|
4638 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
|
cannam@154
|
4639 fi
|
cannam@154
|
4640 ;;
|
cannam@154
|
4641
|
cannam@154
|
4642 darwin* | rhapsody*)
|
cannam@154
|
4643 # PIC is the default on this platform
|
cannam@154
|
4644 # Common symbols not allowed in MH_DYLIB files
|
cannam@154
|
4645 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
|
cannam@154
|
4646 case $cc_basename in
|
cannam@154
|
4647 nagfor*)
|
cannam@154
|
4648 # NAG Fortran compiler
|
cannam@154
|
4649 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
|
cannam@154
|
4650 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
|
cannam@154
|
4651 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
cannam@154
|
4652 ;;
|
cannam@154
|
4653 esac
|
cannam@154
|
4654 ;;
|
cannam@154
|
4655
|
cannam@154
|
4656 mingw* | cygwin* | pw32* | os2* | cegcc*)
|
cannam@154
|
4657 # This hack is so that the source file can tell whether it is being
|
cannam@154
|
4658 # built for inclusion in a dll (and should export symbols for example).
|
cannam@154
|
4659 m4_if([$1], [GCJ], [],
|
cannam@154
|
4660 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
|
cannam@154
|
4661 case $host_os in
|
cannam@154
|
4662 os2*)
|
cannam@154
|
4663 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
|
cannam@154
|
4664 ;;
|
cannam@154
|
4665 esac
|
cannam@154
|
4666 ;;
|
cannam@154
|
4667
|
cannam@154
|
4668 hpux9* | hpux10* | hpux11*)
|
cannam@154
|
4669 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
cannam@154
|
4670 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
cannam@154
|
4671 # not for PA HP-UX.
|
cannam@154
|
4672 case $host_cpu in
|
cannam@154
|
4673 hppa*64*|ia64*)
|
cannam@154
|
4674 # +Z the default
|
cannam@154
|
4675 ;;
|
cannam@154
|
4676 *)
|
cannam@154
|
4677 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
|
cannam@154
|
4678 ;;
|
cannam@154
|
4679 esac
|
cannam@154
|
4680 # Is there a better lt_prog_compiler_static that works with the bundled CC?
|
cannam@154
|
4681 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
|
cannam@154
|
4682 ;;
|
cannam@154
|
4683
|
cannam@154
|
4684 irix5* | irix6* | nonstopux*)
|
cannam@154
|
4685 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
cannam@154
|
4686 # PIC (with -KPIC) is the default.
|
cannam@154
|
4687 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
cannam@154
|
4688 ;;
|
cannam@154
|
4689
|
cannam@154
|
4690 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
|
cannam@154
|
4691 case $cc_basename in
|
cannam@154
|
4692 # old Intel for x86_64, which still supported -KPIC.
|
cannam@154
|
4693 ecc*)
|
cannam@154
|
4694 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
cannam@154
|
4695 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
cannam@154
|
4696 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
cannam@154
|
4697 ;;
|
cannam@154
|
4698 # icc used to be incompatible with GCC.
|
cannam@154
|
4699 # ICC 10 doesn't accept -KPIC any more.
|
cannam@154
|
4700 icc* | ifort*)
|
cannam@154
|
4701 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
cannam@154
|
4702 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
cannam@154
|
4703 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
cannam@154
|
4704 ;;
|
cannam@154
|
4705 # Lahey Fortran 8.1.
|
cannam@154
|
4706 lf95*)
|
cannam@154
|
4707 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
cannam@154
|
4708 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
|
cannam@154
|
4709 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
|
cannam@154
|
4710 ;;
|
cannam@154
|
4711 nagfor*)
|
cannam@154
|
4712 # NAG Fortran compiler
|
cannam@154
|
4713 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
|
cannam@154
|
4714 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
|
cannam@154
|
4715 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
cannam@154
|
4716 ;;
|
cannam@154
|
4717 tcc*)
|
cannam@154
|
4718 # Fabrice Bellard et al's Tiny C Compiler
|
cannam@154
|
4719 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
cannam@154
|
4720 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
cannam@154
|
4721 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
cannam@154
|
4722 ;;
|
cannam@154
|
4723 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
|
cannam@154
|
4724 # Portland Group compilers (*not* the Pentium gcc compiler,
|
cannam@154
|
4725 # which looks to be a dead project)
|
cannam@154
|
4726 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
cannam@154
|
4727 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
|
cannam@154
|
4728 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
cannam@154
|
4729 ;;
|
cannam@154
|
4730 ccc*)
|
cannam@154
|
4731 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
cannam@154
|
4732 # All Alpha code is PIC.
|
cannam@154
|
4733 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
cannam@154
|
4734 ;;
|
cannam@154
|
4735 xl* | bgxl* | bgf* | mpixl*)
|
cannam@154
|
4736 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
|
cannam@154
|
4737 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
cannam@154
|
4738 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
|
cannam@154
|
4739 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
|
cannam@154
|
4740 ;;
|
cannam@154
|
4741 *)
|
cannam@154
|
4742 case `$CC -V 2>&1 | sed 5q` in
|
cannam@154
|
4743 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
|
cannam@154
|
4744 # Sun Fortran 8.3 passes all unrecognized flags to the linker
|
cannam@154
|
4745 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
cannam@154
|
4746 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
cannam@154
|
4747 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
|
cannam@154
|
4748 ;;
|
cannam@154
|
4749 *Sun\ F* | *Sun*Fortran*)
|
cannam@154
|
4750 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
cannam@154
|
4751 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
cannam@154
|
4752 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
|
cannam@154
|
4753 ;;
|
cannam@154
|
4754 *Sun\ C*)
|
cannam@154
|
4755 # Sun C 5.9
|
cannam@154
|
4756 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
cannam@154
|
4757 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
cannam@154
|
4758 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
cannam@154
|
4759 ;;
|
cannam@154
|
4760 *Intel*\ [[CF]]*Compiler*)
|
cannam@154
|
4761 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
cannam@154
|
4762 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
cannam@154
|
4763 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
cannam@154
|
4764 ;;
|
cannam@154
|
4765 *Portland\ Group*)
|
cannam@154
|
4766 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
cannam@154
|
4767 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
|
cannam@154
|
4768 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
cannam@154
|
4769 ;;
|
cannam@154
|
4770 esac
|
cannam@154
|
4771 ;;
|
cannam@154
|
4772 esac
|
cannam@154
|
4773 ;;
|
cannam@154
|
4774
|
cannam@154
|
4775 newsos6)
|
cannam@154
|
4776 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
cannam@154
|
4777 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
cannam@154
|
4778 ;;
|
cannam@154
|
4779
|
cannam@154
|
4780 *nto* | *qnx*)
|
cannam@154
|
4781 # QNX uses GNU C++, but need to define -shared option too, otherwise
|
cannam@154
|
4782 # it will coredump.
|
cannam@154
|
4783 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
|
cannam@154
|
4784 ;;
|
cannam@154
|
4785
|
cannam@154
|
4786 osf3* | osf4* | osf5*)
|
cannam@154
|
4787 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
cannam@154
|
4788 # All OSF/1 code is PIC.
|
cannam@154
|
4789 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
cannam@154
|
4790 ;;
|
cannam@154
|
4791
|
cannam@154
|
4792 rdos*)
|
cannam@154
|
4793 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
cannam@154
|
4794 ;;
|
cannam@154
|
4795
|
cannam@154
|
4796 solaris*)
|
cannam@154
|
4797 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
cannam@154
|
4798 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
cannam@154
|
4799 case $cc_basename in
|
cannam@154
|
4800 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
|
cannam@154
|
4801 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
|
cannam@154
|
4802 *)
|
cannam@154
|
4803 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
|
cannam@154
|
4804 esac
|
cannam@154
|
4805 ;;
|
cannam@154
|
4806
|
cannam@154
|
4807 sunos4*)
|
cannam@154
|
4808 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
|
cannam@154
|
4809 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
|
cannam@154
|
4810 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
cannam@154
|
4811 ;;
|
cannam@154
|
4812
|
cannam@154
|
4813 sysv4 | sysv4.2uw2* | sysv4.3*)
|
cannam@154
|
4814 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
cannam@154
|
4815 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
cannam@154
|
4816 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
cannam@154
|
4817 ;;
|
cannam@154
|
4818
|
cannam@154
|
4819 sysv4*MP*)
|
cannam@154
|
4820 if test -d /usr/nec; then
|
cannam@154
|
4821 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
|
cannam@154
|
4822 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
cannam@154
|
4823 fi
|
cannam@154
|
4824 ;;
|
cannam@154
|
4825
|
cannam@154
|
4826 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
|
cannam@154
|
4827 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
cannam@154
|
4828 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
cannam@154
|
4829 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
cannam@154
|
4830 ;;
|
cannam@154
|
4831
|
cannam@154
|
4832 unicos*)
|
cannam@154
|
4833 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
cannam@154
|
4834 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
|
cannam@154
|
4835 ;;
|
cannam@154
|
4836
|
cannam@154
|
4837 uts4*)
|
cannam@154
|
4838 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
|
cannam@154
|
4839 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
cannam@154
|
4840 ;;
|
cannam@154
|
4841
|
cannam@154
|
4842 *)
|
cannam@154
|
4843 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
|
cannam@154
|
4844 ;;
|
cannam@154
|
4845 esac
|
cannam@154
|
4846 fi
|
cannam@154
|
4847 ])
|
cannam@154
|
4848 case $host_os in
|
cannam@154
|
4849 # For platforms that do not support PIC, -DPIC is meaningless:
|
cannam@154
|
4850 *djgpp*)
|
cannam@154
|
4851 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
|
cannam@154
|
4852 ;;
|
cannam@154
|
4853 *)
|
cannam@154
|
4854 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
|
cannam@154
|
4855 ;;
|
cannam@154
|
4856 esac
|
cannam@154
|
4857
|
cannam@154
|
4858 AC_CACHE_CHECK([for $compiler option to produce PIC],
|
cannam@154
|
4859 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
|
cannam@154
|
4860 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
|
cannam@154
|
4861 _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
|
cannam@154
|
4862
|
cannam@154
|
4863 #
|
cannam@154
|
4864 # Check to make sure the PIC flag actually works.
|
cannam@154
|
4865 #
|
cannam@154
|
4866 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
|
cannam@154
|
4867 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
|
cannam@154
|
4868 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
|
cannam@154
|
4869 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
|
cannam@154
|
4870 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
|
cannam@154
|
4871 "" | " "*) ;;
|
cannam@154
|
4872 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
|
cannam@154
|
4873 esac],
|
cannam@154
|
4874 [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
|
cannam@154
|
4875 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
|
cannam@154
|
4876 fi
|
cannam@154
|
4877 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
|
cannam@154
|
4878 [Additional compiler flags for building library objects])
|
cannam@154
|
4879
|
cannam@154
|
4880 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
|
cannam@154
|
4881 [How to pass a linker flag through the compiler])
|
cannam@154
|
4882 #
|
cannam@154
|
4883 # Check to make sure the static flag actually works.
|
cannam@154
|
4884 #
|
cannam@154
|
4885 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
|
cannam@154
|
4886 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
|
cannam@154
|
4887 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
|
cannam@154
|
4888 $lt_tmp_static_flag,
|
cannam@154
|
4889 [],
|
cannam@154
|
4890 [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
|
cannam@154
|
4891 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
|
cannam@154
|
4892 [Compiler flag to prevent dynamic linking])
|
cannam@154
|
4893 ])# _LT_COMPILER_PIC
|
cannam@154
|
4894
|
cannam@154
|
4895
|
cannam@154
|
4896 # _LT_LINKER_SHLIBS([TAGNAME])
|
cannam@154
|
4897 # ----------------------------
|
cannam@154
|
4898 # See if the linker supports building shared libraries.
|
cannam@154
|
4899 m4_defun([_LT_LINKER_SHLIBS],
|
cannam@154
|
4900 [AC_REQUIRE([LT_PATH_LD])dnl
|
cannam@154
|
4901 AC_REQUIRE([LT_PATH_NM])dnl
|
cannam@154
|
4902 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
|
cannam@154
|
4903 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
cannam@154
|
4904 m4_require([_LT_DECL_EGREP])dnl
|
cannam@154
|
4905 m4_require([_LT_DECL_SED])dnl
|
cannam@154
|
4906 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
|
cannam@154
|
4907 m4_require([_LT_TAG_COMPILER])dnl
|
cannam@154
|
4908 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
|
cannam@154
|
4909 m4_if([$1], [CXX], [
|
cannam@154
|
4910 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
cannam@154
|
4911 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
|
cannam@154
|
4912 case $host_os in
|
cannam@154
|
4913 aix[[4-9]]*)
|
cannam@154
|
4914 # If we're using GNU nm, then we don't want the "-C" option.
|
cannam@154
|
4915 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
|
cannam@154
|
4916 # Without the "-l" option, or with the "-B" option, AIX nm treats
|
cannam@154
|
4917 # weak defined symbols like other global defined symbols, whereas
|
cannam@154
|
4918 # GNU nm marks them as "W".
|
cannam@154
|
4919 # While the 'weak' keyword is ignored in the Export File, we need
|
cannam@154
|
4920 # it in the Import File for the 'aix-soname' feature, so we have
|
cannam@154
|
4921 # to replace the "-B" option with "-P" for AIX nm.
|
cannam@154
|
4922 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
|
cannam@154
|
4923 _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'
|
cannam@154
|
4924 else
|
cannam@154
|
4925 _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'
|
cannam@154
|
4926 fi
|
cannam@154
|
4927 ;;
|
cannam@154
|
4928 pw32*)
|
cannam@154
|
4929 _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds
|
cannam@154
|
4930 ;;
|
cannam@154
|
4931 cygwin* | mingw* | cegcc*)
|
cannam@154
|
4932 case $cc_basename in
|
cannam@154
|
4933 cl*)
|
cannam@154
|
4934 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
|
cannam@154
|
4935 ;;
|
cannam@154
|
4936 *)
|
cannam@154
|
4937 _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'
|
cannam@154
|
4938 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
|
cannam@154
|
4939 ;;
|
cannam@154
|
4940 esac
|
cannam@154
|
4941 ;;
|
cannam@154
|
4942 *)
|
cannam@154
|
4943 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
cannam@154
|
4944 ;;
|
cannam@154
|
4945 esac
|
cannam@154
|
4946 ], [
|
cannam@154
|
4947 runpath_var=
|
cannam@154
|
4948 _LT_TAGVAR(allow_undefined_flag, $1)=
|
cannam@154
|
4949 _LT_TAGVAR(always_export_symbols, $1)=no
|
cannam@154
|
4950 _LT_TAGVAR(archive_cmds, $1)=
|
cannam@154
|
4951 _LT_TAGVAR(archive_expsym_cmds, $1)=
|
cannam@154
|
4952 _LT_TAGVAR(compiler_needs_object, $1)=no
|
cannam@154
|
4953 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
|
cannam@154
|
4954 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
|
cannam@154
|
4955 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
cannam@154
|
4956 _LT_TAGVAR(hardcode_automatic, $1)=no
|
cannam@154
|
4957 _LT_TAGVAR(hardcode_direct, $1)=no
|
cannam@154
|
4958 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
|
cannam@154
|
4959 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
cannam@154
|
4960 _LT_TAGVAR(hardcode_libdir_separator, $1)=
|
cannam@154
|
4961 _LT_TAGVAR(hardcode_minus_L, $1)=no
|
cannam@154
|
4962 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
|
cannam@154
|
4963 _LT_TAGVAR(inherit_rpath, $1)=no
|
cannam@154
|
4964 _LT_TAGVAR(link_all_deplibs, $1)=unknown
|
cannam@154
|
4965 _LT_TAGVAR(module_cmds, $1)=
|
cannam@154
|
4966 _LT_TAGVAR(module_expsym_cmds, $1)=
|
cannam@154
|
4967 _LT_TAGVAR(old_archive_from_new_cmds, $1)=
|
cannam@154
|
4968 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
|
cannam@154
|
4969 _LT_TAGVAR(thread_safe_flag_spec, $1)=
|
cannam@154
|
4970 _LT_TAGVAR(whole_archive_flag_spec, $1)=
|
cannam@154
|
4971 # include_expsyms should be a list of space-separated symbols to be *always*
|
cannam@154
|
4972 # included in the symbol list
|
cannam@154
|
4973 _LT_TAGVAR(include_expsyms, $1)=
|
cannam@154
|
4974 # exclude_expsyms can be an extended regexp of symbols to exclude
|
cannam@154
|
4975 # it will be wrapped by ' (' and ')$', so one must not match beginning or
|
cannam@154
|
4976 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
|
cannam@154
|
4977 # as well as any symbol that contains 'd'.
|
cannam@154
|
4978 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
|
cannam@154
|
4979 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
|
cannam@154
|
4980 # platforms (ab)use it in PIC code, but their linkers get confused if
|
cannam@154
|
4981 # the symbol is explicitly referenced. Since portable code cannot
|
cannam@154
|
4982 # rely on this symbol name, it's probably fine to never include it in
|
cannam@154
|
4983 # preloaded symbol tables.
|
cannam@154
|
4984 # Exclude shared library initialization/finalization symbols.
|
cannam@154
|
4985 dnl Note also adjust exclude_expsyms for C++ above.
|
cannam@154
|
4986 extract_expsyms_cmds=
|
cannam@154
|
4987
|
cannam@154
|
4988 case $host_os in
|
cannam@154
|
4989 cygwin* | mingw* | pw32* | cegcc*)
|
cannam@154
|
4990 # FIXME: the MSVC++ port hasn't been tested in a loooong time
|
cannam@154
|
4991 # When not using gcc, we currently assume that we are using
|
cannam@154
|
4992 # Microsoft Visual C++.
|
cannam@154
|
4993 if test yes != "$GCC"; then
|
cannam@154
|
4994 with_gnu_ld=no
|
cannam@154
|
4995 fi
|
cannam@154
|
4996 ;;
|
cannam@154
|
4997 interix*)
|
cannam@154
|
4998 # we just hope/assume this is gcc and not c89 (= MSVC++)
|
cannam@154
|
4999 with_gnu_ld=yes
|
cannam@154
|
5000 ;;
|
cannam@154
|
5001 openbsd* | bitrig*)
|
cannam@154
|
5002 with_gnu_ld=no
|
cannam@154
|
5003 ;;
|
cannam@154
|
5004 esac
|
cannam@154
|
5005
|
cannam@154
|
5006 _LT_TAGVAR(ld_shlibs, $1)=yes
|
cannam@154
|
5007
|
cannam@154
|
5008 # On some targets, GNU ld is compatible enough with the native linker
|
cannam@154
|
5009 # that we're better off using the native interface for both.
|
cannam@154
|
5010 lt_use_gnu_ld_interface=no
|
cannam@154
|
5011 if test yes = "$with_gnu_ld"; then
|
cannam@154
|
5012 case $host_os in
|
cannam@154
|
5013 aix*)
|
cannam@154
|
5014 # The AIX port of GNU ld has always aspired to compatibility
|
cannam@154
|
5015 # with the native linker. However, as the warning in the GNU ld
|
cannam@154
|
5016 # block says, versions before 2.19.5* couldn't really create working
|
cannam@154
|
5017 # shared libraries, regardless of the interface used.
|
cannam@154
|
5018 case `$LD -v 2>&1` in
|
cannam@154
|
5019 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
|
cannam@154
|
5020 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
|
cannam@154
|
5021 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
|
cannam@154
|
5022 *)
|
cannam@154
|
5023 lt_use_gnu_ld_interface=yes
|
cannam@154
|
5024 ;;
|
cannam@154
|
5025 esac
|
cannam@154
|
5026 ;;
|
cannam@154
|
5027 *)
|
cannam@154
|
5028 lt_use_gnu_ld_interface=yes
|
cannam@154
|
5029 ;;
|
cannam@154
|
5030 esac
|
cannam@154
|
5031 fi
|
cannam@154
|
5032
|
cannam@154
|
5033 if test yes = "$lt_use_gnu_ld_interface"; then
|
cannam@154
|
5034 # If archive_cmds runs LD, not CC, wlarc should be empty
|
cannam@154
|
5035 wlarc='$wl'
|
cannam@154
|
5036
|
cannam@154
|
5037 # Set some defaults for GNU ld with shared library support. These
|
cannam@154
|
5038 # are reset later if shared libraries are not supported. Putting them
|
cannam@154
|
5039 # here allows them to be overridden if necessary.
|
cannam@154
|
5040 runpath_var=LD_RUN_PATH
|
cannam@154
|
5041 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
|
cannam@154
|
5042 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
|
cannam@154
|
5043 # ancient GNU ld didn't support --whole-archive et. al.
|
cannam@154
|
5044 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
|
cannam@154
|
5045 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
|
cannam@154
|
5046 else
|
cannam@154
|
5047 _LT_TAGVAR(whole_archive_flag_spec, $1)=
|
cannam@154
|
5048 fi
|
cannam@154
|
5049 supports_anon_versioning=no
|
cannam@154
|
5050 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
|
cannam@154
|
5051 *GNU\ gold*) supports_anon_versioning=yes ;;
|
cannam@154
|
5052 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
|
cannam@154
|
5053 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
|
cannam@154
|
5054 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
|
cannam@154
|
5055 *\ 2.11.*) ;; # other 2.11 versions
|
cannam@154
|
5056 *) supports_anon_versioning=yes ;;
|
cannam@154
|
5057 esac
|
cannam@154
|
5058
|
cannam@154
|
5059 # See if GNU ld supports shared libraries.
|
cannam@154
|
5060 case $host_os in
|
cannam@154
|
5061 aix[[3-9]]*)
|
cannam@154
|
5062 # On AIX/PPC, the GNU linker is very broken
|
cannam@154
|
5063 if test ia64 != "$host_cpu"; then
|
cannam@154
|
5064 _LT_TAGVAR(ld_shlibs, $1)=no
|
cannam@154
|
5065 cat <<_LT_EOF 1>&2
|
cannam@154
|
5066
|
cannam@154
|
5067 *** Warning: the GNU linker, at least up to release 2.19, is reported
|
cannam@154
|
5068 *** to be unable to reliably create shared libraries on AIX.
|
cannam@154
|
5069 *** Therefore, libtool is disabling shared libraries support. If you
|
cannam@154
|
5070 *** really care for shared libraries, you may want to install binutils
|
cannam@154
|
5071 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
|
cannam@154
|
5072 *** You will then need to restart the configuration process.
|
cannam@154
|
5073
|
cannam@154
|
5074 _LT_EOF
|
cannam@154
|
5075 fi
|
cannam@154
|
5076 ;;
|
cannam@154
|
5077
|
cannam@154
|
5078 amigaos*)
|
cannam@154
|
5079 case $host_cpu in
|
cannam@154
|
5080 powerpc)
|
cannam@154
|
5081 # see comment about AmigaOS4 .so support
|
cannam@154
|
5082 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
cannam@154
|
5083 _LT_TAGVAR(archive_expsym_cmds, $1)=''
|
cannam@154
|
5084 ;;
|
cannam@154
|
5085 m68k)
|
cannam@154
|
5086 _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)'
|
cannam@154
|
5087 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
cannam@154
|
5088 _LT_TAGVAR(hardcode_minus_L, $1)=yes
|
cannam@154
|
5089 ;;
|
cannam@154
|
5090 esac
|
cannam@154
|
5091 ;;
|
cannam@154
|
5092
|
cannam@154
|
5093 beos*)
|
cannam@154
|
5094 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
cannam@154
|
5095 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
|
cannam@154
|
5096 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
|
cannam@154
|
5097 # support --undefined. This deserves some investigation. FIXME
|
cannam@154
|
5098 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
cannam@154
|
5099 else
|
cannam@154
|
5100 _LT_TAGVAR(ld_shlibs, $1)=no
|
cannam@154
|
5101 fi
|
cannam@154
|
5102 ;;
|
cannam@154
|
5103
|
cannam@154
|
5104 cygwin* | mingw* | pw32* | cegcc*)
|
cannam@154
|
5105 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
|
cannam@154
|
5106 # as there is no search path for DLLs.
|
cannam@154
|
5107 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
cannam@154
|
5108 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
|
cannam@154
|
5109 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
|
cannam@154
|
5110 _LT_TAGVAR(always_export_symbols, $1)=no
|
cannam@154
|
5111 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
cannam@154
|
5112 _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'
|
cannam@154
|
5113 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
|
cannam@154
|
5114
|
cannam@154
|
5115 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
|
cannam@154
|
5116 _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'
|
cannam@154
|
5117 # If the export-symbols file already is a .def file, use it as
|
cannam@154
|
5118 # is; otherwise, prepend EXPORTS...
|
cannam@154
|
5119 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
|
cannam@154
|
5120 cp $export_symbols $output_objdir/$soname.def;
|
cannam@154
|
5121 else
|
cannam@154
|
5122 echo EXPORTS > $output_objdir/$soname.def;
|
cannam@154
|
5123 cat $export_symbols >> $output_objdir/$soname.def;
|
cannam@154
|
5124 fi~
|
cannam@154
|
5125 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
cannam@154
|
5126 else
|
cannam@154
|
5127 _LT_TAGVAR(ld_shlibs, $1)=no
|
cannam@154
|
5128 fi
|
cannam@154
|
5129 ;;
|
cannam@154
|
5130
|
cannam@154
|
5131 haiku*)
|
cannam@154
|
5132 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
cannam@154
|
5133 _LT_TAGVAR(link_all_deplibs, $1)=yes
|
cannam@154
|
5134 ;;
|
cannam@154
|
5135
|
cannam@154
|
5136 os2*)
|
cannam@154
|
5137 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
cannam@154
|
5138 _LT_TAGVAR(hardcode_minus_L, $1)=yes
|
cannam@154
|
5139 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
|
cannam@154
|
5140 shrext_cmds=.dll
|
cannam@154
|
5141 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
|
cannam@154
|
5142 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
|
cannam@154
|
5143 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
|
cannam@154
|
5144 $ECHO EXPORTS >> $output_objdir/$libname.def~
|
cannam@154
|
5145 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
|
cannam@154
|
5146 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
|
cannam@154
|
5147 emximp -o $lib $output_objdir/$libname.def'
|
cannam@154
|
5148 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
|
cannam@154
|
5149 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
|
cannam@154
|
5150 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
|
cannam@154
|
5151 $ECHO EXPORTS >> $output_objdir/$libname.def~
|
cannam@154
|
5152 prefix_cmds="$SED"~
|
cannam@154
|
5153 if test EXPORTS = "`$SED 1q $export_symbols`"; then
|
cannam@154
|
5154 prefix_cmds="$prefix_cmds -e 1d";
|
cannam@154
|
5155 fi~
|
cannam@154
|
5156 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
|
cannam@154
|
5157 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
|
cannam@154
|
5158 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
|
cannam@154
|
5159 emximp -o $lib $output_objdir/$libname.def'
|
cannam@154
|
5160 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
|
cannam@154
|
5161 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
cannam@154
|
5162 ;;
|
cannam@154
|
5163
|
cannam@154
|
5164 interix[[3-9]]*)
|
cannam@154
|
5165 _LT_TAGVAR(hardcode_direct, $1)=no
|
cannam@154
|
5166 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@154
|
5167 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
|
cannam@154
|
5168 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
|
cannam@154
|
5169 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
|
cannam@154
|
5170 # Instead, shared libraries are loaded at an image base (0x10000000 by
|
cannam@154
|
5171 # default) and relocated if they conflict, which is a slow very memory
|
cannam@154
|
5172 # consuming and fragmenting process. To avoid this, we pick a random,
|
cannam@154
|
5173 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
|
cannam@154
|
5174 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
|
cannam@154
|
5175 _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'
|
cannam@154
|
5176 _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'
|
cannam@154
|
5177 ;;
|
cannam@154
|
5178
|
cannam@154
|
5179 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
|
cannam@154
|
5180 tmp_diet=no
|
cannam@154
|
5181 if test linux-dietlibc = "$host_os"; then
|
cannam@154
|
5182 case $cc_basename in
|
cannam@154
|
5183 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
|
cannam@154
|
5184 esac
|
cannam@154
|
5185 fi
|
cannam@154
|
5186 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
|
cannam@154
|
5187 && test no = "$tmp_diet"
|
cannam@154
|
5188 then
|
cannam@154
|
5189 tmp_addflag=' $pic_flag'
|
cannam@154
|
5190 tmp_sharedflag='-shared'
|
cannam@154
|
5191 case $cc_basename,$host_cpu in
|
cannam@154
|
5192 pgcc*) # Portland Group C compiler
|
cannam@154
|
5193 _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'
|
cannam@154
|
5194 tmp_addflag=' $pic_flag'
|
cannam@154
|
5195 ;;
|
cannam@154
|
5196 pgf77* | pgf90* | pgf95* | pgfortran*)
|
cannam@154
|
5197 # Portland Group f77 and f90 compilers
|
cannam@154
|
5198 _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'
|
cannam@154
|
5199 tmp_addflag=' $pic_flag -Mnomain' ;;
|
cannam@154
|
5200 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
|
cannam@154
|
5201 tmp_addflag=' -i_dynamic' ;;
|
cannam@154
|
5202 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
|
cannam@154
|
5203 tmp_addflag=' -i_dynamic -nofor_main' ;;
|
cannam@154
|
5204 ifc* | ifort*) # Intel Fortran compiler
|
cannam@154
|
5205 tmp_addflag=' -nofor_main' ;;
|
cannam@154
|
5206 lf95*) # Lahey Fortran 8.1
|
cannam@154
|
5207 _LT_TAGVAR(whole_archive_flag_spec, $1)=
|
cannam@154
|
5208 tmp_sharedflag='--shared' ;;
|
cannam@154
|
5209 nagfor*) # NAGFOR 5.3
|
cannam@154
|
5210 tmp_sharedflag='-Wl,-shared' ;;
|
cannam@154
|
5211 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
|
cannam@154
|
5212 tmp_sharedflag='-qmkshrobj'
|
cannam@154
|
5213 tmp_addflag= ;;
|
cannam@154
|
5214 nvcc*) # Cuda Compiler Driver 2.2
|
cannam@154
|
5215 _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'
|
cannam@154
|
5216 _LT_TAGVAR(compiler_needs_object, $1)=yes
|
cannam@154
|
5217 ;;
|
cannam@154
|
5218 esac
|
cannam@154
|
5219 case `$CC -V 2>&1 | sed 5q` in
|
cannam@154
|
5220 *Sun\ C*) # Sun C 5.9
|
cannam@154
|
5221 _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'
|
cannam@154
|
5222 _LT_TAGVAR(compiler_needs_object, $1)=yes
|
cannam@154
|
5223 tmp_sharedflag='-G' ;;
|
cannam@154
|
5224 *Sun\ F*) # Sun Fortran 8.3
|
cannam@154
|
5225 tmp_sharedflag='-G' ;;
|
cannam@154
|
5226 esac
|
cannam@154
|
5227 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
cannam@154
|
5228
|
cannam@154
|
5229 if test yes = "$supports_anon_versioning"; then
|
cannam@154
|
5230 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
|
cannam@154
|
5231 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
cannam@154
|
5232 echo "local: *; };" >> $output_objdir/$libname.ver~
|
cannam@154
|
5233 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
|
cannam@154
|
5234 fi
|
cannam@154
|
5235
|
cannam@154
|
5236 case $cc_basename in
|
cannam@154
|
5237 tcc*)
|
cannam@154
|
5238 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic'
|
cannam@154
|
5239 ;;
|
cannam@154
|
5240 xlf* | bgf* | bgxlf* | mpixlf*)
|
cannam@154
|
5241 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
|
cannam@154
|
5242 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
|
cannam@154
|
5243 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
|
cannam@154
|
5244 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
|
cannam@154
|
5245 if test yes = "$supports_anon_versioning"; then
|
cannam@154
|
5246 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
|
cannam@154
|
5247 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
cannam@154
|
5248 echo "local: *; };" >> $output_objdir/$libname.ver~
|
cannam@154
|
5249 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
|
cannam@154
|
5250 fi
|
cannam@154
|
5251 ;;
|
cannam@154
|
5252 esac
|
cannam@154
|
5253 else
|
cannam@154
|
5254 _LT_TAGVAR(ld_shlibs, $1)=no
|
cannam@154
|
5255 fi
|
cannam@154
|
5256 ;;
|
cannam@154
|
5257
|
cannam@154
|
5258 netbsd*)
|
cannam@154
|
5259 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
cannam@154
|
5260 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
cannam@154
|
5261 wlarc=
|
cannam@154
|
5262 else
|
cannam@154
|
5263 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
cannam@154
|
5264 _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'
|
cannam@154
|
5265 fi
|
cannam@154
|
5266 ;;
|
cannam@154
|
5267
|
cannam@154
|
5268 solaris*)
|
cannam@154
|
5269 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
|
cannam@154
|
5270 _LT_TAGVAR(ld_shlibs, $1)=no
|
cannam@154
|
5271 cat <<_LT_EOF 1>&2
|
cannam@154
|
5272
|
cannam@154
|
5273 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
|
cannam@154
|
5274 *** create shared libraries on Solaris systems. Therefore, libtool
|
cannam@154
|
5275 *** is disabling shared libraries support. We urge you to upgrade GNU
|
cannam@154
|
5276 *** binutils to release 2.9.1 or newer. Another option is to modify
|
cannam@154
|
5277 *** your PATH or compiler configuration so that the native linker is
|
cannam@154
|
5278 *** used, and then restart.
|
cannam@154
|
5279
|
cannam@154
|
5280 _LT_EOF
|
cannam@154
|
5281 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
cannam@154
|
5282 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
cannam@154
|
5283 _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'
|
cannam@154
|
5284 else
|
cannam@154
|
5285 _LT_TAGVAR(ld_shlibs, $1)=no
|
cannam@154
|
5286 fi
|
cannam@154
|
5287 ;;
|
cannam@154
|
5288
|
cannam@154
|
5289 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
|
cannam@154
|
5290 case `$LD -v 2>&1` in
|
cannam@154
|
5291 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
|
cannam@154
|
5292 _LT_TAGVAR(ld_shlibs, $1)=no
|
cannam@154
|
5293 cat <<_LT_EOF 1>&2
|
cannam@154
|
5294
|
cannam@154
|
5295 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
|
cannam@154
|
5296 *** reliably create shared libraries on SCO systems. Therefore, libtool
|
cannam@154
|
5297 *** is disabling shared libraries support. We urge you to upgrade GNU
|
cannam@154
|
5298 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
|
cannam@154
|
5299 *** your PATH or compiler configuration so that the native linker is
|
cannam@154
|
5300 *** used, and then restart.
|
cannam@154
|
5301
|
cannam@154
|
5302 _LT_EOF
|
cannam@154
|
5303 ;;
|
cannam@154
|
5304 *)
|
cannam@154
|
5305 # For security reasons, it is highly recommended that you always
|
cannam@154
|
5306 # use absolute paths for naming shared libraries, and exclude the
|
cannam@154
|
5307 # DT_RUNPATH tag from executables and libraries. But doing so
|
cannam@154
|
5308 # requires that you compile everything twice, which is a pain.
|
cannam@154
|
5309 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
cannam@154
|
5310 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
|
cannam@154
|
5311 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
cannam@154
|
5312 _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'
|
cannam@154
|
5313 else
|
cannam@154
|
5314 _LT_TAGVAR(ld_shlibs, $1)=no
|
cannam@154
|
5315 fi
|
cannam@154
|
5316 ;;
|
cannam@154
|
5317 esac
|
cannam@154
|
5318 ;;
|
cannam@154
|
5319
|
cannam@154
|
5320 sunos4*)
|
cannam@154
|
5321 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
cannam@154
|
5322 wlarc=
|
cannam@154
|
5323 _LT_TAGVAR(hardcode_direct, $1)=yes
|
cannam@154
|
5324 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@154
|
5325 ;;
|
cannam@154
|
5326
|
cannam@154
|
5327 *)
|
cannam@154
|
5328 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
cannam@154
|
5329 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
cannam@154
|
5330 _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'
|
cannam@154
|
5331 else
|
cannam@154
|
5332 _LT_TAGVAR(ld_shlibs, $1)=no
|
cannam@154
|
5333 fi
|
cannam@154
|
5334 ;;
|
cannam@154
|
5335 esac
|
cannam@154
|
5336
|
cannam@154
|
5337 if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then
|
cannam@154
|
5338 runpath_var=
|
cannam@154
|
5339 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
cannam@154
|
5340 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
|
cannam@154
|
5341 _LT_TAGVAR(whole_archive_flag_spec, $1)=
|
cannam@154
|
5342 fi
|
cannam@154
|
5343 else
|
cannam@154
|
5344 # PORTME fill in a description of your system's linker (not GNU ld)
|
cannam@154
|
5345 case $host_os in
|
cannam@154
|
5346 aix3*)
|
cannam@154
|
5347 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
|
cannam@154
|
5348 _LT_TAGVAR(always_export_symbols, $1)=yes
|
cannam@154
|
5349 _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'
|
cannam@154
|
5350 # Note: this linker hardcodes the directories in LIBPATH if there
|
cannam@154
|
5351 # are no directories specified by -L.
|
cannam@154
|
5352 _LT_TAGVAR(hardcode_minus_L, $1)=yes
|
cannam@154
|
5353 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
|
cannam@154
|
5354 # Neither direct hardcoding nor static linking is supported with a
|
cannam@154
|
5355 # broken collect2.
|
cannam@154
|
5356 _LT_TAGVAR(hardcode_direct, $1)=unsupported
|
cannam@154
|
5357 fi
|
cannam@154
|
5358 ;;
|
cannam@154
|
5359
|
cannam@154
|
5360 aix[[4-9]]*)
|
cannam@154
|
5361 if test ia64 = "$host_cpu"; then
|
cannam@154
|
5362 # On IA64, the linker does run time linking by default, so we don't
|
cannam@154
|
5363 # have to do anything special.
|
cannam@154
|
5364 aix_use_runtimelinking=no
|
cannam@154
|
5365 exp_sym_flag='-Bexport'
|
cannam@154
|
5366 no_entry_flag=
|
cannam@154
|
5367 else
|
cannam@154
|
5368 # If we're using GNU nm, then we don't want the "-C" option.
|
cannam@154
|
5369 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
|
cannam@154
|
5370 # Without the "-l" option, or with the "-B" option, AIX nm treats
|
cannam@154
|
5371 # weak defined symbols like other global defined symbols, whereas
|
cannam@154
|
5372 # GNU nm marks them as "W".
|
cannam@154
|
5373 # While the 'weak' keyword is ignored in the Export File, we need
|
cannam@154
|
5374 # it in the Import File for the 'aix-soname' feature, so we have
|
cannam@154
|
5375 # to replace the "-B" option with "-P" for AIX nm.
|
cannam@154
|
5376 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
|
cannam@154
|
5377 _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'
|
cannam@154
|
5378 else
|
cannam@154
|
5379 _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'
|
cannam@154
|
5380 fi
|
cannam@154
|
5381 aix_use_runtimelinking=no
|
cannam@154
|
5382
|
cannam@154
|
5383 # Test if we are trying to use run time linking or normal
|
cannam@154
|
5384 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
cannam@154
|
5385 # have runtime linking enabled, and use it for executables.
|
cannam@154
|
5386 # For shared libraries, we enable/disable runtime linking
|
cannam@154
|
5387 # depending on the kind of the shared library created -
|
cannam@154
|
5388 # when "with_aix_soname,aix_use_runtimelinking" is:
|
cannam@154
|
5389 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
|
cannam@154
|
5390 # "aix,yes" lib.so shared, rtl:yes, for executables
|
cannam@154
|
5391 # lib.a static archive
|
cannam@154
|
5392 # "both,no" lib.so.V(shr.o) shared, rtl:yes
|
cannam@154
|
5393 # lib.a(lib.so.V) shared, rtl:no, for executables
|
cannam@154
|
5394 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
|
cannam@154
|
5395 # lib.a(lib.so.V) shared, rtl:no
|
cannam@154
|
5396 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
|
cannam@154
|
5397 # lib.a static archive
|
cannam@154
|
5398 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
|
cannam@154
|
5399 for ld_flag in $LDFLAGS; do
|
cannam@154
|
5400 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
|
cannam@154
|
5401 aix_use_runtimelinking=yes
|
cannam@154
|
5402 break
|
cannam@154
|
5403 fi
|
cannam@154
|
5404 done
|
cannam@154
|
5405 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
|
cannam@154
|
5406 # With aix-soname=svr4, we create the lib.so.V shared archives only,
|
cannam@154
|
5407 # so we don't have lib.a shared libs to link our executables.
|
cannam@154
|
5408 # We have to force runtime linking in this case.
|
cannam@154
|
5409 aix_use_runtimelinking=yes
|
cannam@154
|
5410 LDFLAGS="$LDFLAGS -Wl,-brtl"
|
cannam@154
|
5411 fi
|
cannam@154
|
5412 ;;
|
cannam@154
|
5413 esac
|
cannam@154
|
5414
|
cannam@154
|
5415 exp_sym_flag='-bexport'
|
cannam@154
|
5416 no_entry_flag='-bnoentry'
|
cannam@154
|
5417 fi
|
cannam@154
|
5418
|
cannam@154
|
5419 # When large executables or shared objects are built, AIX ld can
|
cannam@154
|
5420 # have problems creating the table of contents. If linking a library
|
cannam@154
|
5421 # or program results in "error TOC overflow" add -mminimal-toc to
|
cannam@154
|
5422 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
cannam@154
|
5423 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
cannam@154
|
5424
|
cannam@154
|
5425 _LT_TAGVAR(archive_cmds, $1)=''
|
cannam@154
|
5426 _LT_TAGVAR(hardcode_direct, $1)=yes
|
cannam@154
|
5427 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
|
cannam@154
|
5428 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
|
cannam@154
|
5429 _LT_TAGVAR(link_all_deplibs, $1)=yes
|
cannam@154
|
5430 _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
|
cannam@154
|
5431 case $with_aix_soname,$aix_use_runtimelinking in
|
cannam@154
|
5432 aix,*) ;; # traditional, no import file
|
cannam@154
|
5433 svr4,* | *,yes) # use import file
|
cannam@154
|
5434 # The Import File defines what to hardcode.
|
cannam@154
|
5435 _LT_TAGVAR(hardcode_direct, $1)=no
|
cannam@154
|
5436 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
|
cannam@154
|
5437 ;;
|
cannam@154
|
5438 esac
|
cannam@154
|
5439
|
cannam@154
|
5440 if test yes = "$GCC"; then
|
cannam@154
|
5441 case $host_os in aix4.[[012]]|aix4.[[012]].*)
|
cannam@154
|
5442 # We only want to do this on AIX 4.2 and lower, the check
|
cannam@154
|
5443 # below for broken collect2 doesn't work under 4.3+
|
cannam@154
|
5444 collect2name=`$CC -print-prog-name=collect2`
|
cannam@154
|
5445 if test -f "$collect2name" &&
|
cannam@154
|
5446 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
|
cannam@154
|
5447 then
|
cannam@154
|
5448 # We have reworked collect2
|
cannam@154
|
5449 :
|
cannam@154
|
5450 else
|
cannam@154
|
5451 # We have old collect2
|
cannam@154
|
5452 _LT_TAGVAR(hardcode_direct, $1)=unsupported
|
cannam@154
|
5453 # It fails to find uninstalled libraries when the uninstalled
|
cannam@154
|
5454 # path is not listed in the libpath. Setting hardcode_minus_L
|
cannam@154
|
5455 # to unsupported forces relinking
|
cannam@154
|
5456 _LT_TAGVAR(hardcode_minus_L, $1)=yes
|
cannam@154
|
5457 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
cannam@154
|
5458 _LT_TAGVAR(hardcode_libdir_separator, $1)=
|
cannam@154
|
5459 fi
|
cannam@154
|
5460 ;;
|
cannam@154
|
5461 esac
|
cannam@154
|
5462 shared_flag='-shared'
|
cannam@154
|
5463 if test yes = "$aix_use_runtimelinking"; then
|
cannam@154
|
5464 shared_flag="$shared_flag "'$wl-G'
|
cannam@154
|
5465 fi
|
cannam@154
|
5466 # Need to ensure runtime linking is disabled for the traditional
|
cannam@154
|
5467 # shared library, or the linker may eventually find shared libraries
|
cannam@154
|
5468 # /with/ Import File - we do not want to mix them.
|
cannam@154
|
5469 shared_flag_aix='-shared'
|
cannam@154
|
5470 shared_flag_svr4='-shared $wl-G'
|
cannam@154
|
5471 else
|
cannam@154
|
5472 # not using gcc
|
cannam@154
|
5473 if test ia64 = "$host_cpu"; then
|
cannam@154
|
5474 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
cannam@154
|
5475 # chokes on -Wl,-G. The following line is correct:
|
cannam@154
|
5476 shared_flag='-G'
|
cannam@154
|
5477 else
|
cannam@154
|
5478 if test yes = "$aix_use_runtimelinking"; then
|
cannam@154
|
5479 shared_flag='$wl-G'
|
cannam@154
|
5480 else
|
cannam@154
|
5481 shared_flag='$wl-bM:SRE'
|
cannam@154
|
5482 fi
|
cannam@154
|
5483 shared_flag_aix='$wl-bM:SRE'
|
cannam@154
|
5484 shared_flag_svr4='$wl-G'
|
cannam@154
|
5485 fi
|
cannam@154
|
5486 fi
|
cannam@154
|
5487
|
cannam@154
|
5488 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
|
cannam@154
|
5489 # It seems that -bexpall does not export symbols beginning with
|
cannam@154
|
5490 # underscore (_), so it is better to generate a list of symbols to export.
|
cannam@154
|
5491 _LT_TAGVAR(always_export_symbols, $1)=yes
|
cannam@154
|
5492 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
|
cannam@154
|
5493 # Warning - without using the other runtime loading flags (-brtl),
|
cannam@154
|
5494 # -berok will link without error, but may produce a broken library.
|
cannam@154
|
5495 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
|
cannam@154
|
5496 # Determine the default libpath from the value encoded in an
|
cannam@154
|
5497 # empty executable.
|
cannam@154
|
5498 _LT_SYS_MODULE_PATH_AIX([$1])
|
cannam@154
|
5499 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
|
cannam@154
|
5500 _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
|
cannam@154
|
5501 else
|
cannam@154
|
5502 if test ia64 = "$host_cpu"; then
|
cannam@154
|
5503 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
|
cannam@154
|
5504 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
|
cannam@154
|
5505 _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"
|
cannam@154
|
5506 else
|
cannam@154
|
5507 # Determine the default libpath from the value encoded in an
|
cannam@154
|
5508 # empty executable.
|
cannam@154
|
5509 _LT_SYS_MODULE_PATH_AIX([$1])
|
cannam@154
|
5510 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
|
cannam@154
|
5511 # Warning - without using the other run time loading flags,
|
cannam@154
|
5512 # -berok will link without error, but may produce a broken library.
|
cannam@154
|
5513 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
|
cannam@154
|
5514 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
|
cannam@154
|
5515 if test yes = "$with_gnu_ld"; then
|
cannam@154
|
5516 # We only use this code for GNU lds that support --whole-archive.
|
cannam@154
|
5517 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
|
cannam@154
|
5518 else
|
cannam@154
|
5519 # Exported symbols can be pulled into shared objects from archives
|
cannam@154
|
5520 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
|
cannam@154
|
5521 fi
|
cannam@154
|
5522 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
|
cannam@154
|
5523 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
|
cannam@154
|
5524 # -brtl affects multiple linker settings, -berok does not and is overridden later
|
cannam@154
|
5525 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
|
cannam@154
|
5526 if test svr4 != "$with_aix_soname"; then
|
cannam@154
|
5527 # This is similar to how AIX traditionally builds its shared libraries.
|
cannam@154
|
5528 _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'
|
cannam@154
|
5529 fi
|
cannam@154
|
5530 if test aix != "$with_aix_soname"; then
|
cannam@154
|
5531 _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'
|
cannam@154
|
5532 else
|
cannam@154
|
5533 # used by -dlpreopen to get the symbols
|
cannam@154
|
5534 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
|
cannam@154
|
5535 fi
|
cannam@154
|
5536 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
|
cannam@154
|
5537 fi
|
cannam@154
|
5538 fi
|
cannam@154
|
5539 ;;
|
cannam@154
|
5540
|
cannam@154
|
5541 amigaos*)
|
cannam@154
|
5542 case $host_cpu in
|
cannam@154
|
5543 powerpc)
|
cannam@154
|
5544 # see comment about AmigaOS4 .so support
|
cannam@154
|
5545 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
cannam@154
|
5546 _LT_TAGVAR(archive_expsym_cmds, $1)=''
|
cannam@154
|
5547 ;;
|
cannam@154
|
5548 m68k)
|
cannam@154
|
5549 _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)'
|
cannam@154
|
5550 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
cannam@154
|
5551 _LT_TAGVAR(hardcode_minus_L, $1)=yes
|
cannam@154
|
5552 ;;
|
cannam@154
|
5553 esac
|
cannam@154
|
5554 ;;
|
cannam@154
|
5555
|
cannam@154
|
5556 bsdi[[45]]*)
|
cannam@154
|
5557 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
|
cannam@154
|
5558 ;;
|
cannam@154
|
5559
|
cannam@154
|
5560 cygwin* | mingw* | pw32* | cegcc*)
|
cannam@154
|
5561 # When not using gcc, we currently assume that we are using
|
cannam@154
|
5562 # Microsoft Visual C++.
|
cannam@154
|
5563 # hardcode_libdir_flag_spec is actually meaningless, as there is
|
cannam@154
|
5564 # no search path for DLLs.
|
cannam@154
|
5565 case $cc_basename in
|
cannam@154
|
5566 cl*)
|
cannam@154
|
5567 # Native MSVC
|
cannam@154
|
5568 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
|
cannam@154
|
5569 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
|
cannam@154
|
5570 _LT_TAGVAR(always_export_symbols, $1)=yes
|
cannam@154
|
5571 _LT_TAGVAR(file_list_spec, $1)='@'
|
cannam@154
|
5572 # Tell ltmain to make .lib files, not .a files.
|
cannam@154
|
5573 libext=lib
|
cannam@154
|
5574 # Tell ltmain to make .dll files, not .so files.
|
cannam@154
|
5575 shrext_cmds=.dll
|
cannam@154
|
5576 # FIXME: Setting linknames here is a bad hack.
|
cannam@154
|
5577 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
|
cannam@154
|
5578 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
|
cannam@154
|
5579 cp "$export_symbols" "$output_objdir/$soname.def";
|
cannam@154
|
5580 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
|
cannam@154
|
5581 else
|
cannam@154
|
5582 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
|
cannam@154
|
5583 fi~
|
cannam@154
|
5584 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
|
cannam@154
|
5585 linknames='
|
cannam@154
|
5586 # The linker will not automatically build a static lib if we build a DLL.
|
cannam@154
|
5587 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
|
cannam@154
|
5588 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
cannam@154
|
5589 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
|
cannam@154
|
5590 _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'
|
cannam@154
|
5591 # Don't use ranlib
|
cannam@154
|
5592 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
|
cannam@154
|
5593 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
|
cannam@154
|
5594 lt_tool_outputfile="@TOOL_OUTPUT@"~
|
cannam@154
|
5595 case $lt_outputfile in
|
cannam@154
|
5596 *.exe|*.EXE) ;;
|
cannam@154
|
5597 *)
|
cannam@154
|
5598 lt_outputfile=$lt_outputfile.exe
|
cannam@154
|
5599 lt_tool_outputfile=$lt_tool_outputfile.exe
|
cannam@154
|
5600 ;;
|
cannam@154
|
5601 esac~
|
cannam@154
|
5602 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
|
cannam@154
|
5603 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
|
cannam@154
|
5604 $RM "$lt_outputfile.manifest";
|
cannam@154
|
5605 fi'
|
cannam@154
|
5606 ;;
|
cannam@154
|
5607 *)
|
cannam@154
|
5608 # Assume MSVC wrapper
|
cannam@154
|
5609 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
|
cannam@154
|
5610 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
|
cannam@154
|
5611 # Tell ltmain to make .lib files, not .a files.
|
cannam@154
|
5612 libext=lib
|
cannam@154
|
5613 # Tell ltmain to make .dll files, not .so files.
|
cannam@154
|
5614 shrext_cmds=.dll
|
cannam@154
|
5615 # FIXME: Setting linknames here is a bad hack.
|
cannam@154
|
5616 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
|
cannam@154
|
5617 # The linker will automatically build a .lib file if we build a DLL.
|
cannam@154
|
5618 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
|
cannam@154
|
5619 # FIXME: Should let the user specify the lib program.
|
cannam@154
|
5620 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
cannam@154
|
5621 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
cannam@154
|
5622 ;;
|
cannam@154
|
5623 esac
|
cannam@154
|
5624 ;;
|
cannam@154
|
5625
|
cannam@154
|
5626 darwin* | rhapsody*)
|
cannam@154
|
5627 _LT_DARWIN_LINKER_FEATURES($1)
|
cannam@154
|
5628 ;;
|
cannam@154
|
5629
|
cannam@154
|
5630 dgux*)
|
cannam@154
|
5631 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@154
|
5632 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
cannam@154
|
5633 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@154
|
5634 ;;
|
cannam@154
|
5635
|
cannam@154
|
5636 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
|
cannam@154
|
5637 # support. Future versions do this automatically, but an explicit c++rt0.o
|
cannam@154
|
5638 # does not break anything, and helps significantly (at the cost of a little
|
cannam@154
|
5639 # extra space).
|
cannam@154
|
5640 freebsd2.2*)
|
cannam@154
|
5641 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
|
cannam@154
|
5642 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
cannam@154
|
5643 _LT_TAGVAR(hardcode_direct, $1)=yes
|
cannam@154
|
5644 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@154
|
5645 ;;
|
cannam@154
|
5646
|
cannam@154
|
5647 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
|
cannam@154
|
5648 freebsd2.*)
|
cannam@154
|
5649 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
cannam@154
|
5650 _LT_TAGVAR(hardcode_direct, $1)=yes
|
cannam@154
|
5651 _LT_TAGVAR(hardcode_minus_L, $1)=yes
|
cannam@154
|
5652 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@154
|
5653 ;;
|
cannam@154
|
5654
|
cannam@154
|
5655 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
cannam@154
|
5656 freebsd* | dragonfly*)
|
cannam@154
|
5657 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
5658 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
cannam@154
|
5659 _LT_TAGVAR(hardcode_direct, $1)=yes
|
cannam@154
|
5660 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@154
|
5661 ;;
|
cannam@154
|
5662
|
cannam@154
|
5663 hpux9*)
|
cannam@154
|
5664 if test yes = "$GCC"; then
|
cannam@154
|
5665 _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'
|
cannam@154
|
5666 else
|
cannam@154
|
5667 _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'
|
cannam@154
|
5668 fi
|
cannam@154
|
5669 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
|
cannam@154
|
5670 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
cannam@154
|
5671 _LT_TAGVAR(hardcode_direct, $1)=yes
|
cannam@154
|
5672
|
cannam@154
|
5673 # hardcode_minus_L: Not really in the search PATH,
|
cannam@154
|
5674 # but as the default location of the library.
|
cannam@154
|
5675 _LT_TAGVAR(hardcode_minus_L, $1)=yes
|
cannam@154
|
5676 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
|
cannam@154
|
5677 ;;
|
cannam@154
|
5678
|
cannam@154
|
5679 hpux10*)
|
cannam@154
|
5680 if test yes,no = "$GCC,$with_gnu_ld"; then
|
cannam@154
|
5681 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
5682 else
|
cannam@154
|
5683 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
cannam@154
|
5684 fi
|
cannam@154
|
5685 if test no = "$with_gnu_ld"; then
|
cannam@154
|
5686 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
|
cannam@154
|
5687 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
cannam@154
|
5688 _LT_TAGVAR(hardcode_direct, $1)=yes
|
cannam@154
|
5689 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
|
cannam@154
|
5690 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
|
cannam@154
|
5691 # hardcode_minus_L: Not really in the search PATH,
|
cannam@154
|
5692 # but as the default location of the library.
|
cannam@154
|
5693 _LT_TAGVAR(hardcode_minus_L, $1)=yes
|
cannam@154
|
5694 fi
|
cannam@154
|
5695 ;;
|
cannam@154
|
5696
|
cannam@154
|
5697 hpux11*)
|
cannam@154
|
5698 if test yes,no = "$GCC,$with_gnu_ld"; then
|
cannam@154
|
5699 case $host_cpu in
|
cannam@154
|
5700 hppa*64*)
|
cannam@154
|
5701 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
5702 ;;
|
cannam@154
|
5703 ia64*)
|
cannam@154
|
5704 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
5705 ;;
|
cannam@154
|
5706 *)
|
cannam@154
|
5707 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
5708 ;;
|
cannam@154
|
5709 esac
|
cannam@154
|
5710 else
|
cannam@154
|
5711 case $host_cpu in
|
cannam@154
|
5712 hppa*64*)
|
cannam@154
|
5713 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
5714 ;;
|
cannam@154
|
5715 ia64*)
|
cannam@154
|
5716 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
5717 ;;
|
cannam@154
|
5718 *)
|
cannam@154
|
5719 m4_if($1, [], [
|
cannam@154
|
5720 # Older versions of the 11.00 compiler do not understand -b yet
|
cannam@154
|
5721 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
|
cannam@154
|
5722 _LT_LINKER_OPTION([if $CC understands -b],
|
cannam@154
|
5723 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
|
cannam@154
|
5724 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
|
cannam@154
|
5725 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
|
cannam@154
|
5726 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
|
cannam@154
|
5727 ;;
|
cannam@154
|
5728 esac
|
cannam@154
|
5729 fi
|
cannam@154
|
5730 if test no = "$with_gnu_ld"; then
|
cannam@154
|
5731 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
|
cannam@154
|
5732 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
cannam@154
|
5733
|
cannam@154
|
5734 case $host_cpu in
|
cannam@154
|
5735 hppa*64*|ia64*)
|
cannam@154
|
5736 _LT_TAGVAR(hardcode_direct, $1)=no
|
cannam@154
|
5737 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@154
|
5738 ;;
|
cannam@154
|
5739 *)
|
cannam@154
|
5740 _LT_TAGVAR(hardcode_direct, $1)=yes
|
cannam@154
|
5741 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
|
cannam@154
|
5742 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
|
cannam@154
|
5743
|
cannam@154
|
5744 # hardcode_minus_L: Not really in the search PATH,
|
cannam@154
|
5745 # but as the default location of the library.
|
cannam@154
|
5746 _LT_TAGVAR(hardcode_minus_L, $1)=yes
|
cannam@154
|
5747 ;;
|
cannam@154
|
5748 esac
|
cannam@154
|
5749 fi
|
cannam@154
|
5750 ;;
|
cannam@154
|
5751
|
cannam@154
|
5752 irix5* | irix6* | nonstopux*)
|
cannam@154
|
5753 if test yes = "$GCC"; then
|
cannam@154
|
5754 _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'
|
cannam@154
|
5755 # Try to use the -exported_symbol ld option, if it does not
|
cannam@154
|
5756 # work, assume that -exports_file does not work either and
|
cannam@154
|
5757 # implicitly export all symbols.
|
cannam@154
|
5758 # This should be the same for all languages, so no per-tag cache variable.
|
cannam@154
|
5759 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
|
cannam@154
|
5760 [lt_cv_irix_exported_symbol],
|
cannam@154
|
5761 [save_LDFLAGS=$LDFLAGS
|
cannam@154
|
5762 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
|
cannam@154
|
5763 AC_LINK_IFELSE(
|
cannam@154
|
5764 [AC_LANG_SOURCE(
|
cannam@154
|
5765 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
|
cannam@154
|
5766 [C++], [[int foo (void) { return 0; }]],
|
cannam@154
|
5767 [Fortran 77], [[
|
cannam@154
|
5768 subroutine foo
|
cannam@154
|
5769 end]],
|
cannam@154
|
5770 [Fortran], [[
|
cannam@154
|
5771 subroutine foo
|
cannam@154
|
5772 end]])])],
|
cannam@154
|
5773 [lt_cv_irix_exported_symbol=yes],
|
cannam@154
|
5774 [lt_cv_irix_exported_symbol=no])
|
cannam@154
|
5775 LDFLAGS=$save_LDFLAGS])
|
cannam@154
|
5776 if test yes = "$lt_cv_irix_exported_symbol"; then
|
cannam@154
|
5777 _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'
|
cannam@154
|
5778 fi
|
cannam@154
|
5779 else
|
cannam@154
|
5780 _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'
|
cannam@154
|
5781 _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'
|
cannam@154
|
5782 fi
|
cannam@154
|
5783 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
|
cannam@154
|
5784 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
|
cannam@154
|
5785 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
cannam@154
|
5786 _LT_TAGVAR(inherit_rpath, $1)=yes
|
cannam@154
|
5787 _LT_TAGVAR(link_all_deplibs, $1)=yes
|
cannam@154
|
5788 ;;
|
cannam@154
|
5789
|
cannam@154
|
5790 linux*)
|
cannam@154
|
5791 case $cc_basename in
|
cannam@154
|
5792 tcc*)
|
cannam@154
|
5793 # Fabrice Bellard et al's Tiny C Compiler
|
cannam@154
|
5794 _LT_TAGVAR(ld_shlibs, $1)=yes
|
cannam@154
|
5795 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
5796 ;;
|
cannam@154
|
5797 esac
|
cannam@154
|
5798 ;;
|
cannam@154
|
5799
|
cannam@154
|
5800 netbsd*)
|
cannam@154
|
5801 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
cannam@154
|
5802 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
|
cannam@154
|
5803 else
|
cannam@154
|
5804 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
|
cannam@154
|
5805 fi
|
cannam@154
|
5806 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
cannam@154
|
5807 _LT_TAGVAR(hardcode_direct, $1)=yes
|
cannam@154
|
5808 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@154
|
5809 ;;
|
cannam@154
|
5810
|
cannam@154
|
5811 newsos6)
|
cannam@154
|
5812 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@154
|
5813 _LT_TAGVAR(hardcode_direct, $1)=yes
|
cannam@154
|
5814 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
|
cannam@154
|
5815 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
cannam@154
|
5816 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@154
|
5817 ;;
|
cannam@154
|
5818
|
cannam@154
|
5819 *nto* | *qnx*)
|
cannam@154
|
5820 ;;
|
cannam@154
|
5821
|
cannam@154
|
5822 openbsd* | bitrig*)
|
cannam@154
|
5823 if test -f /usr/libexec/ld.so; then
|
cannam@154
|
5824 _LT_TAGVAR(hardcode_direct, $1)=yes
|
cannam@154
|
5825 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@154
|
5826 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
|
cannam@154
|
5827 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
|
cannam@154
|
5828 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
5829 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
|
cannam@154
|
5830 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
|
cannam@154
|
5831 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
|
cannam@154
|
5832 else
|
cannam@154
|
5833 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
5834 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
|
cannam@154
|
5835 fi
|
cannam@154
|
5836 else
|
cannam@154
|
5837 _LT_TAGVAR(ld_shlibs, $1)=no
|
cannam@154
|
5838 fi
|
cannam@154
|
5839 ;;
|
cannam@154
|
5840
|
cannam@154
|
5841 os2*)
|
cannam@154
|
5842 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
cannam@154
|
5843 _LT_TAGVAR(hardcode_minus_L, $1)=yes
|
cannam@154
|
5844 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
|
cannam@154
|
5845 shrext_cmds=.dll
|
cannam@154
|
5846 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
|
cannam@154
|
5847 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
|
cannam@154
|
5848 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
|
cannam@154
|
5849 $ECHO EXPORTS >> $output_objdir/$libname.def~
|
cannam@154
|
5850 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
|
cannam@154
|
5851 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
|
cannam@154
|
5852 emximp -o $lib $output_objdir/$libname.def'
|
cannam@154
|
5853 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
|
cannam@154
|
5854 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
|
cannam@154
|
5855 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
|
cannam@154
|
5856 $ECHO EXPORTS >> $output_objdir/$libname.def~
|
cannam@154
|
5857 prefix_cmds="$SED"~
|
cannam@154
|
5858 if test EXPORTS = "`$SED 1q $export_symbols`"; then
|
cannam@154
|
5859 prefix_cmds="$prefix_cmds -e 1d";
|
cannam@154
|
5860 fi~
|
cannam@154
|
5861 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
|
cannam@154
|
5862 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
|
cannam@154
|
5863 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
|
cannam@154
|
5864 emximp -o $lib $output_objdir/$libname.def'
|
cannam@154
|
5865 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
|
cannam@154
|
5866 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
cannam@154
|
5867 ;;
|
cannam@154
|
5868
|
cannam@154
|
5869 osf3*)
|
cannam@154
|
5870 if test yes = "$GCC"; then
|
cannam@154
|
5871 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
|
cannam@154
|
5872 _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'
|
cannam@154
|
5873 else
|
cannam@154
|
5874 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
|
cannam@154
|
5875 _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'
|
cannam@154
|
5876 fi
|
cannam@154
|
5877 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
|
cannam@154
|
5878 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
|
cannam@154
|
5879 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
cannam@154
|
5880 ;;
|
cannam@154
|
5881
|
cannam@154
|
5882 osf4* | osf5*) # as osf3* with the addition of -msym flag
|
cannam@154
|
5883 if test yes = "$GCC"; then
|
cannam@154
|
5884 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
|
cannam@154
|
5885 _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'
|
cannam@154
|
5886 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
|
cannam@154
|
5887 else
|
cannam@154
|
5888 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
|
cannam@154
|
5889 _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'
|
cannam@154
|
5890 _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~
|
cannam@154
|
5891 $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'
|
cannam@154
|
5892
|
cannam@154
|
5893 # Both c and cxx compiler support -rpath directly
|
cannam@154
|
5894 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
|
cannam@154
|
5895 fi
|
cannam@154
|
5896 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
|
cannam@154
|
5897 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
cannam@154
|
5898 ;;
|
cannam@154
|
5899
|
cannam@154
|
5900 solaris*)
|
cannam@154
|
5901 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
|
cannam@154
|
5902 if test yes = "$GCC"; then
|
cannam@154
|
5903 wlarc='$wl'
|
cannam@154
|
5904 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
5905 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
cannam@154
|
5906 $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'
|
cannam@154
|
5907 else
|
cannam@154
|
5908 case `$CC -V 2>&1` in
|
cannam@154
|
5909 *"Compilers 5.0"*)
|
cannam@154
|
5910 wlarc=''
|
cannam@154
|
5911 _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@154
|
5912 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
cannam@154
|
5913 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
|
cannam@154
|
5914 ;;
|
cannam@154
|
5915 *)
|
cannam@154
|
5916 wlarc='$wl'
|
cannam@154
|
5917 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
5918 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
cannam@154
|
5919 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
cannam@154
|
5920 ;;
|
cannam@154
|
5921 esac
|
cannam@154
|
5922 fi
|
cannam@154
|
5923 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
cannam@154
|
5924 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@154
|
5925 case $host_os in
|
cannam@154
|
5926 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
|
cannam@154
|
5927 *)
|
cannam@154
|
5928 # The compiler driver will combine and reorder linker options,
|
cannam@154
|
5929 # but understands '-z linker_flag'. GCC discards it without '$wl',
|
cannam@154
|
5930 # but is careful enough not to reorder.
|
cannam@154
|
5931 # Supported since Solaris 2.6 (maybe 2.5.1?)
|
cannam@154
|
5932 if test yes = "$GCC"; then
|
cannam@154
|
5933 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
|
cannam@154
|
5934 else
|
cannam@154
|
5935 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
|
cannam@154
|
5936 fi
|
cannam@154
|
5937 ;;
|
cannam@154
|
5938 esac
|
cannam@154
|
5939 _LT_TAGVAR(link_all_deplibs, $1)=yes
|
cannam@154
|
5940 ;;
|
cannam@154
|
5941
|
cannam@154
|
5942 sunos4*)
|
cannam@154
|
5943 if test sequent = "$host_vendor"; then
|
cannam@154
|
5944 # Use $CC to link under sequent, because it throws in some extra .o
|
cannam@154
|
5945 # files that make .init and .fini sections work.
|
cannam@154
|
5946 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
5947 else
|
cannam@154
|
5948 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
|
cannam@154
|
5949 fi
|
cannam@154
|
5950 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
cannam@154
|
5951 _LT_TAGVAR(hardcode_direct, $1)=yes
|
cannam@154
|
5952 _LT_TAGVAR(hardcode_minus_L, $1)=yes
|
cannam@154
|
5953 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@154
|
5954 ;;
|
cannam@154
|
5955
|
cannam@154
|
5956 sysv4)
|
cannam@154
|
5957 case $host_vendor in
|
cannam@154
|
5958 sni)
|
cannam@154
|
5959 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@154
|
5960 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
|
cannam@154
|
5961 ;;
|
cannam@154
|
5962 siemens)
|
cannam@154
|
5963 ## LD is ld it makes a PLAMLIB
|
cannam@154
|
5964 ## CC just makes a GrossModule.
|
cannam@154
|
5965 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
|
cannam@154
|
5966 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
|
cannam@154
|
5967 _LT_TAGVAR(hardcode_direct, $1)=no
|
cannam@154
|
5968 ;;
|
cannam@154
|
5969 motorola)
|
cannam@154
|
5970 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@154
|
5971 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
|
cannam@154
|
5972 ;;
|
cannam@154
|
5973 esac
|
cannam@154
|
5974 runpath_var='LD_RUN_PATH'
|
cannam@154
|
5975 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@154
|
5976 ;;
|
cannam@154
|
5977
|
cannam@154
|
5978 sysv4.3*)
|
cannam@154
|
5979 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@154
|
5980 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@154
|
5981 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
|
cannam@154
|
5982 ;;
|
cannam@154
|
5983
|
cannam@154
|
5984 sysv4*MP*)
|
cannam@154
|
5985 if test -d /usr/nec; then
|
cannam@154
|
5986 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@154
|
5987 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@154
|
5988 runpath_var=LD_RUN_PATH
|
cannam@154
|
5989 hardcode_runpath_var=yes
|
cannam@154
|
5990 _LT_TAGVAR(ld_shlibs, $1)=yes
|
cannam@154
|
5991 fi
|
cannam@154
|
5992 ;;
|
cannam@154
|
5993
|
cannam@154
|
5994 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
|
cannam@154
|
5995 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
|
cannam@154
|
5996 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
cannam@154
|
5997 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@154
|
5998 runpath_var='LD_RUN_PATH'
|
cannam@154
|
5999
|
cannam@154
|
6000 if test yes = "$GCC"; then
|
cannam@154
|
6001 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
6002 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
6003 else
|
cannam@154
|
6004 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
6005 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
6006 fi
|
cannam@154
|
6007 ;;
|
cannam@154
|
6008
|
cannam@154
|
6009 sysv5* | sco3.2v5* | sco5v6*)
|
cannam@154
|
6010 # Note: We CANNOT use -z defs as we might desire, because we do not
|
cannam@154
|
6011 # link with -lc, and that would cause any symbols used from libc to
|
cannam@154
|
6012 # always be unresolved, which means just about no library would
|
cannam@154
|
6013 # ever link correctly. If we're not using GNU ld we use -z text
|
cannam@154
|
6014 # though, which does catch some bad symbols but isn't as heavy-handed
|
cannam@154
|
6015 # as -z defs.
|
cannam@154
|
6016 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
|
cannam@154
|
6017 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
|
cannam@154
|
6018 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
cannam@154
|
6019 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@154
|
6020 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
|
cannam@154
|
6021 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
|
cannam@154
|
6022 _LT_TAGVAR(link_all_deplibs, $1)=yes
|
cannam@154
|
6023 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
|
cannam@154
|
6024 runpath_var='LD_RUN_PATH'
|
cannam@154
|
6025
|
cannam@154
|
6026 if test yes = "$GCC"; then
|
cannam@154
|
6027 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
6028 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
6029 else
|
cannam@154
|
6030 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
6031 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
6032 fi
|
cannam@154
|
6033 ;;
|
cannam@154
|
6034
|
cannam@154
|
6035 uts4*)
|
cannam@154
|
6036 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@154
|
6037 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
cannam@154
|
6038 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@154
|
6039 ;;
|
cannam@154
|
6040
|
cannam@154
|
6041 *)
|
cannam@154
|
6042 _LT_TAGVAR(ld_shlibs, $1)=no
|
cannam@154
|
6043 ;;
|
cannam@154
|
6044 esac
|
cannam@154
|
6045
|
cannam@154
|
6046 if test sni = "$host_vendor"; then
|
cannam@154
|
6047 case $host in
|
cannam@154
|
6048 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
cannam@154
|
6049 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym'
|
cannam@154
|
6050 ;;
|
cannam@154
|
6051 esac
|
cannam@154
|
6052 fi
|
cannam@154
|
6053 fi
|
cannam@154
|
6054 ])
|
cannam@154
|
6055 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
|
cannam@154
|
6056 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
|
cannam@154
|
6057
|
cannam@154
|
6058 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
|
cannam@154
|
6059
|
cannam@154
|
6060 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
|
cannam@154
|
6061 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
|
cannam@154
|
6062 _LT_DECL([], [extract_expsyms_cmds], [2],
|
cannam@154
|
6063 [The commands to extract the exported symbol list from a shared archive])
|
cannam@154
|
6064
|
cannam@154
|
6065 #
|
cannam@154
|
6066 # Do we need to explicitly link libc?
|
cannam@154
|
6067 #
|
cannam@154
|
6068 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
|
cannam@154
|
6069 x|xyes)
|
cannam@154
|
6070 # Assume -lc should be added
|
cannam@154
|
6071 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
|
cannam@154
|
6072
|
cannam@154
|
6073 if test yes,yes = "$GCC,$enable_shared"; then
|
cannam@154
|
6074 case $_LT_TAGVAR(archive_cmds, $1) in
|
cannam@154
|
6075 *'~'*)
|
cannam@154
|
6076 # FIXME: we may have to deal with multi-command sequences.
|
cannam@154
|
6077 ;;
|
cannam@154
|
6078 '$CC '*)
|
cannam@154
|
6079 # Test whether the compiler implicitly links with -lc since on some
|
cannam@154
|
6080 # systems, -lgcc has to come before -lc. If gcc already passes -lc
|
cannam@154
|
6081 # to ld, don't add -lc before -lgcc.
|
cannam@154
|
6082 AC_CACHE_CHECK([whether -lc should be explicitly linked in],
|
cannam@154
|
6083 [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
|
cannam@154
|
6084 [$RM conftest*
|
cannam@154
|
6085 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
cannam@154
|
6086
|
cannam@154
|
6087 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
|
cannam@154
|
6088 soname=conftest
|
cannam@154
|
6089 lib=conftest
|
cannam@154
|
6090 libobjs=conftest.$ac_objext
|
cannam@154
|
6091 deplibs=
|
cannam@154
|
6092 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
|
cannam@154
|
6093 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
|
cannam@154
|
6094 compiler_flags=-v
|
cannam@154
|
6095 linker_flags=-v
|
cannam@154
|
6096 verstring=
|
cannam@154
|
6097 output_objdir=.
|
cannam@154
|
6098 libname=conftest
|
cannam@154
|
6099 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
|
cannam@154
|
6100 _LT_TAGVAR(allow_undefined_flag, $1)=
|
cannam@154
|
6101 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
|
cannam@154
|
6102 then
|
cannam@154
|
6103 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
cannam@154
|
6104 else
|
cannam@154
|
6105 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
|
cannam@154
|
6106 fi
|
cannam@154
|
6107 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
|
cannam@154
|
6108 else
|
cannam@154
|
6109 cat conftest.err 1>&5
|
cannam@154
|
6110 fi
|
cannam@154
|
6111 $RM conftest*
|
cannam@154
|
6112 ])
|
cannam@154
|
6113 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
|
cannam@154
|
6114 ;;
|
cannam@154
|
6115 esac
|
cannam@154
|
6116 fi
|
cannam@154
|
6117 ;;
|
cannam@154
|
6118 esac
|
cannam@154
|
6119
|
cannam@154
|
6120 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
|
cannam@154
|
6121 [Whether or not to add -lc for building shared libraries])
|
cannam@154
|
6122 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
|
cannam@154
|
6123 [enable_shared_with_static_runtimes], [0],
|
cannam@154
|
6124 [Whether or not to disallow shared libs when runtime libs are static])
|
cannam@154
|
6125 _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
|
cannam@154
|
6126 [Compiler flag to allow reflexive dlopens])
|
cannam@154
|
6127 _LT_TAGDECL([], [whole_archive_flag_spec], [1],
|
cannam@154
|
6128 [Compiler flag to generate shared objects directly from archives])
|
cannam@154
|
6129 _LT_TAGDECL([], [compiler_needs_object], [1],
|
cannam@154
|
6130 [Whether the compiler copes with passing no objects directly])
|
cannam@154
|
6131 _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
|
cannam@154
|
6132 [Create an old-style archive from a shared archive])
|
cannam@154
|
6133 _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
|
cannam@154
|
6134 [Create a temporary old-style archive to link instead of a shared archive])
|
cannam@154
|
6135 _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
|
cannam@154
|
6136 _LT_TAGDECL([], [archive_expsym_cmds], [2])
|
cannam@154
|
6137 _LT_TAGDECL([], [module_cmds], [2],
|
cannam@154
|
6138 [Commands used to build a loadable module if different from building
|
cannam@154
|
6139 a shared archive.])
|
cannam@154
|
6140 _LT_TAGDECL([], [module_expsym_cmds], [2])
|
cannam@154
|
6141 _LT_TAGDECL([], [with_gnu_ld], [1],
|
cannam@154
|
6142 [Whether we are building with GNU ld or not])
|
cannam@154
|
6143 _LT_TAGDECL([], [allow_undefined_flag], [1],
|
cannam@154
|
6144 [Flag that allows shared libraries with undefined symbols to be built])
|
cannam@154
|
6145 _LT_TAGDECL([], [no_undefined_flag], [1],
|
cannam@154
|
6146 [Flag that enforces no undefined symbols])
|
cannam@154
|
6147 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
|
cannam@154
|
6148 [Flag to hardcode $libdir into a binary during linking.
|
cannam@154
|
6149 This must work even if $libdir does not exist])
|
cannam@154
|
6150 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
|
cannam@154
|
6151 [Whether we need a single "-rpath" flag with a separated argument])
|
cannam@154
|
6152 _LT_TAGDECL([], [hardcode_direct], [0],
|
cannam@154
|
6153 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
|
cannam@154
|
6154 DIR into the resulting binary])
|
cannam@154
|
6155 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
|
cannam@154
|
6156 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
|
cannam@154
|
6157 DIR into the resulting binary and the resulting library dependency is
|
cannam@154
|
6158 "absolute", i.e impossible to change by setting $shlibpath_var if the
|
cannam@154
|
6159 library is relocated])
|
cannam@154
|
6160 _LT_TAGDECL([], [hardcode_minus_L], [0],
|
cannam@154
|
6161 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
|
cannam@154
|
6162 into the resulting binary])
|
cannam@154
|
6163 _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
|
cannam@154
|
6164 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
|
cannam@154
|
6165 into the resulting binary])
|
cannam@154
|
6166 _LT_TAGDECL([], [hardcode_automatic], [0],
|
cannam@154
|
6167 [Set to "yes" if building a shared library automatically hardcodes DIR
|
cannam@154
|
6168 into the library and all subsequent libraries and executables linked
|
cannam@154
|
6169 against it])
|
cannam@154
|
6170 _LT_TAGDECL([], [inherit_rpath], [0],
|
cannam@154
|
6171 [Set to yes if linker adds runtime paths of dependent libraries
|
cannam@154
|
6172 to runtime path list])
|
cannam@154
|
6173 _LT_TAGDECL([], [link_all_deplibs], [0],
|
cannam@154
|
6174 [Whether libtool must link a program against all its dependency libraries])
|
cannam@154
|
6175 _LT_TAGDECL([], [always_export_symbols], [0],
|
cannam@154
|
6176 [Set to "yes" if exported symbols are required])
|
cannam@154
|
6177 _LT_TAGDECL([], [export_symbols_cmds], [2],
|
cannam@154
|
6178 [The commands to list exported symbols])
|
cannam@154
|
6179 _LT_TAGDECL([], [exclude_expsyms], [1],
|
cannam@154
|
6180 [Symbols that should not be listed in the preloaded symbols])
|
cannam@154
|
6181 _LT_TAGDECL([], [include_expsyms], [1],
|
cannam@154
|
6182 [Symbols that must always be exported])
|
cannam@154
|
6183 _LT_TAGDECL([], [prelink_cmds], [2],
|
cannam@154
|
6184 [Commands necessary for linking programs (against libraries) with templates])
|
cannam@154
|
6185 _LT_TAGDECL([], [postlink_cmds], [2],
|
cannam@154
|
6186 [Commands necessary for finishing linking programs])
|
cannam@154
|
6187 _LT_TAGDECL([], [file_list_spec], [1],
|
cannam@154
|
6188 [Specify filename containing input files])
|
cannam@154
|
6189 dnl FIXME: Not yet implemented
|
cannam@154
|
6190 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
|
cannam@154
|
6191 dnl [Compiler flag to generate thread safe objects])
|
cannam@154
|
6192 ])# _LT_LINKER_SHLIBS
|
cannam@154
|
6193
|
cannam@154
|
6194
|
cannam@154
|
6195 # _LT_LANG_C_CONFIG([TAG])
|
cannam@154
|
6196 # ------------------------
|
cannam@154
|
6197 # Ensure that the configuration variables for a C compiler are suitably
|
cannam@154
|
6198 # defined. These variables are subsequently used by _LT_CONFIG to write
|
cannam@154
|
6199 # the compiler configuration to 'libtool'.
|
cannam@154
|
6200 m4_defun([_LT_LANG_C_CONFIG],
|
cannam@154
|
6201 [m4_require([_LT_DECL_EGREP])dnl
|
cannam@154
|
6202 lt_save_CC=$CC
|
cannam@154
|
6203 AC_LANG_PUSH(C)
|
cannam@154
|
6204
|
cannam@154
|
6205 # Source file extension for C test sources.
|
cannam@154
|
6206 ac_ext=c
|
cannam@154
|
6207
|
cannam@154
|
6208 # Object file extension for compiled C test sources.
|
cannam@154
|
6209 objext=o
|
cannam@154
|
6210 _LT_TAGVAR(objext, $1)=$objext
|
cannam@154
|
6211
|
cannam@154
|
6212 # Code to be used in simple compile tests
|
cannam@154
|
6213 lt_simple_compile_test_code="int some_variable = 0;"
|
cannam@154
|
6214
|
cannam@154
|
6215 # Code to be used in simple link tests
|
cannam@154
|
6216 lt_simple_link_test_code='int main(){return(0);}'
|
cannam@154
|
6217
|
cannam@154
|
6218 _LT_TAG_COMPILER
|
cannam@154
|
6219 # Save the default compiler, since it gets overwritten when the other
|
cannam@154
|
6220 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
|
cannam@154
|
6221 compiler_DEFAULT=$CC
|
cannam@154
|
6222
|
cannam@154
|
6223 # save warnings/boilerplate of simple test code
|
cannam@154
|
6224 _LT_COMPILER_BOILERPLATE
|
cannam@154
|
6225 _LT_LINKER_BOILERPLATE
|
cannam@154
|
6226
|
cannam@154
|
6227 ## CAVEAT EMPTOR:
|
cannam@154
|
6228 ## There is no encapsulation within the following macros, do not change
|
cannam@154
|
6229 ## the running order or otherwise move them around unless you know exactly
|
cannam@154
|
6230 ## what you are doing...
|
cannam@154
|
6231 if test -n "$compiler"; then
|
cannam@154
|
6232 _LT_COMPILER_NO_RTTI($1)
|
cannam@154
|
6233 _LT_COMPILER_PIC($1)
|
cannam@154
|
6234 _LT_COMPILER_C_O($1)
|
cannam@154
|
6235 _LT_COMPILER_FILE_LOCKS($1)
|
cannam@154
|
6236 _LT_LINKER_SHLIBS($1)
|
cannam@154
|
6237 _LT_SYS_DYNAMIC_LINKER($1)
|
cannam@154
|
6238 _LT_LINKER_HARDCODE_LIBPATH($1)
|
cannam@154
|
6239 LT_SYS_DLOPEN_SELF
|
cannam@154
|
6240 _LT_CMD_STRIPLIB
|
cannam@154
|
6241
|
cannam@154
|
6242 # Report what library types will actually be built
|
cannam@154
|
6243 AC_MSG_CHECKING([if libtool supports shared libraries])
|
cannam@154
|
6244 AC_MSG_RESULT([$can_build_shared])
|
cannam@154
|
6245
|
cannam@154
|
6246 AC_MSG_CHECKING([whether to build shared libraries])
|
cannam@154
|
6247 test no = "$can_build_shared" && enable_shared=no
|
cannam@154
|
6248
|
cannam@154
|
6249 # On AIX, shared libraries and static libraries use the same namespace, and
|
cannam@154
|
6250 # are all built from PIC.
|
cannam@154
|
6251 case $host_os in
|
cannam@154
|
6252 aix3*)
|
cannam@154
|
6253 test yes = "$enable_shared" && enable_static=no
|
cannam@154
|
6254 if test -n "$RANLIB"; then
|
cannam@154
|
6255 archive_cmds="$archive_cmds~\$RANLIB \$lib"
|
cannam@154
|
6256 postinstall_cmds='$RANLIB $lib'
|
cannam@154
|
6257 fi
|
cannam@154
|
6258 ;;
|
cannam@154
|
6259
|
cannam@154
|
6260 aix[[4-9]]*)
|
cannam@154
|
6261 if test ia64 != "$host_cpu"; then
|
cannam@154
|
6262 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
|
cannam@154
|
6263 yes,aix,yes) ;; # shared object as lib.so file only
|
cannam@154
|
6264 yes,svr4,*) ;; # shared object as lib.so archive member only
|
cannam@154
|
6265 yes,*) enable_static=no ;; # shared object in lib.a archive as well
|
cannam@154
|
6266 esac
|
cannam@154
|
6267 fi
|
cannam@154
|
6268 ;;
|
cannam@154
|
6269 esac
|
cannam@154
|
6270 AC_MSG_RESULT([$enable_shared])
|
cannam@154
|
6271
|
cannam@154
|
6272 AC_MSG_CHECKING([whether to build static libraries])
|
cannam@154
|
6273 # Make sure either enable_shared or enable_static is yes.
|
cannam@154
|
6274 test yes = "$enable_shared" || enable_static=yes
|
cannam@154
|
6275 AC_MSG_RESULT([$enable_static])
|
cannam@154
|
6276
|
cannam@154
|
6277 _LT_CONFIG($1)
|
cannam@154
|
6278 fi
|
cannam@154
|
6279 AC_LANG_POP
|
cannam@154
|
6280 CC=$lt_save_CC
|
cannam@154
|
6281 ])# _LT_LANG_C_CONFIG
|
cannam@154
|
6282
|
cannam@154
|
6283
|
cannam@154
|
6284 # _LT_LANG_CXX_CONFIG([TAG])
|
cannam@154
|
6285 # --------------------------
|
cannam@154
|
6286 # Ensure that the configuration variables for a C++ compiler are suitably
|
cannam@154
|
6287 # defined. These variables are subsequently used by _LT_CONFIG to write
|
cannam@154
|
6288 # the compiler configuration to 'libtool'.
|
cannam@154
|
6289 m4_defun([_LT_LANG_CXX_CONFIG],
|
cannam@154
|
6290 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
cannam@154
|
6291 m4_require([_LT_DECL_EGREP])dnl
|
cannam@154
|
6292 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
|
cannam@154
|
6293 if test -n "$CXX" && ( test no != "$CXX" &&
|
cannam@154
|
6294 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
|
cannam@154
|
6295 (test g++ != "$CXX"))); then
|
cannam@154
|
6296 AC_PROG_CXXCPP
|
cannam@154
|
6297 else
|
cannam@154
|
6298 _lt_caught_CXX_error=yes
|
cannam@154
|
6299 fi
|
cannam@154
|
6300
|
cannam@154
|
6301 AC_LANG_PUSH(C++)
|
cannam@154
|
6302 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
cannam@154
|
6303 _LT_TAGVAR(allow_undefined_flag, $1)=
|
cannam@154
|
6304 _LT_TAGVAR(always_export_symbols, $1)=no
|
cannam@154
|
6305 _LT_TAGVAR(archive_expsym_cmds, $1)=
|
cannam@154
|
6306 _LT_TAGVAR(compiler_needs_object, $1)=no
|
cannam@154
|
6307 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
|
cannam@154
|
6308 _LT_TAGVAR(hardcode_direct, $1)=no
|
cannam@154
|
6309 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
|
cannam@154
|
6310 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
cannam@154
|
6311 _LT_TAGVAR(hardcode_libdir_separator, $1)=
|
cannam@154
|
6312 _LT_TAGVAR(hardcode_minus_L, $1)=no
|
cannam@154
|
6313 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
|
cannam@154
|
6314 _LT_TAGVAR(hardcode_automatic, $1)=no
|
cannam@154
|
6315 _LT_TAGVAR(inherit_rpath, $1)=no
|
cannam@154
|
6316 _LT_TAGVAR(module_cmds, $1)=
|
cannam@154
|
6317 _LT_TAGVAR(module_expsym_cmds, $1)=
|
cannam@154
|
6318 _LT_TAGVAR(link_all_deplibs, $1)=unknown
|
cannam@154
|
6319 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
|
cannam@154
|
6320 _LT_TAGVAR(reload_flag, $1)=$reload_flag
|
cannam@154
|
6321 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
|
cannam@154
|
6322 _LT_TAGVAR(no_undefined_flag, $1)=
|
cannam@154
|
6323 _LT_TAGVAR(whole_archive_flag_spec, $1)=
|
cannam@154
|
6324 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
|
cannam@154
|
6325
|
cannam@154
|
6326 # Source file extension for C++ test sources.
|
cannam@154
|
6327 ac_ext=cpp
|
cannam@154
|
6328
|
cannam@154
|
6329 # Object file extension for compiled C++ test sources.
|
cannam@154
|
6330 objext=o
|
cannam@154
|
6331 _LT_TAGVAR(objext, $1)=$objext
|
cannam@154
|
6332
|
cannam@154
|
6333 # No sense in running all these tests if we already determined that
|
cannam@154
|
6334 # the CXX compiler isn't working. Some variables (like enable_shared)
|
cannam@154
|
6335 # are currently assumed to apply to all compilers on this platform,
|
cannam@154
|
6336 # and will be corrupted by setting them based on a non-working compiler.
|
cannam@154
|
6337 if test yes != "$_lt_caught_CXX_error"; then
|
cannam@154
|
6338 # Code to be used in simple compile tests
|
cannam@154
|
6339 lt_simple_compile_test_code="int some_variable = 0;"
|
cannam@154
|
6340
|
cannam@154
|
6341 # Code to be used in simple link tests
|
cannam@154
|
6342 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
|
cannam@154
|
6343
|
cannam@154
|
6344 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
cannam@154
|
6345 _LT_TAG_COMPILER
|
cannam@154
|
6346
|
cannam@154
|
6347 # save warnings/boilerplate of simple test code
|
cannam@154
|
6348 _LT_COMPILER_BOILERPLATE
|
cannam@154
|
6349 _LT_LINKER_BOILERPLATE
|
cannam@154
|
6350
|
cannam@154
|
6351 # Allow CC to be a program name with arguments.
|
cannam@154
|
6352 lt_save_CC=$CC
|
cannam@154
|
6353 lt_save_CFLAGS=$CFLAGS
|
cannam@154
|
6354 lt_save_LD=$LD
|
cannam@154
|
6355 lt_save_GCC=$GCC
|
cannam@154
|
6356 GCC=$GXX
|
cannam@154
|
6357 lt_save_with_gnu_ld=$with_gnu_ld
|
cannam@154
|
6358 lt_save_path_LD=$lt_cv_path_LD
|
cannam@154
|
6359 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
|
cannam@154
|
6360 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
|
cannam@154
|
6361 else
|
cannam@154
|
6362 $as_unset lt_cv_prog_gnu_ld
|
cannam@154
|
6363 fi
|
cannam@154
|
6364 if test -n "${lt_cv_path_LDCXX+set}"; then
|
cannam@154
|
6365 lt_cv_path_LD=$lt_cv_path_LDCXX
|
cannam@154
|
6366 else
|
cannam@154
|
6367 $as_unset lt_cv_path_LD
|
cannam@154
|
6368 fi
|
cannam@154
|
6369 test -z "${LDCXX+set}" || LD=$LDCXX
|
cannam@154
|
6370 CC=${CXX-"c++"}
|
cannam@154
|
6371 CFLAGS=$CXXFLAGS
|
cannam@154
|
6372 compiler=$CC
|
cannam@154
|
6373 _LT_TAGVAR(compiler, $1)=$CC
|
cannam@154
|
6374 _LT_CC_BASENAME([$compiler])
|
cannam@154
|
6375
|
cannam@154
|
6376 if test -n "$compiler"; then
|
cannam@154
|
6377 # We don't want -fno-exception when compiling C++ code, so set the
|
cannam@154
|
6378 # no_builtin_flag separately
|
cannam@154
|
6379 if test yes = "$GXX"; then
|
cannam@154
|
6380 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
|
cannam@154
|
6381 else
|
cannam@154
|
6382 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
|
cannam@154
|
6383 fi
|
cannam@154
|
6384
|
cannam@154
|
6385 if test yes = "$GXX"; then
|
cannam@154
|
6386 # Set up default GNU C++ configuration
|
cannam@154
|
6387
|
cannam@154
|
6388 LT_PATH_LD
|
cannam@154
|
6389
|
cannam@154
|
6390 # Check if GNU C++ uses GNU ld as the underlying linker, since the
|
cannam@154
|
6391 # archiving commands below assume that GNU ld is being used.
|
cannam@154
|
6392 if test yes = "$with_gnu_ld"; then
|
cannam@154
|
6393 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
|
cannam@154
|
6394 _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'
|
cannam@154
|
6395
|
cannam@154
|
6396 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
|
cannam@154
|
6397 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
|
cannam@154
|
6398
|
cannam@154
|
6399 # If archive_cmds runs LD, not CC, wlarc should be empty
|
cannam@154
|
6400 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
|
cannam@154
|
6401 # investigate it a little bit more. (MM)
|
cannam@154
|
6402 wlarc='$wl'
|
cannam@154
|
6403
|
cannam@154
|
6404 # ancient GNU ld didn't support --whole-archive et. al.
|
cannam@154
|
6405 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
|
cannam@154
|
6406 $GREP 'no-whole-archive' > /dev/null; then
|
cannam@154
|
6407 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
|
cannam@154
|
6408 else
|
cannam@154
|
6409 _LT_TAGVAR(whole_archive_flag_spec, $1)=
|
cannam@154
|
6410 fi
|
cannam@154
|
6411 else
|
cannam@154
|
6412 with_gnu_ld=no
|
cannam@154
|
6413 wlarc=
|
cannam@154
|
6414
|
cannam@154
|
6415 # A generic and very simple default shared library creation
|
cannam@154
|
6416 # command for GNU C++ for the case where it uses the native
|
cannam@154
|
6417 # linker, instead of GNU ld. If possible, this setting should
|
cannam@154
|
6418 # overridden to take advantage of the native linker features on
|
cannam@154
|
6419 # the platform it is being used on.
|
cannam@154
|
6420 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
|
cannam@154
|
6421 fi
|
cannam@154
|
6422
|
cannam@154
|
6423 # Commands to make compiler produce verbose output that lists
|
cannam@154
|
6424 # what "hidden" libraries, object files and flags are used when
|
cannam@154
|
6425 # linking a shared library.
|
cannam@154
|
6426 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
|
cannam@154
|
6427
|
cannam@154
|
6428 else
|
cannam@154
|
6429 GXX=no
|
cannam@154
|
6430 with_gnu_ld=no
|
cannam@154
|
6431 wlarc=
|
cannam@154
|
6432 fi
|
cannam@154
|
6433
|
cannam@154
|
6434 # PORTME: fill in a description of your system's C++ link characteristics
|
cannam@154
|
6435 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
|
cannam@154
|
6436 _LT_TAGVAR(ld_shlibs, $1)=yes
|
cannam@154
|
6437 case $host_os in
|
cannam@154
|
6438 aix3*)
|
cannam@154
|
6439 # FIXME: insert proper C++ library support
|
cannam@154
|
6440 _LT_TAGVAR(ld_shlibs, $1)=no
|
cannam@154
|
6441 ;;
|
cannam@154
|
6442 aix[[4-9]]*)
|
cannam@154
|
6443 if test ia64 = "$host_cpu"; then
|
cannam@154
|
6444 # On IA64, the linker does run time linking by default, so we don't
|
cannam@154
|
6445 # have to do anything special.
|
cannam@154
|
6446 aix_use_runtimelinking=no
|
cannam@154
|
6447 exp_sym_flag='-Bexport'
|
cannam@154
|
6448 no_entry_flag=
|
cannam@154
|
6449 else
|
cannam@154
|
6450 aix_use_runtimelinking=no
|
cannam@154
|
6451
|
cannam@154
|
6452 # Test if we are trying to use run time linking or normal
|
cannam@154
|
6453 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
cannam@154
|
6454 # have runtime linking enabled, and use it for executables.
|
cannam@154
|
6455 # For shared libraries, we enable/disable runtime linking
|
cannam@154
|
6456 # depending on the kind of the shared library created -
|
cannam@154
|
6457 # when "with_aix_soname,aix_use_runtimelinking" is:
|
cannam@154
|
6458 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
|
cannam@154
|
6459 # "aix,yes" lib.so shared, rtl:yes, for executables
|
cannam@154
|
6460 # lib.a static archive
|
cannam@154
|
6461 # "both,no" lib.so.V(shr.o) shared, rtl:yes
|
cannam@154
|
6462 # lib.a(lib.so.V) shared, rtl:no, for executables
|
cannam@154
|
6463 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
|
cannam@154
|
6464 # lib.a(lib.so.V) shared, rtl:no
|
cannam@154
|
6465 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
|
cannam@154
|
6466 # lib.a static archive
|
cannam@154
|
6467 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
|
cannam@154
|
6468 for ld_flag in $LDFLAGS; do
|
cannam@154
|
6469 case $ld_flag in
|
cannam@154
|
6470 *-brtl*)
|
cannam@154
|
6471 aix_use_runtimelinking=yes
|
cannam@154
|
6472 break
|
cannam@154
|
6473 ;;
|
cannam@154
|
6474 esac
|
cannam@154
|
6475 done
|
cannam@154
|
6476 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
|
cannam@154
|
6477 # With aix-soname=svr4, we create the lib.so.V shared archives only,
|
cannam@154
|
6478 # so we don't have lib.a shared libs to link our executables.
|
cannam@154
|
6479 # We have to force runtime linking in this case.
|
cannam@154
|
6480 aix_use_runtimelinking=yes
|
cannam@154
|
6481 LDFLAGS="$LDFLAGS -Wl,-brtl"
|
cannam@154
|
6482 fi
|
cannam@154
|
6483 ;;
|
cannam@154
|
6484 esac
|
cannam@154
|
6485
|
cannam@154
|
6486 exp_sym_flag='-bexport'
|
cannam@154
|
6487 no_entry_flag='-bnoentry'
|
cannam@154
|
6488 fi
|
cannam@154
|
6489
|
cannam@154
|
6490 # When large executables or shared objects are built, AIX ld can
|
cannam@154
|
6491 # have problems creating the table of contents. If linking a library
|
cannam@154
|
6492 # or program results in "error TOC overflow" add -mminimal-toc to
|
cannam@154
|
6493 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
cannam@154
|
6494 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
cannam@154
|
6495
|
cannam@154
|
6496 _LT_TAGVAR(archive_cmds, $1)=''
|
cannam@154
|
6497 _LT_TAGVAR(hardcode_direct, $1)=yes
|
cannam@154
|
6498 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
|
cannam@154
|
6499 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
|
cannam@154
|
6500 _LT_TAGVAR(link_all_deplibs, $1)=yes
|
cannam@154
|
6501 _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
|
cannam@154
|
6502 case $with_aix_soname,$aix_use_runtimelinking in
|
cannam@154
|
6503 aix,*) ;; # no import file
|
cannam@154
|
6504 svr4,* | *,yes) # use import file
|
cannam@154
|
6505 # The Import File defines what to hardcode.
|
cannam@154
|
6506 _LT_TAGVAR(hardcode_direct, $1)=no
|
cannam@154
|
6507 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
|
cannam@154
|
6508 ;;
|
cannam@154
|
6509 esac
|
cannam@154
|
6510
|
cannam@154
|
6511 if test yes = "$GXX"; then
|
cannam@154
|
6512 case $host_os in aix4.[[012]]|aix4.[[012]].*)
|
cannam@154
|
6513 # We only want to do this on AIX 4.2 and lower, the check
|
cannam@154
|
6514 # below for broken collect2 doesn't work under 4.3+
|
cannam@154
|
6515 collect2name=`$CC -print-prog-name=collect2`
|
cannam@154
|
6516 if test -f "$collect2name" &&
|
cannam@154
|
6517 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
|
cannam@154
|
6518 then
|
cannam@154
|
6519 # We have reworked collect2
|
cannam@154
|
6520 :
|
cannam@154
|
6521 else
|
cannam@154
|
6522 # We have old collect2
|
cannam@154
|
6523 _LT_TAGVAR(hardcode_direct, $1)=unsupported
|
cannam@154
|
6524 # It fails to find uninstalled libraries when the uninstalled
|
cannam@154
|
6525 # path is not listed in the libpath. Setting hardcode_minus_L
|
cannam@154
|
6526 # to unsupported forces relinking
|
cannam@154
|
6527 _LT_TAGVAR(hardcode_minus_L, $1)=yes
|
cannam@154
|
6528 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
cannam@154
|
6529 _LT_TAGVAR(hardcode_libdir_separator, $1)=
|
cannam@154
|
6530 fi
|
cannam@154
|
6531 esac
|
cannam@154
|
6532 shared_flag='-shared'
|
cannam@154
|
6533 if test yes = "$aix_use_runtimelinking"; then
|
cannam@154
|
6534 shared_flag=$shared_flag' $wl-G'
|
cannam@154
|
6535 fi
|
cannam@154
|
6536 # Need to ensure runtime linking is disabled for the traditional
|
cannam@154
|
6537 # shared library, or the linker may eventually find shared libraries
|
cannam@154
|
6538 # /with/ Import File - we do not want to mix them.
|
cannam@154
|
6539 shared_flag_aix='-shared'
|
cannam@154
|
6540 shared_flag_svr4='-shared $wl-G'
|
cannam@154
|
6541 else
|
cannam@154
|
6542 # not using gcc
|
cannam@154
|
6543 if test ia64 = "$host_cpu"; then
|
cannam@154
|
6544 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
cannam@154
|
6545 # chokes on -Wl,-G. The following line is correct:
|
cannam@154
|
6546 shared_flag='-G'
|
cannam@154
|
6547 else
|
cannam@154
|
6548 if test yes = "$aix_use_runtimelinking"; then
|
cannam@154
|
6549 shared_flag='$wl-G'
|
cannam@154
|
6550 else
|
cannam@154
|
6551 shared_flag='$wl-bM:SRE'
|
cannam@154
|
6552 fi
|
cannam@154
|
6553 shared_flag_aix='$wl-bM:SRE'
|
cannam@154
|
6554 shared_flag_svr4='$wl-G'
|
cannam@154
|
6555 fi
|
cannam@154
|
6556 fi
|
cannam@154
|
6557
|
cannam@154
|
6558 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
|
cannam@154
|
6559 # It seems that -bexpall does not export symbols beginning with
|
cannam@154
|
6560 # underscore (_), so it is better to generate a list of symbols to
|
cannam@154
|
6561 # export.
|
cannam@154
|
6562 _LT_TAGVAR(always_export_symbols, $1)=yes
|
cannam@154
|
6563 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
|
cannam@154
|
6564 # Warning - without using the other runtime loading flags (-brtl),
|
cannam@154
|
6565 # -berok will link without error, but may produce a broken library.
|
cannam@154
|
6566 # The "-G" linker flag allows undefined symbols.
|
cannam@154
|
6567 _LT_TAGVAR(no_undefined_flag, $1)='-bernotok'
|
cannam@154
|
6568 # Determine the default libpath from the value encoded in an empty
|
cannam@154
|
6569 # executable.
|
cannam@154
|
6570 _LT_SYS_MODULE_PATH_AIX([$1])
|
cannam@154
|
6571 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
|
cannam@154
|
6572
|
cannam@154
|
6573 _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
|
cannam@154
|
6574 else
|
cannam@154
|
6575 if test ia64 = "$host_cpu"; then
|
cannam@154
|
6576 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
|
cannam@154
|
6577 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
|
cannam@154
|
6578 _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"
|
cannam@154
|
6579 else
|
cannam@154
|
6580 # Determine the default libpath from the value encoded in an
|
cannam@154
|
6581 # empty executable.
|
cannam@154
|
6582 _LT_SYS_MODULE_PATH_AIX([$1])
|
cannam@154
|
6583 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
|
cannam@154
|
6584 # Warning - without using the other run time loading flags,
|
cannam@154
|
6585 # -berok will link without error, but may produce a broken library.
|
cannam@154
|
6586 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
|
cannam@154
|
6587 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
|
cannam@154
|
6588 if test yes = "$with_gnu_ld"; then
|
cannam@154
|
6589 # We only use this code for GNU lds that support --whole-archive.
|
cannam@154
|
6590 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
|
cannam@154
|
6591 else
|
cannam@154
|
6592 # Exported symbols can be pulled into shared objects from archives
|
cannam@154
|
6593 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
|
cannam@154
|
6594 fi
|
cannam@154
|
6595 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
|
cannam@154
|
6596 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
|
cannam@154
|
6597 # -brtl affects multiple linker settings, -berok does not and is overridden later
|
cannam@154
|
6598 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
|
cannam@154
|
6599 if test svr4 != "$with_aix_soname"; then
|
cannam@154
|
6600 # This is similar to how AIX traditionally builds its shared
|
cannam@154
|
6601 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
|
cannam@154
|
6602 _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'
|
cannam@154
|
6603 fi
|
cannam@154
|
6604 if test aix != "$with_aix_soname"; then
|
cannam@154
|
6605 _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'
|
cannam@154
|
6606 else
|
cannam@154
|
6607 # used by -dlpreopen to get the symbols
|
cannam@154
|
6608 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
|
cannam@154
|
6609 fi
|
cannam@154
|
6610 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
|
cannam@154
|
6611 fi
|
cannam@154
|
6612 fi
|
cannam@154
|
6613 ;;
|
cannam@154
|
6614
|
cannam@154
|
6615 beos*)
|
cannam@154
|
6616 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
cannam@154
|
6617 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
|
cannam@154
|
6618 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
|
cannam@154
|
6619 # support --undefined. This deserves some investigation. FIXME
|
cannam@154
|
6620 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
cannam@154
|
6621 else
|
cannam@154
|
6622 _LT_TAGVAR(ld_shlibs, $1)=no
|
cannam@154
|
6623 fi
|
cannam@154
|
6624 ;;
|
cannam@154
|
6625
|
cannam@154
|
6626 chorus*)
|
cannam@154
|
6627 case $cc_basename in
|
cannam@154
|
6628 *)
|
cannam@154
|
6629 # FIXME: insert proper C++ library support
|
cannam@154
|
6630 _LT_TAGVAR(ld_shlibs, $1)=no
|
cannam@154
|
6631 ;;
|
cannam@154
|
6632 esac
|
cannam@154
|
6633 ;;
|
cannam@154
|
6634
|
cannam@154
|
6635 cygwin* | mingw* | pw32* | cegcc*)
|
cannam@154
|
6636 case $GXX,$cc_basename in
|
cannam@154
|
6637 ,cl* | no,cl*)
|
cannam@154
|
6638 # Native MSVC
|
cannam@154
|
6639 # hardcode_libdir_flag_spec is actually meaningless, as there is
|
cannam@154
|
6640 # no search path for DLLs.
|
cannam@154
|
6641 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
|
cannam@154
|
6642 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
|
cannam@154
|
6643 _LT_TAGVAR(always_export_symbols, $1)=yes
|
cannam@154
|
6644 _LT_TAGVAR(file_list_spec, $1)='@'
|
cannam@154
|
6645 # Tell ltmain to make .lib files, not .a files.
|
cannam@154
|
6646 libext=lib
|
cannam@154
|
6647 # Tell ltmain to make .dll files, not .so files.
|
cannam@154
|
6648 shrext_cmds=.dll
|
cannam@154
|
6649 # FIXME: Setting linknames here is a bad hack.
|
cannam@154
|
6650 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
|
cannam@154
|
6651 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
|
cannam@154
|
6652 cp "$export_symbols" "$output_objdir/$soname.def";
|
cannam@154
|
6653 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
|
cannam@154
|
6654 else
|
cannam@154
|
6655 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
|
cannam@154
|
6656 fi~
|
cannam@154
|
6657 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
|
cannam@154
|
6658 linknames='
|
cannam@154
|
6659 # The linker will not automatically build a static lib if we build a DLL.
|
cannam@154
|
6660 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
|
cannam@154
|
6661 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
cannam@154
|
6662 # Don't use ranlib
|
cannam@154
|
6663 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
|
cannam@154
|
6664 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
|
cannam@154
|
6665 lt_tool_outputfile="@TOOL_OUTPUT@"~
|
cannam@154
|
6666 case $lt_outputfile in
|
cannam@154
|
6667 *.exe|*.EXE) ;;
|
cannam@154
|
6668 *)
|
cannam@154
|
6669 lt_outputfile=$lt_outputfile.exe
|
cannam@154
|
6670 lt_tool_outputfile=$lt_tool_outputfile.exe
|
cannam@154
|
6671 ;;
|
cannam@154
|
6672 esac~
|
cannam@154
|
6673 func_to_tool_file "$lt_outputfile"~
|
cannam@154
|
6674 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
|
cannam@154
|
6675 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
|
cannam@154
|
6676 $RM "$lt_outputfile.manifest";
|
cannam@154
|
6677 fi'
|
cannam@154
|
6678 ;;
|
cannam@154
|
6679 *)
|
cannam@154
|
6680 # g++
|
cannam@154
|
6681 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
|
cannam@154
|
6682 # as there is no search path for DLLs.
|
cannam@154
|
6683 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
cannam@154
|
6684 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
|
cannam@154
|
6685 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
|
cannam@154
|
6686 _LT_TAGVAR(always_export_symbols, $1)=no
|
cannam@154
|
6687 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
cannam@154
|
6688
|
cannam@154
|
6689 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
|
cannam@154
|
6690 _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'
|
cannam@154
|
6691 # If the export-symbols file already is a .def file, use it as
|
cannam@154
|
6692 # is; otherwise, prepend EXPORTS...
|
cannam@154
|
6693 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
|
cannam@154
|
6694 cp $export_symbols $output_objdir/$soname.def;
|
cannam@154
|
6695 else
|
cannam@154
|
6696 echo EXPORTS > $output_objdir/$soname.def;
|
cannam@154
|
6697 cat $export_symbols >> $output_objdir/$soname.def;
|
cannam@154
|
6698 fi~
|
cannam@154
|
6699 $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'
|
cannam@154
|
6700 else
|
cannam@154
|
6701 _LT_TAGVAR(ld_shlibs, $1)=no
|
cannam@154
|
6702 fi
|
cannam@154
|
6703 ;;
|
cannam@154
|
6704 esac
|
cannam@154
|
6705 ;;
|
cannam@154
|
6706 darwin* | rhapsody*)
|
cannam@154
|
6707 _LT_DARWIN_LINKER_FEATURES($1)
|
cannam@154
|
6708 ;;
|
cannam@154
|
6709
|
cannam@154
|
6710 os2*)
|
cannam@154
|
6711 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
cannam@154
|
6712 _LT_TAGVAR(hardcode_minus_L, $1)=yes
|
cannam@154
|
6713 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
|
cannam@154
|
6714 shrext_cmds=.dll
|
cannam@154
|
6715 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
|
cannam@154
|
6716 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
|
cannam@154
|
6717 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
|
cannam@154
|
6718 $ECHO EXPORTS >> $output_objdir/$libname.def~
|
cannam@154
|
6719 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
|
cannam@154
|
6720 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
|
cannam@154
|
6721 emximp -o $lib $output_objdir/$libname.def'
|
cannam@154
|
6722 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
|
cannam@154
|
6723 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
|
cannam@154
|
6724 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
|
cannam@154
|
6725 $ECHO EXPORTS >> $output_objdir/$libname.def~
|
cannam@154
|
6726 prefix_cmds="$SED"~
|
cannam@154
|
6727 if test EXPORTS = "`$SED 1q $export_symbols`"; then
|
cannam@154
|
6728 prefix_cmds="$prefix_cmds -e 1d";
|
cannam@154
|
6729 fi~
|
cannam@154
|
6730 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
|
cannam@154
|
6731 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
|
cannam@154
|
6732 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
|
cannam@154
|
6733 emximp -o $lib $output_objdir/$libname.def'
|
cannam@154
|
6734 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
|
cannam@154
|
6735 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
cannam@154
|
6736 ;;
|
cannam@154
|
6737
|
cannam@154
|
6738 dgux*)
|
cannam@154
|
6739 case $cc_basename in
|
cannam@154
|
6740 ec++*)
|
cannam@154
|
6741 # FIXME: insert proper C++ library support
|
cannam@154
|
6742 _LT_TAGVAR(ld_shlibs, $1)=no
|
cannam@154
|
6743 ;;
|
cannam@154
|
6744 ghcx*)
|
cannam@154
|
6745 # Green Hills C++ Compiler
|
cannam@154
|
6746 # FIXME: insert proper C++ library support
|
cannam@154
|
6747 _LT_TAGVAR(ld_shlibs, $1)=no
|
cannam@154
|
6748 ;;
|
cannam@154
|
6749 *)
|
cannam@154
|
6750 # FIXME: insert proper C++ library support
|
cannam@154
|
6751 _LT_TAGVAR(ld_shlibs, $1)=no
|
cannam@154
|
6752 ;;
|
cannam@154
|
6753 esac
|
cannam@154
|
6754 ;;
|
cannam@154
|
6755
|
cannam@154
|
6756 freebsd2.*)
|
cannam@154
|
6757 # C++ shared libraries reported to be fairly broken before
|
cannam@154
|
6758 # switch to ELF
|
cannam@154
|
6759 _LT_TAGVAR(ld_shlibs, $1)=no
|
cannam@154
|
6760 ;;
|
cannam@154
|
6761
|
cannam@154
|
6762 freebsd-elf*)
|
cannam@154
|
6763 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
cannam@154
|
6764 ;;
|
cannam@154
|
6765
|
cannam@154
|
6766 freebsd* | dragonfly*)
|
cannam@154
|
6767 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
|
cannam@154
|
6768 # conventions
|
cannam@154
|
6769 _LT_TAGVAR(ld_shlibs, $1)=yes
|
cannam@154
|
6770 ;;
|
cannam@154
|
6771
|
cannam@154
|
6772 haiku*)
|
cannam@154
|
6773 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
cannam@154
|
6774 _LT_TAGVAR(link_all_deplibs, $1)=yes
|
cannam@154
|
6775 ;;
|
cannam@154
|
6776
|
cannam@154
|
6777 hpux9*)
|
cannam@154
|
6778 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
|
cannam@154
|
6779 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
cannam@154
|
6780 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
|
cannam@154
|
6781 _LT_TAGVAR(hardcode_direct, $1)=yes
|
cannam@154
|
6782 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
|
cannam@154
|
6783 # but as the default
|
cannam@154
|
6784 # location of the library.
|
cannam@154
|
6785
|
cannam@154
|
6786 case $cc_basename in
|
cannam@154
|
6787 CC*)
|
cannam@154
|
6788 # FIXME: insert proper C++ library support
|
cannam@154
|
6789 _LT_TAGVAR(ld_shlibs, $1)=no
|
cannam@154
|
6790 ;;
|
cannam@154
|
6791 aCC*)
|
cannam@154
|
6792 _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'
|
cannam@154
|
6793 # Commands to make compiler produce verbose output that lists
|
cannam@154
|
6794 # what "hidden" libraries, object files and flags are used when
|
cannam@154
|
6795 # linking a shared library.
|
cannam@154
|
6796 #
|
cannam@154
|
6797 # There doesn't appear to be a way to prevent this compiler from
|
cannam@154
|
6798 # explicitly linking system object files so we need to strip them
|
cannam@154
|
6799 # from the output so that they don't get included in the library
|
cannam@154
|
6800 # dependencies.
|
cannam@154
|
6801 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"'
|
cannam@154
|
6802 ;;
|
cannam@154
|
6803 *)
|
cannam@154
|
6804 if test yes = "$GXX"; then
|
cannam@154
|
6805 _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'
|
cannam@154
|
6806 else
|
cannam@154
|
6807 # FIXME: insert proper C++ library support
|
cannam@154
|
6808 _LT_TAGVAR(ld_shlibs, $1)=no
|
cannam@154
|
6809 fi
|
cannam@154
|
6810 ;;
|
cannam@154
|
6811 esac
|
cannam@154
|
6812 ;;
|
cannam@154
|
6813
|
cannam@154
|
6814 hpux10*|hpux11*)
|
cannam@154
|
6815 if test no = "$with_gnu_ld"; then
|
cannam@154
|
6816 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
|
cannam@154
|
6817 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
cannam@154
|
6818
|
cannam@154
|
6819 case $host_cpu in
|
cannam@154
|
6820 hppa*64*|ia64*)
|
cannam@154
|
6821 ;;
|
cannam@154
|
6822 *)
|
cannam@154
|
6823 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
|
cannam@154
|
6824 ;;
|
cannam@154
|
6825 esac
|
cannam@154
|
6826 fi
|
cannam@154
|
6827 case $host_cpu in
|
cannam@154
|
6828 hppa*64*|ia64*)
|
cannam@154
|
6829 _LT_TAGVAR(hardcode_direct, $1)=no
|
cannam@154
|
6830 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@154
|
6831 ;;
|
cannam@154
|
6832 *)
|
cannam@154
|
6833 _LT_TAGVAR(hardcode_direct, $1)=yes
|
cannam@154
|
6834 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
|
cannam@154
|
6835 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
|
cannam@154
|
6836 # but as the default
|
cannam@154
|
6837 # location of the library.
|
cannam@154
|
6838 ;;
|
cannam@154
|
6839 esac
|
cannam@154
|
6840
|
cannam@154
|
6841 case $cc_basename in
|
cannam@154
|
6842 CC*)
|
cannam@154
|
6843 # FIXME: insert proper C++ library support
|
cannam@154
|
6844 _LT_TAGVAR(ld_shlibs, $1)=no
|
cannam@154
|
6845 ;;
|
cannam@154
|
6846 aCC*)
|
cannam@154
|
6847 case $host_cpu in
|
cannam@154
|
6848 hppa*64*)
|
cannam@154
|
6849 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
cannam@154
|
6850 ;;
|
cannam@154
|
6851 ia64*)
|
cannam@154
|
6852 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
cannam@154
|
6853 ;;
|
cannam@154
|
6854 *)
|
cannam@154
|
6855 _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'
|
cannam@154
|
6856 ;;
|
cannam@154
|
6857 esac
|
cannam@154
|
6858 # Commands to make compiler produce verbose output that lists
|
cannam@154
|
6859 # what "hidden" libraries, object files and flags are used when
|
cannam@154
|
6860 # linking a shared library.
|
cannam@154
|
6861 #
|
cannam@154
|
6862 # There doesn't appear to be a way to prevent this compiler from
|
cannam@154
|
6863 # explicitly linking system object files so we need to strip them
|
cannam@154
|
6864 # from the output so that they don't get included in the library
|
cannam@154
|
6865 # dependencies.
|
cannam@154
|
6866 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"'
|
cannam@154
|
6867 ;;
|
cannam@154
|
6868 *)
|
cannam@154
|
6869 if test yes = "$GXX"; then
|
cannam@154
|
6870 if test no = "$with_gnu_ld"; then
|
cannam@154
|
6871 case $host_cpu in
|
cannam@154
|
6872 hppa*64*)
|
cannam@154
|
6873 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
cannam@154
|
6874 ;;
|
cannam@154
|
6875 ia64*)
|
cannam@154
|
6876 _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'
|
cannam@154
|
6877 ;;
|
cannam@154
|
6878 *)
|
cannam@154
|
6879 _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'
|
cannam@154
|
6880 ;;
|
cannam@154
|
6881 esac
|
cannam@154
|
6882 fi
|
cannam@154
|
6883 else
|
cannam@154
|
6884 # FIXME: insert proper C++ library support
|
cannam@154
|
6885 _LT_TAGVAR(ld_shlibs, $1)=no
|
cannam@154
|
6886 fi
|
cannam@154
|
6887 ;;
|
cannam@154
|
6888 esac
|
cannam@154
|
6889 ;;
|
cannam@154
|
6890
|
cannam@154
|
6891 interix[[3-9]]*)
|
cannam@154
|
6892 _LT_TAGVAR(hardcode_direct, $1)=no
|
cannam@154
|
6893 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@154
|
6894 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
|
cannam@154
|
6895 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
|
cannam@154
|
6896 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
|
cannam@154
|
6897 # Instead, shared libraries are loaded at an image base (0x10000000 by
|
cannam@154
|
6898 # default) and relocated if they conflict, which is a slow very memory
|
cannam@154
|
6899 # consuming and fragmenting process. To avoid this, we pick a random,
|
cannam@154
|
6900 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
|
cannam@154
|
6901 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
|
cannam@154
|
6902 _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'
|
cannam@154
|
6903 _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'
|
cannam@154
|
6904 ;;
|
cannam@154
|
6905 irix5* | irix6*)
|
cannam@154
|
6906 case $cc_basename in
|
cannam@154
|
6907 CC*)
|
cannam@154
|
6908 # SGI C++
|
cannam@154
|
6909 _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'
|
cannam@154
|
6910
|
cannam@154
|
6911 # Archives containing C++ object files must be created using
|
cannam@154
|
6912 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
|
cannam@154
|
6913 # necessary to make sure instantiated templates are included
|
cannam@154
|
6914 # in the archive.
|
cannam@154
|
6915 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
|
cannam@154
|
6916 ;;
|
cannam@154
|
6917 *)
|
cannam@154
|
6918 if test yes = "$GXX"; then
|
cannam@154
|
6919 if test no = "$with_gnu_ld"; then
|
cannam@154
|
6920 _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'
|
cannam@154
|
6921 else
|
cannam@154
|
6922 _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'
|
cannam@154
|
6923 fi
|
cannam@154
|
6924 fi
|
cannam@154
|
6925 _LT_TAGVAR(link_all_deplibs, $1)=yes
|
cannam@154
|
6926 ;;
|
cannam@154
|
6927 esac
|
cannam@154
|
6928 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
|
cannam@154
|
6929 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
cannam@154
|
6930 _LT_TAGVAR(inherit_rpath, $1)=yes
|
cannam@154
|
6931 ;;
|
cannam@154
|
6932
|
cannam@154
|
6933 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
|
cannam@154
|
6934 case $cc_basename in
|
cannam@154
|
6935 KCC*)
|
cannam@154
|
6936 # Kuck and Associates, Inc. (KAI) C++ Compiler
|
cannam@154
|
6937
|
cannam@154
|
6938 # KCC will only create a shared library if the output file
|
cannam@154
|
6939 # ends with ".so" (or ".sl" for HP-UX), so rename the library
|
cannam@154
|
6940 # to its proper name (with version) after linking.
|
cannam@154
|
6941 _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'
|
cannam@154
|
6942 _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'
|
cannam@154
|
6943 # Commands to make compiler produce verbose output that lists
|
cannam@154
|
6944 # what "hidden" libraries, object files and flags are used when
|
cannam@154
|
6945 # linking a shared library.
|
cannam@154
|
6946 #
|
cannam@154
|
6947 # There doesn't appear to be a way to prevent this compiler from
|
cannam@154
|
6948 # explicitly linking system object files so we need to strip them
|
cannam@154
|
6949 # from the output so that they don't get included in the library
|
cannam@154
|
6950 # dependencies.
|
cannam@154
|
6951 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"'
|
cannam@154
|
6952
|
cannam@154
|
6953 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
|
cannam@154
|
6954 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
|
cannam@154
|
6955
|
cannam@154
|
6956 # Archives containing C++ object files must be created using
|
cannam@154
|
6957 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
|
cannam@154
|
6958 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
|
cannam@154
|
6959 ;;
|
cannam@154
|
6960 icpc* | ecpc* )
|
cannam@154
|
6961 # Intel C++
|
cannam@154
|
6962 with_gnu_ld=yes
|
cannam@154
|
6963 # version 8.0 and above of icpc choke on multiply defined symbols
|
cannam@154
|
6964 # if we add $predep_objects and $postdep_objects, however 7.1 and
|
cannam@154
|
6965 # earlier do not add the objects themselves.
|
cannam@154
|
6966 case `$CC -V 2>&1` in
|
cannam@154
|
6967 *"Version 7."*)
|
cannam@154
|
6968 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
|
cannam@154
|
6969 _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'
|
cannam@154
|
6970 ;;
|
cannam@154
|
6971 *) # Version 8.0 or newer
|
cannam@154
|
6972 tmp_idyn=
|
cannam@154
|
6973 case $host_cpu in
|
cannam@154
|
6974 ia64*) tmp_idyn=' -i_dynamic';;
|
cannam@154
|
6975 esac
|
cannam@154
|
6976 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
cannam@154
|
6977 _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'
|
cannam@154
|
6978 ;;
|
cannam@154
|
6979 esac
|
cannam@154
|
6980 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
cannam@154
|
6981 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
|
cannam@154
|
6982 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
|
cannam@154
|
6983 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
|
cannam@154
|
6984 ;;
|
cannam@154
|
6985 pgCC* | pgcpp*)
|
cannam@154
|
6986 # Portland Group C++ compiler
|
cannam@154
|
6987 case `$CC -V` in
|
cannam@154
|
6988 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
|
cannam@154
|
6989 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
|
cannam@154
|
6990 rm -rf $tpldir~
|
cannam@154
|
6991 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
|
cannam@154
|
6992 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
|
cannam@154
|
6993 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
|
cannam@154
|
6994 rm -rf $tpldir~
|
cannam@154
|
6995 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
|
cannam@154
|
6996 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
|
cannam@154
|
6997 $RANLIB $oldlib'
|
cannam@154
|
6998 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
|
cannam@154
|
6999 rm -rf $tpldir~
|
cannam@154
|
7000 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
|
cannam@154
|
7001 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
|
cannam@154
|
7002 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
|
cannam@154
|
7003 rm -rf $tpldir~
|
cannam@154
|
7004 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
|
cannam@154
|
7005 $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'
|
cannam@154
|
7006 ;;
|
cannam@154
|
7007 *) # Version 6 and above use weak symbols
|
cannam@154
|
7008 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
|
cannam@154
|
7009 _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'
|
cannam@154
|
7010 ;;
|
cannam@154
|
7011 esac
|
cannam@154
|
7012
|
cannam@154
|
7013 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir'
|
cannam@154
|
7014 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
|
cannam@154
|
7015 _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'
|
cannam@154
|
7016 ;;
|
cannam@154
|
7017 cxx*)
|
cannam@154
|
7018 # Compaq C++
|
cannam@154
|
7019 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
|
cannam@154
|
7020 _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'
|
cannam@154
|
7021
|
cannam@154
|
7022 runpath_var=LD_RUN_PATH
|
cannam@154
|
7023 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
|
cannam@154
|
7024 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
cannam@154
|
7025
|
cannam@154
|
7026 # Commands to make compiler produce verbose output that lists
|
cannam@154
|
7027 # what "hidden" libraries, object files and flags are used when
|
cannam@154
|
7028 # linking a shared library.
|
cannam@154
|
7029 #
|
cannam@154
|
7030 # There doesn't appear to be a way to prevent this compiler from
|
cannam@154
|
7031 # explicitly linking system object files so we need to strip them
|
cannam@154
|
7032 # from the output so that they don't get included in the library
|
cannam@154
|
7033 # dependencies.
|
cannam@154
|
7034 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'
|
cannam@154
|
7035 ;;
|
cannam@154
|
7036 xl* | mpixl* | bgxl*)
|
cannam@154
|
7037 # IBM XL 8.0 on PPC, with GNU ld
|
cannam@154
|
7038 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
|
cannam@154
|
7039 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
|
cannam@154
|
7040 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
cannam@154
|
7041 if test yes = "$supports_anon_versioning"; then
|
cannam@154
|
7042 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
|
cannam@154
|
7043 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
cannam@154
|
7044 echo "local: *; };" >> $output_objdir/$libname.ver~
|
cannam@154
|
7045 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
|
cannam@154
|
7046 fi
|
cannam@154
|
7047 ;;
|
cannam@154
|
7048 *)
|
cannam@154
|
7049 case `$CC -V 2>&1 | sed 5q` in
|
cannam@154
|
7050 *Sun\ C*)
|
cannam@154
|
7051 # Sun C++ 5.9
|
cannam@154
|
7052 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
|
cannam@154
|
7053 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
cannam@154
|
7054 _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'
|
cannam@154
|
7055 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
cannam@154
|
7056 _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'
|
cannam@154
|
7057 _LT_TAGVAR(compiler_needs_object, $1)=yes
|
cannam@154
|
7058
|
cannam@154
|
7059 # Not sure whether something based on
|
cannam@154
|
7060 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
|
cannam@154
|
7061 # would be better.
|
cannam@154
|
7062 output_verbose_link_cmd='func_echo_all'
|
cannam@154
|
7063
|
cannam@154
|
7064 # Archives containing C++ object files must be created using
|
cannam@154
|
7065 # "CC -xar", where "CC" is the Sun C++ compiler. This is
|
cannam@154
|
7066 # necessary to make sure instantiated templates are included
|
cannam@154
|
7067 # in the archive.
|
cannam@154
|
7068 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
|
cannam@154
|
7069 ;;
|
cannam@154
|
7070 esac
|
cannam@154
|
7071 ;;
|
cannam@154
|
7072 esac
|
cannam@154
|
7073 ;;
|
cannam@154
|
7074
|
cannam@154
|
7075 lynxos*)
|
cannam@154
|
7076 # FIXME: insert proper C++ library support
|
cannam@154
|
7077 _LT_TAGVAR(ld_shlibs, $1)=no
|
cannam@154
|
7078 ;;
|
cannam@154
|
7079
|
cannam@154
|
7080 m88k*)
|
cannam@154
|
7081 # FIXME: insert proper C++ library support
|
cannam@154
|
7082 _LT_TAGVAR(ld_shlibs, $1)=no
|
cannam@154
|
7083 ;;
|
cannam@154
|
7084
|
cannam@154
|
7085 mvs*)
|
cannam@154
|
7086 case $cc_basename in
|
cannam@154
|
7087 cxx*)
|
cannam@154
|
7088 # FIXME: insert proper C++ library support
|
cannam@154
|
7089 _LT_TAGVAR(ld_shlibs, $1)=no
|
cannam@154
|
7090 ;;
|
cannam@154
|
7091 *)
|
cannam@154
|
7092 # FIXME: insert proper C++ library support
|
cannam@154
|
7093 _LT_TAGVAR(ld_shlibs, $1)=no
|
cannam@154
|
7094 ;;
|
cannam@154
|
7095 esac
|
cannam@154
|
7096 ;;
|
cannam@154
|
7097
|
cannam@154
|
7098 netbsd*)
|
cannam@154
|
7099 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
cannam@154
|
7100 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
|
cannam@154
|
7101 wlarc=
|
cannam@154
|
7102 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
cannam@154
|
7103 _LT_TAGVAR(hardcode_direct, $1)=yes
|
cannam@154
|
7104 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@154
|
7105 fi
|
cannam@154
|
7106 # Workaround some broken pre-1.5 toolchains
|
cannam@154
|
7107 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
|
cannam@154
|
7108 ;;
|
cannam@154
|
7109
|
cannam@154
|
7110 *nto* | *qnx*)
|
cannam@154
|
7111 _LT_TAGVAR(ld_shlibs, $1)=yes
|
cannam@154
|
7112 ;;
|
cannam@154
|
7113
|
cannam@154
|
7114 openbsd* | bitrig*)
|
cannam@154
|
7115 if test -f /usr/libexec/ld.so; then
|
cannam@154
|
7116 _LT_TAGVAR(hardcode_direct, $1)=yes
|
cannam@154
|
7117 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@154
|
7118 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
|
cannam@154
|
7119 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
|
cannam@154
|
7120 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
|
cannam@154
|
7121 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
|
cannam@154
|
7122 _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'
|
cannam@154
|
7123 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
|
cannam@154
|
7124 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
|
cannam@154
|
7125 fi
|
cannam@154
|
7126 output_verbose_link_cmd=func_echo_all
|
cannam@154
|
7127 else
|
cannam@154
|
7128 _LT_TAGVAR(ld_shlibs, $1)=no
|
cannam@154
|
7129 fi
|
cannam@154
|
7130 ;;
|
cannam@154
|
7131
|
cannam@154
|
7132 osf3* | osf4* | osf5*)
|
cannam@154
|
7133 case $cc_basename in
|
cannam@154
|
7134 KCC*)
|
cannam@154
|
7135 # Kuck and Associates, Inc. (KAI) C++ Compiler
|
cannam@154
|
7136
|
cannam@154
|
7137 # KCC will only create a shared library if the output file
|
cannam@154
|
7138 # ends with ".so" (or ".sl" for HP-UX), so rename the library
|
cannam@154
|
7139 # to its proper name (with version) after linking.
|
cannam@154
|
7140 _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'
|
cannam@154
|
7141
|
cannam@154
|
7142 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
|
cannam@154
|
7143 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
cannam@154
|
7144
|
cannam@154
|
7145 # Archives containing C++ object files must be created using
|
cannam@154
|
7146 # the KAI C++ compiler.
|
cannam@154
|
7147 case $host in
|
cannam@154
|
7148 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
|
cannam@154
|
7149 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
|
cannam@154
|
7150 esac
|
cannam@154
|
7151 ;;
|
cannam@154
|
7152 RCC*)
|
cannam@154
|
7153 # Rational C++ 2.4.1
|
cannam@154
|
7154 # FIXME: insert proper C++ library support
|
cannam@154
|
7155 _LT_TAGVAR(ld_shlibs, $1)=no
|
cannam@154
|
7156 ;;
|
cannam@154
|
7157 cxx*)
|
cannam@154
|
7158 case $host in
|
cannam@154
|
7159 osf3*)
|
cannam@154
|
7160 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
|
cannam@154
|
7161 _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'
|
cannam@154
|
7162 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
|
cannam@154
|
7163 ;;
|
cannam@154
|
7164 *)
|
cannam@154
|
7165 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
|
cannam@154
|
7166 _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'
|
cannam@154
|
7167 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
|
cannam@154
|
7168 echo "-hidden">> $lib.exp~
|
cannam@154
|
7169 $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~
|
cannam@154
|
7170 $RM $lib.exp'
|
cannam@154
|
7171 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
|
cannam@154
|
7172 ;;
|
cannam@154
|
7173 esac
|
cannam@154
|
7174
|
cannam@154
|
7175 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
cannam@154
|
7176
|
cannam@154
|
7177 # Commands to make compiler produce verbose output that lists
|
cannam@154
|
7178 # what "hidden" libraries, object files and flags are used when
|
cannam@154
|
7179 # linking a shared library.
|
cannam@154
|
7180 #
|
cannam@154
|
7181 # There doesn't appear to be a way to prevent this compiler from
|
cannam@154
|
7182 # explicitly linking system object files so we need to strip them
|
cannam@154
|
7183 # from the output so that they don't get included in the library
|
cannam@154
|
7184 # dependencies.
|
cannam@154
|
7185 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"'
|
cannam@154
|
7186 ;;
|
cannam@154
|
7187 *)
|
cannam@154
|
7188 if test yes,no = "$GXX,$with_gnu_ld"; then
|
cannam@154
|
7189 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
|
cannam@154
|
7190 case $host in
|
cannam@154
|
7191 osf3*)
|
cannam@154
|
7192 _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'
|
cannam@154
|
7193 ;;
|
cannam@154
|
7194 *)
|
cannam@154
|
7195 _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'
|
cannam@154
|
7196 ;;
|
cannam@154
|
7197 esac
|
cannam@154
|
7198
|
cannam@154
|
7199 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
|
cannam@154
|
7200 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
cannam@154
|
7201
|
cannam@154
|
7202 # Commands to make compiler produce verbose output that lists
|
cannam@154
|
7203 # what "hidden" libraries, object files and flags are used when
|
cannam@154
|
7204 # linking a shared library.
|
cannam@154
|
7205 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
|
cannam@154
|
7206
|
cannam@154
|
7207 else
|
cannam@154
|
7208 # FIXME: insert proper C++ library support
|
cannam@154
|
7209 _LT_TAGVAR(ld_shlibs, $1)=no
|
cannam@154
|
7210 fi
|
cannam@154
|
7211 ;;
|
cannam@154
|
7212 esac
|
cannam@154
|
7213 ;;
|
cannam@154
|
7214
|
cannam@154
|
7215 psos*)
|
cannam@154
|
7216 # FIXME: insert proper C++ library support
|
cannam@154
|
7217 _LT_TAGVAR(ld_shlibs, $1)=no
|
cannam@154
|
7218 ;;
|
cannam@154
|
7219
|
cannam@154
|
7220 sunos4*)
|
cannam@154
|
7221 case $cc_basename in
|
cannam@154
|
7222 CC*)
|
cannam@154
|
7223 # Sun C++ 4.x
|
cannam@154
|
7224 # FIXME: insert proper C++ library support
|
cannam@154
|
7225 _LT_TAGVAR(ld_shlibs, $1)=no
|
cannam@154
|
7226 ;;
|
cannam@154
|
7227 lcc*)
|
cannam@154
|
7228 # Lucid
|
cannam@154
|
7229 # FIXME: insert proper C++ library support
|
cannam@154
|
7230 _LT_TAGVAR(ld_shlibs, $1)=no
|
cannam@154
|
7231 ;;
|
cannam@154
|
7232 *)
|
cannam@154
|
7233 # FIXME: insert proper C++ library support
|
cannam@154
|
7234 _LT_TAGVAR(ld_shlibs, $1)=no
|
cannam@154
|
7235 ;;
|
cannam@154
|
7236 esac
|
cannam@154
|
7237 ;;
|
cannam@154
|
7238
|
cannam@154
|
7239 solaris*)
|
cannam@154
|
7240 case $cc_basename in
|
cannam@154
|
7241 CC* | sunCC*)
|
cannam@154
|
7242 # Sun C++ 4.2, 5.x and Centerline C++
|
cannam@154
|
7243 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
|
cannam@154
|
7244 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
|
cannam@154
|
7245 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
cannam@154
|
7246 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
cannam@154
|
7247 $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'
|
cannam@154
|
7248
|
cannam@154
|
7249 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
cannam@154
|
7250 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@154
|
7251 case $host_os in
|
cannam@154
|
7252 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
|
cannam@154
|
7253 *)
|
cannam@154
|
7254 # The compiler driver will combine and reorder linker options,
|
cannam@154
|
7255 # but understands '-z linker_flag'.
|
cannam@154
|
7256 # Supported since Solaris 2.6 (maybe 2.5.1?)
|
cannam@154
|
7257 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
|
cannam@154
|
7258 ;;
|
cannam@154
|
7259 esac
|
cannam@154
|
7260 _LT_TAGVAR(link_all_deplibs, $1)=yes
|
cannam@154
|
7261
|
cannam@154
|
7262 output_verbose_link_cmd='func_echo_all'
|
cannam@154
|
7263
|
cannam@154
|
7264 # Archives containing C++ object files must be created using
|
cannam@154
|
7265 # "CC -xar", where "CC" is the Sun C++ compiler. This is
|
cannam@154
|
7266 # necessary to make sure instantiated templates are included
|
cannam@154
|
7267 # in the archive.
|
cannam@154
|
7268 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
|
cannam@154
|
7269 ;;
|
cannam@154
|
7270 gcx*)
|
cannam@154
|
7271 # Green Hills C++ Compiler
|
cannam@154
|
7272 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
|
cannam@154
|
7273
|
cannam@154
|
7274 # The C++ compiler must be used to create the archive.
|
cannam@154
|
7275 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
|
cannam@154
|
7276 ;;
|
cannam@154
|
7277 *)
|
cannam@154
|
7278 # GNU C++ compiler with Solaris linker
|
cannam@154
|
7279 if test yes,no = "$GXX,$with_gnu_ld"; then
|
cannam@154
|
7280 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs'
|
cannam@154
|
7281 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
|
cannam@154
|
7282 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
|
cannam@154
|
7283 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
cannam@154
|
7284 $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'
|
cannam@154
|
7285
|
cannam@154
|
7286 # Commands to make compiler produce verbose output that lists
|
cannam@154
|
7287 # what "hidden" libraries, object files and flags are used when
|
cannam@154
|
7288 # linking a shared library.
|
cannam@154
|
7289 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
|
cannam@154
|
7290 else
|
cannam@154
|
7291 # g++ 2.7 appears to require '-G' NOT '-shared' on this
|
cannam@154
|
7292 # platform.
|
cannam@154
|
7293 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
|
cannam@154
|
7294 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
cannam@154
|
7295 $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'
|
cannam@154
|
7296
|
cannam@154
|
7297 # Commands to make compiler produce verbose output that lists
|
cannam@154
|
7298 # what "hidden" libraries, object files and flags are used when
|
cannam@154
|
7299 # linking a shared library.
|
cannam@154
|
7300 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
|
cannam@154
|
7301 fi
|
cannam@154
|
7302
|
cannam@154
|
7303 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir'
|
cannam@154
|
7304 case $host_os in
|
cannam@154
|
7305 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
|
cannam@154
|
7306 *)
|
cannam@154
|
7307 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
|
cannam@154
|
7308 ;;
|
cannam@154
|
7309 esac
|
cannam@154
|
7310 fi
|
cannam@154
|
7311 ;;
|
cannam@154
|
7312 esac
|
cannam@154
|
7313 ;;
|
cannam@154
|
7314
|
cannam@154
|
7315 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
|
cannam@154
|
7316 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
|
cannam@154
|
7317 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
cannam@154
|
7318 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@154
|
7319 runpath_var='LD_RUN_PATH'
|
cannam@154
|
7320
|
cannam@154
|
7321 case $cc_basename in
|
cannam@154
|
7322 CC*)
|
cannam@154
|
7323 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
7324 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
7325 ;;
|
cannam@154
|
7326 *)
|
cannam@154
|
7327 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
7328 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
7329 ;;
|
cannam@154
|
7330 esac
|
cannam@154
|
7331 ;;
|
cannam@154
|
7332
|
cannam@154
|
7333 sysv5* | sco3.2v5* | sco5v6*)
|
cannam@154
|
7334 # Note: We CANNOT use -z defs as we might desire, because we do not
|
cannam@154
|
7335 # link with -lc, and that would cause any symbols used from libc to
|
cannam@154
|
7336 # always be unresolved, which means just about no library would
|
cannam@154
|
7337 # ever link correctly. If we're not using GNU ld we use -z text
|
cannam@154
|
7338 # though, which does catch some bad symbols but isn't as heavy-handed
|
cannam@154
|
7339 # as -z defs.
|
cannam@154
|
7340 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
|
cannam@154
|
7341 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
|
cannam@154
|
7342 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
cannam@154
|
7343 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@154
|
7344 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
|
cannam@154
|
7345 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
|
cannam@154
|
7346 _LT_TAGVAR(link_all_deplibs, $1)=yes
|
cannam@154
|
7347 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
|
cannam@154
|
7348 runpath_var='LD_RUN_PATH'
|
cannam@154
|
7349
|
cannam@154
|
7350 case $cc_basename in
|
cannam@154
|
7351 CC*)
|
cannam@154
|
7352 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
7353 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
7354 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
|
cannam@154
|
7355 '"$_LT_TAGVAR(old_archive_cmds, $1)"
|
cannam@154
|
7356 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
|
cannam@154
|
7357 '"$_LT_TAGVAR(reload_cmds, $1)"
|
cannam@154
|
7358 ;;
|
cannam@154
|
7359 *)
|
cannam@154
|
7360 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
7361 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
7362 ;;
|
cannam@154
|
7363 esac
|
cannam@154
|
7364 ;;
|
cannam@154
|
7365
|
cannam@154
|
7366 tandem*)
|
cannam@154
|
7367 case $cc_basename in
|
cannam@154
|
7368 NCC*)
|
cannam@154
|
7369 # NonStop-UX NCC 3.20
|
cannam@154
|
7370 # FIXME: insert proper C++ library support
|
cannam@154
|
7371 _LT_TAGVAR(ld_shlibs, $1)=no
|
cannam@154
|
7372 ;;
|
cannam@154
|
7373 *)
|
cannam@154
|
7374 # FIXME: insert proper C++ library support
|
cannam@154
|
7375 _LT_TAGVAR(ld_shlibs, $1)=no
|
cannam@154
|
7376 ;;
|
cannam@154
|
7377 esac
|
cannam@154
|
7378 ;;
|
cannam@154
|
7379
|
cannam@154
|
7380 vxworks*)
|
cannam@154
|
7381 # FIXME: insert proper C++ library support
|
cannam@154
|
7382 _LT_TAGVAR(ld_shlibs, $1)=no
|
cannam@154
|
7383 ;;
|
cannam@154
|
7384
|
cannam@154
|
7385 *)
|
cannam@154
|
7386 # FIXME: insert proper C++ library support
|
cannam@154
|
7387 _LT_TAGVAR(ld_shlibs, $1)=no
|
cannam@154
|
7388 ;;
|
cannam@154
|
7389 esac
|
cannam@154
|
7390
|
cannam@154
|
7391 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
|
cannam@154
|
7392 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
|
cannam@154
|
7393
|
cannam@154
|
7394 _LT_TAGVAR(GCC, $1)=$GXX
|
cannam@154
|
7395 _LT_TAGVAR(LD, $1)=$LD
|
cannam@154
|
7396
|
cannam@154
|
7397 ## CAVEAT EMPTOR:
|
cannam@154
|
7398 ## There is no encapsulation within the following macros, do not change
|
cannam@154
|
7399 ## the running order or otherwise move them around unless you know exactly
|
cannam@154
|
7400 ## what you are doing...
|
cannam@154
|
7401 _LT_SYS_HIDDEN_LIBDEPS($1)
|
cannam@154
|
7402 _LT_COMPILER_PIC($1)
|
cannam@154
|
7403 _LT_COMPILER_C_O($1)
|
cannam@154
|
7404 _LT_COMPILER_FILE_LOCKS($1)
|
cannam@154
|
7405 _LT_LINKER_SHLIBS($1)
|
cannam@154
|
7406 _LT_SYS_DYNAMIC_LINKER($1)
|
cannam@154
|
7407 _LT_LINKER_HARDCODE_LIBPATH($1)
|
cannam@154
|
7408
|
cannam@154
|
7409 _LT_CONFIG($1)
|
cannam@154
|
7410 fi # test -n "$compiler"
|
cannam@154
|
7411
|
cannam@154
|
7412 CC=$lt_save_CC
|
cannam@154
|
7413 CFLAGS=$lt_save_CFLAGS
|
cannam@154
|
7414 LDCXX=$LD
|
cannam@154
|
7415 LD=$lt_save_LD
|
cannam@154
|
7416 GCC=$lt_save_GCC
|
cannam@154
|
7417 with_gnu_ld=$lt_save_with_gnu_ld
|
cannam@154
|
7418 lt_cv_path_LDCXX=$lt_cv_path_LD
|
cannam@154
|
7419 lt_cv_path_LD=$lt_save_path_LD
|
cannam@154
|
7420 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
|
cannam@154
|
7421 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
|
cannam@154
|
7422 fi # test yes != "$_lt_caught_CXX_error"
|
cannam@154
|
7423
|
cannam@154
|
7424 AC_LANG_POP
|
cannam@154
|
7425 ])# _LT_LANG_CXX_CONFIG
|
cannam@154
|
7426
|
cannam@154
|
7427
|
cannam@154
|
7428 # _LT_FUNC_STRIPNAME_CNF
|
cannam@154
|
7429 # ----------------------
|
cannam@154
|
7430 # func_stripname_cnf prefix suffix name
|
cannam@154
|
7431 # strip PREFIX and SUFFIX off of NAME.
|
cannam@154
|
7432 # PREFIX and SUFFIX must not contain globbing or regex special
|
cannam@154
|
7433 # characters, hashes, percent signs, but SUFFIX may contain a leading
|
cannam@154
|
7434 # dot (in which case that matches only a dot).
|
cannam@154
|
7435 #
|
cannam@154
|
7436 # This function is identical to the (non-XSI) version of func_stripname,
|
cannam@154
|
7437 # except this one can be used by m4 code that may be executed by configure,
|
cannam@154
|
7438 # rather than the libtool script.
|
cannam@154
|
7439 m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
|
cannam@154
|
7440 AC_REQUIRE([_LT_DECL_SED])
|
cannam@154
|
7441 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
|
cannam@154
|
7442 func_stripname_cnf ()
|
cannam@154
|
7443 {
|
cannam@154
|
7444 case @S|@2 in
|
cannam@154
|
7445 .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;;
|
cannam@154
|
7446 *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;;
|
cannam@154
|
7447 esac
|
cannam@154
|
7448 } # func_stripname_cnf
|
cannam@154
|
7449 ])# _LT_FUNC_STRIPNAME_CNF
|
cannam@154
|
7450
|
cannam@154
|
7451
|
cannam@154
|
7452 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
|
cannam@154
|
7453 # ---------------------------------
|
cannam@154
|
7454 # Figure out "hidden" library dependencies from verbose
|
cannam@154
|
7455 # compiler output when linking a shared library.
|
cannam@154
|
7456 # Parse the compiler output and extract the necessary
|
cannam@154
|
7457 # objects, libraries and library flags.
|
cannam@154
|
7458 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
|
cannam@154
|
7459 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
cannam@154
|
7460 AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
|
cannam@154
|
7461 # Dependencies to place before and after the object being linked:
|
cannam@154
|
7462 _LT_TAGVAR(predep_objects, $1)=
|
cannam@154
|
7463 _LT_TAGVAR(postdep_objects, $1)=
|
cannam@154
|
7464 _LT_TAGVAR(predeps, $1)=
|
cannam@154
|
7465 _LT_TAGVAR(postdeps, $1)=
|
cannam@154
|
7466 _LT_TAGVAR(compiler_lib_search_path, $1)=
|
cannam@154
|
7467
|
cannam@154
|
7468 dnl we can't use the lt_simple_compile_test_code here,
|
cannam@154
|
7469 dnl because it contains code intended for an executable,
|
cannam@154
|
7470 dnl not a library. It's possible we should let each
|
cannam@154
|
7471 dnl tag define a new lt_????_link_test_code variable,
|
cannam@154
|
7472 dnl but it's only used here...
|
cannam@154
|
7473 m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
|
cannam@154
|
7474 int a;
|
cannam@154
|
7475 void foo (void) { a = 0; }
|
cannam@154
|
7476 _LT_EOF
|
cannam@154
|
7477 ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
|
cannam@154
|
7478 class Foo
|
cannam@154
|
7479 {
|
cannam@154
|
7480 public:
|
cannam@154
|
7481 Foo (void) { a = 0; }
|
cannam@154
|
7482 private:
|
cannam@154
|
7483 int a;
|
cannam@154
|
7484 };
|
cannam@154
|
7485 _LT_EOF
|
cannam@154
|
7486 ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
|
cannam@154
|
7487 subroutine foo
|
cannam@154
|
7488 implicit none
|
cannam@154
|
7489 integer*4 a
|
cannam@154
|
7490 a=0
|
cannam@154
|
7491 return
|
cannam@154
|
7492 end
|
cannam@154
|
7493 _LT_EOF
|
cannam@154
|
7494 ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
|
cannam@154
|
7495 subroutine foo
|
cannam@154
|
7496 implicit none
|
cannam@154
|
7497 integer a
|
cannam@154
|
7498 a=0
|
cannam@154
|
7499 return
|
cannam@154
|
7500 end
|
cannam@154
|
7501 _LT_EOF
|
cannam@154
|
7502 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
|
cannam@154
|
7503 public class foo {
|
cannam@154
|
7504 private int a;
|
cannam@154
|
7505 public void bar (void) {
|
cannam@154
|
7506 a = 0;
|
cannam@154
|
7507 }
|
cannam@154
|
7508 };
|
cannam@154
|
7509 _LT_EOF
|
cannam@154
|
7510 ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
|
cannam@154
|
7511 package foo
|
cannam@154
|
7512 func foo() {
|
cannam@154
|
7513 }
|
cannam@154
|
7514 _LT_EOF
|
cannam@154
|
7515 ])
|
cannam@154
|
7516
|
cannam@154
|
7517 _lt_libdeps_save_CFLAGS=$CFLAGS
|
cannam@154
|
7518 case "$CC $CFLAGS " in #(
|
cannam@154
|
7519 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
|
cannam@154
|
7520 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
|
cannam@154
|
7521 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
|
cannam@154
|
7522 esac
|
cannam@154
|
7523
|
cannam@154
|
7524 dnl Parse the compiler output and extract the necessary
|
cannam@154
|
7525 dnl objects, libraries and library flags.
|
cannam@154
|
7526 if AC_TRY_EVAL(ac_compile); then
|
cannam@154
|
7527 # Parse the compiler output and extract the necessary
|
cannam@154
|
7528 # objects, libraries and library flags.
|
cannam@154
|
7529
|
cannam@154
|
7530 # Sentinel used to keep track of whether or not we are before
|
cannam@154
|
7531 # the conftest object file.
|
cannam@154
|
7532 pre_test_object_deps_done=no
|
cannam@154
|
7533
|
cannam@154
|
7534 for p in `eval "$output_verbose_link_cmd"`; do
|
cannam@154
|
7535 case $prev$p in
|
cannam@154
|
7536
|
cannam@154
|
7537 -L* | -R* | -l*)
|
cannam@154
|
7538 # Some compilers place space between "-{L,R}" and the path.
|
cannam@154
|
7539 # Remove the space.
|
cannam@154
|
7540 if test x-L = "$p" ||
|
cannam@154
|
7541 test x-R = "$p"; then
|
cannam@154
|
7542 prev=$p
|
cannam@154
|
7543 continue
|
cannam@154
|
7544 fi
|
cannam@154
|
7545
|
cannam@154
|
7546 # Expand the sysroot to ease extracting the directories later.
|
cannam@154
|
7547 if test -z "$prev"; then
|
cannam@154
|
7548 case $p in
|
cannam@154
|
7549 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
|
cannam@154
|
7550 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
|
cannam@154
|
7551 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
|
cannam@154
|
7552 esac
|
cannam@154
|
7553 fi
|
cannam@154
|
7554 case $p in
|
cannam@154
|
7555 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
|
cannam@154
|
7556 esac
|
cannam@154
|
7557 if test no = "$pre_test_object_deps_done"; then
|
cannam@154
|
7558 case $prev in
|
cannam@154
|
7559 -L | -R)
|
cannam@154
|
7560 # Internal compiler library paths should come after those
|
cannam@154
|
7561 # provided the user. The postdeps already come after the
|
cannam@154
|
7562 # user supplied libs so there is no need to process them.
|
cannam@154
|
7563 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
|
cannam@154
|
7564 _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p
|
cannam@154
|
7565 else
|
cannam@154
|
7566 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p"
|
cannam@154
|
7567 fi
|
cannam@154
|
7568 ;;
|
cannam@154
|
7569 # The "-l" case would never come before the object being
|
cannam@154
|
7570 # linked, so don't bother handling this case.
|
cannam@154
|
7571 esac
|
cannam@154
|
7572 else
|
cannam@154
|
7573 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
|
cannam@154
|
7574 _LT_TAGVAR(postdeps, $1)=$prev$p
|
cannam@154
|
7575 else
|
cannam@154
|
7576 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p"
|
cannam@154
|
7577 fi
|
cannam@154
|
7578 fi
|
cannam@154
|
7579 prev=
|
cannam@154
|
7580 ;;
|
cannam@154
|
7581
|
cannam@154
|
7582 *.lto.$objext) ;; # Ignore GCC LTO objects
|
cannam@154
|
7583 *.$objext)
|
cannam@154
|
7584 # This assumes that the test object file only shows up
|
cannam@154
|
7585 # once in the compiler output.
|
cannam@154
|
7586 if test "$p" = "conftest.$objext"; then
|
cannam@154
|
7587 pre_test_object_deps_done=yes
|
cannam@154
|
7588 continue
|
cannam@154
|
7589 fi
|
cannam@154
|
7590
|
cannam@154
|
7591 if test no = "$pre_test_object_deps_done"; then
|
cannam@154
|
7592 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
|
cannam@154
|
7593 _LT_TAGVAR(predep_objects, $1)=$p
|
cannam@154
|
7594 else
|
cannam@154
|
7595 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
|
cannam@154
|
7596 fi
|
cannam@154
|
7597 else
|
cannam@154
|
7598 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
|
cannam@154
|
7599 _LT_TAGVAR(postdep_objects, $1)=$p
|
cannam@154
|
7600 else
|
cannam@154
|
7601 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
|
cannam@154
|
7602 fi
|
cannam@154
|
7603 fi
|
cannam@154
|
7604 ;;
|
cannam@154
|
7605
|
cannam@154
|
7606 *) ;; # Ignore the rest.
|
cannam@154
|
7607
|
cannam@154
|
7608 esac
|
cannam@154
|
7609 done
|
cannam@154
|
7610
|
cannam@154
|
7611 # Clean up.
|
cannam@154
|
7612 rm -f a.out a.exe
|
cannam@154
|
7613 else
|
cannam@154
|
7614 echo "libtool.m4: error: problem compiling $1 test program"
|
cannam@154
|
7615 fi
|
cannam@154
|
7616
|
cannam@154
|
7617 $RM -f confest.$objext
|
cannam@154
|
7618 CFLAGS=$_lt_libdeps_save_CFLAGS
|
cannam@154
|
7619
|
cannam@154
|
7620 # PORTME: override above test on systems where it is broken
|
cannam@154
|
7621 m4_if([$1], [CXX],
|
cannam@154
|
7622 [case $host_os in
|
cannam@154
|
7623 interix[[3-9]]*)
|
cannam@154
|
7624 # Interix 3.5 installs completely hosed .la files for C++, so rather than
|
cannam@154
|
7625 # hack all around it, let's just trust "g++" to DTRT.
|
cannam@154
|
7626 _LT_TAGVAR(predep_objects,$1)=
|
cannam@154
|
7627 _LT_TAGVAR(postdep_objects,$1)=
|
cannam@154
|
7628 _LT_TAGVAR(postdeps,$1)=
|
cannam@154
|
7629 ;;
|
cannam@154
|
7630 esac
|
cannam@154
|
7631 ])
|
cannam@154
|
7632
|
cannam@154
|
7633 case " $_LT_TAGVAR(postdeps, $1) " in
|
cannam@154
|
7634 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
|
cannam@154
|
7635 esac
|
cannam@154
|
7636 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
|
cannam@154
|
7637 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
|
cannam@154
|
7638 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'`
|
cannam@154
|
7639 fi
|
cannam@154
|
7640 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
|
cannam@154
|
7641 [The directories searched by this compiler when creating a shared library])
|
cannam@154
|
7642 _LT_TAGDECL([], [predep_objects], [1],
|
cannam@154
|
7643 [Dependencies to place before and after the objects being linked to
|
cannam@154
|
7644 create a shared library])
|
cannam@154
|
7645 _LT_TAGDECL([], [postdep_objects], [1])
|
cannam@154
|
7646 _LT_TAGDECL([], [predeps], [1])
|
cannam@154
|
7647 _LT_TAGDECL([], [postdeps], [1])
|
cannam@154
|
7648 _LT_TAGDECL([], [compiler_lib_search_path], [1],
|
cannam@154
|
7649 [The library search path used internally by the compiler when linking
|
cannam@154
|
7650 a shared library])
|
cannam@154
|
7651 ])# _LT_SYS_HIDDEN_LIBDEPS
|
cannam@154
|
7652
|
cannam@154
|
7653
|
cannam@154
|
7654 # _LT_LANG_F77_CONFIG([TAG])
|
cannam@154
|
7655 # --------------------------
|
cannam@154
|
7656 # Ensure that the configuration variables for a Fortran 77 compiler are
|
cannam@154
|
7657 # suitably defined. These variables are subsequently used by _LT_CONFIG
|
cannam@154
|
7658 # to write the compiler configuration to 'libtool'.
|
cannam@154
|
7659 m4_defun([_LT_LANG_F77_CONFIG],
|
cannam@154
|
7660 [AC_LANG_PUSH(Fortran 77)
|
cannam@154
|
7661 if test -z "$F77" || test no = "$F77"; then
|
cannam@154
|
7662 _lt_disable_F77=yes
|
cannam@154
|
7663 fi
|
cannam@154
|
7664
|
cannam@154
|
7665 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
cannam@154
|
7666 _LT_TAGVAR(allow_undefined_flag, $1)=
|
cannam@154
|
7667 _LT_TAGVAR(always_export_symbols, $1)=no
|
cannam@154
|
7668 _LT_TAGVAR(archive_expsym_cmds, $1)=
|
cannam@154
|
7669 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
|
cannam@154
|
7670 _LT_TAGVAR(hardcode_direct, $1)=no
|
cannam@154
|
7671 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
|
cannam@154
|
7672 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
cannam@154
|
7673 _LT_TAGVAR(hardcode_libdir_separator, $1)=
|
cannam@154
|
7674 _LT_TAGVAR(hardcode_minus_L, $1)=no
|
cannam@154
|
7675 _LT_TAGVAR(hardcode_automatic, $1)=no
|
cannam@154
|
7676 _LT_TAGVAR(inherit_rpath, $1)=no
|
cannam@154
|
7677 _LT_TAGVAR(module_cmds, $1)=
|
cannam@154
|
7678 _LT_TAGVAR(module_expsym_cmds, $1)=
|
cannam@154
|
7679 _LT_TAGVAR(link_all_deplibs, $1)=unknown
|
cannam@154
|
7680 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
|
cannam@154
|
7681 _LT_TAGVAR(reload_flag, $1)=$reload_flag
|
cannam@154
|
7682 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
|
cannam@154
|
7683 _LT_TAGVAR(no_undefined_flag, $1)=
|
cannam@154
|
7684 _LT_TAGVAR(whole_archive_flag_spec, $1)=
|
cannam@154
|
7685 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
|
cannam@154
|
7686
|
cannam@154
|
7687 # Source file extension for f77 test sources.
|
cannam@154
|
7688 ac_ext=f
|
cannam@154
|
7689
|
cannam@154
|
7690 # Object file extension for compiled f77 test sources.
|
cannam@154
|
7691 objext=o
|
cannam@154
|
7692 _LT_TAGVAR(objext, $1)=$objext
|
cannam@154
|
7693
|
cannam@154
|
7694 # No sense in running all these tests if we already determined that
|
cannam@154
|
7695 # the F77 compiler isn't working. Some variables (like enable_shared)
|
cannam@154
|
7696 # are currently assumed to apply to all compilers on this platform,
|
cannam@154
|
7697 # and will be corrupted by setting them based on a non-working compiler.
|
cannam@154
|
7698 if test yes != "$_lt_disable_F77"; then
|
cannam@154
|
7699 # Code to be used in simple compile tests
|
cannam@154
|
7700 lt_simple_compile_test_code="\
|
cannam@154
|
7701 subroutine t
|
cannam@154
|
7702 return
|
cannam@154
|
7703 end
|
cannam@154
|
7704 "
|
cannam@154
|
7705
|
cannam@154
|
7706 # Code to be used in simple link tests
|
cannam@154
|
7707 lt_simple_link_test_code="\
|
cannam@154
|
7708 program t
|
cannam@154
|
7709 end
|
cannam@154
|
7710 "
|
cannam@154
|
7711
|
cannam@154
|
7712 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
cannam@154
|
7713 _LT_TAG_COMPILER
|
cannam@154
|
7714
|
cannam@154
|
7715 # save warnings/boilerplate of simple test code
|
cannam@154
|
7716 _LT_COMPILER_BOILERPLATE
|
cannam@154
|
7717 _LT_LINKER_BOILERPLATE
|
cannam@154
|
7718
|
cannam@154
|
7719 # Allow CC to be a program name with arguments.
|
cannam@154
|
7720 lt_save_CC=$CC
|
cannam@154
|
7721 lt_save_GCC=$GCC
|
cannam@154
|
7722 lt_save_CFLAGS=$CFLAGS
|
cannam@154
|
7723 CC=${F77-"f77"}
|
cannam@154
|
7724 CFLAGS=$FFLAGS
|
cannam@154
|
7725 compiler=$CC
|
cannam@154
|
7726 _LT_TAGVAR(compiler, $1)=$CC
|
cannam@154
|
7727 _LT_CC_BASENAME([$compiler])
|
cannam@154
|
7728 GCC=$G77
|
cannam@154
|
7729 if test -n "$compiler"; then
|
cannam@154
|
7730 AC_MSG_CHECKING([if libtool supports shared libraries])
|
cannam@154
|
7731 AC_MSG_RESULT([$can_build_shared])
|
cannam@154
|
7732
|
cannam@154
|
7733 AC_MSG_CHECKING([whether to build shared libraries])
|
cannam@154
|
7734 test no = "$can_build_shared" && enable_shared=no
|
cannam@154
|
7735
|
cannam@154
|
7736 # On AIX, shared libraries and static libraries use the same namespace, and
|
cannam@154
|
7737 # are all built from PIC.
|
cannam@154
|
7738 case $host_os in
|
cannam@154
|
7739 aix3*)
|
cannam@154
|
7740 test yes = "$enable_shared" && enable_static=no
|
cannam@154
|
7741 if test -n "$RANLIB"; then
|
cannam@154
|
7742 archive_cmds="$archive_cmds~\$RANLIB \$lib"
|
cannam@154
|
7743 postinstall_cmds='$RANLIB $lib'
|
cannam@154
|
7744 fi
|
cannam@154
|
7745 ;;
|
cannam@154
|
7746 aix[[4-9]]*)
|
cannam@154
|
7747 if test ia64 != "$host_cpu"; then
|
cannam@154
|
7748 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
|
cannam@154
|
7749 yes,aix,yes) ;; # shared object as lib.so file only
|
cannam@154
|
7750 yes,svr4,*) ;; # shared object as lib.so archive member only
|
cannam@154
|
7751 yes,*) enable_static=no ;; # shared object in lib.a archive as well
|
cannam@154
|
7752 esac
|
cannam@154
|
7753 fi
|
cannam@154
|
7754 ;;
|
cannam@154
|
7755 esac
|
cannam@154
|
7756 AC_MSG_RESULT([$enable_shared])
|
cannam@154
|
7757
|
cannam@154
|
7758 AC_MSG_CHECKING([whether to build static libraries])
|
cannam@154
|
7759 # Make sure either enable_shared or enable_static is yes.
|
cannam@154
|
7760 test yes = "$enable_shared" || enable_static=yes
|
cannam@154
|
7761 AC_MSG_RESULT([$enable_static])
|
cannam@154
|
7762
|
cannam@154
|
7763 _LT_TAGVAR(GCC, $1)=$G77
|
cannam@154
|
7764 _LT_TAGVAR(LD, $1)=$LD
|
cannam@154
|
7765
|
cannam@154
|
7766 ## CAVEAT EMPTOR:
|
cannam@154
|
7767 ## There is no encapsulation within the following macros, do not change
|
cannam@154
|
7768 ## the running order or otherwise move them around unless you know exactly
|
cannam@154
|
7769 ## what you are doing...
|
cannam@154
|
7770 _LT_COMPILER_PIC($1)
|
cannam@154
|
7771 _LT_COMPILER_C_O($1)
|
cannam@154
|
7772 _LT_COMPILER_FILE_LOCKS($1)
|
cannam@154
|
7773 _LT_LINKER_SHLIBS($1)
|
cannam@154
|
7774 _LT_SYS_DYNAMIC_LINKER($1)
|
cannam@154
|
7775 _LT_LINKER_HARDCODE_LIBPATH($1)
|
cannam@154
|
7776
|
cannam@154
|
7777 _LT_CONFIG($1)
|
cannam@154
|
7778 fi # test -n "$compiler"
|
cannam@154
|
7779
|
cannam@154
|
7780 GCC=$lt_save_GCC
|
cannam@154
|
7781 CC=$lt_save_CC
|
cannam@154
|
7782 CFLAGS=$lt_save_CFLAGS
|
cannam@154
|
7783 fi # test yes != "$_lt_disable_F77"
|
cannam@154
|
7784
|
cannam@154
|
7785 AC_LANG_POP
|
cannam@154
|
7786 ])# _LT_LANG_F77_CONFIG
|
cannam@154
|
7787
|
cannam@154
|
7788
|
cannam@154
|
7789 # _LT_LANG_FC_CONFIG([TAG])
|
cannam@154
|
7790 # -------------------------
|
cannam@154
|
7791 # Ensure that the configuration variables for a Fortran compiler are
|
cannam@154
|
7792 # suitably defined. These variables are subsequently used by _LT_CONFIG
|
cannam@154
|
7793 # to write the compiler configuration to 'libtool'.
|
cannam@154
|
7794 m4_defun([_LT_LANG_FC_CONFIG],
|
cannam@154
|
7795 [AC_LANG_PUSH(Fortran)
|
cannam@154
|
7796
|
cannam@154
|
7797 if test -z "$FC" || test no = "$FC"; then
|
cannam@154
|
7798 _lt_disable_FC=yes
|
cannam@154
|
7799 fi
|
cannam@154
|
7800
|
cannam@154
|
7801 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
cannam@154
|
7802 _LT_TAGVAR(allow_undefined_flag, $1)=
|
cannam@154
|
7803 _LT_TAGVAR(always_export_symbols, $1)=no
|
cannam@154
|
7804 _LT_TAGVAR(archive_expsym_cmds, $1)=
|
cannam@154
|
7805 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
|
cannam@154
|
7806 _LT_TAGVAR(hardcode_direct, $1)=no
|
cannam@154
|
7807 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
|
cannam@154
|
7808 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
cannam@154
|
7809 _LT_TAGVAR(hardcode_libdir_separator, $1)=
|
cannam@154
|
7810 _LT_TAGVAR(hardcode_minus_L, $1)=no
|
cannam@154
|
7811 _LT_TAGVAR(hardcode_automatic, $1)=no
|
cannam@154
|
7812 _LT_TAGVAR(inherit_rpath, $1)=no
|
cannam@154
|
7813 _LT_TAGVAR(module_cmds, $1)=
|
cannam@154
|
7814 _LT_TAGVAR(module_expsym_cmds, $1)=
|
cannam@154
|
7815 _LT_TAGVAR(link_all_deplibs, $1)=unknown
|
cannam@154
|
7816 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
|
cannam@154
|
7817 _LT_TAGVAR(reload_flag, $1)=$reload_flag
|
cannam@154
|
7818 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
|
cannam@154
|
7819 _LT_TAGVAR(no_undefined_flag, $1)=
|
cannam@154
|
7820 _LT_TAGVAR(whole_archive_flag_spec, $1)=
|
cannam@154
|
7821 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
|
cannam@154
|
7822
|
cannam@154
|
7823 # Source file extension for fc test sources.
|
cannam@154
|
7824 ac_ext=${ac_fc_srcext-f}
|
cannam@154
|
7825
|
cannam@154
|
7826 # Object file extension for compiled fc test sources.
|
cannam@154
|
7827 objext=o
|
cannam@154
|
7828 _LT_TAGVAR(objext, $1)=$objext
|
cannam@154
|
7829
|
cannam@154
|
7830 # No sense in running all these tests if we already determined that
|
cannam@154
|
7831 # the FC compiler isn't working. Some variables (like enable_shared)
|
cannam@154
|
7832 # are currently assumed to apply to all compilers on this platform,
|
cannam@154
|
7833 # and will be corrupted by setting them based on a non-working compiler.
|
cannam@154
|
7834 if test yes != "$_lt_disable_FC"; then
|
cannam@154
|
7835 # Code to be used in simple compile tests
|
cannam@154
|
7836 lt_simple_compile_test_code="\
|
cannam@154
|
7837 subroutine t
|
cannam@154
|
7838 return
|
cannam@154
|
7839 end
|
cannam@154
|
7840 "
|
cannam@154
|
7841
|
cannam@154
|
7842 # Code to be used in simple link tests
|
cannam@154
|
7843 lt_simple_link_test_code="\
|
cannam@154
|
7844 program t
|
cannam@154
|
7845 end
|
cannam@154
|
7846 "
|
cannam@154
|
7847
|
cannam@154
|
7848 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
cannam@154
|
7849 _LT_TAG_COMPILER
|
cannam@154
|
7850
|
cannam@154
|
7851 # save warnings/boilerplate of simple test code
|
cannam@154
|
7852 _LT_COMPILER_BOILERPLATE
|
cannam@154
|
7853 _LT_LINKER_BOILERPLATE
|
cannam@154
|
7854
|
cannam@154
|
7855 # Allow CC to be a program name with arguments.
|
cannam@154
|
7856 lt_save_CC=$CC
|
cannam@154
|
7857 lt_save_GCC=$GCC
|
cannam@154
|
7858 lt_save_CFLAGS=$CFLAGS
|
cannam@154
|
7859 CC=${FC-"f95"}
|
cannam@154
|
7860 CFLAGS=$FCFLAGS
|
cannam@154
|
7861 compiler=$CC
|
cannam@154
|
7862 GCC=$ac_cv_fc_compiler_gnu
|
cannam@154
|
7863
|
cannam@154
|
7864 _LT_TAGVAR(compiler, $1)=$CC
|
cannam@154
|
7865 _LT_CC_BASENAME([$compiler])
|
cannam@154
|
7866
|
cannam@154
|
7867 if test -n "$compiler"; then
|
cannam@154
|
7868 AC_MSG_CHECKING([if libtool supports shared libraries])
|
cannam@154
|
7869 AC_MSG_RESULT([$can_build_shared])
|
cannam@154
|
7870
|
cannam@154
|
7871 AC_MSG_CHECKING([whether to build shared libraries])
|
cannam@154
|
7872 test no = "$can_build_shared" && enable_shared=no
|
cannam@154
|
7873
|
cannam@154
|
7874 # On AIX, shared libraries and static libraries use the same namespace, and
|
cannam@154
|
7875 # are all built from PIC.
|
cannam@154
|
7876 case $host_os in
|
cannam@154
|
7877 aix3*)
|
cannam@154
|
7878 test yes = "$enable_shared" && enable_static=no
|
cannam@154
|
7879 if test -n "$RANLIB"; then
|
cannam@154
|
7880 archive_cmds="$archive_cmds~\$RANLIB \$lib"
|
cannam@154
|
7881 postinstall_cmds='$RANLIB $lib'
|
cannam@154
|
7882 fi
|
cannam@154
|
7883 ;;
|
cannam@154
|
7884 aix[[4-9]]*)
|
cannam@154
|
7885 if test ia64 != "$host_cpu"; then
|
cannam@154
|
7886 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
|
cannam@154
|
7887 yes,aix,yes) ;; # shared object as lib.so file only
|
cannam@154
|
7888 yes,svr4,*) ;; # shared object as lib.so archive member only
|
cannam@154
|
7889 yes,*) enable_static=no ;; # shared object in lib.a archive as well
|
cannam@154
|
7890 esac
|
cannam@154
|
7891 fi
|
cannam@154
|
7892 ;;
|
cannam@154
|
7893 esac
|
cannam@154
|
7894 AC_MSG_RESULT([$enable_shared])
|
cannam@154
|
7895
|
cannam@154
|
7896 AC_MSG_CHECKING([whether to build static libraries])
|
cannam@154
|
7897 # Make sure either enable_shared or enable_static is yes.
|
cannam@154
|
7898 test yes = "$enable_shared" || enable_static=yes
|
cannam@154
|
7899 AC_MSG_RESULT([$enable_static])
|
cannam@154
|
7900
|
cannam@154
|
7901 _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu
|
cannam@154
|
7902 _LT_TAGVAR(LD, $1)=$LD
|
cannam@154
|
7903
|
cannam@154
|
7904 ## CAVEAT EMPTOR:
|
cannam@154
|
7905 ## There is no encapsulation within the following macros, do not change
|
cannam@154
|
7906 ## the running order or otherwise move them around unless you know exactly
|
cannam@154
|
7907 ## what you are doing...
|
cannam@154
|
7908 _LT_SYS_HIDDEN_LIBDEPS($1)
|
cannam@154
|
7909 _LT_COMPILER_PIC($1)
|
cannam@154
|
7910 _LT_COMPILER_C_O($1)
|
cannam@154
|
7911 _LT_COMPILER_FILE_LOCKS($1)
|
cannam@154
|
7912 _LT_LINKER_SHLIBS($1)
|
cannam@154
|
7913 _LT_SYS_DYNAMIC_LINKER($1)
|
cannam@154
|
7914 _LT_LINKER_HARDCODE_LIBPATH($1)
|
cannam@154
|
7915
|
cannam@154
|
7916 _LT_CONFIG($1)
|
cannam@154
|
7917 fi # test -n "$compiler"
|
cannam@154
|
7918
|
cannam@154
|
7919 GCC=$lt_save_GCC
|
cannam@154
|
7920 CC=$lt_save_CC
|
cannam@154
|
7921 CFLAGS=$lt_save_CFLAGS
|
cannam@154
|
7922 fi # test yes != "$_lt_disable_FC"
|
cannam@154
|
7923
|
cannam@154
|
7924 AC_LANG_POP
|
cannam@154
|
7925 ])# _LT_LANG_FC_CONFIG
|
cannam@154
|
7926
|
cannam@154
|
7927
|
cannam@154
|
7928 # _LT_LANG_GCJ_CONFIG([TAG])
|
cannam@154
|
7929 # --------------------------
|
cannam@154
|
7930 # Ensure that the configuration variables for the GNU Java Compiler compiler
|
cannam@154
|
7931 # are suitably defined. These variables are subsequently used by _LT_CONFIG
|
cannam@154
|
7932 # to write the compiler configuration to 'libtool'.
|
cannam@154
|
7933 m4_defun([_LT_LANG_GCJ_CONFIG],
|
cannam@154
|
7934 [AC_REQUIRE([LT_PROG_GCJ])dnl
|
cannam@154
|
7935 AC_LANG_SAVE
|
cannam@154
|
7936
|
cannam@154
|
7937 # Source file extension for Java test sources.
|
cannam@154
|
7938 ac_ext=java
|
cannam@154
|
7939
|
cannam@154
|
7940 # Object file extension for compiled Java test sources.
|
cannam@154
|
7941 objext=o
|
cannam@154
|
7942 _LT_TAGVAR(objext, $1)=$objext
|
cannam@154
|
7943
|
cannam@154
|
7944 # Code to be used in simple compile tests
|
cannam@154
|
7945 lt_simple_compile_test_code="class foo {}"
|
cannam@154
|
7946
|
cannam@154
|
7947 # Code to be used in simple link tests
|
cannam@154
|
7948 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
|
cannam@154
|
7949
|
cannam@154
|
7950 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
cannam@154
|
7951 _LT_TAG_COMPILER
|
cannam@154
|
7952
|
cannam@154
|
7953 # save warnings/boilerplate of simple test code
|
cannam@154
|
7954 _LT_COMPILER_BOILERPLATE
|
cannam@154
|
7955 _LT_LINKER_BOILERPLATE
|
cannam@154
|
7956
|
cannam@154
|
7957 # Allow CC to be a program name with arguments.
|
cannam@154
|
7958 lt_save_CC=$CC
|
cannam@154
|
7959 lt_save_CFLAGS=$CFLAGS
|
cannam@154
|
7960 lt_save_GCC=$GCC
|
cannam@154
|
7961 GCC=yes
|
cannam@154
|
7962 CC=${GCJ-"gcj"}
|
cannam@154
|
7963 CFLAGS=$GCJFLAGS
|
cannam@154
|
7964 compiler=$CC
|
cannam@154
|
7965 _LT_TAGVAR(compiler, $1)=$CC
|
cannam@154
|
7966 _LT_TAGVAR(LD, $1)=$LD
|
cannam@154
|
7967 _LT_CC_BASENAME([$compiler])
|
cannam@154
|
7968
|
cannam@154
|
7969 # GCJ did not exist at the time GCC didn't implicitly link libc in.
|
cannam@154
|
7970 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
cannam@154
|
7971
|
cannam@154
|
7972 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
|
cannam@154
|
7973 _LT_TAGVAR(reload_flag, $1)=$reload_flag
|
cannam@154
|
7974 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
|
cannam@154
|
7975
|
cannam@154
|
7976 ## CAVEAT EMPTOR:
|
cannam@154
|
7977 ## There is no encapsulation within the following macros, do not change
|
cannam@154
|
7978 ## the running order or otherwise move them around unless you know exactly
|
cannam@154
|
7979 ## what you are doing...
|
cannam@154
|
7980 if test -n "$compiler"; then
|
cannam@154
|
7981 _LT_COMPILER_NO_RTTI($1)
|
cannam@154
|
7982 _LT_COMPILER_PIC($1)
|
cannam@154
|
7983 _LT_COMPILER_C_O($1)
|
cannam@154
|
7984 _LT_COMPILER_FILE_LOCKS($1)
|
cannam@154
|
7985 _LT_LINKER_SHLIBS($1)
|
cannam@154
|
7986 _LT_LINKER_HARDCODE_LIBPATH($1)
|
cannam@154
|
7987
|
cannam@154
|
7988 _LT_CONFIG($1)
|
cannam@154
|
7989 fi
|
cannam@154
|
7990
|
cannam@154
|
7991 AC_LANG_RESTORE
|
cannam@154
|
7992
|
cannam@154
|
7993 GCC=$lt_save_GCC
|
cannam@154
|
7994 CC=$lt_save_CC
|
cannam@154
|
7995 CFLAGS=$lt_save_CFLAGS
|
cannam@154
|
7996 ])# _LT_LANG_GCJ_CONFIG
|
cannam@154
|
7997
|
cannam@154
|
7998
|
cannam@154
|
7999 # _LT_LANG_GO_CONFIG([TAG])
|
cannam@154
|
8000 # --------------------------
|
cannam@154
|
8001 # Ensure that the configuration variables for the GNU Go compiler
|
cannam@154
|
8002 # are suitably defined. These variables are subsequently used by _LT_CONFIG
|
cannam@154
|
8003 # to write the compiler configuration to 'libtool'.
|
cannam@154
|
8004 m4_defun([_LT_LANG_GO_CONFIG],
|
cannam@154
|
8005 [AC_REQUIRE([LT_PROG_GO])dnl
|
cannam@154
|
8006 AC_LANG_SAVE
|
cannam@154
|
8007
|
cannam@154
|
8008 # Source file extension for Go test sources.
|
cannam@154
|
8009 ac_ext=go
|
cannam@154
|
8010
|
cannam@154
|
8011 # Object file extension for compiled Go test sources.
|
cannam@154
|
8012 objext=o
|
cannam@154
|
8013 _LT_TAGVAR(objext, $1)=$objext
|
cannam@154
|
8014
|
cannam@154
|
8015 # Code to be used in simple compile tests
|
cannam@154
|
8016 lt_simple_compile_test_code="package main; func main() { }"
|
cannam@154
|
8017
|
cannam@154
|
8018 # Code to be used in simple link tests
|
cannam@154
|
8019 lt_simple_link_test_code='package main; func main() { }'
|
cannam@154
|
8020
|
cannam@154
|
8021 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
cannam@154
|
8022 _LT_TAG_COMPILER
|
cannam@154
|
8023
|
cannam@154
|
8024 # save warnings/boilerplate of simple test code
|
cannam@154
|
8025 _LT_COMPILER_BOILERPLATE
|
cannam@154
|
8026 _LT_LINKER_BOILERPLATE
|
cannam@154
|
8027
|
cannam@154
|
8028 # Allow CC to be a program name with arguments.
|
cannam@154
|
8029 lt_save_CC=$CC
|
cannam@154
|
8030 lt_save_CFLAGS=$CFLAGS
|
cannam@154
|
8031 lt_save_GCC=$GCC
|
cannam@154
|
8032 GCC=yes
|
cannam@154
|
8033 CC=${GOC-"gccgo"}
|
cannam@154
|
8034 CFLAGS=$GOFLAGS
|
cannam@154
|
8035 compiler=$CC
|
cannam@154
|
8036 _LT_TAGVAR(compiler, $1)=$CC
|
cannam@154
|
8037 _LT_TAGVAR(LD, $1)=$LD
|
cannam@154
|
8038 _LT_CC_BASENAME([$compiler])
|
cannam@154
|
8039
|
cannam@154
|
8040 # Go did not exist at the time GCC didn't implicitly link libc in.
|
cannam@154
|
8041 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
cannam@154
|
8042
|
cannam@154
|
8043 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
|
cannam@154
|
8044 _LT_TAGVAR(reload_flag, $1)=$reload_flag
|
cannam@154
|
8045 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
|
cannam@154
|
8046
|
cannam@154
|
8047 ## CAVEAT EMPTOR:
|
cannam@154
|
8048 ## There is no encapsulation within the following macros, do not change
|
cannam@154
|
8049 ## the running order or otherwise move them around unless you know exactly
|
cannam@154
|
8050 ## what you are doing...
|
cannam@154
|
8051 if test -n "$compiler"; then
|
cannam@154
|
8052 _LT_COMPILER_NO_RTTI($1)
|
cannam@154
|
8053 _LT_COMPILER_PIC($1)
|
cannam@154
|
8054 _LT_COMPILER_C_O($1)
|
cannam@154
|
8055 _LT_COMPILER_FILE_LOCKS($1)
|
cannam@154
|
8056 _LT_LINKER_SHLIBS($1)
|
cannam@154
|
8057 _LT_LINKER_HARDCODE_LIBPATH($1)
|
cannam@154
|
8058
|
cannam@154
|
8059 _LT_CONFIG($1)
|
cannam@154
|
8060 fi
|
cannam@154
|
8061
|
cannam@154
|
8062 AC_LANG_RESTORE
|
cannam@154
|
8063
|
cannam@154
|
8064 GCC=$lt_save_GCC
|
cannam@154
|
8065 CC=$lt_save_CC
|
cannam@154
|
8066 CFLAGS=$lt_save_CFLAGS
|
cannam@154
|
8067 ])# _LT_LANG_GO_CONFIG
|
cannam@154
|
8068
|
cannam@154
|
8069
|
cannam@154
|
8070 # _LT_LANG_RC_CONFIG([TAG])
|
cannam@154
|
8071 # -------------------------
|
cannam@154
|
8072 # Ensure that the configuration variables for the Windows resource compiler
|
cannam@154
|
8073 # are suitably defined. These variables are subsequently used by _LT_CONFIG
|
cannam@154
|
8074 # to write the compiler configuration to 'libtool'.
|
cannam@154
|
8075 m4_defun([_LT_LANG_RC_CONFIG],
|
cannam@154
|
8076 [AC_REQUIRE([LT_PROG_RC])dnl
|
cannam@154
|
8077 AC_LANG_SAVE
|
cannam@154
|
8078
|
cannam@154
|
8079 # Source file extension for RC test sources.
|
cannam@154
|
8080 ac_ext=rc
|
cannam@154
|
8081
|
cannam@154
|
8082 # Object file extension for compiled RC test sources.
|
cannam@154
|
8083 objext=o
|
cannam@154
|
8084 _LT_TAGVAR(objext, $1)=$objext
|
cannam@154
|
8085
|
cannam@154
|
8086 # Code to be used in simple compile tests
|
cannam@154
|
8087 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
|
cannam@154
|
8088
|
cannam@154
|
8089 # Code to be used in simple link tests
|
cannam@154
|
8090 lt_simple_link_test_code=$lt_simple_compile_test_code
|
cannam@154
|
8091
|
cannam@154
|
8092 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
cannam@154
|
8093 _LT_TAG_COMPILER
|
cannam@154
|
8094
|
cannam@154
|
8095 # save warnings/boilerplate of simple test code
|
cannam@154
|
8096 _LT_COMPILER_BOILERPLATE
|
cannam@154
|
8097 _LT_LINKER_BOILERPLATE
|
cannam@154
|
8098
|
cannam@154
|
8099 # Allow CC to be a program name with arguments.
|
cannam@154
|
8100 lt_save_CC=$CC
|
cannam@154
|
8101 lt_save_CFLAGS=$CFLAGS
|
cannam@154
|
8102 lt_save_GCC=$GCC
|
cannam@154
|
8103 GCC=
|
cannam@154
|
8104 CC=${RC-"windres"}
|
cannam@154
|
8105 CFLAGS=
|
cannam@154
|
8106 compiler=$CC
|
cannam@154
|
8107 _LT_TAGVAR(compiler, $1)=$CC
|
cannam@154
|
8108 _LT_CC_BASENAME([$compiler])
|
cannam@154
|
8109 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
|
cannam@154
|
8110
|
cannam@154
|
8111 if test -n "$compiler"; then
|
cannam@154
|
8112 :
|
cannam@154
|
8113 _LT_CONFIG($1)
|
cannam@154
|
8114 fi
|
cannam@154
|
8115
|
cannam@154
|
8116 GCC=$lt_save_GCC
|
cannam@154
|
8117 AC_LANG_RESTORE
|
cannam@154
|
8118 CC=$lt_save_CC
|
cannam@154
|
8119 CFLAGS=$lt_save_CFLAGS
|
cannam@154
|
8120 ])# _LT_LANG_RC_CONFIG
|
cannam@154
|
8121
|
cannam@154
|
8122
|
cannam@154
|
8123 # LT_PROG_GCJ
|
cannam@154
|
8124 # -----------
|
cannam@154
|
8125 AC_DEFUN([LT_PROG_GCJ],
|
cannam@154
|
8126 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
|
cannam@154
|
8127 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
|
cannam@154
|
8128 [AC_CHECK_TOOL(GCJ, gcj,)
|
cannam@154
|
8129 test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2"
|
cannam@154
|
8130 AC_SUBST(GCJFLAGS)])])[]dnl
|
cannam@154
|
8131 ])
|
cannam@154
|
8132
|
cannam@154
|
8133 # Old name:
|
cannam@154
|
8134 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
|
cannam@154
|
8135 dnl aclocal-1.4 backwards compatibility:
|
cannam@154
|
8136 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
|
cannam@154
|
8137
|
cannam@154
|
8138
|
cannam@154
|
8139 # LT_PROG_GO
|
cannam@154
|
8140 # ----------
|
cannam@154
|
8141 AC_DEFUN([LT_PROG_GO],
|
cannam@154
|
8142 [AC_CHECK_TOOL(GOC, gccgo,)
|
cannam@154
|
8143 ])
|
cannam@154
|
8144
|
cannam@154
|
8145
|
cannam@154
|
8146 # LT_PROG_RC
|
cannam@154
|
8147 # ----------
|
cannam@154
|
8148 AC_DEFUN([LT_PROG_RC],
|
cannam@154
|
8149 [AC_CHECK_TOOL(RC, windres,)
|
cannam@154
|
8150 ])
|
cannam@154
|
8151
|
cannam@154
|
8152 # Old name:
|
cannam@154
|
8153 AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
|
cannam@154
|
8154 dnl aclocal-1.4 backwards compatibility:
|
cannam@154
|
8155 dnl AC_DEFUN([LT_AC_PROG_RC], [])
|
cannam@154
|
8156
|
cannam@154
|
8157
|
cannam@154
|
8158 # _LT_DECL_EGREP
|
cannam@154
|
8159 # --------------
|
cannam@154
|
8160 # If we don't have a new enough Autoconf to choose the best grep
|
cannam@154
|
8161 # available, choose the one first in the user's PATH.
|
cannam@154
|
8162 m4_defun([_LT_DECL_EGREP],
|
cannam@154
|
8163 [AC_REQUIRE([AC_PROG_EGREP])dnl
|
cannam@154
|
8164 AC_REQUIRE([AC_PROG_FGREP])dnl
|
cannam@154
|
8165 test -z "$GREP" && GREP=grep
|
cannam@154
|
8166 _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
|
cannam@154
|
8167 _LT_DECL([], [EGREP], [1], [An ERE matcher])
|
cannam@154
|
8168 _LT_DECL([], [FGREP], [1], [A literal string matcher])
|
cannam@154
|
8169 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
|
cannam@154
|
8170 AC_SUBST([GREP])
|
cannam@154
|
8171 ])
|
cannam@154
|
8172
|
cannam@154
|
8173
|
cannam@154
|
8174 # _LT_DECL_OBJDUMP
|
cannam@154
|
8175 # --------------
|
cannam@154
|
8176 # If we don't have a new enough Autoconf to choose the best objdump
|
cannam@154
|
8177 # available, choose the one first in the user's PATH.
|
cannam@154
|
8178 m4_defun([_LT_DECL_OBJDUMP],
|
cannam@154
|
8179 [AC_CHECK_TOOL(OBJDUMP, objdump, false)
|
cannam@154
|
8180 test -z "$OBJDUMP" && OBJDUMP=objdump
|
cannam@154
|
8181 _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
|
cannam@154
|
8182 AC_SUBST([OBJDUMP])
|
cannam@154
|
8183 ])
|
cannam@154
|
8184
|
cannam@154
|
8185 # _LT_DECL_DLLTOOL
|
cannam@154
|
8186 # ----------------
|
cannam@154
|
8187 # Ensure DLLTOOL variable is set.
|
cannam@154
|
8188 m4_defun([_LT_DECL_DLLTOOL],
|
cannam@154
|
8189 [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
|
cannam@154
|
8190 test -z "$DLLTOOL" && DLLTOOL=dlltool
|
cannam@154
|
8191 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
|
cannam@154
|
8192 AC_SUBST([DLLTOOL])
|
cannam@154
|
8193 ])
|
cannam@154
|
8194
|
cannam@154
|
8195 # _LT_DECL_SED
|
cannam@154
|
8196 # ------------
|
cannam@154
|
8197 # Check for a fully-functional sed program, that truncates
|
cannam@154
|
8198 # as few characters as possible. Prefer GNU sed if found.
|
cannam@154
|
8199 m4_defun([_LT_DECL_SED],
|
cannam@154
|
8200 [AC_PROG_SED
|
cannam@154
|
8201 test -z "$SED" && SED=sed
|
cannam@154
|
8202 Xsed="$SED -e 1s/^X//"
|
cannam@154
|
8203 _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
|
cannam@154
|
8204 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
|
cannam@154
|
8205 [Sed that helps us avoid accidentally triggering echo(1) options like -n])
|
cannam@154
|
8206 ])# _LT_DECL_SED
|
cannam@154
|
8207
|
cannam@154
|
8208 m4_ifndef([AC_PROG_SED], [
|
cannam@154
|
8209 ############################################################
|
cannam@154
|
8210 # NOTE: This macro has been submitted for inclusion into #
|
cannam@154
|
8211 # GNU Autoconf as AC_PROG_SED. When it is available in #
|
cannam@154
|
8212 # a released version of Autoconf we should remove this #
|
cannam@154
|
8213 # macro and use it instead. #
|
cannam@154
|
8214 ############################################################
|
cannam@154
|
8215
|
cannam@154
|
8216 m4_defun([AC_PROG_SED],
|
cannam@154
|
8217 [AC_MSG_CHECKING([for a sed that does not truncate output])
|
cannam@154
|
8218 AC_CACHE_VAL(lt_cv_path_SED,
|
cannam@154
|
8219 [# Loop through the user's path and test for sed and gsed.
|
cannam@154
|
8220 # Then use that list of sed's as ones to test for truncation.
|
cannam@154
|
8221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
8222 for as_dir in $PATH
|
cannam@154
|
8223 do
|
cannam@154
|
8224 IFS=$as_save_IFS
|
cannam@154
|
8225 test -z "$as_dir" && as_dir=.
|
cannam@154
|
8226 for lt_ac_prog in sed gsed; do
|
cannam@154
|
8227 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@154
|
8228 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
|
cannam@154
|
8229 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
|
cannam@154
|
8230 fi
|
cannam@154
|
8231 done
|
cannam@154
|
8232 done
|
cannam@154
|
8233 done
|
cannam@154
|
8234 IFS=$as_save_IFS
|
cannam@154
|
8235 lt_ac_max=0
|
cannam@154
|
8236 lt_ac_count=0
|
cannam@154
|
8237 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
|
cannam@154
|
8238 # along with /bin/sed that truncates output.
|
cannam@154
|
8239 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
|
cannam@154
|
8240 test ! -f "$lt_ac_sed" && continue
|
cannam@154
|
8241 cat /dev/null > conftest.in
|
cannam@154
|
8242 lt_ac_count=0
|
cannam@154
|
8243 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
|
cannam@154
|
8244 # Check for GNU sed and select it if it is found.
|
cannam@154
|
8245 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
|
cannam@154
|
8246 lt_cv_path_SED=$lt_ac_sed
|
cannam@154
|
8247 break
|
cannam@154
|
8248 fi
|
cannam@154
|
8249 while true; do
|
cannam@154
|
8250 cat conftest.in conftest.in >conftest.tmp
|
cannam@154
|
8251 mv conftest.tmp conftest.in
|
cannam@154
|
8252 cp conftest.in conftest.nl
|
cannam@154
|
8253 echo >>conftest.nl
|
cannam@154
|
8254 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
|
cannam@154
|
8255 cmp -s conftest.out conftest.nl || break
|
cannam@154
|
8256 # 10000 chars as input seems more than enough
|
cannam@154
|
8257 test 10 -lt "$lt_ac_count" && break
|
cannam@154
|
8258 lt_ac_count=`expr $lt_ac_count + 1`
|
cannam@154
|
8259 if test "$lt_ac_count" -gt "$lt_ac_max"; then
|
cannam@154
|
8260 lt_ac_max=$lt_ac_count
|
cannam@154
|
8261 lt_cv_path_SED=$lt_ac_sed
|
cannam@154
|
8262 fi
|
cannam@154
|
8263 done
|
cannam@154
|
8264 done
|
cannam@154
|
8265 ])
|
cannam@154
|
8266 SED=$lt_cv_path_SED
|
cannam@154
|
8267 AC_SUBST([SED])
|
cannam@154
|
8268 AC_MSG_RESULT([$SED])
|
cannam@154
|
8269 ])#AC_PROG_SED
|
cannam@154
|
8270 ])#m4_ifndef
|
cannam@154
|
8271
|
cannam@154
|
8272 # Old name:
|
cannam@154
|
8273 AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
|
cannam@154
|
8274 dnl aclocal-1.4 backwards compatibility:
|
cannam@154
|
8275 dnl AC_DEFUN([LT_AC_PROG_SED], [])
|
cannam@154
|
8276
|
cannam@154
|
8277
|
cannam@154
|
8278 # _LT_CHECK_SHELL_FEATURES
|
cannam@154
|
8279 # ------------------------
|
cannam@154
|
8280 # Find out whether the shell is Bourne or XSI compatible,
|
cannam@154
|
8281 # or has some other useful features.
|
cannam@154
|
8282 m4_defun([_LT_CHECK_SHELL_FEATURES],
|
cannam@154
|
8283 [if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
cannam@154
|
8284 lt_unset=unset
|
cannam@154
|
8285 else
|
cannam@154
|
8286 lt_unset=false
|
cannam@154
|
8287 fi
|
cannam@154
|
8288 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
|
cannam@154
|
8289
|
cannam@154
|
8290 # test EBCDIC or ASCII
|
cannam@154
|
8291 case `echo X|tr X '\101'` in
|
cannam@154
|
8292 A) # ASCII based system
|
cannam@154
|
8293 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
|
cannam@154
|
8294 lt_SP2NL='tr \040 \012'
|
cannam@154
|
8295 lt_NL2SP='tr \015\012 \040\040'
|
cannam@154
|
8296 ;;
|
cannam@154
|
8297 *) # EBCDIC based system
|
cannam@154
|
8298 lt_SP2NL='tr \100 \n'
|
cannam@154
|
8299 lt_NL2SP='tr \r\n \100\100'
|
cannam@154
|
8300 ;;
|
cannam@154
|
8301 esac
|
cannam@154
|
8302 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
|
cannam@154
|
8303 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
|
cannam@154
|
8304 ])# _LT_CHECK_SHELL_FEATURES
|
cannam@154
|
8305
|
cannam@154
|
8306
|
cannam@154
|
8307 # _LT_PATH_CONVERSION_FUNCTIONS
|
cannam@154
|
8308 # -----------------------------
|
cannam@154
|
8309 # Determine what file name conversion functions should be used by
|
cannam@154
|
8310 # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
|
cannam@154
|
8311 # for certain cross-compile configurations and native mingw.
|
cannam@154
|
8312 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
|
cannam@154
|
8313 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
cannam@154
|
8314 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
|
cannam@154
|
8315 AC_MSG_CHECKING([how to convert $build file names to $host format])
|
cannam@154
|
8316 AC_CACHE_VAL(lt_cv_to_host_file_cmd,
|
cannam@154
|
8317 [case $host in
|
cannam@154
|
8318 *-*-mingw* )
|
cannam@154
|
8319 case $build in
|
cannam@154
|
8320 *-*-mingw* ) # actually msys
|
cannam@154
|
8321 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
|
cannam@154
|
8322 ;;
|
cannam@154
|
8323 *-*-cygwin* )
|
cannam@154
|
8324 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
|
cannam@154
|
8325 ;;
|
cannam@154
|
8326 * ) # otherwise, assume *nix
|
cannam@154
|
8327 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
|
cannam@154
|
8328 ;;
|
cannam@154
|
8329 esac
|
cannam@154
|
8330 ;;
|
cannam@154
|
8331 *-*-cygwin* )
|
cannam@154
|
8332 case $build in
|
cannam@154
|
8333 *-*-mingw* ) # actually msys
|
cannam@154
|
8334 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
|
cannam@154
|
8335 ;;
|
cannam@154
|
8336 *-*-cygwin* )
|
cannam@154
|
8337 lt_cv_to_host_file_cmd=func_convert_file_noop
|
cannam@154
|
8338 ;;
|
cannam@154
|
8339 * ) # otherwise, assume *nix
|
cannam@154
|
8340 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
|
cannam@154
|
8341 ;;
|
cannam@154
|
8342 esac
|
cannam@154
|
8343 ;;
|
cannam@154
|
8344 * ) # unhandled hosts (and "normal" native builds)
|
cannam@154
|
8345 lt_cv_to_host_file_cmd=func_convert_file_noop
|
cannam@154
|
8346 ;;
|
cannam@154
|
8347 esac
|
cannam@154
|
8348 ])
|
cannam@154
|
8349 to_host_file_cmd=$lt_cv_to_host_file_cmd
|
cannam@154
|
8350 AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
|
cannam@154
|
8351 _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
|
cannam@154
|
8352 [0], [convert $build file names to $host format])dnl
|
cannam@154
|
8353
|
cannam@154
|
8354 AC_MSG_CHECKING([how to convert $build file names to toolchain format])
|
cannam@154
|
8355 AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
|
cannam@154
|
8356 [#assume ordinary cross tools, or native build.
|
cannam@154
|
8357 lt_cv_to_tool_file_cmd=func_convert_file_noop
|
cannam@154
|
8358 case $host in
|
cannam@154
|
8359 *-*-mingw* )
|
cannam@154
|
8360 case $build in
|
cannam@154
|
8361 *-*-mingw* ) # actually msys
|
cannam@154
|
8362 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
|
cannam@154
|
8363 ;;
|
cannam@154
|
8364 esac
|
cannam@154
|
8365 ;;
|
cannam@154
|
8366 esac
|
cannam@154
|
8367 ])
|
cannam@154
|
8368 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
|
cannam@154
|
8369 AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
|
cannam@154
|
8370 _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
|
cannam@154
|
8371 [0], [convert $build files to toolchain format])dnl
|
cannam@154
|
8372 ])# _LT_PATH_CONVERSION_FUNCTIONS
|